diff --git a/.gitignore b/.gitignore index 771a993d2a779..7891d3173fc51 100644 --- a/.gitignore +++ b/.gitignore @@ -74,6 +74,8 @@ public/css/*.min.css .stylelintcache /data/* +# LOGZ.IO CHANGE +!/data/plugins /bin/* # any certificates generated by grafana apiserver diff --git a/data/plugins/grafana-flowcharting/CHANGELOG.md b/data/plugins/grafana-flowcharting/CHANGELOG.md new file mode 100644 index 0000000000000..7c7540ed11048 --- /dev/null +++ b/data/plugins/grafana-flowcharting/CHANGELOG.md @@ -0,0 +1,94 @@ +# Changelog + +## [[0.4.0]](https://algenty.github.io/flowcharting-repository/archives/agenty-flowcharting-panel-0.4.0.zip) - 2019-09-26 +### Added + - Draw.io editor ([see example](https://algenty.github.io/flowcharting-repository/images/openEditor_ani.gif)) + - Open draw.io with dark theme for better rendering + - Display waiting screen when loading xml definition. + - Upgrading libraries + - mxGraph 4.0.4 + - draw.io 11.2.8 + - Graph definition + - Adding download function to download source by http on load. ([See example](https://algenty.github.io/flowcharting-repository/images/download_ani.gif)) + - Metric + - Adding string support for state (See example) + - Zoom [(issue #19)](https://github.com/algenty/grafana-flowcharting/issues/19) ([See example](https://algenty.github.io/flowcharting-repository/images/zoom2_ani.gif)) + - On the mouse pointer : Ctrl + Mouse + - Hold right button to move diagram. + - double click on shape to zoom on. + - Escape key to restore. + - Tooltip/popup support ([see example](https://algenty.github.io/flowcharting-repository/images/tooltip2_ani.gif)) + - Grafana style css and date + - Adding metrics with color according levels + - Adding colors on metrics in tooltip + - Adding date of change + - Adding label input for metric + - Variables/templates support, accept variable like ${} ([See example](https://algenty.github.io/flowcharting-repository/images/variable_ani.gif)) + - In xml definition + - In text mapping when type in sring for "Range to text" and "Value to text" + - In link ovewrite + - full shapes from draw.io included ([See example](https://algenty.github.io/flowcharting-repository/images/shapes_ani.gif)) + - Some optimizations + +### Fixed + - Optimization when refresh/render [(issue #15)](https://github.com/algenty/grafana-flowcharting/issues/15) + - No decimal fixed when 0 [(issue #23)](https://github.com/algenty/grafana-flowcharting/issues/23) + - Text substring and color [(issues #29)](https://github.com/algenty/grafana-flowcharting/issues/29) + - Fix formatted text when label is html [(issues #21)](https://github.com/algenty/grafana-flowcharting/issues/29) + - Work around a bug since Grafana 6+ [(issues 19426 grafana)](https://github.com/grafana/grafana/issues/19426) + +## [[0.3.0]](https://algenty.github.io/flowcharting-repository/archives/agenty-flowcharting-panel-0.3.0.zip) - 2019-05-07 +### Added + /!\ Possible breaking change with 0.2.0 and 0.2.5 but it will compatible with next release. + + - Migration process for next release. + - Dynamic documentation/Examples on popover (thx SCHKN) + - Params link option, add params of dashboard to link. + - Full review of code (ES6 Class mode) + - Unit test with jest to increase quality + - Fill/text/stoke rules on the same object is possible. + - Mapping selector helper (chain in mapping) + - Icon overlay state (display icon warning when NOK) + - Implemented the conditions to display text according to the states. + - new inspect Tab with : + - Renamer ID (double click on ID) + - State status + - Debug mode + - Custom Link Mapping overrite. + +### Fixed + - Substring replace on text [(Issue #8)](https://github.com/algenty/grafana-flowcharting/issues/8) + - Editor object not found Exception [(Issue #1)](https://github.com/algenty/grafana-flowcharting/issues/1) + - Original Link [(Issue #9)](https://github.com/algenty/grafana-flowcharting/issues/9) + - Fixed Change the colors [(Issue #14)](https://github.com/algenty/grafana-flowcharting/issues/14) + - Fixed Unit [(Issue #12)](https://github.com/algenty/grafana-flowcharting/issues/12) + +## [[0.2.5]](https://algenty.github.io/flowcharting-repository/archives/agenty-flowcharting-panel-0.2.5.zip) - 2019-04-19 +### Added + - Mapping Helper for select object with mouse + +### Fixed + - Substring replace on text [(Issue #8)](https://github.com/algenty/grafana-flowcharting/issues/8) + - Editor object not found Exception [(Issue #1)](https://github.com/algenty/grafana-flowcharting/issues/1) + +## [0.2.0] - 2019-03-18 +### Added + - Display graph through xml definition + - Calibrate display (scale, center, background) + - Inspect tab to test states and shape from graph. + - Mapping values and colors (use stroke in color options for arrows instead fill) + - String type added with range or value mapping. + - Date type added + - multi rules with expand/collapes for better display, possibility to reorg rules + +## [0.1.0] - 2019-09-02 +### Added + - Display graph with mxgraph libs + - Inspect tab to explore object in graph and preview colors + + +# Annex +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/Gruntfile.js b/data/plugins/grafana-flowcharting/Gruntfile.js new file mode 100644 index 0000000000000..d867a700eb70f --- /dev/null +++ b/data/plugins/grafana-flowcharting/Gruntfile.js @@ -0,0 +1,274 @@ +const path = require("path"); +const sass = require('node-sass'); +// const plugin = require('./src/plugin.js'); +const version = "0.5.0"; + +module.exports = (grunt) => { + require('load-grunt-tasks')(grunt); + + grunt.loadNpmTasks('grunt-git'); + grunt.loadNpmTasks('grunt-contrib-clean'); + grunt.loadNpmTasks('grunt-sass'); + grunt.loadNpmTasks('grunt-contrib-compress'); + + grunt.initConfig({ + + clean: { + before_init: { + src: ['externals/**/*'], + }, + build: { + src: ['dist/**/*'], + }, + after_init: { + src: ['externals/**/.git'], + }, + }, + + copy: { + sanitizer_to_src: { + cwd: 'externals/drawio/src/main/webapp/js/sanitizer', + expand: true, + src: ['sanitizer.min.js'], + dest: 'src/libs', + }, + shapes_to_src: { + cwd: 'externals/drawio/src/main/webapp/shapes', + expand: true, + src: ['**/*.js'], + dest: 'src/libs/shapes', + }, + src_to_dist: { + cwd: 'src', + expand: true, + src: ['**/*', '!**/*.js', '!**/*.scss', '!img/**/*', '.*', '!__mocks__'], + dest: 'dist', + }, + vkbeautify_to_dist: { + cwd: 'node_modules', + expand: true, + src: ['vkbeautify/index.js'], + dest: 'dist/libs', + }, + libs_to_dist: { + cwd: 'node_modules', + expand: true, + src: ['mxgraph/javascript/dist/**/*', '!**/*.js'], + dest: 'dist/libs', + }, + res_to_dist: { + cwd: 'node_modules/mxgraph/javascript/src', + expand: true, + src: ['**/*', '!**/*.js'], + dest: 'dist/libs/mxgraph/javascript/dist', + }, + mxgraph_to_dist: { + cwd: 'externals/mxgraph/javascript/examples/grapheditor/www', + expand: true, + src: ['**/*', '!**/*.js'], + dest: 'dist/libs/mxgraph/javascript/dist', + }, + chartist_to_dist: { + cwd: 'node_modules/chartist/dist/chartist.min.js', + expand: true, + src: ['**/*', '!**/*.js'], + dest: 'dist/chartist', + }, + + + readme: { + expand: true, + src: ['README.md'], + dest: 'dist', + }, + + img_to_dist: { + cwd: 'src', + expand: true, + src: ['img/**/*'], + dest: 'dist/', + }, + + drawio_img_to_dist: { + cwd: 'externals/drawio/src/main/webapp', + expand: true, + src: ['img/**/*'], + dest: 'dist/', + }, + + stencils_to_dist: { + cwd: 'externals/drawio/src/main/webapp/stencils', + expand: true, + src: ['**/*', '!**/*.js'], + dest: 'dist/libs/mxgraph/javascript/dist/stencils', + }, + }, + + watch: { + rebuild_all: { + files: ['src/**/*', 'README.md'], + tasks: ['default'], + options: { + spawn: false, + }, + }, + microbuild: { + files: ['src/**/*'], + tasks: ['microbuild'], + options: { + spawn: false, + }, + }, + }, + + + sass: { + options: { + sourceMap: false, + implementation: sass, + }, + dist: { + files: { + 'dist/css/chartist-settings.css': 'src/css/_chartist-settings.scss', + 'dist/css/flowchart.dark.css': 'src/css/flowchart.dark.scss', + 'dist/css/flowchart.light.css': 'src/css/flowchart.light.scss', + }, + }, + }, + babel: { + options: { + sourceMap: false, + }, + dist: { + files: [{ + cwd: 'src', + expand: true, + src: ['**/*.js', '!mxHandler.js', "!Graph.js", "!init.js", "!utils.js", "!backup/**/*", "!__mocks__", "!libs/sanitizer.min.js"], + dest: 'dist', + ext: '.js', + }], + }, + }, + + webpack: { + mxgraph: { + entry: "./src/graph_class.js", + mode: "development", + module: { + rules: [ + { + test: /\.m?js$/, + exclude: /(node_modules|bower_components|externals)/, + use: { + loader: 'babel-loader', + }, + }, + ], + }, + output: { + path: path.resolve(process.cwd(), "./dist"), + filename: "graph_class.js", + library: "graph_class", + libraryTarget: "umd", + }, + externals: { + jquery: "jquery", + lodash: "lodash", + }, + }, + utils: { + entry: "./src/utils.js", + mode: "development", + module: { + rules: [ + { + test: /\.m?js$/, + exclude: /(node_modules|bower_components|externals)/, + use: { + loader: 'babel-loader', + }, + }, + ], + }, + output: { + path: path.resolve(process.cwd(), "./dist"), + filename: "utils.js", + library: "utils", + libraryTarget: "umd", + }, + externals: { + jquery: "jquery", + lodash: "lodash", + }, + }, + tooltip: { + entry: "./src/tooltipHandler.js", + mode: "development", + module: { + rules: [ + { + test: /\.m?js$/, + exclude: /(node_modules|bower_components|externals)/, + use: { + loader: 'babel-loader', + }, + }, + ], + }, + output: { + path: path.resolve(process.cwd(), "./dist"), + filename: "tooltipHandler.js", + library: "tooltipHandler", + libraryTarget: "umd", + }, + externals: { + jquery: "jquery", + lodash: "lodash", + }, + }, + }, + + compress: { + main: { + options: { + archive: "archives/agenty-flowcharting-panel-" + version + "-SNAPSHOT.zip", + }, + expand: true, + cwd: '.', + src: ['**/*', '!node_modules/**', '!bower_components/**', '!others/**', '!.git/**', '!archives/**', '!public/**', '!backup/**', '!spec/**', '!spec/__snapshots__/**','!externals/**'], + dest: 'grafana-flowcharting', + }, + }, + + gitclone: { + mxgraph: { + options: { + repository: 'https://github.com/jgraph/mxgraph', + branch: 'master', + depth: 1, + tags: "v4.0.4", + directory: 'externals/mxgraph', + verbose: true, + } + }, + drawio: { + options: { + repository: 'https://github.com/jgraph/drawio', + branch: 'master', + depth: 1, + tags : "v11.2.8", + directory: 'externals/drawio', + verbose: true, + } + } + }, + + }); + + grunt.registerTask('default', ['clean:build', 'copy:src_to_dist', 'sass', 'copy:readme', 'copy:img_to_dist', 'babel', 'webpack', 'copy:res_to_dist', 'copy:mxgraph_to_dist', 'copy:stencils_to_dist']); + grunt.registerTask('microbuild', ['sass', 'babel', 'webpack' ]); + grunt.registerTask('dev', ['default', 'watch:rebuild_all']); + grunt.registerTask('microdev', ['microbuild', 'watch:microbuild']); + grunt.registerTask('archive', ['default', 'compress:main']); + grunt.registerTask('init', ['clean:before_init','gitclone:mxgraph','gitclone:drawio','clean:after_init']); +}; diff --git a/data/plugins/grafana-flowcharting/LICENSE b/data/plugins/grafana-flowcharting/LICENSE new file mode 100644 index 0000000000000..261eeb9e9f8b2 --- /dev/null +++ b/data/plugins/grafana-flowcharting/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/data/plugins/grafana-flowcharting/README.md b/data/plugins/grafana-flowcharting/README.md new file mode 100644 index 0000000000000..b307c0691f5c0 --- /dev/null +++ b/data/plugins/grafana-flowcharting/README.md @@ -0,0 +1,252 @@ +# Grafana Plugin Flowcharting + +![Banner](https://github.com/algenty/flowcharting-repository/blob/master/images/banner_large.png?raw=true) + +Flowcharting is a plugin for grafana. It aims to display complexe diagram draws with [draw.io](https://draw.io/) like Visio. Few examples : + * Technical architecture schema (Legacy, Cloud, Azure, AWS, GCP, Kubernetes, Terraform) + * Diagrams (network, electric, flows ...) + * Organic plans + * Floorplans + * UML plan + * Workflows (Jenkins, Ansible Tower, OpenShift, ...) + +Draw your artwork and monitor it. + +## Use case example + - Technical schema example +![example 1](https://github.com/algenty/flowcharting-repository/blob/master/images/fc_archi_example.png?raw=true) + +See more example at draw.io + +# Getting started + + +# Documentation + + +# Project site + + +# Changelog + +## [[0.5.0 SNAPSHOT]](https://algenty.github.io/flowcharting-repository/archives/agenty-flowcharting-panel-0.5.0-SNAPSHOT.zip) - 2019-10-13 +### Added + - 2 new modes for "Update text value" ([See example](https://algenty.github.io/flowcharting-repository/images/append_mode_ani.png)) + - Append (Space) : Concat metrics with a space as a separator + - Append (New line) : Concat metrics with a line break + - Variabilization in "Url" for link mapping ([See example](https://algenty.github.io/flowcharting-repository/images/variable_link_ani.png)) + - New check box to allow download images from draw.io ([See example](https://algenty.github.io/flowcharting-repository/images/drawio_source_ani.png)) + - New editor option : + - Other editor draw.io like internal website draw.io are supported + - Choose the theme of editor identification_mode_ani + - New identification mode for shapes when mouse cursor is over the rules or the mapping ([See example](https://algenty.github.io/flowcharting-repository/images/identification_mode_ani.png)) + - Support Dynamic shapes like Floorplan, isometric plans and more ([See example](https://algenty.github.io/flowcharting-repository/images/dynamic_shapes_ani.png)) + - New color mode for no SVG object like pictures/cliparts/images ([See example](https://algenty.github.io/flowcharting-repository/images/colormode_ani.png)) + - Graphs in tooltip ([See example](https://algenty.github.io/flowcharting-repository/images/tooltip_graph.png)) + - Color graph with defined colors in threshold + - Size of graph ([See example](https://algenty.github.io/flowcharting-repository/images/graph_size.png)) + - Define the orientation in tooltip for each metrics/graph in tooltips : horizontal or vertical ([See example](https://algenty.github.io/flowcharting-repository/images/tooltip_direction_ani.png)) + - Some optimizations, Display is twice as fast on load. + +### Fixed + - Fix color to reset when "Color on" is "Always/Critical" and metric is OK + - Fix border to empty instead black when "color mode" is "Fill" [(issue #24)](https://github.com/algenty/grafana-flowcharting/issues/24) + - Fix error when "Value On" is not "When metric displayed" + - Fix Link [(issue #37)](https://github.com/algenty/grafana-flowcharting/issues/37) + - Fix hyperlink text appears in white over flowchart [(issue #45)](https://github.com/algenty/grafana-flowcharting/issues/45) + - Fix "Multiple FlowCharts On a Dashboard", when edit, both are the same draw [(issue #48)](https://github.com/algenty/grafana-flowcharting/issues/48) + - Fix options after reload or variable changed [(issue #44)](https://github.com/algenty/grafana-flowcharting/issues/48) + - Fix auto reset zoom/unzoom when data refreshed, only ESC or change options on flowchart reset zoom now [(issue #38)](https://github.com/algenty/grafana-flowcharting/issues/38) + - Fix error for BPNM shapes [(Issue #51)](https://github.com/algenty/grafana-flowcharting/issues/51) + - Fix display when center and scale are checked on flowchart options. + - Fix Zoom with mouse wheel for firefox and Edge. + +## [[0.4.0]](https://algenty.github.io/flowcharting-repository/archives/agenty-flowcharting-panel-0.4.0.zip) - 2019-09-26 +### Added + - Draw.io editor ([see example](https://algenty.github.io/flowcharting-repository/images/openEditor_ani.gif)) + - Open draw.io with dark theme for better rendering + - Display waiting screen when loading xml definition. + - Upgrading libraries + - mxGraph 4.0.4 + - draw.io 11.2.8 + - Graph definition + - Adding download function to download source by http on load. ([See example](https://algenty.github.io/flowcharting-repository/images/download_ani.gif)) + - Metric + - Adding string support for state (See example) + - Zoom [(issue #19)](https://github.com/algenty/grafana-flowcharting/issues/19) ([See example](https://algenty.github.io/flowcharting-repository/images/zoom2_ani.gif)) + - On the mouse pointer : Ctrl + Mouse + - Hold right button to move diagram. + - double click on shape to zoom on. + - Escape key to restore. + - Tooltip/popup support ([see example](https://algenty.github.io/flowcharting-repository/images/tooltip2_ani.gif)) + - Grafana style css and date + - Adding metrics with color according levels + - Adding colors on metrics in tooltip + - Adding date of change + - Adding label input for metric + - Variables/templates support, accept variable like ${} ([See example](https://algenty.github.io/flowcharting-repository/images/variable_ani.gif)) + - In xml definition + - In text mapping when type in sring for "Range to text" and "Value to text" + - In link ovewrite + - full shapes from draw.io included ([See example](https://algenty.github.io/flowcharting-repository/images/shapes_ani.gif)) + - Some optimizations on render and display. + +### Fixed + - Optimization when refresh/render [(issue #15)](https://github.com/algenty/grafana-flowcharting/issues/15) + - No decimal fixed when 0 [(issue #23)](https://github.com/algenty/grafana-flowcharting/issues/23) + - Text substring and color [(issues #29)](https://github.com/algenty/grafana-flowcharting/issues/29) + - Fix formatted text when label is html [(issues #21)](https://github.com/algenty/grafana-flowcharting/issues/29) + - Work around a bug since Grafana 6+ [(issues 19426 grafana)](https://github.com/grafana/grafana/issues/19426) + +## [[0.3.0]](https://algenty.github.io/flowcharting-repository/archives/agenty-flowcharting-panel-0.3.0.zip) - 2019-05-07 +### Added + + /!\ Possible breaking change with 0.2.0 and 0.2.5 but it will compatible with next release. + + - Migration process for next release. + - Dynamic documentation/Examples on popover (thx SCHKN) + - Params link option, add params of dashboard to link. + - Full review of code (ES6 Class mode) + - Unit test with jest to increase quality + - Fill/text/stoke rules on the same object is possible. + - Mapping selector helper (chain in mapping) + - Icon overlay state (display icon warning when NOK) + - Implemented the conditions to display text according to the states. + - new inspect Tab with : + - Renamer ID (double click on ID) + - State status + - Debug mode + - Custom Link Mapping overrite. + +### Fixed + - Substring replace on text [(Issue #8)](https://github.com/algenty/grafana-flowcharting/issues/8) + - Editor object not found Exception [(Issue #1)](https://github.com/algenty/grafana-flowcharting/issues/1) + - Original Link [(Issue #9)](https://github.com/algenty/grafana-flowcharting/issues/9) + - Fixed Change the colors [(Issue #14)](https://github.com/algenty/grafana-flowcharting/issues/14) + - Fixed Unit [(Issue #12)](https://github.com/algenty/grafana-flowcharting/issues/12) + +## [[0.2.5]](https://algenty.github.io/flowcharting-repository/archives/agenty-flowcharting-panel-0.2.5.zip) - 2019-04-19 +### Added + - Mapping Helper for select object with mouse + +### Fixed + - Substring replace on text [(Issue #8)](https://github.com/algenty/grafana-flowcharting/issues/8) + - Editor object not found Exception [(Issue #1)](https://github.com/algenty/grafana-flowcharting/issues/1) + +## [0.2.0] - 2019-03-18 +### Added + - Display graph through xml definition + - Calibrate display (scale, center, background) + - Inspect tab to test states and shape from graph. + - Mapping values and colors (use stroke in color options for arrows instead fill) + - String type added with range or value mapping. + - Date type added + - multi rules with expand/collapes for better display, possibility to reorg rules + +## [0.1.0] - 2019-09-02 +### Added + - Display graph with mxgraph libs + - Inspect tab to explore object in graph and preview colors + + +# Annex +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +# Cooming soon/Roadmap + +## 1.0 Next/Requested enhancements + - [ ] Custom libs. + - [X] Internat draw.io website [(issue #43)](https://github.com/algenty/grafana-flowcharting/issues/43) + - [X] Display tooltip (done in 0.4.0) + - [ ] Export SVG, png, options + - [X] Add data in tooltip (done in 0.4.0) + - [X] Use variables/templates in graph (done in 0.4.0) + - [X] Add custom stencils/libs from draw.io (done in 0.4.0) + - [ ] Support light theme + - [ ] Annotation + - [X] Url source download (done in 0.4.0) + - [ ] Special rule according level (hide, show, change form, move, infront, in back, attributes, ...) + - [ ] Custom variables like ${_label},${_value}, ${_alias}, ${_rule}, ${_level} ... + - [X] Variable support in link (done in 0.5.0) + - [X] Zoom/Unzoom (done in 0.4.0) + - [ ] Shared graph crosshair + - [ ] CSV source + - [ ] Map/search shape by value + - [ ] Variables support for downloaded source and compressed source + - [ ] Multi graph with auto link when errors + - [ ] Gradien Mode for color + - [ ] More than 3 colors + - [X] Graph in tooltip + - [ ] Histogram + - [ ] Merge Graphs + - [ ] Filter for null values in graph + - [ ] Inspector on series + - [X] New style for image : imageBackground, imageBorder + - [X] Support cloud images from draw.io + - [X] Support images from draw.io (done in 0.5.0) + - [X] Add append mode on text with CR or space (done in 0.5.0) + +# Support or Contact + + - Having troubles with flowcharting ? Check out [issues](https://github.com/algenty/grafana-flowcharting/issues) + - Email : + - Twitter : https://twitter.com/gf_flowcharting + +# Dependencies + +## Grafane flowcharting plugin dependencies + +* [AngularJS] - HTML enhanced for web apps! +* [lodash] - awesome web-based text editor +* [jquery] - Markdown parser done right. Fast and easy to extend. +* [mxGraph] - great UI boilerplate for modern web apps +* [pako] - Zlib port to javascript +* [vkbeautify] - Pretty prints and minifies XML/JSON/SQL/CSV +* [sanitizer] - Caja's HTML Sanitizer + +## Build dependencies + +* [jest] - Delightful JavaScript Testing +* [express] - Fast, unopinionated, minimalist web framework +* [babel] - Soft cushion between you all the cool new file formats being developed for node.js such as CoffeeScript, SASS, and Jade. +* [grunt] - The JavaScript Task Runner +* [webpack] - Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff. + +# Installation + +Flowcharting requires [Grafana](https://www.grafana.com/) v5+ to run (not tested lower version) +Download and install it + +## Manualy +```sh +$ cd $grafana_home/data/plugin +$ wget --no-check-certificate https://github.com/algenty/grafana-flowcharting/archive/master.zip +$ unzip master.zip +``` + +## grafana-cli + +```sh +grafana-cli plugins install agenty-flowcharting-panel +``` +## Build + +```sh +$ git clone https://github.com/algenty/grafana-flowcharting +$ yarn install --dev +$ yarn build init +$ yarn build +$ # Make zip file plugin in archives dir +$ yarn build archive +$ # for dev watching +$ yarn build dev +``` + +## Class diagram +https://www.draw.io/?chrome=0&lightbox=1&url=https%3A%2F%2Fraw.githubusercontent.com%2Falgenty%2Fflowcharting-repository%2Fmaster%2Fgraphs%2FFlowcharting_carto.drawio + +## Event diagram (In progress) +https://www.draw.io/?chrome=0&lightbox=1&url=https%3A%2F%2Fraw.githubusercontent.com%2Falgenty%2Fflowcharting-repository%2Fmaster%2Fgraphs%2FFlowcharting_Events.drawio diff --git a/data/plugins/grafana-flowcharting/dist/Graph_over.js b/data/plugins/grafana-flowcharting/dist/Graph_over.js new file mode 100644 index 0000000000000..e88ab82a84b8b --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/Graph_over.js @@ -0,0 +1,99 @@ +"use strict"; + +mxTooltipHandler.prototype.show = function (tip, x, y) { + if (this.destroyed) return; + if (tip == null) return; + if (tip.length == 0) return; + + if (this.div == null) { + this.init(); + } + + if (!mxUtils.isNode(tip)) { + this.div.innerHTML = tip.replace(/\n/g, '
'); + } else { + this.div.innerHTML = ''; + this.div.appendChild(tip); + } + + this.$div.place_tt(x + 20, y); + this.div.style.visibility = ''; + mxUtils.fit(this.div); +}; + +mxTooltipHandler.prototype.init = function () { + if (this.div === null || this.div === undefined) { + this.$div = $('
'); + this.div = this.$div[0]; + mxEvent.addGestureListeners(this.div, mxUtils.bind(this, function (evt) { + this.hideTooltip(); + })); + } +}; + +mxTooltipHandler.prototype.hideTooltip = function () { + if (this.div != null) { + this.div.style.visibility = 'hidden'; + this.div.innerHTML = ''; + } +}; + +mxEvent.addMouseWheelListener = function (func, container) { + if (null != func) { + var c = function c(container) { + null == container && (container = window.event); + var c; + c = mxClient.IS_FF ? -container.detail / 2 : container.wheelDelta / 120; + 0 != c && func(container, 0 < c); + }; + + mxClient.IS_NS && null == document.documentMode ? mxEvent.addListener(mxClient.IS_GC && null != container ? container : window, mxClient.IS_SF || mxClient.IS_GC ? 'mousewheel' : 'DOMMouseScroll', c) : mxEvent.addListener(document, 'mousewheel', c); + } +}; + +mxStencilRegistry.libraries.mockup = [SHAPES_PATH + '/mockup/mxMockupButtons.js']; +mxStencilRegistry.libraries.arrows2 = [SHAPES_PATH + '/mxArrows.js']; +mxStencilRegistry.libraries.atlassian = [STENCIL_PATH + '/atlassian.xml', SHAPES_PATH + '/mxAtlassian.js']; +mxStencilRegistry.libraries.bpmn = [SHAPES_PATH + '/bpmn/mxBpmnShape2.js', STENCIL_PATH + '/bpmn.xml']; +mxStencilRegistry.libraries.dfd = [SHAPES_PATH + '/mxDFD.js']; +mxStencilRegistry.libraries.er = [SHAPES_PATH + '/er/mxER.js']; +mxStencilRegistry.libraries.flowchart = [SHAPES_PATH + '/mxFlowchart.js', STENCIL_PATH + '/flowchart.xml']; +mxStencilRegistry.libraries.ios = [SHAPES_PATH + '/mockup/mxMockupiOS.js']; +mxStencilRegistry.libraries.rackGeneral = [SHAPES_PATH + '/rack/mxRack.js', STENCIL_PATH + '/rack/general.xml']; +mxStencilRegistry.libraries.rackF5 = [STENCIL_PATH + '/rack/f5.xml']; +mxStencilRegistry.libraries.lean_mapping = [SHAPES_PATH + '/mxLeanMap.js', STENCIL_PATH + '/lean_mapping.xml']; +mxStencilRegistry.libraries.basic = [SHAPES_PATH + '/mxBasic.js', STENCIL_PATH + '/basic.xml']; +mxStencilRegistry.libraries.ios7icons = [STENCIL_PATH + '/ios7/icons.xml']; +mxStencilRegistry.libraries.ios7ui = [SHAPES_PATH + '/ios7/mxIOS7Ui.js', STENCIL_PATH + '/ios7/misc.xml']; +mxStencilRegistry.libraries.android = [SHAPES_PATH + '/mxAndroid.js', STENCIL_PATH + '/android/android.xml']; +mxStencilRegistry.libraries['electrical/miscellaneous'] = [SHAPES_PATH + '/mxElectrical.js', STENCIL_PATH + '/electrical/miscellaneous.xml']; +mxStencilRegistry.libraries['electrical/transmission'] = [SHAPES_PATH + '/mxElectrical.js', STENCIL_PATH + '/electrical/transmission.xml']; +mxStencilRegistry.libraries['electrical/logic_gates'] = [SHAPES_PATH + '/mxElectrical.js', STENCIL_PATH + '/electrical/logic_gates.xml']; +mxStencilRegistry.libraries['electrical/abstract'] = [SHAPES_PATH + '/mxElectrical.js', STENCIL_PATH + '/electrical/abstract.xml']; +mxStencilRegistry.libraries.infographic = [SHAPES_PATH + '/mxInfographic.js']; +mxStencilRegistry.libraries['mockup/buttons'] = [SHAPES_PATH + '/mockup/mxMockupButtons.js']; +mxStencilRegistry.libraries['mockup/containers'] = [SHAPES_PATH + '/mockup/mxMockupContainers.js']; +mxStencilRegistry.libraries['mockup/forms'] = [SHAPES_PATH + '/mockup/mxMockupForms.js']; +mxStencilRegistry.libraries['mockup/graphics'] = [SHAPES_PATH + '/mockup/mxMockupGraphics.js', STENCIL_PATH + '/mockup/misc.xml']; +mxStencilRegistry.libraries['mockup/markup'] = [SHAPES_PATH + '/mockup/mxMockupMarkup.js']; +mxStencilRegistry.libraries['mockup/misc'] = [SHAPES_PATH + '/mockup/mxMockupMisc.js', STENCIL_PATH + '/mockup/misc.xml']; +mxStencilRegistry.libraries['mockup/navigation'] = [SHAPES_PATH + '/mockup/mxMockupNavigation.js', STENCIL_PATH + '/mockup/misc.xml']; +mxStencilRegistry.libraries['mockup/text'] = [SHAPES_PATH + '/mockup/mxMockupText.js']; +mxStencilRegistry.libraries.floorplan = [SHAPES_PATH + '/mxFloorplan.js', STENCIL_PATH + '/floorplan.xml']; +mxStencilRegistry.libraries.bootstrap = [SHAPES_PATH + '/mxBootstrap.js', STENCIL_PATH + '/bootstrap.xml']; +mxStencilRegistry.libraries.gmdl = [SHAPES_PATH + '/mxGmdl.js', STENCIL_PATH + '/gmdl.xml']; +mxStencilRegistry.libraries.gcp2 = [SHAPES_PATH + '/mxGCP2.js', STENCIL_PATH + '/gcp2.xml']; +mxStencilRegistry.libraries.cabinets = [SHAPES_PATH + '/mxCabinets.js', STENCIL_PATH + '/cabinets.xml']; +mxStencilRegistry.libraries.archimate = [SHAPES_PATH + '/mxArchiMate.js']; +mxStencilRegistry.libraries.archimate3 = [SHAPES_PATH + '/mxArchiMate3.js']; +mxStencilRegistry.libraries.sysml = [SHAPES_PATH + '/mxSysML.js']; +mxStencilRegistry.libraries.eip = [SHAPES_PATH + '/mxEip.js', STENCIL_PATH + '/eip.xml']; +mxStencilRegistry.libraries.networks = [SHAPES_PATH + '/mxNetworks.js', STENCIL_PATH + '/networks.xml']; +mxStencilRegistry.libraries.aws3d = [SHAPES_PATH + '/mxAWS3D.js', STENCIL_PATH + '/aws3d.xml']; +mxStencilRegistry.libraries.aws4 = [SHAPES_PATH + '/mxAWS4.js', STENCIL_PATH + '/aws4.xml']; +mxStencilRegistry.libraries.aws4b = [SHAPES_PATH + '/mxAWS4.js', STENCIL_PATH + '/aws4.xml']; +mxStencilRegistry.libraries.veeam = [STENCIL_PATH + '/veeam/2d.xml', STENCIL_PATH + '/veeam/3d.xml', STENCIL_PATH + '/veeam/veeam.xml']; +mxStencilRegistry.libraries.pid2inst = [SHAPES_PATH + '/pid2/mxPidInstruments.js']; +mxStencilRegistry.libraries.pid2misc = [SHAPES_PATH + '/pid2/mxPidMisc.js', STENCIL_PATH + '/pid/misc.xml']; +mxStencilRegistry.libraries.pid2valves = [SHAPES_PATH + '/pid2/mxPidValves.js']; +mxStencilRegistry.libraries.pidFlowSensors = [STENCIL_PATH + '/pid/flow_sensors.xml']; diff --git a/data/plugins/grafana-flowcharting/dist/Init.js b/data/plugins/grafana-flowcharting/dist/Init.js new file mode 100644 index 0000000000000..24bf4e82f339b --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/Init.js @@ -0,0 +1,18 @@ +"use strict"; + +window.urlParams = window.urlParams || {}; +window.MAX_REQUEST_SIZE = window.MAX_REQUEST_SIZE || 10485760; +window.MAX_AREA = window.MAX_AREA || 15000 * 15000; +window.EXPORT_URL = window.EXPORT_URL || '/export'; +window.SAVE_URL = window.SAVE_URL || '/save'; +window.OPEN_URL = window.OPEN_URL || '/open'; +window.RESOURCES_PATH = window.RESOURCES_PATH || 'resources'; +window.RESOURCE_BASE = window.RESOURCE_BASE || window.RESOURCES_PATH + '/grapheditor'; +window.STENCIL_PATH = window.STENCIL_PATH || 'stencils'; +window.IMAGE_PATH = window.IMAGE_PATH || 'images'; +window.STYLE_PATH = window.STYLE_PATH || 'styles'; +window.CSS_PATH = window.CSS_PATH || 'styles'; +window.OPEN_FORM = window.OPEN_FORM || 'open.html'; +window.mxBasePath = window.mxBasePath || '../../../src'; +window.mxLanguage = window.mxLanguage || urlParams['lang']; +window.mxLanguages = window.mxLanguages || ['de']; diff --git a/data/plugins/grafana-flowcharting/dist/README.md b/data/plugins/grafana-flowcharting/dist/README.md new file mode 100644 index 0000000000000..b307c0691f5c0 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/README.md @@ -0,0 +1,252 @@ +# Grafana Plugin Flowcharting + +![Banner](https://github.com/algenty/flowcharting-repository/blob/master/images/banner_large.png?raw=true) + +Flowcharting is a plugin for grafana. It aims to display complexe diagram draws with [draw.io](https://draw.io/) like Visio. Few examples : + * Technical architecture schema (Legacy, Cloud, Azure, AWS, GCP, Kubernetes, Terraform) + * Diagrams (network, electric, flows ...) + * Organic plans + * Floorplans + * UML plan + * Workflows (Jenkins, Ansible Tower, OpenShift, ...) + +Draw your artwork and monitor it. + +## Use case example + - Technical schema example +![example 1](https://github.com/algenty/flowcharting-repository/blob/master/images/fc_archi_example.png?raw=true) + +See more example at draw.io + +# Getting started + + +# Documentation + + +# Project site + + +# Changelog + +## [[0.5.0 SNAPSHOT]](https://algenty.github.io/flowcharting-repository/archives/agenty-flowcharting-panel-0.5.0-SNAPSHOT.zip) - 2019-10-13 +### Added + - 2 new modes for "Update text value" ([See example](https://algenty.github.io/flowcharting-repository/images/append_mode_ani.png)) + - Append (Space) : Concat metrics with a space as a separator + - Append (New line) : Concat metrics with a line break + - Variabilization in "Url" for link mapping ([See example](https://algenty.github.io/flowcharting-repository/images/variable_link_ani.png)) + - New check box to allow download images from draw.io ([See example](https://algenty.github.io/flowcharting-repository/images/drawio_source_ani.png)) + - New editor option : + - Other editor draw.io like internal website draw.io are supported + - Choose the theme of editor identification_mode_ani + - New identification mode for shapes when mouse cursor is over the rules or the mapping ([See example](https://algenty.github.io/flowcharting-repository/images/identification_mode_ani.png)) + - Support Dynamic shapes like Floorplan, isometric plans and more ([See example](https://algenty.github.io/flowcharting-repository/images/dynamic_shapes_ani.png)) + - New color mode for no SVG object like pictures/cliparts/images ([See example](https://algenty.github.io/flowcharting-repository/images/colormode_ani.png)) + - Graphs in tooltip ([See example](https://algenty.github.io/flowcharting-repository/images/tooltip_graph.png)) + - Color graph with defined colors in threshold + - Size of graph ([See example](https://algenty.github.io/flowcharting-repository/images/graph_size.png)) + - Define the orientation in tooltip for each metrics/graph in tooltips : horizontal or vertical ([See example](https://algenty.github.io/flowcharting-repository/images/tooltip_direction_ani.png)) + - Some optimizations, Display is twice as fast on load. + +### Fixed + - Fix color to reset when "Color on" is "Always/Critical" and metric is OK + - Fix border to empty instead black when "color mode" is "Fill" [(issue #24)](https://github.com/algenty/grafana-flowcharting/issues/24) + - Fix error when "Value On" is not "When metric displayed" + - Fix Link [(issue #37)](https://github.com/algenty/grafana-flowcharting/issues/37) + - Fix hyperlink text appears in white over flowchart [(issue #45)](https://github.com/algenty/grafana-flowcharting/issues/45) + - Fix "Multiple FlowCharts On a Dashboard", when edit, both are the same draw [(issue #48)](https://github.com/algenty/grafana-flowcharting/issues/48) + - Fix options after reload or variable changed [(issue #44)](https://github.com/algenty/grafana-flowcharting/issues/48) + - Fix auto reset zoom/unzoom when data refreshed, only ESC or change options on flowchart reset zoom now [(issue #38)](https://github.com/algenty/grafana-flowcharting/issues/38) + - Fix error for BPNM shapes [(Issue #51)](https://github.com/algenty/grafana-flowcharting/issues/51) + - Fix display when center and scale are checked on flowchart options. + - Fix Zoom with mouse wheel for firefox and Edge. + +## [[0.4.0]](https://algenty.github.io/flowcharting-repository/archives/agenty-flowcharting-panel-0.4.0.zip) - 2019-09-26 +### Added + - Draw.io editor ([see example](https://algenty.github.io/flowcharting-repository/images/openEditor_ani.gif)) + - Open draw.io with dark theme for better rendering + - Display waiting screen when loading xml definition. + - Upgrading libraries + - mxGraph 4.0.4 + - draw.io 11.2.8 + - Graph definition + - Adding download function to download source by http on load. ([See example](https://algenty.github.io/flowcharting-repository/images/download_ani.gif)) + - Metric + - Adding string support for state (See example) + - Zoom [(issue #19)](https://github.com/algenty/grafana-flowcharting/issues/19) ([See example](https://algenty.github.io/flowcharting-repository/images/zoom2_ani.gif)) + - On the mouse pointer : Ctrl + Mouse + - Hold right button to move diagram. + - double click on shape to zoom on. + - Escape key to restore. + - Tooltip/popup support ([see example](https://algenty.github.io/flowcharting-repository/images/tooltip2_ani.gif)) + - Grafana style css and date + - Adding metrics with color according levels + - Adding colors on metrics in tooltip + - Adding date of change + - Adding label input for metric + - Variables/templates support, accept variable like ${} ([See example](https://algenty.github.io/flowcharting-repository/images/variable_ani.gif)) + - In xml definition + - In text mapping when type in sring for "Range to text" and "Value to text" + - In link ovewrite + - full shapes from draw.io included ([See example](https://algenty.github.io/flowcharting-repository/images/shapes_ani.gif)) + - Some optimizations on render and display. + +### Fixed + - Optimization when refresh/render [(issue #15)](https://github.com/algenty/grafana-flowcharting/issues/15) + - No decimal fixed when 0 [(issue #23)](https://github.com/algenty/grafana-flowcharting/issues/23) + - Text substring and color [(issues #29)](https://github.com/algenty/grafana-flowcharting/issues/29) + - Fix formatted text when label is html [(issues #21)](https://github.com/algenty/grafana-flowcharting/issues/29) + - Work around a bug since Grafana 6+ [(issues 19426 grafana)](https://github.com/grafana/grafana/issues/19426) + +## [[0.3.0]](https://algenty.github.io/flowcharting-repository/archives/agenty-flowcharting-panel-0.3.0.zip) - 2019-05-07 +### Added + + /!\ Possible breaking change with 0.2.0 and 0.2.5 but it will compatible with next release. + + - Migration process for next release. + - Dynamic documentation/Examples on popover (thx SCHKN) + - Params link option, add params of dashboard to link. + - Full review of code (ES6 Class mode) + - Unit test with jest to increase quality + - Fill/text/stoke rules on the same object is possible. + - Mapping selector helper (chain in mapping) + - Icon overlay state (display icon warning when NOK) + - Implemented the conditions to display text according to the states. + - new inspect Tab with : + - Renamer ID (double click on ID) + - State status + - Debug mode + - Custom Link Mapping overrite. + +### Fixed + - Substring replace on text [(Issue #8)](https://github.com/algenty/grafana-flowcharting/issues/8) + - Editor object not found Exception [(Issue #1)](https://github.com/algenty/grafana-flowcharting/issues/1) + - Original Link [(Issue #9)](https://github.com/algenty/grafana-flowcharting/issues/9) + - Fixed Change the colors [(Issue #14)](https://github.com/algenty/grafana-flowcharting/issues/14) + - Fixed Unit [(Issue #12)](https://github.com/algenty/grafana-flowcharting/issues/12) + +## [[0.2.5]](https://algenty.github.io/flowcharting-repository/archives/agenty-flowcharting-panel-0.2.5.zip) - 2019-04-19 +### Added + - Mapping Helper for select object with mouse + +### Fixed + - Substring replace on text [(Issue #8)](https://github.com/algenty/grafana-flowcharting/issues/8) + - Editor object not found Exception [(Issue #1)](https://github.com/algenty/grafana-flowcharting/issues/1) + +## [0.2.0] - 2019-03-18 +### Added + - Display graph through xml definition + - Calibrate display (scale, center, background) + - Inspect tab to test states and shape from graph. + - Mapping values and colors (use stroke in color options for arrows instead fill) + - String type added with range or value mapping. + - Date type added + - multi rules with expand/collapes for better display, possibility to reorg rules + +## [0.1.0] - 2019-09-02 +### Added + - Display graph with mxgraph libs + - Inspect tab to explore object in graph and preview colors + + +# Annex +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +# Cooming soon/Roadmap + +## 1.0 Next/Requested enhancements + - [ ] Custom libs. + - [X] Internat draw.io website [(issue #43)](https://github.com/algenty/grafana-flowcharting/issues/43) + - [X] Display tooltip (done in 0.4.0) + - [ ] Export SVG, png, options + - [X] Add data in tooltip (done in 0.4.0) + - [X] Use variables/templates in graph (done in 0.4.0) + - [X] Add custom stencils/libs from draw.io (done in 0.4.0) + - [ ] Support light theme + - [ ] Annotation + - [X] Url source download (done in 0.4.0) + - [ ] Special rule according level (hide, show, change form, move, infront, in back, attributes, ...) + - [ ] Custom variables like ${_label},${_value}, ${_alias}, ${_rule}, ${_level} ... + - [X] Variable support in link (done in 0.5.0) + - [X] Zoom/Unzoom (done in 0.4.0) + - [ ] Shared graph crosshair + - [ ] CSV source + - [ ] Map/search shape by value + - [ ] Variables support for downloaded source and compressed source + - [ ] Multi graph with auto link when errors + - [ ] Gradien Mode for color + - [ ] More than 3 colors + - [X] Graph in tooltip + - [ ] Histogram + - [ ] Merge Graphs + - [ ] Filter for null values in graph + - [ ] Inspector on series + - [X] New style for image : imageBackground, imageBorder + - [X] Support cloud images from draw.io + - [X] Support images from draw.io (done in 0.5.0) + - [X] Add append mode on text with CR or space (done in 0.5.0) + +# Support or Contact + + - Having troubles with flowcharting ? Check out [issues](https://github.com/algenty/grafana-flowcharting/issues) + - Email : + - Twitter : https://twitter.com/gf_flowcharting + +# Dependencies + +## Grafane flowcharting plugin dependencies + +* [AngularJS] - HTML enhanced for web apps! +* [lodash] - awesome web-based text editor +* [jquery] - Markdown parser done right. Fast and easy to extend. +* [mxGraph] - great UI boilerplate for modern web apps +* [pako] - Zlib port to javascript +* [vkbeautify] - Pretty prints and minifies XML/JSON/SQL/CSV +* [sanitizer] - Caja's HTML Sanitizer + +## Build dependencies + +* [jest] - Delightful JavaScript Testing +* [express] - Fast, unopinionated, minimalist web framework +* [babel] - Soft cushion between you all the cool new file formats being developed for node.js such as CoffeeScript, SASS, and Jade. +* [grunt] - The JavaScript Task Runner +* [webpack] - Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff. + +# Installation + +Flowcharting requires [Grafana](https://www.grafana.com/) v5+ to run (not tested lower version) +Download and install it + +## Manualy +```sh +$ cd $grafana_home/data/plugin +$ wget --no-check-certificate https://github.com/algenty/grafana-flowcharting/archive/master.zip +$ unzip master.zip +``` + +## grafana-cli + +```sh +grafana-cli plugins install agenty-flowcharting-panel +``` +## Build + +```sh +$ git clone https://github.com/algenty/grafana-flowcharting +$ yarn install --dev +$ yarn build init +$ yarn build +$ # Make zip file plugin in archives dir +$ yarn build archive +$ # for dev watching +$ yarn build dev +``` + +## Class diagram +https://www.draw.io/?chrome=0&lightbox=1&url=https%3A%2F%2Fraw.githubusercontent.com%2Falgenty%2Fflowcharting-repository%2Fmaster%2Fgraphs%2FFlowcharting_carto.drawio + +## Event diagram (In progress) +https://www.draw.io/?chrome=0&lightbox=1&url=https%3A%2F%2Fraw.githubusercontent.com%2Falgenty%2Fflowcharting-repository%2Fmaster%2Fgraphs%2FFlowcharting_Events.drawio diff --git a/data/plugins/grafana-flowcharting/dist/Shapes.js b/data/plugins/grafana-flowcharting/dist/Shapes.js new file mode 100644 index 0000000000000..00caf419a6211 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/Shapes.js @@ -0,0 +1,3096 @@ +"use strict"; + +(function () { + function CubeShape() { + mxCylinder.call(this); + } + + ; + mxUtils.extend(CubeShape, mxCylinder); + CubeShape.prototype.size = 20; + + CubeShape.prototype.redrawPath = function (path, x, y, w, h, isForeground) { + var s = Math.max(0, Math.min(w, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size))))); + + if (isForeground) { + path.moveTo(s, h); + path.lineTo(s, s); + path.lineTo(0, 0); + path.moveTo(s, s); + path.lineTo(w, s); + path.end(); + } else { + path.moveTo(0, 0); + path.lineTo(w - s, 0); + path.lineTo(w, s); + path.lineTo(w, h); + path.lineTo(s, h); + path.lineTo(0, h - s); + path.lineTo(0, 0); + path.close(); + path.end(); + } + }; + + CubeShape.prototype.getLabelMargins = function (rect) { + if (mxUtils.getValue(this.style, 'boundedLbl', false)) { + var s = parseFloat(mxUtils.getValue(this.style, 'size', this.size)) * this.scale; + return new mxRectangle(s, s, 0, 0); + } + + return null; + }; + + mxCellRenderer.registerShape('cube', CubeShape); + var tan30 = Math.tan(mxUtils.toRadians(30)); + var tan30Dx = (0.5 - tan30) / 2; + + function IsoRectangleShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(IsoRectangleShape, mxActor); + IsoRectangleShape.prototype.size = 20; + + IsoRectangleShape.prototype.redrawPath = function (path, x, y, w, h) { + var m = Math.min(w, h / tan30); + path.translate((w - m) / 2, (h - m) / 2 + m / 4); + path.moveTo(0, 0.25 * m); + path.lineTo(0.5 * m, m * tan30Dx); + path.lineTo(m, 0.25 * m); + path.lineTo(0.5 * m, (0.5 - tan30Dx) * m); + path.lineTo(0, 0.25 * m); + path.close(); + path.end(); + }; + + mxCellRenderer.registerShape('isoRectangle', IsoRectangleShape); + + function IsoCubeShape() { + mxCylinder.call(this); + } + + ; + mxUtils.extend(IsoCubeShape, mxCylinder); + IsoCubeShape.prototype.size = 20; + + IsoCubeShape.prototype.redrawPath = function (path, x, y, w, h, isForeground) { + var m = Math.min(w, h / (0.5 + tan30)); + + if (isForeground) { + path.moveTo(0, 0.25 * m); + path.lineTo(0.5 * m, (0.5 - tan30Dx) * m); + path.lineTo(m, 0.25 * m); + path.moveTo(0.5 * m, (0.5 - tan30Dx) * m); + path.lineTo(0.5 * m, (1 - tan30Dx) * m); + path.end(); + } else { + path.translate((w - m) / 2, (h - m) / 2); + path.moveTo(0, 0.25 * m); + path.lineTo(0.5 * m, m * tan30Dx); + path.lineTo(m, 0.25 * m); + path.lineTo(m, 0.75 * m); + path.lineTo(0.5 * m, (1 - tan30Dx) * m); + path.lineTo(0, 0.75 * m); + path.close(); + path.end(); + } + }; + + mxCellRenderer.registerShape('isoCube', IsoCubeShape); + + function DataStoreShape() { + mxCylinder.call(this); + } + + ; + mxUtils.extend(DataStoreShape, mxCylinder); + + DataStoreShape.prototype.redrawPath = function (c, x, y, w, h, isForeground) { + var dy = Math.min(h / 2, Math.round(h / 8) + this.strokewidth - 1); + + if (isForeground && this.fill != null || !isForeground && this.fill == null) { + c.moveTo(0, dy); + c.curveTo(0, 2 * dy, w, 2 * dy, w, dy); + + if (!isForeground) { + c.stroke(); + c.begin(); + } + + c.translate(0, dy / 2); + c.moveTo(0, dy); + c.curveTo(0, 2 * dy, w, 2 * dy, w, dy); + + if (!isForeground) { + c.stroke(); + c.begin(); + } + + c.translate(0, dy / 2); + c.moveTo(0, dy); + c.curveTo(0, 2 * dy, w, 2 * dy, w, dy); + + if (!isForeground) { + c.stroke(); + c.begin(); + } + + c.translate(0, -dy); + } + + if (!isForeground) { + c.moveTo(0, dy); + c.curveTo(0, -dy / 3, w, -dy / 3, w, dy); + c.lineTo(w, h - dy); + c.curveTo(w, h + dy / 3, 0, h + dy / 3, 0, h - dy); + c.close(); + } + }; + + DataStoreShape.prototype.getLabelMargins = function (rect) { + return new mxRectangle(0, 2.5 * Math.min(rect.height / 2, Math.round(rect.height / 8) + this.strokewidth - 1) * this.scale, 0, 0); + }; + + mxCellRenderer.registerShape('datastore', DataStoreShape); + + function NoteShape() { + mxCylinder.call(this); + } + + ; + mxUtils.extend(NoteShape, mxCylinder); + NoteShape.prototype.size = 30; + + NoteShape.prototype.redrawPath = function (path, x, y, w, h, isForeground) { + var s = Math.max(0, Math.min(w, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size))))); + + if (isForeground) { + path.moveTo(w - s, 0); + path.lineTo(w - s, s); + path.lineTo(w, s); + path.end(); + } else { + path.moveTo(0, 0); + path.lineTo(w - s, 0); + path.lineTo(w, s); + path.lineTo(w, h); + path.lineTo(0, h); + path.lineTo(0, 0); + path.close(); + path.end(); + } + }; + + mxCellRenderer.registerShape('note', NoteShape); + + function SwitchShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(SwitchShape, mxActor); + + SwitchShape.prototype.redrawPath = function (c, x, y, w, h) { + var curve = 0.5; + c.moveTo(0, 0); + c.quadTo(w / 2, h * curve, w, 0); + c.quadTo(w * (1 - curve), h / 2, w, h); + c.quadTo(w / 2, h * (1 - curve), 0, h); + c.quadTo(w * curve, h / 2, 0, 0); + c.end(); + }; + + mxCellRenderer.registerShape('switch', SwitchShape); + + function FolderShape() { + mxCylinder.call(this); + } + + ; + mxUtils.extend(FolderShape, mxCylinder); + FolderShape.prototype.tabWidth = 60; + FolderShape.prototype.tabHeight = 20; + FolderShape.prototype.tabPosition = 'right'; + + FolderShape.prototype.redrawPath = function (path, x, y, w, h, isForeground) { + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'tabWidth', this.tabWidth)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'tabHeight', this.tabHeight)))); + var tp = mxUtils.getValue(this.style, 'tabPosition', this.tabPosition); + + if (isForeground) { + if (tp == 'left') { + path.moveTo(0, dy); + path.lineTo(dx, dy); + } else { + path.moveTo(w - dx, dy); + path.lineTo(w, dy); + } + + path.end(); + } else { + if (tp == 'left') { + path.moveTo(0, 0); + path.lineTo(dx, 0); + path.lineTo(dx, dy); + path.lineTo(w, dy); + } else { + path.moveTo(0, dy); + path.lineTo(w - dx, dy); + path.lineTo(w - dx, 0); + path.lineTo(w, 0); + } + + path.lineTo(w, h); + path.lineTo(0, h); + path.lineTo(0, dy); + path.close(); + path.end(); + } + }; + + mxCellRenderer.registerShape('folder', FolderShape); + + function CardShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(CardShape, mxActor); + CardShape.prototype.size = 30; + + CardShape.prototype.isRoundable = function () { + return true; + }; + + CardShape.prototype.redrawPath = function (c, x, y, w, h) { + var s = Math.max(0, Math.min(w, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size))))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(s, 0), new mxPoint(w, 0), new mxPoint(w, h), new mxPoint(0, h), new mxPoint(0, s)], this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('card', CardShape); + + function TapeShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(TapeShape, mxActor); + TapeShape.prototype.size = 0.4; + + TapeShape.prototype.redrawPath = function (c, x, y, w, h) { + var dy = h * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var fy = 1.4; + c.moveTo(0, dy / 2); + c.quadTo(w / 4, dy * fy, w / 2, dy / 2); + c.quadTo(w * 3 / 4, dy * (1 - fy), w, dy / 2); + c.lineTo(w, h - dy / 2); + c.quadTo(w * 3 / 4, h - dy * fy, w / 2, h - dy / 2); + c.quadTo(w / 4, h - dy * (1 - fy), 0, h - dy / 2); + c.lineTo(0, dy / 2); + c.close(); + c.end(); + }; + + TapeShape.prototype.getLabelBounds = function (rect) { + if (mxUtils.getValue(this.style, 'boundedLbl', false)) { + var size = mxUtils.getValue(this.style, 'size', this.size); + var w = rect.width; + var h = rect.height; + + if (this.direction == null || this.direction == mxConstants.DIRECTION_EAST || this.direction == mxConstants.DIRECTION_WEST) { + var dy = h * size; + return new mxRectangle(rect.x, rect.y + dy, w, h - 2 * dy); + } else { + var dx = w * size; + return new mxRectangle(rect.x + dx, rect.y, w - 2 * dx, h); + } + } + + return rect; + }; + + mxCellRenderer.registerShape('tape', TapeShape); + + function DocumentShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(DocumentShape, mxActor); + DocumentShape.prototype.size = 0.3; + + DocumentShape.prototype.getLabelMargins = function (rect) { + if (mxUtils.getValue(this.style, 'boundedLbl', false)) { + return new mxRectangle(0, 0, 0, parseFloat(mxUtils.getValue(this.style, 'size', this.size)) * rect.height); + } + + return null; + }; + + DocumentShape.prototype.redrawPath = function (c, x, y, w, h) { + var dy = h * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var fy = 1.4; + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h - dy / 2); + c.quadTo(w * 3 / 4, h - dy * fy, w / 2, h - dy / 2); + c.quadTo(w / 4, h - dy * (1 - fy), 0, h - dy / 2); + c.lineTo(0, dy / 2); + c.close(); + c.end(); + }; + + mxCellRenderer.registerShape('document', DocumentShape); + var cylinderGetCylinderSize = mxCylinder.prototype.getCylinderSize; + + mxCylinder.prototype.getCylinderSize = function (x, y, w, h) { + var size = mxUtils.getValue(this.style, 'size'); + + if (size != null) { + return h * Math.max(0, Math.min(1, size)); + } else { + return cylinderGetCylinderSize.apply(this, arguments); + } + }; + + mxCylinder.prototype.getLabelMargins = function (rect) { + if (mxUtils.getValue(this.style, 'boundedLbl', false)) { + var size = mxUtils.getValue(this.style, 'size', 0.15) * 2; + return new mxRectangle(0, Math.min(this.maxHeight * this.scale, rect.height * size), 0, 0); + } + + return null; + }; + + function ParallelogramShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(ParallelogramShape, mxActor); + ParallelogramShape.prototype.size = 0.2; + + ParallelogramShape.prototype.isRoundable = function () { + return true; + }; + + ParallelogramShape.prototype.redrawPath = function (c, x, y, w, h) { + var dx = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, h), new mxPoint(dx, 0), new mxPoint(w, 0), new mxPoint(w - dx, h)], this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('parallelogram', ParallelogramShape); + + function TrapezoidShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(TrapezoidShape, mxActor); + TrapezoidShape.prototype.size = 0.2; + + TrapezoidShape.prototype.isRoundable = function () { + return true; + }; + + TrapezoidShape.prototype.redrawPath = function (c, x, y, w, h) { + var dx = w * Math.max(0, Math.min(0.5, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, h), new mxPoint(dx, 0), new mxPoint(w - dx, 0), new mxPoint(w, h)], this.isRounded, arcSize, true); + }; + + mxCellRenderer.registerShape('trapezoid', TrapezoidShape); + + function CurlyBracketShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(CurlyBracketShape, mxActor); + CurlyBracketShape.prototype.size = 0.5; + + CurlyBracketShape.prototype.redrawPath = function (c, x, y, w, h) { + c.setFillColor(null); + var s = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(w, 0), new mxPoint(s, 0), new mxPoint(s, h / 2), new mxPoint(0, h / 2), new mxPoint(s, h / 2), new mxPoint(s, h), new mxPoint(w, h)], this.isRounded, arcSize, false); + c.end(); + }; + + mxCellRenderer.registerShape('curlyBracket', CurlyBracketShape); + + function ParallelMarkerShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(ParallelMarkerShape, mxActor); + + ParallelMarkerShape.prototype.redrawPath = function (c, x, y, w, h) { + c.setStrokeWidth(1); + c.setFillColor(this.stroke); + var w2 = w / 5; + c.rect(0, 0, w2, h); + c.fillAndStroke(); + c.rect(2 * w2, 0, w2, h); + c.fillAndStroke(); + c.rect(4 * w2, 0, w2, h); + c.fillAndStroke(); + }; + + mxCellRenderer.registerShape('parallelMarker', ParallelMarkerShape); + + function HandJiggle(canvas, defaultVariation) { + this.canvas = canvas; + this.canvas.setLineJoin('round'); + this.canvas.setLineCap('round'); + this.defaultVariation = defaultVariation; + this.originalLineTo = this.canvas.lineTo; + this.canvas.lineTo = mxUtils.bind(this, HandJiggle.prototype.lineTo); + this.originalMoveTo = this.canvas.moveTo; + this.canvas.moveTo = mxUtils.bind(this, HandJiggle.prototype.moveTo); + this.originalClose = this.canvas.close; + this.canvas.close = mxUtils.bind(this, HandJiggle.prototype.close); + this.originalQuadTo = this.canvas.quadTo; + this.canvas.quadTo = mxUtils.bind(this, HandJiggle.prototype.quadTo); + this.originalCurveTo = this.canvas.curveTo; + this.canvas.curveTo = mxUtils.bind(this, HandJiggle.prototype.curveTo); + this.originalArcTo = this.canvas.arcTo; + this.canvas.arcTo = mxUtils.bind(this, HandJiggle.prototype.arcTo); + } + + ; + + HandJiggle.prototype.moveTo = function (endX, endY) { + this.originalMoveTo.apply(this.canvas, arguments); + this.lastX = endX; + this.lastY = endY; + this.firstX = endX; + this.firstY = endY; + }; + + HandJiggle.prototype.close = function () { + if (this.firstX != null && this.firstY != null) { + this.lineTo(this.firstX, this.firstY); + this.originalClose.apply(this.canvas, arguments); + } + + this.originalClose.apply(this.canvas, arguments); + }; + + HandJiggle.prototype.quadTo = function (x1, y1, x2, y2) { + this.originalQuadTo.apply(this.canvas, arguments); + this.lastX = x2; + this.lastY = y2; + }; + + HandJiggle.prototype.curveTo = function (x1, y1, x2, y2, x3, y3) { + this.originalCurveTo.apply(this.canvas, arguments); + this.lastX = x3; + this.lastY = y3; + }; + + HandJiggle.prototype.arcTo = function (rx, ry, angle, largeArcFlag, sweepFlag, x, y) { + this.originalArcTo.apply(this.canvas, arguments); + this.lastX = x; + this.lastY = y; + }; + + HandJiggle.prototype.lineTo = function (endX, endY) { + if (this.lastX != null && this.lastY != null) { + var sign = function sign(x) { + return typeof x === 'number' ? x ? x < 0 ? -1 : 1 : x === x ? 0 : NaN : NaN; + }; + + var dx = Math.abs(endX - this.lastX); + var dy = Math.abs(endY - this.lastY); + var dist = Math.sqrt(dx * dx + dy * dy); + + if (dist < 2) { + this.originalLineTo.apply(this.canvas, arguments); + this.lastX = endX; + this.lastY = endY; + return; + } + + var segs = Math.round(dist / 10); + var variation = this.defaultVariation; + + if (segs < 5) { + segs = 5; + variation /= 3; + } + + var stepX = sign(endX - this.lastX) * dx / segs; + var stepY = sign(endY - this.lastY) * dy / segs; + var fx = dx / dist; + var fy = dy / dist; + + for (var s = 0; s < segs; s++) { + var x = stepX * s + this.lastX; + var y = stepY * s + this.lastY; + var offset = (Math.random() - 0.5) * variation; + this.originalLineTo.call(this.canvas, x - offset * fy, y - offset * fx); + } + + this.originalLineTo.call(this.canvas, endX, endY); + this.lastX = endX; + this.lastY = endY; + } else { + this.originalLineTo.apply(this.canvas, arguments); + this.lastX = endX; + this.lastY = endY; + } + }; + + HandJiggle.prototype.destroy = function () { + this.canvas.lineTo = this.originalLineTo; + this.canvas.moveTo = this.originalMoveTo; + this.canvas.close = this.originalClose; + this.canvas.quadTo = this.originalQuadTo; + this.canvas.curveTo = this.originalCurveTo; + this.canvas.arcTo = this.originalArcTo; + }; + + var mxShapePaint0 = mxShape.prototype.paint; + mxShape.prototype.defaultJiggle = 1.5; + + mxShape.prototype.paint = function (c) { + if (this.style != null && mxUtils.getValue(this.style, 'comic', '0') != '0' && c.handHiggle == null) { + c.handJiggle = new HandJiggle(c, mxUtils.getValue(this.style, 'jiggle', this.defaultJiggle)); + } + + mxShapePaint0.apply(this, arguments); + + if (c.handJiggle != null) { + c.handJiggle.destroy(); + delete c.handJiggle; + } + }; + + mxRhombus.prototype.defaultJiggle = 2; + var mxRectangleShapeIsHtmlAllowed0 = mxRectangleShape.prototype.isHtmlAllowed; + + mxRectangleShape.prototype.isHtmlAllowed = function () { + return (this.style == null || mxUtils.getValue(this.style, 'comic', '0') == '0') && mxRectangleShapeIsHtmlAllowed0.apply(this, arguments); + }; + + var mxRectangleShapePaintBackground0 = mxRectangleShape.prototype.paintBackground; + + mxRectangleShape.prototype.paintBackground = function (c, x, y, w, h) { + if (c.handJiggle == null) { + mxRectangleShapePaintBackground0.apply(this, arguments); + } else { + var events = true; + + if (this.style != null) { + events = mxUtils.getValue(this.style, mxConstants.STYLE_POINTER_EVENTS, '1') == '1'; + } + + if (events || this.fill != null && this.fill != mxConstants.NONE || this.stroke != null && this.stroke != mxConstants.NONE) { + if (!events && (this.fill == null || this.fill == mxConstants.NONE)) { + c.pointerEvents = false; + } + + c.begin(); + + if (this.isRounded) { + var r = 0; + + if (mxUtils.getValue(this.style, mxConstants.STYLE_ABSOLUTE_ARCSIZE, 0) == '1') { + r = Math.min(w / 2, Math.min(h / 2, mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2)); + } else { + var f = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.RECTANGLE_ROUNDING_FACTOR * 100) / 100; + r = Math.min(w * f, h * f); + } + + c.moveTo(x + r, y); + c.lineTo(x + w - r, y); + c.quadTo(x + w, y, x + w, y + r); + c.lineTo(x + w, y + h - r); + c.quadTo(x + w, y + h, x + w - r, y + h); + c.lineTo(x + r, y + h); + c.quadTo(x, y + h, x, y + h - r); + c.lineTo(x, y + r); + c.quadTo(x, y, x + r, y); + } else { + c.moveTo(x, y); + c.lineTo(x + w, y); + c.lineTo(x + w, y + h); + c.lineTo(x, y + h); + c.lineTo(x, y); + } + + c.close(); + c.end(); + c.fillAndStroke(); + } + } + }; + + var mxRectangleShapePaintForeground0 = mxRectangleShape.prototype.paintForeground; + + mxRectangleShape.prototype.paintForeground = function (c, x, y, w, h) { + if (c.handJiggle == null) { + mxRectangleShapePaintForeground0.apply(this, arguments); + } + }; + + function ProcessShape() { + mxRectangleShape.call(this); + } + + ; + mxUtils.extend(ProcessShape, mxRectangleShape); + ProcessShape.prototype.size = 0.1; + + ProcessShape.prototype.isHtmlAllowed = function () { + return false; + }; + + ProcessShape.prototype.getLabelBounds = function (rect) { + if (mxUtils.getValue(this.state.style, mxConstants.STYLE_HORIZONTAL, true) == (this.direction == null || this.direction == mxConstants.DIRECTION_EAST || this.direction == mxConstants.DIRECTION_WEST)) { + var w = rect.width; + var h = rect.height; + var r = new mxRectangle(rect.x, rect.y, w, h); + var inset = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + + if (this.isRounded) { + var f = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.RECTANGLE_ROUNDING_FACTOR * 100) / 100; + inset = Math.max(inset, Math.min(w * f, h * f)); + } + + r.x += Math.round(inset); + r.width -= Math.round(2 * inset); + return r; + } + + return rect; + }; + + ProcessShape.prototype.paintForeground = function (c, x, y, w, h) { + var inset = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + + if (this.isRounded) { + var f = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.RECTANGLE_ROUNDING_FACTOR * 100) / 100; + inset = Math.max(inset, Math.min(w * f, h * f)); + } + + inset = Math.round(inset); + c.begin(); + c.moveTo(x + inset, y); + c.lineTo(x + inset, y + h); + c.moveTo(x + w - inset, y); + c.lineTo(x + w - inset, y + h); + c.end(); + c.stroke(); + mxRectangleShape.prototype.paintForeground.apply(this, arguments); + }; + + mxCellRenderer.registerShape('process', ProcessShape); + + function TransparentShape() { + mxRectangleShape.call(this); + } + + ; + mxUtils.extend(TransparentShape, mxRectangleShape); + + TransparentShape.prototype.paintBackground = function (c, x, y, w, h) { + c.setFillColor(mxConstants.NONE); + c.rect(x, y, w, h); + c.fill(); + }; + + TransparentShape.prototype.paintForeground = function (c, x, y, w, h) {}; + + mxCellRenderer.registerShape('transparent', TransparentShape); + + function CalloutShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(CalloutShape, mxHexagon); + CalloutShape.prototype.size = 30; + CalloutShape.prototype.position = 0.5; + CalloutShape.prototype.position2 = 0.5; + CalloutShape.prototype.base = 20; + + CalloutShape.prototype.getLabelMargins = function () { + return new mxRectangle(0, 0, 0, parseFloat(mxUtils.getValue(this.style, 'size', this.size)) * this.scale); + }; + + CalloutShape.prototype.isRoundable = function () { + return true; + }; + + CalloutShape.prototype.redrawPath = function (c, x, y, w, h) { + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + var s = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var dx = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'position', this.position)))); + var dx2 = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'position2', this.position2)))); + var base = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'base', this.base)))); + this.addPoints(c, [new mxPoint(0, 0), new mxPoint(w, 0), new mxPoint(w, h - s), new mxPoint(Math.min(w, dx + base), h - s), new mxPoint(dx2, h), new mxPoint(Math.max(0, dx), h - s), new mxPoint(0, h - s)], this.isRounded, arcSize, true, [4]); + }; + + mxCellRenderer.registerShape('callout', CalloutShape); + + function StepShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(StepShape, mxActor); + StepShape.prototype.size = 0.2; + StepShape.prototype.fixedSize = 20; + + StepShape.prototype.isRoundable = function () { + return true; + }; + + StepShape.prototype.redrawPath = function (c, x, y, w, h) { + var fixed = mxUtils.getValue(this.style, 'fixedSize', '0') != '0'; + var s = fixed ? Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'size', this.fixedSize)))) : w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, 0), new mxPoint(w - s, 0), new mxPoint(w, h / 2), new mxPoint(w - s, h), new mxPoint(0, h), new mxPoint(s, h / 2)], this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('step', StepShape); + + function HexagonShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(HexagonShape, mxHexagon); + HexagonShape.prototype.size = 0.25; + + HexagonShape.prototype.isRoundable = function () { + return true; + }; + + HexagonShape.prototype.redrawPath = function (c, x, y, w, h) { + var s = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(s, 0), new mxPoint(w - s, 0), new mxPoint(w, 0.5 * h), new mxPoint(w - s, h), new mxPoint(s, h), new mxPoint(0, 0.5 * h)], this.isRounded, arcSize, true); + }; + + mxCellRenderer.registerShape('hexagon', HexagonShape); + + function PlusShape() { + mxRectangleShape.call(this); + } + + ; + mxUtils.extend(PlusShape, mxRectangleShape); + + PlusShape.prototype.isHtmlAllowed = function () { + return false; + }; + + PlusShape.prototype.paintForeground = function (c, x, y, w, h) { + var border = Math.min(w / 5, h / 5) + 1; + c.begin(); + c.moveTo(x + w / 2, y + border); + c.lineTo(x + w / 2, y + h - border); + c.moveTo(x + border, y + h / 2); + c.lineTo(x + w - border, y + h / 2); + c.end(); + c.stroke(); + mxRectangleShape.prototype.paintForeground.apply(this, arguments); + }; + + mxCellRenderer.registerShape('plus', PlusShape); + var mxRhombusPaintVertexShape = mxRhombus.prototype.paintVertexShape; + + mxRhombus.prototype.getLabelBounds = function (rect) { + if (this.style['double'] == 1) { + var margin = (Math.max(2, this.strokewidth + 1) * 2 + parseFloat(this.style[mxConstants.STYLE_MARGIN] || 0)) * this.scale; + return new mxRectangle(rect.x + margin, rect.y + margin, rect.width - 2 * margin, rect.height - 2 * margin); + } + + return rect; + }; + + mxRhombus.prototype.paintVertexShape = function (c, x, y, w, h) { + mxRhombusPaintVertexShape.apply(this, arguments); + + if (!this.outline && this.style['double'] == 1) { + var margin = Math.max(2, this.strokewidth + 1) * 2 + parseFloat(this.style[mxConstants.STYLE_MARGIN] || 0); + x += margin; + y += margin; + w -= 2 * margin; + h -= 2 * margin; + + if (w > 0 && h > 0) { + c.setShadow(false); + mxRhombusPaintVertexShape.apply(this, [c, x, y, w, h]); + } + } + }; + + function ExtendedShape() { + mxRectangleShape.call(this); + } + + ; + mxUtils.extend(ExtendedShape, mxRectangleShape); + + ExtendedShape.prototype.isHtmlAllowed = function () { + return false; + }; + + ExtendedShape.prototype.getLabelBounds = function (rect) { + if (this.style['double'] == 1) { + var margin = (Math.max(2, this.strokewidth + 1) + parseFloat(this.style[mxConstants.STYLE_MARGIN] || 0)) * this.scale; + return new mxRectangle(rect.x + margin, rect.y + margin, rect.width - 2 * margin, rect.height - 2 * margin); + } + + return rect; + }; + + ExtendedShape.prototype.paintForeground = function (c, x, y, w, h) { + if (this.style != null) { + if (!this.outline && this.style['double'] == 1) { + var margin = Math.max(2, this.strokewidth + 1) + parseFloat(this.style[mxConstants.STYLE_MARGIN] || 0); + x += margin; + y += margin; + w -= 2 * margin; + h -= 2 * margin; + + if (w > 0 && h > 0) { + mxRectangleShape.prototype.paintBackground.apply(this, arguments); + } + } + + c.setDashed(false); + var counter = 0; + var shape = null; + + do { + shape = mxCellRenderer.defaultShapes[this.style['symbol' + counter]]; + + if (shape != null) { + var align = this.style['symbol' + counter + 'Align']; + var valign = this.style['symbol' + counter + 'VerticalAlign']; + var width = this.style['symbol' + counter + 'Width']; + var height = this.style['symbol' + counter + 'Height']; + var spacing = this.style['symbol' + counter + 'Spacing'] || 0; + var vspacing = this.style['symbol' + counter + 'VSpacing'] || spacing; + var arcspacing = this.style['symbol' + counter + 'ArcSpacing']; + + if (arcspacing != null) { + var arcSize = this.getArcSize(w + this.strokewidth, h + this.strokewidth) * arcspacing; + spacing += arcSize; + vspacing += arcSize; + } + + var x2 = x; + var y2 = y; + + if (align == mxConstants.ALIGN_CENTER) { + x2 += (w - width) / 2; + } else if (align == mxConstants.ALIGN_RIGHT) { + x2 += w - width - spacing; + } else { + x2 += spacing; + } + + if (valign == mxConstants.ALIGN_MIDDLE) { + y2 += (h - height) / 2; + } else if (valign == mxConstants.ALIGN_BOTTOM) { + y2 += h - height - vspacing; + } else { + y2 += vspacing; + } + + c.save(); + var tmp = new shape(); + tmp.style = this.style; + shape.prototype.paintVertexShape.call(tmp, c, x2, y2, width, height); + c.restore(); + } + + counter++; + } while (shape != null); + } + + mxRectangleShape.prototype.paintForeground.apply(this, arguments); + }; + + mxCellRenderer.registerShape('ext', ExtendedShape); + + function MessageShape() { + mxCylinder.call(this); + } + + ; + mxUtils.extend(MessageShape, mxCylinder); + + MessageShape.prototype.redrawPath = function (path, x, y, w, h, isForeground) { + if (isForeground) { + path.moveTo(0, 0); + path.lineTo(w / 2, h / 2); + path.lineTo(w, 0); + path.end(); + } else { + path.moveTo(0, 0); + path.lineTo(w, 0); + path.lineTo(w, h); + path.lineTo(0, h); + path.close(); + } + }; + + mxCellRenderer.registerShape('message', MessageShape); + + function UmlActorShape() { + mxShape.call(this); + } + + ; + mxUtils.extend(UmlActorShape, mxShape); + + UmlActorShape.prototype.paintBackground = function (c, x, y, w, h) { + c.translate(x, y); + c.ellipse(w / 4, 0, w / 2, h / 4); + c.fillAndStroke(); + c.begin(); + c.moveTo(w / 2, h / 4); + c.lineTo(w / 2, 2 * h / 3); + c.moveTo(w / 2, h / 3); + c.lineTo(0, h / 3); + c.moveTo(w / 2, h / 3); + c.lineTo(w, h / 3); + c.moveTo(w / 2, 2 * h / 3); + c.lineTo(0, h); + c.moveTo(w / 2, 2 * h / 3); + c.lineTo(w, h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('umlActor', UmlActorShape); + + function UmlBoundaryShape() { + mxShape.call(this); + } + + ; + mxUtils.extend(UmlBoundaryShape, mxShape); + + UmlBoundaryShape.prototype.getLabelMargins = function (rect) { + return new mxRectangle(rect.width / 6, 0, 0, 0); + }; + + UmlBoundaryShape.prototype.paintBackground = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, h / 4); + c.lineTo(0, h * 3 / 4); + c.end(); + c.stroke(); + c.begin(); + c.moveTo(0, h / 2); + c.lineTo(w / 6, h / 2); + c.end(); + c.stroke(); + c.ellipse(w / 6, 0, w * 5 / 6, h); + c.fillAndStroke(); + }; + + mxCellRenderer.registerShape('umlBoundary', UmlBoundaryShape); + + function UmlEntityShape() { + mxEllipse.call(this); + } + + ; + mxUtils.extend(UmlEntityShape, mxEllipse); + + UmlEntityShape.prototype.paintVertexShape = function (c, x, y, w, h) { + mxEllipse.prototype.paintVertexShape.apply(this, arguments); + c.begin(); + c.moveTo(x + w / 8, y + h); + c.lineTo(x + w * 7 / 8, y + h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('umlEntity', UmlEntityShape); + + function UmlDestroyShape() { + mxShape.call(this); + } + + ; + mxUtils.extend(UmlDestroyShape, mxShape); + + UmlDestroyShape.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(w, 0); + c.lineTo(0, h); + c.moveTo(0, 0); + c.lineTo(w, h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('umlDestroy', UmlDestroyShape); + + function UmlControlShape() { + mxShape.call(this); + } + + ; + mxUtils.extend(UmlControlShape, mxShape); + + UmlControlShape.prototype.getLabelBounds = function (rect) { + return new mxRectangle(rect.x, rect.y + rect.height / 8, rect.width, rect.height * 7 / 8); + }; + + UmlControlShape.prototype.paintBackground = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(w * 3 / 8, h / 8 * 1.1); + c.lineTo(w * 5 / 8, 0); + c.end(); + c.stroke(); + c.ellipse(0, h / 8, w, h * 7 / 8); + c.fillAndStroke(); + }; + + UmlControlShape.prototype.paintForeground = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w * 3 / 8, h / 8 * 1.1); + c.lineTo(w * 5 / 8, h / 4); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('umlControl', UmlControlShape); + + function UmlLifeline() { + mxRectangleShape.call(this); + } + + ; + mxUtils.extend(UmlLifeline, mxRectangleShape); + UmlLifeline.prototype.size = 40; + + UmlLifeline.prototype.isHtmlAllowed = function () { + return false; + }; + + UmlLifeline.prototype.getLabelBounds = function (rect) { + var size = Math.max(0, Math.min(rect.height, parseFloat(mxUtils.getValue(this.style, 'size', this.size)) * this.scale)); + return new mxRectangle(rect.x, rect.y, rect.width, size); + }; + + UmlLifeline.prototype.paintBackground = function (c, x, y, w, h) { + var size = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var participant = mxUtils.getValue(this.style, 'participant'); + + if (participant == null || this.state == null) { + mxRectangleShape.prototype.paintBackground.call(this, c, x, y, w, size); + } else { + var ctor = this.state.view.graph.cellRenderer.getShape(participant); + + if (ctor != null && ctor != UmlLifeline) { + var shape = new ctor(); + shape.apply(this.state); + c.save(); + shape.paintVertexShape(c, x, y, w, size); + c.restore(); + } + } + + if (size < h) { + c.setDashed(true); + c.begin(); + c.moveTo(x + w / 2, y + size); + c.lineTo(x + w / 2, y + h); + c.end(); + c.stroke(); + } + }; + + UmlLifeline.prototype.paintForeground = function (c, x, y, w, h) { + var size = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + mxRectangleShape.prototype.paintForeground.call(this, c, x, y, w, Math.min(h, size)); + }; + + mxCellRenderer.registerShape('umlLifeline', UmlLifeline); + + function UmlFrame() { + mxShape.call(this); + } + + ; + mxUtils.extend(UmlFrame, mxShape); + UmlFrame.prototype.width = 60; + UmlFrame.prototype.height = 30; + UmlFrame.prototype.corner = 10; + + UmlFrame.prototype.getLabelMargins = function (rect) { + return new mxRectangle(0, 0, rect.width - parseFloat(mxUtils.getValue(this.style, 'width', this.width) * this.scale), rect.height - parseFloat(mxUtils.getValue(this.style, 'height', this.height) * this.scale)); + }; + + UmlFrame.prototype.paintBackground = function (c, x, y, w, h) { + var co = this.corner; + var w0 = Math.min(w, Math.max(co, parseFloat(mxUtils.getValue(this.style, 'width', this.width)))); + var h0 = Math.min(h, Math.max(co * 1.5, parseFloat(mxUtils.getValue(this.style, 'height', this.height)))); + var bg = mxUtils.getValue(this.style, mxConstants.STYLE_SWIMLANE_FILLCOLOR, mxConstants.NONE); + + if (bg != mxConstants.NONE) { + c.setFillColor(bg); + c.rect(x, y, w, h); + c.fill(); + } + + if (this.fill != null && this.fill != mxConstants.NONE && this.gradient && this.gradient != mxConstants.NONE) { + var b = this.getGradientBounds(c, x, y, w, h); + c.setGradient(this.fill, this.gradient, x, y, w, h, this.gradientDirection); + } else { + c.setFillColor(this.fill); + } + + c.begin(); + c.moveTo(x, y); + c.lineTo(x + w0, y); + c.lineTo(x + w0, y + Math.max(0, h0 - co * 1.5)); + c.lineTo(x + Math.max(0, w0 - co), y + h0); + c.lineTo(x, y + h0); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(x + w0, y); + c.lineTo(x + w, y); + c.lineTo(x + w, y + h); + c.lineTo(x, y + h); + c.lineTo(x, y + h0); + c.stroke(); + }; + + mxCellRenderer.registerShape('umlFrame', UmlFrame); + + mxPerimeter.LifelinePerimeter = function (bounds, vertex, next, orthogonal) { + var size = UmlLifeline.prototype.size; + + if (vertex != null) { + size = mxUtils.getValue(vertex.style, 'size', size) * vertex.view.scale; + } + + var sw = parseFloat(vertex.style[mxConstants.STYLE_STROKEWIDTH] || 1) * vertex.view.scale / 2 - 1; + + if (next.x < bounds.getCenterX()) { + sw += 1; + sw *= -1; + } + + return new mxPoint(bounds.getCenterX() + sw, Math.min(bounds.y + bounds.height, Math.max(bounds.y + size, next.y))); + }; + + mxStyleRegistry.putValue('lifelinePerimeter', mxPerimeter.LifelinePerimeter); + + mxPerimeter.OrthogonalPerimeter = function (bounds, vertex, next, orthogonal) { + orthogonal = true; + return mxPerimeter.RectanglePerimeter.apply(this, arguments); + }; + + mxStyleRegistry.putValue('orthogonalPerimeter', mxPerimeter.OrthogonalPerimeter); + + mxPerimeter.BackbonePerimeter = function (bounds, vertex, next, orthogonal) { + var sw = parseFloat(vertex.style[mxConstants.STYLE_STROKEWIDTH] || 1) * vertex.view.scale / 2 - 1; + + if (vertex.style['backboneSize'] != null) { + sw += parseFloat(vertex.style['backboneSize']) * vertex.view.scale / 2 - 1; + } + + if (vertex.style[mxConstants.STYLE_DIRECTION] == 'south' || vertex.style[mxConstants.STYLE_DIRECTION] == 'north') { + if (next.x < bounds.getCenterX()) { + sw += 1; + sw *= -1; + } + + return new mxPoint(bounds.getCenterX() + sw, Math.min(bounds.y + bounds.height, Math.max(bounds.y, next.y))); + } else { + if (next.y < bounds.getCenterY()) { + sw += 1; + sw *= -1; + } + + return new mxPoint(Math.min(bounds.x + bounds.width, Math.max(bounds.x, next.x)), bounds.getCenterY() + sw); + } + }; + + mxStyleRegistry.putValue('backbonePerimeter', mxPerimeter.BackbonePerimeter); + + mxPerimeter.CalloutPerimeter = function (bounds, vertex, next, orthogonal) { + return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(bounds, new mxRectangle(0, 0, 0, Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(vertex.style, 'size', CalloutShape.prototype.size)) * vertex.view.scale))), vertex.style), vertex, next, orthogonal); + }; + + mxStyleRegistry.putValue('calloutPerimeter', mxPerimeter.CalloutPerimeter); + + mxPerimeter.ParallelogramPerimeter = function (bounds, vertex, next, orthogonal) { + var size = ParallelogramShape.prototype.size; + + if (vertex != null) { + size = mxUtils.getValue(vertex.style, 'size', size); + } + + var x = bounds.x; + var y = bounds.y; + var w = bounds.width; + var h = bounds.height; + var direction = vertex != null ? mxUtils.getValue(vertex.style, mxConstants.STYLE_DIRECTION, mxConstants.DIRECTION_EAST) : mxConstants.DIRECTION_EAST; + var vertical = direction == mxConstants.DIRECTION_NORTH || direction == mxConstants.DIRECTION_SOUTH; + var points; + + if (vertical) { + var dy = h * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x, y), new mxPoint(x + w, y + dy), new mxPoint(x + w, y + h), new mxPoint(x, y + h - dy), new mxPoint(x, y)]; + } else { + var dx = w * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x + dx, y), new mxPoint(x + w, y), new mxPoint(x + w - dx, y + h), new mxPoint(x, y + h), new mxPoint(x + dx, y)]; + } + + var cx = bounds.getCenterX(); + var cy = bounds.getCenterY(); + var p1 = new mxPoint(cx, cy); + + if (orthogonal) { + if (next.x < x || next.x > x + w) { + p1.y = next.y; + } else { + p1.x = next.x; + } + } + + return mxUtils.getPerimeterPoint(points, p1, next); + }; + + mxStyleRegistry.putValue('parallelogramPerimeter', mxPerimeter.ParallelogramPerimeter); + + mxPerimeter.TrapezoidPerimeter = function (bounds, vertex, next, orthogonal) { + var size = TrapezoidShape.prototype.size; + + if (vertex != null) { + size = mxUtils.getValue(vertex.style, 'size', size); + } + + var x = bounds.x; + var y = bounds.y; + var w = bounds.width; + var h = bounds.height; + var direction = vertex != null ? mxUtils.getValue(vertex.style, mxConstants.STYLE_DIRECTION, mxConstants.DIRECTION_EAST) : mxConstants.DIRECTION_EAST; + var points; + + if (direction == mxConstants.DIRECTION_EAST) { + var dx = w * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x + dx, y), new mxPoint(x + w - dx, y), new mxPoint(x + w, y + h), new mxPoint(x, y + h), new mxPoint(x + dx, y)]; + } else if (direction == mxConstants.DIRECTION_WEST) { + var dx = w * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x, y), new mxPoint(x + w, y), new mxPoint(x + w - dx, y + h), new mxPoint(x + dx, y + h), new mxPoint(x, y)]; + } else if (direction == mxConstants.DIRECTION_NORTH) { + var dy = h * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x, y + dy), new mxPoint(x + w, y), new mxPoint(x + w, y + h), new mxPoint(x, y + h - dy), new mxPoint(x, y + dy)]; + } else { + var dy = h * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x, y), new mxPoint(x + w, y + dy), new mxPoint(x + w, y + h - dy), new mxPoint(x, y + h), new mxPoint(x, y)]; + } + + var cx = bounds.getCenterX(); + var cy = bounds.getCenterY(); + var p1 = new mxPoint(cx, cy); + + if (orthogonal) { + if (next.x < x || next.x > x + w) { + p1.y = next.y; + } else { + p1.x = next.x; + } + } + + return mxUtils.getPerimeterPoint(points, p1, next); + }; + + mxStyleRegistry.putValue('trapezoidPerimeter', mxPerimeter.TrapezoidPerimeter); + + mxPerimeter.StepPerimeter = function (bounds, vertex, next, orthogonal) { + var fixed = mxUtils.getValue(vertex.style, 'fixedSize', '0') != '0'; + var size = fixed ? StepShape.prototype.fixedSize : StepShape.prototype.size; + + if (vertex != null) { + size = mxUtils.getValue(vertex.style, 'size', size); + } + + var x = bounds.x; + var y = bounds.y; + var w = bounds.width; + var h = bounds.height; + var cx = bounds.getCenterX(); + var cy = bounds.getCenterY(); + var direction = vertex != null ? mxUtils.getValue(vertex.style, mxConstants.STYLE_DIRECTION, mxConstants.DIRECTION_EAST) : mxConstants.DIRECTION_EAST; + var points; + + if (direction == mxConstants.DIRECTION_EAST) { + var dx = fixed ? Math.max(0, Math.min(w, size)) : w * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x, y), new mxPoint(x + w - dx, y), new mxPoint(x + w, cy), new mxPoint(x + w - dx, y + h), new mxPoint(x, y + h), new mxPoint(x + dx, cy), new mxPoint(x, y)]; + } else if (direction == mxConstants.DIRECTION_WEST) { + var dx = fixed ? Math.max(0, Math.min(w, size)) : w * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x + dx, y), new mxPoint(x + w, y), new mxPoint(x + w - dx, cy), new mxPoint(x + w, y + h), new mxPoint(x + dx, y + h), new mxPoint(x, cy), new mxPoint(x + dx, y)]; + } else if (direction == mxConstants.DIRECTION_NORTH) { + var dy = fixed ? Math.max(0, Math.min(h, size)) : h * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x, y + dy), new mxPoint(cx, y), new mxPoint(x + w, y + dy), new mxPoint(x + w, y + h), new mxPoint(cx, y + h - dy), new mxPoint(x, y + h), new mxPoint(x, y + dy)]; + } else { + var dy = fixed ? Math.max(0, Math.min(h, size)) : h * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x, y), new mxPoint(cx, y + dy), new mxPoint(x + w, y), new mxPoint(x + w, y + h - dy), new mxPoint(cx, y + h), new mxPoint(x, y + h - dy), new mxPoint(x, y)]; + } + + var p1 = new mxPoint(cx, cy); + + if (orthogonal) { + if (next.x < x || next.x > x + w) { + p1.y = next.y; + } else { + p1.x = next.x; + } + } + + return mxUtils.getPerimeterPoint(points, p1, next); + }; + + mxStyleRegistry.putValue('stepPerimeter', mxPerimeter.StepPerimeter); + + mxPerimeter.HexagonPerimeter2 = function (bounds, vertex, next, orthogonal) { + var size = HexagonShape.prototype.size; + + if (vertex != null) { + size = mxUtils.getValue(vertex.style, 'size', size); + } + + var x = bounds.x; + var y = bounds.y; + var w = bounds.width; + var h = bounds.height; + var cx = bounds.getCenterX(); + var cy = bounds.getCenterY(); + var direction = vertex != null ? mxUtils.getValue(vertex.style, mxConstants.STYLE_DIRECTION, mxConstants.DIRECTION_EAST) : mxConstants.DIRECTION_EAST; + var vertical = direction == mxConstants.DIRECTION_NORTH || direction == mxConstants.DIRECTION_SOUTH; + var points; + + if (vertical) { + var dy = h * Math.max(0, Math.min(1, size)); + points = [new mxPoint(cx, y), new mxPoint(x + w, y + dy), new mxPoint(x + w, y + h - dy), new mxPoint(cx, y + h), new mxPoint(x, y + h - dy), new mxPoint(x, y + dy), new mxPoint(cx, y)]; + } else { + var dx = w * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x + dx, y), new mxPoint(x + w - dx, y), new mxPoint(x + w, cy), new mxPoint(x + w - dx, y + h), new mxPoint(x + dx, y + h), new mxPoint(x, cy), new mxPoint(x + dx, y)]; + } + + var p1 = new mxPoint(cx, cy); + + if (orthogonal) { + if (next.x < x || next.x > x + w) { + p1.y = next.y; + } else { + p1.x = next.x; + } + } + + return mxUtils.getPerimeterPoint(points, p1, next); + }; + + mxStyleRegistry.putValue('hexagonPerimeter2', mxPerimeter.HexagonPerimeter2); + + function LollipopShape() { + mxShape.call(this); + } + + ; + mxUtils.extend(LollipopShape, mxShape); + LollipopShape.prototype.size = 10; + + LollipopShape.prototype.paintBackground = function (c, x, y, w, h) { + var sz = parseFloat(mxUtils.getValue(this.style, 'size', this.size)); + c.translate(x, y); + c.ellipse((w - sz) / 2, 0, sz, sz); + c.fillAndStroke(); + c.begin(); + c.moveTo(w / 2, sz); + c.lineTo(w / 2, h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('lollipop', LollipopShape); + + function RequiresShape() { + mxShape.call(this); + } + + ; + mxUtils.extend(RequiresShape, mxShape); + RequiresShape.prototype.size = 10; + RequiresShape.prototype.inset = 2; + + RequiresShape.prototype.paintBackground = function (c, x, y, w, h) { + var sz = parseFloat(mxUtils.getValue(this.style, 'size', this.size)); + var inset = parseFloat(mxUtils.getValue(this.style, 'inset', this.inset)) + this.strokewidth; + c.translate(x, y); + c.begin(); + c.moveTo(w / 2, sz + inset); + c.lineTo(w / 2, h); + c.end(); + c.stroke(); + c.begin(); + c.moveTo((w - sz) / 2 - inset, sz / 2); + c.quadTo((w - sz) / 2 - inset, sz + inset, w / 2, sz + inset); + c.quadTo((w + sz) / 2 + inset, sz + inset, (w + sz) / 2 + inset, sz / 2); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('requires', RequiresShape); + + function RequiredInterfaceShape() { + mxShape.call(this); + } + + ; + mxUtils.extend(RequiredInterfaceShape, mxShape); + + RequiredInterfaceShape.prototype.paintBackground = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.quadTo(w, 0, w, h / 2); + c.quadTo(w, h, 0, h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('requiredInterface', RequiredInterfaceShape); + + function ProvidedRequiredInterfaceShape() { + mxShape.call(this); + } + + ; + mxUtils.extend(ProvidedRequiredInterfaceShape, mxShape); + ProvidedRequiredInterfaceShape.prototype.inset = 2; + + ProvidedRequiredInterfaceShape.prototype.paintBackground = function (c, x, y, w, h) { + var inset = parseFloat(mxUtils.getValue(this.style, 'inset', this.inset)) + this.strokewidth; + c.translate(x, y); + c.ellipse(0, inset, w - 2 * inset, h - 2 * inset); + c.fillAndStroke(); + c.begin(); + c.moveTo(w / 2, 0); + c.quadTo(w, 0, w, h / 2); + c.quadTo(w, h, w / 2, h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('providedRequiredInterface', ProvidedRequiredInterfaceShape); + + function ComponentShape() { + mxCylinder.call(this); + } + + ; + mxUtils.extend(ComponentShape, mxCylinder); + ComponentShape.prototype.jettyWidth = 32; + ComponentShape.prototype.jettyHeight = 12; + + ComponentShape.prototype.redrawPath = function (path, x, y, w, h, isForeground) { + var dx = parseFloat(mxUtils.getValue(this.style, 'jettyWidth', this.jettyWidth)); + var dy = parseFloat(mxUtils.getValue(this.style, 'jettyHeight', this.jettyHeight)); + var x0 = dx / 2; + var x1 = x0 + dx / 2; + var y0 = 0.3 * h - dy / 2; + var y1 = 0.7 * h - dy / 2; + + if (isForeground) { + path.moveTo(x0, y0); + path.lineTo(x1, y0); + path.lineTo(x1, y0 + dy); + path.lineTo(x0, y0 + dy); + path.moveTo(x0, y1); + path.lineTo(x1, y1); + path.lineTo(x1, y1 + dy); + path.lineTo(x0, y1 + dy); + path.end(); + } else { + path.moveTo(x0, 0); + path.lineTo(w, 0); + path.lineTo(w, h); + path.lineTo(x0, h); + path.lineTo(x0, y1 + dy); + path.lineTo(0, y1 + dy); + path.lineTo(0, y1); + path.lineTo(x0, y1); + path.lineTo(x0, y0 + dy); + path.lineTo(0, y0 + dy); + path.lineTo(0, y0); + path.lineTo(x0, y0); + path.close(); + path.end(); + } + }; + + mxCellRenderer.registerShape('component', ComponentShape); + + function StateShape() { + mxDoubleEllipse.call(this); + } + + ; + mxUtils.extend(StateShape, mxDoubleEllipse); + StateShape.prototype.outerStroke = true; + + StateShape.prototype.paintVertexShape = function (c, x, y, w, h) { + var inset = Math.min(4, Math.min(w / 5, h / 5)); + + if (w > 0 && h > 0) { + c.ellipse(x + inset, y + inset, w - 2 * inset, h - 2 * inset); + c.fillAndStroke(); + } + + c.setShadow(false); + + if (this.outerStroke) { + c.ellipse(x, y, w, h); + c.stroke(); + } + }; + + mxCellRenderer.registerShape('endState', StateShape); + + function StartStateShape() { + StateShape.call(this); + } + + ; + mxUtils.extend(StartStateShape, StateShape); + StartStateShape.prototype.outerStroke = false; + mxCellRenderer.registerShape('startState', StartStateShape); + + function LinkShape() { + mxArrowConnector.call(this); + this.spacing = 0; + } + + ; + mxUtils.extend(LinkShape, mxArrowConnector); + LinkShape.prototype.defaultWidth = 4; + + LinkShape.prototype.isOpenEnded = function () { + return true; + }; + + LinkShape.prototype.getEdgeWidth = function () { + return mxUtils.getNumber(this.style, 'width', this.defaultWidth) + Math.max(0, this.strokewidth - 1); + }; + + LinkShape.prototype.isArrowRounded = function () { + return this.isRounded; + }; + + mxCellRenderer.registerShape('link', LinkShape); + + function FlexArrowShape() { + mxArrowConnector.call(this); + this.spacing = 0; + } + + ; + mxUtils.extend(FlexArrowShape, mxArrowConnector); + FlexArrowShape.prototype.defaultWidth = 10; + FlexArrowShape.prototype.defaultArrowWidth = 20; + + FlexArrowShape.prototype.getStartArrowWidth = function () { + return this.getEdgeWidth() + mxUtils.getNumber(this.style, 'startWidth', this.defaultArrowWidth); + }; + + FlexArrowShape.prototype.getEndArrowWidth = function () { + return this.getEdgeWidth() + mxUtils.getNumber(this.style, 'endWidth', this.defaultArrowWidth); + ; + }; + + FlexArrowShape.prototype.getEdgeWidth = function () { + return mxUtils.getNumber(this.style, 'width', this.defaultWidth) + Math.max(0, this.strokewidth - 1); + }; + + mxCellRenderer.registerShape('flexArrow', FlexArrowShape); + + function ManualInputShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(ManualInputShape, mxActor); + ManualInputShape.prototype.size = 30; + + ManualInputShape.prototype.isRoundable = function () { + return true; + }; + + ManualInputShape.prototype.redrawPath = function (c, x, y, w, h) { + var s = Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, h), new mxPoint(0, s), new mxPoint(w, 0), new mxPoint(w, h)], this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('manualInput', ManualInputShape); + + function InternalStorageShape() { + mxRectangleShape.call(this); + } + + ; + mxUtils.extend(InternalStorageShape, mxRectangleShape); + InternalStorageShape.prototype.dx = 20; + InternalStorageShape.prototype.dy = 20; + + InternalStorageShape.prototype.isHtmlAllowed = function () { + return false; + }; + + InternalStorageShape.prototype.paintForeground = function (c, x, y, w, h) { + mxRectangleShape.prototype.paintForeground.apply(this, arguments); + var inset = 0; + + if (this.isRounded) { + var f = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.RECTANGLE_ROUNDING_FACTOR * 100) / 100; + inset = Math.max(inset, Math.min(w * f, h * f)); + } + + var dx = Math.max(inset, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(inset, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + c.begin(); + c.moveTo(x, y + dy); + c.lineTo(x + w, y + dy); + c.end(); + c.stroke(); + c.begin(); + c.moveTo(x + dx, y); + c.lineTo(x + dx, y + h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('internalStorage', InternalStorageShape); + + function CornerShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(CornerShape, mxActor); + CornerShape.prototype.dx = 20; + CornerShape.prototype.dy = 20; + + CornerShape.prototype.redrawPath = function (c, x, y, w, h) { + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var s = Math.min(w / 2, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, 0), new mxPoint(w, 0), new mxPoint(w, dy), new mxPoint(dx, dy), new mxPoint(dx, h), new mxPoint(0, h)], this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('corner', CornerShape); + + function CrossbarShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(CrossbarShape, mxActor); + + CrossbarShape.prototype.redrawPath = function (c, x, y, w, h) { + c.moveTo(0, 0); + c.lineTo(0, h); + c.end(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.end(); + c.moveTo(0, h / 2); + c.lineTo(w, h / 2); + c.end(); + }; + + mxCellRenderer.registerShape('crossbar', CrossbarShape); + + function TeeShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(TeeShape, mxActor); + TeeShape.prototype.dx = 20; + TeeShape.prototype.dy = 20; + + TeeShape.prototype.redrawPath = function (c, x, y, w, h) { + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var w2 = Math.abs(w - dx) / 2; + var s = Math.min(w / 2, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, 0), new mxPoint(w, 0), new mxPoint(w, dy), new mxPoint((w + dx) / 2, dy), new mxPoint((w + dx) / 2, h), new mxPoint((w - dx) / 2, h), new mxPoint((w - dx) / 2, dy), new mxPoint(0, dy)], this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('tee', TeeShape); + + function SingleArrowShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(SingleArrowShape, mxActor); + SingleArrowShape.prototype.arrowWidth = 0.3; + SingleArrowShape.prototype.arrowSize = 0.2; + + SingleArrowShape.prototype.redrawPath = function (c, x, y, w, h) { + var aw = h * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arrowWidth', this.arrowWidth)))); + var as = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arrowSize', this.arrowSize)))); + var at = (h - aw) / 2; + var ab = at + aw; + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, at), new mxPoint(w - as, at), new mxPoint(w - as, 0), new mxPoint(w, h / 2), new mxPoint(w - as, h), new mxPoint(w - as, ab), new mxPoint(0, ab)], this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('singleArrow', SingleArrowShape); + + function DoubleArrowShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(DoubleArrowShape, mxActor); + + DoubleArrowShape.prototype.redrawPath = function (c, x, y, w, h) { + var aw = h * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arrowWidth', SingleArrowShape.prototype.arrowWidth)))); + var as = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arrowSize', SingleArrowShape.prototype.arrowSize)))); + var at = (h - aw) / 2; + var ab = at + aw; + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, h / 2), new mxPoint(as, 0), new mxPoint(as, at), new mxPoint(w - as, at), new mxPoint(w - as, 0), new mxPoint(w, h / 2), new mxPoint(w - as, h), new mxPoint(w - as, ab), new mxPoint(as, ab), new mxPoint(as, h)], this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('doubleArrow', DoubleArrowShape); + + function DataStorageShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(DataStorageShape, mxActor); + DataStorageShape.prototype.size = 0.1; + + DataStorageShape.prototype.redrawPath = function (c, x, y, w, h) { + var s = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + c.moveTo(s, 0); + c.lineTo(w, 0); + c.quadTo(w - s * 2, h / 2, w, h); + c.lineTo(s, h); + c.quadTo(s - s * 2, h / 2, s, 0); + c.close(); + c.end(); + }; + + mxCellRenderer.registerShape('dataStorage', DataStorageShape); + + function OrShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(OrShape, mxActor); + + OrShape.prototype.redrawPath = function (c, x, y, w, h) { + c.moveTo(0, 0); + c.quadTo(w, 0, w, h / 2); + c.quadTo(w, h, 0, h); + c.close(); + c.end(); + }; + + mxCellRenderer.registerShape('or', OrShape); + + function XorShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(XorShape, mxActor); + + XorShape.prototype.redrawPath = function (c, x, y, w, h) { + c.moveTo(0, 0); + c.quadTo(w, 0, w, h / 2); + c.quadTo(w, h, 0, h); + c.quadTo(w / 2, h / 2, 0, 0); + c.close(); + c.end(); + }; + + mxCellRenderer.registerShape('xor', XorShape); + + function LoopLimitShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(LoopLimitShape, mxActor); + LoopLimitShape.prototype.size = 20; + + LoopLimitShape.prototype.isRoundable = function () { + return true; + }; + + LoopLimitShape.prototype.redrawPath = function (c, x, y, w, h) { + var s = Math.min(w / 2, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(s, 0), new mxPoint(w - s, 0), new mxPoint(w, s * 0.8), new mxPoint(w, h), new mxPoint(0, h), new mxPoint(0, s * 0.8)], this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('loopLimit', LoopLimitShape); + + function OffPageConnectorShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(OffPageConnectorShape, mxActor); + OffPageConnectorShape.prototype.size = 3 / 8; + + OffPageConnectorShape.prototype.isRoundable = function () { + return true; + }; + + OffPageConnectorShape.prototype.redrawPath = function (c, x, y, w, h) { + var s = h * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, 0), new mxPoint(w, 0), new mxPoint(w, h - s), new mxPoint(w / 2, h), new mxPoint(0, h - s)], this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('offPageConnector', OffPageConnectorShape); + + function TapeDataShape() { + mxEllipse.call(this); + } + + ; + mxUtils.extend(TapeDataShape, mxEllipse); + + TapeDataShape.prototype.paintVertexShape = function (c, x, y, w, h) { + mxEllipse.prototype.paintVertexShape.apply(this, arguments); + c.begin(); + c.moveTo(x + w / 2, y + h); + c.lineTo(x + w, y + h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('tapeData', TapeDataShape); + + function OrEllipseShape() { + mxEllipse.call(this); + } + + ; + mxUtils.extend(OrEllipseShape, mxEllipse); + + OrEllipseShape.prototype.paintVertexShape = function (c, x, y, w, h) { + mxEllipse.prototype.paintVertexShape.apply(this, arguments); + c.setShadow(false); + c.begin(); + c.moveTo(x, y + h / 2); + c.lineTo(x + w, y + h / 2); + c.end(); + c.stroke(); + c.begin(); + c.moveTo(x + w / 2, y); + c.lineTo(x + w / 2, y + h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('orEllipse', OrEllipseShape); + + function SumEllipseShape() { + mxEllipse.call(this); + } + + ; + mxUtils.extend(SumEllipseShape, mxEllipse); + + SumEllipseShape.prototype.paintVertexShape = function (c, x, y, w, h) { + mxEllipse.prototype.paintVertexShape.apply(this, arguments); + var s2 = 0.145; + c.setShadow(false); + c.begin(); + c.moveTo(x + w * s2, y + h * s2); + c.lineTo(x + w * (1 - s2), y + h * (1 - s2)); + c.end(); + c.stroke(); + c.begin(); + c.moveTo(x + w * (1 - s2), y + h * s2); + c.lineTo(x + w * s2, y + h * (1 - s2)); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('sumEllipse', SumEllipseShape); + + function SortShape() { + mxRhombus.call(this); + } + + ; + mxUtils.extend(SortShape, mxRhombus); + + SortShape.prototype.paintVertexShape = function (c, x, y, w, h) { + mxRhombus.prototype.paintVertexShape.apply(this, arguments); + c.setShadow(false); + c.begin(); + c.moveTo(x, y + h / 2); + c.lineTo(x + w, y + h / 2); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('sortShape', SortShape); + + function CollateShape() { + mxEllipse.call(this); + } + + ; + mxUtils.extend(CollateShape, mxEllipse); + + CollateShape.prototype.paintVertexShape = function (c, x, y, w, h) { + c.begin(); + c.moveTo(x, y); + c.lineTo(x + w, y); + c.lineTo(x + w / 2, y + h / 2); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(x, y + h); + c.lineTo(x + w, y + h); + c.lineTo(x + w / 2, y + h / 2); + c.close(); + c.fillAndStroke(); + }; + + mxCellRenderer.registerShape('collate', CollateShape); + + function DimensionShape() { + mxEllipse.call(this); + } + + ; + mxUtils.extend(DimensionShape, mxEllipse); + + DimensionShape.prototype.paintVertexShape = function (c, x, y, w, h) { + var al = 10; + var cy = y + h - al / 2; + c.begin(); + c.moveTo(x, y); + c.lineTo(x, y + h); + c.moveTo(x, cy); + c.lineTo(x + al, cy - al / 2); + c.moveTo(x, cy); + c.lineTo(x + al, cy + al / 2); + c.moveTo(x, cy); + c.lineTo(x + w, cy); + c.moveTo(x + w, y); + c.lineTo(x + w, y + h); + c.moveTo(x + w, cy); + c.lineTo(x + w - al, cy - al / 2); + c.moveTo(x + w, cy); + c.lineTo(x + w - al, cy + al / 2); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('dimension', DimensionShape); + + function PartialRectangleShape() { + mxEllipse.call(this); + } + + ; + mxUtils.extend(PartialRectangleShape, mxEllipse); + + PartialRectangleShape.prototype.paintVertexShape = function (c, x, y, w, h) { + if (!this.outline) { + c.setStrokeColor(null); + } + + mxRectangleShape.prototype.paintBackground.apply(this, arguments); + + if (this.style != null) { + c.setStrokeColor(this.stroke); + c.rect(x, y, w, h); + c.fill(); + c.begin(); + c.moveTo(x, y); + + if (mxUtils.getValue(this.style, 'top', '1') == '1') { + c.lineTo(x + w, y); + } else { + c.moveTo(x + w, y); + } + + if (mxUtils.getValue(this.style, 'right', '1') == '1') { + c.lineTo(x + w, y + h); + } else { + c.moveTo(x + w, y + h); + } + + if (mxUtils.getValue(this.style, 'bottom', '1') == '1') { + c.lineTo(x, y + h); + } else { + c.moveTo(x, y + h); + } + + if (mxUtils.getValue(this.style, 'left', '1') == '1') { + c.lineTo(x, y - this.strokewidth / 2); + } + + c.end(); + c.stroke(); + } + }; + + mxCellRenderer.registerShape('partialRectangle', PartialRectangleShape); + + function LineEllipseShape() { + mxEllipse.call(this); + } + + ; + mxUtils.extend(LineEllipseShape, mxEllipse); + + LineEllipseShape.prototype.paintVertexShape = function (c, x, y, w, h) { + mxEllipse.prototype.paintVertexShape.apply(this, arguments); + c.setShadow(false); + c.begin(); + + if (mxUtils.getValue(this.style, 'line') == 'vertical') { + c.moveTo(x + w / 2, y); + c.lineTo(x + w / 2, y + h); + } else { + c.moveTo(x, y + h / 2); + c.lineTo(x + w, y + h / 2); + } + + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('lineEllipse', LineEllipseShape); + + function DelayShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(DelayShape, mxActor); + + DelayShape.prototype.redrawPath = function (c, x, y, w, h) { + var dx = Math.min(w, h / 2); + c.moveTo(0, 0); + c.lineTo(w - dx, 0); + c.quadTo(w, 0, w, h / 2); + c.quadTo(w, h, w - dx, h); + c.lineTo(0, h); + c.close(); + c.end(); + }; + + mxCellRenderer.registerShape('delay', DelayShape); + + function CrossShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(CrossShape, mxActor); + CrossShape.prototype.size = 0.2; + + CrossShape.prototype.redrawPath = function (c, x, y, w, h) { + var m = Math.min(h, w); + var size = Math.max(0, Math.min(m, m * parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var t = (h - size) / 2; + var b = t + size; + var l = (w - size) / 2; + var r = l + size; + c.moveTo(0, t); + c.lineTo(l, t); + c.lineTo(l, 0); + c.lineTo(r, 0); + c.lineTo(r, t); + c.lineTo(w, t); + c.lineTo(w, b); + c.lineTo(r, b); + c.lineTo(r, h); + c.lineTo(l, h); + c.lineTo(l, b); + c.lineTo(0, b); + c.close(); + c.end(); + }; + + mxCellRenderer.registerShape('cross', CrossShape); + + function DisplayShape() { + mxActor.call(this); + } + + ; + mxUtils.extend(DisplayShape, mxActor); + DisplayShape.prototype.size = 0.25; + + DisplayShape.prototype.redrawPath = function (c, x, y, w, h) { + var dx = Math.min(w, h / 2); + var s = Math.min(w - dx, Math.max(0, parseFloat(mxUtils.getValue(this.style, 'size', this.size))) * w); + c.moveTo(0, h / 2); + c.lineTo(s, 0); + c.lineTo(w - dx, 0); + c.quadTo(w, 0, w, h / 2); + c.quadTo(w, h, w - dx, h); + c.lineTo(s, h); + c.close(); + c.end(); + }; + + mxCellRenderer.registerShape('display', DisplayShape); + + function FilledEdge() { + mxConnector.call(this); + } + + ; + mxUtils.extend(FilledEdge, mxConnector); + FilledEdge.prototype.origPaintEdgeShape = FilledEdge.prototype.paintEdgeShape; + + FilledEdge.prototype.paintEdgeShape = function (c, pts, rounded) { + var temp = []; + + for (var i = 0; i < pts.length; i++) { + temp.push(mxUtils.clone(pts[i])); + } + + var dashed = c.state.dashed; + var fixDash = c.state.fixDash; + FilledEdge.prototype.origPaintEdgeShape.apply(this, [c, temp, rounded]); + + if (c.state.strokeWidth >= 3) { + var fillClr = mxUtils.getValue(this.style, 'fillColor', null); + + if (fillClr != null) { + c.setStrokeColor(fillClr); + c.setStrokeWidth(c.state.strokeWidth - 2); + c.setDashed(dashed, fixDash); + FilledEdge.prototype.origPaintEdgeShape.apply(this, [c, pts, rounded]); + } + } + }; + + mxCellRenderer.registerShape('filledEdge', FilledEdge); + + if (typeof StyleFormatPanel !== 'undefined') { + (function () { + var styleFormatPanelGetCustomColors = StyleFormatPanel.prototype.getCustomColors; + + StyleFormatPanel.prototype.getCustomColors = function () { + var ss = this.format.getSelectionState(); + var result = styleFormatPanelGetCustomColors.apply(this, arguments); + + if (ss.style.shape == 'umlFrame') { + result.push({ + title: mxResources.get('laneColor'), + key: 'swimlaneFillColor', + defaultValue: '#ffffff' + }); + } + + return result; + }; + })(); + } + + mxMarker.addMarker('dash', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + return function () { + c.begin(); + c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2); + c.lineTo(pe.x + ny / 2 - 3 * nx / 2, pe.y - 3 * ny / 2 - nx / 2); + c.stroke(); + }; + }); + mxMarker.addMarker('cross', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + return function () { + c.begin(); + c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2); + c.lineTo(pe.x + ny / 2 - 3 * nx / 2, pe.y - 3 * ny / 2 - nx / 2); + c.moveTo(pe.x - nx / 2 + ny / 2, pe.y - ny / 2 - nx / 2); + c.lineTo(pe.x - ny / 2 - 3 * nx / 2, pe.y - 3 * ny / 2 + nx / 2); + c.stroke(); + }; + }); + + function circleMarker(c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var a = size / 2; + var size = size + sw; + var pt = pe.clone(); + pe.x -= unitX * (2 * size + sw); + pe.y -= unitY * (2 * size + sw); + unitX = unitX * (size + sw); + unitY = unitY * (size + sw); + return function () { + c.ellipse(pt.x - unitX - size, pt.y - unitY - size, 2 * size, 2 * size); + + if (filled) { + c.fillAndStroke(); + } else { + c.stroke(); + } + }; + } + + ; + mxMarker.addMarker('circle', circleMarker); + mxMarker.addMarker('circlePlus', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var pt = pe.clone(); + var fn = circleMarker.apply(this, arguments); + var nx = unitX * (size + 2 * sw); + var ny = unitY * (size + 2 * sw); + return function () { + fn.apply(this, arguments); + c.begin(); + c.moveTo(pt.x - unitX * sw, pt.y - unitY * sw); + c.lineTo(pt.x - 2 * nx + unitX * sw, pt.y - 2 * ny + unitY * sw); + c.moveTo(pt.x - nx - ny + unitY * sw, pt.y - ny + nx - unitX * sw); + c.lineTo(pt.x + ny - nx - unitY * sw, pt.y - ny - nx + unitX * sw); + c.stroke(); + }; + }); + mxMarker.addMarker('async', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var endOffsetX = unitX * sw * 1.118; + var endOffsetY = unitY * sw * 1.118; + unitX = unitX * (size + sw); + unitY = unitY * (size + sw); + var pt = pe.clone(); + pt.x -= endOffsetX; + pt.y -= endOffsetY; + var f = 1; + pe.x += -unitX * f - endOffsetX; + pe.y += -unitY * f - endOffsetY; + return function () { + c.begin(); + c.moveTo(pt.x, pt.y); + + if (source) { + c.lineTo(pt.x - unitX - unitY / 2, pt.y - unitY + unitX / 2); + } else { + c.lineTo(pt.x + unitY / 2 - unitX, pt.y - unitY - unitX / 2); + } + + c.lineTo(pt.x - unitX, pt.y - unitY); + c.close(); + + if (filled) { + c.fillAndStroke(); + } else { + c.stroke(); + } + }; + }); + + function createOpenAsyncArrow(widthFactor) { + widthFactor = widthFactor != null ? widthFactor : 2; + return function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + unitX = unitX * (size + sw); + unitY = unitY * (size + sw); + var pt = pe.clone(); + return function () { + c.begin(); + c.moveTo(pt.x, pt.y); + + if (source) { + c.lineTo(pt.x - unitX - unitY / widthFactor, pt.y - unitY + unitX / widthFactor); + } else { + c.lineTo(pt.x + unitY / widthFactor - unitX, pt.y - unitY - unitX / widthFactor); + } + + c.stroke(); + }; + }; + } + + ; + mxMarker.addMarker('openAsync', createOpenAsyncArrow(2)); + + function arrow(canvas, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var endOffsetX = unitX * sw * 1.118; + var endOffsetY = unitY * sw * 1.118; + unitX = unitX * (size + sw); + unitY = unitY * (size + sw); + var pt = pe.clone(); + pt.x -= endOffsetX; + pt.y -= endOffsetY; + var f = type != mxConstants.ARROW_CLASSIC && type != mxConstants.ARROW_CLASSIC_THIN ? 1 : 3 / 4; + pe.x += -unitX * f - endOffsetX; + pe.y += -unitY * f - endOffsetY; + return function () { + canvas.begin(); + canvas.moveTo(pt.x, pt.y); + canvas.lineTo(pt.x - unitX - unitY / widthFactor, pt.y - unitY + unitX / widthFactor); + + if (type == mxConstants.ARROW_CLASSIC || type == mxConstants.ARROW_CLASSIC_THIN) { + canvas.lineTo(pt.x - unitX * 3 / 4, pt.y - unitY * 3 / 4); + } + + canvas.lineTo(pt.x + unitY / widthFactor - unitX, pt.y - unitY - unitX / widthFactor); + canvas.close(); + + if (filled) { + canvas.fillAndStroke(); + } else { + canvas.stroke(); + } + }; + } + + if (typeof mxVertexHandler !== 'undefined') { + var createHandle = function createHandle(state, keys, getPositionFn, setPositionFn, ignoreGrid, redrawEdges) { + var handle = new mxHandle(state, null, mxVertexHandler.prototype.secondaryHandleImage); + + handle.execute = function () { + for (var i = 0; i < keys.length; i++) { + this.copyStyle(keys[i]); + } + }; + + handle.getPosition = getPositionFn; + handle.setPosition = setPositionFn; + handle.ignoreGrid = ignoreGrid != null ? ignoreGrid : true; + + if (redrawEdges) { + var positionChanged = handle.positionChanged; + + handle.positionChanged = function () { + positionChanged.apply(this, arguments); + state.view.invalidate(this.state.cell); + state.view.validate(); + }; + } + + return handle; + }; + + var createArcHandle = function createArcHandle(state, yOffset) { + return createHandle(state, [mxConstants.STYLE_ARCSIZE], function (bounds) { + var tmp = yOffset != null ? yOffset : bounds.height / 8; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ABSOLUTE_ARCSIZE, 0) == '1') { + var arcSize = mxUtils.getValue(state.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + return new mxPoint(bounds.x + bounds.width - Math.min(bounds.width / 2, arcSize), bounds.y + tmp); + } else { + var arcSize = Math.max(0, parseFloat(mxUtils.getValue(state.style, mxConstants.STYLE_ARCSIZE, mxConstants.RECTANGLE_ROUNDING_FACTOR * 100))) / 100; + return new mxPoint(bounds.x + bounds.width - Math.min(Math.max(bounds.width / 2, bounds.height / 2), Math.min(bounds.width, bounds.height) * arcSize), bounds.y + tmp); + } + }, function (bounds, pt, me) { + if (mxUtils.getValue(state.style, mxConstants.STYLE_ABSOLUTE_ARCSIZE, 0) == '1') { + this.state.style[mxConstants.STYLE_ARCSIZE] = Math.round(Math.max(0, Math.min(bounds.width, (bounds.x + bounds.width - pt.x) * 2))); + } else { + var f = Math.min(50, Math.max(0, (bounds.width - pt.x + bounds.x) * 100 / Math.min(bounds.width, bounds.height))); + this.state.style[mxConstants.STYLE_ARCSIZE] = Math.round(f); + } + }); + }; + + var createArcHandleFunction = function createArcHandleFunction() { + return function (state) { + var handles = []; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) { + handles.push(createArcHandle(state)); + } + + return handles; + }; + }; + + var createTrapezoidHandleFunction = function createTrapezoidHandleFunction(max) { + return function (state) { + var handles = [createHandle(state, ['size'], function (bounds) { + var size = Math.max(0, Math.min(max, parseFloat(mxUtils.getValue(this.state.style, 'size', TrapezoidShape.prototype.size)))); + return new mxPoint(bounds.x + size * bounds.width * 0.75, bounds.y + bounds.height / 4); + }, function (bounds, pt) { + this.state.style['size'] = Math.max(0, Math.min(max, (pt.x - bounds.x) / (bounds.width * 0.75))); + }, null, true)]; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) { + handles.push(createArcHandle(state)); + } + + return handles; + }; + }; + + var createDisplayHandleFunction = function createDisplayHandleFunction(defaultValue, allowArcHandle, max, redrawEdges, fixedDefaultValue) { + max = max != null ? max : 1; + return function (state) { + var handles = [createHandle(state, ['size'], function (bounds) { + var fixed = fixedDefaultValue != null ? mxUtils.getValue(this.state.style, 'fixedSize', '0') != '0' : null; + var size = parseFloat(mxUtils.getValue(this.state.style, 'size', fixed ? fixedDefaultValue : defaultValue)); + return new mxPoint(bounds.x + Math.max(0, Math.min(bounds.width, size * (fixed ? 1 : bounds.width))), bounds.getCenterY()); + }, function (bounds, pt, me) { + var fixed = fixedDefaultValue != null ? mxUtils.getValue(this.state.style, 'fixedSize', '0') != '0' : null; + var size = fixed ? pt.x - bounds.x : Math.max(0, Math.min(max, (pt.x - bounds.x) / bounds.width)); + + if (fixed && !mxEvent.isAltDown(me.getEvent())) { + size = state.view.graph.snap(size); + } + + this.state.style['size'] = size; + }, null, redrawEdges)]; + + if (allowArcHandle && mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) { + handles.push(createArcHandle(state)); + } + + return handles; + }; + }; + + var createCubeHandleFunction = function createCubeHandleFunction(factor, defaultValue, allowArcHandle) { + return function (state) { + var handles = [createHandle(state, ['size'], function (bounds) { + var size = Math.max(0, Math.min(bounds.width, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'size', defaultValue))))) * factor; + return new mxPoint(bounds.x + size, bounds.y + size); + }, function (bounds, pt) { + this.state.style['size'] = Math.round(Math.max(0, Math.min(Math.min(bounds.width, pt.x - bounds.x), Math.min(bounds.height, pt.y - bounds.y))) / factor); + })]; + + if (allowArcHandle && mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) { + handles.push(createArcHandle(state)); + } + + return handles; + }; + }; + + var createArrowHandleFunction = function createArrowHandleFunction(maxSize) { + return function (state) { + return [createHandle(state, ['arrowWidth', 'arrowSize'], function (bounds) { + var aw = Math.max(0, Math.min(1, mxUtils.getValue(this.state.style, 'arrowWidth', SingleArrowShape.prototype.arrowWidth))); + var as = Math.max(0, Math.min(maxSize, mxUtils.getValue(this.state.style, 'arrowSize', SingleArrowShape.prototype.arrowSize))); + return new mxPoint(bounds.x + (1 - as) * bounds.width, bounds.y + (1 - aw) * bounds.height / 2); + }, function (bounds, pt) { + this.state.style['arrowWidth'] = Math.max(0, Math.min(1, Math.abs(bounds.y + bounds.height / 2 - pt.y) / bounds.height * 2)); + this.state.style['arrowSize'] = Math.max(0, Math.min(maxSize, (bounds.x + bounds.width - pt.x) / bounds.width)); + })]; + }; + }; + + var createEdgeHandle = function createEdgeHandle(state, keys, start, getPosition, setPosition) { + return createHandle(state, keys, function (bounds) { + var pts = state.absolutePoints; + var n = pts.length - 1; + var tr = state.view.translate; + var s = state.view.scale; + var p0 = start ? pts[0] : pts[n]; + var p1 = start ? pts[1] : pts[n - 1]; + var dx = start ? p1.x - p0.x : p1.x - p0.x; + var dy = start ? p1.y - p0.y : p1.y - p0.y; + var dist = Math.sqrt(dx * dx + dy * dy); + var pt = getPosition.call(this, dist, dx / dist, dy / dist, p0, p1); + return new mxPoint(pt.x / s - tr.x, pt.y / s - tr.y); + }, function (bounds, pt, me) { + var pts = state.absolutePoints; + var n = pts.length - 1; + var tr = state.view.translate; + var s = state.view.scale; + var p0 = start ? pts[0] : pts[n]; + var p1 = start ? pts[1] : pts[n - 1]; + var dx = start ? p1.x - p0.x : p1.x - p0.x; + var dy = start ? p1.y - p0.y : p1.y - p0.y; + var dist = Math.sqrt(dx * dx + dy * dy); + pt.x = (pt.x + tr.x) * s; + pt.y = (pt.y + tr.y) * s; + setPosition.call(this, dist, dx / dist, dy / dist, p0, p1, pt, me); + }); + }; + + var createEdgeWidthHandle = function createEdgeWidthHandle(state, start, spacing) { + return createEdgeHandle(state, ['width'], start, function (dist, nx, ny, p0, p1) { + var w = state.shape.getEdgeWidth() * state.view.scale + spacing; + return new mxPoint(p0.x + nx * dist / 4 + ny * w / 2, p0.y + ny * dist / 4 - nx * w / 2); + }, function (dist, nx, ny, p0, p1, pt) { + var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y)); + state.style['width'] = Math.round(w * 2) / state.view.scale - spacing; + }); + }; + + var ptLineDistance = function ptLineDistance(x1, y1, x2, y2, x0, y0) { + return Math.abs((y2 - y1) * x0 - (x2 - x1) * y0 + x2 * y1 - y2 * x1) / Math.sqrt((y2 - y1) * (y2 - y1) + (x2 - x1) * (x2 - x1)); + }; + + ; + ; + ; + ; + ; + ; + ; + ; + var handleFactory = { + 'link': function link(state) { + var spacing = 10; + return [createEdgeWidthHandle(state, true, spacing), createEdgeWidthHandle(state, false, spacing)]; + }, + 'flexArrow': function flexArrow(state) { + var tol = state.view.graph.gridSize / state.view.scale; + var handles = []; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_STARTARROW, mxConstants.NONE) != mxConstants.NONE) { + handles.push(createEdgeHandle(state, ['width', mxConstants.STYLE_STARTSIZE, mxConstants.STYLE_ENDSIZE], true, function (dist, nx, ny, p0, p1) { + var w = (state.shape.getEdgeWidth() - state.shape.strokewidth) * state.view.scale; + var l = mxUtils.getNumber(state.style, mxConstants.STYLE_STARTSIZE, mxConstants.ARROW_SIZE / 5) * 3 * state.view.scale; + return new mxPoint(p0.x + nx * (l + state.shape.strokewidth * state.view.scale) + ny * w / 2, p0.y + ny * (l + state.shape.strokewidth * state.view.scale) - nx * w / 2); + }, function (dist, nx, ny, p0, p1, pt, me) { + var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y)); + var l = mxUtils.ptLineDist(p0.x, p0.y, p0.x + ny, p0.y - nx, pt.x, pt.y); + state.style[mxConstants.STYLE_STARTSIZE] = Math.round((l - state.shape.strokewidth) * 100 / 3) / 100 / state.view.scale; + state.style['width'] = Math.round(w * 2) / state.view.scale; + + if (mxEvent.isControlDown(me.getEvent())) { + state.style[mxConstants.STYLE_ENDSIZE] = state.style[mxConstants.STYLE_STARTSIZE]; + } + + if (!mxEvent.isAltDown(me.getEvent())) { + if (Math.abs(parseFloat(state.style[mxConstants.STYLE_STARTSIZE]) - parseFloat(state.style[mxConstants.STYLE_ENDSIZE])) < tol / 6) { + state.style[mxConstants.STYLE_STARTSIZE] = state.style[mxConstants.STYLE_ENDSIZE]; + } + } + })); + handles.push(createEdgeHandle(state, ['startWidth', 'endWidth', mxConstants.STYLE_STARTSIZE, mxConstants.STYLE_ENDSIZE], true, function (dist, nx, ny, p0, p1) { + var w = (state.shape.getStartArrowWidth() - state.shape.strokewidth) * state.view.scale; + var l = mxUtils.getNumber(state.style, mxConstants.STYLE_STARTSIZE, mxConstants.ARROW_SIZE / 5) * 3 * state.view.scale; + return new mxPoint(p0.x + nx * (l + state.shape.strokewidth * state.view.scale) + ny * w / 2, p0.y + ny * (l + state.shape.strokewidth * state.view.scale) - nx * w / 2); + }, function (dist, nx, ny, p0, p1, pt, me) { + var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y)); + var l = mxUtils.ptLineDist(p0.x, p0.y, p0.x + ny, p0.y - nx, pt.x, pt.y); + state.style[mxConstants.STYLE_STARTSIZE] = Math.round((l - state.shape.strokewidth) * 100 / 3) / 100 / state.view.scale; + state.style['startWidth'] = Math.max(0, Math.round(w * 2) - state.shape.getEdgeWidth()) / state.view.scale; + + if (mxEvent.isControlDown(me.getEvent())) { + state.style[mxConstants.STYLE_ENDSIZE] = state.style[mxConstants.STYLE_STARTSIZE]; + state.style['endWidth'] = state.style['startWidth']; + } + + if (!mxEvent.isAltDown(me.getEvent())) { + if (Math.abs(parseFloat(state.style[mxConstants.STYLE_STARTSIZE]) - parseFloat(state.style[mxConstants.STYLE_ENDSIZE])) < tol / 6) { + state.style[mxConstants.STYLE_STARTSIZE] = state.style[mxConstants.STYLE_ENDSIZE]; + } + + if (Math.abs(parseFloat(state.style['startWidth']) - parseFloat(state.style['endWidth'])) < tol) { + state.style['startWidth'] = state.style['endWidth']; + } + } + })); + } + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ENDARROW, mxConstants.NONE) != mxConstants.NONE) { + handles.push(createEdgeHandle(state, ['width', mxConstants.STYLE_STARTSIZE, mxConstants.STYLE_ENDSIZE], false, function (dist, nx, ny, p0, p1) { + var w = (state.shape.getEdgeWidth() - state.shape.strokewidth) * state.view.scale; + var l = mxUtils.getNumber(state.style, mxConstants.STYLE_ENDSIZE, mxConstants.ARROW_SIZE / 5) * 3 * state.view.scale; + return new mxPoint(p0.x + nx * (l + state.shape.strokewidth * state.view.scale) - ny * w / 2, p0.y + ny * (l + state.shape.strokewidth * state.view.scale) + nx * w / 2); + }, function (dist, nx, ny, p0, p1, pt, me) { + var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y)); + var l = mxUtils.ptLineDist(p0.x, p0.y, p0.x + ny, p0.y - nx, pt.x, pt.y); + state.style[mxConstants.STYLE_ENDSIZE] = Math.round((l - state.shape.strokewidth) * 100 / 3) / 100 / state.view.scale; + state.style['width'] = Math.round(w * 2) / state.view.scale; + + if (mxEvent.isControlDown(me.getEvent())) { + state.style[mxConstants.STYLE_STARTSIZE] = state.style[mxConstants.STYLE_ENDSIZE]; + } + + if (!mxEvent.isAltDown(me.getEvent())) { + if (Math.abs(parseFloat(state.style[mxConstants.STYLE_ENDSIZE]) - parseFloat(state.style[mxConstants.STYLE_STARTSIZE])) < tol / 6) { + state.style[mxConstants.STYLE_ENDSIZE] = state.style[mxConstants.STYLE_STARTSIZE]; + } + } + })); + handles.push(createEdgeHandle(state, ['startWidth', 'endWidth', mxConstants.STYLE_STARTSIZE, mxConstants.STYLE_ENDSIZE], false, function (dist, nx, ny, p0, p1) { + var w = (state.shape.getEndArrowWidth() - state.shape.strokewidth) * state.view.scale; + var l = mxUtils.getNumber(state.style, mxConstants.STYLE_ENDSIZE, mxConstants.ARROW_SIZE / 5) * 3 * state.view.scale; + return new mxPoint(p0.x + nx * (l + state.shape.strokewidth * state.view.scale) - ny * w / 2, p0.y + ny * (l + state.shape.strokewidth * state.view.scale) + nx * w / 2); + }, function (dist, nx, ny, p0, p1, pt, me) { + var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y)); + var l = mxUtils.ptLineDist(p0.x, p0.y, p0.x + ny, p0.y - nx, pt.x, pt.y); + state.style[mxConstants.STYLE_ENDSIZE] = Math.round((l - state.shape.strokewidth) * 100 / 3) / 100 / state.view.scale; + state.style['endWidth'] = Math.max(0, Math.round(w * 2) - state.shape.getEdgeWidth()) / state.view.scale; + + if (mxEvent.isControlDown(me.getEvent())) { + state.style[mxConstants.STYLE_STARTSIZE] = state.style[mxConstants.STYLE_ENDSIZE]; + state.style['startWidth'] = state.style['endWidth']; + } + + if (!mxEvent.isAltDown(me.getEvent())) { + if (Math.abs(parseFloat(state.style[mxConstants.STYLE_ENDSIZE]) - parseFloat(state.style[mxConstants.STYLE_STARTSIZE])) < tol / 6) { + state.style[mxConstants.STYLE_ENDSIZE] = state.style[mxConstants.STYLE_STARTSIZE]; + } + + if (Math.abs(parseFloat(state.style['endWidth']) - parseFloat(state.style['startWidth'])) < tol) { + state.style['endWidth'] = state.style['startWidth']; + } + } + })); + } + + return handles; + }, + 'swimlane': function swimlane(state) { + var handles = [createHandle(state, [mxConstants.STYLE_STARTSIZE], function (bounds) { + var size = parseFloat(mxUtils.getValue(state.style, mxConstants.STYLE_STARTSIZE, mxConstants.DEFAULT_STARTSIZE)); + + if (mxUtils.getValue(state.style, mxConstants.STYLE_HORIZONTAL, 1) == 1) { + return new mxPoint(bounds.getCenterX(), bounds.y + Math.max(0, Math.min(bounds.height, size))); + } else { + return new mxPoint(bounds.x + Math.max(0, Math.min(bounds.width, size)), bounds.getCenterY()); + } + }, function (bounds, pt) { + state.style[mxConstants.STYLE_STARTSIZE] = mxUtils.getValue(this.state.style, mxConstants.STYLE_HORIZONTAL, 1) == 1 ? Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))) : Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x))); + })]; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED)) { + var size = parseFloat(mxUtils.getValue(state.style, mxConstants.STYLE_STARTSIZE, mxConstants.DEFAULT_STARTSIZE)); + handles.push(createArcHandle(state, size / 2)); + } + + return handles; + }, + 'label': createArcHandleFunction(), + 'ext': createArcHandleFunction(), + 'rectangle': createArcHandleFunction(), + 'triangle': createArcHandleFunction(), + 'rhombus': createArcHandleFunction(), + 'umlLifeline': function umlLifeline(state) { + return [createHandle(state, ['size'], function (bounds) { + var size = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'size', UmlLifeline.prototype.size)))); + return new mxPoint(bounds.getCenterX(), bounds.y + size); + }, function (bounds, pt) { + this.state.style['size'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))); + }, false)]; + }, + 'umlFrame': function umlFrame(state) { + var handles = [createHandle(state, ['width', 'height'], function (bounds) { + var w0 = Math.max(UmlFrame.prototype.corner, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'width', UmlFrame.prototype.width))); + var h0 = Math.max(UmlFrame.prototype.corner * 1.5, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'height', UmlFrame.prototype.height))); + return new mxPoint(bounds.x + w0, bounds.y + h0); + }, function (bounds, pt) { + this.state.style['width'] = Math.round(Math.max(UmlFrame.prototype.corner, Math.min(bounds.width, pt.x - bounds.x))); + this.state.style['height'] = Math.round(Math.max(UmlFrame.prototype.corner * 1.5, Math.min(bounds.height, pt.y - bounds.y))); + }, false)]; + return handles; + }, + 'process': function process(state) { + var handles = [createHandle(state, ['size'], function (bounds) { + var size = Math.max(0, Math.min(0.5, parseFloat(mxUtils.getValue(this.state.style, 'size', ProcessShape.prototype.size)))); + return new mxPoint(bounds.x + bounds.width * size, bounds.y + bounds.height / 4); + }, function (bounds, pt) { + this.state.style['size'] = Math.max(0, Math.min(0.5, (pt.x - bounds.x) / bounds.width)); + })]; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) { + handles.push(createArcHandle(state)); + } + + return handles; + }, + 'cross': function cross(state) { + return [createHandle(state, ['size'], function (bounds) { + var m = Math.min(bounds.width, bounds.height); + var size = Math.max(0, Math.min(1, mxUtils.getValue(this.state.style, 'size', CrossShape.prototype.size))) * m / 2; + return new mxPoint(bounds.getCenterX() - size, bounds.getCenterY() - size); + }, function (bounds, pt) { + var m = Math.min(bounds.width, bounds.height); + this.state.style['size'] = Math.max(0, Math.min(1, Math.min(Math.max(0, bounds.getCenterY() - pt.y) / m * 2, Math.max(0, bounds.getCenterX() - pt.x) / m * 2))); + })]; + }, + 'note': function note(state) { + return [createHandle(state, ['size'], function (bounds) { + var size = Math.max(0, Math.min(bounds.width, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'size', NoteShape.prototype.size))))); + return new mxPoint(bounds.x + bounds.width - size, bounds.y + size); + }, function (bounds, pt) { + this.state.style['size'] = Math.round(Math.max(0, Math.min(Math.min(bounds.width, bounds.x + bounds.width - pt.x), Math.min(bounds.height, pt.y - bounds.y)))); + })]; + }, + 'manualInput': function manualInput(state) { + var handles = [createHandle(state, ['size'], function (bounds) { + var size = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'size', ManualInputShape.prototype.size))); + return new mxPoint(bounds.x + bounds.width / 4, bounds.y + size * 3 / 4); + }, function (bounds, pt) { + this.state.style['size'] = Math.round(Math.max(0, Math.min(bounds.height, (pt.y - bounds.y) * 4 / 3))); + })]; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) { + handles.push(createArcHandle(state)); + } + + return handles; + }, + 'dataStorage': function dataStorage(state) { + return [createHandle(state, ['size'], function (bounds) { + var size = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'size', DataStorageShape.prototype.size)))); + return new mxPoint(bounds.x + (1 - size) * bounds.width, bounds.getCenterY()); + }, function (bounds, pt) { + this.state.style['size'] = Math.max(0, Math.min(1, (bounds.x + bounds.width - pt.x) / bounds.width)); + })]; + }, + 'callout': function callout(state) { + var handles = [createHandle(state, ['size', 'position'], function (bounds) { + var size = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'size', CalloutShape.prototype.size))); + var position = Math.max(0, Math.min(1, mxUtils.getValue(this.state.style, 'position', CalloutShape.prototype.position))); + var base = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'base', CalloutShape.prototype.base))); + return new mxPoint(bounds.x + position * bounds.width, bounds.y + bounds.height - size); + }, function (bounds, pt) { + var base = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'base', CalloutShape.prototype.base))); + this.state.style['size'] = Math.round(Math.max(0, Math.min(bounds.height, bounds.y + bounds.height - pt.y))); + this.state.style['position'] = Math.round(Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width)) * 100) / 100; + }), createHandle(state, ['position2'], function (bounds) { + var position2 = Math.max(0, Math.min(1, mxUtils.getValue(this.state.style, 'position2', CalloutShape.prototype.position2))); + return new mxPoint(bounds.x + position2 * bounds.width, bounds.y + bounds.height); + }, function (bounds, pt) { + this.state.style['position2'] = Math.round(Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width)) * 100) / 100; + }), createHandle(state, ['base'], function (bounds) { + var size = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'size', CalloutShape.prototype.size))); + var position = Math.max(0, Math.min(1, mxUtils.getValue(this.state.style, 'position', CalloutShape.prototype.position))); + var base = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'base', CalloutShape.prototype.base))); + return new mxPoint(bounds.x + Math.min(bounds.width, position * bounds.width + base), bounds.y + bounds.height - size); + }, function (bounds, pt) { + var position = Math.max(0, Math.min(1, mxUtils.getValue(this.state.style, 'position', CalloutShape.prototype.position))); + this.state.style['base'] = Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x - position * bounds.width))); + })]; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) { + handles.push(createArcHandle(state)); + } + + return handles; + }, + 'internalStorage': function internalStorage(state) { + var handles = [createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'dx', InternalStorageShape.prototype.dx))); + var dy = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'dy', InternalStorageShape.prototype.dy))); + return new mxPoint(bounds.x + dx, bounds.y + dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x))); + this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))); + })]; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) { + handles.push(createArcHandle(state)); + } + + return handles; + }, + 'corner': function corner(state) { + return [createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'dx', CornerShape.prototype.dx))); + var dy = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'dy', CornerShape.prototype.dy))); + return new mxPoint(bounds.x + dx, bounds.y + dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x))); + this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))); + })]; + }, + 'tee': function tee(state) { + return [createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'dx', TeeShape.prototype.dx))); + var dy = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'dy', TeeShape.prototype.dy))); + return new mxPoint(bounds.x + (bounds.width + dx) / 2, bounds.y + dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(Math.max(0, Math.min(bounds.width / 2, pt.x - bounds.x - bounds.width / 2) * 2)); + this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))); + })]; + }, + 'singleArrow': createArrowHandleFunction(1), + 'doubleArrow': createArrowHandleFunction(0.5), + 'folder': function folder(state) { + return [createHandle(state, ['tabWidth', 'tabHeight'], function (bounds) { + var tw = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'tabWidth', FolderShape.prototype.tabWidth))); + var th = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'tabHeight', FolderShape.prototype.tabHeight))); + + if (mxUtils.getValue(this.state.style, 'tabPosition', FolderShape.prototype.tabPosition) == mxConstants.ALIGN_RIGHT) { + tw = bounds.width - tw; + } + + return new mxPoint(bounds.x + tw, bounds.y + th); + }, function (bounds, pt) { + var tw = Math.max(0, Math.min(bounds.width, pt.x - bounds.x)); + + if (mxUtils.getValue(this.state.style, 'tabPosition', FolderShape.prototype.tabPosition) == mxConstants.ALIGN_RIGHT) { + tw = bounds.width - tw; + } + + this.state.style['tabWidth'] = Math.round(tw); + this.state.style['tabHeight'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))); + })]; + }, + 'document': function document(state) { + return [createHandle(state, ['size'], function (bounds) { + var size = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'size', DocumentShape.prototype.size)))); + return new mxPoint(bounds.x + 3 * bounds.width / 4, bounds.y + (1 - size) * bounds.height); + }, function (bounds, pt) { + this.state.style['size'] = Math.max(0, Math.min(1, (bounds.y + bounds.height - pt.y) / bounds.height)); + })]; + }, + 'tape': function tape(state) { + return [createHandle(state, ['size'], function (bounds) { + var size = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'size', TapeShape.prototype.size)))); + return new mxPoint(bounds.getCenterX(), bounds.y + size * bounds.height / 2); + }, function (bounds, pt) { + this.state.style['size'] = Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height * 2)); + })]; + }, + 'offPageConnector': function offPageConnector(state) { + return [createHandle(state, ['size'], function (bounds) { + var size = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'size', OffPageConnectorShape.prototype.size)))); + return new mxPoint(bounds.getCenterX(), bounds.y + (1 - size) * bounds.height); + }, function (bounds, pt) { + this.state.style['size'] = Math.max(0, Math.min(1, (bounds.y + bounds.height - pt.y) / bounds.height)); + })]; + }, + 'step': createDisplayHandleFunction(StepShape.prototype.size, true, null, true, StepShape.prototype.fixedSize), + 'hexagon': createDisplayHandleFunction(HexagonShape.prototype.size, true, 0.5, true), + 'curlyBracket': createDisplayHandleFunction(CurlyBracketShape.prototype.size, false), + 'display': createDisplayHandleFunction(DisplayShape.prototype.size, false), + 'cube': createCubeHandleFunction(1, CubeShape.prototype.size, false), + 'card': createCubeHandleFunction(0.5, CardShape.prototype.size, true), + 'loopLimit': createCubeHandleFunction(0.5, LoopLimitShape.prototype.size, true), + 'trapezoid': createTrapezoidHandleFunction(0.5), + 'parallelogram': createTrapezoidHandleFunction(1) + }; + mxGraph.createHandle = createHandle; + mxGraph.handleFactory = handleFactory; + + mxVertexHandler.prototype.createCustomHandles = function () { + if (this.state.view.graph.getSelectionCount() == 1) { + if (this.graph.isCellRotatable(this.state.cell)) { + var name = this.state.style['shape']; + + if (mxCellRenderer.defaultShapes[name] == null && mxStencilRegistry.getStencil(name) == null) { + name = mxConstants.SHAPE_RECTANGLE; + } + + var fn = handleFactory[name]; + + if (fn == null && this.state.shape != null && this.state.shape.isRoundable()) { + fn = handleFactory[mxConstants.SHAPE_RECTANGLE]; + } + + if (fn != null) { + return fn(this.state); + } + } + } + + return null; + }; + + mxEdgeHandler.prototype.createCustomHandles = function () { + if (this.state.view.graph.getSelectionCount() == 1) { + var name = this.state.style['shape']; + + if (mxCellRenderer.defaultShapes[name] == null && mxStencilRegistry.getStencil(name) == null) { + name = mxConstants.SHAPE_CONNECTOR; + } + + var fn = handleFactory[name]; + + if (fn != null) { + return fn(this.state); + } + } + + return null; + }; + } else { + mxGraph.createHandle = function () {}; + + mxGraph.handleFactory = {}; + } + + var isoHVector = new mxPoint(1, 0); + var isoVVector = new mxPoint(1, 0); + var alpha1 = mxUtils.toRadians(-30); + var cos1 = Math.cos(alpha1); + var sin1 = Math.sin(alpha1); + isoHVector = mxUtils.getRotatedPoint(isoHVector, cos1, sin1); + var alpha2 = mxUtils.toRadians(-150); + var cos2 = Math.cos(alpha2); + var sin2 = Math.sin(alpha2); + isoVVector = mxUtils.getRotatedPoint(isoVVector, cos2, sin2); + + mxEdgeStyle.IsometricConnector = function (state, source, target, points, result) { + var view = state.view; + var pt = points != null && points.length > 0 ? points[0] : null; + var pts = state.absolutePoints; + var p0 = pts[0]; + var pe = pts[pts.length - 1]; + + if (pt != null) { + pt = view.transformControlPoint(state, pt); + } + + if (p0 == null) { + if (source != null) { + p0 = new mxPoint(source.getCenterX(), source.getCenterY()); + } + } + + if (pe == null) { + if (target != null) { + pe = new mxPoint(target.getCenterX(), target.getCenterY()); + } + } + + var a1 = isoHVector.x; + var a2 = isoHVector.y; + var b1 = isoVVector.x; + var b2 = isoVVector.y; + var elbow = mxUtils.getValue(state.style, 'elbow', 'horizontal') == 'horizontal'; + + if (pe != null && p0 != null) { + var isoLineTo = function isoLineTo(x, y, ignoreFirst) { + var c1 = x - last.x; + var c2 = y - last.y; + var h = (b2 * c1 - b1 * c2) / (a1 * b2 - a2 * b1); + var v = (a2 * c1 - a1 * c2) / (a2 * b1 - a1 * b2); + + if (elbow) { + if (ignoreFirst) { + last = new mxPoint(last.x + a1 * h, last.y + a2 * h); + result.push(last); + } + + last = new mxPoint(last.x + b1 * v, last.y + b2 * v); + result.push(last); + } else { + if (ignoreFirst) { + last = new mxPoint(last.x + b1 * v, last.y + b2 * v); + result.push(last); + } + + last = new mxPoint(last.x + a1 * h, last.y + a2 * h); + result.push(last); + } + }; + + var last = p0; + ; + + if (pt == null) { + pt = new mxPoint(p0.x + (pe.x - p0.x) / 2, p0.y + (pe.y - p0.y) / 2); + } + + isoLineTo(pt.x, pt.y, true); + isoLineTo(pe.x, pe.y, false); + } + }; + + mxStyleRegistry.putValue('isometricEdgeStyle', mxEdgeStyle.IsometricConnector); + var graphCreateEdgeHandler = mxGraph.prototype.createEdgeHandler; + + mxGraph.prototype.createEdgeHandler = function (state, edgeStyle) { + if (edgeStyle == mxEdgeStyle.IsometricConnector) { + var handler = new mxElbowEdgeHandler(state); + handler.snapToTerminals = false; + return handler; + } + + return graphCreateEdgeHandler.apply(this, arguments); + }; + + IsoRectangleShape.prototype.constraints = []; + IsoCubeShape.prototype.constraints = []; + CalloutShape.prototype.constraints = []; + mxRectangleShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + mxEllipse.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5))]; + mxLabel.prototype.constraints = mxRectangleShape.prototype.constraints; + mxImageShape.prototype.constraints = mxRectangleShape.prototype.constraints; + mxSwimlane.prototype.constraints = mxRectangleShape.prototype.constraints; + PlusShape.prototype.constraints = mxRectangleShape.prototype.constraints; + NoteShape.prototype.constraints = mxRectangleShape.prototype.constraints; + CardShape.prototype.constraints = mxRectangleShape.prototype.constraints; + CubeShape.prototype.constraints = mxRectangleShape.prototype.constraints; + FolderShape.prototype.constraints = mxRectangleShape.prototype.constraints; + InternalStorageShape.prototype.constraints = mxRectangleShape.prototype.constraints; + DataStorageShape.prototype.constraints = mxRectangleShape.prototype.constraints; + TapeDataShape.prototype.constraints = mxEllipse.prototype.constraints; + OrEllipseShape.prototype.constraints = mxEllipse.prototype.constraints; + SumEllipseShape.prototype.constraints = mxEllipse.prototype.constraints; + LineEllipseShape.prototype.constraints = mxEllipse.prototype.constraints; + ManualInputShape.prototype.constraints = mxRectangleShape.prototype.constraints; + DelayShape.prototype.constraints = mxRectangleShape.prototype.constraints; + DisplayShape.prototype.constraints = mxRectangleShape.prototype.constraints; + LoopLimitShape.prototype.constraints = mxRectangleShape.prototype.constraints; + OffPageConnectorShape.prototype.constraints = mxRectangleShape.prototype.constraints; + mxCylinder.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.15, 0.05), false), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.85, 0.05), false), new mxConnectionConstraint(new mxPoint(0, 0.3), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.7), true), new mxConnectionConstraint(new mxPoint(1, 0.3), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.7), true), new mxConnectionConstraint(new mxPoint(0.15, 0.95), false), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.85, 0.95), false)]; + UmlActorShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0.1), false), new mxConnectionConstraint(new mxPoint(0.5, 0), false), new mxConnectionConstraint(new mxPoint(0.75, 0.1), false), new mxConnectionConstraint(new mxPoint(0, 1 / 3), false), new mxConnectionConstraint(new mxPoint(0, 1), false), new mxConnectionConstraint(new mxPoint(1, 1 / 3), false), new mxConnectionConstraint(new mxPoint(1, 1), false), new mxConnectionConstraint(new mxPoint(0.5, 0.5), false)]; + ComponentShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.3), true), new mxConnectionConstraint(new mxPoint(0, 0.7), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + mxActor.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.25, 0.2), false), new mxConnectionConstraint(new mxPoint(0.1, 0.5), false), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(0.75, 0.25), false), new mxConnectionConstraint(new mxPoint(0.9, 0.5), false), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + SwitchShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), false), new mxConnectionConstraint(new mxPoint(0.5, 0.25), false), new mxConnectionConstraint(new mxPoint(1, 0), false), new mxConnectionConstraint(new mxPoint(0.25, 0.5), false), new mxConnectionConstraint(new mxPoint(0.75, 0.5), false), new mxConnectionConstraint(new mxPoint(0, 1), false), new mxConnectionConstraint(new mxPoint(0.5, 0.75), false), new mxConnectionConstraint(new mxPoint(1, 1), false)]; + TapeShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.35), false), new mxConnectionConstraint(new mxPoint(0, 0.5), false), new mxConnectionConstraint(new mxPoint(0, 0.65), false), new mxConnectionConstraint(new mxPoint(1, 0.35), false), new mxConnectionConstraint(new mxPoint(1, 0.5), false), new mxConnectionConstraint(new mxPoint(1, 0.65), false), new mxConnectionConstraint(new mxPoint(0.25, 1), false), new mxConnectionConstraint(new mxPoint(0.75, 0), false)]; + StepShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true)]; + mxLine.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), false), new mxConnectionConstraint(new mxPoint(0.25, 0.5), false), new mxConnectionConstraint(new mxPoint(0.75, 0.5), false), new mxConnectionConstraint(new mxPoint(1, 0.5), false)]; + LollipopShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), false), new mxConnectionConstraint(new mxPoint(0.5, 1), false)]; + mxDoubleEllipse.prototype.constraints = mxEllipse.prototype.constraints; + mxRhombus.prototype.constraints = mxEllipse.prototype.constraints; + mxTriangle.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true)]; + mxHexagon.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.375, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.625, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.375, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.625, 1), true)]; + mxCloud.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0.25), false), new mxConnectionConstraint(new mxPoint(0.4, 0.1), false), new mxConnectionConstraint(new mxPoint(0.16, 0.55), false), new mxConnectionConstraint(new mxPoint(0.07, 0.4), false), new mxConnectionConstraint(new mxPoint(0.31, 0.8), false), new mxConnectionConstraint(new mxPoint(0.13, 0.77), false), new mxConnectionConstraint(new mxPoint(0.8, 0.8), false), new mxConnectionConstraint(new mxPoint(0.55, 0.95), false), new mxConnectionConstraint(new mxPoint(0.875, 0.5), false), new mxConnectionConstraint(new mxPoint(0.96, 0.7), false), new mxConnectionConstraint(new mxPoint(0.625, 0.2), false), new mxConnectionConstraint(new mxPoint(0.88, 0.25), false)]; + ParallelogramShape.prototype.constraints = mxRectangleShape.prototype.constraints; + TrapezoidShape.prototype.constraints = mxRectangleShape.prototype.constraints; + DocumentShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true)]; + mxArrow.prototype.constraints = null; + TeeShape.prototype.constraints = null; + CornerShape.prototype.constraints = null; + CrossbarShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), false), new mxConnectionConstraint(new mxPoint(0, 0.5), false), new mxConnectionConstraint(new mxPoint(0, 1), false), new mxConnectionConstraint(new mxPoint(0.25, 0.5), false), new mxConnectionConstraint(new mxPoint(0.5, 0.5), false), new mxConnectionConstraint(new mxPoint(0.75, 0.5), false), new mxConnectionConstraint(new mxPoint(1, 0), false), new mxConnectionConstraint(new mxPoint(1, 0.5), false), new mxConnectionConstraint(new mxPoint(1, 1), false)]; + SingleArrowShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), false), new mxConnectionConstraint(new mxPoint(1, 0.5), false)]; + DoubleArrowShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), false), new mxConnectionConstraint(new mxPoint(1, 0.5), false)]; + CrossShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), false), new mxConnectionConstraint(new mxPoint(1, 0.5), false), new mxConnectionConstraint(new mxPoint(0.5, 0), false), new mxConnectionConstraint(new mxPoint(0.5, 1), false)]; + UmlLifeline.prototype.constraints = null; + OrShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.25), false), new mxConnectionConstraint(new mxPoint(0, 0.5), false), new mxConnectionConstraint(new mxPoint(0, 0.75), false), new mxConnectionConstraint(new mxPoint(1, 0.5), false), new mxConnectionConstraint(new mxPoint(0.7, 0.1), false), new mxConnectionConstraint(new mxPoint(0.7, 0.9), false)]; + XorShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.175, 0.25), false), new mxConnectionConstraint(new mxPoint(0.25, 0.5), false), new mxConnectionConstraint(new mxPoint(0.175, 0.75), false), new mxConnectionConstraint(new mxPoint(1, 0.5), false), new mxConnectionConstraint(new mxPoint(0.7, 0.1), false), new mxConnectionConstraint(new mxPoint(0.7, 0.9), false)]; + RequiredInterfaceShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), false), new mxConnectionConstraint(new mxPoint(1, 0.5), false)]; + ProvidedRequiredInterfaceShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), false), new mxConnectionConstraint(new mxPoint(1, 0.5), false)]; +})(); diff --git a/data/plugins/grafana-flowcharting/dist/css/flowchart.dark.css b/data/plugins/grafana-flowcharting/dist/css/flowchart.dark.css new file mode 100644 index 0000000000000..92901418c247a --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/css/flowchart.dark.css @@ -0,0 +1,708 @@ +div.flowchart-panel { + display: flex; + flex-direction: column; + height: 100%; + width: 100%; } + +div.flowchart-panel__chart { + position: relative; + flex-grow: 1; + width: 100%; + height: 100%; + margin: 0; } + +table.flowchartTable-editor { + font-family: Arial, Helvetica, sans-serif; + border: 2px solid #161719; + background-color: #212124; + width: 90%; + height: 200px; + text-align: left; + border-collapse: collapse; } + +table.flowchartTable-editor td, +table.flowchartTable-editor th { + border: 2px solid #161719; + padding: 2px 2px; } + +table.flowchartTable-editor tbody td { + font-size: 11px; + color: #e6e6e6; } + +table.flowchartTable-editor thead { + background: #2f2f32; + border-bottom: 2px solid #000000; } + +table.flowchartTable-editor thead th { + font-size: 12px; + font-weight: bold; + color: #33b5e5; + text-align: center; + border-left: 2px solid #171819; } + +table.flowchartTable-editor thead th:first-child { + border-left: none; } + +table.flowchartTable-editor tfoot td { + font-size: 12px; } + +hr { + margin-top: 1rem; + margin-bottom: 1rem; + border: 0; + border-top: 1px solid #333; } + +div.rule-item { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + box-sizing: inherit; + text-decoration: none; + touch-action: manipulation; + display: block; + margin: 3px; + padding: 7px; + background: linear-gradient(135deg, #2f2f32, #262628); + box-shadow: -1px -1px 0 0 rgba(255, 255, 255, 0.1), 1px 1px 0 0 rgba(0, 0, 0, 0.3); + color: #d8d9da; } + +div.rule-item:hover { + background: linear-gradient(135deg, #3d3d41, #262628); } + +span.rule-extend { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + cursor: pointer; + color: #dad9d8; + box-sizing: inherit; } + +span.rule-title { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + cursor: pointer; + color: #dad9d8; + box-sizing: inherit; } + +span.rule-nav { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + cursor: pointer; + color: #d8d9da; + box-sizing: inherit; + float: right; } + +div.tooltip-text { + display: block; + word-wrap: break-word; + max-width: 200px; + white-space: normal; } + +div.tooltip-metric { + margin: 5px 5px 5px 5px; } + +div.tooltip-date { + margin-top: 5px; + margin-bottom: 5px; } + +.ct-label { + fill: rgba(0, 0, 0, 0.4); + color: rgba(0, 0, 0, 0.4); + font-size: 0.75rem; + line-height: 1; } + +.ct-chart-line .ct-label, +.ct-chart-bar .ct-label { + display: block; + display: -webkit-box; + display: -moz-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; } + +.ct-chart-pie .ct-label, +.ct-chart-donut .ct-label { + dominant-baseline: central; } + +.ct-label.ct-horizontal.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; } + +.ct-label.ct-horizontal.ct-end { + -webkit-box-align: flex-start; + -webkit-align-items: flex-start; + -ms-flex-align: flex-start; + align-items: flex-start; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; } + +.ct-label.ct-vertical.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-end; + -webkit-justify-content: flex-end; + -ms-flex-pack: flex-end; + justify-content: flex-end; + text-align: right; + text-anchor: end; } + +.ct-label.ct-vertical.ct-end { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; } + +.ct-chart-bar .ct-label.ct-horizontal.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + text-align: center; + text-anchor: start; } + +.ct-chart-bar .ct-label.ct-horizontal.ct-end { + -webkit-box-align: flex-start; + -webkit-align-items: flex-start; + -ms-flex-align: flex-start; + align-items: flex-start; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + text-align: center; + text-anchor: start; } + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; } + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end { + -webkit-box-align: flex-start; + -webkit-align-items: flex-start; + -ms-flex-align: flex-start; + align-items: flex-start; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; } + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start { + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: flex-end; + -webkit-justify-content: flex-end; + -ms-flex-pack: flex-end; + justify-content: flex-end; + text-align: right; + text-anchor: end; } + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end { + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: end; } + +.ct-grid { + stroke: rgba(0, 0, 0, 0.2); + stroke-width: 1px; + stroke-dasharray: 2px; } + +.ct-grid-background { + fill: none; } + +.ct-point { + stroke-width: 1px; + stroke-linecap: round; } + +.ct-line { + fill: none; + stroke-width: 1px; } + +.ct-area { + stroke: none; + fill-opacity: 0.1; } + +.ct-bar { + fill: none; + stroke-width: 10px; } + +.ct-slice-donut { + fill: none; + stroke-width: 60px; } + +.ct-series-a .ct-point, +.ct-series-a .ct-line, +.ct-series-a .ct-bar, +.ct-series-a .ct-slice-donut { + stroke: #d70206; } + +.ct-series-a .ct-slice-pie, +.ct-series-a .ct-slice-donut-solid, +.ct-series-a .ct-area { + fill: #d70206; } + +.ct-square { + display: block; + position: relative; + width: 100%; } + +.ct-square:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 100%; } + +.ct-square:after { + content: ''; + display: table; + clear: both; } + +.ct-square > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-minor-second { + display: block; + position: relative; + width: 100%; } + +.ct-minor-second:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 93.75%; } + +.ct-minor-second:after { + content: ''; + display: table; + clear: both; } + +.ct-minor-second > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-major-second { + display: block; + position: relative; + width: 100%; } + +.ct-major-second:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 88.8888888889%; } + +.ct-major-second:after { + content: ''; + display: table; + clear: both; } + +.ct-major-second > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-minor-third { + display: block; + position: relative; + width: 100%; } + +.ct-minor-third:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 83.3333333333%; } + +.ct-minor-third:after { + content: ''; + display: table; + clear: both; } + +.ct-minor-third > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-major-third { + display: block; + position: relative; + width: 100%; } + +.ct-major-third:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 80%; } + +.ct-major-third:after { + content: ''; + display: table; + clear: both; } + +.ct-major-third > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-perfect-fourth { + display: block; + position: relative; + width: 100%; } + +.ct-perfect-fourth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 75%; } + +.ct-perfect-fourth:after { + content: ''; + display: table; + clear: both; } + +.ct-perfect-fourth > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-perfect-fifth { + display: block; + position: relative; + width: 100%; } + +.ct-perfect-fifth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 66.6666666667%; } + +.ct-perfect-fifth:after { + content: ''; + display: table; + clear: both; } + +.ct-perfect-fifth > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-minor-sixth { + display: block; + position: relative; + width: 100%; } + +.ct-minor-sixth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 62.5%; } + +.ct-minor-sixth:after { + content: ''; + display: table; + clear: both; } + +.ct-minor-sixth > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-golden-section { + display: block; + position: relative; + width: 100%; } + +.ct-golden-section:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 61.804697157%; } + +.ct-golden-section:after { + content: ''; + display: table; + clear: both; } + +.ct-golden-section > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-major-sixth { + display: block; + position: relative; + width: 100%; } + +.ct-major-sixth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 60%; } + +.ct-major-sixth:after { + content: ''; + display: table; + clear: both; } + +.ct-major-sixth > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-minor-seventh { + display: block; + position: relative; + width: 100%; } + +.ct-minor-seventh:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 56.25%; } + +.ct-minor-seventh:after { + content: ''; + display: table; + clear: both; } + +.ct-minor-seventh > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-major-seventh { + display: block; + position: relative; + width: 100%; } + +.ct-major-seventh:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 53.3333333333%; } + +.ct-major-seventh:after { + content: ''; + display: table; + clear: both; } + +.ct-major-seventh > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-octave { + display: block; + position: relative; + width: 100%; } + +.ct-octave:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 50%; } + +.ct-octave:after { + content: ''; + display: table; + clear: both; } + +.ct-octave > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-major-tenth { + display: block; + position: relative; + width: 100%; } + +.ct-major-tenth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 40%; } + +.ct-major-tenth:after { + content: ''; + display: table; + clear: both; } + +.ct-major-tenth > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-major-eleventh { + display: block; + position: relative; + width: 100%; } + +.ct-major-eleventh:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 37.5%; } + +.ct-major-eleventh:after { + content: ''; + display: table; + clear: both; } + +.ct-major-eleventh > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-major-twelfth { + display: block; + position: relative; + width: 100%; } + +.ct-major-twelfth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 33.3333333333%; } + +.ct-major-twelfth:after { + content: ''; + display: table; + clear: both; } + +.ct-major-twelfth > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-double-octave { + display: block; + position: relative; + width: 100%; } + +.ct-double-octave:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 25%; } + +.ct-double-octave:after { + content: ''; + display: table; + clear: both; } + +.ct-double-octave > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-chart .ct-series.ct-series-a .ct-area { + fill: #22e61b; } + +.ct-chart .ct-series.ct-series-a .ct-line { + stroke: #22e61b; } diff --git a/data/plugins/grafana-flowcharting/dist/css/flowchart.light.css b/data/plugins/grafana-flowcharting/dist/css/flowchart.light.css new file mode 100644 index 0000000000000..92901418c247a --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/css/flowchart.light.css @@ -0,0 +1,708 @@ +div.flowchart-panel { + display: flex; + flex-direction: column; + height: 100%; + width: 100%; } + +div.flowchart-panel__chart { + position: relative; + flex-grow: 1; + width: 100%; + height: 100%; + margin: 0; } + +table.flowchartTable-editor { + font-family: Arial, Helvetica, sans-serif; + border: 2px solid #161719; + background-color: #212124; + width: 90%; + height: 200px; + text-align: left; + border-collapse: collapse; } + +table.flowchartTable-editor td, +table.flowchartTable-editor th { + border: 2px solid #161719; + padding: 2px 2px; } + +table.flowchartTable-editor tbody td { + font-size: 11px; + color: #e6e6e6; } + +table.flowchartTable-editor thead { + background: #2f2f32; + border-bottom: 2px solid #000000; } + +table.flowchartTable-editor thead th { + font-size: 12px; + font-weight: bold; + color: #33b5e5; + text-align: center; + border-left: 2px solid #171819; } + +table.flowchartTable-editor thead th:first-child { + border-left: none; } + +table.flowchartTable-editor tfoot td { + font-size: 12px; } + +hr { + margin-top: 1rem; + margin-bottom: 1rem; + border: 0; + border-top: 1px solid #333; } + +div.rule-item { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + box-sizing: inherit; + text-decoration: none; + touch-action: manipulation; + display: block; + margin: 3px; + padding: 7px; + background: linear-gradient(135deg, #2f2f32, #262628); + box-shadow: -1px -1px 0 0 rgba(255, 255, 255, 0.1), 1px 1px 0 0 rgba(0, 0, 0, 0.3); + color: #d8d9da; } + +div.rule-item:hover { + background: linear-gradient(135deg, #3d3d41, #262628); } + +span.rule-extend { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + cursor: pointer; + color: #dad9d8; + box-sizing: inherit; } + +span.rule-title { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + cursor: pointer; + color: #dad9d8; + box-sizing: inherit; } + +span.rule-nav { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + cursor: pointer; + color: #d8d9da; + box-sizing: inherit; + float: right; } + +div.tooltip-text { + display: block; + word-wrap: break-word; + max-width: 200px; + white-space: normal; } + +div.tooltip-metric { + margin: 5px 5px 5px 5px; } + +div.tooltip-date { + margin-top: 5px; + margin-bottom: 5px; } + +.ct-label { + fill: rgba(0, 0, 0, 0.4); + color: rgba(0, 0, 0, 0.4); + font-size: 0.75rem; + line-height: 1; } + +.ct-chart-line .ct-label, +.ct-chart-bar .ct-label { + display: block; + display: -webkit-box; + display: -moz-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; } + +.ct-chart-pie .ct-label, +.ct-chart-donut .ct-label { + dominant-baseline: central; } + +.ct-label.ct-horizontal.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; } + +.ct-label.ct-horizontal.ct-end { + -webkit-box-align: flex-start; + -webkit-align-items: flex-start; + -ms-flex-align: flex-start; + align-items: flex-start; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; } + +.ct-label.ct-vertical.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-end; + -webkit-justify-content: flex-end; + -ms-flex-pack: flex-end; + justify-content: flex-end; + text-align: right; + text-anchor: end; } + +.ct-label.ct-vertical.ct-end { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; } + +.ct-chart-bar .ct-label.ct-horizontal.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + text-align: center; + text-anchor: start; } + +.ct-chart-bar .ct-label.ct-horizontal.ct-end { + -webkit-box-align: flex-start; + -webkit-align-items: flex-start; + -ms-flex-align: flex-start; + align-items: flex-start; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + text-align: center; + text-anchor: start; } + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; } + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end { + -webkit-box-align: flex-start; + -webkit-align-items: flex-start; + -ms-flex-align: flex-start; + align-items: flex-start; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; } + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start { + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: flex-end; + -webkit-justify-content: flex-end; + -ms-flex-pack: flex-end; + justify-content: flex-end; + text-align: right; + text-anchor: end; } + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end { + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: end; } + +.ct-grid { + stroke: rgba(0, 0, 0, 0.2); + stroke-width: 1px; + stroke-dasharray: 2px; } + +.ct-grid-background { + fill: none; } + +.ct-point { + stroke-width: 1px; + stroke-linecap: round; } + +.ct-line { + fill: none; + stroke-width: 1px; } + +.ct-area { + stroke: none; + fill-opacity: 0.1; } + +.ct-bar { + fill: none; + stroke-width: 10px; } + +.ct-slice-donut { + fill: none; + stroke-width: 60px; } + +.ct-series-a .ct-point, +.ct-series-a .ct-line, +.ct-series-a .ct-bar, +.ct-series-a .ct-slice-donut { + stroke: #d70206; } + +.ct-series-a .ct-slice-pie, +.ct-series-a .ct-slice-donut-solid, +.ct-series-a .ct-area { + fill: #d70206; } + +.ct-square { + display: block; + position: relative; + width: 100%; } + +.ct-square:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 100%; } + +.ct-square:after { + content: ''; + display: table; + clear: both; } + +.ct-square > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-minor-second { + display: block; + position: relative; + width: 100%; } + +.ct-minor-second:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 93.75%; } + +.ct-minor-second:after { + content: ''; + display: table; + clear: both; } + +.ct-minor-second > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-major-second { + display: block; + position: relative; + width: 100%; } + +.ct-major-second:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 88.8888888889%; } + +.ct-major-second:after { + content: ''; + display: table; + clear: both; } + +.ct-major-second > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-minor-third { + display: block; + position: relative; + width: 100%; } + +.ct-minor-third:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 83.3333333333%; } + +.ct-minor-third:after { + content: ''; + display: table; + clear: both; } + +.ct-minor-third > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-major-third { + display: block; + position: relative; + width: 100%; } + +.ct-major-third:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 80%; } + +.ct-major-third:after { + content: ''; + display: table; + clear: both; } + +.ct-major-third > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-perfect-fourth { + display: block; + position: relative; + width: 100%; } + +.ct-perfect-fourth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 75%; } + +.ct-perfect-fourth:after { + content: ''; + display: table; + clear: both; } + +.ct-perfect-fourth > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-perfect-fifth { + display: block; + position: relative; + width: 100%; } + +.ct-perfect-fifth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 66.6666666667%; } + +.ct-perfect-fifth:after { + content: ''; + display: table; + clear: both; } + +.ct-perfect-fifth > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-minor-sixth { + display: block; + position: relative; + width: 100%; } + +.ct-minor-sixth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 62.5%; } + +.ct-minor-sixth:after { + content: ''; + display: table; + clear: both; } + +.ct-minor-sixth > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-golden-section { + display: block; + position: relative; + width: 100%; } + +.ct-golden-section:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 61.804697157%; } + +.ct-golden-section:after { + content: ''; + display: table; + clear: both; } + +.ct-golden-section > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-major-sixth { + display: block; + position: relative; + width: 100%; } + +.ct-major-sixth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 60%; } + +.ct-major-sixth:after { + content: ''; + display: table; + clear: both; } + +.ct-major-sixth > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-minor-seventh { + display: block; + position: relative; + width: 100%; } + +.ct-minor-seventh:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 56.25%; } + +.ct-minor-seventh:after { + content: ''; + display: table; + clear: both; } + +.ct-minor-seventh > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-major-seventh { + display: block; + position: relative; + width: 100%; } + +.ct-major-seventh:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 53.3333333333%; } + +.ct-major-seventh:after { + content: ''; + display: table; + clear: both; } + +.ct-major-seventh > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-octave { + display: block; + position: relative; + width: 100%; } + +.ct-octave:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 50%; } + +.ct-octave:after { + content: ''; + display: table; + clear: both; } + +.ct-octave > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-major-tenth { + display: block; + position: relative; + width: 100%; } + +.ct-major-tenth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 40%; } + +.ct-major-tenth:after { + content: ''; + display: table; + clear: both; } + +.ct-major-tenth > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-major-eleventh { + display: block; + position: relative; + width: 100%; } + +.ct-major-eleventh:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 37.5%; } + +.ct-major-eleventh:after { + content: ''; + display: table; + clear: both; } + +.ct-major-eleventh > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-major-twelfth { + display: block; + position: relative; + width: 100%; } + +.ct-major-twelfth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 33.3333333333%; } + +.ct-major-twelfth:after { + content: ''; + display: table; + clear: both; } + +.ct-major-twelfth > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-double-octave { + display: block; + position: relative; + width: 100%; } + +.ct-double-octave:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 25%; } + +.ct-double-octave:after { + content: ''; + display: table; + clear: both; } + +.ct-double-octave > svg { + display: block; + position: absolute; + top: 0; + left: 0; } + +.ct-chart .ct-series.ct-series-a .ct-area { + fill: #22e61b; } + +.ct-chart .ct-series.ct-series-a .ct-line { + stroke: #22e61b; } diff --git a/data/plugins/grafana-flowcharting/dist/flowchartHandler.js b/data/plugins/grafana-flowcharting/dist/flowchartHandler.js new file mode 100644 index 0000000000000..c6f55f97ca656 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/flowchartHandler.js @@ -0,0 +1,316 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _flowchart_class = _interopRequireDefault(require("./flowchart_class")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +var FlowchartHandler = function () { + function FlowchartHandler($scope, elem, ctrl, data) { + var _this = this; + + _classCallCheck(this, FlowchartHandler); + + u.log(1, 'FlowchartHandler.constructor()'); + u.log(0, 'FlowchartHandler.constructor() data', data); + this.$scope = $scope || null; + this.$elem = elem.find('.flowchart-panel__chart'); + this.ctrl = ctrl; + this.flowcharts = []; + this.data = data; + this.firstLoad = true; + this.changeSourceFlag = false; + this.changeOptionFlag = true; + this.changeDataFlag = false; + this.changedRuleFlag = false; + this.defaultXml = '7X1tl5pIt/avyTqfMgsBO90fabFt+gh2t5qOfnkWIo0oirdiI/z6s1+qoFCTdDKZycx67smaCAVVtWvva79WaT4YnfWxt/O3Czedh8kHXZsfPxj2B13/dHUNf2NDwQ3tqzY3RLt4zk2tumEYl6Fo1ETrIZ6H+8aLWZomWbxtNgbpZhMGWaPN3+3SvPnaa5o0Z936UXjWMAz85Lz1JZ5nC2691j/V7fdhHC3kzK2rG36y9uXLYiX7hT9Pc6XJ6H4wOrs0zfhqfeyECfJO8oX73X3laUXYLtxk7+mgX3GPNz85iMUJwrJCrhZo3OJlBrIMyxS73m7DXbwOs3Cntj/Wjbf5Is7C4dYPsGcOb0DbIlsncNeCy9c4STppku5oCuOV/oP2fbZLV6Hy5FrDP9UTye42tkje4YDnCxe8eAt3WXhUmgQjemEKtO4KeEU8bX8y/xA4FLgEpPJ9Xku5JUW3UCR8Jdp8AayoGrzmPVwI9n9FFMb3RbFLD5t5OBdr/hfyuCU5JTh8rf2NDDbfweBFup4d9v9O5ho3eoO5FbNV7hrX59xttX4Fe/Xvsxd6gI0Ov89ef79lw/0aHxHv/0h+t5pYBn6fsfv6ApavfwGz2+esnYOLErfpLlukUbrxk27delsbD2RP/U4/TbeCKcswywrhb/1DljaFApzaFV9Ef7qZ4M0fbXlrH9WHdiHuLkji61J7l4z26WEXiIULs5n5uyjMmpqOPPmmIHdh4mfxW9OtX5KL6PqYxkBJBQBTP0XATXMIJkr0OpFuRca7BH79ewVey3iiPvumwH9CKcNjnFUAg2sFX3BXz4Y3crJ3gUTGOb8DJVda0ywbp9aWCT1DyTncrk/gJuPoXw+3m38S3LR/H9w+/Ua4tT81owDz6ufg1jb/Nut29f8X3CqITZQnfwZuF3yg8fegrTIVEm2f9Heh7SdAIs3mvyno+RMoaf1yo6T/NpTcXJ84LvMXgWS8D3eD2RJzBV1L/FmYfFAyjwo5pkKaQJWCoghAsj0VQ1N+m3QT/lDSUBWf/JmcRrvMWqlIp9lE+521h59IJ+BWYdxlbXtHNUIWhhbh0QelOikLidaqKKR/P+v76UThNDts4x9sTzeZ0s7/XZaj+RVBngvsLxDIt2GcxJsV3y+yDEucFo6j30VxtjjM/gjSNdz4SQSLKbB557/6G//ja5LmwcLfZfEmEprPRVIe667xWIv3SDJyJTlE8eYDlkV38HePR6Pe8Nd85+cE7vU2CY8htsQ+zLjG3ps5dpPjwvXM34fYluJ4ohpMC5rt/HgXh/umnl7NrJfR/ew/L+OZNRldvxRGoX389E3dlRiM11SzvUX5xQHYd2TiY7qPsxiRac/SLAM+GbfE3Vs/WEXkGi7VFOQYVhJH2DdDV3FekqApLdmqyRa4nvuZD1LiW/1u/wYMvj0CzPXO472nT4tbc/ZyPASlFvv3z1pgp299Y27Mi7bhFu23YB28uUsrdzs35XwdxM79Ipv12uVgs9j7L+3d4/Ahnd8/54P4+g16Gf1NUPbXN8W0uD4ORqt23+D3nPjW8F+eNd/WYm/5FDu9ReK/zNO5vL+fbqdf5p2ZEd04SytyO5bu0f8O0PsQe+ZktI8ee8/JdOMqLY59xPGTyZeH+2B9t/JfPh/mndvtFMadDNW+Tse6Doznt6BzW857N3n/xXub9W6Kx6GznK6nq4Ft5UDlG1yX0y9PSEXcL821YywWg8LCmaifc+9pM8PKJvrNfmY4N07srafLydG1LVjVzXq68RJclTt03h7jyTLsdT/h3H39uJ2tPy+C1byYvDxvpy9tTX0+6yWH6ctd8Ww8LKa9JJltnqKwh332V/79QzJdarGjd4FTK6Q57y9XhmevjoOOE4WjLtJ7ABpM13aOsA7Thffdjtl27ag1GDnQLzpyv27hjVYm0Bf5L7DOtaOuE+g85fFjL2hyXPO/PO+no3Y8efF2U+Phbf7SXj12bkR7zbNHoHtiPEXTdbKfAU9m65vDtJrXW8w200XQummMA7Sn05dk49+jDCZ6EzkTXD/wXKM1wnqyBp/t/G2qrEW5Blqet/PeMXlcHRfhy+fCsbvXfUO0KXII1p+Xc8TI/cObr4+BznZr1stBtskK0A5aMH91Y+C5TfwtPRtQCvfBZoX0HrxyUgJtBT73YtPwlvB2b7qFMW6czedi1olgFSteB8jMKwMYw9FO1l30l5OWVz4dQQOiuZ6s5j3UjEnZX7qaa090GLWBr6B3p/nfo7twItSM2ciF8a3StQFDcQ5jPpmeHbS8FzdzC7MY2E9tdxTsQQszbwgYKgPdw/vYLN2lW8Aao/5ofBiMXFjf2Ojb44M7GuvuqGtOSgvfA9qB/lEUwXXh2l0N3tt7HVOHsVvwXgTj5l7Z1QejaE/X9gpwOV8QZkfu0RvmgNXABB6YYAlyxyarkMHznHhur4A+GHv0VHj2A1znBT0bPbW90d2+P5oc3PKpPRgBL+1bfA5YAXmUQdtdPi/FveaWjgbzwXq69D7w1uh3NODPGMaJjm5sIU9y4BXoVBfGdQ6gP62B3QVZavDc1LyRo7vLyd7tuTim7i0tA+gg/lV9S2cPz46AB83paMBzK4e1l26c13OtYc3ISzvSwB61iJeSRtuJ4BqwsgK+RcTjwWhsuiNoV+eo2oEnSKs9LrylowMPlie0SRoKd0i8INrc4Um7Op7gIfAI5HK3B3wjPW0YH9aOtDuwFgfW4pTeS56BvNsDe1V65Rj49gS0WMD7cTkZWYCdbgmYQRkaAzuA9T6hfEnOfXjuIU+Q7o4GOHC0wejJHPS6aPeObtlt9W3UnQhsYKQJbOQOvTtpocwB10fQFcCapbsvuY56Ax4J9CZvAb9BlpP2zLZw/twtgUf29HvYg/ECpFkfdPC5VaLcPf07NMEcuB7XBlqWE2Nmg42wQYeANlgb0PIEeIa51jzOwAY94vmBV11tMFSwPzRB96KC+Ql4Bf0bENZR/4CfMEfffgIcW7CebjmjubsazuGiHPSKD+Dd85zWL3ViRDoBa3wCHX86ugWu1wWsBVqN0XEL9AGuV6DHgI9CaV/npAtgE8AOuKgL0B/sFNoV4JdjOyDziQly1mDd8KyrA8+0k3Z1vJz5Y5keyNDruTn3Q/q6Gukl6APoSj4QOPUwUhmNI9TRkzGBDuuImGSdAF4suyXqBPLRI/8dgZ2wlL4OPEceO4jP0qFxGuuWY+b4HmClQFsINuGMxzAHyllHnXa/JgOYzyvnqgyKyzLA+S/JAK71n5HBE9po0LUIfMCTYt8cgR+2R4A7De0R8QvxC88dGsPNYV3tM5t5cczaZio0CpvZhXEctpmiL/gaaTNLsCMnslHGbOJYsf1BWdl+1Bfo54IOv8f+uDbo5fKpLezPEX20u0a/iWvqot3OyP+PwEeXEfqzI6wHbQmv156gzS4dW9FNxjOs3Wl5OuEZxwOaIk3wDPwhzDsaC50ew/pc06F+K6Bz1QZ5o08+emiTy4WwLRbGnxraH/jMBz2iLcdrmHvv3qd1DILx6npyEvMpER5ERZAXlCZmIj+WB/+pVFZuHJsnFeOzykNbP89zZdufKzz8XOq7jDCV/ENkwHFK80ScXt5dSHbr3LPKcx/8N38Y7OJtViexa86FKT8lBmULHx+HGyzjYM94k4U7P6BaGB5P4kE581WyaX+7TSCFxORzL1PnGfb4zyEOVgkOHexCP6PsWEyyO2CWvKE6G71BWbi/wcu1v6RsfIaHl8Jd3YmWsz9st+mOB5tRz2xPANjM090f78ix9X9fjv2uUohaAvm4C7dIa4qCvZsl6QxB4++xWqXfxQFJSqLo/yVplAK8gNQ7rHjgKSesg/1Z1fxRzWxdNzdzbs5PdFxdnaum+Utqgj9ZleKCEcviTBHrcpKfJHgQD5aWHqSK/OcQIpEd5FG8P/gJVuXp1k9Cqiilm0rdsLC/22d8A4OgVuAq4wBH3aSkNhmJV8sX4S4krQmRuz7d7AEL4Rz0Q+uQLvJM4XELopTT0uCgANRh7u8Xs9TfzfckgmxRT5yFagksZVSRnaFiEBbOQK2R+OCQZIddeKKW/9VAqYESP1swpL9X+UyjeRywUsbvOcZPv0/78jz/I968Jocj4u4rSujQC/at6g6zeE06EXJZlmCL5Vu8DPcAEXZVqFULQHmCDxawZmTHLkblEeAXOqwlqT/fv8f5tP6LfYl9IbnZPwD87U/66WnYa+PCjpR5wftc/Qr8nx8w/PQbtqT+iecO29efTkTz3mO0f9vW1HaHAy/Cw56D8wtG6LF6pTJD6B7Tbbj5KLatQbQFaMgaH67TDWqPCK/J0lBMwA048iqmAGEXR/EGggtk2OwQJ9hIofKQrEGSHsjlD+MNzcChMt5syZCIsFvX0Cx1KIagCBx3vPwN20aePt1F0FBWQf7Cp5wAZL3lUFxdYR1MQAMCYJcKni58aYLf2HBW2cU8hEQA+LGrQx6O/YGW9QHYUcBCQNeMowXAcqp0YJPmYkSKjvwEN6+Zsx+qIwEqCTz42ofkBv4n2mMIruD9OaCUOJm+fpC5CHMC59ZG6A7C9RbWQJEaLC5uLhZfCBJ/F78Wp2v/H6Q1SmHVG59lAapzCDA44iEaCFmmgjIeg+QIn54vmNUBqg4CDXcoaf9EnFeMeznAPgSbiyMsMFibq/wg8l85gvvfwwzoA2PxLld2/V9PJjyZYgB+vy+70k8NZks7t5jmBYP5OxMp3Gon63lmOqsnrO+vu5D0ewMjNXfk9+lrlnPuwrv5a3/FKlJJVKgryCsI9/u6t2gHI/dBVDZEy9jt80X3uVJzUJA83a2U3qfpzb9QM76/i5/M1nfxrDfOJuu7pa/Pi5nx+UB7fevPhty/GNhj07FxL2V1wD3L+TpJ5trDG+9lWmCq25qNf1mO3TVp92751B4MTdyF/aFzAo/LYz758pw6vacbZdS1JmjoGl4ZHbAG6mAtehllbjk5DDqWAbOV/VHQ7i/dyCtXB1eHZ6MJUqFNCk3zOib0t7J6VHqr0EovNk3RM6M2Y1L3LK3Ms59wBvW9SPSlWX27q9ejIo9c3ZXziTe5t2MrvY3J0Vuu4P75Cri09l+OezpTgPsWpdVyYsDbbT3u4/3tYt6LxD6s4PIoMAYd0wAqI6ZSU+fJxNxMJdbPR09Ff5ns61H7I9fA3VD89GKrcGG9uGvr2BMT1md6NnB7aOleGRzc2NIHo+Aw+NKoCq+mQLPbc2Nl1NKU+8q4hwzcHBfe0AQ8dXMX5OeuUTarVn/5GWveuYdSGHUPgx7wLdaAdica4J7YUGvVowKdQFeU95fjbDCKgA6Q03ICo8D8Ha2Fu4r9kUDFCHdAnJPPhxTWSZKpRwVsUE/Ehnhb8vLo4j5ObPHnZoL7NAdvTdgDGp8it3xC7pgDWlvQVjgAUiYacedoacFTt8WIxFU/L/ujMe7mgHZVsxBd/RFwaGgWxCn4nC8dBVvAQ51kjfsUhSUw1uwhP32bVtqelHImsY5YO+GA7CHnnsdatVJBZ9bkyMknSrN0AfV5oUgLepBcbbAZL9HRA70Y9PLCtcesTdyeEQ9fYAZeU15zoJakylcnErLUa9lbQoLUI5JSbH4+pDATPE+WcqZLHGiMIFGj93G/lnlPdHodrZZWbGqSZvxUOABPQrCW8hSLo0/XUzx9odg4sGy4o4v0FKBrJWgErqcQEsMTFrTDrtI6Rr7iHhzu6x9xz4j39VzcNwcNcQ/evZsJfTu4Q9YnPIMBWC8Jtx1uU2ilkXDHd0WjBjADfLZYK0D2Q5zxDnALo3dQShPR1s0GtHKkQiMqTkcF+cb8BGmiEe5p7+7Io/Eo+AyRR/YMZy8I20gRaFBwULQA7JRH1h6t2Tgi7BkwYgkcwV3Goaah7YbeR+QnrKtN73WkradZW2hPVEuIb49htS4iHd5yWkizC1oMb5dAD8zoAs0rRn5s6oJjQF9EMgHaAQtPjVF5hV6BPBqzRgyxJ123PEI68BjlzfYLJBREQGcbeFySNerQTKaqBSBD3CuMYbQOSsk5oq54NljpL24BvEX6S7Q6/SVaSdC9oVUCFo649yjsF+Jb4St4rSNaDPL6wHHgM6HFw93B2GIUEX+tFtIIPh7QZYk+NBO0gXbcT1QMjJ6OfTo3owlUCwyS/JELFskf7wm74nmFFdaGMy0g/PGILHO6FrwiunCl8polQ9c6YRytYYzaYqlaQLImeiLWJephik+hEZW+RUwz4pvvWecI34UqLRdP2miiJ/BpfjUbahD/EK0GWhJCPNNbktXDE16gT6hTgOW2RJ5qXfC8wAo9Cq5e9Hba3GahNrLEOoxLnl0jzSHufXH5TEOs2ldcIdLEsqaRmV8j9P9iRJQx7r6TzcXTJ3T6C/WtTRrEa214Q8Fx4h/xkjAqOFLiWS9xLfFJdA3ofdQ30PiCbZtiBzooGXoqMNjVySoi3V8klhEnVr3qF1cjnHaa+FBHRW47aFHa5AN4ZaTnqJWTkuwZY5j5XNsp5idqB9mzhocR1oX0R9gD5NdnwEAEdHtXM5AxcAJQj6f47tAPNLB6gdaCrIeKelP4A3V1rD+x5GutX0FR66Jqs5j7pJW0ektYbvImGlkU0t5KB7OaAo0p0BkTDfuKT4k33JvtKNl+0jUrG3TErMxHxafxyIJ+Fa+kw4uSR8PVk/5EZMV7sjd7TEZWtyD6yacxCud4mgWsuxITQozF1pj4x15Y8m8j0U76xJawQOtCSBP0k5RhJm95xleKcKT1QLteW0MaAZ8XjFFNsVuawC3yt6vagSF7atUDf9Pv0rrIzlb85YjvTqH1srVWcEGWr5rxorWWfFftQFfqTFFbRSviCKJbeRO6Bg0WEQj0mdAz1AqBFcVqo1YKq1JFOtKa0Iy17WUeskaLEbtR7XmsE1qJN0s8u/OwZI/M1gZjkxMrWcC7x6C8qOXaiSVkf8XIoZVpJkTpdVSn+DPxHJGUAp5F9Mb+txlnSUtYr5hWyLPQczpTW84qf+Utub2yEfRctVlsncF7l7W8z7wj81RSsEb7GiAe2qQtbIla6qjcCshuhRT9Uv4OmedCRr5Z7VeFrYqFTRaxAs/uqFogvR2sPKh1HXknvB9cQ5YxkPEW638uYsNGNNrAQFbPrZlf1SF4B3XIlbErz85YQL4u1TjLK2SW7ugchWHEael1JEk4hmhuIjWDbRrM5lG24XDdojBVH4uxFEbByy7Gr+y7KO6D6DM2jxOin6N2oWM62yqB35g4R1QofBWrg9XCE5SQJuM9Wj1G64w8TcM6AmiAiIgxfrEkvQZiRB2VcigRgVHEmxHSX1yhM6SNtEIRI+puR1zrEXlz4Detq2G1s4HIJkTOwmhijlRZhrCMwmpG8l2y8uzHLsdZ9BZLpsaEsAXMDbQBEkUiumT5M7pKFVkyVuXops40OHpwIf92CQcPe+kjEAtYySJ9IwRS34Z1mUjfyV5a1DUU78yjV75Nq7y8oJv6NWMX8WYVRYjche5ry61VuSrxlH2b9GNshRq6pWqoyPXkKGJ15A2JXtba2tsM5IicqzUiTUdYC7bnjHQRA3Zk1GGpkR3pP0fuHD0Lf5I3pCV4yXkWX6M1rtpzXiFjVkb6Lo3EOY7Umkb8SvohYmjIY8cc9ZK94nimEdNivEL6hh7JkTa4aOoWU++YMosE/QLtu+OMI6bonqJMH/EKMfVEzfRJU4SHh2y6EWeBRCIZFVGdgFHFK68kQkiqYrEj5d2IyCpqOuMrtxroY+scgaXH8b/gDmsERcSitkGcEdhoZMeBaBU9xUiyUoI2qz9alCKnEZoqbPHS0zkHn0I8PlY0Fr2zh98voPofjZTLeJTouJd+K5JrglHwnG2Qc9aEFjRZnkZvanTJ9QHS9XvJGdJKXfJ7UqjxWCUP8g+n0iLc5ZX34FoR6xzlflTRzbGNNPhF1owsmT8SDtTsmLStkFI7tyiRamkUe1F58gxPGHtNLSC+RjL6UWyTiP+pDmzxO7qr1glOI08FA1VmQ3RG3+XdtzjWyOIOdQ3FUnmoyahYGSWvY3GR1ddxw2mUQauQUUaFKtGD2tmi03oQVRP0QBRHTIo6yj+vPHEeKK4L3gM5kx7RCBpxGu2v3VMMfI379y57SY4oOfLBimPJOU9VJ+Dn6M9ORoXIQUQ5ld4jJmW2ztFdPfpZlH8pJrQqmxSUMpZ9iipd0/OWy5akfR45i8jTjkgT6lEHo4elUndtxKNVPsgyr3NHGrXWbonxhh2oJFHxqsrYz/hnkP9irhWynsHVgMaoNf/qGlZH8M1wq0hC+CiFO1UmR3yd2eNj076CPypribiyaiZWKquLqwJjMlEnqnPYWtdOtOA9NUBR+TvLlGReeFLTrHKqSFaahVe0RAWVeGvUa5H8jiJFFpczowbuVLThKMhr8VmI93j0+y3aV1FJcxVvSFUHUW0mSXD0zm/SLqdWeT+ZfXL8hZIcy1yBvGIzk/eo0sh8xXqxqL1UdSpZi+FqA12LurIlo9LyRGPLrpxbR63lmGssMzsZA9SzbdyqgoejYb1F5IsNz11lljnX1wLOtykiwlV+buyVuqVb8j7pye6ohntvDe0qXPruKuWYIipkXPFOAlMr7GGTw6L2z1UmR7WwIsLGyJ5iYZl1KZmCrLxzbCFjekfsVdQ1VZWzbl275So85+bUbpmTkqJZQoKIcgyKieka7TXFetpJxlWOgaPzkwxbseNK3bzW42aFS2SH57tGlT2uspPOVzJwWU1W8yOhmSf+sKoIynyu0nQ1e9FqGUjr+iz95SliZSSyoV3j44llUuzyaZXr3Nsp0Yv0e7GS8Vd+T9qeKppS7NBdqdgfyu+afBWek2NLsSdR1xXdqKbdumDHn0tpx5v5hpR1uMad2S7vHACy8FuSVXbDFqygfXZC1SSnvIh95anv5kqK0HSKoiPahxrKvELuaExI39zqLIZbVT9FxtZuWgLBN6zNFpX/45qkBm3CM2iiMsAWjKsH5CFot6tZIRA7hhnrlawAyIqwqIOQreS9P8+eyMo3rZrOV1BNIlLPkSwdlAJGgUeKYCi64r1JtpHEv0gZKZI1B7F7R7kHck3h6xdXVk/K+qzL3VIgiPUIz3dU8SjtForYHflM+Ul5Uikk2TI9tfVwhE90jzKr8vBbkkO566LkcdWuzIkllPmZJmoPAukYd+A+CmFYB0weAXmZB5nuQNTHpS2QWYPC12EVudKeaVCIaJX3xuSOl8nVI4FlrsxyTU/oGlofFQMVOmQ+dhS7wyK75joDV7ZETY0xLmfkXH/UkNZaZk9RpvC12gkQqFJ2ZlypDWx5+BQT2oLihK9ceW3V9XLcaZ2WomIhaLGqzLaWFlUVZSx9tntM0hEo4phoUkpOcJ2hmS8TJ2TlUGTk1mkeB9onKtliZ06TUemx0ruNK7yhKzSFKosNv16P2jwN9cinxPBc1K/5teHW6fcDjNbZmUrj04Wvx/zOL6f96E8mVQcYb37oAKPyDYLL5xB/xQnH86OLl083np3yDeYb4w88qfuKx7x3gh38RbX6uyj4uUiDVXJYxxt/f9iGu7W/o+P8roUiwYO9+l0Lz3be7TPgGh31/fPIkr+6Ln8vtX1+Vle/8CvW+vVfiashLPD89P5fgjVD+ybWgIsZ/rJhuI9L8etyKPst/noeLb19+6GNXyPHHzPc8+8a0m9qCwAm4Wt2AZcV8vZbPwCaRvQDiR/N859Ru+rin69jVPxYHvaSP87YUr8Gg9RGib/fi+vmbzQCv+Lgw3d+1/AHvkF78rt6Rvv82+3VafAGnH6jmRJoaXy//etn8E/Q0/omev51lkr7rqUKDvsMQZNu+JuKH9PX1zgIP31kxH1U7dTjLp0fguzjPA0Oa+AxfUvkF9kt40r/ruEyLiDN+EuRZqsrrb+Yc8AvU/nJX4jDb3+t879W7Ie+iqy9w4pd/WVWDJrqf5OGf5W1/od9jO7/AQ=='; + this.xgraph = undefined; + this.$container = undefined; + this.onMapping = { + active: false, + object: undefined, + id: undefined + }; + this["import"](this.data); + ctrl.events.on('render', function () { + _this.render(); + }); + this.mousedownTimeout = 0; + this.mousedown = 0; + + document.body.onmousedown = function () { + _this.mousedown = 0; + window.clearInterval(_this.mousedownTimeout); + _this.mousedownTimeout = window.setInterval(function () { + _this.mousedown += 1; + }, 200); + }; + + document.body.onmouseup = function () { + _this.mousedown = 0; + window.clearInterval(_this.mousedownTimeout); + }; + } + + _createClass(FlowchartHandler, [{ + key: "import", + value: function _import(obj) { + var _this2 = this; + + u.log(1, 'FlowchartHandler.import()'); + u.log(0, 'FlowchartHandler.import() obj', obj); + this.flowcharts = []; + + if (obj !== undefined && obj !== null && obj.length > 0) { + obj.forEach(function (map) { + var container = _this2.createContainer(); + + var newData = {}; + var fc = new _flowchart_class["default"](map.name, map.xml, container, _this2.ctrl, newData); + fc["import"](map); + + _this2.flowcharts.push(fc); + + _this2.data.push(newData); + }); + } + } + }, { + key: "getFlowchart", + value: function getFlowchart(index) { + return this.flowcharts[index]; + } + }, { + key: "getFlowcharts", + value: function getFlowcharts() { + return this.flowcharts; + } + }, { + key: "countFlowcharts", + value: function countFlowcharts() { + if (this.flowcharts !== undefined && Array.isArray(this.flowcharts)) return this.flowcharts.length; + return 0; + } + }, { + key: "createContainer", + value: function createContainer() { + var $container = $("
")); + this.$elem.html($container); + return $container[0]; + } + }, { + key: "addFlowchart", + value: function addFlowchart(name) { + u.log(1, 'FlowchartHandler.addFlowchart()'); + var container = this.createContainer(); + var data = {}; + var flowchart = new _flowchart_class["default"](name, this.defaultXml, container, this.ctrl, data); + this.data.push(data); + this.flowcharts.push(flowchart); + } + }, { + key: "render", + value: function render() { + u.log(1, 'flowchartHandler.render()'); + this.optionsFlag = true; + + if (!this.mousedown) { + if (this.changeSourceFlag) { + this.load(); + this.changeSourceFlag = false; + this.changeRuleFlag = true; + this.optionsFlag = true; + } + + if (this.changeOptionFlag) { + this.setOptions(); + this.changeOptionFlag = false; + this.optionsFlag = true; + } + + if (this.changeRuleFlag || this.changeDataFlag) { + var rules = this.ctrl.rulesHandler.getRules(); + var series = this.ctrl.series; + this.async_refreshStates(rules, series); + this.changeDataFlag = false; + this.optionsFlag = false; + } + + if (this.optionsFlag || this.firstLoad) { + this.applyOptions(); + this.optionsFlag = false; + this.firstLoad = false; + } + } + } + }, { + key: "sourceChanged", + value: function sourceChanged() { + this.changeSourceFlag = true; + } + }, { + key: "optionChanged", + value: function optionChanged() { + this.changeOptionFlag = true; + } + }, { + key: "ruleChanged", + value: function ruleChanged() { + this.changeRuleFlag = true; + } + }, { + key: "dataChanged", + value: function dataChanged() { + this.changeDataFlag = true; + } + }, { + key: "applyOptions", + value: function applyOptions() { + u.log(1, "FlowchartHandler.applyOptions()"); + this.flowcharts.forEach(function (flowchart) { + flowchart.applyOptions(); + }); + } + }, { + key: "async_refreshStates", + value: function async_refreshStates(rules, series) { + this.refreshStates(rules, series); + } + }, { + key: "refreshStates", + value: function refreshStates(rules, series) { + if (this.changeRuleFlag) { + this.updateStates(rules); + this.changeRuleFlag = false; + } + + this.setStates(rules, series); + this.applyStates(); + } + }, { + key: "refresh", + value: function refresh() { + this.flowcharts.forEach(function (flowchart) { + flowchart.refresh(); + }); + } + }, { + key: "setStates", + value: function setStates(rules, series) { + this.flowcharts.forEach(function (flowchart) { + flowchart.setStates(rules, series); + }); + } + }, { + key: "updateStates", + value: function updateStates(rules) { + this.flowcharts.forEach(function (flowchart) { + flowchart.updateStates(rules); + }); + } + }, { + key: "applyStates", + value: function applyStates() { + this.flowcharts.forEach(function (flowchart) { + flowchart.applyStates(); + }); + this.refresh(); + } + }, { + key: "setOptions", + value: function setOptions() { + this.flowcharts.forEach(function (flowchart) { + flowchart.setOptions(); + }); + } + }, { + key: "draw", + value: function draw() { + u.log(1, "FlowchartHandler.draw()"); + this.flowcharts.forEach(function (flowchart) { + flowchart.redraw(); + }); + } + }, { + key: "load", + value: function load() { + u.log(1, "FlowchartHandler.load()"); + this.flowcharts.forEach(function (flowchart) { + flowchart.reload(); + }); + } + }, { + key: "setMap", + value: function setMap(objToMap) { + var flowchart = this.getFlowchart(0); + this.onMapping.active = true; + this.onMapping.object = objToMap; + this.onMapping.id = objToMap.getId(); + this.onMapping.$scope = this.$scope; + flowchart.setMap(this.onMapping); + } + }, { + key: "unsetMap", + value: function unsetMap() { + var flowchart = this.getFlowchart(0); + this.onMapping.active = false; + this.onMapping.object = undefined; + this.onMapping.id = ''; + flowchart.unsetMap(); + } + }, { + key: "isMapping", + value: function isMapping(objToMap) { + if (objToMap === undefined || objToMap == null) return this.onMapping.active; + if (this.onMapping.active === true && objToMap === this.onMapping.object) return true; + return false; + } + }, { + key: "listenMessage", + value: function listenMessage(event) { + var index = this.currentFlowchartIndex; + + if (event.data === 'ready') { + event.source.postMessage(this.flowcharts[index].data.xml, event.origin); + } else { + if (this.onEdit && event.data !== undefined && event.data.length > 0) { + this.flowcharts[index].redraw(event.data); + this.sourceChanged(); + this.$scope.$apply(); + this.render(); + } + + if (this.onEdit && event.data !== undefined || event.data.length === 0) { + this.editorWindow.close(); + this.onEdit = false; + window.removeEventListener('message', this.listenMessage.bind(this), false); + } + } + } + }, { + key: "openDrawEditor", + value: function openDrawEditor(index) { + var urlEditor = this.getFlowchart(index).getUrlEditor(); + this.currentFlowchartIndex = index; + var theme = this.getFlowchart(index).getThemeEditor(); + var urlParams = "".concat(urlEditor, "?embed=1&spin=1&libraries=1&ui=").concat(theme); + this.editorWindow = window.open(urlParams, 'MxGraph Editor', 'width=1280, height=720'); + this.onEdit = true; + window.addEventListener('message', this.listenMessage.bind(this), false); + } + }]); + + return FlowchartHandler; +}(); + +exports["default"] = FlowchartHandler; diff --git a/data/plugins/grafana-flowcharting/dist/flowchart_class.js b/data/plugins/grafana-flowcharting/dist/flowchart_class.js new file mode 100644 index 0000000000000..e21cffd4143a0 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/flowchart_class.js @@ -0,0 +1,383 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _graph_class = _interopRequireDefault(require("./graph_class")); + +var _statesHandler = _interopRequireDefault(require("./statesHandler")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +var Flowchart = function () { + function Flowchart(name, xmlGraph, container, ctrl, data) { + _classCallCheck(this, Flowchart); + + u.log(1, "flowchart[".concat(name, "].constructor()")); + u.log(0, "flowchart[".concat(name, "].constructor() data"), data); + this.data = data; + this.data.name = name; + this.data.xml = xmlGraph; + this.data.download = false; + this.container = container; + this.xgraph = undefined; + this.stateHandler = undefined; + this.ctrl = ctrl; + this.templateSrv = ctrl.templateSrv; + this["import"](data); + } + + _createClass(Flowchart, [{ + key: "import", + value: function _import(obj) { + u.log(1, "flowchart[".concat(this.data.name, "].import()")); + u.log(0, "flowchart[".concat(this.data.name, "].import() obj"), obj); + this.data.download = obj.download !== undefined ? obj.download : false; + if (obj.source) this.data.type = obj.source.type;else this.data.type = obj.type || this.data.type || 'xml'; + if (obj.source) this.data.xml = obj.source.xml.value;else this.data.xml = obj.xml || this.data.xml || ''; + if (obj.source) this.data.url = obj.source.url.value;else this.data.url = obj.url !== undefined ? obj.url : 'http://:/'; + if (obj.options) this.data.zoom = obj.options.zoom;else this.data.zoom = obj.zoom || '100%'; + if (obj.options) this.data.center = obj.options.center;else this.data.center = obj.center !== undefined ? obj.center : true; + if (obj.options) this.data.scale = obj.options.scale;else this.data.scale = obj.scale !== undefined ? obj.scale : true; + if (obj.options) this.data.lock = obj.options.lock;else this.data.lock = obj.lock !== undefined ? obj.lock : true; + if (obj.options) this.data.allowDrawio = false;else this.data.allowDrawio = obj.allowDrawio !== undefined ? obj.allowDrawio : false; + if (obj.options) this.data.tooltip = obj.options.tooltip;else this.data.tooltip = obj.tooltip !== undefined ? obj.tooltip : true; + if (obj.options) this.data.grid = obj.options.grid;else this.data.grid = obj.grid !== undefined ? obj.grid : false; + if (obj.options) this.data.bgColor = obj.options.bgColor;else this.data.bgColor = obj.bgColor; + this.data.editorUrl = obj.editorUrl !== undefined ? obj.editorUrl : "https://www.draw.io"; + this.data.editorTheme = obj.editorTheme !== undefined ? obj.editorTheme : "dark"; + this.init(); + } + }, { + key: "getData", + value: function getData() { + return this.data; + } + }, { + key: "updateStates", + value: function updateStates(rules) { + var _this = this; + + rules.forEach(function (rule) { + rule.states = _this.stateHandler.getStatesForRule(rule); + rule.states.forEach(function (state) { + state.unsetState(); + }); + }); + } + }, { + key: "init", + value: function init() { + u.log(1, "flowchart[".concat(this.data.name, "].init()")); + if (this.xgraph === undefined) this.xgraph = new _graph_class["default"](this.container, this.data.type, this.getContent()); + + if (this.data.xml !== undefined && this.data.xml !== null) { + if (this.data.allowDrawio) this.xgraph.allowDrawio(true);else this.xgraph.allowDrawio(false); + this.setOptions(); + this.xgraph.drawGraph(); + if (this.data.tooltip) this.xgraph.tooltipGraph(true); + if (this.data.scale) this.xgraph.scaleGraph(true);else this.xgraph.zoomGraph(this.data.zoom); + if (this.data.center) this.xgraph.centerGraph(true); + if (this.data.lock) this.xgraph.lockGraph(true); + this.stateHandler = new _statesHandler["default"](this.xgraph, this.ctrl); + } else { + u.log(3, 'XML Graph not defined'); + } + } + }, { + key: "getStateHandler", + value: function getStateHandler() { + return this.stateHandler; + } + }, { + key: "getXGraph", + value: function getXGraph() { + return this.xgraph; + } + }, { + key: "setStates", + value: function setStates(rules, series) { + u.log(1, "flowchart[".concat(this.data.name, "].setStates()")); + u.log(0, "flowchart[".concat(this.data.name, "].setStates() rules"), rules); + u.log(0, "flowchart[".concat(this.data.name, "].setStates() series"), series); + if (rules === undefined) u.log(3, "Rules shoudn't be null"); + if (series === undefined) u.log(3, "Series shoudn't be null"); + this.stateHandler.setStates(rules, series); + } + }, { + key: "setOptions", + value: function setOptions() { + this.setScale(this.data.scale); + this.setCenter(this.data.center); + this.setGrid(this.data.grid); + this.setTooltip(this.data.tooltip); + this.setLock(this.data.lock); + this.setZoom(this.data.zoom); + this.setBgColor(this.data.bgColor); + } + }, { + key: "applyStates", + value: function applyStates() { + u.log(1, "flowchart[".concat(this.data.name, "].applyStates()")); + this.stateHandler.applyStates(); + } + }, { + key: "applyOptions", + value: function applyOptions() { + u.log(1, "flowchart[".concat(this.data.name, "].refresh()")); + u.log(0, "flowchart[".concat(this.data.name, "].refresh() data"), this.data); + this.xgraph.applyGraph(this.width, this.height); + } + }, { + key: "refresh", + value: function refresh() { + this.xgraph.refresh(); + } + }, { + key: "redraw", + value: function redraw(xmlGraph) { + u.log(1, "flowchart[".concat(this.data.name, "].redraw()")); + + if (xmlGraph !== undefined) { + this.data.xml = xmlGraph; + this.xgraph.setXmlGraph(this.getXml(true)); + } else { + u.log(2, 'XML Content not defined'); + this.xgraph.setXmlGraph(this.getXml(true)); + } + + this.applyOptions(); + } + }, { + key: "reload", + value: function reload() { + u.log(1, "flowchart[".concat(this.data.name, "].reload()")); + + if (this.xgraph !== undefined && this.xgraph !== null) { + this.xgraph.destroyGraph(); + this.xgraph = undefined; + this.init(); + } else this.init(); + } + }, { + key: "setLock", + value: function setLock(bool) { + this.data.lock = bool; + this.xgraph.lock = bool; + } + }, { + key: "lock", + value: function lock(bool) { + if (bool !== undefined) this.data.lock = bool; + this.xgraph.lockGraph(this.data.lock); + } + }, { + key: "setTooltip", + value: function setTooltip(bool) { + this.data.tooltip = bool; + this.xgraph.tooltip = bool; + } + }, { + key: "tooltip", + value: function tooltip(bool) { + if (bool !== undefined) this.data.tooltip = bool; + this.xgraph.tooltipGraph(this.data.tooltip); + } + }, { + key: "setScale", + value: function setScale(bool) { + this.data.scale = bool; + this.xgraph.scale = bool; + } + }, { + key: "setBgColor", + value: function setBgColor(bgColor) { + this.data.bgColor = bgColor; + this.xgraph.bgColor = bgColor; + } + }, { + key: "bgColor", + value: function bgColor(_bgColor) { + this.data.bgColor = _bgColor; + if (_bgColor) this.xgraph.bgGraph(_bgColor); + } + }, { + key: "scale", + value: function scale(bool) { + u.log(1, 'Flowchart.scale()'); + if (bool !== undefined) this.data.scale = bool; + this.xgraph.scaleGraph(this.data.scale); + } + }, { + key: "setCenter", + value: function setCenter(bool) { + this.data.center = bool; + this.xgraph.center = bool; + } + }, { + key: "getNamesByProp", + value: function getNamesByProp(prop) { + return this.xgraph.getOrignalCells(prop); + } + }, { + key: "getXml", + value: function getXml(replaceVarBool) { + u.log(1, "flowchart[".concat(this.data.name, "].getXml()")); + if (!replaceVarBool) return this.data.xml; + return this.templateSrv.replaceWithText(this.data.xml); + } + }, { + key: "getCsv", + value: function getCsv(replaceVarBool) { + u.log(1, "flowchart[".concat(this.data.name, "].getXml()")); + if (!replaceVarBool) return this.data.csv; + return this.templateSrv.replaceWithText(this.data.csv); + } + }, { + key: "getUrlEditor", + value: function getUrlEditor() { + return this.data.editorUrl; + } + }, { + key: "getThemeEditor", + value: function getThemeEditor() { + return this.data.editorTheme; + } + }, { + key: "getContent", + value: function getContent() { + u.log(1, "flowchart[".concat(this.data.name, "].getContent()")); + + if (this.data.download) { + var content = this.loadContent(this.data.url); + + if (content !== null) { + return content; + } else return ''; + } else { + if (this.data.type === 'xml') return this.getXml(true); + if (this.data.type === 'csv') return this.getCsv(true); + } + } + }, { + key: "loadContent", + value: function loadContent(url) { + u.log(1, "flowchart[".concat(this.data.name, "].loadContent()")); + var req = mxUtils.load(url); + + if (req.getStatus() === 200) { + return req.getText(); + } else { + u.log(3, 'Cannot load ' + url, req.getStatus()); + return null; + } + } + }, { + key: "renameId", + value: function renameId(oldId, newId) { + this.xgraph.renameId(oldId, newId); + } + }, { + key: "applyModel", + value: function applyModel() { + this.xmlGraph = this.xgraph.getXmlModel(); + this.redraw(this.xmlGraph); + } + }, { + key: "center", + value: function center(bool) { + if (bool !== undefined) this.data.center = bool; + this.xgraph.centerGraph(this.data.center); + } + }, { + key: "setZoom", + value: function setZoom(percent) { + this.data.zoom = percent; + this.xgraph.zoomPercent = percent; + } + }, { + key: "zoom", + value: function zoom(percent) { + if (percent !== undefined) this.data.percent = percent; + this.xgraph.zoomGraph(this.data.percent); + } + }, { + key: "setGrid", + value: function setGrid(bool) { + this.data.grid = bool; + this.xgraph.grid = bool; + } + }, { + key: "grid", + value: function grid(bool) { + if (bool !== undefined) this.data.grid = bool; + this.xgraph.gridGraph(this.data.grid); + } + }, { + key: "setWidth", + value: function setWidth(width) { + this.width = width; + } + }, { + key: "setHeight", + value: function setHeight(height) { + this.height = height; + } + }, { + key: "setXml", + value: function setXml(xml) { + this.data.xml = xml; + } + }, { + key: "minify", + value: function minify() { + this.data.xml = u.minify(this.data.xml); + } + }, { + key: "prettify", + value: function prettify() { + this.data.xml = u.prettify(this.data.xml); + } + }, { + key: "decode", + value: function decode() { + if (u.isencoded(this.data.xml)) this.data.xml = u.decode(this.data.xml, true, true, true); + } + }, { + key: "encode", + value: function encode() { + if (!u.isencoded(this.data.xml)) this.data.xml = u.encode(this.data.xml, true, true, true); + } + }, { + key: "getContainer", + value: function getContainer() { + return this.container; + } + }, { + key: "setMap", + value: function setMap(onMappingObj) { + u.log(1, "flowchart[".concat(this.data.name, "].setMap()")); + var container = this.getContainer(); + this.xgraph.setMap(onMappingObj); + container.scrollIntoView(); + container.focus(); + } + }, { + key: "unsetMap", + value: function unsetMap() { + this.xgraph.unsetMap(); + } + }]); + + return Flowchart; +}(); + +exports["default"] = Flowchart; diff --git a/data/plugins/grafana-flowcharting/dist/flowchart_ctrl.js b/data/plugins/grafana-flowcharting/dist/flowchart_ctrl.js new file mode 100644 index 0000000000000..3a6b3f9cbd0ba --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/flowchart_ctrl.js @@ -0,0 +1,236 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.MetricsPanelCtrl = exports.FlowchartCtrl = void 0; + +var _sdk = require("app/plugins/sdk"); + +var _time_series = _interopRequireDefault(require("app/core/time_series2")); + +var _kbn = _interopRequireDefault(require("app/core/utils/kbn")); + +var _mapping_options = require("./mapping_options"); + +var _flowchart_options = require("./flowchart_options"); + +var _inspect_options = require("./inspect_options"); + +var _rulesHandler = _interopRequireDefault(require("./rulesHandler")); + +var _flowchartHandler = _interopRequireDefault(require("./flowchartHandler")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); } + +function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } + +function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } + +function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); } + +function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } + +var u = require('./utils'); + +window.u = window.u || u; + +var FlowchartCtrl = function (_MetricsPanelCtrl) { + _inherits(FlowchartCtrl, _MetricsPanelCtrl); + + function FlowchartCtrl($scope, $injector, $rootScope, templateSrv) { + var _this; + + _classCallCheck(this, FlowchartCtrl); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(FlowchartCtrl).call(this, $scope, $injector)); + _this.version = '0.5.0'; + _this.$rootScope = $rootScope; + _this.$scope = $scope; + _this.templateSrv = templateSrv; + _this.unitFormats = _kbn["default"].getUnitFormats(); + _this.changedSource = true; + _this.changedData = true; + _this.changedOptions = true; + _this.rulesHandler = undefined; + _this.flowchartHandler = undefined; + _this.series = []; + _this.panelDefaults = { + newFlag: true, + format: 'short', + valueName: 'current', + rulesData: [], + flowchartsData: [] + }; + + _.defaults(_this.panel, _this.panelDefaults); + + _this.panel.graphId = "flowchart_".concat(_this.panel.id); + _this.containerDivId = "container_".concat(_this.panel.graphId); + + _this.events.on('render', _this.onRender.bind(_assertThisInitialized(_this))); + + _this.events.on('refresh', _this.onRefresh.bind(_assertThisInitialized(_this))); + + _this.events.on('data-received', _this.onDataReceived.bind(_assertThisInitialized(_this))); + + _this.events.on('data-error', _this.onDataError.bind(_assertThisInitialized(_this))); + + _this.events.on('data-snapshot-load', _this.onDataReceived.bind(_assertThisInitialized(_this))); + + _this.events.on('init-edit-mode', _this.onInitEditMode.bind(_assertThisInitialized(_this))); + + _this.events.on('init-panel-actions', _this.onInitPanelActions.bind(_assertThisInitialized(_this))); + + _this.events.on('template-variable-value-updated', _this.onVarChanged.bind(_assertThisInitialized(_this))); + + _this.dashboard.events.on('template-variable-value-updated', _this.onVarChanged.bind(_assertThisInitialized(_this)), $scope); + + $rootScope.onAppEvent('template-variable-value-updated', _this.onVarChanged.bind(_assertThisInitialized(_this)), $scope); + return _this; + } + + _createClass(FlowchartCtrl, [{ + key: "onInitEditMode", + value: function onInitEditMode() { + this.addEditorTab('Flowchart', _flowchart_options.flowchartOptionsTab, 2); + this.addEditorTab('Mapping', _mapping_options.mappingOptionsTab, 3); + this.addEditorTab('Inspect', _inspect_options.inspectOptionsTab, 4); + } + }, { + key: "onRefresh", + value: function onRefresh() { + u.log(1, 'FlowchartCtrl.onRefresh()'); + this.onRender(); + } + }, { + key: "onVarChanged", + value: function onVarChanged() { + u.log(1, 'FlowchartCtrl.onVarChanged()'); + this.flowchartHandler.sourceChanged(); + this.flowchartHandler.render(); + } + }, { + key: "onRender", + value: function onRender() { + u.log(1, 'FlowchartCtrl.onRender()'); + } + }, { + key: "onDataReceived", + value: function onDataReceived(dataList) { + u.log(1, 'FlowchartCtrl.onDataReceived()'); + u.log(0, 'FlowchartCtrl.onDataReceived() dataList', dataList); + this.series = dataList.map(this.seriesHandler.bind(this)); + u.log(0, 'FlowchartCtrl.onDataReceived() this.series', dataList); + this.flowchartHandler.dataChanged(); + this.render(); + } + }, { + key: "onDataError", + value: function onDataError() { + this.series = []; + this.render(); + } + }, { + key: "onInitPanelActions", + value: function onInitPanelActions(actions) { + actions.push({ + text: 'Export SVG', + click: 'ctrl.exportSVG()' + }); + } + }, { + key: "link", + value: function link(scope, elem, attrs, ctrl) { + u.log(1, 'FlowchartCtrl.link()'); + var newRulesData = []; + this.rulesHandler = new _rulesHandler["default"](scope, newRulesData); + + if (this.panel.version === undefined && this.panel.styles !== undefined) { + this.rulesHandler["import"](this.panel.styles); + delete this.panel.styles; + } else this.rulesHandler["import"](this.panel.rulesData); + + if (this.panel.newFlag && this.rulesHandler.countRules() === 0) this.rulesHandler.addRule('.*'); + this.panel.rulesData = newRulesData; + var newFlowchartsData = []; + this.flowchartHandler = new _flowchartHandler["default"](scope, elem, ctrl, newFlowchartsData); + + if (this.panel.version === undefined && this.panel.flowchart !== undefined) { + this.flowchartHandler["import"]([this.panel.flowchart]); + delete this.panel.flowchart; + } else this.flowchartHandler["import"](this.panel.flowchartsData); + + if (this.panel.newFlag && this.flowchartHandler.countFlowcharts() === 0) this.flowchartHandler.addFlowchart('Main'); + this.panel.flowchartsData = newFlowchartsData; + this.panel.newFlag = false; + this.panel.version = this.version; + } + }, { + key: "exportSVG", + value: function exportSVG() { + var scope = this.$scope.$new(true); + scope.panel = 'table'; + this.publishAppEvent('show-modal', { + templateHtml: '', + scope: scope, + modalClass: 'modal--narrow' + }); + } + }, { + key: "setUnitFormat", + value: function setUnitFormat(subItem) { + this.panel.format = subItem.value; + this.refresh(); + } + }, { + key: "getVariables", + value: function getVariables() { + if (this.templateSrv !== undefined && this.templateSrv !== null) { + return _.map(this.templateSrv.variables, function (variable) { + return "${".concat(variable.name, "}"); + }); + } + + return null; + } + }, { + key: "seriesHandler", + value: function seriesHandler(seriesData) { + u.log(1, 'FlowchartCtrl.seriesHandler()'); + var series = new _time_series["default"]({ + datapoints: seriesData.datapoints, + alias: seriesData.target, + unit: seriesData.unit + }); + series.flotpairs = series.getFlotPairs(this.panel.nullPointMode); + var datapoints = seriesData.datapoints || []; + + if (datapoints && datapoints.length > 0) { + var last = datapoints[datapoints.length - 1][1]; + var from = this.range.from; + + if (last - from < -10000) { + series.isOutsideRange = true; + } + } + + return series; + } + }]); + + return FlowchartCtrl; +}(_sdk.MetricsPanelCtrl); + +exports.MetricsPanelCtrl = exports.FlowchartCtrl = FlowchartCtrl; +FlowchartCtrl.templateUrl = './partials/module.html'; diff --git a/data/plugins/grafana-flowcharting/dist/flowchart_options.js b/data/plugins/grafana-flowcharting/dist/flowchart_options.js new file mode 100644 index 0000000000000..2f6fea14251cb --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/flowchart_options.js @@ -0,0 +1,88 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.flowchartOptionsTab = flowchartOptionsTab; +exports.FlowchartOptionsCtrl = void 0; + +var _plugin = require("./plugin"); + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +var FlowchartOptionsCtrl = function () { + function FlowchartOptionsCtrl($scope) { + _classCallCheck(this, FlowchartOptionsCtrl); + + $scope.editor = this; + $scope.GF_PLUGIN = window.GF_PLUGIN; + this.$scope = $scope; + this.ctrl = $scope.ctrl; + this.flowchartHandler = this.ctrl.flowchartHandler; + this.panel = this.ctrl.panel; + this.sourceTypes = [{ + text: 'XML Content', + value: 'xml' + }]; + this.themes = [{ + text: 'Dark', + value: 'dark' + }, { + text: 'Light', + value: 'kennedy' + }, { + text: 'Mobile', + value: 'minimal' + }, { + text: 'Atlas', + value: 'atlas' + }]; + } + + _createClass(FlowchartOptionsCtrl, [{ + key: "render", + value: function render() { + this.flowchartHandler.render(); + } + }, { + key: "onSourceChange", + value: function onSourceChange() { + this.flowchartHandler.sourceChanged(); + this.render(); + } + }, { + key: "onOptionChange", + value: function onOptionChange() { + u.log(1, "FlowchartOptionsCtrl.onOptionChange()"); + this.flowchartHandler.optionChanged(); + this.render(); + } + }, { + key: "edit", + value: function edit(index) { + this.flowchartHandler.openDrawEditor(index); + } + }, { + key: "getFlowcharts", + value: function getFlowcharts() { + return this.flowchartHandler.getFlowcharts(); + } + }]); + + return FlowchartOptionsCtrl; +}(); + +exports.FlowchartOptionsCtrl = FlowchartOptionsCtrl; + +function flowchartOptionsTab($q, $sce, uiSegmentSrv) { + return { + restrict: 'E', + scope: true, + templateUrl: "".concat(GF_PLUGIN.getPartialPath(), "/flowchart_options.html"), + controller: FlowchartOptionsCtrl + }; +} diff --git a/data/plugins/grafana-flowcharting/dist/graph_class.js b/data/plugins/grafana-flowcharting/dist/graph_class.js new file mode 100644 index 0000000000000..e4ab716166587 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/graph_class.js @@ -0,0 +1,211 @@ +(function webpackUniversalModuleDefinition(root, factory) { + if(typeof exports === 'object' && typeof module === 'object') + module.exports = factory(); + else if(typeof define === 'function' && define.amd) + define([], factory); + else if(typeof exports === 'object') + exports["graph_class"] = factory(); + else + root["graph_class"] = factory(); +})(window, function() { +return /******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/graph_class.js"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./node_modules/chartist/dist/chartist.js": +/*!************************************************!*\ + !*** ./node_modules/chartist/dist/chartist.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("/* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) {\n if (true) {\n // AMD. Register as an anonymous module unless amdModuleId is set\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n return (root['Chartist'] = factory());\n }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n}(this, function () {\n\n/* Chartist.js 0.11.4\n * Copyright © 2019 Gion Kunz\n * Free to use under either the WTFPL license or the MIT license.\n * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-WTFPL\n * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-MIT\n */\n/**\n * The core module of Chartist that is mainly providing static functions and higher level functions for chart modules.\n *\n * @module Chartist.Core\n */\nvar Chartist = {\n version: '0.11.4'\n};\n\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * This object contains all namespaces used within Chartist.\n *\n * @memberof Chartist.Core\n * @type {{svg: string, xmlns: string, xhtml: string, xlink: string, ct: string}}\n */\n Chartist.namespaces = {\n svg: 'http://www.w3.org/2000/svg',\n xmlns: 'http://www.w3.org/2000/xmlns/',\n xhtml: 'http://www.w3.org/1999/xhtml',\n xlink: 'http://www.w3.org/1999/xlink',\n ct: 'http://gionkunz.github.com/chartist-js/ct'\n };\n\n /**\n * Helps to simplify functional style code\n *\n * @memberof Chartist.Core\n * @param {*} n This exact value will be returned by the noop function\n * @return {*} The same value that was provided to the n parameter\n */\n Chartist.noop = function (n) {\n return n;\n };\n\n /**\n * Generates a-z from a number 0 to 26\n *\n * @memberof Chartist.Core\n * @param {Number} n A number from 0 to 26 that will result in a letter a-z\n * @return {String} A character from a-z based on the input number n\n */\n Chartist.alphaNumerate = function (n) {\n // Limit to a-z\n return String.fromCharCode(97 + n % 26);\n };\n\n /**\n * Simple recursive object extend\n *\n * @memberof Chartist.Core\n * @param {Object} target Target object where the source will be merged into\n * @param {Object...} sources This object (objects) will be merged into target and then target is returned\n * @return {Object} An object that has the same reference as target but is extended and merged with the properties of source\n */\n Chartist.extend = function (target) {\n var i, source, sourceProp;\n target = target || {};\n\n for (i = 1; i < arguments.length; i++) {\n source = arguments[i];\n for (var prop in source) {\n sourceProp = source[prop];\n if (typeof sourceProp === 'object' && sourceProp !== null && !(sourceProp instanceof Array)) {\n target[prop] = Chartist.extend(target[prop], sourceProp);\n } else {\n target[prop] = sourceProp;\n }\n }\n }\n\n return target;\n };\n\n /**\n * Replaces all occurrences of subStr in str with newSubStr and returns a new string.\n *\n * @memberof Chartist.Core\n * @param {String} str\n * @param {String} subStr\n * @param {String} newSubStr\n * @return {String}\n */\n Chartist.replaceAll = function(str, subStr, newSubStr) {\n return str.replace(new RegExp(subStr, 'g'), newSubStr);\n };\n\n /**\n * Converts a number to a string with a unit. If a string is passed then this will be returned unmodified.\n *\n * @memberof Chartist.Core\n * @param {Number} value\n * @param {String} unit\n * @return {String} Returns the passed number value with unit.\n */\n Chartist.ensureUnit = function(value, unit) {\n if(typeof value === 'number') {\n value = value + unit;\n }\n\n return value;\n };\n\n /**\n * Converts a number or string to a quantity object.\n *\n * @memberof Chartist.Core\n * @param {String|Number} input\n * @return {Object} Returns an object containing the value as number and the unit as string.\n */\n Chartist.quantity = function(input) {\n if (typeof input === 'string') {\n var match = (/^(\\d+)\\s*(.*)$/g).exec(input);\n return {\n value : +match[1],\n unit: match[2] || undefined\n };\n }\n return { value: input };\n };\n\n /**\n * This is a wrapper around document.querySelector that will return the query if it's already of type Node\n *\n * @memberof Chartist.Core\n * @param {String|Node} query The query to use for selecting a Node or a DOM node that will be returned directly\n * @return {Node}\n */\n Chartist.querySelector = function(query) {\n return query instanceof Node ? query : document.querySelector(query);\n };\n\n /**\n * Functional style helper to produce array with given length initialized with undefined values\n *\n * @memberof Chartist.Core\n * @param length\n * @return {Array}\n */\n Chartist.times = function(length) {\n return Array.apply(null, new Array(length));\n };\n\n /**\n * Sum helper to be used in reduce functions\n *\n * @memberof Chartist.Core\n * @param previous\n * @param current\n * @return {*}\n */\n Chartist.sum = function(previous, current) {\n return previous + (current ? current : 0);\n };\n\n /**\n * Multiply helper to be used in `Array.map` for multiplying each value of an array with a factor.\n *\n * @memberof Chartist.Core\n * @param {Number} factor\n * @returns {Function} Function that can be used in `Array.map` to multiply each value in an array\n */\n Chartist.mapMultiply = function(factor) {\n return function(num) {\n return num * factor;\n };\n };\n\n /**\n * Add helper to be used in `Array.map` for adding a addend to each value of an array.\n *\n * @memberof Chartist.Core\n * @param {Number} addend\n * @returns {Function} Function that can be used in `Array.map` to add a addend to each value in an array\n */\n Chartist.mapAdd = function(addend) {\n return function(num) {\n return num + addend;\n };\n };\n\n /**\n * Map for multi dimensional arrays where their nested arrays will be mapped in serial. The output array will have the length of the largest nested array. The callback function is called with variable arguments where each argument is the nested array value (or undefined if there are no more values).\n *\n * @memberof Chartist.Core\n * @param arr\n * @param cb\n * @return {Array}\n */\n Chartist.serialMap = function(arr, cb) {\n var result = [],\n length = Math.max.apply(null, arr.map(function(e) {\n return e.length;\n }));\n\n Chartist.times(length).forEach(function(e, index) {\n var args = arr.map(function(e) {\n return e[index];\n });\n\n result[index] = cb.apply(null, args);\n });\n\n return result;\n };\n\n /**\n * This helper function can be used to round values with certain precision level after decimal. This is used to prevent rounding errors near float point precision limit.\n *\n * @memberof Chartist.Core\n * @param {Number} value The value that should be rounded with precision\n * @param {Number} [digits] The number of digits after decimal used to do the rounding\n * @returns {number} Rounded value\n */\n Chartist.roundWithPrecision = function(value, digits) {\n var precision = Math.pow(10, digits || Chartist.precision);\n return Math.round(value * precision) / precision;\n };\n\n /**\n * Precision level used internally in Chartist for rounding. If you require more decimal places you can increase this number.\n *\n * @memberof Chartist.Core\n * @type {number}\n */\n Chartist.precision = 8;\n\n /**\n * A map with characters to escape for strings to be safely used as attribute values.\n *\n * @memberof Chartist.Core\n * @type {Object}\n */\n Chartist.escapingMap = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n '\\'': '''\n };\n\n /**\n * This function serializes arbitrary data to a string. In case of data that can't be easily converted to a string, this function will create a wrapper object and serialize the data using JSON.stringify. The outcoming string will always be escaped using Chartist.escapingMap.\n * If called with null or undefined the function will return immediately with null or undefined.\n *\n * @memberof Chartist.Core\n * @param {Number|String|Object} data\n * @return {String}\n */\n Chartist.serialize = function(data) {\n if(data === null || data === undefined) {\n return data;\n } else if(typeof data === 'number') {\n data = ''+data;\n } else if(typeof data === 'object') {\n data = JSON.stringify({data: data});\n }\n\n return Object.keys(Chartist.escapingMap).reduce(function(result, key) {\n return Chartist.replaceAll(result, key, Chartist.escapingMap[key]);\n }, data);\n };\n\n /**\n * This function de-serializes a string previously serialized with Chartist.serialize. The string will always be unescaped using Chartist.escapingMap before it's returned. Based on the input value the return type can be Number, String or Object. JSON.parse is used with try / catch to see if the unescaped string can be parsed into an Object and this Object will be returned on success.\n *\n * @memberof Chartist.Core\n * @param {String} data\n * @return {String|Number|Object}\n */\n Chartist.deserialize = function(data) {\n if(typeof data !== 'string') {\n return data;\n }\n\n data = Object.keys(Chartist.escapingMap).reduce(function(result, key) {\n return Chartist.replaceAll(result, Chartist.escapingMap[key], key);\n }, data);\n\n try {\n data = JSON.parse(data);\n data = data.data !== undefined ? data.data : data;\n } catch(e) {}\n\n return data;\n };\n\n /**\n * Create or reinitialize the SVG element for the chart\n *\n * @memberof Chartist.Core\n * @param {Node} container The containing DOM Node object that will be used to plant the SVG element\n * @param {String} width Set the width of the SVG element. Default is 100%\n * @param {String} height Set the height of the SVG element. Default is 100%\n * @param {String} className Specify a class to be added to the SVG element\n * @return {Object} The created/reinitialized SVG element\n */\n Chartist.createSvg = function (container, width, height, className) {\n var svg;\n\n width = width || '100%';\n height = height || '100%';\n\n // Check if there is a previous SVG element in the container that contains the Chartist XML namespace and remove it\n // Since the DOM API does not support namespaces we need to manually search the returned list http://www.w3.org/TR/selectors-api/\n Array.prototype.slice.call(container.querySelectorAll('svg')).filter(function filterChartistSvgObjects(svg) {\n return svg.getAttributeNS(Chartist.namespaces.xmlns, 'ct');\n }).forEach(function removePreviousElement(svg) {\n container.removeChild(svg);\n });\n\n // Create svg object with width and height or use 100% as default\n svg = new Chartist.Svg('svg').attr({\n width: width,\n height: height\n }).addClass(className);\n\n svg._node.style.width = width;\n svg._node.style.height = height;\n\n // Add the DOM node to our container\n container.appendChild(svg._node);\n\n return svg;\n };\n\n /**\n * Ensures that the data object passed as second argument to the charts is present and correctly initialized.\n *\n * @param {Object} data The data object that is passed as second argument to the charts\n * @return {Object} The normalized data object\n */\n Chartist.normalizeData = function(data, reverse, multi) {\n var labelCount;\n var output = {\n raw: data,\n normalized: {}\n };\n\n // Check if we should generate some labels based on existing series data\n output.normalized.series = Chartist.getDataArray({\n series: data.series || []\n }, reverse, multi);\n\n // If all elements of the normalized data array are arrays we're dealing with\n // multi series data and we need to find the largest series if they are un-even\n if (output.normalized.series.every(function(value) {\n return value instanceof Array;\n })) {\n // Getting the series with the the most elements\n labelCount = Math.max.apply(null, output.normalized.series.map(function(series) {\n return series.length;\n }));\n } else {\n // We're dealing with Pie data so we just take the normalized array length\n labelCount = output.normalized.series.length;\n }\n\n output.normalized.labels = (data.labels || []).slice();\n // Padding the labels to labelCount with empty strings\n Array.prototype.push.apply(\n output.normalized.labels,\n Chartist.times(Math.max(0, labelCount - output.normalized.labels.length)).map(function() {\n return '';\n })\n );\n\n if(reverse) {\n Chartist.reverseData(output.normalized);\n }\n\n return output;\n };\n\n /**\n * This function safely checks if an objects has an owned property.\n *\n * @param {Object} object The object where to check for a property\n * @param {string} property The property name\n * @returns {boolean} Returns true if the object owns the specified property\n */\n Chartist.safeHasProperty = function(object, property) {\n return object !== null &&\n typeof object === 'object' &&\n object.hasOwnProperty(property);\n };\n\n /**\n * Checks if a value is considered a hole in the data series.\n *\n * @param {*} value\n * @returns {boolean} True if the value is considered a data hole\n */\n Chartist.isDataHoleValue = function(value) {\n return value === null ||\n value === undefined ||\n (typeof value === 'number' && isNaN(value));\n };\n\n /**\n * Reverses the series, labels and series data arrays.\n *\n * @memberof Chartist.Core\n * @param data\n */\n Chartist.reverseData = function(data) {\n data.labels.reverse();\n data.series.reverse();\n for (var i = 0; i < data.series.length; i++) {\n if(typeof(data.series[i]) === 'object' && data.series[i].data !== undefined) {\n data.series[i].data.reverse();\n } else if(data.series[i] instanceof Array) {\n data.series[i].reverse();\n }\n }\n };\n\n /**\n * Convert data series into plain array\n *\n * @memberof Chartist.Core\n * @param {Object} data The series object that contains the data to be visualized in the chart\n * @param {Boolean} [reverse] If true the whole data is reversed by the getDataArray call. This will modify the data object passed as first parameter. The labels as well as the series order is reversed. The whole series data arrays are reversed too.\n * @param {Boolean} [multi] Create a multi dimensional array from a series data array where a value object with `x` and `y` values will be created.\n * @return {Array} A plain array that contains the data to be visualized in the chart\n */\n Chartist.getDataArray = function(data, reverse, multi) {\n // Recursively walks through nested arrays and convert string values to numbers and objects with value properties\n // to values. Check the tests in data core -> data normalization for a detailed specification of expected values\n function recursiveConvert(value) {\n if(Chartist.safeHasProperty(value, 'value')) {\n // We are dealing with value object notation so we need to recurse on value property\n return recursiveConvert(value.value);\n } else if(Chartist.safeHasProperty(value, 'data')) {\n // We are dealing with series object notation so we need to recurse on data property\n return recursiveConvert(value.data);\n } else if(value instanceof Array) {\n // Data is of type array so we need to recurse on the series\n return value.map(recursiveConvert);\n } else if(Chartist.isDataHoleValue(value)) {\n // We're dealing with a hole in the data and therefore need to return undefined\n // We're also returning undefined for multi value output\n return undefined;\n } else {\n // We need to prepare multi value output (x and y data)\n if(multi) {\n var multiValue = {};\n\n // Single series value arrays are assumed to specify the Y-Axis value\n // For example: [1, 2] => [{x: undefined, y: 1}, {x: undefined, y: 2}]\n // If multi is a string then it's assumed that it specified which dimension should be filled as default\n if(typeof multi === 'string') {\n multiValue[multi] = Chartist.getNumberOrUndefined(value);\n } else {\n multiValue.y = Chartist.getNumberOrUndefined(value);\n }\n\n multiValue.x = value.hasOwnProperty('x') ? Chartist.getNumberOrUndefined(value.x) : multiValue.x;\n multiValue.y = value.hasOwnProperty('y') ? Chartist.getNumberOrUndefined(value.y) : multiValue.y;\n\n return multiValue;\n\n } else {\n // We can return simple data\n return Chartist.getNumberOrUndefined(value);\n }\n }\n }\n\n return data.series.map(recursiveConvert);\n };\n\n /**\n * Converts a number into a padding object.\n *\n * @memberof Chartist.Core\n * @param {Object|Number} padding\n * @param {Number} [fallback] This value is used to fill missing values if a incomplete padding object was passed\n * @returns {Object} Returns a padding object containing top, right, bottom, left properties filled with the padding number passed in as argument. If the argument is something else than a number (presumably already a correct padding object) then this argument is directly returned.\n */\n Chartist.normalizePadding = function(padding, fallback) {\n fallback = fallback || 0;\n\n return typeof padding === 'number' ? {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n } : {\n top: typeof padding.top === 'number' ? padding.top : fallback,\n right: typeof padding.right === 'number' ? padding.right : fallback,\n bottom: typeof padding.bottom === 'number' ? padding.bottom : fallback,\n left: typeof padding.left === 'number' ? padding.left : fallback\n };\n };\n\n Chartist.getMetaData = function(series, index) {\n var value = series.data ? series.data[index] : series[index];\n return value ? value.meta : undefined;\n };\n\n /**\n * Calculate the order of magnitude for the chart scale\n *\n * @memberof Chartist.Core\n * @param {Number} value The value Range of the chart\n * @return {Number} The order of magnitude\n */\n Chartist.orderOfMagnitude = function (value) {\n return Math.floor(Math.log(Math.abs(value)) / Math.LN10);\n };\n\n /**\n * Project a data length into screen coordinates (pixels)\n *\n * @memberof Chartist.Core\n * @param {Object} axisLength The svg element for the chart\n * @param {Number} length Single data value from a series array\n * @param {Object} bounds All the values to set the bounds of the chart\n * @return {Number} The projected data length in pixels\n */\n Chartist.projectLength = function (axisLength, length, bounds) {\n return length / bounds.range * axisLength;\n };\n\n /**\n * Get the height of the area in the chart for the data series\n *\n * @memberof Chartist.Core\n * @param {Object} svg The svg element for the chart\n * @param {Object} options The Object that contains all the optional values for the chart\n * @return {Number} The height of the area in the chart for the data series\n */\n Chartist.getAvailableHeight = function (svg, options) {\n return Math.max((Chartist.quantity(options.height).value || svg.height()) - (options.chartPadding.top + options.chartPadding.bottom) - options.axisX.offset, 0);\n };\n\n /**\n * Get highest and lowest value of data array. This Array contains the data that will be visualized in the chart.\n *\n * @memberof Chartist.Core\n * @param {Array} data The array that contains the data to be visualized in the chart\n * @param {Object} options The Object that contains the chart options\n * @param {String} dimension Axis dimension 'x' or 'y' used to access the correct value and high / low configuration\n * @return {Object} An object that contains the highest and lowest value that will be visualized on the chart.\n */\n Chartist.getHighLow = function (data, options, dimension) {\n // TODO: Remove workaround for deprecated global high / low config. Axis high / low configuration is preferred\n options = Chartist.extend({}, options, dimension ? options['axis' + dimension.toUpperCase()] : {});\n\n var highLow = {\n high: options.high === undefined ? -Number.MAX_VALUE : +options.high,\n low: options.low === undefined ? Number.MAX_VALUE : +options.low\n };\n var findHigh = options.high === undefined;\n var findLow = options.low === undefined;\n\n // Function to recursively walk through arrays and find highest and lowest number\n function recursiveHighLow(data) {\n if(data === undefined) {\n return undefined;\n } else if(data instanceof Array) {\n for (var i = 0; i < data.length; i++) {\n recursiveHighLow(data[i]);\n }\n } else {\n var value = dimension ? +data[dimension] : +data;\n\n if (findHigh && value > highLow.high) {\n highLow.high = value;\n }\n\n if (findLow && value < highLow.low) {\n highLow.low = value;\n }\n }\n }\n\n // Start to find highest and lowest number recursively\n if(findHigh || findLow) {\n recursiveHighLow(data);\n }\n\n // Overrides of high / low based on reference value, it will make sure that the invisible reference value is\n // used to generate the chart. This is useful when the chart always needs to contain the position of the\n // invisible reference value in the view i.e. for bipolar scales.\n if (options.referenceValue || options.referenceValue === 0) {\n highLow.high = Math.max(options.referenceValue, highLow.high);\n highLow.low = Math.min(options.referenceValue, highLow.low);\n }\n\n // If high and low are the same because of misconfiguration or flat data (only the same value) we need\n // to set the high or low to 0 depending on the polarity\n if (highLow.high <= highLow.low) {\n // If both values are 0 we set high to 1\n if (highLow.low === 0) {\n highLow.high = 1;\n } else if (highLow.low < 0) {\n // If we have the same negative value for the bounds we set bounds.high to 0\n highLow.high = 0;\n } else if (highLow.high > 0) {\n // If we have the same positive value for the bounds we set bounds.low to 0\n highLow.low = 0;\n } else {\n // If data array was empty, values are Number.MAX_VALUE and -Number.MAX_VALUE. Set bounds to prevent errors\n highLow.high = 1;\n highLow.low = 0;\n }\n }\n\n return highLow;\n };\n\n /**\n * Checks if a value can be safely coerced to a number. This includes all values except null which result in finite numbers when coerced. This excludes NaN, since it's not finite.\n *\n * @memberof Chartist.Core\n * @param value\n * @returns {Boolean}\n */\n Chartist.isNumeric = function(value) {\n return value === null ? false : isFinite(value);\n };\n\n /**\n * Returns true on all falsey values except the numeric value 0.\n *\n * @memberof Chartist.Core\n * @param value\n * @returns {boolean}\n */\n Chartist.isFalseyButZero = function(value) {\n return !value && value !== 0;\n };\n\n /**\n * Returns a number if the passed parameter is a valid number or the function will return undefined. On all other values than a valid number, this function will return undefined.\n *\n * @memberof Chartist.Core\n * @param value\n * @returns {*}\n */\n Chartist.getNumberOrUndefined = function(value) {\n return Chartist.isNumeric(value) ? +value : undefined;\n };\n\n /**\n * Checks if provided value object is multi value (contains x or y properties)\n *\n * @memberof Chartist.Core\n * @param value\n */\n Chartist.isMultiValue = function(value) {\n return typeof value === 'object' && ('x' in value || 'y' in value);\n };\n\n /**\n * Gets a value from a dimension `value.x` or `value.y` while returning value directly if it's a valid numeric value. If the value is not numeric and it's falsey this function will return `defaultValue`.\n *\n * @memberof Chartist.Core\n * @param value\n * @param dimension\n * @param defaultValue\n * @returns {*}\n */\n Chartist.getMultiValue = function(value, dimension) {\n if(Chartist.isMultiValue(value)) {\n return Chartist.getNumberOrUndefined(value[dimension || 'y']);\n } else {\n return Chartist.getNumberOrUndefined(value);\n }\n };\n\n /**\n * Pollard Rho Algorithm to find smallest factor of an integer value. There are more efficient algorithms for factorization, but this one is quite efficient and not so complex.\n *\n * @memberof Chartist.Core\n * @param {Number} num An integer number where the smallest factor should be searched for\n * @returns {Number} The smallest integer factor of the parameter num.\n */\n Chartist.rho = function(num) {\n if(num === 1) {\n return num;\n }\n\n function gcd(p, q) {\n if (p % q === 0) {\n return q;\n } else {\n return gcd(q, p % q);\n }\n }\n\n function f(x) {\n return x * x + 1;\n }\n\n var x1 = 2, x2 = 2, divisor;\n if (num % 2 === 0) {\n return 2;\n }\n\n do {\n x1 = f(x1) % num;\n x2 = f(f(x2)) % num;\n divisor = gcd(Math.abs(x1 - x2), num);\n } while (divisor === 1);\n\n return divisor;\n };\n\n /**\n * Calculate and retrieve all the bounds for the chart and return them in one array\n *\n * @memberof Chartist.Core\n * @param {Number} axisLength The length of the Axis used for\n * @param {Object} highLow An object containing a high and low property indicating the value range of the chart.\n * @param {Number} scaleMinSpace The minimum projected length a step should result in\n * @param {Boolean} onlyInteger\n * @return {Object} All the values to set the bounds of the chart\n */\n Chartist.getBounds = function (axisLength, highLow, scaleMinSpace, onlyInteger) {\n var i,\n optimizationCounter = 0,\n newMin,\n newMax,\n bounds = {\n high: highLow.high,\n low: highLow.low\n };\n\n bounds.valueRange = bounds.high - bounds.low;\n bounds.oom = Chartist.orderOfMagnitude(bounds.valueRange);\n bounds.step = Math.pow(10, bounds.oom);\n bounds.min = Math.floor(bounds.low / bounds.step) * bounds.step;\n bounds.max = Math.ceil(bounds.high / bounds.step) * bounds.step;\n bounds.range = bounds.max - bounds.min;\n bounds.numberOfSteps = Math.round(bounds.range / bounds.step);\n\n // Optimize scale step by checking if subdivision is possible based on horizontalGridMinSpace\n // If we are already below the scaleMinSpace value we will scale up\n var length = Chartist.projectLength(axisLength, bounds.step, bounds);\n var scaleUp = length < scaleMinSpace;\n var smallestFactor = onlyInteger ? Chartist.rho(bounds.range) : 0;\n\n // First check if we should only use integer steps and if step 1 is still larger than scaleMinSpace so we can use 1\n if(onlyInteger && Chartist.projectLength(axisLength, 1, bounds) >= scaleMinSpace) {\n bounds.step = 1;\n } else if(onlyInteger && smallestFactor < bounds.step && Chartist.projectLength(axisLength, smallestFactor, bounds) >= scaleMinSpace) {\n // If step 1 was too small, we can try the smallest factor of range\n // If the smallest factor is smaller than the current bounds.step and the projected length of smallest factor\n // is larger than the scaleMinSpace we should go for it.\n bounds.step = smallestFactor;\n } else {\n // Trying to divide or multiply by 2 and find the best step value\n while (true) {\n if (scaleUp && Chartist.projectLength(axisLength, bounds.step, bounds) <= scaleMinSpace) {\n bounds.step *= 2;\n } else if (!scaleUp && Chartist.projectLength(axisLength, bounds.step / 2, bounds) >= scaleMinSpace) {\n bounds.step /= 2;\n if(onlyInteger && bounds.step % 1 !== 0) {\n bounds.step *= 2;\n break;\n }\n } else {\n break;\n }\n\n if(optimizationCounter++ > 1000) {\n throw new Error('Exceeded maximum number of iterations while optimizing scale step!');\n }\n }\n }\n\n var EPSILON = 2.221E-16;\n bounds.step = Math.max(bounds.step, EPSILON);\n function safeIncrement(value, increment) {\n // If increment is too small use *= (1+EPSILON) as a simple nextafter\n if (value === (value += increment)) {\n \tvalue *= (1 + (increment > 0 ? EPSILON : -EPSILON));\n }\n return value;\n }\n\n // Narrow min and max based on new step\n newMin = bounds.min;\n newMax = bounds.max;\n while (newMin + bounds.step <= bounds.low) {\n \tnewMin = safeIncrement(newMin, bounds.step);\n }\n while (newMax - bounds.step >= bounds.high) {\n \tnewMax = safeIncrement(newMax, -bounds.step);\n }\n bounds.min = newMin;\n bounds.max = newMax;\n bounds.range = bounds.max - bounds.min;\n\n var values = [];\n for (i = bounds.min; i <= bounds.max; i = safeIncrement(i, bounds.step)) {\n var value = Chartist.roundWithPrecision(i);\n if (value !== values[values.length - 1]) {\n values.push(value);\n }\n }\n bounds.values = values;\n return bounds;\n };\n\n /**\n * Calculate cartesian coordinates of polar coordinates\n *\n * @memberof Chartist.Core\n * @param {Number} centerX X-axis coordinates of center point of circle segment\n * @param {Number} centerY X-axis coordinates of center point of circle segment\n * @param {Number} radius Radius of circle segment\n * @param {Number} angleInDegrees Angle of circle segment in degrees\n * @return {{x:Number, y:Number}} Coordinates of point on circumference\n */\n Chartist.polarToCartesian = function (centerX, centerY, radius, angleInDegrees) {\n var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0;\n\n return {\n x: centerX + (radius * Math.cos(angleInRadians)),\n y: centerY + (radius * Math.sin(angleInRadians))\n };\n };\n\n /**\n * Initialize chart drawing rectangle (area where chart is drawn) x1,y1 = bottom left / x2,y2 = top right\n *\n * @memberof Chartist.Core\n * @param {Object} svg The svg element for the chart\n * @param {Object} options The Object that contains all the optional values for the chart\n * @param {Number} [fallbackPadding] The fallback padding if partial padding objects are used\n * @return {Object} The chart rectangles coordinates inside the svg element plus the rectangles measurements\n */\n Chartist.createChartRect = function (svg, options, fallbackPadding) {\n var hasAxis = !!(options.axisX || options.axisY);\n var yAxisOffset = hasAxis ? options.axisY.offset : 0;\n var xAxisOffset = hasAxis ? options.axisX.offset : 0;\n // If width or height results in invalid value (including 0) we fallback to the unitless settings or even 0\n var width = svg.width() || Chartist.quantity(options.width).value || 0;\n var height = svg.height() || Chartist.quantity(options.height).value || 0;\n var normalizedPadding = Chartist.normalizePadding(options.chartPadding, fallbackPadding);\n\n // If settings were to small to cope with offset (legacy) and padding, we'll adjust\n width = Math.max(width, yAxisOffset + normalizedPadding.left + normalizedPadding.right);\n height = Math.max(height, xAxisOffset + normalizedPadding.top + normalizedPadding.bottom);\n\n var chartRect = {\n padding: normalizedPadding,\n width: function () {\n return this.x2 - this.x1;\n },\n height: function () {\n return this.y1 - this.y2;\n }\n };\n\n if(hasAxis) {\n if (options.axisX.position === 'start') {\n chartRect.y2 = normalizedPadding.top + xAxisOffset;\n chartRect.y1 = Math.max(height - normalizedPadding.bottom, chartRect.y2 + 1);\n } else {\n chartRect.y2 = normalizedPadding.top;\n chartRect.y1 = Math.max(height - normalizedPadding.bottom - xAxisOffset, chartRect.y2 + 1);\n }\n\n if (options.axisY.position === 'start') {\n chartRect.x1 = normalizedPadding.left + yAxisOffset;\n chartRect.x2 = Math.max(width - normalizedPadding.right, chartRect.x1 + 1);\n } else {\n chartRect.x1 = normalizedPadding.left;\n chartRect.x2 = Math.max(width - normalizedPadding.right - yAxisOffset, chartRect.x1 + 1);\n }\n } else {\n chartRect.x1 = normalizedPadding.left;\n chartRect.x2 = Math.max(width - normalizedPadding.right, chartRect.x1 + 1);\n chartRect.y2 = normalizedPadding.top;\n chartRect.y1 = Math.max(height - normalizedPadding.bottom, chartRect.y2 + 1);\n }\n\n return chartRect;\n };\n\n /**\n * Creates a grid line based on a projected value.\n *\n * @memberof Chartist.Core\n * @param position\n * @param index\n * @param axis\n * @param offset\n * @param length\n * @param group\n * @param classes\n * @param eventEmitter\n */\n Chartist.createGrid = function(position, index, axis, offset, length, group, classes, eventEmitter) {\n var positionalData = {};\n positionalData[axis.units.pos + '1'] = position;\n positionalData[axis.units.pos + '2'] = position;\n positionalData[axis.counterUnits.pos + '1'] = offset;\n positionalData[axis.counterUnits.pos + '2'] = offset + length;\n\n var gridElement = group.elem('line', positionalData, classes.join(' '));\n\n // Event for grid draw\n eventEmitter.emit('draw',\n Chartist.extend({\n type: 'grid',\n axis: axis,\n index: index,\n group: group,\n element: gridElement\n }, positionalData)\n );\n };\n\n /**\n * Creates a grid background rect and emits the draw event.\n *\n * @memberof Chartist.Core\n * @param gridGroup\n * @param chartRect\n * @param className\n * @param eventEmitter\n */\n Chartist.createGridBackground = function (gridGroup, chartRect, className, eventEmitter) {\n var gridBackground = gridGroup.elem('rect', {\n x: chartRect.x1,\n y: chartRect.y2,\n width: chartRect.width(),\n height: chartRect.height(),\n }, className, true);\n\n // Event for grid background draw\n eventEmitter.emit('draw', {\n type: 'gridBackground',\n group: gridGroup,\n element: gridBackground\n });\n };\n\n /**\n * Creates a label based on a projected value and an axis.\n *\n * @memberof Chartist.Core\n * @param position\n * @param length\n * @param index\n * @param labels\n * @param axis\n * @param axisOffset\n * @param labelOffset\n * @param group\n * @param classes\n * @param useForeignObject\n * @param eventEmitter\n */\n Chartist.createLabel = function(position, length, index, labels, axis, axisOffset, labelOffset, group, classes, useForeignObject, eventEmitter) {\n var labelElement;\n var positionalData = {};\n\n positionalData[axis.units.pos] = position + labelOffset[axis.units.pos];\n positionalData[axis.counterUnits.pos] = labelOffset[axis.counterUnits.pos];\n positionalData[axis.units.len] = length;\n positionalData[axis.counterUnits.len] = Math.max(0, axisOffset - 10);\n\n if(useForeignObject) {\n // We need to set width and height explicitly to px as span will not expand with width and height being\n // 100% in all browsers\n var content = document.createElement('span');\n content.className = classes.join(' ');\n content.setAttribute('xmlns', Chartist.namespaces.xhtml);\n content.innerText = labels[index];\n content.style[axis.units.len] = Math.round(positionalData[axis.units.len]) + 'px';\n content.style[axis.counterUnits.len] = Math.round(positionalData[axis.counterUnits.len]) + 'px';\n\n labelElement = group.foreignObject(content, Chartist.extend({\n style: 'overflow: visible;'\n }, positionalData));\n } else {\n labelElement = group.elem('text', positionalData, classes.join(' ')).text(labels[index]);\n }\n\n eventEmitter.emit('draw', Chartist.extend({\n type: 'label',\n axis: axis,\n index: index,\n group: group,\n element: labelElement,\n text: labels[index]\n }, positionalData));\n };\n\n /**\n * Helper to read series specific options from options object. It automatically falls back to the global option if\n * there is no option in the series options.\n *\n * @param {Object} series Series object\n * @param {Object} options Chartist options object\n * @param {string} key The options key that should be used to obtain the options\n * @returns {*}\n */\n Chartist.getSeriesOption = function(series, options, key) {\n if(series.name && options.series && options.series[series.name]) {\n var seriesOptions = options.series[series.name];\n return seriesOptions.hasOwnProperty(key) ? seriesOptions[key] : options[key];\n } else {\n return options[key];\n }\n };\n\n /**\n * Provides options handling functionality with callback for options changes triggered by responsive options and media query matches\n *\n * @memberof Chartist.Core\n * @param {Object} options Options set by user\n * @param {Array} responsiveOptions Optional functions to add responsive behavior to chart\n * @param {Object} eventEmitter The event emitter that will be used to emit the options changed events\n * @return {Object} The consolidated options object from the defaults, base and matching responsive options\n */\n Chartist.optionsProvider = function (options, responsiveOptions, eventEmitter) {\n var baseOptions = Chartist.extend({}, options),\n currentOptions,\n mediaQueryListeners = [],\n i;\n\n function updateCurrentOptions(mediaEvent) {\n var previousOptions = currentOptions;\n currentOptions = Chartist.extend({}, baseOptions);\n\n if (responsiveOptions) {\n for (i = 0; i < responsiveOptions.length; i++) {\n var mql = window.matchMedia(responsiveOptions[i][0]);\n if (mql.matches) {\n currentOptions = Chartist.extend(currentOptions, responsiveOptions[i][1]);\n }\n }\n }\n\n if(eventEmitter && mediaEvent) {\n eventEmitter.emit('optionsChanged', {\n previousOptions: previousOptions,\n currentOptions: currentOptions\n });\n }\n }\n\n function removeMediaQueryListeners() {\n mediaQueryListeners.forEach(function(mql) {\n mql.removeListener(updateCurrentOptions);\n });\n }\n\n if (!window.matchMedia) {\n throw 'window.matchMedia not found! Make sure you\\'re using a polyfill.';\n } else if (responsiveOptions) {\n\n for (i = 0; i < responsiveOptions.length; i++) {\n var mql = window.matchMedia(responsiveOptions[i][0]);\n mql.addListener(updateCurrentOptions);\n mediaQueryListeners.push(mql);\n }\n }\n // Execute initially without an event argument so we get the correct options\n updateCurrentOptions();\n\n return {\n removeMediaQueryListeners: removeMediaQueryListeners,\n getCurrentOptions: function getCurrentOptions() {\n return Chartist.extend({}, currentOptions);\n }\n };\n };\n\n\n /**\n * Splits a list of coordinates and associated values into segments. Each returned segment contains a pathCoordinates\n * valueData property describing the segment.\n *\n * With the default options, segments consist of contiguous sets of points that do not have an undefined value. Any\n * points with undefined values are discarded.\n *\n * **Options**\n * The following options are used to determine how segments are formed\n * ```javascript\n * var options = {\n * // If fillHoles is true, undefined values are simply discarded without creating a new segment. Assuming other options are default, this returns single segment.\n * fillHoles: false,\n * // If increasingX is true, the coordinates in all segments have strictly increasing x-values.\n * increasingX: false\n * };\n * ```\n *\n * @memberof Chartist.Core\n * @param {Array} pathCoordinates List of point coordinates to be split in the form [x1, y1, x2, y2 ... xn, yn]\n * @param {Array} values List of associated point values in the form [v1, v2 .. vn]\n * @param {Object} options Options set by user\n * @return {Array} List of segments, each containing a pathCoordinates and valueData property.\n */\n Chartist.splitIntoSegments = function(pathCoordinates, valueData, options) {\n var defaultOptions = {\n increasingX: false,\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n var segments = [];\n var hole = true;\n\n for(var i = 0; i < pathCoordinates.length; i += 2) {\n // If this value is a \"hole\" we set the hole flag\n if(Chartist.getMultiValue(valueData[i / 2].value) === undefined) {\n // if(valueData[i / 2].value === undefined) {\n if(!options.fillHoles) {\n hole = true;\n }\n } else {\n if(options.increasingX && i >= 2 && pathCoordinates[i] <= pathCoordinates[i-2]) {\n // X is not increasing, so we need to make sure we start a new segment\n hole = true;\n }\n\n\n // If it's a valid value we need to check if we're coming out of a hole and create a new empty segment\n if(hole) {\n segments.push({\n pathCoordinates: [],\n valueData: []\n });\n // As we have a valid value now, we are not in a \"hole\" anymore\n hole = false;\n }\n\n // Add to the segment pathCoordinates and valueData\n segments[segments.length - 1].pathCoordinates.push(pathCoordinates[i], pathCoordinates[i + 1]);\n segments[segments.length - 1].valueData.push(valueData[i / 2]);\n }\n }\n\n return segments;\n };\n}(this || global, Chartist));\n;/**\n * Chartist path interpolation functions.\n *\n * @module Chartist.Interpolation\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n Chartist.Interpolation = {};\n\n /**\n * This interpolation function does not smooth the path and the result is only containing lines and no curves.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.none({\n * fillHoles: false\n * })\n * });\n *\n *\n * @memberof Chartist.Interpolation\n * @return {Function}\n */\n Chartist.Interpolation.none = function(options) {\n var defaultOptions = {\n fillHoles: false\n };\n options = Chartist.extend({}, defaultOptions, options);\n return function none(pathCoordinates, valueData) {\n var path = new Chartist.Svg.Path();\n var hole = true;\n\n for(var i = 0; i < pathCoordinates.length; i += 2) {\n var currX = pathCoordinates[i];\n var currY = pathCoordinates[i + 1];\n var currData = valueData[i / 2];\n\n if(Chartist.getMultiValue(currData.value) !== undefined) {\n\n if(hole) {\n path.move(currX, currY, false, currData);\n } else {\n path.line(currX, currY, false, currData);\n }\n\n hole = false;\n } else if(!options.fillHoles) {\n hole = true;\n }\n }\n\n return path;\n };\n };\n\n /**\n * Simple smoothing creates horizontal handles that are positioned with a fraction of the length between two data points. You can use the divisor option to specify the amount of smoothing.\n *\n * Simple smoothing can be used instead of `Chartist.Smoothing.cardinal` if you'd like to get rid of the artifacts it produces sometimes. Simple smoothing produces less flowing lines but is accurate by hitting the points and it also doesn't swing below or above the given data point.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter. The simple interpolation function accepts one configuration parameter `divisor`, between 1 and ∞, which controls the smoothing characteristics.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.simple({\n * divisor: 2,\n * fillHoles: false\n * })\n * });\n *\n *\n * @memberof Chartist.Interpolation\n * @param {Object} options The options of the simple interpolation factory function.\n * @return {Function}\n */\n Chartist.Interpolation.simple = function(options) {\n var defaultOptions = {\n divisor: 2,\n fillHoles: false\n };\n options = Chartist.extend({}, defaultOptions, options);\n\n var d = 1 / Math.max(1, options.divisor);\n\n return function simple(pathCoordinates, valueData) {\n var path = new Chartist.Svg.Path();\n var prevX, prevY, prevData;\n\n for(var i = 0; i < pathCoordinates.length; i += 2) {\n var currX = pathCoordinates[i];\n var currY = pathCoordinates[i + 1];\n var length = (currX - prevX) * d;\n var currData = valueData[i / 2];\n\n if(currData.value !== undefined) {\n\n if(prevData === undefined) {\n path.move(currX, currY, false, currData);\n } else {\n path.curve(\n prevX + length,\n prevY,\n currX - length,\n currY,\n currX,\n currY,\n false,\n currData\n );\n }\n\n prevX = currX;\n prevY = currY;\n prevData = currData;\n } else if(!options.fillHoles) {\n prevX = currX = prevData = undefined;\n }\n }\n\n return path;\n };\n };\n\n /**\n * Cardinal / Catmull-Rome spline interpolation is the default smoothing function in Chartist. It produces nice results where the splines will always meet the points. It produces some artifacts though when data values are increased or decreased rapidly. The line may not follow a very accurate path and if the line should be accurate this smoothing function does not produce the best results.\n *\n * Cardinal splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter. The cardinal interpolation function accepts one configuration parameter `tension`, between 0 and 1, which controls the smoothing intensity.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.cardinal({\n * tension: 1,\n * fillHoles: false\n * })\n * });\n *\n * @memberof Chartist.Interpolation\n * @param {Object} options The options of the cardinal factory function.\n * @return {Function}\n */\n Chartist.Interpolation.cardinal = function(options) {\n var defaultOptions = {\n tension: 1,\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n var t = Math.min(1, Math.max(0, options.tension)),\n c = 1 - t;\n\n return function cardinal(pathCoordinates, valueData) {\n // First we try to split the coordinates into segments\n // This is necessary to treat \"holes\" in line charts\n var segments = Chartist.splitIntoSegments(pathCoordinates, valueData, {\n fillHoles: options.fillHoles\n });\n\n if(!segments.length) {\n // If there were no segments return 'Chartist.Interpolation.none'\n return Chartist.Interpolation.none()([]);\n } else if(segments.length > 1) {\n // If the split resulted in more that one segment we need to interpolate each segment individually and join them\n // afterwards together into a single path.\n var paths = [];\n // For each segment we will recurse the cardinal function\n segments.forEach(function(segment) {\n paths.push(cardinal(segment.pathCoordinates, segment.valueData));\n });\n // Join the segment path data into a single path and return\n return Chartist.Svg.Path.join(paths);\n } else {\n // If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first\n // segment\n pathCoordinates = segments[0].pathCoordinates;\n valueData = segments[0].valueData;\n\n // If less than two points we need to fallback to no smoothing\n if(pathCoordinates.length <= 4) {\n return Chartist.Interpolation.none()(pathCoordinates, valueData);\n }\n\n var path = new Chartist.Svg.Path().move(pathCoordinates[0], pathCoordinates[1], false, valueData[0]),\n z;\n\n for (var i = 0, iLen = pathCoordinates.length; iLen - 2 * !z > i; i += 2) {\n var p = [\n {x: +pathCoordinates[i - 2], y: +pathCoordinates[i - 1]},\n {x: +pathCoordinates[i], y: +pathCoordinates[i + 1]},\n {x: +pathCoordinates[i + 2], y: +pathCoordinates[i + 3]},\n {x: +pathCoordinates[i + 4], y: +pathCoordinates[i + 5]}\n ];\n if (z) {\n if (!i) {\n p[0] = {x: +pathCoordinates[iLen - 2], y: +pathCoordinates[iLen - 1]};\n } else if (iLen - 4 === i) {\n p[3] = {x: +pathCoordinates[0], y: +pathCoordinates[1]};\n } else if (iLen - 2 === i) {\n p[2] = {x: +pathCoordinates[0], y: +pathCoordinates[1]};\n p[3] = {x: +pathCoordinates[2], y: +pathCoordinates[3]};\n }\n } else {\n if (iLen - 4 === i) {\n p[3] = p[2];\n } else if (!i) {\n p[0] = {x: +pathCoordinates[i], y: +pathCoordinates[i + 1]};\n }\n }\n\n path.curve(\n (t * (-p[0].x + 6 * p[1].x + p[2].x) / 6) + (c * p[2].x),\n (t * (-p[0].y + 6 * p[1].y + p[2].y) / 6) + (c * p[2].y),\n (t * (p[1].x + 6 * p[2].x - p[3].x) / 6) + (c * p[2].x),\n (t * (p[1].y + 6 * p[2].y - p[3].y) / 6) + (c * p[2].y),\n p[2].x,\n p[2].y,\n false,\n valueData[(i + 2) / 2]\n );\n }\n\n return path;\n }\n };\n };\n\n /**\n * Monotone Cubic spline interpolation produces a smooth curve which preserves monotonicity. Unlike cardinal splines, the curve will not extend beyond the range of y-values of the original data points.\n *\n * Monotone Cubic splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`.\n *\n * The x-values of subsequent points must be increasing to fit a Monotone Cubic spline. If this condition is not met for a pair of adjacent points, then there will be a break in the curve between those data points.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.monotoneCubic({\n * fillHoles: false\n * })\n * });\n *\n * @memberof Chartist.Interpolation\n * @param {Object} options The options of the monotoneCubic factory function.\n * @return {Function}\n */\n Chartist.Interpolation.monotoneCubic = function(options) {\n var defaultOptions = {\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n return function monotoneCubic(pathCoordinates, valueData) {\n // First we try to split the coordinates into segments\n // This is necessary to treat \"holes\" in line charts\n var segments = Chartist.splitIntoSegments(pathCoordinates, valueData, {\n fillHoles: options.fillHoles,\n increasingX: true\n });\n\n if(!segments.length) {\n // If there were no segments return 'Chartist.Interpolation.none'\n return Chartist.Interpolation.none()([]);\n } else if(segments.length > 1) {\n // If the split resulted in more that one segment we need to interpolate each segment individually and join them\n // afterwards together into a single path.\n var paths = [];\n // For each segment we will recurse the monotoneCubic fn function\n segments.forEach(function(segment) {\n paths.push(monotoneCubic(segment.pathCoordinates, segment.valueData));\n });\n // Join the segment path data into a single path and return\n return Chartist.Svg.Path.join(paths);\n } else {\n // If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first\n // segment\n pathCoordinates = segments[0].pathCoordinates;\n valueData = segments[0].valueData;\n\n // If less than three points we need to fallback to no smoothing\n if(pathCoordinates.length <= 4) {\n return Chartist.Interpolation.none()(pathCoordinates, valueData);\n }\n\n var xs = [],\n ys = [],\n i,\n n = pathCoordinates.length / 2,\n ms = [],\n ds = [], dys = [], dxs = [],\n path;\n\n // Populate x and y coordinates into separate arrays, for readability\n\n for(i = 0; i < n; i++) {\n xs[i] = pathCoordinates[i * 2];\n ys[i] = pathCoordinates[i * 2 + 1];\n }\n\n // Calculate deltas and derivative\n\n for(i = 0; i < n - 1; i++) {\n dys[i] = ys[i + 1] - ys[i];\n dxs[i] = xs[i + 1] - xs[i];\n ds[i] = dys[i] / dxs[i];\n }\n\n // Determine desired slope (m) at each point using Fritsch-Carlson method\n // See: http://math.stackexchange.com/questions/45218/implementation-of-monotone-cubic-interpolation\n\n ms[0] = ds[0];\n ms[n - 1] = ds[n - 2];\n\n for(i = 1; i < n - 1; i++) {\n if(ds[i] === 0 || ds[i - 1] === 0 || (ds[i - 1] > 0) !== (ds[i] > 0)) {\n ms[i] = 0;\n } else {\n ms[i] = 3 * (dxs[i - 1] + dxs[i]) / (\n (2 * dxs[i] + dxs[i - 1]) / ds[i - 1] +\n (dxs[i] + 2 * dxs[i - 1]) / ds[i]);\n\n if(!isFinite(ms[i])) {\n ms[i] = 0;\n }\n }\n }\n\n // Now build a path from the slopes\n\n path = new Chartist.Svg.Path().move(xs[0], ys[0], false, valueData[0]);\n\n for(i = 0; i < n - 1; i++) {\n path.curve(\n // First control point\n xs[i] + dxs[i] / 3,\n ys[i] + ms[i] * dxs[i] / 3,\n // Second control point\n xs[i + 1] - dxs[i] / 3,\n ys[i + 1] - ms[i + 1] * dxs[i] / 3,\n // End point\n xs[i + 1],\n ys[i + 1],\n\n false,\n valueData[i + 1]\n );\n }\n\n return path;\n }\n };\n };\n\n /**\n * Step interpolation will cause the line chart to move in steps rather than diagonal or smoothed lines. This interpolation will create additional points that will also be drawn when the `showPoint` option is enabled.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter. The step interpolation function accepts one configuration parameter `postpone`, that can be `true` or `false`. The default value is `true` and will cause the step to occur where the value actually changes. If a different behaviour is needed where the step is shifted to the left and happens before the actual value, this option can be set to `false`.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.step({\n * postpone: true,\n * fillHoles: false\n * })\n * });\n *\n * @memberof Chartist.Interpolation\n * @param options\n * @returns {Function}\n */\n Chartist.Interpolation.step = function(options) {\n var defaultOptions = {\n postpone: true,\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n return function step(pathCoordinates, valueData) {\n var path = new Chartist.Svg.Path();\n\n var prevX, prevY, prevData;\n\n for (var i = 0; i < pathCoordinates.length; i += 2) {\n var currX = pathCoordinates[i];\n var currY = pathCoordinates[i + 1];\n var currData = valueData[i / 2];\n\n // If the current point is also not a hole we can draw the step lines\n if(currData.value !== undefined) {\n if(prevData === undefined) {\n path.move(currX, currY, false, currData);\n } else {\n if(options.postpone) {\n // If postponed we should draw the step line with the value of the previous value\n path.line(currX, prevY, false, prevData);\n } else {\n // If not postponed we should draw the step line with the value of the current value\n path.line(prevX, currY, false, currData);\n }\n // Line to the actual point (this should only be a Y-Axis movement\n path.line(currX, currY, false, currData);\n }\n\n prevX = currX;\n prevY = currY;\n prevData = currData;\n } else if(!options.fillHoles) {\n prevX = prevY = prevData = undefined;\n }\n }\n\n return path;\n };\n };\n\n}(this || global, Chartist));\n;/**\n * A very basic event module that helps to generate and catch events.\n *\n * @module Chartist.Event\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n Chartist.EventEmitter = function () {\n var handlers = [];\n\n /**\n * Add an event handler for a specific event\n *\n * @memberof Chartist.Event\n * @param {String} event The event name\n * @param {Function} handler A event handler function\n */\n function addEventHandler(event, handler) {\n handlers[event] = handlers[event] || [];\n handlers[event].push(handler);\n }\n\n /**\n * Remove an event handler of a specific event name or remove all event handlers for a specific event.\n *\n * @memberof Chartist.Event\n * @param {String} event The event name where a specific or all handlers should be removed\n * @param {Function} [handler] An optional event handler function. If specified only this specific handler will be removed and otherwise all handlers are removed.\n */\n function removeEventHandler(event, handler) {\n // Only do something if there are event handlers with this name existing\n if(handlers[event]) {\n // If handler is set we will look for a specific handler and only remove this\n if(handler) {\n handlers[event].splice(handlers[event].indexOf(handler), 1);\n if(handlers[event].length === 0) {\n delete handlers[event];\n }\n } else {\n // If no handler is specified we remove all handlers for this event\n delete handlers[event];\n }\n }\n }\n\n /**\n * Use this function to emit an event. All handlers that are listening for this event will be triggered with the data parameter.\n *\n * @memberof Chartist.Event\n * @param {String} event The event name that should be triggered\n * @param {*} data Arbitrary data that will be passed to the event handler callback functions\n */\n function emit(event, data) {\n // Only do something if there are event handlers with this name existing\n if(handlers[event]) {\n handlers[event].forEach(function(handler) {\n handler(data);\n });\n }\n\n // Emit event to star event handlers\n if(handlers['*']) {\n handlers['*'].forEach(function(starHandler) {\n starHandler(event, data);\n });\n }\n }\n\n return {\n addEventHandler: addEventHandler,\n removeEventHandler: removeEventHandler,\n emit: emit\n };\n };\n\n}(this || global, Chartist));\n;/**\n * This module provides some basic prototype inheritance utilities.\n *\n * @module Chartist.Class\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n function listToArray(list) {\n var arr = [];\n if (list.length) {\n for (var i = 0; i < list.length; i++) {\n arr.push(list[i]);\n }\n }\n return arr;\n }\n\n /**\n * Method to extend from current prototype.\n *\n * @memberof Chartist.Class\n * @param {Object} properties The object that serves as definition for the prototype that gets created for the new class. This object should always contain a constructor property that is the desired constructor for the newly created class.\n * @param {Object} [superProtoOverride] By default extens will use the current class prototype or Chartist.class. With this parameter you can specify any super prototype that will be used.\n * @return {Function} Constructor function of the new class\n *\n * @example\n * var Fruit = Class.extend({\n * color: undefined,\n * sugar: undefined,\n *\n * constructor: function(color, sugar) {\n * this.color = color;\n * this.sugar = sugar;\n * },\n *\n * eat: function() {\n * this.sugar = 0;\n * return this;\n * }\n * });\n *\n * var Banana = Fruit.extend({\n * length: undefined,\n *\n * constructor: function(length, sugar) {\n * Banana.super.constructor.call(this, 'Yellow', sugar);\n * this.length = length;\n * }\n * });\n *\n * var banana = new Banana(20, 40);\n * console.log('banana instanceof Fruit', banana instanceof Fruit);\n * console.log('Fruit is prototype of banana', Fruit.prototype.isPrototypeOf(banana));\n * console.log('bananas prototype is Fruit', Object.getPrototypeOf(banana) === Fruit.prototype);\n * console.log(banana.sugar);\n * console.log(banana.eat().sugar);\n * console.log(banana.color);\n */\n function extend(properties, superProtoOverride) {\n var superProto = superProtoOverride || this.prototype || Chartist.Class;\n var proto = Object.create(superProto);\n\n Chartist.Class.cloneDefinitions(proto, properties);\n\n var constr = function() {\n var fn = proto.constructor || function () {},\n instance;\n\n // If this is linked to the Chartist namespace the constructor was not called with new\n // To provide a fallback we will instantiate here and return the instance\n instance = this === Chartist ? Object.create(proto) : this;\n fn.apply(instance, Array.prototype.slice.call(arguments, 0));\n\n // If this constructor was not called with new we need to return the instance\n // This will not harm when the constructor has been called with new as the returned value is ignored\n return instance;\n };\n\n constr.prototype = proto;\n constr.super = superProto;\n constr.extend = this.extend;\n\n return constr;\n }\n\n // Variable argument list clones args > 0 into args[0] and retruns modified args[0]\n function cloneDefinitions() {\n var args = listToArray(arguments);\n var target = args[0];\n\n args.splice(1, args.length - 1).forEach(function (source) {\n Object.getOwnPropertyNames(source).forEach(function (propName) {\n // If this property already exist in target we delete it first\n delete target[propName];\n // Define the property with the descriptor from source\n Object.defineProperty(target, propName,\n Object.getOwnPropertyDescriptor(source, propName));\n });\n });\n\n return target;\n }\n\n Chartist.Class = {\n extend: extend,\n cloneDefinitions: cloneDefinitions\n };\n\n}(this || global, Chartist));\n;/**\n * Base for all chart types. The methods in Chartist.Base are inherited to all chart types.\n *\n * @module Chartist.Base\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n\n // TODO: Currently we need to re-draw the chart on window resize. This is usually very bad and will affect performance.\n // This is done because we can't work with relative coordinates when drawing the chart because SVG Path does not\n // work with relative positions yet. We need to check if we can do a viewBox hack to switch to percentage.\n // See http://mozilla.6506.n7.nabble.com/Specyfing-paths-with-percentages-unit-td247474.html\n // Update: can be done using the above method tested here: http://codepen.io/gionkunz/pen/KDvLj\n // The problem is with the label offsets that can't be converted into percentage and affecting the chart container\n /**\n * Updates the chart which currently does a full reconstruction of the SVG DOM\n *\n * @param {Object} [data] Optional data you'd like to set for the chart before it will update. If not specified the update method will use the data that is already configured with the chart.\n * @param {Object} [options] Optional options you'd like to add to the previous options for the chart before it will update. If not specified the update method will use the options that have been already configured with the chart.\n * @param {Boolean} [override] If set to true, the passed options will be used to extend the options that have been configured already. Otherwise the chart default options will be used as the base\n * @memberof Chartist.Base\n */\n function update(data, options, override) {\n if(data) {\n this.data = data || {};\n this.data.labels = this.data.labels || [];\n this.data.series = this.data.series || [];\n // Event for data transformation that allows to manipulate the data before it gets rendered in the charts\n this.eventEmitter.emit('data', {\n type: 'update',\n data: this.data\n });\n }\n\n if(options) {\n this.options = Chartist.extend({}, override ? this.options : this.defaultOptions, options);\n\n // If chartist was not initialized yet, we just set the options and leave the rest to the initialization\n // Otherwise we re-create the optionsProvider at this point\n if(!this.initializeTimeoutId) {\n this.optionsProvider.removeMediaQueryListeners();\n this.optionsProvider = Chartist.optionsProvider(this.options, this.responsiveOptions, this.eventEmitter);\n }\n }\n\n // Only re-created the chart if it has been initialized yet\n if(!this.initializeTimeoutId) {\n this.createChart(this.optionsProvider.getCurrentOptions());\n }\n\n // Return a reference to the chart object to chain up calls\n return this;\n }\n\n /**\n * This method can be called on the API object of each chart and will un-register all event listeners that were added to other components. This currently includes a window.resize listener as well as media query listeners if any responsive options have been provided. Use this function if you need to destroy and recreate Chartist charts dynamically.\n *\n * @memberof Chartist.Base\n */\n function detach() {\n // Only detach if initialization already occurred on this chart. If this chart still hasn't initialized (therefore\n // the initializationTimeoutId is still a valid timeout reference, we will clear the timeout\n if(!this.initializeTimeoutId) {\n window.removeEventListener('resize', this.resizeListener);\n this.optionsProvider.removeMediaQueryListeners();\n } else {\n window.clearTimeout(this.initializeTimeoutId);\n }\n\n return this;\n }\n\n /**\n * Use this function to register event handlers. The handler callbacks are synchronous and will run in the main thread rather than the event loop.\n *\n * @memberof Chartist.Base\n * @param {String} event Name of the event. Check the examples for supported events.\n * @param {Function} handler The handler function that will be called when an event with the given name was emitted. This function will receive a data argument which contains event data. See the example for more details.\n */\n function on(event, handler) {\n this.eventEmitter.addEventHandler(event, handler);\n return this;\n }\n\n /**\n * Use this function to un-register event handlers. If the handler function parameter is omitted all handlers for the given event will be un-registered.\n *\n * @memberof Chartist.Base\n * @param {String} event Name of the event for which a handler should be removed\n * @param {Function} [handler] The handler function that that was previously used to register a new event handler. This handler will be removed from the event handler list. If this parameter is omitted then all event handlers for the given event are removed from the list.\n */\n function off(event, handler) {\n this.eventEmitter.removeEventHandler(event, handler);\n return this;\n }\n\n function initialize() {\n // Add window resize listener that re-creates the chart\n window.addEventListener('resize', this.resizeListener);\n\n // Obtain current options based on matching media queries (if responsive options are given)\n // This will also register a listener that is re-creating the chart based on media changes\n this.optionsProvider = Chartist.optionsProvider(this.options, this.responsiveOptions, this.eventEmitter);\n // Register options change listener that will trigger a chart update\n this.eventEmitter.addEventHandler('optionsChanged', function() {\n this.update();\n }.bind(this));\n\n // Before the first chart creation we need to register us with all plugins that are configured\n // Initialize all relevant plugins with our chart object and the plugin options specified in the config\n if(this.options.plugins) {\n this.options.plugins.forEach(function(plugin) {\n if(plugin instanceof Array) {\n plugin[0](this, plugin[1]);\n } else {\n plugin(this);\n }\n }.bind(this));\n }\n\n // Event for data transformation that allows to manipulate the data before it gets rendered in the charts\n this.eventEmitter.emit('data', {\n type: 'initial',\n data: this.data\n });\n\n // Create the first chart\n this.createChart(this.optionsProvider.getCurrentOptions());\n\n // As chart is initialized from the event loop now we can reset our timeout reference\n // This is important if the chart gets initialized on the same element twice\n this.initializeTimeoutId = undefined;\n }\n\n /**\n * Constructor of chart base class.\n *\n * @param query\n * @param data\n * @param defaultOptions\n * @param options\n * @param responsiveOptions\n * @constructor\n */\n function Base(query, data, defaultOptions, options, responsiveOptions) {\n this.container = Chartist.querySelector(query);\n this.data = data || {};\n this.data.labels = this.data.labels || [];\n this.data.series = this.data.series || [];\n this.defaultOptions = defaultOptions;\n this.options = options;\n this.responsiveOptions = responsiveOptions;\n this.eventEmitter = Chartist.EventEmitter();\n this.supportsForeignObject = Chartist.Svg.isSupported('Extensibility');\n this.supportsAnimations = Chartist.Svg.isSupported('AnimationEventsAttribute');\n this.resizeListener = function resizeListener(){\n this.update();\n }.bind(this);\n\n if(this.container) {\n // If chartist was already initialized in this container we are detaching all event listeners first\n if(this.container.__chartist__) {\n this.container.__chartist__.detach();\n }\n\n this.container.__chartist__ = this;\n }\n\n // Using event loop for first draw to make it possible to register event listeners in the same call stack where\n // the chart was created.\n this.initializeTimeoutId = setTimeout(initialize.bind(this), 0);\n }\n\n // Creating the chart base class\n Chartist.Base = Chartist.Class.extend({\n constructor: Base,\n optionsProvider: undefined,\n container: undefined,\n svg: undefined,\n eventEmitter: undefined,\n createChart: function() {\n throw new Error('Base chart type can\\'t be instantiated!');\n },\n update: update,\n detach: detach,\n on: on,\n off: off,\n version: Chartist.version,\n supportsForeignObject: false\n });\n\n}(this || global, Chartist));\n;/**\n * Chartist SVG module for simple SVG DOM abstraction\n *\n * @module Chartist.Svg\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n var document = globalRoot.document;\n\n /**\n * Chartist.Svg creates a new SVG object wrapper with a starting element. You can use the wrapper to fluently create sub-elements and modify them.\n *\n * @memberof Chartist.Svg\n * @constructor\n * @param {String|Element} name The name of the SVG element to create or an SVG dom element which should be wrapped into Chartist.Svg\n * @param {Object} attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added.\n * @param {String} className This class or class list will be added to the SVG element\n * @param {Object} parent The parent SVG wrapper object where this newly created wrapper and it's element will be attached to as child\n * @param {Boolean} insertFirst If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element\n */\n function Svg(name, attributes, className, parent, insertFirst) {\n // If Svg is getting called with an SVG element we just return the wrapper\n if(name instanceof Element) {\n this._node = name;\n } else {\n this._node = document.createElementNS(Chartist.namespaces.svg, name);\n\n // If this is an SVG element created then custom namespace\n if(name === 'svg') {\n this.attr({\n 'xmlns:ct': Chartist.namespaces.ct\n });\n }\n }\n\n if(attributes) {\n this.attr(attributes);\n }\n\n if(className) {\n this.addClass(className);\n }\n\n if(parent) {\n if (insertFirst && parent._node.firstChild) {\n parent._node.insertBefore(this._node, parent._node.firstChild);\n } else {\n parent._node.appendChild(this._node);\n }\n }\n }\n\n /**\n * Set attributes on the current SVG element of the wrapper you're currently working on.\n *\n * @memberof Chartist.Svg\n * @param {Object|String} attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added. If this parameter is a String then the function is used as a getter and will return the attribute value.\n * @param {String} [ns] If specified, the attribute will be obtained using getAttributeNs. In order to write namepsaced attributes you can use the namespace:attribute notation within the attributes object.\n * @return {Object|String} The current wrapper object will be returned so it can be used for chaining or the attribute value if used as getter function.\n */\n function attr(attributes, ns) {\n if(typeof attributes === 'string') {\n if(ns) {\n return this._node.getAttributeNS(ns, attributes);\n } else {\n return this._node.getAttribute(attributes);\n }\n }\n\n Object.keys(attributes).forEach(function(key) {\n // If the attribute value is undefined we can skip this one\n if(attributes[key] === undefined) {\n return;\n }\n\n if (key.indexOf(':') !== -1) {\n var namespacedAttribute = key.split(':');\n this._node.setAttributeNS(Chartist.namespaces[namespacedAttribute[0]], key, attributes[key]);\n } else {\n this._node.setAttribute(key, attributes[key]);\n }\n }.bind(this));\n\n return this;\n }\n\n /**\n * Create a new SVG element whose wrapper object will be selected for further operations. This way you can also create nested groups easily.\n *\n * @memberof Chartist.Svg\n * @param {String} name The name of the SVG element that should be created as child element of the currently selected element wrapper\n * @param {Object} [attributes] An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added.\n * @param {String} [className] This class or class list will be added to the SVG element\n * @param {Boolean} [insertFirst] If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element\n * @return {Chartist.Svg} Returns a Chartist.Svg wrapper object that can be used to modify the containing SVG data\n */\n function elem(name, attributes, className, insertFirst) {\n return new Chartist.Svg(name, attributes, className, this, insertFirst);\n }\n\n /**\n * Returns the parent Chartist.SVG wrapper object\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} Returns a Chartist.Svg wrapper around the parent node of the current node. If the parent node is not existing or it's not an SVG node then this function will return null.\n */\n function parent() {\n return this._node.parentNode instanceof SVGElement ? new Chartist.Svg(this._node.parentNode) : null;\n }\n\n /**\n * This method returns a Chartist.Svg wrapper around the root SVG element of the current tree.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The root SVG element wrapped in a Chartist.Svg element\n */\n function root() {\n var node = this._node;\n while(node.nodeName !== 'svg') {\n node = node.parentNode;\n }\n return new Chartist.Svg(node);\n }\n\n /**\n * Find the first child SVG element of the current element that matches a CSS selector. The returned object is a Chartist.Svg wrapper.\n *\n * @memberof Chartist.Svg\n * @param {String} selector A CSS selector that is used to query for child SVG elements\n * @return {Chartist.Svg} The SVG wrapper for the element found or null if no element was found\n */\n function querySelector(selector) {\n var foundNode = this._node.querySelector(selector);\n return foundNode ? new Chartist.Svg(foundNode) : null;\n }\n\n /**\n * Find the all child SVG elements of the current element that match a CSS selector. The returned object is a Chartist.Svg.List wrapper.\n *\n * @memberof Chartist.Svg\n * @param {String} selector A CSS selector that is used to query for child SVG elements\n * @return {Chartist.Svg.List} The SVG wrapper list for the element found or null if no element was found\n */\n function querySelectorAll(selector) {\n var foundNodes = this._node.querySelectorAll(selector);\n return foundNodes.length ? new Chartist.Svg.List(foundNodes) : null;\n }\n\n /**\n * Returns the underlying SVG node for the current element.\n *\n * @memberof Chartist.Svg\n * @returns {Node}\n */\n function getNode() {\n return this._node;\n }\n\n /**\n * This method creates a foreignObject (see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject) that allows to embed HTML content into a SVG graphic. With the help of foreignObjects you can enable the usage of regular HTML elements inside of SVG where they are subject for SVG positioning and transformation but the Browser will use the HTML rendering capabilities for the containing DOM.\n *\n * @memberof Chartist.Svg\n * @param {Node|String} content The DOM Node, or HTML string that will be converted to a DOM Node, that is then placed into and wrapped by the foreignObject\n * @param {String} [attributes] An object with properties that will be added as attributes to the foreignObject element that is created. Attributes with undefined values will not be added.\n * @param {String} [className] This class or class list will be added to the SVG element\n * @param {Boolean} [insertFirst] Specifies if the foreignObject should be inserted as first child\n * @return {Chartist.Svg} New wrapper object that wraps the foreignObject element\n */\n function foreignObject(content, attributes, className, insertFirst) {\n // If content is string then we convert it to DOM\n // TODO: Handle case where content is not a string nor a DOM Node\n if(typeof content === 'string') {\n var container = document.createElement('div');\n container.innerHTML = content;\n content = container.firstChild;\n }\n\n // Adding namespace to content element\n content.setAttribute('xmlns', Chartist.namespaces.xmlns);\n\n // Creating the foreignObject without required extension attribute (as described here\n // http://www.w3.org/TR/SVG/extend.html#ForeignObjectElement)\n var fnObj = this.elem('foreignObject', attributes, className, insertFirst);\n\n // Add content to foreignObjectElement\n fnObj._node.appendChild(content);\n\n return fnObj;\n }\n\n /**\n * This method adds a new text element to the current Chartist.Svg wrapper.\n *\n * @memberof Chartist.Svg\n * @param {String} t The text that should be added to the text element that is created\n * @return {Chartist.Svg} The same wrapper object that was used to add the newly created element\n */\n function text(t) {\n this._node.appendChild(document.createTextNode(t));\n return this;\n }\n\n /**\n * This method will clear all child nodes of the current wrapper object.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The same wrapper object that got emptied\n */\n function empty() {\n while (this._node.firstChild) {\n this._node.removeChild(this._node.firstChild);\n }\n\n return this;\n }\n\n /**\n * This method will cause the current wrapper to remove itself from its parent wrapper. Use this method if you'd like to get rid of an element in a given DOM structure.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The parent wrapper object of the element that got removed\n */\n function remove() {\n this._node.parentNode.removeChild(this._node);\n return this.parent();\n }\n\n /**\n * This method will replace the element with a new element that can be created outside of the current DOM.\n *\n * @memberof Chartist.Svg\n * @param {Chartist.Svg} newElement The new Chartist.Svg object that will be used to replace the current wrapper object\n * @return {Chartist.Svg} The wrapper of the new element\n */\n function replace(newElement) {\n this._node.parentNode.replaceChild(newElement._node, this._node);\n return newElement;\n }\n\n /**\n * This method will append an element to the current element as a child.\n *\n * @memberof Chartist.Svg\n * @param {Chartist.Svg} element The Chartist.Svg element that should be added as a child\n * @param {Boolean} [insertFirst] Specifies if the element should be inserted as first child\n * @return {Chartist.Svg} The wrapper of the appended object\n */\n function append(element, insertFirst) {\n if(insertFirst && this._node.firstChild) {\n this._node.insertBefore(element._node, this._node.firstChild);\n } else {\n this._node.appendChild(element._node);\n }\n\n return this;\n }\n\n /**\n * Returns an array of class names that are attached to the current wrapper element. This method can not be chained further.\n *\n * @memberof Chartist.Svg\n * @return {Array} A list of classes or an empty array if there are no classes on the current element\n */\n function classes() {\n return this._node.getAttribute('class') ? this._node.getAttribute('class').trim().split(/\\s+/) : [];\n }\n\n /**\n * Adds one or a space separated list of classes to the current element and ensures the classes are only existing once.\n *\n * @memberof Chartist.Svg\n * @param {String} names A white space separated list of class names\n * @return {Chartist.Svg} The wrapper of the current element\n */\n function addClass(names) {\n this._node.setAttribute('class',\n this.classes(this._node)\n .concat(names.trim().split(/\\s+/))\n .filter(function(elem, pos, self) {\n return self.indexOf(elem) === pos;\n }).join(' ')\n );\n\n return this;\n }\n\n /**\n * Removes one or a space separated list of classes from the current element.\n *\n * @memberof Chartist.Svg\n * @param {String} names A white space separated list of class names\n * @return {Chartist.Svg} The wrapper of the current element\n */\n function removeClass(names) {\n var removedClasses = names.trim().split(/\\s+/);\n\n this._node.setAttribute('class', this.classes(this._node).filter(function(name) {\n return removedClasses.indexOf(name) === -1;\n }).join(' '));\n\n return this;\n }\n\n /**\n * Removes all classes from the current element.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The wrapper of the current element\n */\n function removeAllClasses() {\n this._node.setAttribute('class', '');\n\n return this;\n }\n\n /**\n * Get element height using `getBoundingClientRect`\n *\n * @memberof Chartist.Svg\n * @return {Number} The elements height in pixels\n */\n function height() {\n return this._node.getBoundingClientRect().height;\n }\n\n /**\n * Get element width using `getBoundingClientRect`\n *\n * @memberof Chartist.Core\n * @return {Number} The elements width in pixels\n */\n function width() {\n return this._node.getBoundingClientRect().width;\n }\n\n /**\n * The animate function lets you animate the current element with SMIL animations. You can add animations for multiple attributes at the same time by using an animation definition object. This object should contain SMIL animation attributes. Please refer to http://www.w3.org/TR/SVG/animate.html for a detailed specification about the available animation attributes. Additionally an easing property can be passed in the animation definition object. This can be a string with a name of an easing function in `Chartist.Svg.Easing` or an array with four numbers specifying a cubic Bézier curve.\n * **An animations object could look like this:**\n * ```javascript\n * element.animate({\n * opacity: {\n * dur: 1000,\n * from: 0,\n * to: 1\n * },\n * x1: {\n * dur: '1000ms',\n * from: 100,\n * to: 200,\n * easing: 'easeOutQuart'\n * },\n * y1: {\n * dur: '2s',\n * from: 0,\n * to: 100\n * }\n * });\n * ```\n * **Automatic unit conversion**\n * For the `dur` and the `begin` animate attribute you can also omit a unit by passing a number. The number will automatically be converted to milli seconds.\n * **Guided mode**\n * The default behavior of SMIL animations with offset using the `begin` attribute is that the attribute will keep it's original value until the animation starts. Mostly this behavior is not desired as you'd like to have your element attributes already initialized with the animation `from` value even before the animation starts. Also if you don't specify `fill=\"freeze\"` on an animate element or if you delete the animation after it's done (which is done in guided mode) the attribute will switch back to the initial value. This behavior is also not desired when performing simple one-time animations. For one-time animations you'd want to trigger animations immediately instead of relative to the document begin time. That's why in guided mode Chartist.Svg will also use the `begin` property to schedule a timeout and manually start the animation after the timeout. If you're using multiple SMIL definition objects for an attribute (in an array), guided mode will be disabled for this attribute, even if you explicitly enabled it.\n * If guided mode is enabled the following behavior is added:\n * - Before the animation starts (even when delayed with `begin`) the animated attribute will be set already to the `from` value of the animation\n * - `begin` is explicitly set to `indefinite` so it can be started manually without relying on document begin time (creation)\n * - The animate element will be forced to use `fill=\"freeze\"`\n * - The animation will be triggered with `beginElement()` in a timeout where `begin` of the definition object is interpreted in milli seconds. If no `begin` was specified the timeout is triggered immediately.\n * - After the animation the element attribute value will be set to the `to` value of the animation\n * - The animate element is deleted from the DOM\n *\n * @memberof Chartist.Svg\n * @param {Object} animations An animations object where the property keys are the attributes you'd like to animate. The properties should be objects again that contain the SMIL animation attributes (usually begin, dur, from, and to). The property begin and dur is auto converted (see Automatic unit conversion). You can also schedule multiple animations for the same attribute by passing an Array of SMIL definition objects. Attributes that contain an array of SMIL definition objects will not be executed in guided mode.\n * @param {Boolean} guided Specify if guided mode should be activated for this animation (see Guided mode). If not otherwise specified, guided mode will be activated.\n * @param {Object} eventEmitter If specified, this event emitter will be notified when an animation starts or ends.\n * @return {Chartist.Svg} The current element where the animation was added\n */\n function animate(animations, guided, eventEmitter) {\n if(guided === undefined) {\n guided = true;\n }\n\n Object.keys(animations).forEach(function createAnimateForAttributes(attribute) {\n\n function createAnimate(animationDefinition, guided) {\n var attributeProperties = {},\n animate,\n timeout,\n easing;\n\n // Check if an easing is specified in the definition object and delete it from the object as it will not\n // be part of the animate element attributes.\n if(animationDefinition.easing) {\n // If already an easing Bézier curve array we take it or we lookup a easing array in the Easing object\n easing = animationDefinition.easing instanceof Array ?\n animationDefinition.easing :\n Chartist.Svg.Easing[animationDefinition.easing];\n delete animationDefinition.easing;\n }\n\n // If numeric dur or begin was provided we assume milli seconds\n animationDefinition.begin = Chartist.ensureUnit(animationDefinition.begin, 'ms');\n animationDefinition.dur = Chartist.ensureUnit(animationDefinition.dur, 'ms');\n\n if(easing) {\n animationDefinition.calcMode = 'spline';\n animationDefinition.keySplines = easing.join(' ');\n animationDefinition.keyTimes = '0;1';\n }\n\n // Adding \"fill: freeze\" if we are in guided mode and set initial attribute values\n if(guided) {\n animationDefinition.fill = 'freeze';\n // Animated property on our element should already be set to the animation from value in guided mode\n attributeProperties[attribute] = animationDefinition.from;\n this.attr(attributeProperties);\n\n // In guided mode we also set begin to indefinite so we can trigger the start manually and put the begin\n // which needs to be in ms aside\n timeout = Chartist.quantity(animationDefinition.begin || 0).value;\n animationDefinition.begin = 'indefinite';\n }\n\n animate = this.elem('animate', Chartist.extend({\n attributeName: attribute\n }, animationDefinition));\n\n if(guided) {\n // If guided we take the value that was put aside in timeout and trigger the animation manually with a timeout\n setTimeout(function() {\n // If beginElement fails we set the animated attribute to the end position and remove the animate element\n // This happens if the SMIL ElementTimeControl interface is not supported or any other problems occured in\n // the browser. (Currently FF 34 does not support animate elements in foreignObjects)\n try {\n animate._node.beginElement();\n } catch(err) {\n // Set animated attribute to current animated value\n attributeProperties[attribute] = animationDefinition.to;\n this.attr(attributeProperties);\n // Remove the animate element as it's no longer required\n animate.remove();\n }\n }.bind(this), timeout);\n }\n\n if(eventEmitter) {\n animate._node.addEventListener('beginEvent', function handleBeginEvent() {\n eventEmitter.emit('animationBegin', {\n element: this,\n animate: animate._node,\n params: animationDefinition\n });\n }.bind(this));\n }\n\n animate._node.addEventListener('endEvent', function handleEndEvent() {\n if(eventEmitter) {\n eventEmitter.emit('animationEnd', {\n element: this,\n animate: animate._node,\n params: animationDefinition\n });\n }\n\n if(guided) {\n // Set animated attribute to current animated value\n attributeProperties[attribute] = animationDefinition.to;\n this.attr(attributeProperties);\n // Remove the animate element as it's no longer required\n animate.remove();\n }\n }.bind(this));\n }\n\n // If current attribute is an array of definition objects we create an animate for each and disable guided mode\n if(animations[attribute] instanceof Array) {\n animations[attribute].forEach(function(animationDefinition) {\n createAnimate.bind(this)(animationDefinition, false);\n }.bind(this));\n } else {\n createAnimate.bind(this)(animations[attribute], guided);\n }\n\n }.bind(this));\n\n return this;\n }\n\n Chartist.Svg = Chartist.Class.extend({\n constructor: Svg,\n attr: attr,\n elem: elem,\n parent: parent,\n root: root,\n querySelector: querySelector,\n querySelectorAll: querySelectorAll,\n getNode: getNode,\n foreignObject: foreignObject,\n text: text,\n empty: empty,\n remove: remove,\n replace: replace,\n append: append,\n classes: classes,\n addClass: addClass,\n removeClass: removeClass,\n removeAllClasses: removeAllClasses,\n height: height,\n width: width,\n animate: animate\n });\n\n /**\n * This method checks for support of a given SVG feature like Extensibility, SVG-animation or the like. Check http://www.w3.org/TR/SVG11/feature for a detailed list.\n *\n * @memberof Chartist.Svg\n * @param {String} feature The SVG 1.1 feature that should be checked for support.\n * @return {Boolean} True of false if the feature is supported or not\n */\n Chartist.Svg.isSupported = function(feature) {\n return document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#' + feature, '1.1');\n };\n\n /**\n * This Object contains some standard easing cubic bezier curves. Then can be used with their name in the `Chartist.Svg.animate`. You can also extend the list and use your own name in the `animate` function. Click the show code button to see the available bezier functions.\n *\n * @memberof Chartist.Svg\n */\n var easingCubicBeziers = {\n easeInSine: [0.47, 0, 0.745, 0.715],\n easeOutSine: [0.39, 0.575, 0.565, 1],\n easeInOutSine: [0.445, 0.05, 0.55, 0.95],\n easeInQuad: [0.55, 0.085, 0.68, 0.53],\n easeOutQuad: [0.25, 0.46, 0.45, 0.94],\n easeInOutQuad: [0.455, 0.03, 0.515, 0.955],\n easeInCubic: [0.55, 0.055, 0.675, 0.19],\n easeOutCubic: [0.215, 0.61, 0.355, 1],\n easeInOutCubic: [0.645, 0.045, 0.355, 1],\n easeInQuart: [0.895, 0.03, 0.685, 0.22],\n easeOutQuart: [0.165, 0.84, 0.44, 1],\n easeInOutQuart: [0.77, 0, 0.175, 1],\n easeInQuint: [0.755, 0.05, 0.855, 0.06],\n easeOutQuint: [0.23, 1, 0.32, 1],\n easeInOutQuint: [0.86, 0, 0.07, 1],\n easeInExpo: [0.95, 0.05, 0.795, 0.035],\n easeOutExpo: [0.19, 1, 0.22, 1],\n easeInOutExpo: [1, 0, 0, 1],\n easeInCirc: [0.6, 0.04, 0.98, 0.335],\n easeOutCirc: [0.075, 0.82, 0.165, 1],\n easeInOutCirc: [0.785, 0.135, 0.15, 0.86],\n easeInBack: [0.6, -0.28, 0.735, 0.045],\n easeOutBack: [0.175, 0.885, 0.32, 1.275],\n easeInOutBack: [0.68, -0.55, 0.265, 1.55]\n };\n\n Chartist.Svg.Easing = easingCubicBeziers;\n\n /**\n * This helper class is to wrap multiple `Chartist.Svg` elements into a list where you can call the `Chartist.Svg` functions on all elements in the list with one call. This is helpful when you'd like to perform calls with `Chartist.Svg` on multiple elements.\n * An instance of this class is also returned by `Chartist.Svg.querySelectorAll`.\n *\n * @memberof Chartist.Svg\n * @param {Array|NodeList} nodeList An Array of SVG DOM nodes or a SVG DOM NodeList (as returned by document.querySelectorAll)\n * @constructor\n */\n function SvgList(nodeList) {\n var list = this;\n\n this.svgElements = [];\n for(var i = 0; i < nodeList.length; i++) {\n this.svgElements.push(new Chartist.Svg(nodeList[i]));\n }\n\n // Add delegation methods for Chartist.Svg\n Object.keys(Chartist.Svg.prototype).filter(function(prototypeProperty) {\n return ['constructor',\n 'parent',\n 'querySelector',\n 'querySelectorAll',\n 'replace',\n 'append',\n 'classes',\n 'height',\n 'width'].indexOf(prototypeProperty) === -1;\n }).forEach(function(prototypeProperty) {\n list[prototypeProperty] = function() {\n var args = Array.prototype.slice.call(arguments, 0);\n list.svgElements.forEach(function(element) {\n Chartist.Svg.prototype[prototypeProperty].apply(element, args);\n });\n return list;\n };\n });\n }\n\n Chartist.Svg.List = Chartist.Class.extend({\n constructor: SvgList\n });\n}(this || global, Chartist));\n;/**\n * Chartist SVG path module for SVG path description creation and modification.\n *\n * @module Chartist.Svg.Path\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n /**\n * Contains the descriptors of supported element types in a SVG path. Currently only move, line and curve are supported.\n *\n * @memberof Chartist.Svg.Path\n * @type {Object}\n */\n var elementDescriptions = {\n m: ['x', 'y'],\n l: ['x', 'y'],\n c: ['x1', 'y1', 'x2', 'y2', 'x', 'y'],\n a: ['rx', 'ry', 'xAr', 'lAf', 'sf', 'x', 'y']\n };\n\n /**\n * Default options for newly created SVG path objects.\n *\n * @memberof Chartist.Svg.Path\n * @type {Object}\n */\n var defaultOptions = {\n // The accuracy in digit count after the decimal point. This will be used to round numbers in the SVG path. If this option is set to false then no rounding will be performed.\n accuracy: 3\n };\n\n function element(command, params, pathElements, pos, relative, data) {\n var pathElement = Chartist.extend({\n command: relative ? command.toLowerCase() : command.toUpperCase()\n }, params, data ? { data: data } : {} );\n\n pathElements.splice(pos, 0, pathElement);\n }\n\n function forEachParam(pathElements, cb) {\n pathElements.forEach(function(pathElement, pathElementIndex) {\n elementDescriptions[pathElement.command.toLowerCase()].forEach(function(paramName, paramIndex) {\n cb(pathElement, paramName, pathElementIndex, paramIndex, pathElements);\n });\n });\n }\n\n /**\n * Used to construct a new path object.\n *\n * @memberof Chartist.Svg.Path\n * @param {Boolean} close If set to true then this path will be closed when stringified (with a Z at the end)\n * @param {Object} options Options object that overrides the default objects. See default options for more details.\n * @constructor\n */\n function SvgPath(close, options) {\n this.pathElements = [];\n this.pos = 0;\n this.close = close;\n this.options = Chartist.extend({}, defaultOptions, options);\n }\n\n /**\n * Gets or sets the current position (cursor) inside of the path. You can move around the cursor freely but limited to 0 or the count of existing elements. All modifications with element functions will insert new elements at the position of this cursor.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} [pos] If a number is passed then the cursor is set to this position in the path element array.\n * @return {Chartist.Svg.Path|Number} If the position parameter was passed then the return value will be the path object for easy call chaining. If no position parameter was passed then the current position is returned.\n */\n function position(pos) {\n if(pos !== undefined) {\n this.pos = Math.max(0, Math.min(this.pathElements.length, pos));\n return this;\n } else {\n return this.pos;\n }\n }\n\n /**\n * Removes elements from the path starting at the current position.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} count Number of path elements that should be removed from the current position.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function remove(count) {\n this.pathElements.splice(this.pos, count);\n return this;\n }\n\n /**\n * Use this function to add a new move SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The x coordinate for the move element.\n * @param {Number} y The y coordinate for the move element.\n * @param {Boolean} [relative] If set to true the move element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function move(x, y, relative, data) {\n element('M', {\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Use this function to add a new line SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The x coordinate for the line element.\n * @param {Number} y The y coordinate for the line element.\n * @param {Boolean} [relative] If set to true the line element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function line(x, y, relative, data) {\n element('L', {\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Use this function to add a new curve SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x1 The x coordinate for the first control point of the bezier curve.\n * @param {Number} y1 The y coordinate for the first control point of the bezier curve.\n * @param {Number} x2 The x coordinate for the second control point of the bezier curve.\n * @param {Number} y2 The y coordinate for the second control point of the bezier curve.\n * @param {Number} x The x coordinate for the target point of the curve element.\n * @param {Number} y The y coordinate for the target point of the curve element.\n * @param {Boolean} [relative] If set to true the curve element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function curve(x1, y1, x2, y2, x, y, relative, data) {\n element('C', {\n x1: +x1,\n y1: +y1,\n x2: +x2,\n y2: +y2,\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Use this function to add a new non-bezier curve SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} rx The radius to be used for the x-axis of the arc.\n * @param {Number} ry The radius to be used for the y-axis of the arc.\n * @param {Number} xAr Defines the orientation of the arc\n * @param {Number} lAf Large arc flag\n * @param {Number} sf Sweep flag\n * @param {Number} x The x coordinate for the target point of the curve element.\n * @param {Number} y The y coordinate for the target point of the curve element.\n * @param {Boolean} [relative] If set to true the curve element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function arc(rx, ry, xAr, lAf, sf, x, y, relative, data) {\n element('A', {\n rx: +rx,\n ry: +ry,\n xAr: +xAr,\n lAf: +lAf,\n sf: +sf,\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Parses an SVG path seen in the d attribute of path elements, and inserts the parsed elements into the existing path object at the current cursor position. Any closing path indicators (Z at the end of the path) will be ignored by the parser as this is provided by the close option in the options of the path object.\n *\n * @memberof Chartist.Svg.Path\n * @param {String} path Any SVG path that contains move (m), line (l) or curve (c) components.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function parse(path) {\n // Parsing the SVG path string into an array of arrays [['M', '10', '10'], ['L', '100', '100']]\n var chunks = path.replace(/([A-Za-z])([0-9])/g, '$1 $2')\n .replace(/([0-9])([A-Za-z])/g, '$1 $2')\n .split(/[\\s,]+/)\n .reduce(function(result, element) {\n if(element.match(/[A-Za-z]/)) {\n result.push([]);\n }\n\n result[result.length - 1].push(element);\n return result;\n }, []);\n\n // If this is a closed path we remove the Z at the end because this is determined by the close option\n if(chunks[chunks.length - 1][0].toUpperCase() === 'Z') {\n chunks.pop();\n }\n\n // Using svgPathElementDescriptions to map raw path arrays into objects that contain the command and the parameters\n // For example {command: 'M', x: '10', y: '10'}\n var elements = chunks.map(function(chunk) {\n var command = chunk.shift(),\n description = elementDescriptions[command.toLowerCase()];\n\n return Chartist.extend({\n command: command\n }, description.reduce(function(result, paramName, index) {\n result[paramName] = +chunk[index];\n return result;\n }, {}));\n });\n\n // Preparing a splice call with the elements array as var arg params and insert the parsed elements at the current position\n var spliceArgs = [this.pos, 0];\n Array.prototype.push.apply(spliceArgs, elements);\n Array.prototype.splice.apply(this.pathElements, spliceArgs);\n // Increase the internal position by the element count\n this.pos += elements.length;\n\n return this;\n }\n\n /**\n * This function renders to current SVG path object into a final SVG string that can be used in the d attribute of SVG path elements. It uses the accuracy option to round big decimals. If the close parameter was set in the constructor of this path object then a path closing Z will be appended to the output string.\n *\n * @memberof Chartist.Svg.Path\n * @return {String}\n */\n function stringify() {\n var accuracyMultiplier = Math.pow(10, this.options.accuracy);\n\n return this.pathElements.reduce(function(path, pathElement) {\n var params = elementDescriptions[pathElement.command.toLowerCase()].map(function(paramName) {\n return this.options.accuracy ?\n (Math.round(pathElement[paramName] * accuracyMultiplier) / accuracyMultiplier) :\n pathElement[paramName];\n }.bind(this));\n\n return path + pathElement.command + params.join(',');\n }.bind(this), '') + (this.close ? 'Z' : '');\n }\n\n /**\n * Scales all elements in the current SVG path object. There is an individual parameter for each coordinate. Scaling will also be done for control points of curves, affecting the given coordinate.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The number which will be used to scale the x, x1 and x2 of all path elements.\n * @param {Number} y The number which will be used to scale the y, y1 and y2 of all path elements.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function scale(x, y) {\n forEachParam(this.pathElements, function(pathElement, paramName) {\n pathElement[paramName] *= paramName[0] === 'x' ? x : y;\n });\n return this;\n }\n\n /**\n * Translates all elements in the current SVG path object. The translation is relative and there is an individual parameter for each coordinate. Translation will also be done for control points of curves, affecting the given coordinate.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The number which will be used to translate the x, x1 and x2 of all path elements.\n * @param {Number} y The number which will be used to translate the y, y1 and y2 of all path elements.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function translate(x, y) {\n forEachParam(this.pathElements, function(pathElement, paramName) {\n pathElement[paramName] += paramName[0] === 'x' ? x : y;\n });\n return this;\n }\n\n /**\n * This function will run over all existing path elements and then loop over their attributes. The callback function will be called for every path element attribute that exists in the current path.\n * The method signature of the callback function looks like this:\n * ```javascript\n * function(pathElement, paramName, pathElementIndex, paramIndex, pathElements)\n * ```\n * If something else than undefined is returned by the callback function, this value will be used to replace the old value. This allows you to build custom transformations of path objects that can't be achieved using the basic transformation functions scale and translate.\n *\n * @memberof Chartist.Svg.Path\n * @param {Function} transformFnc The callback function for the transformation. Check the signature in the function description.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function transform(transformFnc) {\n forEachParam(this.pathElements, function(pathElement, paramName, pathElementIndex, paramIndex, pathElements) {\n var transformed = transformFnc(pathElement, paramName, pathElementIndex, paramIndex, pathElements);\n if(transformed || transformed === 0) {\n pathElement[paramName] = transformed;\n }\n });\n return this;\n }\n\n /**\n * This function clones a whole path object with all its properties. This is a deep clone and path element objects will also be cloned.\n *\n * @memberof Chartist.Svg.Path\n * @param {Boolean} [close] Optional option to set the new cloned path to closed. If not specified or false, the original path close option will be used.\n * @return {Chartist.Svg.Path}\n */\n function clone(close) {\n var c = new Chartist.Svg.Path(close || this.close);\n c.pos = this.pos;\n c.pathElements = this.pathElements.slice().map(function cloneElements(pathElement) {\n return Chartist.extend({}, pathElement);\n });\n c.options = Chartist.extend({}, this.options);\n return c;\n }\n\n /**\n * Split a Svg.Path object by a specific command in the path chain. The path chain will be split and an array of newly created paths objects will be returned. This is useful if you'd like to split an SVG path by it's move commands, for example, in order to isolate chunks of drawings.\n *\n * @memberof Chartist.Svg.Path\n * @param {String} command The command you'd like to use to split the path\n * @return {Array}\n */\n function splitByCommand(command) {\n var split = [\n new Chartist.Svg.Path()\n ];\n\n this.pathElements.forEach(function(pathElement) {\n if(pathElement.command === command.toUpperCase() && split[split.length - 1].pathElements.length !== 0) {\n split.push(new Chartist.Svg.Path());\n }\n\n split[split.length - 1].pathElements.push(pathElement);\n });\n\n return split;\n }\n\n /**\n * This static function on `Chartist.Svg.Path` is joining multiple paths together into one paths.\n *\n * @memberof Chartist.Svg.Path\n * @param {Array} paths A list of paths to be joined together. The order is important.\n * @param {boolean} close If the newly created path should be a closed path\n * @param {Object} options Path options for the newly created path.\n * @return {Chartist.Svg.Path}\n */\n\n function join(paths, close, options) {\n var joinedPath = new Chartist.Svg.Path(close, options);\n for(var i = 0; i < paths.length; i++) {\n var path = paths[i];\n for(var j = 0; j < path.pathElements.length; j++) {\n joinedPath.pathElements.push(path.pathElements[j]);\n }\n }\n return joinedPath;\n }\n\n Chartist.Svg.Path = Chartist.Class.extend({\n constructor: SvgPath,\n position: position,\n remove: remove,\n move: move,\n line: line,\n curve: curve,\n arc: arc,\n scale: scale,\n translate: translate,\n transform: transform,\n parse: parse,\n stringify: stringify,\n clone: clone,\n splitByCommand: splitByCommand\n });\n\n Chartist.Svg.Path.elementDescriptions = elementDescriptions;\n Chartist.Svg.Path.join = join;\n}(this || global, Chartist));\n;/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n var axisUnits = {\n x: {\n pos: 'x',\n len: 'width',\n dir: 'horizontal',\n rectStart: 'x1',\n rectEnd: 'x2',\n rectOffset: 'y2'\n },\n y: {\n pos: 'y',\n len: 'height',\n dir: 'vertical',\n rectStart: 'y2',\n rectEnd: 'y1',\n rectOffset: 'x1'\n }\n };\n\n function Axis(units, chartRect, ticks, options) {\n this.units = units;\n this.counterUnits = units === axisUnits.x ? axisUnits.y : axisUnits.x;\n this.chartRect = chartRect;\n this.axisLength = chartRect[units.rectEnd] - chartRect[units.rectStart];\n this.gridOffset = chartRect[units.rectOffset];\n this.ticks = ticks;\n this.options = options;\n }\n\n function createGridAndLabels(gridGroup, labelGroup, useForeignObject, chartOptions, eventEmitter) {\n var axisOptions = chartOptions['axis' + this.units.pos.toUpperCase()];\n var projectedValues = this.ticks.map(this.projectValue.bind(this));\n var labelValues = this.ticks.map(axisOptions.labelInterpolationFnc);\n\n projectedValues.forEach(function(projectedValue, index) {\n var labelOffset = {\n x: 0,\n y: 0\n };\n\n // TODO: Find better solution for solving this problem\n // Calculate how much space we have available for the label\n var labelLength;\n if(projectedValues[index + 1]) {\n // If we still have one label ahead, we can calculate the distance to the next tick / label\n labelLength = projectedValues[index + 1] - projectedValue;\n } else {\n // If we don't have a label ahead and we have only two labels in total, we just take the remaining distance to\n // on the whole axis length. We limit that to a minimum of 30 pixel, so that labels close to the border will\n // still be visible inside of the chart padding.\n labelLength = Math.max(this.axisLength - projectedValue, 30);\n }\n\n // Skip grid lines and labels where interpolated label values are falsey (execpt for 0)\n if(Chartist.isFalseyButZero(labelValues[index]) && labelValues[index] !== '') {\n return;\n }\n\n // Transform to global coordinates using the chartRect\n // We also need to set the label offset for the createLabel function\n if(this.units.pos === 'x') {\n projectedValue = this.chartRect.x1 + projectedValue;\n labelOffset.x = chartOptions.axisX.labelOffset.x;\n\n // If the labels should be positioned in start position (top side for vertical axis) we need to set a\n // different offset as for positioned with end (bottom)\n if(chartOptions.axisX.position === 'start') {\n labelOffset.y = this.chartRect.padding.top + chartOptions.axisX.labelOffset.y + (useForeignObject ? 5 : 20);\n } else {\n labelOffset.y = this.chartRect.y1 + chartOptions.axisX.labelOffset.y + (useForeignObject ? 5 : 20);\n }\n } else {\n projectedValue = this.chartRect.y1 - projectedValue;\n labelOffset.y = chartOptions.axisY.labelOffset.y - (useForeignObject ? labelLength : 0);\n\n // If the labels should be positioned in start position (left side for horizontal axis) we need to set a\n // different offset as for positioned with end (right side)\n if(chartOptions.axisY.position === 'start') {\n labelOffset.x = useForeignObject ? this.chartRect.padding.left + chartOptions.axisY.labelOffset.x : this.chartRect.x1 - 10;\n } else {\n labelOffset.x = this.chartRect.x2 + chartOptions.axisY.labelOffset.x + 10;\n }\n }\n\n if(axisOptions.showGrid) {\n Chartist.createGrid(projectedValue, index, this, this.gridOffset, this.chartRect[this.counterUnits.len](), gridGroup, [\n chartOptions.classNames.grid,\n chartOptions.classNames[this.units.dir]\n ], eventEmitter);\n }\n\n if(axisOptions.showLabel) {\n Chartist.createLabel(projectedValue, labelLength, index, labelValues, this, axisOptions.offset, labelOffset, labelGroup, [\n chartOptions.classNames.label,\n chartOptions.classNames[this.units.dir],\n (axisOptions.position === 'start' ? chartOptions.classNames[axisOptions.position] : chartOptions.classNames['end'])\n ], useForeignObject, eventEmitter);\n }\n }.bind(this));\n }\n\n Chartist.Axis = Chartist.Class.extend({\n constructor: Axis,\n createGridAndLabels: createGridAndLabels,\n projectValue: function(value, index, data) {\n throw new Error('Base axis can\\'t be instantiated!');\n }\n });\n\n Chartist.Axis.units = axisUnits;\n\n}(this || global, Chartist));\n;/**\n * The auto scale axis uses standard linear scale projection of values along an axis. It uses order of magnitude to find a scale automatically and evaluates the available space in order to find the perfect amount of ticks for your chart.\n * **Options**\n * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings.\n * ```javascript\n * var options = {\n * // If high is specified then the axis will display values explicitly up to this value and the computed maximum from the data is ignored\n * high: 100,\n * // If low is specified then the axis will display values explicitly down to this value and the computed minimum from the data is ignored\n * low: 0,\n * // This option will be used when finding the right scale division settings. The amount of ticks on the scale will be determined so that as many ticks as possible will be displayed, while not violating this minimum required space (in pixel).\n * scaleMinSpace: 20,\n * // Can be set to true or false. If set to true, the scale will be generated with whole numbers only.\n * onlyInteger: true,\n * // The reference value can be used to make sure that this value will always be on the chart. This is especially useful on bipolar charts where the bipolar center always needs to be part of the chart.\n * referenceValue: 5\n * };\n * ```\n *\n * @module Chartist.AutoScaleAxis\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n function AutoScaleAxis(axisUnit, data, chartRect, options) {\n // Usually we calculate highLow based on the data but this can be overriden by a highLow object in the options\n var highLow = options.highLow || Chartist.getHighLow(data, options, axisUnit.pos);\n this.bounds = Chartist.getBounds(chartRect[axisUnit.rectEnd] - chartRect[axisUnit.rectStart], highLow, options.scaleMinSpace || 20, options.onlyInteger);\n this.range = {\n min: this.bounds.min,\n max: this.bounds.max\n };\n\n Chartist.AutoScaleAxis.super.constructor.call(this,\n axisUnit,\n chartRect,\n this.bounds.values,\n options);\n }\n\n function projectValue(value) {\n return this.axisLength * (+Chartist.getMultiValue(value, this.units.pos) - this.bounds.min) / this.bounds.range;\n }\n\n Chartist.AutoScaleAxis = Chartist.Axis.extend({\n constructor: AutoScaleAxis,\n projectValue: projectValue\n });\n\n}(this || global, Chartist));\n;/**\n * The fixed scale axis uses standard linear projection of values along an axis. It makes use of a divisor option to divide the range provided from the minimum and maximum value or the options high and low that will override the computed minimum and maximum.\n * **Options**\n * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings.\n * ```javascript\n * var options = {\n * // If high is specified then the axis will display values explicitly up to this value and the computed maximum from the data is ignored\n * high: 100,\n * // If low is specified then the axis will display values explicitly down to this value and the computed minimum from the data is ignored\n * low: 0,\n * // If specified then the value range determined from minimum to maximum (or low and high) will be divided by this number and ticks will be generated at those division points. The default divisor is 1.\n * divisor: 4,\n * // If ticks is explicitly set, then the axis will not compute the ticks with the divisor, but directly use the data in ticks to determine at what points on the axis a tick need to be generated.\n * ticks: [1, 10, 20, 30]\n * };\n * ```\n *\n * @module Chartist.FixedScaleAxis\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n function FixedScaleAxis(axisUnit, data, chartRect, options) {\n var highLow = options.highLow || Chartist.getHighLow(data, options, axisUnit.pos);\n this.divisor = options.divisor || 1;\n this.ticks = options.ticks || Chartist.times(this.divisor).map(function(value, index) {\n return highLow.low + (highLow.high - highLow.low) / this.divisor * index;\n }.bind(this));\n this.ticks.sort(function(a, b) {\n return a - b;\n });\n this.range = {\n min: highLow.low,\n max: highLow.high\n };\n\n Chartist.FixedScaleAxis.super.constructor.call(this,\n axisUnit,\n chartRect,\n this.ticks,\n options);\n\n this.stepLength = this.axisLength / this.divisor;\n }\n\n function projectValue(value) {\n return this.axisLength * (+Chartist.getMultiValue(value, this.units.pos) - this.range.min) / (this.range.max - this.range.min);\n }\n\n Chartist.FixedScaleAxis = Chartist.Axis.extend({\n constructor: FixedScaleAxis,\n projectValue: projectValue\n });\n\n}(this || global, Chartist));\n;/**\n * The step axis for step based charts like bar chart or step based line charts. It uses a fixed amount of ticks that will be equally distributed across the whole axis length. The projection is done using the index of the data value rather than the value itself and therefore it's only useful for distribution purpose.\n * **Options**\n * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings.\n * ```javascript\n * var options = {\n * // Ticks to be used to distribute across the axis length. As this axis type relies on the index of the value rather than the value, arbitrary data that can be converted to a string can be used as ticks.\n * ticks: ['One', 'Two', 'Three'],\n * // If set to true the full width will be used to distribute the values where the last value will be at the maximum of the axis length. If false the spaces between the ticks will be evenly distributed instead.\n * stretch: true\n * };\n * ```\n *\n * @module Chartist.StepAxis\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n function StepAxis(axisUnit, data, chartRect, options) {\n Chartist.StepAxis.super.constructor.call(this,\n axisUnit,\n chartRect,\n options.ticks,\n options);\n\n var calc = Math.max(1, options.ticks.length - (options.stretch ? 1 : 0));\n this.stepLength = this.axisLength / calc;\n }\n\n function projectValue(value, index) {\n return this.stepLength * index;\n }\n\n Chartist.StepAxis = Chartist.Axis.extend({\n constructor: StepAxis,\n projectValue: projectValue\n });\n\n}(this || global, Chartist));\n;/**\n * The Chartist line chart can be used to draw Line or Scatter charts. If used in the browser you can access the global `Chartist` namespace where you find the `Line` function as a main entry point.\n *\n * For examples on how to use the line chart please check the examples of the `Chartist.Line` method.\n *\n * @module Chartist.Line\n */\n/* global Chartist */\n(function(globalRoot, Chartist){\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * Default options in line charts. Expand the code view to see a detailed list of options with comments.\n *\n * @memberof Chartist.Line\n */\n var defaultOptions = {\n // Options for X-Axis\n axisX: {\n // The offset of the labels to the chart area\n offset: 30,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'end',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // Set the axis type to be used to project values on this axis. If not defined, Chartist.StepAxis will be used for the X-Axis, where the ticks option will be set to the labels in the data and the stretch option will be set to the global fullWidth option. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here.\n type: undefined\n },\n // Options for Y-Axis\n axisY: {\n // The offset of the labels to the chart area\n offset: 40,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'start',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // Set the axis type to be used to project values on this axis. If not defined, Chartist.AutoScaleAxis will be used for the Y-Axis, where the high and low options will be set to the global high and low options. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here.\n type: undefined,\n // This value specifies the minimum height in pixel of the scale steps\n scaleMinSpace: 20,\n // Use only integer values (whole numbers) for the scale steps\n onlyInteger: false\n },\n // Specify a fixed width for the chart as a string (i.e. '100px' or '50%')\n width: undefined,\n // Specify a fixed height for the chart as a string (i.e. '100px' or '50%')\n height: undefined,\n // If the line should be drawn or not\n showLine: true,\n // If dots should be drawn or not\n showPoint: true,\n // If the line chart should draw an area\n showArea: false,\n // The base for the area chart that will be used to close the area shape (is normally 0)\n areaBase: 0,\n // Specify if the lines should be smoothed. This value can be true or false where true will result in smoothing using the default smoothing interpolation function Chartist.Interpolation.cardinal and false results in Chartist.Interpolation.none. You can also choose other smoothing / interpolation functions available in the Chartist.Interpolation module, or write your own interpolation function. Check the examples for a brief description.\n lineSmooth: true,\n // If the line chart should add a background fill to the .ct-grids group.\n showGridBackground: false,\n // Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value\n low: undefined,\n // Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value\n high: undefined,\n // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5}\n chartPadding: {\n top: 15,\n right: 15,\n bottom: 5,\n left: 10\n },\n // When set to true, the last grid line on the x-axis is not drawn and the chart elements will expand to the full available width of the chart. For the last label to be drawn correctly you might need to add chart padding or offset the last label with a draw event handler.\n fullWidth: false,\n // If true the whole data is reversed including labels, the series order as well as the whole series data arrays.\n reverseData: false,\n // Override the class names that get used to generate the SVG structure of the chart\n classNames: {\n chart: 'ct-chart-line',\n label: 'ct-label',\n labelGroup: 'ct-labels',\n series: 'ct-series',\n line: 'ct-line',\n point: 'ct-point',\n area: 'ct-area',\n grid: 'ct-grid',\n gridGroup: 'ct-grids',\n gridBackground: 'ct-grid-background',\n vertical: 'ct-vertical',\n horizontal: 'ct-horizontal',\n start: 'ct-start',\n end: 'ct-end'\n }\n };\n\n /**\n * Creates a new chart\n *\n */\n function createChart(options) {\n var data = Chartist.normalizeData(this.data, options.reverseData, true);\n\n // Create new svg object\n this.svg = Chartist.createSvg(this.container, options.width, options.height, options.classNames.chart);\n // Create groups for labels, grid and series\n var gridGroup = this.svg.elem('g').addClass(options.classNames.gridGroup);\n var seriesGroup = this.svg.elem('g');\n var labelGroup = this.svg.elem('g').addClass(options.classNames.labelGroup);\n\n var chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding);\n var axisX, axisY;\n\n if(options.axisX.type === undefined) {\n axisX = new Chartist.StepAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, {\n ticks: data.normalized.labels,\n stretch: options.fullWidth\n }));\n } else {\n axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, options.axisX);\n }\n\n if(options.axisY.type === undefined) {\n axisY = new Chartist.AutoScaleAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, {\n high: Chartist.isNumeric(options.high) ? options.high : options.axisY.high,\n low: Chartist.isNumeric(options.low) ? options.low : options.axisY.low\n }));\n } else {\n axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, options.axisY);\n }\n\n axisX.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n axisY.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n\n if (options.showGridBackground) {\n Chartist.createGridBackground(gridGroup, chartRect, options.classNames.gridBackground, this.eventEmitter);\n }\n\n // Draw the series\n data.raw.series.forEach(function(series, seriesIndex) {\n var seriesElement = seriesGroup.elem('g');\n\n // Write attributes to series group element. If series name or meta is undefined the attributes will not be written\n seriesElement.attr({\n 'ct:series-name': series.name,\n 'ct:meta': Chartist.serialize(series.meta)\n });\n\n // Use series class from series data or if not set generate one\n seriesElement.addClass([\n options.classNames.series,\n (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(seriesIndex))\n ].join(' '));\n\n var pathCoordinates = [],\n pathData = [];\n\n data.normalized.series[seriesIndex].forEach(function(value, valueIndex) {\n var p = {\n x: chartRect.x1 + axisX.projectValue(value, valueIndex, data.normalized.series[seriesIndex]),\n y: chartRect.y1 - axisY.projectValue(value, valueIndex, data.normalized.series[seriesIndex])\n };\n pathCoordinates.push(p.x, p.y);\n pathData.push({\n value: value,\n valueIndex: valueIndex,\n meta: Chartist.getMetaData(series, valueIndex)\n });\n }.bind(this));\n\n var seriesOptions = {\n lineSmooth: Chartist.getSeriesOption(series, options, 'lineSmooth'),\n showPoint: Chartist.getSeriesOption(series, options, 'showPoint'),\n showLine: Chartist.getSeriesOption(series, options, 'showLine'),\n showArea: Chartist.getSeriesOption(series, options, 'showArea'),\n areaBase: Chartist.getSeriesOption(series, options, 'areaBase')\n };\n\n var smoothing = typeof seriesOptions.lineSmooth === 'function' ?\n seriesOptions.lineSmooth : (seriesOptions.lineSmooth ? Chartist.Interpolation.monotoneCubic() : Chartist.Interpolation.none());\n // Interpolating path where pathData will be used to annotate each path element so we can trace back the original\n // index, value and meta data\n var path = smoothing(pathCoordinates, pathData);\n\n // If we should show points we need to create them now to avoid secondary loop\n // Points are drawn from the pathElements returned by the interpolation function\n // Small offset for Firefox to render squares correctly\n if (seriesOptions.showPoint) {\n\n path.pathElements.forEach(function(pathElement) {\n var point = seriesElement.elem('line', {\n x1: pathElement.x,\n y1: pathElement.y,\n x2: pathElement.x + 0.01,\n y2: pathElement.y\n }, options.classNames.point).attr({\n 'ct:value': [pathElement.data.value.x, pathElement.data.value.y].filter(Chartist.isNumeric).join(','),\n 'ct:meta': Chartist.serialize(pathElement.data.meta)\n });\n\n this.eventEmitter.emit('draw', {\n type: 'point',\n value: pathElement.data.value,\n index: pathElement.data.valueIndex,\n meta: pathElement.data.meta,\n series: series,\n seriesIndex: seriesIndex,\n axisX: axisX,\n axisY: axisY,\n group: seriesElement,\n element: point,\n x: pathElement.x,\n y: pathElement.y\n });\n }.bind(this));\n }\n\n if(seriesOptions.showLine) {\n var line = seriesElement.elem('path', {\n d: path.stringify()\n }, options.classNames.line, true);\n\n this.eventEmitter.emit('draw', {\n type: 'line',\n values: data.normalized.series[seriesIndex],\n path: path.clone(),\n chartRect: chartRect,\n index: seriesIndex,\n series: series,\n seriesIndex: seriesIndex,\n seriesMeta: series.meta,\n axisX: axisX,\n axisY: axisY,\n group: seriesElement,\n element: line\n });\n }\n\n // Area currently only works with axes that support a range!\n if(seriesOptions.showArea && axisY.range) {\n // If areaBase is outside the chart area (< min or > max) we need to set it respectively so that\n // the area is not drawn outside the chart area.\n var areaBase = Math.max(Math.min(seriesOptions.areaBase, axisY.range.max), axisY.range.min);\n\n // We project the areaBase value into screen coordinates\n var areaBaseProjected = chartRect.y1 - axisY.projectValue(areaBase);\n\n // In order to form the area we'll first split the path by move commands so we can chunk it up into segments\n path.splitByCommand('M').filter(function onlySolidSegments(pathSegment) {\n // We filter only \"solid\" segments that contain more than one point. Otherwise there's no need for an area\n return pathSegment.pathElements.length > 1;\n }).map(function convertToArea(solidPathSegments) {\n // Receiving the filtered solid path segments we can now convert those segments into fill areas\n var firstElement = solidPathSegments.pathElements[0];\n var lastElement = solidPathSegments.pathElements[solidPathSegments.pathElements.length - 1];\n\n // Cloning the solid path segment with closing option and removing the first move command from the clone\n // We then insert a new move that should start at the area base and draw a straight line up or down\n // at the end of the path we add an additional straight line to the projected area base value\n // As the closing option is set our path will be automatically closed\n return solidPathSegments.clone(true)\n .position(0)\n .remove(1)\n .move(firstElement.x, areaBaseProjected)\n .line(firstElement.x, firstElement.y)\n .position(solidPathSegments.pathElements.length + 1)\n .line(lastElement.x, areaBaseProjected);\n\n }).forEach(function createArea(areaPath) {\n // For each of our newly created area paths, we'll now create path elements by stringifying our path objects\n // and adding the created DOM elements to the correct series group\n var area = seriesElement.elem('path', {\n d: areaPath.stringify()\n }, options.classNames.area, true);\n\n // Emit an event for each area that was drawn\n this.eventEmitter.emit('draw', {\n type: 'area',\n values: data.normalized.series[seriesIndex],\n path: areaPath.clone(),\n series: series,\n seriesIndex: seriesIndex,\n axisX: axisX,\n axisY: axisY,\n chartRect: chartRect,\n index: seriesIndex,\n group: seriesElement,\n element: area\n });\n }.bind(this));\n }\n }.bind(this));\n\n this.eventEmitter.emit('created', {\n bounds: axisY.bounds,\n chartRect: chartRect,\n axisX: axisX,\n axisY: axisY,\n svg: this.svg,\n options: options\n });\n }\n\n /**\n * This method creates a new line chart.\n *\n * @memberof Chartist.Line\n * @param {String|Node} query A selector query string or directly a DOM element\n * @param {Object} data The data object that needs to consist of a labels and a series array\n * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list.\n * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]\n * @return {Object} An object which exposes the API for the created chart\n *\n * @example\n * // Create a simple line chart\n * var data = {\n * // A labels array that can contain any sort of values\n * labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],\n * // Our series array that contains series objects or in this case series data arrays\n * series: [\n * [5, 2, 4, 2, 0]\n * ]\n * };\n *\n * // As options we currently only set a static size of 300x200 px\n * var options = {\n * width: '300px',\n * height: '200px'\n * };\n *\n * // In the global name space Chartist we call the Line function to initialize a line chart. As a first parameter we pass in a selector where we would like to get our chart created. Second parameter is the actual data object and as a third parameter we pass in our options\n * new Chartist.Line('.ct-chart', data, options);\n *\n * @example\n * // Use specific interpolation function with configuration from the Chartist.Interpolation module\n *\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [\n * [1, 1, 8, 1, 7]\n * ]\n * }, {\n * lineSmooth: Chartist.Interpolation.cardinal({\n * tension: 0.2\n * })\n * });\n *\n * @example\n * // Create a line chart with responsive options\n *\n * var data = {\n * // A labels array that can contain any sort of values\n * labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],\n * // Our series array that contains series objects or in this case series data arrays\n * series: [\n * [5, 2, 4, 2, 0]\n * ]\n * };\n *\n * // In addition to the regular options we specify responsive option overrides that will override the default configutation based on the matching media queries.\n * var responsiveOptions = [\n * ['screen and (min-width: 641px) and (max-width: 1024px)', {\n * showPoint: false,\n * axisX: {\n * labelInterpolationFnc: function(value) {\n * // Will return Mon, Tue, Wed etc. on medium screens\n * return value.slice(0, 3);\n * }\n * }\n * }],\n * ['screen and (max-width: 640px)', {\n * showLine: false,\n * axisX: {\n * labelInterpolationFnc: function(value) {\n * // Will return M, T, W etc. on small screens\n * return value[0];\n * }\n * }\n * }]\n * ];\n *\n * new Chartist.Line('.ct-chart', data, null, responsiveOptions);\n *\n */\n function Line(query, data, options, responsiveOptions) {\n Chartist.Line.super.constructor.call(this,\n query,\n data,\n defaultOptions,\n Chartist.extend({}, defaultOptions, options),\n responsiveOptions);\n }\n\n // Creating line chart type in Chartist namespace\n Chartist.Line = Chartist.Base.extend({\n constructor: Line,\n createChart: createChart\n });\n\n}(this || global, Chartist));\n;/**\n * The bar chart module of Chartist that can be used to draw unipolar or bipolar bar and grouped bar charts.\n *\n * @module Chartist.Bar\n */\n/* global Chartist */\n(function(globalRoot, Chartist){\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * Default options in bar charts. Expand the code view to see a detailed list of options with comments.\n *\n * @memberof Chartist.Bar\n */\n var defaultOptions = {\n // Options for X-Axis\n axisX: {\n // The offset of the chart drawing area to the border of the container\n offset: 30,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'end',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // This value specifies the minimum width in pixel of the scale steps\n scaleMinSpace: 30,\n // Use only integer values (whole numbers) for the scale steps\n onlyInteger: false\n },\n // Options for Y-Axis\n axisY: {\n // The offset of the chart drawing area to the border of the container\n offset: 40,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'start',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // This value specifies the minimum height in pixel of the scale steps\n scaleMinSpace: 20,\n // Use only integer values (whole numbers) for the scale steps\n onlyInteger: false\n },\n // Specify a fixed width for the chart as a string (i.e. '100px' or '50%')\n width: undefined,\n // Specify a fixed height for the chart as a string (i.e. '100px' or '50%')\n height: undefined,\n // Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value\n high: undefined,\n // Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value\n low: undefined,\n // Unless low/high are explicitly set, bar chart will be centered at zero by default. Set referenceValue to null to auto scale.\n referenceValue: 0,\n // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5}\n chartPadding: {\n top: 15,\n right: 15,\n bottom: 5,\n left: 10\n },\n // Specify the distance in pixel of bars in a group\n seriesBarDistance: 15,\n // If set to true this property will cause the series bars to be stacked. Check the `stackMode` option for further stacking options.\n stackBars: false,\n // If set to 'overlap' this property will force the stacked bars to draw from the zero line.\n // If set to 'accumulate' this property will form a total for each series point. This will also influence the y-axis and the overall bounds of the chart. In stacked mode the seriesBarDistance property will have no effect.\n stackMode: 'accumulate',\n // Inverts the axes of the bar chart in order to draw a horizontal bar chart. Be aware that you also need to invert your axis settings as the Y Axis will now display the labels and the X Axis the values.\n horizontalBars: false,\n // If set to true then each bar will represent a series and the data array is expected to be a one dimensional array of data values rather than a series array of series. This is useful if the bar chart should represent a profile rather than some data over time.\n distributeSeries: false,\n // If true the whole data is reversed including labels, the series order as well as the whole series data arrays.\n reverseData: false,\n // If the bar chart should add a background fill to the .ct-grids group.\n showGridBackground: false,\n // Override the class names that get used to generate the SVG structure of the chart\n classNames: {\n chart: 'ct-chart-bar',\n horizontalBars: 'ct-horizontal-bars',\n label: 'ct-label',\n labelGroup: 'ct-labels',\n series: 'ct-series',\n bar: 'ct-bar',\n grid: 'ct-grid',\n gridGroup: 'ct-grids',\n gridBackground: 'ct-grid-background',\n vertical: 'ct-vertical',\n horizontal: 'ct-horizontal',\n start: 'ct-start',\n end: 'ct-end'\n }\n };\n\n /**\n * Creates a new chart\n *\n */\n function createChart(options) {\n var data;\n var highLow;\n\n if(options.distributeSeries) {\n data = Chartist.normalizeData(this.data, options.reverseData, options.horizontalBars ? 'x' : 'y');\n data.normalized.series = data.normalized.series.map(function(value) {\n return [value];\n });\n } else {\n data = Chartist.normalizeData(this.data, options.reverseData, options.horizontalBars ? 'x' : 'y');\n }\n\n // Create new svg element\n this.svg = Chartist.createSvg(\n this.container,\n options.width,\n options.height,\n options.classNames.chart + (options.horizontalBars ? ' ' + options.classNames.horizontalBars : '')\n );\n\n // Drawing groups in correct order\n var gridGroup = this.svg.elem('g').addClass(options.classNames.gridGroup);\n var seriesGroup = this.svg.elem('g');\n var labelGroup = this.svg.elem('g').addClass(options.classNames.labelGroup);\n\n if(options.stackBars && data.normalized.series.length !== 0) {\n\n // If stacked bars we need to calculate the high low from stacked values from each series\n var serialSums = Chartist.serialMap(data.normalized.series, function serialSums() {\n return Array.prototype.slice.call(arguments).map(function(value) {\n return value;\n }).reduce(function(prev, curr) {\n return {\n x: prev.x + (curr && curr.x) || 0,\n y: prev.y + (curr && curr.y) || 0\n };\n }, {x: 0, y: 0});\n });\n\n highLow = Chartist.getHighLow([serialSums], options, options.horizontalBars ? 'x' : 'y');\n\n } else {\n\n highLow = Chartist.getHighLow(data.normalized.series, options, options.horizontalBars ? 'x' : 'y');\n }\n\n // Overrides of high / low from settings\n highLow.high = +options.high || (options.high === 0 ? 0 : highLow.high);\n highLow.low = +options.low || (options.low === 0 ? 0 : highLow.low);\n\n var chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding);\n\n var valueAxis,\n labelAxisTicks,\n labelAxis,\n axisX,\n axisY;\n\n // We need to set step count based on some options combinations\n if(options.distributeSeries && options.stackBars) {\n // If distributed series are enabled and bars need to be stacked, we'll only have one bar and therefore should\n // use only the first label for the step axis\n labelAxisTicks = data.normalized.labels.slice(0, 1);\n } else {\n // If distributed series are enabled but stacked bars aren't, we should use the series labels\n // If we are drawing a regular bar chart with two dimensional series data, we just use the labels array\n // as the bars are normalized\n labelAxisTicks = data.normalized.labels;\n }\n\n // Set labelAxis and valueAxis based on the horizontalBars setting. This setting will flip the axes if necessary.\n if(options.horizontalBars) {\n if(options.axisX.type === undefined) {\n valueAxis = axisX = new Chartist.AutoScaleAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, {\n highLow: highLow,\n referenceValue: 0\n }));\n } else {\n valueAxis = axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, {\n highLow: highLow,\n referenceValue: 0\n }));\n }\n\n if(options.axisY.type === undefined) {\n labelAxis = axisY = new Chartist.StepAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, {\n ticks: labelAxisTicks\n });\n } else {\n labelAxis = axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, options.axisY);\n }\n } else {\n if(options.axisX.type === undefined) {\n labelAxis = axisX = new Chartist.StepAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, {\n ticks: labelAxisTicks\n });\n } else {\n labelAxis = axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, options.axisX);\n }\n\n if(options.axisY.type === undefined) {\n valueAxis = axisY = new Chartist.AutoScaleAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, {\n highLow: highLow,\n referenceValue: 0\n }));\n } else {\n valueAxis = axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, {\n highLow: highLow,\n referenceValue: 0\n }));\n }\n }\n\n // Projected 0 point\n var zeroPoint = options.horizontalBars ? (chartRect.x1 + valueAxis.projectValue(0)) : (chartRect.y1 - valueAxis.projectValue(0));\n // Used to track the screen coordinates of stacked bars\n var stackedBarValues = [];\n\n labelAxis.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n valueAxis.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n\n if (options.showGridBackground) {\n Chartist.createGridBackground(gridGroup, chartRect, options.classNames.gridBackground, this.eventEmitter);\n }\n\n // Draw the series\n data.raw.series.forEach(function(series, seriesIndex) {\n // Calculating bi-polar value of index for seriesOffset. For i = 0..4 biPol will be -1.5, -0.5, 0.5, 1.5 etc.\n var biPol = seriesIndex - (data.raw.series.length - 1) / 2;\n // Half of the period width between vertical grid lines used to position bars\n var periodHalfLength;\n // Current series SVG element\n var seriesElement;\n\n // We need to set periodHalfLength based on some options combinations\n if(options.distributeSeries && !options.stackBars) {\n // If distributed series are enabled but stacked bars aren't, we need to use the length of the normaizedData array\n // which is the series count and divide by 2\n periodHalfLength = labelAxis.axisLength / data.normalized.series.length / 2;\n } else if(options.distributeSeries && options.stackBars) {\n // If distributed series and stacked bars are enabled we'll only get one bar so we should just divide the axis\n // length by 2\n periodHalfLength = labelAxis.axisLength / 2;\n } else {\n // On regular bar charts we should just use the series length\n periodHalfLength = labelAxis.axisLength / data.normalized.series[seriesIndex].length / 2;\n }\n\n // Adding the series group to the series element\n seriesElement = seriesGroup.elem('g');\n\n // Write attributes to series group element. If series name or meta is undefined the attributes will not be written\n seriesElement.attr({\n 'ct:series-name': series.name,\n 'ct:meta': Chartist.serialize(series.meta)\n });\n\n // Use series class from series data or if not set generate one\n seriesElement.addClass([\n options.classNames.series,\n (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(seriesIndex))\n ].join(' '));\n\n data.normalized.series[seriesIndex].forEach(function(value, valueIndex) {\n var projected,\n bar,\n previousStack,\n labelAxisValueIndex;\n\n // We need to set labelAxisValueIndex based on some options combinations\n if(options.distributeSeries && !options.stackBars) {\n // If distributed series are enabled but stacked bars aren't, we can use the seriesIndex for later projection\n // on the step axis for label positioning\n labelAxisValueIndex = seriesIndex;\n } else if(options.distributeSeries && options.stackBars) {\n // If distributed series and stacked bars are enabled, we will only get one bar and therefore always use\n // 0 for projection on the label step axis\n labelAxisValueIndex = 0;\n } else {\n // On regular bar charts we just use the value index to project on the label step axis\n labelAxisValueIndex = valueIndex;\n }\n\n // We need to transform coordinates differently based on the chart layout\n if(options.horizontalBars) {\n projected = {\n x: chartRect.x1 + valueAxis.projectValue(value && value.x ? value.x : 0, valueIndex, data.normalized.series[seriesIndex]),\n y: chartRect.y1 - labelAxis.projectValue(value && value.y ? value.y : 0, labelAxisValueIndex, data.normalized.series[seriesIndex])\n };\n } else {\n projected = {\n x: chartRect.x1 + labelAxis.projectValue(value && value.x ? value.x : 0, labelAxisValueIndex, data.normalized.series[seriesIndex]),\n y: chartRect.y1 - valueAxis.projectValue(value && value.y ? value.y : 0, valueIndex, data.normalized.series[seriesIndex])\n }\n }\n\n // If the label axis is a step based axis we will offset the bar into the middle of between two steps using\n // the periodHalfLength value. Also we do arrange the different series so that they align up to each other using\n // the seriesBarDistance. If we don't have a step axis, the bar positions can be chosen freely so we should not\n // add any automated positioning.\n if(labelAxis instanceof Chartist.StepAxis) {\n // Offset to center bar between grid lines, but only if the step axis is not stretched\n if(!labelAxis.options.stretch) {\n projected[labelAxis.units.pos] += periodHalfLength * (options.horizontalBars ? -1 : 1);\n }\n // Using bi-polar offset for multiple series if no stacked bars or series distribution is used\n projected[labelAxis.units.pos] += (options.stackBars || options.distributeSeries) ? 0 : biPol * options.seriesBarDistance * (options.horizontalBars ? -1 : 1);\n }\n\n // Enter value in stacked bar values used to remember previous screen value for stacking up bars\n previousStack = stackedBarValues[valueIndex] || zeroPoint;\n stackedBarValues[valueIndex] = previousStack - (zeroPoint - projected[labelAxis.counterUnits.pos]);\n\n // Skip if value is undefined\n if(value === undefined) {\n return;\n }\n\n var positions = {};\n positions[labelAxis.units.pos + '1'] = projected[labelAxis.units.pos];\n positions[labelAxis.units.pos + '2'] = projected[labelAxis.units.pos];\n\n if(options.stackBars && (options.stackMode === 'accumulate' || !options.stackMode)) {\n // Stack mode: accumulate (default)\n // If bars are stacked we use the stackedBarValues reference and otherwise base all bars off the zero line\n // We want backwards compatibility, so the expected fallback without the 'stackMode' option\n // to be the original behaviour (accumulate)\n positions[labelAxis.counterUnits.pos + '1'] = previousStack;\n positions[labelAxis.counterUnits.pos + '2'] = stackedBarValues[valueIndex];\n } else {\n // Draw from the zero line normally\n // This is also the same code for Stack mode: overlap\n positions[labelAxis.counterUnits.pos + '1'] = zeroPoint;\n positions[labelAxis.counterUnits.pos + '2'] = projected[labelAxis.counterUnits.pos];\n }\n\n // Limit x and y so that they are within the chart rect\n positions.x1 = Math.min(Math.max(positions.x1, chartRect.x1), chartRect.x2);\n positions.x2 = Math.min(Math.max(positions.x2, chartRect.x1), chartRect.x2);\n positions.y1 = Math.min(Math.max(positions.y1, chartRect.y2), chartRect.y1);\n positions.y2 = Math.min(Math.max(positions.y2, chartRect.y2), chartRect.y1);\n\n var metaData = Chartist.getMetaData(series, valueIndex);\n\n // Create bar element\n bar = seriesElement.elem('line', positions, options.classNames.bar).attr({\n 'ct:value': [value.x, value.y].filter(Chartist.isNumeric).join(','),\n 'ct:meta': Chartist.serialize(metaData)\n });\n\n this.eventEmitter.emit('draw', Chartist.extend({\n type: 'bar',\n value: value,\n index: valueIndex,\n meta: metaData,\n series: series,\n seriesIndex: seriesIndex,\n axisX: axisX,\n axisY: axisY,\n chartRect: chartRect,\n group: seriesElement,\n element: bar\n }, positions));\n }.bind(this));\n }.bind(this));\n\n this.eventEmitter.emit('created', {\n bounds: valueAxis.bounds,\n chartRect: chartRect,\n axisX: axisX,\n axisY: axisY,\n svg: this.svg,\n options: options\n });\n }\n\n /**\n * This method creates a new bar chart and returns API object that you can use for later changes.\n *\n * @memberof Chartist.Bar\n * @param {String|Node} query A selector query string or directly a DOM element\n * @param {Object} data The data object that needs to consist of a labels and a series array\n * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list.\n * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]\n * @return {Object} An object which exposes the API for the created chart\n *\n * @example\n * // Create a simple bar chart\n * var data = {\n * labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],\n * series: [\n * [5, 2, 4, 2, 0]\n * ]\n * };\n *\n * // In the global name space Chartist we call the Bar function to initialize a bar chart. As a first parameter we pass in a selector where we would like to get our chart created and as a second parameter we pass our data object.\n * new Chartist.Bar('.ct-chart', data);\n *\n * @example\n * // This example creates a bipolar grouped bar chart where the boundaries are limitted to -10 and 10\n * new Chartist.Bar('.ct-chart', {\n * labels: [1, 2, 3, 4, 5, 6, 7],\n * series: [\n * [1, 3, 2, -5, -3, 1, -6],\n * [-5, -2, -4, -1, 2, -3, 1]\n * ]\n * }, {\n * seriesBarDistance: 12,\n * low: -10,\n * high: 10\n * });\n *\n */\n function Bar(query, data, options, responsiveOptions) {\n Chartist.Bar.super.constructor.call(this,\n query,\n data,\n defaultOptions,\n Chartist.extend({}, defaultOptions, options),\n responsiveOptions);\n }\n\n // Creating bar chart type in Chartist namespace\n Chartist.Bar = Chartist.Base.extend({\n constructor: Bar,\n createChart: createChart\n });\n\n}(this || global, Chartist));\n;/**\n * The pie chart module of Chartist that can be used to draw pie, donut or gauge charts\n *\n * @module Chartist.Pie\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * Default options in line charts. Expand the code view to see a detailed list of options with comments.\n *\n * @memberof Chartist.Pie\n */\n var defaultOptions = {\n // Specify a fixed width for the chart as a string (i.e. '100px' or '50%')\n width: undefined,\n // Specify a fixed height for the chart as a string (i.e. '100px' or '50%')\n height: undefined,\n // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5}\n chartPadding: 5,\n // Override the class names that are used to generate the SVG structure of the chart\n classNames: {\n chartPie: 'ct-chart-pie',\n chartDonut: 'ct-chart-donut',\n series: 'ct-series',\n slicePie: 'ct-slice-pie',\n sliceDonut: 'ct-slice-donut',\n sliceDonutSolid: 'ct-slice-donut-solid',\n label: 'ct-label'\n },\n // The start angle of the pie chart in degrees where 0 points north. A higher value offsets the start angle clockwise.\n startAngle: 0,\n // An optional total you can specify. By specifying a total value, the sum of the values in the series must be this total in order to draw a full pie. You can use this parameter to draw only parts of a pie or gauge charts.\n total: undefined,\n // If specified the donut CSS classes will be used and strokes will be drawn instead of pie slices.\n donut: false,\n // If specified the donut segments will be drawn as shapes instead of strokes.\n donutSolid: false,\n // Specify the donut stroke width, currently done in javascript for convenience. May move to CSS styles in the future.\n // This option can be set as number or string to specify a relative width (i.e. 100 or '30%').\n donutWidth: 60,\n // If a label should be shown or not\n showLabel: true,\n // Label position offset from the standard position which is half distance of the radius. This value can be either positive or negative. Positive values will position the label away from the center.\n labelOffset: 0,\n // This option can be set to 'inside', 'outside' or 'center'. Positioned with 'inside' the labels will be placed on half the distance of the radius to the border of the Pie by respecting the 'labelOffset'. The 'outside' option will place the labels at the border of the pie and 'center' will place the labels in the absolute center point of the chart. The 'center' option only makes sense in conjunction with the 'labelOffset' option.\n labelPosition: 'inside',\n // An interpolation function for the label value\n labelInterpolationFnc: Chartist.noop,\n // Label direction can be 'neutral', 'explode' or 'implode'. The labels anchor will be positioned based on those settings as well as the fact if the labels are on the right or left side of the center of the chart. Usually explode is useful when labels are positioned far away from the center.\n labelDirection: 'neutral',\n // If true the whole data is reversed including labels, the series order as well as the whole series data arrays.\n reverseData: false,\n // If true empty values will be ignored to avoid drawing unncessary slices and labels\n ignoreEmptyValues: false\n };\n\n /**\n * Determines SVG anchor position based on direction and center parameter\n *\n * @param center\n * @param label\n * @param direction\n * @return {string}\n */\n function determineAnchorPosition(center, label, direction) {\n var toTheRight = label.x > center.x;\n\n if(toTheRight && direction === 'explode' ||\n !toTheRight && direction === 'implode') {\n return 'start';\n } else if(toTheRight && direction === 'implode' ||\n !toTheRight && direction === 'explode') {\n return 'end';\n } else {\n return 'middle';\n }\n }\n\n /**\n * Creates the pie chart\n *\n * @param options\n */\n function createChart(options) {\n var data = Chartist.normalizeData(this.data);\n var seriesGroups = [],\n labelsGroup,\n chartRect,\n radius,\n labelRadius,\n totalDataSum,\n startAngle = options.startAngle;\n\n // Create SVG.js draw\n this.svg = Chartist.createSvg(this.container, options.width, options.height,options.donut ? options.classNames.chartDonut : options.classNames.chartPie);\n // Calculate charting rect\n chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding);\n // Get biggest circle radius possible within chartRect\n radius = Math.min(chartRect.width() / 2, chartRect.height() / 2);\n // Calculate total of all series to get reference value or use total reference from optional options\n totalDataSum = options.total || data.normalized.series.reduce(function(previousValue, currentValue) {\n return previousValue + currentValue;\n }, 0);\n\n var donutWidth = Chartist.quantity(options.donutWidth);\n if (donutWidth.unit === '%') {\n donutWidth.value *= radius / 100;\n }\n\n // If this is a donut chart we need to adjust our radius to enable strokes to be drawn inside\n // Unfortunately this is not possible with the current SVG Spec\n // See this proposal for more details: http://lists.w3.org/Archives/Public/www-svg/2003Oct/0000.html\n radius -= options.donut && !options.donutSolid ? donutWidth.value / 2 : 0;\n\n // If labelPosition is set to `outside` or a donut chart is drawn then the label position is at the radius,\n // if regular pie chart it's half of the radius\n if(options.labelPosition === 'outside' || options.donut && !options.donutSolid) {\n labelRadius = radius;\n } else if(options.labelPosition === 'center') {\n // If labelPosition is center we start with 0 and will later wait for the labelOffset\n labelRadius = 0;\n } else if(options.donutSolid) {\n labelRadius = radius - donutWidth.value / 2;\n } else {\n // Default option is 'inside' where we use half the radius so the label will be placed in the center of the pie\n // slice\n labelRadius = radius / 2;\n }\n // Add the offset to the labelRadius where a negative offset means closed to the center of the chart\n labelRadius += options.labelOffset;\n\n // Calculate end angle based on total sum and current data value and offset with padding\n var center = {\n x: chartRect.x1 + chartRect.width() / 2,\n y: chartRect.y2 + chartRect.height() / 2\n };\n\n // Check if there is only one non-zero value in the series array.\n var hasSingleValInSeries = data.raw.series.filter(function(val) {\n return val.hasOwnProperty('value') ? val.value !== 0 : val !== 0;\n }).length === 1;\n\n // Creating the series groups\n data.raw.series.forEach(function(series, index) {\n seriesGroups[index] = this.svg.elem('g', null, null);\n }.bind(this));\n //if we need to show labels we create the label group now\n if(options.showLabel) {\n labelsGroup = this.svg.elem('g', null, null);\n }\n\n // Draw the series\n // initialize series groups\n data.raw.series.forEach(function(series, index) {\n // If current value is zero and we are ignoring empty values then skip to next value\n if (data.normalized.series[index] === 0 && options.ignoreEmptyValues) return;\n\n // If the series is an object and contains a name or meta data we add a custom attribute\n seriesGroups[index].attr({\n 'ct:series-name': series.name\n });\n\n // Use series class from series data or if not set generate one\n seriesGroups[index].addClass([\n options.classNames.series,\n (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(index))\n ].join(' '));\n\n // If the whole dataset is 0 endAngle should be zero. Can't divide by 0.\n var endAngle = (totalDataSum > 0 ? startAngle + data.normalized.series[index] / totalDataSum * 360 : 0);\n\n // Use slight offset so there are no transparent hairline issues\n var overlappigStartAngle = Math.max(0, startAngle - (index === 0 || hasSingleValInSeries ? 0 : 0.2));\n\n // If we need to draw the arc for all 360 degrees we need to add a hack where we close the circle\n // with Z and use 359.99 degrees\n if(endAngle - overlappigStartAngle >= 359.99) {\n endAngle = overlappigStartAngle + 359.99;\n }\n\n var start = Chartist.polarToCartesian(center.x, center.y, radius, overlappigStartAngle),\n end = Chartist.polarToCartesian(center.x, center.y, radius, endAngle);\n\n var innerStart,\n innerEnd,\n donutSolidRadius;\n\n // Create a new path element for the pie chart. If this isn't a donut chart we should close the path for a correct stroke\n var path = new Chartist.Svg.Path(!options.donut || options.donutSolid)\n .move(end.x, end.y)\n .arc(radius, radius, 0, endAngle - startAngle > 180, 0, start.x, start.y);\n\n // If regular pie chart (no donut) we add a line to the center of the circle for completing the pie\n if(!options.donut) {\n path.line(center.x, center.y);\n } else if (options.donutSolid) {\n donutSolidRadius = radius - donutWidth.value;\n innerStart = Chartist.polarToCartesian(center.x, center.y, donutSolidRadius, startAngle - (index === 0 || hasSingleValInSeries ? 0 : 0.2));\n innerEnd = Chartist.polarToCartesian(center.x, center.y, donutSolidRadius, endAngle);\n path.line(innerStart.x, innerStart.y);\n path.arc(donutSolidRadius, donutSolidRadius, 0, endAngle - startAngle > 180, 1, innerEnd.x, innerEnd.y);\n }\n\n // Create the SVG path\n // If this is a donut chart we add the donut class, otherwise just a regular slice\n var pathClassName = options.classNames.slicePie;\n if (options.donut) {\n pathClassName = options.classNames.sliceDonut;\n if (options.donutSolid) {\n pathClassName = options.classNames.sliceDonutSolid;\n }\n }\n var pathElement = seriesGroups[index].elem('path', {\n d: path.stringify()\n }, pathClassName);\n\n // Adding the pie series value to the path\n pathElement.attr({\n 'ct:value': data.normalized.series[index],\n 'ct:meta': Chartist.serialize(series.meta)\n });\n\n // If this is a donut, we add the stroke-width as style attribute\n if(options.donut && !options.donutSolid) {\n pathElement._node.style.strokeWidth = donutWidth.value + 'px';\n }\n\n // Fire off draw event\n this.eventEmitter.emit('draw', {\n type: 'slice',\n value: data.normalized.series[index],\n totalDataSum: totalDataSum,\n index: index,\n meta: series.meta,\n series: series,\n group: seriesGroups[index],\n element: pathElement,\n path: path.clone(),\n center: center,\n radius: radius,\n startAngle: startAngle,\n endAngle: endAngle\n });\n\n // If we need to show labels we need to add the label for this slice now\n if(options.showLabel) {\n var labelPosition;\n if(data.raw.series.length === 1) {\n // If we have only 1 series, we can position the label in the center of the pie\n labelPosition = {\n x: center.x,\n y: center.y\n };\n } else {\n // Position at the labelRadius distance from center and between start and end angle\n labelPosition = Chartist.polarToCartesian(\n center.x,\n center.y,\n labelRadius,\n startAngle + (endAngle - startAngle) / 2\n );\n }\n\n var rawValue;\n if(data.normalized.labels && !Chartist.isFalseyButZero(data.normalized.labels[index])) {\n rawValue = data.normalized.labels[index];\n } else {\n rawValue = data.normalized.series[index];\n }\n\n var interpolatedValue = options.labelInterpolationFnc(rawValue, index);\n\n if(interpolatedValue || interpolatedValue === 0) {\n var labelElement = labelsGroup.elem('text', {\n dx: labelPosition.x,\n dy: labelPosition.y,\n 'text-anchor': determineAnchorPosition(center, labelPosition, options.labelDirection)\n }, options.classNames.label).text('' + interpolatedValue);\n\n // Fire off draw event\n this.eventEmitter.emit('draw', {\n type: 'label',\n index: index,\n group: labelsGroup,\n element: labelElement,\n text: '' + interpolatedValue,\n x: labelPosition.x,\n y: labelPosition.y\n });\n }\n }\n\n // Set next startAngle to current endAngle.\n // (except for last slice)\n startAngle = endAngle;\n }.bind(this));\n\n this.eventEmitter.emit('created', {\n chartRect: chartRect,\n svg: this.svg,\n options: options\n });\n }\n\n /**\n * This method creates a new pie chart and returns an object that can be used to redraw the chart.\n *\n * @memberof Chartist.Pie\n * @param {String|Node} query A selector query string or directly a DOM element\n * @param {Object} data The data object in the pie chart needs to have a series property with a one dimensional data array. The values will be normalized against each other and don't necessarily need to be in percentage. The series property can also be an array of value objects that contain a value property and a className property to override the CSS class name for the series group.\n * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list.\n * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]\n * @return {Object} An object with a version and an update method to manually redraw the chart\n *\n * @example\n * // Simple pie chart example with four series\n * new Chartist.Pie('.ct-chart', {\n * series: [10, 2, 4, 3]\n * });\n *\n * @example\n * // Drawing a donut chart\n * new Chartist.Pie('.ct-chart', {\n * series: [10, 2, 4, 3]\n * }, {\n * donut: true\n * });\n *\n * @example\n * // Using donut, startAngle and total to draw a gauge chart\n * new Chartist.Pie('.ct-chart', {\n * series: [20, 10, 30, 40]\n * }, {\n * donut: true,\n * donutWidth: 20,\n * startAngle: 270,\n * total: 200\n * });\n *\n * @example\n * // Drawing a pie chart with padding and labels that are outside the pie\n * new Chartist.Pie('.ct-chart', {\n * series: [20, 10, 30, 40]\n * }, {\n * chartPadding: 30,\n * labelOffset: 50,\n * labelDirection: 'explode'\n * });\n *\n * @example\n * // Overriding the class names for individual series as well as a name and meta data.\n * // The name will be written as ct:series-name attribute and the meta data will be serialized and written\n * // to a ct:meta attribute.\n * new Chartist.Pie('.ct-chart', {\n * series: [{\n * value: 20,\n * name: 'Series 1',\n * className: 'my-custom-class-one',\n * meta: 'Meta One'\n * }, {\n * value: 10,\n * name: 'Series 2',\n * className: 'my-custom-class-two',\n * meta: 'Meta Two'\n * }, {\n * value: 70,\n * name: 'Series 3',\n * className: 'my-custom-class-three',\n * meta: 'Meta Three'\n * }]\n * });\n */\n function Pie(query, data, options, responsiveOptions) {\n Chartist.Pie.super.constructor.call(this,\n query,\n data,\n defaultOptions,\n Chartist.extend({}, defaultOptions, options),\n responsiveOptions);\n }\n\n // Creating pie chart type in Chartist namespace\n Chartist.Pie = Chartist.Base.extend({\n constructor: Pie,\n createChart: createChart,\n determineAnchorPosition: determineAnchorPosition\n });\n\n}(this || global, Chartist));\n\nreturn Chartist;\n\n}));\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://graph_class/./node_modules/chartist/dist/chartist.js?"); + +/***/ }), + +/***/ "./node_modules/mxgraph/javascript/dist/build.js": +/*!*******************************************************!*\ + !*** ./node_modules/mxgraph/javascript/dist/build.js ***! + \*******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) {\nif (true) {\n!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n} else {}\n}(this, function () {\nreturn function (opts) {\nfor (var name in opts) { this[name] = opts[name]; }\nvar __mxOutput = {};\n/**\n * Copyright (c) 2006-2017, JGraph Ltd\n * Copyright (c) 2006-2017, Gaudenz Alder\n */\nvar mxClient =\n{\n\t/**\n\t * Class: mxClient\n\t *\n\t * Bootstrapping mechanism for the mxGraph thin client. The production version\n\t * of this file contains all code required to run the mxGraph thin client, as\n\t * well as global constants to identify the browser and operating system in\n\t * use. You may have to load chrome://global/content/contentAreaUtils.js in\n\t * your page to disable certain security restrictions in Mozilla.\n\t * \n\t * Variable: VERSION\n\t *\n\t * Contains the current version of the mxGraph library. The strings that\n\t * communicate versions of mxGraph use the following format.\n\t * \n\t * versionMajor.versionMinor.buildNumber.revisionNumber\n\t * \n\t * Current version is 4.0.4.\n\t */\n\tVERSION: '4.0.4',\n\n\t/**\n\t * Variable: IS_IE\n\t *\n\t * True if the current browser is Internet Explorer 10 or below. Use \n\t * to detect IE 11.\n\t */\n\tIS_IE: navigator.userAgent.indexOf('MSIE') >= 0,\n\n\t/**\n\t * Variable: IS_IE6\n\t *\n\t * True if the current browser is Internet Explorer 6.x.\n\t */\n\tIS_IE6: navigator.userAgent.indexOf('MSIE 6') >= 0,\n\n\t/**\n\t * Variable: IS_IE11\n\t *\n\t * True if the current browser is Internet Explorer 11.x.\n\t */\n\tIS_IE11: !!navigator.userAgent.match(/Trident\\/7\\./),\n\n\t/**\n\t * Variable: IS_EDGE\n\t *\n\t * True if the current browser is Microsoft Edge.\n\t */\n\tIS_EDGE: !!navigator.userAgent.match(/Edge\\//),\n\n\t/**\n\t * Variable: IS_QUIRKS\n\t *\n\t * True if the current browser is Internet Explorer and it is in quirks mode.\n\t */\n\tIS_QUIRKS: navigator.userAgent.indexOf('MSIE') >= 0 && (document.documentMode == null || document.documentMode == 5),\n\n\t/**\n\t * Variable: IS_EM\n\t * \n\t * True if the browser is IE11 in enterprise mode (IE8 standards mode).\n\t */\n\tIS_EM: 'spellcheck' in document.createElement('textarea') && document.documentMode == 8,\n\n\t/**\n\t * Variable: VML_PREFIX\n\t * \n\t * Prefix for VML namespace in node names. Default is 'v'.\n\t */\n\tVML_PREFIX: 'v',\n\n\t/**\n\t * Variable: OFFICE_PREFIX\n\t * \n\t * Prefix for VML office namespace in node names. Default is 'o'.\n\t */\n\tOFFICE_PREFIX: 'o',\n\n\t/**\n\t * Variable: IS_NS\n\t *\n\t * True if the current browser is Netscape (including Firefox).\n\t */\n \tIS_NS: navigator.userAgent.indexOf('Mozilla/') >= 0 &&\n \t\tnavigator.userAgent.indexOf('MSIE') < 0 &&\n \t\tnavigator.userAgent.indexOf('Edge/') < 0,\n\n\t/**\n\t * Variable: IS_OP\n\t *\n\t * True if the current browser is Opera.\n\t */\n \tIS_OP: navigator.userAgent.indexOf('Opera/') >= 0 ||\n \t\tnavigator.userAgent.indexOf('OPR/') >= 0,\n\n\t/**\n\t * Variable: IS_OT\n\t *\n\t * True if -o-transform is available as a CSS style, ie for Opera browsers\n\t * based on a Presto engine with version 2.5 or later.\n\t */\n \tIS_OT: navigator.userAgent.indexOf('Presto/') >= 0 &&\n \t\tnavigator.userAgent.indexOf('Presto/2.4.') < 0 &&\n \t\tnavigator.userAgent.indexOf('Presto/2.3.') < 0 &&\n \t\tnavigator.userAgent.indexOf('Presto/2.2.') < 0 &&\n \t\tnavigator.userAgent.indexOf('Presto/2.1.') < 0 &&\n \t\tnavigator.userAgent.indexOf('Presto/2.0.') < 0 &&\n \t\tnavigator.userAgent.indexOf('Presto/1.') < 0,\n \t\n\t/**\n\t * Variable: IS_SF\n\t *\n\t * True if the current browser is Safari.\n\t */\n \tIS_SF: navigator.userAgent.indexOf('AppleWebKit/') >= 0 &&\n \t\tnavigator.userAgent.indexOf('Chrome/') < 0 &&\n \t\tnavigator.userAgent.indexOf('Edge/') < 0,\n \t\n\t/**\n\t * Variable: IS_IOS\n\t * \n\t * Returns true if the user agent is an iPad, iPhone or iPod.\n\t */\n \tIS_IOS: (navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false),\n \t\t\n\t/**\n\t * Variable: IS_GC\n\t *\n\t * True if the current browser is Google Chrome.\n\t */\n \tIS_GC: navigator.userAgent.indexOf('Chrome/') >= 0 &&\n\t\tnavigator.userAgent.indexOf('Edge/') < 0,\n\t\n\t/**\n\t * Variable: IS_CHROMEAPP\n\t *\n\t * True if the this is running inside a Chrome App.\n\t */\n \tIS_CHROMEAPP: window.chrome != null && chrome.app != null && chrome.app.runtime != null,\n\n\t/**\n\t * Variable: IS_FF\n\t *\n\t * True if the current browser is Firefox.\n\t */\n \tIS_FF: navigator.userAgent.indexOf('Firefox/') >= 0,\n \t\n\t/**\n\t * Variable: IS_MT\n\t *\n\t * True if -moz-transform is available as a CSS style. This is the case\n\t * for all Firefox-based browsers newer than or equal 3, such as Camino,\n\t * Iceweasel, Seamonkey and Iceape.\n\t */\n \tIS_MT: (navigator.userAgent.indexOf('Firefox/') >= 0 &&\n\t\tnavigator.userAgent.indexOf('Firefox/1.') < 0 &&\n \t\tnavigator.userAgent.indexOf('Firefox/2.') < 0) ||\n \t\t(navigator.userAgent.indexOf('Iceweasel/') >= 0 &&\n \t\tnavigator.userAgent.indexOf('Iceweasel/1.') < 0 &&\n \t\tnavigator.userAgent.indexOf('Iceweasel/2.') < 0) ||\n \t\t(navigator.userAgent.indexOf('SeaMonkey/') >= 0 &&\n \t\tnavigator.userAgent.indexOf('SeaMonkey/1.') < 0) ||\n \t\t(navigator.userAgent.indexOf('Iceape/') >= 0 &&\n \t\tnavigator.userAgent.indexOf('Iceape/1.') < 0),\n\n\t/**\n\t * Variable: IS_VML\n\t *\n\t * True if the browser supports VML.\n\t */\n \tIS_VML: navigator.appName.toUpperCase() == 'MICROSOFT INTERNET EXPLORER',\n\n\t/**\n\t * Variable: IS_SVG\n\t *\n\t * True if the browser supports SVG.\n\t */\n \tIS_SVG: navigator.appName.toUpperCase() != 'MICROSOFT INTERNET EXPLORER',\n\n\t/**\n\t * Variable: NO_FO\n\t *\n\t * True if foreignObject support is not available. This is the case for\n\t * Opera, older SVG-based browsers and all versions of IE.\n\t */\n \tNO_FO: !document.createElementNS || document.createElementNS('http://www.w3.org/2000/svg',\n \t\t'foreignObject') != '[object SVGForeignObjectElement]' || navigator.userAgent.indexOf('Opera/') >= 0,\n\n\t/**\n\t * Variable: IS_WIN\n\t *\n\t * True if the client is a Windows.\n\t */\n \tIS_WIN: navigator.appVersion.indexOf('Win') > 0,\n\n\t/**\n\t * Variable: IS_MAC\n\t *\n\t * True if the client is a Mac.\n\t */\n \tIS_MAC: navigator.appVersion.indexOf('Mac') > 0,\n\t\n\t/**\n\t * Variable: IS_CHROMEOS\n\t *\n\t * True if the client is a Chrome OS.\n\t */\n \tIS_CHROMEOS: /\\bCrOS\\b/.test(navigator.userAgent),\n\n\t/**\n\t * Variable: IS_TOUCH\n\t * \n\t * True if this device supports touchstart/-move/-end events (Apple iOS,\n\t * Android, Chromebook and Chrome Browser on touch-enabled devices).\n\t */\n \tIS_TOUCH: 'ontouchstart' in document.documentElement,\n\n\t/**\n\t * Variable: IS_POINTER\n\t * \n\t * True if this device supports Microsoft pointer events (always false on Macs).\n\t */\n \tIS_POINTER: window.PointerEvent != null && !(navigator.appVersion.indexOf('Mac') > 0),\n\n\t/**\n\t * Variable: IS_LOCAL\n\t *\n\t * True if the documents location does not start with http:// or https://.\n\t */\n \tIS_LOCAL: document.location.href.indexOf('http://') < 0 &&\n \t\t\t document.location.href.indexOf('https://') < 0,\n\n\t/**\n\t * Variable: defaultBundles\n\t * \n\t * Contains the base names of the default bundles if mxLoadResources is false.\n\t */\n \tdefaultBundles: [],\n\n\t/**\n\t * Function: isBrowserSupported\n\t *\n\t * Returns true if the current browser is supported, that is, if\n\t * or is true.\n\t * \n\t * Example:\n\t * \n\t * (code)\n\t * if (!mxClient.isBrowserSupported())\n\t * {\n\t * mxUtils.error('Browser is not supported!', 200, false);\n\t * }\n\t * (end)\n\t */\n\tisBrowserSupported: function()\n\t{\n\t\treturn mxClient.IS_VML || mxClient.IS_SVG;\n\t},\n\n\t/**\n\t * Function: link\n\t *\n\t * Adds a link node to the head of the document. Use this\n\t * to add a stylesheet to the page as follows:\n\t *\n\t * (code)\n\t * mxClient.link('stylesheet', filename);\n\t * (end)\n\t *\n\t * where filename is the (relative) URL of the stylesheet. The charset\n\t * is hardcoded to ISO-8859-1 and the type is text/css.\n\t * \n\t * Parameters:\n\t * \n\t * rel - String that represents the rel attribute of the link node.\n\t * href - String that represents the href attribute of the link node.\n\t * doc - Optional parent document of the link node.\n\t * id - unique id for the link element to check if it already exists\n\t */\n\tlink: function(rel, href, doc, id)\n\t{\n\t\tdoc = doc || document;\n\n\t\t// Workaround for Operation Aborted in IE6 if base tag is used in head\n\t\tif (mxClient.IS_IE6)\n\t\t{\n\t\t\tdoc.write('');\n\t\t}\n\t\telse\n\t\t{\t\n\t\t\tvar link = doc.createElement('link');\n\t\t\t\n\t\t\tlink.setAttribute('rel', rel);\n\t\t\tlink.setAttribute('href', href);\n\t\t\tlink.setAttribute('charset', 'UTF-8');\n\t\t\tlink.setAttribute('type', 'text/css');\n\t\t\t\n\t\t\tif (id)\n\t\t\t{\n\t\t\t\tlink.setAttribute('id', id);\n\t\t\t}\n\t\t\t\n\t\t\tvar head = doc.getElementsByTagName('head')[0];\n\t \t\thead.appendChild(link);\n\t\t}\n\t},\n\t\n\t/**\n\t * Function: loadResources\n\t * \n\t * Helper method to load the default bundles if mxLoadResources is false.\n\t * \n\t * Parameters:\n\t * \n\t * fn - Function to call after all resources have been loaded.\n\t * lan - Optional string to pass to .\n\t */\n\tloadResources: function(fn, lan)\n\t{\n\t\tvar pending = mxClient.defaultBundles.length;\n\t\t\n\t\tfunction callback()\n\t\t{\n\t\t\tif (--pending == 0)\n\t\t\t{\n\t\t\t\tfn();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (var i = 0; i < mxClient.defaultBundles.length; i++)\n\t\t{\n\t\t\tmxResources.add(mxClient.defaultBundles[i], lan, callback);\n\t\t}\n\t},\n\t\n\t/**\n\t * Function: include\n\t *\n\t * Dynamically adds a script node to the document header.\n\t * \n\t * In production environments, the includes are resolved in the mxClient.js\n\t * file to reduce the number of requests required for client startup. This\n\t * function should only be used in development environments, but not in\n\t * production systems.\n\t */\n\tinclude: function(src)\n\t{\n\t\tdocument.write('');\n\t}\n};\n\n/**\n * Variable: mxLoadResources\n * \n * Optional global config variable to toggle loading of the two resource files\n * in and . Default is true. NOTE: This is a global variable,\n * not a variable of mxClient. If this is false, you can use \n * with its callback to load the default bundles asynchronously.\n *\n * (code)\n * \n * \n * (end)\n */\nif (typeof(mxLoadResources) == 'undefined')\n{\n\tmxLoadResources = true;\n}\n\n/**\n * Variable: mxForceIncludes\n * \n * Optional global config variable to force loading the JavaScript files in\n * development mode. Default is undefined. NOTE: This is a global variable,\n * not a variable of mxClient.\n *\n * (code)\n * \n * \n * (end)\n */\nif (typeof(mxForceIncludes) == 'undefined')\n{\n\tmxForceIncludes = false;\n}\n\n/**\n * Variable: mxResourceExtension\n * \n * Optional global config variable to specify the extension of resource files.\n * Default is true. NOTE: This is a global variable, not a variable of mxClient.\n *\n * (code)\n * \n * \n * (end)\n */\nif (typeof(mxResourceExtension) == 'undefined')\n{\n\tmxResourceExtension = '.txt';\n}\n\n/**\n * Variable: mxLoadStylesheets\n * \n * Optional global config variable to toggle loading of the CSS files when\n * the library is initialized. Default is true. NOTE: This is a global variable,\n * not a variable of mxClient.\n *\n * (code)\n * \n * \n * (end)\n */\nif (typeof(mxLoadStylesheets) == 'undefined')\n{\n\tmxLoadStylesheets = true;\n}\n\n/**\n * Variable: basePath\n *\n * Basepath for all URLs in the core without trailing slash. Default is '.'.\n * Set mxBasePath prior to loading the mxClient library as follows to override\n * this setting:\n *\n * (code)\n * \n * \n * (end)\n * \n * When using a relative path, the path is relative to the URL of the page that\n * contains the assignment. Trailing slashes are automatically removed.\n */\nif (typeof(mxBasePath) != 'undefined' && mxBasePath.length > 0)\n{\n\t// Adds a trailing slash if required\n\tif (mxBasePath.substring(mxBasePath.length - 1) == '/')\n\t{\n\t\tmxBasePath = mxBasePath.substring(0, mxBasePath.length - 1);\n\t}\n\n\tmxClient.basePath = mxBasePath;\n}\nelse\n{\n\tmxClient.basePath = '.';\n}\n\n/**\n * Variable: imageBasePath\n *\n * Basepath for all images URLs in the core without trailing slash. Default is\n * + '/images'. Set mxImageBasePath prior to loading the\n * mxClient library as follows to override this setting:\n *\n * (code)\n * \n * \n * (end)\n * \n * When using a relative path, the path is relative to the URL of the page that\n * contains the assignment. Trailing slashes are automatically removed.\n */\nif (typeof(mxImageBasePath) != 'undefined' && mxImageBasePath.length > 0)\n{\n\t// Adds a trailing slash if required\n\tif (mxImageBasePath.substring(mxImageBasePath.length - 1) == '/')\n\t{\n\t\tmxImageBasePath = mxImageBasePath.substring(0, mxImageBasePath.length - 1);\n\t}\n\n\tmxClient.imageBasePath = mxImageBasePath;\n}\nelse\n{\n\tmxClient.imageBasePath = mxClient.basePath + '/images';\t\n}\n\n/**\n * Variable: language\n *\n * Defines the language of the client, eg. en for english, de for german etc.\n * The special value 'none' will disable all built-in internationalization and\n * resource loading. See for handling identifiers\n * with and without a dash.\n * \n * Set mxLanguage prior to loading the mxClient library as follows to override\n * this setting:\n *\n * (code)\n * \n * \n * (end)\n * \n * If internationalization is disabled, then the following variables should be\n * overridden to reflect the current language of the system. These variables are\n * cleared when i18n is disabled.\n * , ,\n * , ,\n * , , ,\n * , ,\n * , ,\n * , ,\n * , ,\n * and\n * .\n */\nif (typeof(mxLanguage) != 'undefined' && mxLanguage != null)\n{\n\tmxClient.language = mxLanguage;\n}\nelse\n{\n\tmxClient.language = (mxClient.IS_IE) ? navigator.userLanguage : navigator.language;\n}\n\n/**\n * Variable: defaultLanguage\n * \n * Defines the default language which is used in the common resource files. Any\n * resources for this language will only load the common resource file, but not\n * the language-specific resource file. Default is 'en'.\n * \n * Set mxDefaultLanguage prior to loading the mxClient library as follows to override\n * this setting:\n *\n * (code)\n * \n * \n * (end)\n */\nif (typeof(mxDefaultLanguage) != 'undefined' && mxDefaultLanguage != null)\n{\n\tmxClient.defaultLanguage = mxDefaultLanguage;\n}\nelse\n{\n\tmxClient.defaultLanguage = 'en';\n}\n\n// Adds all required stylesheets and namespaces\nif (mxLoadStylesheets)\n{\n\tmxClient.link('stylesheet', mxClient.basePath + '/css/common.css');\n}\n\n/**\n * Variable: languages\n *\n * Defines the optional array of all supported language extensions. The default\n * language does not have to be part of this list. See\n * .\n *\n * (code)\n * \n * \n * (end)\n * \n * This is used to avoid unnecessary requests to language files, ie. if a 404\n * will be returned.\n */\nif (typeof(mxLanguages) != 'undefined' && mxLanguages != null)\n{\n\tmxClient.languages = mxLanguages;\n}\n\n// Adds required namespaces, stylesheets and memory handling for older IE browsers\nif (mxClient.IS_VML)\n{\n\tif (mxClient.IS_SVG)\n\t{\n\t\tmxClient.IS_VML = false;\n\t}\n\telse\n\t{\n\t\t// Enables support for IE8 standards mode. Note that this requires all attributes for VML\n\t\t// elements to be set using direct notation, ie. node.attr = value. The use of setAttribute\n\t\t// is not possible.\n\t\tif (document.documentMode == 8)\n\t\t{\n\t\t\tdocument.namespaces.add(mxClient.VML_PREFIX, 'urn:schemas-microsoft-com:vml', '#default#VML');\n\t\t\tdocument.namespaces.add(mxClient.OFFICE_PREFIX, 'urn:schemas-microsoft-com:office:office', '#default#VML');\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdocument.namespaces.add(mxClient.VML_PREFIX, 'urn:schemas-microsoft-com:vml');\n\t\t\tdocument.namespaces.add(mxClient.OFFICE_PREFIX, 'urn:schemas-microsoft-com:office:office');\n\t\t}\n\n\t\t// Workaround for limited number of stylesheets in IE (does not work in standards mode)\n\t\tif (mxClient.IS_QUIRKS && document.styleSheets.length >= 30)\n\t\t{\n\t\t\t(function()\n\t\t\t{\n\t\t\t\tvar node = document.createElement('style');\n\t\t\t\tnode.type = 'text/css';\n\t\t\t\tnode.styleSheet.cssText = mxClient.VML_PREFIX + '\\\\:*{behavior:url(#default#VML)}' +\n\t\t \tmxClient.OFFICE_PREFIX + '\\\\:*{behavior:url(#default#VML)}';\n\t\t document.getElementsByTagName('head')[0].appendChild(node);\n\t\t\t})();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdocument.createStyleSheet().cssText = mxClient.VML_PREFIX + '\\\\:*{behavior:url(#default#VML)}' +\n\t\t \tmxClient.OFFICE_PREFIX + '\\\\:*{behavior:url(#default#VML)}';\n\t\t}\n\t \n\t if (mxLoadStylesheets)\n\t {\n\t \tmxClient.link('stylesheet', mxClient.basePath + '/css/explorer.css');\n\t }\n\t}\n}\n\n// PREPROCESSOR-REMOVE-START\n// If script is loaded via CommonJS, do not write + + + + + + + + + + + + + + + + + + + + + diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/jscolor/arrow.gif b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/jscolor/arrow.gif new file mode 100644 index 0000000000000..246478a864f81 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/jscolor/arrow.gif differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/jscolor/cross.gif b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/jscolor/cross.gif new file mode 100644 index 0000000000000..0ee9c7ac517be Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/jscolor/cross.gif differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/jscolor/hs.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/jscolor/hs.png new file mode 100644 index 0000000000000..3d94486cedaf7 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/jscolor/hs.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/jscolor/hv.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/jscolor/hv.png new file mode 100644 index 0000000000000..1c5e01f8bcecc Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/jscolor/hv.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/open.html b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/open.html new file mode 100644 index 0000000000000..12bb1839c3bc0 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/open.html @@ -0,0 +1,222 @@ + + + + Open Diagram + + + + + +
+ + + + + + + + + + + +
+ +
+
+ + + +
+
+ + diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/editor.txt b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/editor.txt new file mode 100644 index 0000000000000..53e871261e23d --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/editor.txt @@ -0,0 +1,5 @@ +askZoom=Enter zoom (%) +properties=Properties +outline=Outline +tasks=Tasks +help=Help diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/editor_de.txt b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/editor_de.txt new file mode 100644 index 0000000000000..542f387c2fa7c --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/editor_de.txt @@ -0,0 +1,5 @@ +askZoom=Zoom eingeben (%) +properties=Eigenschaften +outline=Uebersicht +tasks=Aufgaben +help=Hilfe diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/editor_zh.txt b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/editor_zh.txt new file mode 100644 index 0000000000000..b37848b6eb1fe --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/editor_zh.txt @@ -0,0 +1,5 @@ +askZoom=进入缩放(%25) +properties=属性 +outline=轮廓 +tasks=任务 +help=帮助 \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/graph.txt b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/graph.txt new file mode 100644 index 0000000000000..baf61f88697a4 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/graph.txt @@ -0,0 +1,11 @@ +alreadyConnected=Nodes already connected +containsValidationErrors=Contains validation errors +updatingDocument=Updating Document. Please wait... +updatingSelection=Updating Selection. Please wait... +collapse-expand=Collapse/Expand +doubleClickOrientation=Doubleclick to change orientation +close=Close +error=Error +done=Done +cancel=Cancel +ok=OK diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/graph_de.txt b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/graph_de.txt new file mode 100644 index 0000000000000..299993457893e --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/graph_de.txt @@ -0,0 +1,11 @@ +alreadyConnected=Knoten schon verbunden +containsValidationErrors=Enthält Validierungsfehler +updatingDocument=Aktualisiere Dokument. Bitte warten... +updatingSelection=Aktualisiere Markierung. Bitte warten... +collapse-expand=Einklappen/Ausklappen +doubleClickOrientation=Doppelklicken um Orientierung zu ändern +close=Schliessen +error=Fehler +done=Fertig +cancel=Abbrechen +ok=OK diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/graph_zh.txt b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/graph_zh.txt new file mode 100644 index 0000000000000..4958593ffe50c --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/graph_zh.txt @@ -0,0 +1,11 @@ +alreadyConnected=节点已经连接 +containsValidationErrors=包含效验错误 +updatingDocument=更新文档。请等候...... +updatingSelection=更新所选项。请等候...... +collapse-expand=折叠/展开 +doubleClickOrientation=双击以改变方向 +close=关闭 +error=错误 +done=完成 +cancel=取消 +ok=确定 \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/grapheditor.txt b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/grapheditor.txt new file mode 100644 index 0000000000000..f61eb40366d8a --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/grapheditor.txt @@ -0,0 +1,324 @@ +# Resources from graph.properties +alreadyConnected=Nodes already connected +cancel=Cancel +close=Close +collapse-expand=Collapse/Expand +containsValidationErrors=Contains validation errors +done=Done +doubleClickOrientation=Doubleclick to Change Orientation +error=Error +errorSavingFile=Error saving file +ok=OK +updatingDocument=Updating Document. Please wait... +updatingSelection=Updating Selection. Please wait... +# Custom resources +about=About +actualSize=Actual Size +add=Add +addLayer=Add Layer +addProperty=Add Property +addToExistingDrawing=Add to Existing Drawing +addWaypoint=Add Waypoint +advanced=Advanced +align=Align +alignment=Alignment +allChangesLost=All changes will be lost! +angle=Angle +apply=Apply +arc=Arc +arrange=Arrange +arrow=Arrow +arrows=Arrows +automatic=Automatic +autosave=Autosave +autosize=Autosize +back=Back +background=Background +backgroundColor=Background Color +backgroundImage=Background Image +basic=Basic +block=Block +blockquote=Blockquote +bold=Bold +border=Border +borderWidth=Borderwidth +borderColor=Border Color +bottom=Bottom +bottomAlign=Bottom Align +bottomLeft=Bottom Left +bottomRight=Bottom Right +bulletedList=Bulleted List +cannotOpenFile=Cannot open file +center=Center +change=Change +changeOrientation=Change Orientation +circle=Circle +classic=Classic +clearDefaultStyle=Clear Default Style +clearWaypoints=Clear Waypoints +clipart=Clipart +collapse=Collapse +collapseExpand=Collapse/Expand +collapsible=Collapsible +comic=Comic +connect=Connect +connection=Connection +connectionPoints=Connection points +connectionArrows=Connection arrows +constrainProportions=Constrain Proportions +copy=Copy +copyConnect=Copy on Connect +copySize=Copy Size +create=Create +curved=Curved +custom=Custom +cut=Cut +dashed=Dashed +decreaseIndent=Decrease Indent +default=Default +delete=Delete +deleteColumn=Delete Column +deleteRow=Delete Row +diagram=Diagram +diamond=Diamond +diamondThin=Diamond (thin) +direction=Direction +distribute=Distribute +divider=Divider +documentProperties=Document Properties +dotted=Dotted +dpi=DPI +drawing=Drawing{1} +drawingEmpty=Drawing is empty +drawingTooLarge=Drawing is too large +duplicate=Duplicate +duplicateIt=Duplicate {1} +east=East +edit=Edit +editData=Edit Data +editDiagram=Edit Diagram +editImage=Edit Image +editLink=Edit Link +editStyle=Edit Style +editTooltip=Edit Tooltip +enterGroup=Enter Group +enterValue=Enter Value +enterName=Enter Name +enterPropertyName=Enter Property Name +entityRelation=Entity Relation +exitGroup=Exit Group +expand=Expand +export=Export +extras=Extras +file=File +fileNotFound=File not found +filename=Filename +fill=Fill +fillColor=Fill Color +fitPage=One Page +fitPageWidth=Page Width +fitTwoPages=Two Pages +fitWindow=Fit Window +flip=Flip +flipH=Flip Horizontal +flipV=Flip Vertical +font=Font +fontFamily=Font Family +fontColor=Font Color +fontSize=Font Size +format=Format +formatPanel=Format Panel +general=Allgemein +formatPdf=PDF +formatPng=PNG +formatGif=GIF +formatJpg=JPEG +formatSvg=SVG +formatXml=XML +formatted=Formatted +formattedText=Formatted Text +gap=Gap +glass=Glass +general=General +global=Global +gradient=Gradient +gradientColor=Color +grid=Grid +gridSize=Grid Size +group=Group +guides=Guides +heading=Heading +height=Height +help=Help +hide=Hide +hideIt=Hide {1} +hidden=Hidden +home=Home +horizontal=Horizontal +horizontalFlow=Horizontal Flow +horizontalTree=Horizontal Tree +html=HTML +id=ID +image=Image +images=Images +import=Import +increaseIndent=Increase Indent +insert=Insert +insertColumnBefore=Insert Column Left +insertColumnAfter=Insert Column Right +insertHorizontalRule=Insert Horizontal Rule +insertImage=Insert Image +insertLink=Insert Link +insertRowBefore=Insert Row Above +insertRowAfter=Insert Row Below +invalidInput=Invalid input +invalidName=Invalid name +invalidOrMissingFile=Invalid or missing file +isometric=Isometric +italic=Italic +layers=Layers +landscape=Landscape +laneColor=Lanecolor +layout=Layout +left=Left +leftAlign=Left Align +leftToRight=Left to Right +line=Line +link=Link +lineJumps=Line jumps +lineend=Line End +lineheight=Line Height +linestart=Line Start +linewidth=Linewidth +loading=Loading +lockUnlock=Lock/Unlock +manual=Manual +middle=Middle +misc=Misc +more=More +moreResults=More Results +move=Move +moveSelectionTo=Move Selection to {1} +navigation=Navigation +new=New +noColor=No Color +noFiles=No files +noMoreResults=No more results +none=None +noResultsFor=No results for '{1}' +normal=Normal +north=North +numberedList=Numbered List +opacity=Opacity +open=Open +openArrow=Open Arrow +openFile=Open File +openLink=Open Link +openSupported=Supported format is .XML files saved from this software +openInNewWindow=Open in New Window +openInThisWindow=Open in this Window +options=Options +organic=Organic +orthogonal=Orthogonal +outline=Outline +oval=Oval +pages=Pages +pageView=Page View +pageScale=Page Scale +pageSetup=Page Setup +panTooltip=Space+Drag to Scroll +paperSize=Paper Size +paste=Paste +pasteHere=Paste Here +pasteSize=Paste Size +pattern=Pattern +perimeter=Perimeter +placeholders=Placeholders +plusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone). +portrait=Portrait +position=Position +posterPrint=Poster Print +preview=Preview +print=Print +radialTree=Radial Tree +redo=Redo +removeFormat=Clear Formatting +removeFromGroup=Remove from Group +removeIt=Remove {1} +removeWaypoint=Remove Waypoint +rename=Rename +renameIt=Rename {1} +replace=Replace +replaceIt={1} already exists. Do you want to replace it? +replaceExistingDrawing=Replace existing drawing +reset=Reset +resetView=Reset View +reverse=Reverse +right=Right +rightAlign=Right Align +rightToLeft=Right to Left +rotate=Rotate +rotateTooltip=Click and drag to rotate, click to turn shape only by 90 degrees +rotation=Rotation +rounded=Rounded +save=Save +saveAs=Save as +saved=Saved +scrollbars=Scrollbars +search=Search +searchShapes=Search Shapes +selectAll=Select All +selectEdges=Select Edges +selectFont=Select a Font +selectNone=Select None +selectVertices=Select Vertices +setAsDefaultStyle=Set as Default Style +shadow=Shadow +shape=Shape +sharp=Sharp +sidebarTooltip=Click to expand. Drag and drop shapes into the diagram. Shift+click to change selection. Alt+click to insert and connect. +simple=Simple +simpleArrow=Simple Arrow +size=Size +solid=Solid +sourceSpacing=Source Spacing +south=South +spacing=Spacing +straight=Straight +strikethrough=Strikethrough +strokeColor=Line Color +style=Style +subscript=Subscript +superscript=Superscript +table=Table +targetSpacing=Target Spacing +text=Text +textAlignment=Text Alignment +textOpacity=Text Opacity +toBack=To Back +toFront=To Front +tooltips=Tooltips +top=Top +topAlign=Top Align +topLeft=Top Left +topRight=Top Right +transparent=Transparent +turn=Rotate shape only by 90° +uml=UML +underline=Underline +undo=Undo +ungroup=Ungroup +url=URL +untitledLayer=Untitled Layer +vertical=Vertical +verticalFlow=Vertical Flow +verticalTree=Vertical Tree +view=View +waypoints=Waypoints +west=West +width=Width +wordWrap=Word Wrap +writingDirection=Writing Direction +zoom=Zoom +zoomIn=Zoom In +zoomOut=Zoom Out diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/grapheditor_de.txt b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/grapheditor_de.txt new file mode 100644 index 0000000000000..23f0dcd12e6e4 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/grapheditor_de.txt @@ -0,0 +1,324 @@ +# Resources from graph.properties +alreadyConnected=Knoten schon verbunden +cancel=Abbrechen +close=Schliessen +collapse-expand=Einklappen/Ausklappen +containsValidationErrors=Enthält Validierungsfehler +done=Fertig +doubleClickOrientation=Doppelklicken um Orientierung zu ändern +error=Fehler +errorSavingFile=Fehler beim Speichern der Datei +ok=OK +updatingDocument=Aktualisiere Dokument. Bitte warten... +updatingSelection=Aktualisiere Markierung. Bitte warten... +# Custom resources +about=Über +actualSize=Tatsächliche Grösse +add=Hinzufügen +addLayer=Ebene einfügen +addProperty=Eigenschaft einfügen +addToExistingDrawing=In vorhandene Zeichnung einfügen +addWaypoint=Wegpunkt einfügen +advanced=Erweitert +align=Ausrichten +alignment=Ausrichtung +allChangesLost=Alle Änderungen gehen verloren! +angle=Winkel +apply=Anwenden +arc=Bogen +arrange=Anordnen +arrow=Pfeil +arrows=Pfeile +automatic=Automatisch +autosave=Automatisch Speichern +autosize=Grösse anpassen +back=Zurück +background=Hintergrund +backgroundColor=Hintergrundfarbe +backgroundImage=Hintergrundbild +basic=Einfach +block=Block +blockquote=Zitat +bold=Fett +border=Rahmen +borderWidth=Rahmenbreite +borderColor=Rahmenfarbe +bottom=Unten +bottomAlign=Unten +bottomLeft=Unten links +bottomRight=Unten rechts +bulletedList=Aufzählungsliste +cannotOpenFile=Kann Datei nicht öffnen +center=Zentriert +change=Ändern +changeOrientation=Orientierung ändern +circle=Kreis +classic=Klassisch +clearDefaultStyle=Standardstyle löschen +clearWaypoints=Wegpunkte löschen +clipart=Clipart +collapse=Einklappen +collapseExpand=Ein-/Ausklappen +collapsible=Einklappbar +comic=Comic +connect=Verbinden +connection=Verbindung +connectionPoints=Verbindungspunkte +connectionArrows=Verbindungspfeile +constrainProportions=Proportionen beibehalten +copy=Kopieren +copyConnect=Beim Verbinden kopieren +copySize=Grösse kopieren +create=Erstellen +curved=Gebogen +custom=Benutzerdefiniert +cut=Ausschneiden +dashed=Gestrichelt +decreaseIndent=Einzug verringern +default=Vorgegeben +delete=Löschen +deleteColumn=Spalte löschen +deleteRow=Zeile löschen +diagram=Diagramm +diamond=Diamant +diamondThin=Diamant (Schmal) +direction=Richtung +distribute=Verteilen +divider=Treelinie +documentProperties=Dokumenteigenschaften +dotted=Punktiert +dpi=DPI +drawing=Zeichnung{1} +drawingEmpty=Zeichnung ist leer +drawingTooLarge=Zeichnung ist zu gross +duplicate=Duplizieren +duplicateIt={1} duplizieren +east=Ost +edit=Bearbeiten +editData=Metadaten bearbeiten +editDiagram=Diagramm bearbeiten +editImage=Bild bearbeiten +editLink=Link bearbeiten +editStyle=Style bearbeiten +editTooltip=Tooltip bearbeiten +enterGroup=In Gruppe hinein +enterValue=Wert eingeben +enterName=Namen eingeben +enterPropertyName=Eigenschaftsname eingeben +entityRelation=Entity Relation +exitGroup=Aus Gruppe heraus +expand=Ausklappen +export=Exportieren +extras=Extras +file=Datei +fileNotFound=Datei nicht gefunden +filename=Dateiname +fill=Füllen +fillColor=Füllfarbe +fitPage=Ganze Seite +fitPageWidth=Seitenbreite +fitTwoPages=Zwei Seiten +fitWindow=An Fenstergrösse anpassen +flip=Spiegeln +flipH=Horizontal Spiegeln +flipV=Vertikal Spiegeln +font=Schrift +fontFamily=Schriftart +fontColor=Schriftfarbe +fontSize=Schriftgrösse +format=Format +formatPanel=Bereich "Formatieren" +general=Allgemein +formatPdf=PDF +formatPng=PNG +formatGif=GIF +formatJpg=JPEG +formatSvg=SVG +formatXml=XML +formatted=Formatiert +formattedText=Formatierter Text +gap=Gap +glass=Glas +general=Allgemein +global=Global +gradient=Verlauf +gradientColor=Farbe +grid=Gitternetz +gridSize=Gitternetzgrösse +group=Gruppieren +guides=Führungslinien +heading=Überschrift +height=Höhe +help=Hilfe +hide=Verstecken +hideIt={1} verstecken +hidden=Versteckt +home=Ursprung +horizontal=Horizontal +horizontalFlow=Horizontaler Fluss +horizontalTree=Horizontaler Baum +html=HTML +id=ID +image=Bild +images=Bilder +import=Importieren +increaseIndent=Einzug vergrössern +insert=Einfügen +insertColumnBefore=Spalte links einfügen +insertColumnAfter=Spalte rechts einfügen +insertHorizontalRule=Horizontale Linie einfügen +insertImage=Bild einfügen +insertLink=Link einfügen +insertRowBefore=Zeile oberhalb einfügen +insertRowAfter=Zeile unterhalb einfügen +invalidInput=Ungültige Eingabe +invalidName=Ungültiger Name +invalidOrMissingFile=Ungültige oder fehlende Datei +isometric=Isometrisch +italic=Kursiv +layers=Ebenen +landscape=Querformat +laneColor=Lane-Farbe +layout=Layout +left=Links +leftAlign=Links +leftToRight=Von links nach rechts +line=Linie +lineJumps=Liniensprünge +link=Link +lineend=Linienende +lineheight=Zeilenhöhe +linestart=Linienanfang +linewidth=Linienbreite +loading=Wird geladen +lockUnlock=Sperren/Entsperren +manual=Manuell +middle=Mitte +misc=Verschiedenes +more=Mehr +moreResults=Mehr Resultate +move=Verschieben +moveSelectionTo=Markierung in {1} einfügen +navigation=Navigation +new=Neu +noColor=Keine Farbe +noFiles=Keine Dateien +noMoreResults=Keine Weiteren Resultate +none=Ohne +noResultsFor=Keine Resultate für '{1}' +normal=Normal +north=Nord +numberedList=Nummerierte Liste +opacity=Deckkraft +open=Öffnen +openArrow=Offen +openFile=Datei öffnen +openLink=Link öffnen +openSupported=Unterstützte Formate sind mit dieser Anwendung erstellte .XML Dateien +openInNewWindow=In neuem Fenster öffnen +openInThisWindow=In diesem Fenster öffnen +options=Optionen +organic=Organisch +orthogonal=Orthogonal +outline=Übersicht +oval=Oval +pages=Seiten +pageView=Seitenansicht +pageScale=Seitenskalierung +pageSetup=Seite einrichten +panTooltip=Leertaste+Ziehen um zu scrollen +paperSize=Papiergrösse +paste=Einfügen +pasteHere=Hier einfügen +pasteSize=Grösse einfügen +pattern=Muster +perimeter=Umfang +placeholders=Platzhalter +plusTooltip=Klicken zum Verbinden und Klonen (Ctrl-Taste gedrückt halten zum Klonen, Shift+Klick zum Verbinden). Ziehen zum verbinden (Ctrl-Taste gedrückt halten zum Klonen). +portrait=Hochformat +position=Position +posterPrint=Posterdruck +preview=Vorschau +print=Drucken +radialTree=Radialer Baum +redo=Wiederherstellen +removeFormat=Formatierung entfernen +removeFromGroup=Aus Gruppe entfernen +removeIt={1} entfernen +removeWaypoint=Wegpunkt entfernen +rename=Umbenennen +renameIt={1} umbenennen +replace=Ersetzen +replaceIt={1} existiert bereits. Soll die Datei überschrieben werden? +replaceExistingDrawing=Vorhandene Zeichnung ersetzen +reset=Zurücksetzen +resetView=Ansicht zurücksetzen +reverse=Umdrehen +right=Rechts +rightAlign=Rechts +rightToLeft=Von rechts nach links +rotate=Rotieren +rotateTooltip=Klicken und ziehen um zu rotieren, klicken um nur Form um 90 Grad zu drehen +rotation=Rotation +rounded=Abgerundet +save=Speichern +saveAs=Speichern unter +saved=Gespeichert +scrollbars=Scrollbars +search=Suchen +searchShapes=Formen suchen +selectAll=Alles markieren +selectEdges=Kanten markieren +selectFont=Schriftart wählen +selectNone=Markierung aufheben +selectVertices=Knoten markieren +setAsDefaultStyle=Als Standardstyle festlegen +shadow=Schatten +shape=Shape +sharp=Eckig +sidebarTooltip=Klicken um zu erweitern. Objekte per Drag & Drop ins Diagramm einfügen. Shift+Klick um die Markierung zu ändern. Alt+Klick zum Einfügen und Verbinden. +simple=Einfach +simpleArrow=Einfacher Pfeil +size=Grösse +solid=Durchgehend +sourceSpacing=Anfangsabstand +south=Süd +spacing=Abstand +straight=Gerade +strikethrough=Durchgestrichen +strokeColor=Linienfarbe +style=Style +subscript=Tiefgestellt +superscript=Hochgestellt +table=Tabelle +targetSpacing=Endabstand +text=Text +textAlignment=Text Ausrichtung +textOpacity=Text Deckkraft +toBack=Nach hinten +toFront=Nach vorne +tooltips=Tooltips +top=Oben +topLeft=Oben links +topRight=Oben rechts +topAlign=Oben +transparent=Transparent +turn=Nur Form um 90° drehen +uml=UML +underline=Unterstrichen +undo=Rückgängig +ungroup=Gruppierung aufheben +untitledLayer=Unbenannte Ebene +url=URL +vertical=Vertikal +verticalFlow=Vertikaler Fluss +verticalTree=Vertikaler Baum +view=Ansicht +waypoints=Wegpunkte +west=West +width=Breite +wordWrap=Autom. Zeilenumbruch +writingDirection=Textrichtung +zoom=Zoom +zoomIn=Hineinzoomen +zoomOut=Herauszoomen diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/help.html b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/help.html new file mode 100644 index 0000000000000..4d2ecbcbfd575 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/help.html @@ -0,0 +1,20 @@ + + + + Graph Editor Help + + + + +

Graph Editor Help

+

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit + amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam + nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet.

+ + diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/help_de.html b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/help_de.html new file mode 100644 index 0000000000000..165f552cd9d5f --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/resources/help_de.html @@ -0,0 +1,20 @@ + + + + Graph Editor Hilfe + + + + +

Graph Editor Hilfe

+

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy + eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam + voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet + clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit + amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam + nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed + diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. + Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor + sit amet.

+ + diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/android/android.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/android/android.xml new file mode 100644 index 0000000000000..7293db8db42f0 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/android/android.xml @@ -0,0 +1,1905 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/arrows.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/arrows.xml new file mode 100644 index 0000000000000..57483be2bf3fe --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/arrows.xml @@ -0,0 +1,846 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/atlassian.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/atlassian.xml new file mode 100644 index 0000000000000..630d729957989 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/atlassian.xml @@ -0,0 +1,713 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/compute.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/compute.xml new file mode 100644 index 0000000000000..e85c1e5fe6eda --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/compute.xml @@ -0,0 +1,720 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/content_delivery.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/content_delivery.xml new file mode 100644 index 0000000000000..93ad07cbfa34b --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/content_delivery.xml @@ -0,0 +1,445 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/database.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/database.xml new file mode 100644 index 0000000000000..ab71f9518c11e --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/database.xml @@ -0,0 +1,1358 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/deployment_management.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/deployment_management.xml new file mode 100644 index 0000000000000..3709e5cf5f248 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/deployment_management.xml @@ -0,0 +1,306 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/groups.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/groups.xml new file mode 100644 index 0000000000000..3ecf05193ae07 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/groups.xml @@ -0,0 +1,1798 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/messaging.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/messaging.xml new file mode 100644 index 0000000000000..39a7c31e30685 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/messaging.xml @@ -0,0 +1,670 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/misc.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/misc.xml new file mode 100644 index 0000000000000..af463eb17ec2b --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/misc.xml @@ -0,0 +1,274 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/networking.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/networking.xml new file mode 100644 index 0000000000000..622e6e9cb1d76 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/networking.xml @@ -0,0 +1,872 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/non_service_specific.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/non_service_specific.xml new file mode 100644 index 0000000000000..6b34676e3e953 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/non_service_specific.xml @@ -0,0 +1,734 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/on_demand_workforce.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/on_demand_workforce.xml new file mode 100644 index 0000000000000..87b8722bad835 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/on_demand_workforce.xml @@ -0,0 +1,422 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/storage.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/storage.xml new file mode 100644 index 0000000000000..b51465e8082c3 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws/storage.xml @@ -0,0 +1,376 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/administration_and_security.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/administration_and_security.xml new file mode 100644 index 0000000000000..2f4ca8f640d32 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/administration_and_security.xml @@ -0,0 +1,358 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/analytics.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/analytics.xml new file mode 100644 index 0000000000000..6deb0ce718679 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/analytics.xml @@ -0,0 +1,1318 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/app_services.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/app_services.xml new file mode 100644 index 0000000000000..55c87fa0559be --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/app_services.xml @@ -0,0 +1,2362 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/compute_and_networking.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/compute_and_networking.xml new file mode 100644 index 0000000000000..0607b63bba9a2 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/compute_and_networking.xml @@ -0,0 +1,6215 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/database.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/database.xml new file mode 100644 index 0000000000000..df1f8bdfc4a0e --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/database.xml @@ -0,0 +1,6832 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/deployment_and_management.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/deployment_and_management.xml new file mode 100644 index 0000000000000..659d1c1802688 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/deployment_and_management.xml @@ -0,0 +1,2785 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/developer_tools.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/developer_tools.xml new file mode 100644 index 0000000000000..d41b7fdf64abb --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/developer_tools.xml @@ -0,0 +1,294 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/enterprise_applications.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/enterprise_applications.xml new file mode 100644 index 0000000000000..55e64c84e2d19 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/enterprise_applications.xml @@ -0,0 +1,235 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/game_development.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/game_development.xml new file mode 100644 index 0000000000000..914931fece707 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/game_development.xml @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/internet_of_things.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/internet_of_things.xml new file mode 100644 index 0000000000000..1bf2dc13879e0 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/internet_of_things.xml @@ -0,0 +1,4799 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/management_tools.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/management_tools.xml new file mode 100644 index 0000000000000..ab0dfdd8f9fd1 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/management_tools.xml @@ -0,0 +1,208 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/mobile_services.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/mobile_services.xml new file mode 100644 index 0000000000000..0627177ccd91f --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/mobile_services.xml @@ -0,0 +1,1141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/networking.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/networking.xml new file mode 100644 index 0000000000000..1ee2a45737460 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/networking.xml @@ -0,0 +1,277 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/non-service_specific.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/non-service_specific.xml new file mode 100644 index 0000000000000..d67340d5069a0 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/non-service_specific.xml @@ -0,0 +1,2641 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/on-demand_workforce.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/on-demand_workforce.xml new file mode 100644 index 0000000000000..aebc020f7b3cf --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/on-demand_workforce.xml @@ -0,0 +1,886 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/sdks.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/sdks.xml new file mode 100644 index 0000000000000..48ed4a3f38a69 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/sdks.xml @@ -0,0 +1,1351 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/security_and_identity.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/security_and_identity.xml new file mode 100644 index 0000000000000..d55dad44dde17 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/security_and_identity.xml @@ -0,0 +1,715 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/storage_and_content_delivery.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/storage_and_content_delivery.xml new file mode 100644 index 0000000000000..f7b3cb4fa62bc --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws2/storage_and_content_delivery.xml @@ -0,0 +1,2780 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws3.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws3.xml new file mode 100644 index 0000000000000..ab27f1eac3fba --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws3.xml @@ -0,0 +1,34201 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws3d.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws3d.xml new file mode 100644 index 0000000000000..5b3039443ac27 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws3d.xml @@ -0,0 +1,569 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws4.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws4.xml new file mode 100644 index 0000000000000..feb4cb2897f6f --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/aws4.xml @@ -0,0 +1,56477 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/azure.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/azure.xml new file mode 100644 index 0000000000000..734581ac4ed0e --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/azure.xml @@ -0,0 +1,5541 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/basic.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/basic.xml new file mode 100644 index 0000000000000..a87ac8fa1a254 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/basic.xml @@ -0,0 +1,909 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/bootstrap.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/bootstrap.xml new file mode 100644 index 0000000000000..8cb896db3fa63 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/bootstrap.xml @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/bpmn.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/bpmn.xml new file mode 100644 index 0000000000000..af8918d9af662 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/bpmn.xml @@ -0,0 +1,1162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cabinets.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cabinets.xml new file mode 100644 index 0000000000000..ded6b4a0dee10 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cabinets.xml @@ -0,0 +1,2359 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/buildings.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/buildings.xml new file mode 100644 index 0000000000000..0ede78d8fb2c2 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/buildings.xml @@ -0,0 +1,1449 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/computers_and_peripherals.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/computers_and_peripherals.xml new file mode 100644 index 0000000000000..20c9274883ea3 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/computers_and_peripherals.xml @@ -0,0 +1,2438 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/controllers_and_modules.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/controllers_and_modules.xml new file mode 100644 index 0000000000000..695fdc951aaf7 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/controllers_and_modules.xml @@ -0,0 +1,1209 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/directors.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/directors.xml new file mode 100644 index 0000000000000..f9356345c6151 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/directors.xml @@ -0,0 +1,533 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/hubs_and_gateways.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/hubs_and_gateways.xml new file mode 100644 index 0000000000000..a64055d0dbbcf --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/hubs_and_gateways.xml @@ -0,0 +1,812 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/misc.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/misc.xml new file mode 100644 index 0000000000000..5434d3a3b73d0 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/misc.xml @@ -0,0 +1,15890 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/modems_and_phones.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/modems_and_phones.xml new file mode 100644 index 0000000000000..4d2e83c853bd4 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/modems_and_phones.xml @@ -0,0 +1,1871 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/people.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/people.xml new file mode 100644 index 0000000000000..8bf6eb89d79d6 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/people.xml @@ -0,0 +1,2192 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/routers.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/routers.xml new file mode 100644 index 0000000000000..0bd7479a839b1 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/routers.xml @@ -0,0 +1,3146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/security.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/security.xml new file mode 100644 index 0000000000000..da754dc60e305 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/security.xml @@ -0,0 +1,942 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/servers.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/servers.xml new file mode 100644 index 0000000000000..4d61dfbcd629c --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/servers.xml @@ -0,0 +1,1637 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/storage.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/storage.xml new file mode 100644 index 0000000000000..495a3da9d746d --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/storage.xml @@ -0,0 +1,1648 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/switches.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/switches.xml new file mode 100644 index 0000000000000..4da568b3a9d04 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/switches.xml @@ -0,0 +1,3320 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/wireless.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/wireless.xml new file mode 100644 index 0000000000000..3c9a4c0cd96db --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco/wireless.xml @@ -0,0 +1,1135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco_safe/architecture.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco_safe/architecture.xml new file mode 100644 index 0000000000000..1ccb4d4fdf40b --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco_safe/architecture.xml @@ -0,0 +1,5338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco_safe/capability.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco_safe/capability.xml new file mode 100644 index 0000000000000..776e0889114f5 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco_safe/capability.xml @@ -0,0 +1,8999 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco_safe/design.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco_safe/design.xml new file mode 100644 index 0000000000000..5a10e09a5299e --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco_safe/design.xml @@ -0,0 +1,7556 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco_safe/threat.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco_safe/threat.xml new file mode 100644 index 0000000000000..5c6ed1e51e4f9 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/cisco_safe/threat.xml @@ -0,0 +1,9524 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/citrix.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/citrix.xml new file mode 100644 index 0000000000000..21379d6aface5 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/citrix.xml @@ -0,0 +1,20213 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Credit_Card_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Credit_Card_128x128.png new file mode 100644 index 0000000000000..d280580ccdf91 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Credit_Card_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Database_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Database_128x128.png new file mode 100644 index 0000000000000..4add7147c6a58 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Database_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Doctor1_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Doctor1_128x128.png new file mode 100644 index 0000000000000..d5a4bb7b40807 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Doctor1_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Earth_globe_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Earth_globe_128x128.png new file mode 100644 index 0000000000000..438d41460e49c Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Earth_globe_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Email_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Email_128x128.png new file mode 100644 index 0000000000000..af81e0ba44cdb Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Email_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Empty_Folder_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Empty_Folder_128x128.png new file mode 100644 index 0000000000000..85d5b0f7c1ade Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Empty_Folder_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Firewall_02_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Firewall_02_128x128.png new file mode 100644 index 0000000000000..0cf90fdd69674 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Firewall_02_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Full_Folder_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Full_Folder_128x128.png new file mode 100644 index 0000000000000..6a6496ea68731 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Full_Folder_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Gear_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Gear_128x128.png new file mode 100644 index 0000000000000..40d373515a44f Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Gear_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Graph_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Graph_128x128.png new file mode 100644 index 0000000000000..7f20b4e43d1bb Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Graph_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Laptop_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Laptop_128x128.png new file mode 100644 index 0000000000000..ab7ea65966b8c Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Laptop_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Lock_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Lock_128x128.png new file mode 100644 index 0000000000000..d815f0eb9213d Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Lock_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/MacBook_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/MacBook_128x128.png new file mode 100644 index 0000000000000..0f6802ccfaff7 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/MacBook_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Monitor_Tower_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Monitor_Tower_128x128.png new file mode 100644 index 0000000000000..223b27ad7940e Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Monitor_Tower_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Piggy_Bank_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Piggy_Bank_128x128.png new file mode 100644 index 0000000000000..89f51c15436fe Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Piggy_Bank_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Pilot1_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Pilot1_128x128.png new file mode 100644 index 0000000000000..5b7dea03569f1 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Pilot1_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Printer_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Printer_128x128.png new file mode 100644 index 0000000000000..3cee0427c8b24 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Printer_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Router_Icon_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Router_Icon_128x128.png new file mode 100644 index 0000000000000..49345e54570a5 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Router_Icon_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Safe_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Safe_128x128.png new file mode 100644 index 0000000000000..51115e8ec3ec5 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Safe_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Security1_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Security1_128x128.png new file mode 100644 index 0000000000000..9cf20a29d81fc Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Security1_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Server_Tower_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Server_Tower_128x128.png new file mode 100644 index 0000000000000..a0ec7b16ddeea Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Server_Tower_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Shopping_Cart_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Shopping_Cart_128x128.png new file mode 100644 index 0000000000000..ec1e18446e701 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Shopping_Cart_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Software_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Software_128x128.png new file mode 100644 index 0000000000000..a3deb93e79224 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Software_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Soldier1_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Soldier1_128x128.png new file mode 100644 index 0000000000000..27f4b4bdf674c Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Soldier1_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Suit1_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Suit1_128x128.png new file mode 100644 index 0000000000000..f6c0a8ded4a94 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Suit1_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Suit2_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Suit2_128x128.png new file mode 100644 index 0000000000000..a8b714de3cf90 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Suit2_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Suit3_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Suit3_128x128.png new file mode 100644 index 0000000000000..68a1f1c635f05 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Suit3_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Tech1_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Tech1_128x128.png new file mode 100644 index 0000000000000..95e411012636f Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Tech1_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Telesales1_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Telesales1_128x128.png new file mode 100644 index 0000000000000..6ef7b8a7f78d1 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Telesales1_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Virtual_Machine_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Virtual_Machine_128x128.png new file mode 100644 index 0000000000000..75895ea694c13 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Virtual_Machine_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Virus_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Virus_128x128.png new file mode 100644 index 0000000000000..f0dfbcb71109e Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Virus_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Wireless_Router_N_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Wireless_Router_N_128x128.png new file mode 100644 index 0000000000000..9bace31753aa8 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Wireless_Router_N_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Worker1_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Worker1_128x128.png new file mode 100644 index 0000000000000..c69c9bd42191e Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Worker1_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Workstation_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Workstation_128x128.png new file mode 100644 index 0000000000000..9aeef9e1f3fdb Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/Workstation_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/iMac_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/iMac_128x128.png new file mode 100644 index 0000000000000..ccdb5141e5560 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/iMac_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/iPad_128x128.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/iPad_128x128.png new file mode 100644 index 0000000000000..88dc8070296ec Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/clipart/iPad_128x128.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/eip.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/eip.xml new file mode 100644 index 0000000000000..182a042789ad3 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/eip.xml @@ -0,0 +1,2003 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/abstract.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/abstract.xml new file mode 100644 index 0000000000000..2e4c8ee9db9a1 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/abstract.xml @@ -0,0 +1,667 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/capacitors.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/capacitors.xml new file mode 100644 index 0000000000000..56d2c84a3bcba --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/capacitors.xml @@ -0,0 +1,439 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/diodes.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/diodes.xml new file mode 100644 index 0000000000000..926ea01841a2e --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/diodes.xml @@ -0,0 +1,352 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/electro-mechanical.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/electro-mechanical.xml new file mode 100644 index 0000000000000..8c80b44a56c8b --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/electro-mechanical.xml @@ -0,0 +1,1722 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/iec417.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/iec417.xml new file mode 100644 index 0000000000000..1120c63eb7dc8 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/iec417.xml @@ -0,0 +1,1143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/iec_logic_gates.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/iec_logic_gates.xml new file mode 100644 index 0000000000000..e03f61efd9511 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/iec_logic_gates.xml @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/inductors.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/inductors.xml new file mode 100644 index 0000000000000..749103a196c15 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/inductors.xml @@ -0,0 +1,993 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/instruments.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/instruments.xml new file mode 100644 index 0000000000000..0555614cf2401 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/instruments.xml @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/logic_gates.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/logic_gates.xml new file mode 100644 index 0000000000000..0ec8b3bcea817 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/logic_gates.xml @@ -0,0 +1,672 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/miscellaneous.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/miscellaneous.xml new file mode 100644 index 0000000000000..efb3c02ff7dfc --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/miscellaneous.xml @@ -0,0 +1,1649 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/mosfets1.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/mosfets1.xml new file mode 100644 index 0000000000000..bfdd67b23186b --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/mosfets1.xml @@ -0,0 +1,821 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/mosfets2.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/mosfets2.xml new file mode 100644 index 0000000000000..6e61085409c40 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/mosfets2.xml @@ -0,0 +1,560 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/op_amps.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/op_amps.xml new file mode 100644 index 0000000000000..05b3f894b8e4e --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/op_amps.xml @@ -0,0 +1,438 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/opto_electronics.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/opto_electronics.xml new file mode 100644 index 0000000000000..922bad6403588 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/opto_electronics.xml @@ -0,0 +1,654 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/plc_ladder.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/plc_ladder.xml new file mode 100644 index 0000000000000..425c743cf9647 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/plc_ladder.xml @@ -0,0 +1,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/power_semiconductors.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/power_semiconductors.xml new file mode 100644 index 0000000000000..8af2dc40b141a --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/power_semiconductors.xml @@ -0,0 +1,743 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/radio.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/radio.xml new file mode 100644 index 0000000000000..e79e415b796ec --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/radio.xml @@ -0,0 +1,268 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/resistors.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/resistors.xml new file mode 100644 index 0000000000000..4090383adccfb --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/resistors.xml @@ -0,0 +1,617 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/rot_mech.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/rot_mech.xml new file mode 100644 index 0000000000000..ef768904e3a66 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/rot_mech.xml @@ -0,0 +1,367 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/signal_sources.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/signal_sources.xml new file mode 100644 index 0000000000000..acd0dda359db0 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/signal_sources.xml @@ -0,0 +1,413 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/thermionic_devices.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/thermionic_devices.xml new file mode 100644 index 0000000000000..a87d31f72ff84 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/thermionic_devices.xml @@ -0,0 +1,295 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/transistors.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/transistors.xml new file mode 100644 index 0000000000000..0ff4f1dab3561 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/transistors.xml @@ -0,0 +1,600 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/transmission.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/transmission.xml new file mode 100644 index 0000000000000..d33695d541f7f --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/transmission.xml @@ -0,0 +1,297 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/waveforms.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/waveforms.xml new file mode 100644 index 0000000000000..9eb9fb9e6efa1 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/electrical/waveforms.xml @@ -0,0 +1,361 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/floorplan.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/floorplan.xml new file mode 100644 index 0000000000000..41103415217a9 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/floorplan.xml @@ -0,0 +1,1809 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/flowchart.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/flowchart.xml new file mode 100644 index 0000000000000..87c8b42b6af2d --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/flowchart.xml @@ -0,0 +1,920 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/big_data.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/big_data.xml new file mode 100644 index 0000000000000..7d63619ef3783 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/big_data.xml @@ -0,0 +1,777 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/compute.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/compute.xml new file mode 100644 index 0000000000000..be5a41d780e67 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/compute.xml @@ -0,0 +1,708 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/developer_tools.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/developer_tools.xml new file mode 100644 index 0000000000000..d564e0e7f65a4 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/developer_tools.xml @@ -0,0 +1,289 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/extras.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/extras.xml new file mode 100644 index 0000000000000..c20698ffe3c52 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/extras.xml @@ -0,0 +1,748 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/identity_and_security.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/identity_and_security.xml new file mode 100644 index 0000000000000..c8b923d28514e --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/identity_and_security.xml @@ -0,0 +1,681 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/machine_learning.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/machine_learning.xml new file mode 100644 index 0000000000000..e88a6a44d22d7 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/machine_learning.xml @@ -0,0 +1,632 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/management_tools.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/management_tools.xml new file mode 100644 index 0000000000000..6d54f545394ad --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/management_tools.xml @@ -0,0 +1,761 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/networking.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/networking.xml new file mode 100644 index 0000000000000..6d917462f453a --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/networking.xml @@ -0,0 +1,951 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/product_cards.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/product_cards.xml new file mode 100644 index 0000000000000..e54f6829f8938 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/product_cards.xml @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/storage_databases.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/storage_databases.xml new file mode 100644 index 0000000000000..6b9c69034fce2 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp/storage_databases.xml @@ -0,0 +1,593 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp2.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp2.xml new file mode 100644 index 0000000000000..b43fb71b995e7 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gcp2.xml @@ -0,0 +1,23206 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gmdl.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gmdl.xml new file mode 100644 index 0000000000000..4cd7576e3970e --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/gmdl.xml @@ -0,0 +1,2952 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/ios7/icons.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/ios7/icons.xml new file mode 100644 index 0000000000000..2e434bb4e5dbb --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/ios7/icons.xml @@ -0,0 +1,2484 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/ios7/misc.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/ios7/misc.xml new file mode 100644 index 0000000000000..dc828ec1d4371 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/ios7/misc.xml @@ -0,0 +1,2184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/lean_mapping.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/lean_mapping.xml new file mode 100644 index 0000000000000..d7fe23f5af662 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/lean_mapping.xml @@ -0,0 +1,462 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/advertising.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/advertising.xml new file mode 100644 index 0000000000000..790363d9a5003 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/advertising.xml @@ -0,0 +1,223 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/calendars.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/calendars.xml new file mode 100644 index 0000000000000..d81328071d142 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/calendars.xml @@ -0,0 +1,1595 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/carousel.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/carousel.xml new file mode 100644 index 0000000000000..7979af3e82607 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/carousel.xml @@ -0,0 +1,599 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/charts_and_tables.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/charts_and_tables.xml new file mode 100644 index 0000000000000..08a693710172a --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/charts_and_tables.xml @@ -0,0 +1,626 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/controls.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/controls.xml new file mode 100644 index 0000000000000..7a185933eb877 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/controls.xml @@ -0,0 +1,648 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/form_elements.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/form_elements.xml new file mode 100644 index 0000000000000..baba97cdc766d --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/form_elements.xml @@ -0,0 +1,433 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/menus_and_buttons.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/menus_and_buttons.xml new file mode 100644 index 0000000000000..eb55a14f3241b --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/menus_and_buttons.xml @@ -0,0 +1,848 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/misc.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/misc.xml new file mode 100644 index 0000000000000..67df6ab17e2fa --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/misc.xml @@ -0,0 +1,2183 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/tabs.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/tabs.xml new file mode 100644 index 0000000000000..f05de3e5c41c6 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mockup/tabs.xml @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/cloud.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/cloud.xml new file mode 100644 index 0000000000000..22fdb3f30fe01 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/cloud.xml @@ -0,0 +1,10257 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/deprecated.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/deprecated.xml new file mode 100644 index 0000000000000..65f07db23659e --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/deprecated.xml @@ -0,0 +1,946 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/enterprise.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/enterprise.xml new file mode 100644 index 0000000000000..c306d3d05f1ef --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/enterprise.xml @@ -0,0 +1,5289 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/general.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/general.xml new file mode 100644 index 0000000000000..d79a2b12e6188 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/general.xml @@ -0,0 +1,1412 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/general_symbols.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/general_symbols.xml new file mode 100644 index 0000000000000..69f84c7bc8dbe --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/general_symbols.xml @@ -0,0 +1,587 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/intune.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/intune.xml new file mode 100644 index 0000000000000..6e60eb96f8f45 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/intune.xml @@ -0,0 +1,3517 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/oms.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/oms.xml new file mode 100644 index 0000000000000..562d22cbecd8f --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/oms.xml @@ -0,0 +1,1458 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/opsmanager.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/opsmanager.xml new file mode 100644 index 0000000000000..63cb46eda9434 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/opsmanager.xml @@ -0,0 +1,2900 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/other.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/other.xml new file mode 100644 index 0000000000000..81131fb0f02d6 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/other.xml @@ -0,0 +1,1292 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/system_center.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/system_center.xml new file mode 100644 index 0000000000000..e1924b73afb7a --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/system_center.xml @@ -0,0 +1,675 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/vm.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/vm.xml new file mode 100644 index 0000000000000..306e278c34cfe --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/mscae/vm.xml @@ -0,0 +1,1949 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/networks.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/networks.xml new file mode 100644 index 0000000000000..24191cc4ab46c --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/networks.xml @@ -0,0 +1,4976 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/clouds.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/clouds.xml new file mode 100644 index 0000000000000..7559b2c43467f --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/clouds.xml @@ -0,0 +1,847 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/communications.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/communications.xml new file mode 100644 index 0000000000000..8b5d43ba6a600 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/communications.xml @@ -0,0 +1,7570 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/concepts.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/concepts.xml new file mode 100644 index 0000000000000..2fa7fca02b386 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/concepts.xml @@ -0,0 +1,6700 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/databases.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/databases.xml new file mode 100644 index 0000000000000..3e6d8792df8b9 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/databases.xml @@ -0,0 +1,1748 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/devices.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/devices.xml new file mode 100644 index 0000000000000..71addc3ad524f --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/devices.xml @@ -0,0 +1,3171 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/security.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/security.xml new file mode 100644 index 0000000000000..5ec8e09018443 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/security.xml @@ -0,0 +1,2258 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/servers.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/servers.xml new file mode 100644 index 0000000000000..2d1366a4586ab --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/servers.xml @@ -0,0 +1,8510 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/services.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/services.xml new file mode 100644 index 0000000000000..c0e0344e2c3c8 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/services.xml @@ -0,0 +1,3232 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/sites.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/sites.xml new file mode 100644 index 0000000000000..b3d0e028120fa --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/sites.xml @@ -0,0 +1,1731 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/users.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/users.xml new file mode 100644 index 0000000000000..128d5ba7dcddc --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/office/users.xml @@ -0,0 +1,2307 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/agitators.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/agitators.xml new file mode 100644 index 0000000000000..97099e4da1524 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/agitators.xml @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/apparatus_elements.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/apparatus_elements.xml new file mode 100644 index 0000000000000..30f1d7fb15361 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/apparatus_elements.xml @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/centrifuges.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/centrifuges.xml new file mode 100644 index 0000000000000..4cc93ac22d9d1 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/centrifuges.xml @@ -0,0 +1,240 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/compressors.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/compressors.xml new file mode 100644 index 0000000000000..596f20f5c53f4 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/compressors.xml @@ -0,0 +1,376 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/compressors_iso.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/compressors_iso.xml new file mode 100644 index 0000000000000..96cec30f89717 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/compressors_iso.xml @@ -0,0 +1,286 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/crushers_grinding.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/crushers_grinding.xml new file mode 100644 index 0000000000000..e07db2b2e137a --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/crushers_grinding.xml @@ -0,0 +1,385 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/driers.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/driers.xml new file mode 100644 index 0000000000000..af161877c11e5 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/driers.xml @@ -0,0 +1,235 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/engines.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/engines.xml new file mode 100644 index 0000000000000..eec950f7e0367 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/engines.xml @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/feeders.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/feeders.xml new file mode 100644 index 0000000000000..c8208a00e7553 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/feeders.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/filters.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/filters.xml new file mode 100644 index 0000000000000..66d1972ebbf82 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/filters.xml @@ -0,0 +1,429 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/fittings.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/fittings.xml new file mode 100644 index 0000000000000..ba53e25a83a4b --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/fittings.xml @@ -0,0 +1,628 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/flow_sensors.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/flow_sensors.xml new file mode 100644 index 0000000000000..bdc9b1099261d --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/flow_sensors.xml @@ -0,0 +1,328 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/heat_exchangers.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/heat_exchangers.xml new file mode 100644 index 0000000000000..6670b3f1af7f9 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/heat_exchangers.xml @@ -0,0 +1,809 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/instruments.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/instruments.xml new file mode 100644 index 0000000000000..00c47a2e869e7 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/instruments.xml @@ -0,0 +1,571 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/misc.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/misc.xml new file mode 100644 index 0000000000000..01a8eae55a196 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/misc.xml @@ -0,0 +1,2058 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/mixers.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/mixers.xml new file mode 100644 index 0000000000000..a4f451d69154b --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/mixers.xml @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/piping.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/piping.xml new file mode 100644 index 0000000000000..c3111e95432df --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/piping.xml @@ -0,0 +1,748 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/pumps.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/pumps.xml new file mode 100644 index 0000000000000..41e0b7ffacb27 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/pumps.xml @@ -0,0 +1,602 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/pumps_din.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/pumps_din.xml new file mode 100644 index 0000000000000..19df0dd9d67c3 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/pumps_din.xml @@ -0,0 +1,221 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/pumps_iso.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/pumps_iso.xml new file mode 100644 index 0000000000000..54db32bf1b7fb --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/pumps_iso.xml @@ -0,0 +1,199 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/separators.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/separators.xml new file mode 100644 index 0000000000000..ddae41ed517ac --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/separators.xml @@ -0,0 +1,423 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/shaping_machines.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/shaping_machines.xml new file mode 100644 index 0000000000000..8d10ff3dfc06e --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/shaping_machines.xml @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/valves.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/valves.xml new file mode 100644 index 0000000000000..5ded108c820da --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/valves.xml @@ -0,0 +1,846 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/vessels.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/vessels.xml new file mode 100644 index 0000000000000..064d6b3a7021d --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/pid/vessels.xml @@ -0,0 +1,1847 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/apc.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/apc.xml new file mode 100644 index 0000000000000..e30ff08cc8783 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/apc.xml @@ -0,0 +1,277 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/cisco.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/cisco.xml new file mode 100644 index 0000000000000..5d01bd4125992 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/cisco.xml @@ -0,0 +1,16373 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/dell.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/dell.xml new file mode 100644 index 0000000000000..4c04b09f09ee2 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/dell.xml @@ -0,0 +1,5617 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/f5.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/f5.xml new file mode 100644 index 0000000000000..bedda621611b6 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/f5.xml @@ -0,0 +1,7923 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/general.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/general.xml new file mode 100644 index 0000000000000..0dbd95ae95080 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/general.xml @@ -0,0 +1,3477 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/hp.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/hp.xml new file mode 100644 index 0000000000000..87aadec6df26f --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/hp.xml @@ -0,0 +1,2057 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/ibm.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/ibm.xml new file mode 100644 index 0000000000000..f08dec9596405 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/ibm.xml @@ -0,0 +1,2657 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/oracle.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/oracle.xml new file mode 100644 index 0000000000000..f056c128e6085 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/rack/oracle.xml @@ -0,0 +1,5140 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/animals.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/animals.xml new file mode 100644 index 0000000000000..0b91de57a54bb --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/animals.xml @@ -0,0 +1,1515 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/food.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/food.xml new file mode 100644 index 0000000000000..6e64c8cd3932e --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/food.xml @@ -0,0 +1,615 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/healthcare.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/healthcare.xml new file mode 100644 index 0000000000000..5e6ee26e90261 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/healthcare.xml @@ -0,0 +1,5753 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/nature.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/nature.xml new file mode 100644 index 0000000000000..32bb252351f02 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/nature.xml @@ -0,0 +1,1049 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/people.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/people.xml new file mode 100644 index 0000000000000..032afa34a5c94 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/people.xml @@ -0,0 +1,1603 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/safety.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/safety.xml new file mode 100644 index 0000000000000..069a2018a60a4 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/safety.xml @@ -0,0 +1,1644 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/science.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/science.xml new file mode 100644 index 0000000000000..b2205f0f95dc7 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/science.xml @@ -0,0 +1,434 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/sports.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/sports.xml new file mode 100644 index 0000000000000..365a8d2bbb992 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/sports.xml @@ -0,0 +1,6035 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/tech.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/tech.xml new file mode 100644 index 0000000000000..d6ad3a76d6c62 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/tech.xml @@ -0,0 +1,1295 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/transportation.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/transportation.xml new file mode 100644 index 0000000000000..cf18354ed8ee7 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/transportation.xml @@ -0,0 +1,6297 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/travel.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/travel.xml new file mode 100644 index 0000000000000..e7094378b004a --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/signs/travel.xml @@ -0,0 +1,3450 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/sitemap.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/sitemap.xml new file mode 100644 index 0000000000000..30c2450dc1040 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/sitemap.xml @@ -0,0 +1,4221 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/veeam/2d.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/veeam/2d.xml new file mode 100644 index 0000000000000..3ece184c71b72 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/veeam/2d.xml @@ -0,0 +1,11861 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/veeam/3d.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/veeam/3d.xml new file mode 100644 index 0000000000000..3ad8a8df7dd99 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/veeam/3d.xml @@ -0,0 +1,11155 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/veeam/veeam.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/veeam/veeam.xml new file mode 100644 index 0000000000000..203064c891918 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/veeam/veeam.xml @@ -0,0 +1,12363 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/vvd.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/vvd.xml new file mode 100644 index 0000000000000..8db02f8d330f1 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/vvd.xml @@ -0,0 +1,11419 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/webicons.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/webicons.xml new file mode 100644 index 0000000000000..d75535a7c0bda --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/webicons.xml @@ -0,0 +1,15274 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/weblogos.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/weblogos.xml new file mode 100644 index 0000000000000..10f57d957f932 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/stencils/weblogos.xml @@ -0,0 +1,12167 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/default.xml b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/default.xml new file mode 100644 index 0000000000000..6c124e8abf009 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/default.xml @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/down.gif b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/down.gif new file mode 100644 index 0000000000000..f6c47ca134040 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/down.gif differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/grapheditor.css b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/grapheditor.css new file mode 100644 index 0000000000000..356f1db09de1e --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/grapheditor.css @@ -0,0 +1,756 @@ +.geEditor { + font-family:Helvetica,Arial,sans-serif; + font-size:14px; + border:none; + margin:0px; +} +.geEditor input[type=text]::-ms-clear { + display: none; +} +.geEditor input, select, textarea, button { + font-size: inherit; +} +.geEditor div.mxTooltip { + background: whiteSmoke; + border-color: lightGray; + font-size: 11px; + color: black; + padding:6px; +} +.geMenubarContainer .geItem, .geToolbar .geButton, .geToolbar .geLabel, .geSidebarContainer .geTitle { + cursor:pointer !important; +} +.geBackgroundPage { + box-shadow:0px 0px 2px 1px #e9e9e9; +} +.geSidebarContainer a, .geMenubarContainer a, .geToolbar a { + color:#000000; + text-decoration:none; +} +.geMenubarContainer, .geToolbarContainer, .geDiagramContainer, .geSidebarContainer, .geFooterContainer, .geHsplit, .geVsplit { + overflow:hidden; + position:absolute; + cursor:default; +} +.geFormatContainer { + overflow-x:hidden !important; + overflow-y:auto !important; + font-size:12px; + border-left:1px solid #dadce0; +} +.geSidebarFooter { + border-top:1px solid #dadce0; +} +.geFormatSection { + border-bottom:1px solid #dadce0; + border-color:#dadce0; +} +.geDiagramContainer { + background-color:#ffffff; + font-size:0px; + outline:none; +} +.geMenubar, .geToolbar { + white-space:nowrap; + display:block; + width:100%; +} +.geMenubarContainer .geItem, .geToolbar .geButton, .geToolbar .geLabel, .geSidebar, .geSidebarContainer .geTitle, .geSidebar .geItem, .mxPopupMenuItem { + -webkit-transition: all 0.1s ease-in-out; + -moz-transition: all 0.1s ease-in-out; + -o-transition: all 0.1s ease-in-out; + -ms-transition: all 0.1s ease-in-out; + transition: all 0.1s ease-in-out; +} +.geHint { + background-color: #ffffff; + border: 1px solid gray; + padding: 4px 16px 4px 16px; + border-radius:3px; + -webkit-box-shadow: 1px 1px 2px 0px #ddd; + -moz-box-shadow: 1px 1px 2px 0px #ddd; + box-shadow: 1px 1px 2px 0px #ddd; + opacity:0.8; + filter:alpha(opacity=80); + font-size:9pt; +} +.geStatusAlert { + white-space:nowrap; + margin-top:-5px; + font-size:12px; + padding:4px 6px 4px 6px; + background-color:#f2dede; + border:1px solid #ebccd1; + color:#a94442 !important; + border-radius:3px; +} +.geStatusAlert:hover { + background-color:#f1d8d8; + border-color:#d6b2b8; +} +.geStatusMessage { + white-space:nowrap; + margin-top:-5px; + padding:4px 6px 4px 6px; + font-size:12px; + background-image: -webkit-linear-gradient(top,#dff0d8 0,#c8e5bc 100%); + background-image: -o-linear-gradient(top,#dff0d8 0,#c8e5bc 100%); + background-image: -webkit-gradient(linear,left top,left bottom,from(#dff0d8),to(#c8e5bc)); + background-image: linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0); + background-repeat: repeat-x; + border:1px solid #b2dba1; + border-radius:3px; + color:#3c763d !important; +} +.geStatusMessage:hover { + background:#c8e5bc; + border-color:#b2dba1; +} +.geAlert { + position:absolute; + white-space:nowrap; + padding:14px; + background-color:#f2dede; + border:1px solid #ebccd1; + color:#a94442; + border-radius:3px; + -webkit-box-shadow: 2px 2px 3px 0px #ddd; + -moz-box-shadow: 2px 2px 3px 0px #ddd; + box-shadow: 2px 2px 3px 0px #ddd; +} +.geBtn, .mxWindow .geBtn { + background-image: none; + background-color: #f5f5f5; + border-radius: 2px; + border: 1px solid #d8d8d8; + color: #333; + cursor: default; + font-size: 13px; + font-weight: 500; + letter-spacing:0.25px; + height: 29px; + line-height: 27px; + margin: 0 0 0 8px; + min-width: 72px; + outline: 0; + padding: 0 8px; + cursor: pointer; +} +.geBtn:hover, .geBtn:focus { + -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.1); + -moz-box-shadow: 0px 1px 1px rgba(0,0,0,0.1); + box-shadow: 0px 1px 1px rgba(0,0,0,0.1); + border: 1px solid #c6c6c6; + background-color: #f8f8f8; + background-image: linear-gradient(#f8f8f8 0px,#f1f1f1 100%); + color: #111; +} +.geBtn:active, .geStatus:active { + opacity: .7; +} +.geBtn:disabled { + opacity: .5; +} +.geToolbarContainer > .geToolbar > div > a:active { + opacity:0.5; +} +.geBtnUp { + background-image: url(data:image/gif;base64,R0lGODlhCgAGAJECAGZmZtXV1f///wAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo0QzM3ODJERjg4NUQxMUU0OTFEQ0E2MzRGQzcwNUY3NCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo0QzM3ODJFMDg4NUQxMUU0OTFEQ0E2MzRGQzcwNUY3NCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjRDMzc4MkREODg1RDExRTQ5MURDQTYzNEZDNzA1Rjc0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRDMzc4MkRFODg1RDExRTQ5MURDQTYzNEZDNzA1Rjc0Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAgAsAAAAAAoABgAAAg6UjwiQBhGYglCKhXFLBQA7); + _background-image: url(up.gif); + background-position: center center; + background-repeat: no-repeat; +} +.geBtnUp:active { + background-color: #4d90fe; + background-image: linear-gradient(#4d90fe 0px,#357ae8 100%); +} +.geBtnDown { + background-image: url(data:image/gif;base64,R0lGODlhCgAGAJECANXV1WZmZv///wAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS4wLWMwNjAgNjEuMTM0Nzc3LCAyMDEwLzAyLzEyLTE3OjMyOjAwICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo0QzM3ODJEQjg4NUQxMUU0OTFEQ0E2MzRGQzcwNUY3NCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDo0QzM3ODJEQzg4NUQxMUU0OTFEQ0E2MzRGQzcwNUY3NCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjRDMzc4MkQ5ODg1RDExRTQ5MURDQTYzNEZDNzA1Rjc0IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRDMzc4MkRBODg1RDExRTQ5MURDQTYzNEZDNzA1Rjc0Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAQAAAgAsAAAAAAoABgAAAg6UjxLLewEiCAnOZBzeBQA7); + _background-image: url(down.gif); + background-position: center center; + background-repeat: no-repeat; +} +.geBtnDown:active { + background-color: #4d90fe; + background-image: linear-gradient(#4d90fe 0px,#357ae8 100%); +} +.geColorBtn { + background-color: #f5f5f5; + background-image: linear-gradient(#f5f5f5 0px,#e1e1e1 100%); + border-radius: 4px; + border: 1px solid rgba(0,0,0,0.5); + color: #333; + cursor: default; + margin: 0px; + outline: 0; + padding: 0px; + cursor: pointer; +} +.geColorBtn:hover { + -webkit-box-shadow: 0px 1px 1px rgba(0,0,0,0.1); + -moz-box-shadow: 0px 1px 1px rgba(0,0,0,0.1); + box-shadow: 0px 1px 1px rgba(0,0,0,0.1); + border: 1px solid rgba(0,0,0,0.7); +} +.geColorBtn:active { + background-color: #4d90fe; + background-image: linear-gradient(#4d90fe 0px,#357ae8 100%); + border: 1px solid #2f5bb7; + color: #fff; +} +.geColorBtn:disabled { + opacity: .5; +} +.gePrimaryBtn, .mxWindow .gePrimaryBtn { + background-color: #4d90fe; + background-image: linear-gradient(#4d90fe 0px,#4787ed 100%); + border: 1px solid #3079ed; + color: #fff; +} +.gePrimaryBtn:hover, .gePrimaryBtn:focus { + background-color: #357ae8; + background-image: linear-gradient(#4d90fe 0px,#357ae8 100%); + border: 1px solid #2f5bb7; + color: #fff; +} +.gePrimaryBtn:disabled { + opacity: .5; +} +.geAlertLink { + color:#843534; + font-weight:700; + text-decoration:none; +} +.geActivePage { + font-weight:bold; + color:#188038 !important; +} +.geMenubarContainer, .geToolbarContainer, .geHsplit, .geVsplit { + background-color:#fbfbfb; +} +.geMenubar { + padding:0px 2px 0px 2px; + vertical-align:middle; +} +.geMenubarContainer .geItem, .geToolbar .geItem { + padding:6px 8px 6px 8px; + cursor:default; +} +.geMenubarContainer .geItem:hover { + background: #e0e0e0; +} +.geMenubarContainer .geItem:active { + background: #e8f0fe; +} +.geToolbarButton { + opacity: 0.6; +} +.geToolbarButton:active { + opacity: 0.2; +} +.mxDisabled:hover { + background:inherit !important; +} +.geMenubar a.geStatus { + color:#888888; + padding-left:6px; + display:inline-block; + cursor:default !important; +} +.geMenubar a.geStatus:hover { + background:transparent; +} +.geToolbarContainer { + border-bottom:1px solid #dadce0; +} +.geSidebarContainer .geToolbarContainer { + background:transparent; + border-bottom:none; +} +.geSidebarContainer button { + text-overflow:ellipsis; + overflow:hidden; +} +.geToolbar { + padding:1px 0px 0px 4px; + border-top:1px solid #dadce0; + -webkit-box-shadow: inset 0 1px 0 0 #fff; + -moz-box-shadow: inset 0 1px 0 0 #fff; + box-shadow: inset 0 1px 0 0 #fff; + padding-top:5px; +} +.geToolbarContainer .geSeparator { + float:left; + width:1px; + height:20px; + background:#e5e5e5; + margin-left:6px; + margin-right:6px; + margin-top:4px; +} +.geToolbarContainer .geButton { + float:left; + width:20px; + height:20px; + padding:0px 2px 4px 2px; + margin:2px; + border:1px solid transparent; + cursor:pointer; + opacity:0.6; + _filter:alpha(opacity=60); +} +.geToolbarContainer .geButton:hover { + opacity:1; + _filter:none !important; + background: #e0e0e0; +} +.geToolbarContainer .geButton:active { + background: #e8f0fe; +} +div.mxWindow .geButton { + margin: -1px 2px 2px 2px; + padding: 1px 2px 2px 1px; +} +.geToolbarContainer .geLabel { + float:left; + margin:2px; + cursor:pointer; + padding:3px 5px 3px 5px; + border:1px solid transparent; + opacity:0.6; + filter:alpha(opacity=60); +} +.geToolbarContainer .geLabel:hover { + background: #e0e0e0; + opacity:0.9; + filter:alpha(opacity=90) !important; +} +.geToolbarContainer .geLabel:active { + background: #e8f0fe; + opacity:1; + filter:none !important; +} +.geToolbarContainer .mxDisabled:hover { + border:1px solid transparent !important; + opacity:0.2 !important; + filter:alpha(opacity=20) !important; +} +.geDiagramBackdrop { + background-color: #f8f9fa; +} +.geSidebarContainer { + background:#fbfbfb; + overflow:hidden; + position:absolute; + overflow:auto; +} +.geTabContainer { + border-top:1px solid #e5e5e5; + background-color:#f1f3f4; +} +.geSidebar { + border-bottom:1px solid #e5e5e5; + padding:6px; + padding-left:10px; + _padding:2px; + _padding-left:6px; + padding-bottom:12px; + overflow:hidden; +} +.geSidebarContainer .geTitle { + display:block; + font-size:13px; + border-bottom:1px solid #e5e5e5; + font-weight:500; + padding:8px 0px 8px 14px; + margin:0px; + cursor:default; + white-space:nowrap; + overflow:hidden; + text-overflow:ellipsis; + line-height:1.4em; +} +.geSidebarContainer .geTitle:hover { + background-color:#e0e0e0; +} +.geSidebarContainer .geDropTarget { + border-radius:10px; + border:2px dotted #b0b0b0; + text-align:center; + padding:6px; + margin:6px; + color:#a0a0a0; + fontSize:13px; +} +.geTitle img { + opacity:0.5; + _filter:alpha(opacity=50); +} +.geTitle img:hover { + opacity:1; + _filter:alpha(opacity=100); +} +.geTitle .geButton { + border:1px solid transparent; + padding:3px; + border-radius:2px; +} +.geTitle .geButton:hover { + border:1px solid gray; +} +.geSidebar .geItem { + display:inline-block; + background-repeat:no-repeat; + background-position:50% 50%; + border-radius: 8px; +} +.geSidebar .geItem:hover { + background-color:#e0e0e0; +} +.geItem { + vertical-align: top; + display: inline-block; +} +.geSidebarTooltip { + position:absolute; + background:#fbfbfb; + overflow:hidden; + box-shadow:0 2px 6px 2px rgba(60,64,67,.15); + border-radius:6px; + _filter:progid:DXImageTransform.Microsoft.DropShadow(OffX=2, OffY=2, Color='#d5d5d5', Positive='true'); +} +.geFooterContainer { + background:#e5e5e5; + border-top:1px solid #c0c0c0; +} +.geFooterContainer a { + display:inline-block; + box-sizing:border-box; + width:100%; + white-space:nowrap; + font-size:14px; + color:#235695; + font-weight:bold; + text-decoration:none; +} +.geFooterContainer table { + border-collapse:collapse; + margin:0 auto; +} +.geFooterContainer td { + border-left:1px solid #c0c0c0; + border-right:1px solid #c0c0c0; +} +.geFooterContainer td:hover { + background-color: #b3b3b3; +} +.geHsplit { + cursor:col-resize; + background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAHBAMAAADdS/HjAAAAGFBMVEUzMzP///9tbW1QUFCKiopBQUF8fHxfX1/IXlmXAAAAHUlEQVQImWMQEGAQFWUQFmYQF2cQEmIQE2MQEQEACy4BF67hpEwAAAAASUVORK5CYII=); + _background-image:url('thumb_vertical.png'); + background-repeat:no-repeat; + background-position:center center; +} +.geVsplit { + font-size:1pt; + cursor:row-resize; + background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAEBAMAAACw6DhOAAAAGFBMVEUzMzP///9tbW1QUFCKiopBQUF8fHxfX1/IXlmXAAAAFElEQVQImWNgNVdzYBAUFBRggLMAEzYBy29kEPgAAAAASUVORK5CYII=); + _background-image:url('thumb_horz.png'); + background-repeat:no-repeat; + background-position:center center; +} +.geHsplit { + border-left:1px solid #e5e5e5; + border-right:1px solid #e5e5e5; +} +.geVSplit { + border-top:1px solid #e5e5e5; + border-bottom:1px solid #e5e5e5; +} +.geHsplit:hover, .geVsplit:hover { + background-color:#e0e0e0; +} +.geDialog { + position:absolute; + background:white; + line-height:1em; + overflow:hidden; + padding:30px; + border:1px solid #acacac; + -webkit-box-shadow:0px 0px 2px 2px #d5d5d5; + -moz-box-shadow:0px 0px 2px 2px #d5d5d5; + box-shadow:0px 0px 2px 2px #d5d5d5; + _filter:progid:DXImageTransform.Microsoft.DropShadow(OffX=2, OffY=2, Color='#d5d5d5', Positive='true'); + z-index: 2; +} +.geTransDialog { + position:absolute; + overflow:hidden; + padding:30px; + z-index: 2; +} +.geDialogClose { + position:absolute; + width:9px; + height:9px; + opacity:0.5; + cursor:pointer; + _filter:alpha(opacity=50); +} +.geDialogClose:hover { + opacity:1; +} +.geDialogTitle { + box-sizing:border-box; + white-space:nowrap; + background:rgb(229, 229, 229); + border-bottom:1px solid rgb(192, 192, 192); + font-size:15px; + font-weight:bold; + text-align:center; + color:rgb(35, 86, 149); +} +.geDialogFooter { + background:whiteSmoke; + white-space:nowrap; + text-align:right; + box-sizing:border-box; + border-top:1px solid #e5e5e5; + color:darkGray; +} +.geSprite { + background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAABeQCAMAAAByzXKPAAAA1VBMVEUAAAAzMzIzMzIzMzE1NTUzMzIzMzIzMzEzMzIyMjIzMzIzMzIzMzIzMzE6OjoyMjIzMzIzMzIzMzEzMzI0NDA0NDIwMDAyMjEzMzIzMzEzMzE0NDAzMzMzMzIyMjIzMzI0NDE0NDQyMjIzMzIzMzIzMzIzMzM5OTkAAAC1tbX///9mZmYwMDAQEBAmJiZTiPJ7e3v/Z2RwcHAgICB+fn5hYWFzc3NAQECoqKiampqMjIxTU1NGRkY3NzcbGxsNDQ3w8PBQUFDg4ODAwMCwsLCgoKBPT09W+xp5AAAAKHRSTlMAh4DDEd187+mljnhvVge5nmhMQi4hA8uxk2IlHOOYc102M/jW088J/2liTQAACt5JREFUeNrs3O1um0AQheG5nIPCoIq1Q7+r/Mn9X1K9xtEAM9RLQmODzyO1cV+NtzjShhjHkRkAgn9DMCaYnRXIGOQdtWmk1zRWm0vNN6az+Y+v2fXZ5iTX/kZ4ZGvUNT6/RJuCM/VVRKFB7YBwtnY1k3h2wboaHy8RFQC2VGuc1D730WWLS2GIZ27aM4yUT+9tXaLNw9m0mI9uokepRLeC+ZyCfFCoqwckqV3WBHFZaxHLFrNxVpgUVRWjg/jli2WbfH4WyxYnWcVV0Rz7FYj26X9ezQcuE3VYkXzFSYpm9eq6pqSiuNYAaj+r0GiFxKv5tEOqxVfV0utrCkZF/HCXTuOdGz2IHKbDR5wdJ6PdeRmIsfviED0C5ZV7ojf487v59fPHsT18//a1Yn1HJdoSjIUXBG5XgaBejhMYVmT9B1dRUONj4KtyRHNmNkULDYeD2CGVjiZ0paOK1jVuYKIpjJTO7m9dovvEn3bz/DH4440f2+d9fvlVh+4LLuK6cM8GVcKKkmq3ZqqBfbhaef4n+pijBudNZH3H+OW3No+rbTmVXjfciPbs/GVQ7QU6tWqUW5lonefHfn5f6xI9DAxdqQU3n55uU821mj2ZuUq0SYo2ivA5tThxk3rK6u+urYtZiqKuGiWMEkbp4/OFLITIvyrfekt35WGvjvP6OlERwP6+VU39z+ansp+0SThP8jk+0SeoAehRjObmdha0f2YwfucMss7uaPVF3rThN/EH6fH3YhEt3bD1zMlwGtu8/8a5zrHJuR6NyrkKMK5N5qqf9ev6Y4hfGfSPrc7ZWZqPQrQPa+x5Cfe8FO55m3Xrcs8T3TFUYQ0zqj5jTPoMmagQz4brFh8D3x5L9OngyRy+IEa0JgBRlaBWAIJYyVYjYDF47PwNV/TwAIRfB+BiFcyeolchija6+P7xd//IveI+JlpwnrdZP7xexdD6/4N/PDzP06NZdc8vP4H7WKFXLbqjQcU9T7QZvFhHdN/+sndmy6lCQRQ9KOA8Ro1TxjttYuUlX5BK5f+/6YJIWjlNFREkpLJXGQuWO01e2mPaU4pA17qH7iEeKfRsrrqh4/t0hJQPEJSokULPFpJse0Iu0PNQNVSNnOu8ZHPWZc8TUhkBgECRikZMrp4Xq9W1NPubkIIUm4hnrtyikSIjq+jck3bOBQkpnSBrkU97ALl73pJqXfFc5AlJqN3cXvoTEKIzJcu5PSEFqHiGp6ahz+33Z3rWtpzhEfK16DO8XXi3S2vIvfUCHnpWrcsZHiHVAFUG0KQJoEgjGjGRFG1l9bq25gyPkIoANBcEab9DEPf27iCk40VbWa0uP86WkMsTQHPQHBSnJJHCytp1dW9Uz2cBQoo0PEqVes/r2bM0131CLtLzUCVUidw9n6uuaPY8IdnUYMet2BTccUtIfShnz60mBe65JaTunL/tVqTAbbeE1ImCc3vl16McIEiWc3tCClD5DM9Ak7ZFZCBkZEVzhkfI5/n6Hbdp+wF33BJSH8rZc6vISB/gnltCas/Z225FStdz2y0hZXE19lrt5p177NyR11+OHb/THhzJP86wP2uYrjvz1h92eTseNEzDbB2nd/OY1Py9WNw6/qjnN+fmvnmwnYkxjf1t+mAW7XlsbzaJ3a7DzH1sf3Udp7m/dcOf615sW26SdfvGrCaxbV4l9nEan0X0xqEaRrbvmnlrGFu3PTN3ndUoLOuapW8ODLzudLVomMHA71z/MwmT9mTmN+bOZnS9NcJDs+V53t+WPzQnbNa9/nRoCPl2AKqObKFvltEBoPvcVwNwmavxOy3IDwFAlkWCWPBqhJDC8GtsCPlGYI8ciQyRI+3/CLHHscysXvf0ynzWIOQsPr3wWllkxNQskD+b82/Ihi8qCCm150XpObXnc2RFs+cJqRhAE5AHpI8BOZbH5TQdlXB8JAUEIC4AvkFPSMEl/dQ+v74+2/bl6enFtm/v72+W/c/eHSW3CUNRGNZyjgiZNHE6fW2b6f63VGScCHSvI7CxjfH/tYnTU43CywFiAfnT/On+lunH3274R5G2zbv03rTj9F+z92+U7pqPX52PZjdM35uf6vxs3ofp799Kulf2B8CEc2JVjvJm6OIT5CO9PekvD/8T767XgTc2z1umnEdggyT5eX2s+k9yGpvH1kqvI523IVfSAzdlW2gbu3zn5+6j/JFcfIft0lBOi4/J6cbmBTZJTdPo9fV1/3pamqTUFCalOVkunVdNTU5bSa2Nn7ULjl0A7o5/aGt6Z6TKUpVC7/VLSrWzqTo7b+yzO+9i28shHtugl5cXXS9NLnyYHVZ+Nz79UG7y4in7Aqza9po+tBsXP1B8wCW3m01yVqq9G3w3q/X+/1lpZ5WEbKdOTnNsxiYtd+ngjl28Fw+zhwGwLA0/mDeIS46AxWnO2MVnUFD627+sasuAxyJpTsp3A+6WgnplGpILpL1JR21lZt5k2ZSrFPE41AteEy+Q9qrn58qW77lNM877sXXq+fcGLp/2giETZO5tTYumHObxKDQ0aezhxb2feNE0MWlvqZS1SzwsJZdslu3x9fYae8HFXYeAKcIVejxwzgwc0YE6jTzuWOAuqOS+GTY3rc+rmDxAKn7VEPAt+amm/7Yu8ev0gfnkHckljT8nSoaf/RkeNgUejaKburGiYt696FNIcXrt/3yJh8Qba+advg0BwJCk66Qamp3WvxtX1gMzSDZya+BU8y2OR+ogyk7w5h+Nox+/6S04pNunwKqpt9Db9yemA2GokjqThGR+ms1JeYMe92hu5y2Zbs5O5be7mkru2Hlpgc5j434M1NPiq0qqgXoaDkwqTU21V0s7dgY/TfLX9XMT1udx56RJqTqf5aqlR3vVqtOWaYpbp4NtW2tmPaXbwAZI0U1zroI/tiRW9oBVOtL5QT6uu2TH0nlgnXRSqsLkGXg+JnBTCjopVeGceXk2FnAtColkUynGMn1SrHXejq3Py4U5wHXZvtluJtXO27H+vFyMB9xElFIxNQ6fUmFj9Xm6Sr67SrA6b94Gfp4HLsb2rSM53VSMpseK1c7bsXbechs4zgO3EiUvs6kK7tgsUmlglaLkZiZVStzOBzoPrJHOS1VgVR5YuTPXz1VgXR5YM/+u9xglkyZRT2WqghlbnVc8CA+4mtxRp5vB7XxW7bw3LwvywI0pr5MN6HNNrUi/fUZO4o6tzxuiuO0GuLzUUdu3GOV3M6raeTu2Nm8aR+eBlVD1BnoVjowt0HBgnY51PrqdT/9yxtJ5YHWkeGKswoxJuMcGuIYoKdowKOQ4Xxov+4Zb/khU8Mf681a3gZ/0gYt1PjGdV1J2/mBS5z/58zrbQOeBE6zpGZgA7smRzgc6D2xKlORlCiUVKrfSslMAVulI56PX+XHv81g6D6yPFM+MVWCJDliLJdfoMhVYowPWYsk1ukwF1uiAu1R/Hh5v2wNb8r+9O0pBGAaiKLqdm/1vUCiFSCdhTIjWhntAwefY5sMxRW1ToJnZ89KjQTnuGzGUWB1DLkJtul0ofocn3SOf5wMu3mu97q30GN2e99he2gKEpj6Dkvwjj4tebb5d8EBAuhuUJJ87f96f4aT/1OlNz7GRfgg+WheCUFsfE16cpEFNx5exIUmHx09zd34AaRdACCDp+TVLSlFv1blzgKR2egx5zx/see0pn+djbR4FIVofz4/UeV67G3+vr3niC+H04Oz/nbwA7lqtm+wByfQAAAAASUVORK5CYII=') no-repeat; + _background:url('sprites.png') no-repeat top left; + width:21px; + height:21px; +} +.geBaseButton { + padding:10px; + border-radius:6px; + border:1px solid #c0c0c0; + cursor:pointer; + background-color:#ececec; + background-image:linear-gradient(#ececec 0%, #fcfcfc 100%); +} +.geBaseButton:hover { + background:#ececec; +} +.geBigButton { + color:#ffffff; + border: none; + padding:10px; + font-size:14pt; + white-space: nowrap; + border-radius:6px; + text-shadow: rgb(41, 89, 137) 0px 1px 0px; + background-color:#428bca; + background-image:linear-gradient(rgb(70, 135, 206) 0px, rgb(48, 104, 162) 100%); + -webkit-box-shadow: rgba(255, 255, 255, 0.0980392) 0px 1px 0px 0px inset, rgba(0, 0, 0, 0.2) 0px 1px 1px 0px; + -moz-box-shadow: rgba(255, 255, 255, 0.0980392) 0px 1px 0px 0px inset, rgba(0, 0, 0, 0.2) 0px 1px 1px 0px; + box-shadow: rgba(255, 255, 255, 0.0980392) 0px 1px 0px 0px inset, rgba(0, 0, 0, 0.2) 0px 1px 1px 0px; +} +.geBigButton:hover { + background-color:#2d6ca2; + background-image: linear-gradient(rgb(90, 148, 211) 0px, rgb(54, 115, 181) 100%); +} +.geBigButton:active { + background-color: rgb(54, 115, 181); + background-image: none; +} +@media print { + div.geNoPrint { display: none !important; } +} +.geSprite-actualsize { background-position: 0 0; } +.geSprite-bold { background-position: 0 -46px; } +.geSprite-bottom { background-position: 0 -92px; } +.geSprite-center { background-position: 0 -138px; } +.geSprite-delete { background-position: 0 -184px; } +.geSprite-fillcolor { background-position: 0 -229px; } +.geSprite-fit { background-position: 0 -277px; } +.geSprite-fontcolor { background-position: 0 -322px; } +.geSprite-gradientcolor { background-position: 0 -368px; } +.geSprite-image { background-position: 0 -414px; } +.geSprite-italic { background-position: 0 -460px; } +.geSprite-left { background-position: 0 -505px; } +.geSprite-middle { background-position: 0 -552px; } +.geSprite-print { background-position: 0 -598px; } +.geSprite-redo { background-position: 0 -644px; } +.geSprite-right { background-position: 0 -689px; } +.geSprite-shadow { background-position: 0 -735px; } +.geSprite-strokecolor { background-position: 0 -782px; } +.geSprite-top { background-position: 0 -828px; } +.geSprite-underline { background-position: 0 -874px; } +.geSprite-undo { background-position: 0 -920px; } +.geSprite-zoomin { background-position: 0 -966px; } +.geSprite-zoomout { background-position: 0 -1012px; } +.geSprite-arrow { background-position: 0 -1059px; } +.geSprite-linkedge { background-position: 0 -1105px; } +.geSprite-straight { background-position: 0 -1150px; } +.geSprite-entity { background-position: 0 -1196px; } +.geSprite-orthogonal { background-position: 0 -1242px; } +.geSprite-curved { background-position: 0 -1288px; } +.geSprite-noarrow { background-position: 0 -1334px; } +.geSprite-endclassic { background-position: 0 -1380px; } +.geSprite-endopen { background-position: 0 -1426px; } +.geSprite-endblock { background-position: 0 -1472px; } +.geSprite-endoval { background-position: 0 -1518px; } +.geSprite-enddiamond { background-position: 0 -1564px; } +.geSprite-endthindiamond { background-position: 0 -1610px; } +.geSprite-endclassictrans { background-position: 0 -1656px; } +.geSprite-endblocktrans { background-position: 0 -1702px; } +.geSprite-endovaltrans { background-position: 0 -1748px; } +.geSprite-enddiamondtrans { background-position: 0 -1794px; } +.geSprite-endthindiamondtrans { background-position: 0 -1840px; } +.geSprite-startclassic { background-position: 0 -1886px; } +.geSprite-startopen { background-position: 0 -1932px; } +.geSprite-startblock { background-position: 0 -1978px; } +.geSprite-startoval { background-position: 0 -2024px; } +.geSprite-startdiamond { background-position: 0 -2070px; } +.geSprite-startthindiamond { background-position: 0 -2116px; } +.geSprite-startclassictrans { background-position: 0 -2162px; } +.geSprite-startblocktrans { background-position: 0 -2208px; } +.geSprite-startovaltrans { background-position: 0 -2254px; } +.geSprite-startdiamondtrans { background-position: 0 -2300px; } +.geSprite-startthindiamondtrans { background-position: 0 -2346px; } +.geSprite-globe { background-position: 0 -2392px; } +.geSprite-orderedlist { background-position: 0 -2438px; } +.geSprite-unorderedlist { background-position: 0 -2484px; } +.geSprite-horizontalrule { background-position: 0 -2530px; } +.geSprite-link { background-position: 0 -2576px; } +.geSprite-indent { background-position: 0 -2622px; } +.geSprite-outdent { background-position: 0 -2668px; } +.geSprite-code { background-position: 0 -2714px; } +.geSprite-fontbackground { background-position: 0 -2760px; } +.geSprite-removeformat { background-position: 0 -2806px; } +.geSprite-superscript { background-position: 0 -2852px; } +.geSprite-subscript { background-position: 0 -2898px; } +.geSprite-table { background-position: 0 -2944px; } +.geSprite-deletecolumn { background-position: 0 -2990px; } +.geSprite-deleterow { background-position: 0 -3036px; } +.geSprite-insertcolumnafter { background-position: 0 -3082px; } +.geSprite-insertcolumnbefore { background-position: 0 -3128px; } +.geSprite-insertrowafter { background-position: 0 -3174px; } +.geSprite-insertrowbefore { background-position: 0 -3220px; } +.geSprite-grid { background-position: 0 -3272px; } +.geSprite-guides { background-position: 0 -3324px; } +.geSprite-dots { background-position: 0 -3370px; } +.geSprite-alignleft { background-position: 0 -3416px; } +.geSprite-alignright { background-position: 0 -3462px; } +.geSprite-aligncenter { background-position: 0 -3508px; } +.geSprite-aligntop { background-position: 0 -3554px; } +.geSprite-alignbottom { background-position: 0 -3600px; } +.geSprite-alignmiddle { background-position: 0 -3646px; } +.geSprite-justifyfull { background-position: 0 -3692px; } +.geSprite-formatpanel { background-position: 0 -3738px; } +.geSprite-connection { background-position: 0 -3784px; } +.geSprite-vertical { background-position: 0 -3830px; } +.geSprite-simplearrow { background-position: 0 -3876px; } +.geSprite-plus { background-position: 0 -3922px; } +.geSprite-rounded { background-position: 0 -3968px; } +.geSprite-toback { background-position: 0 -4014px; } +.geSprite-tofront { background-position: 0 -4060px; } +.geSprite-duplicate { background-position: 0 -4106px; } +.geSprite-insert { background-position: 0 -4152px; } +.geSprite-endblockthin { background-position: 0 -4201px; } +.geSprite-endblockthintrans { background-position: 0 -4247px; } +.geSprite-enderone { background-position: 0 -4293px; } +.geSprite-enderonetoone { background-position: 0 -4339px; } +.geSprite-enderonetomany { background-position: 0 -4385px; } +.geSprite-endermany { background-position: 0 -4431px; } +.geSprite-enderoneopt { background-position: 0 -4477px; } +.geSprite-endermanyopt { background-position: 0 -4523px; } +.geSprite-endclassicthin { background-position: 0 -4938px; } +.geSprite-endclassicthintrans { background-position: 0 -4984px; } +.geSprite-enddash { background-position: 0 -5029px; } +.geSprite-endcircleplus { background-position: 0 -5075px; } +.geSprite-endcircle { background-position: 0 -5121px; } +.geSprite-endasync { background-position: 0 -5167px; } +.geSprite-endasynctrans { background-position: 0 -5213px; } +.geSprite-startblockthin { background-position: 0 -4569px; } +.geSprite-startblockthintrans { background-position: 0 -4615px; } +.geSprite-starterone { background-position: 0 -4661px; } +.geSprite-starteronetoone { background-position: 0 -4707px; } +.geSprite-starteronetomany { background-position: 0 -4753px; } +.geSprite-startermany { background-position: 0 -4799px; } +.geSprite-starteroneopt { background-position: 0 -4845px; } +.geSprite-startermanyopt { background-position: 0 -4891px; } +.geSprite-startclassicthin { background-position: 0 -5259px; } +.geSprite-startclassicthintrans { background-position: 0 -5305px; } +.geSprite-startdash { background-position: 0 -5351px; } +.geSprite-startcircleplus { background-position: 0 -5397px; } +.geSprite-startcircle { background-position: 0 -5443px; } +.geSprite-startasync { background-position: 0 -5489px; } +.geSprite-startasynctrans { background-position: 0 -5535px; } +.geSprite-startcross { background-position: 0 -5581px; } +.geSprite-startopenthin { background-position: 0 -5627px; } +.geSprite-startopenasync { background-position: 0 -5673px; } +.geSprite-endcross { background-position: 0 -5719px; } +.geSprite-endopenthin { background-position: 0 -5765px; } +.geSprite-endopenasync { background-position: 0 -5811px; } +.geSprite-verticalelbow { background-position: 0 -5857px; } +.geSprite-horizontalelbow { background-position: 0 -5903px; } +.geSprite-horizontalisometric { background-position: 0 -5949px; } +.geSprite-verticalisometric { background-position: 0 -5995px; } +html div.mxRubberband { + border-color:#0000DD; + background:#99ccff; +} +td.mxPopupMenuIcon div { + width:16px; + height:16px; +} +.geEditor div.mxPopupMenu { + box-shadow:0 2px 6px 2px rgba(60,64,67,.15); + background:white; + border-radius:4px; + border:none; + padding:3px; +} +html table.mxPopupMenu { + border-collapse:collapse; + margin:0px; +} +html td.mxPopupMenuItem { + padding:7px 30px 7px 30px; + font-family:Helvetica Neue,Helvetica,Arial Unicode MS,Arial; + font-size:10pt; +} +html td.mxPopupMenuIcon { + background-color:white; + padding:0px; +} +td.mxPopupMenuIcon .geIcon { + padding:2px; + padding-bottom:4px; + margin:2px; + border:1px solid transparent; + opacity:0.5; + _width:26px; + _height:26px; +} +td.mxPopupMenuIcon .geIcon:hover { + border:1px solid gray; + border-radius:2px; + opacity:1; +} +html tr.mxPopupMenuItemHover { + background-color: #eeeeee; + color: black; +} +table.mxPopupMenu hr { + color:#cccccc; + background-color:#cccccc; + border:none; + height:1px; +} +table.mxPopupMenu tr { + font-size:4pt; +} +html td.mxWindowTitle { + font-family:Helvetica Neue,Helvetica,Arial Unicode MS,Arial; + text-align:left; + font-size:12px; + color:rgb(112, 112, 112); + padding:4px; +} diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/help.css b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/help.css new file mode 100644 index 0000000000000..20014a83d4098 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/help.css @@ -0,0 +1,4 @@ +body { + font-family:Arial Unicode MS,Arial,Helvetica; + font-size:10pt; +} diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/sprites.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/sprites.png new file mode 100644 index 0000000000000..23e1b491b6d3f Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/sprites.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/thumb_horz.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/thumb_horz.png new file mode 100644 index 0000000000000..f2896f5c0c9ab Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/thumb_horz.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/thumb_vertical.png b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/thumb_vertical.png new file mode 100644 index 0000000000000..e0a22e029c85e Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/thumb_vertical.png differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/up.gif b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/up.gif new file mode 100644 index 0000000000000..1665d4adca818 Binary files /dev/null and b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/styles/up.gif differ diff --git a/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/viewer.html b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/viewer.html new file mode 100644 index 0000000000000..beb91b98fbf2e --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/mxgraph/javascript/dist/viewer.html @@ -0,0 +1,71 @@ + + + + + Grapheditor viewer + + + + + + + + + + Input: +
+ +
+ +
+ + + diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/bpmn/mxBpmnShape2.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/bpmn/mxBpmnShape2.js new file mode 100644 index 0000000000000..ee677ee890324 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/bpmn/mxBpmnShape2.js @@ -0,0 +1,662 @@ +"use strict"; + +function mxBpmnShape(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxBpmnShape, mxShape); +mxBpmnShape.prototype.customProperties = [{ + name: 'symbol', + dispName: 'Event', + type: 'enum', + defVal: 'general', + enumList: [{ + val: 'general', + dispName: 'General' + }, { + val: 'message', + dispName: 'Message' + }, { + val: 'timer', + dispName: 'Timer' + }, { + val: 'escalation', + dispName: 'Escalation' + }, { + val: 'conditional', + dispName: 'Conditional' + }, { + val: 'link', + dispName: 'Link' + }, { + val: 'error', + dispName: 'Error' + }, { + val: 'cancel', + dispName: 'Cancel' + }, { + val: 'compensation', + dispName: 'Compensation' + }, { + val: 'signal', + dispName: 'Signal' + }, { + val: 'multiple', + dispName: 'Multiple' + }, { + val: 'parallelMultiple', + dispName: 'Parallel Multiple' + }, { + val: 'terminate', + dispName: 'Terminate' + }, { + val: 'exclusiveGw', + dispName: 'Exclusive Gw' + }, { + val: 'parallelGw', + dispName: 'Parallel Gw' + }, { + val: 'complexGw', + dispName: 'Complex Gw' + }] +}, { + name: 'outline', + dispName: 'Event Type', + type: 'enum', + defVal: 'standard', + enumList: [{ + val: 'standard', + dispName: 'Standard' + }, { + val: 'eventInt', + dispName: 'Interrupting' + }, { + val: 'eventNonint', + dispName: 'Non-Interrupting' + }, { + val: 'catching', + dispName: 'Catching' + }, { + val: 'boundInt', + dispName: 'Bound Interrupting' + }, { + val: 'boundNonint', + dispName: 'Bound Non-Interrupting' + }, { + val: 'throwing', + dispName: 'Throwing' + }, { + val: 'end', + dispName: 'End' + }, { + val: 'none', + dispName: 'None' + }] +}, { + name: 'background', + dispName: 'Background', + type: 'enum', + defVal: 'none', + enumList: [{ + val: 'gateway', + dispName: 'Gateway' + }, { + val: 'none', + dispName: 'None' + }] +}]; +mxBpmnShape.prototype.eventTypeEnum = { + START_STANDARD: 'standard', + EVENT_SP_INT: 'eventInt', + EVENT_SP_NONINT: 'eventNonint', + CATCHING: 'catching', + BOUND_INT: 'boundInt', + BOUND_NONINT: 'boundNonint', + THROWING: 'throwing', + END: 'end', + NONE: 'none', + GATEWAY: 'gateway' +}; +mxBpmnShape.prototype.eventEnum = { + GENERAL: 'general', + MESSAGE: 'message', + TIMER: 'timer', + ESCALATION: 'escalation', + CONDITIONAL: 'conditional', + LINK: 'link', + ERROR: 'error', + CANCEL: 'cancel', + COMPENSATION: 'compensation', + SIGNAL: 'signal', + MULTIPLE: 'multiple', + PAR_MULTI: 'parallelMultiple', + TERMINATE: 'terminate', + GW_EXCLUSIVE: 'exclusiveGw', + GW_PARALLEL: 'parallelGw', + GW_COMPLEX: 'complexGw' +}; +mxBpmnShape.prototype.miscEnum = { + OUTLINE: 'outline', + BACKGROUND: 'background', + SYMBOL: 'symbol', + GATEWAY: 'gateway' +}; + +mxBpmnShape.prototype.paintVertexShape = function (c, x, y, w, h) { + this.redrawPath(c, x, y, w, h, mxBpmnShape.prototype.miscEnum.BACKGROUND); + var bg = mxUtils.getValue(this.style, mxBpmnShape.prototype.miscEnum.BACKGROUND, mxBpmnShape.prototype.eventTypeEnum.NONE); + + if (bg === mxBpmnShape.prototype.eventTypeEnum.GATEWAY) { + c.setShadow(false); + } + + this.redrawPath(c, x, y, w, h, mxBpmnShape.prototype.miscEnum.OUTLINE); + this.redrawPath(c, x, y, w, h, mxBpmnShape.prototype.miscEnum.SYMBOL); +}; + +mxBpmnShape.prototype.redrawPath = function (c, x, y, w, h, layer) { + var bg = mxUtils.getValue(this.style, mxBpmnShape.prototype.miscEnum.BACKGROUND, mxBpmnShape.prototype.eventTypeEnum.NONE); + + if (layer == mxBpmnShape.prototype.miscEnum.BACKGROUND) { + if (bg != null) { + var f = this.backgrounds[bg]; + + if (f != null) { + c.translate(x, y); + f.call(this, c, x, y, w, h, layer); + } + } + } else if (layer == mxBpmnShape.prototype.miscEnum.OUTLINE) { + if (bg === mxBpmnShape.prototype.eventTypeEnum.GATEWAY) { + c.translate(w / 4, h / 4); + h /= 2; + w /= 2; + this.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(0.25, 0.25), false), new mxConnectionConstraint(new mxPoint(0.25, 0.75), false), new mxConnectionConstraint(new mxPoint(0.75, 0.25), false), new mxConnectionConstraint(new mxPoint(0.75, 0.75), false)]; + } else { + this.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(0.145, 0.145), false), new mxConnectionConstraint(new mxPoint(0.145, 0.855), false), new mxConnectionConstraint(new mxPoint(0.855, 0.145), false), new mxConnectionConstraint(new mxPoint(0.855, 0.855), false)]; + } + + var o = mxUtils.getValue(this.style, mxBpmnShape.prototype.miscEnum.OUTLINE, mxBpmnShape.prototype.eventTypeEnum.NONE); + + if (o != null) { + var f = this.outlines[o]; + + if (f != null) { + f.call(this, c, x, y, w, h, bg === mxBpmnShape.prototype.eventTypeEnum.GATEWAY); + } + } + } else if (layer == mxBpmnShape.prototype.miscEnum.SYMBOL) { + if (bg === mxBpmnShape.prototype.eventTypeEnum.GATEWAY) { + h /= 2; + w /= 2; + } + + var s = mxUtils.getValue(this.style, mxBpmnShape.prototype.miscEnum.SYMBOL, null); + + if (s != null) { + var f = this.symbols[s]; + var isInverse = false; + + if (f != null) { + var strokeColor = c.state.strokeColor; + var fillColor = c.state.fillColor; + var o = mxUtils.getValue(this.style, mxBpmnShape.prototype.miscEnum.OUTLINE, mxBpmnShape.prototype.eventTypeEnum.NONE); + + if (s === mxBpmnShape.prototype.eventEnum.MESSAGE) { + c.translate(w * 0.15, h * 0.3); + w = w * 0.7; + h = h * 0.4; + } else if (s === mxBpmnShape.prototype.eventEnum.TIMER) { + c.translate(w * 0.11, h * 0.11); + w = w * 0.78; + h = h * 0.78; + } else if (s === mxBpmnShape.prototype.eventEnum.ESCALATION) { + c.translate(w * 0.19, h * 0.15); + w = w * 0.62; + h = h * 0.57; + } else if (s === mxBpmnShape.prototype.eventEnum.CONDITIONAL) { + c.translate(w * 0.3, h * 0.16); + w = w * 0.4; + h = h * 0.68; + } else if (s === mxBpmnShape.prototype.eventEnum.LINK) { + c.translate(w * 0.27, h * 0.33); + w = w * 0.46; + h = h * 0.34; + } else if (s === mxBpmnShape.prototype.eventEnum.ERROR) { + c.translate(w * 0.212, h * 0.243); + w = w * 0.58; + h = h * 0.507; + } else if (s === mxBpmnShape.prototype.eventEnum.CANCEL) { + c.translate(w * 0.22, h * 0.22); + w = w * 0.56; + h = h * 0.56; + } else if (s === mxBpmnShape.prototype.eventEnum.COMPENSATION) { + c.translate(w * 0.28, h * 0.35); + w = w * 0.44; + h = h * 0.3; + } else if (s === mxBpmnShape.prototype.eventEnum.SIGNAL) { + c.translate(w * 0.19, h * 0.15); + w = w * 0.62; + h = h * 0.57; + } else if (s === mxBpmnShape.prototype.eventEnum.MULTIPLE) { + c.translate(w * 0.2, h * 0.19); + w = w * 0.6; + h = h * 0.565; + } else if (s === mxBpmnShape.prototype.eventEnum.PAR_MULTI) { + c.translate(w * 0.2, h * 0.2); + w = w * 0.6; + h = h * 0.6; + } else if (s === mxBpmnShape.prototype.eventEnum.TERMINATE) { + c.translate(w * 0.05, h * 0.05); + w = w * 0.9; + h = h * 0.9; + } else if (s === mxBpmnShape.prototype.eventEnum.GW_EXCLUSIVE) { + c.translate(w * 0.12, 0); + w = w * 0.76; + } + + isInverse = false; + + if (s === 'star') { + c.setFillColor(strokeColor); + } else if (o === mxBpmnShape.prototype.eventTypeEnum.THROWING || o === mxBpmnShape.prototype.eventTypeEnum.END) { + c.setStrokeColor(fillColor); + c.setFillColor(strokeColor); + isInverse = true; + } + + f.call(this, c, x, y, w, h, layer, isInverse); + + if (s === 'star') { + c.setFillColor(fillColor); + } else if (o === mxBpmnShape.prototype.eventTypeEnum.THROWING || o === mxBpmnShape.prototype.eventTypeEnum.END) { + c.setStrokeColor(strokeColor); + c.setFillColor(fillColor); + } + } + } + } +}; + +mxBpmnShape.prototype.backgrounds = { + 'none': function none(c, x, y, w, h) {}, + 'gateway': function gateway(c, x, y, w, h) { + c.begin(); + c.moveTo(w / 2, 0); + c.lineTo(w, h / 2); + c.lineTo(w / 2, h); + c.lineTo(0, h / 2); + c.close(); + c.fillAndStroke(); + } +}; +mxBpmnShape.prototype.outlines = { + 'none': function none(c, x, y, w, h, isGateway) { + if (!isGateway) { + c.setShadow(false); + } + }, + 'standard': function standard(c, x, y, w, h, isGateway) { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + if (!isGateway) { + c.setShadow(false); + } + }, + 'eventInt': function eventInt(c, x, y, w, h, isGateway) { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + if (!isGateway) { + c.setShadow(false); + } + }, + 'eventNonint': function eventNonint(c, x, y, w, h, isGateway) { + var dashed = c.state.dashed; + c.setDashed(true); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + c.setDashed(dashed); + + if (!isGateway) { + c.setShadow(false); + } + }, + 'catching': function catching(c, x, y, w, h, isGateway) { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + if (!isGateway) { + c.setShadow(false); + } + + var inset = 2; + c.ellipse(inset, inset, w - 2 * inset, h - 2 * inset); + c.stroke(); + }, + 'boundInt': function boundInt(c, x, y, w, h, isGateway) { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + if (!isGateway) { + c.setShadow(false); + } + + var inset = 2; + c.ellipse(inset, inset, w - 2 * inset, h - 2 * inset); + c.stroke(); + }, + 'boundNonint': function boundNonint(c, x, y, w, h, isGateway) { + var dashed = c.state.dashed; + c.setDashed(true); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + if (!isGateway) { + c.setShadow(false); + } + + var inset = 2; + c.ellipse(inset, inset, w - 2 * inset, h - 2 * inset); + c.stroke(); + c.setDashed(dashed); + }, + 'throwing': function throwing(c, x, y, w, h, isGateway) { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + if (!isGateway) { + c.setShadow(false); + } + + var inset = 2; + c.ellipse(w * 0.02 + inset, h * 0.02 + inset, w * 0.96 - 2 * inset, h * 0.96 - 2 * inset); + c.stroke(); + }, + 'end': function end(c, x, y, w, h, isGateway) { + var sw = c.state.strokeWidth; + c.setStrokeWidth(sw * 3); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + c.setStrokeWidth(sw); + + if (!isGateway) { + c.setShadow(false); + } + } +}; +mxBpmnShape.prototype.symbols = { + 'general': function general(c, x, y, w, h) {}, + 'message': function message(c, x, y, w, h, layer, isInverse) { + c.rect(0, 0, w, h); + c.fillAndStroke(); + var fc = mxUtils.getValue(this.style, "fillColor", "none"); + + if (fc === 'none') { + if (isInverse) { + c.setStrokeColor('#ffffff'); + } + } + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w, 0); + c.stroke(); + }, + 'timer': function timer(c, x, y, w, h) { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h * 0.0642); + c.moveTo(w * 0.7484, h * 0.0654); + c.lineTo(w * 0.7126, h * 0.1281); + c.moveTo(w * 0.93, h * 0.2471); + c.lineTo(w * 0.8673, h * 0.2854); + c.moveTo(w, h * 0.5); + c.lineTo(w * 0.9338, h * 0.5); + c.moveTo(w * 0.93, h * 0.7509); + c.lineTo(w * 0.8673, h * 0.7126); + c.moveTo(w * 0.7484, h * 0.9326); + c.lineTo(w * 0.7126, h * 0.8699); + c.moveTo(w * 0.5, h * 0.9338); + c.lineTo(w * 0.5, h); + c.moveTo(w * 0.2496, h * 0.9325); + c.lineTo(w * 0.2854, h * 0.8699); + c.moveTo(w * 0.068, h * 0.7509); + c.lineTo(w * 0.1307, h * 0.7126); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.0642, h * 0.5); + c.moveTo(w * 0.068, h * 0.2471); + c.lineTo(w * 0.1307, h * 0.2854); + c.moveTo(w * 0.2496, h * 0.0654); + c.lineTo(w * 0.2854, h * 0.1281); + c.moveTo(w * 0.5246, h * 0.0706); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.7804, h * 0.5118); + c.stroke(); + }, + 'escalation': function escalation(c, x, y, w, h) { + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h); + c.lineTo(w * 0.5, h * 0.5); + c.close(); + c.fillAndStroke(); + }, + 'conditional': function conditional(c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.1027); + c.lineTo(w * 0.798, h * 0.1027); + c.moveTo(0, h * 0.3669); + c.lineTo(w * 0.798, h * 0.3669); + c.moveTo(0, h * 0.6311); + c.lineTo(w * 0.798, h * 0.6311); + c.moveTo(0, h * 0.8953); + c.lineTo(w * 0.798, h * 0.8953); + c.stroke(); + }, + 'link': function link(c, x, y, w, h) { + c.begin(); + c.moveTo(0, h * 0.76); + c.lineTo(0, h * 0.24); + c.lineTo(w * 0.63, h * 0.24); + c.lineTo(w * 0.63, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.63, h); + c.lineTo(w * 0.63, h * 0.76); + c.close(); + c.fillAndStroke(); + }, + 'error': function error(c, x, y, w, h) { + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.3287, h * 0.123); + c.lineTo(w * 0.6194, h * 0.6342); + c.lineTo(w, 0); + c.lineTo(w * 0.6625, h * 0.939); + c.lineTo(w * 0.3717, h * 0.5064); + c.close(); + c.fillAndStroke(); + }, + 'cancel': function cancel(c, x, y, w, h) { + c.begin(); + c.moveTo(w * 0.1051, 0); + c.lineTo(w * 0.5, h * 0.3738); + c.lineTo(w * 0.8909, 0); + c.lineTo(w, h * 0.1054); + c.lineTo(w * 0.623, h * 0.5); + c.lineTo(w, h * 0.8926); + c.lineTo(w * 0.8909, h); + c.lineTo(w * 0.5, h * 0.6242); + c.lineTo(w * 0.1051, h); + c.lineTo(0, h * 0.8926); + c.lineTo(w * 0.373, h * 0.5); + c.lineTo(0, h * 0.1054); + c.close(); + c.fillAndStroke(); + }, + 'compensation': function compensation(c, x, y, w, h) { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.close(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(w, 0); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + }, + 'signal': function signal(c, x, y, w, h) { + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + }, + 'multiple': function multiple(c, x, y, w, h) { + c.begin(); + c.moveTo(0, h * 0.39); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.39); + c.lineTo(w * 0.815, h); + c.lineTo(w * 0.185, h); + c.close(); + c.fillAndStroke(); + }, + 'parallelMultiple': function parallelMultiple(c, x, y, w, h) { + c.begin(); + c.moveTo(w * 0.38, 0); + c.lineTo(w * 0.62, 0); + c.lineTo(w * 0.62, h * 0.38); + c.lineTo(w, h * 0.38); + c.lineTo(w, h * 0.62); + c.lineTo(w * 0.62, h * 0.62); + c.lineTo(w * 0.62, h); + c.lineTo(w * 0.38, h); + c.lineTo(w * 0.38, h * 0.62); + c.lineTo(0, h * 0.62); + c.lineTo(0, h * 0.38); + c.lineTo(w * 0.38, h * 0.38); + c.close(); + c.fillAndStroke(); + }, + 'terminate': function terminate(c, x, y, w, h) { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + }, + 'exclusiveGw': function exclusiveGw(c, x, y, w, h) { + var strokeColor = c.state.strokeColor; + var fillColor = c.state.fillColor; + c.setStrokeColor(fillColor); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.105, 0); + c.lineTo(w * 0.5, h * 0.38); + c.lineTo(w * 0.895, h * 0); + c.lineTo(w, h * 0.11); + c.lineTo(w * 0.6172, h * 0.5); + c.lineTo(w, h * 0.89); + c.lineTo(w * 0.895, h); + c.lineTo(w * 0.5, h * 0.62); + c.lineTo(w * 0.105, h); + c.lineTo(0, h * 0.89); + c.lineTo(w * 0.3808, h * 0.5); + c.lineTo(0, h * 0.11); + c.close(); + c.fillAndStroke(); + c.setStrokeColor(strokeColor); + c.setFillColor(fillColor); + }, + 'parallelGw': function parallelGw(c, x, y, w, h) { + var strokeColor = c.state.strokeColor; + var fillColor = c.state.fillColor; + c.setStrokeColor(fillColor); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.38, 0); + c.lineTo(w * 0.62, 0); + c.lineTo(w * 0.62, h * 0.38); + c.lineTo(w, h * 0.38); + c.lineTo(w, h * 0.62); + c.lineTo(w * 0.62, h * 0.62); + c.lineTo(w * 0.62, h); + c.lineTo(w * 0.38, h); + c.lineTo(w * 0.38, h * 0.62); + c.lineTo(0, h * 0.62); + c.lineTo(0, h * 0.38); + c.lineTo(w * 0.38, h * 0.38); + c.close(); + c.fillAndStroke(); + c.setStrokeColor(strokeColor); + c.setFillColor(fillColor); + }, + 'complexGw': function complexGw(c, x, y, w, h) { + var strokeColor = c.state.strokeColor; + var fillColor = c.state.fillColor; + c.setStrokeColor(fillColor); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(0, h * 0.44); + c.lineTo(w * 0.36, h * 0.44); + c.lineTo(w * 0.1, h * 0.18); + c.lineTo(w * 0.18, h * 0.1); + c.lineTo(w * 0.44, h * 0.36); + c.lineTo(w * 0.44, 0); + c.lineTo(w * 0.56, 0); + c.lineTo(w * 0.56, h * 0.36); + c.lineTo(w * 0.82, h * 0.1); + c.lineTo(w * 0.90, h * 0.18); + c.lineTo(w * 0.64, h * 0.44); + c.lineTo(w, h * 0.44); + c.lineTo(w, h * 0.56); + c.lineTo(w * 0.64, h * 0.56); + c.lineTo(w * 0.9, h * 0.82); + c.lineTo(w * 0.82, h * 0.9); + c.lineTo(w * 0.56, h * 0.64); + c.lineTo(w * 0.56, h); + c.lineTo(w * 0.44, h); + c.lineTo(w * 0.44, h * 0.64); + c.lineTo(w * 0.18, h * 0.9); + c.lineTo(w * 0.1, h * 0.82); + c.lineTo(w * 0.36, h * 0.56); + c.lineTo(0, h * 0.56); + c.close(); + c.fillAndStroke(); + c.setStrokeColor(strokeColor); + c.setFillColor(fillColor); + }, + 'star': function star(c, x, y, w, h) { + c.translate(w / 5, h / 6); + h *= 2 / 3; + w *= 3 / 5; + c.begin(); + c.moveTo(0, h / 4); + c.lineTo(w / 3, h / 4); + c.lineTo(w / 2, 0); + c.lineTo(2 * w / 3, h / 4); + c.lineTo(w, h / 4); + c.lineTo(5 * w / 6, h / 2); + c.lineTo(w, 3 * h / 4); + c.lineTo(2 * w / 3, 3 * h / 4); + c.lineTo(w / 2, h); + c.lineTo(w / 3, 3 * h / 4); + c.lineTo(0, 3 * h / 4); + c.lineTo(w / 6, h / 2); + c.close(); + c.fillAndStroke(); + } +}; +mxCellRenderer.registerShape('mxgraph.bpmn.shape', mxBpmnShape); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/er/mxER.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/er/mxER.js new file mode 100644 index 0000000000000..60639caaa2a2d --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/er/mxER.js @@ -0,0 +1,994 @@ +"use strict"; + +function mxShapeEREntity(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeEREntity, mxShape); + +mxShapeEREntity.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, 'buttonText', 'Entity'); + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + var rSize = 10; + w = Math.max(w, 2 * rSize); + h = Math.max(h, 2 * rSize); + this.background(c, x, y, w, h, rSize, fontColor); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeEREntity.prototype.background = function (c, x, y, w, h, rSize, fontColor) { + var buttonStyle = mxUtils.getValue(this.style, 'buttonStyle', 'round').toString(); + + if (buttonStyle === 'round') { + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); + } else if (buttonStyle === 'rect') { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + } else if (buttonStyle === 'dblFrame') { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + c.setFillColor(fillColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + rSize = Math.min(w, h); + c.begin(); + c.moveTo(rSize * 0.1, rSize * 0.1); + c.lineTo(w - rSize * 0.1, rSize * 0.1); + c.lineTo(w - rSize * 0.1, h - rSize * 0.1); + c.lineTo(rSize * 0.1, h - rSize * 0.1); + c.close(); + c.stroke(); + } +}; + +mxShapeEREntity.prototype.mainText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape('mxgraph.er.entity', mxShapeEREntity); +mxShapeEREntity.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxShapeEREntityExt(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeEREntityExt, mxShape); + +mxShapeEREntityExt.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, 'buttonText', 'Entity'); + var attributes = mxUtils.getValue(this.style, 'subText', '+ attribute 1,+ attribute 2,+ attribute 3').toString().split(','); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + var mainColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#008cff'); + var attrColor = mxUtils.getValue(this.style, 'fillColor2', '#ffffff'); + var maxTextWidth = 0; + c.translate(x, y); + var rSize = 10; + var barY = fontSize * 1.25; + + for (var i = 0; i < attributes.length; i++) { + var currWidth = mxUtils.getSizeForString(attributes[i], fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxTextWidth) { + maxTextWidth = currWidth; + } + } + + w = Math.max(w, 2 * rSize, maxTextWidth + rSize); + h = Math.max(h, 2 * rSize, (attributes.length + 1) * barY); + this.background(c, x, y, w, h, rSize); + c.setShadow(false); + this.shapes(c, x, y, w, h, fontSize, mainColor, attrColor, rSize, barY); + this.mainText(c, x, y, w, h, mainText, fontSize, attrColor); + this.attrText(c, x, y, w, h, attributes, fontSize, strokeColor, barY, rSize); +}; + +mxShapeEREntityExt.prototype.background = function (c, x, y, w, h, rSize) { + var buttonStyle = mxUtils.getValue(this.style, 'buttonStyle', 'round').toString(); + c.begin(); + + if (buttonStyle === 'round') { + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + } else if (buttonStyle === 'rect') { + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + } + + c.close(); + c.fillAndStroke(); +}; + +mxShapeEREntityExt.prototype.mainText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, fontSize * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxShapeEREntityExt.prototype.shapes = function (c, x, y, w, h, fontSize, mainColor, attrColor, rSize, barY) { + var buttonStyle = mxUtils.getValue(this.style, 'buttonStyle', 'round').toString(); + + if (buttonStyle === 'round') { + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, barY); + c.lineTo(0, barY); + c.close(); + c.fill(); + c.setFillColor(attrColor); + c.begin(); + c.moveTo(w, barY); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.lineTo(0, barY); + c.close(); + c.fill(); + } else if (buttonStyle === 'rect') { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, barY); + c.lineTo(0, barY); + c.close(); + c.fill(); + c.setFillColor(attrColor); + c.begin(); + c.moveTo(0, barY); + c.lineTo(w, barY); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fill(); + } + + c.begin(); + + if (buttonStyle === 'round') { + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + } else if (buttonStyle === 'rect') { + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + } + + c.close(); + c.stroke(); +}; + +mxShapeEREntityExt.prototype.attrText = function (c, x, y, w, h, attributes, fontSize, fontColor, barY, rSize) { + for (var i = 0; i < attributes.length; i++) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(rSize * 0.5, (i + 1.5) * barY, 0, 0, attributes[i], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape('mxgraph.er.entityExt', mxShapeEREntityExt); +mxShapeEREntityExt.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxShapeERAttribute(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeERAttribute, mxShape); + +mxShapeERAttribute.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, 'buttonText', 'Entity'); + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + var rSize = 10; + w = Math.max(w, 2 * rSize); + h = Math.max(h, 2 * rSize); + this.background(c, x, y, w, h, rSize, fontColor); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeERAttribute.prototype.background = function (c, x, y, w, h, rSize, fontColor) { + var buttonStyle = mxUtils.getValue(this.style, 'buttonStyle', 'simple').toString(); + + if (buttonStyle === 'simple') { + c.begin(); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + } else if (buttonStyle === 'dblFrame') { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#666666'); + c.setFillColor(fillColor); + c.begin(); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + rSize = Math.min(w, h); + c.begin(); + c.ellipse(rSize * 0.1, rSize * 0.1, w - rSize * 0.2, h - rSize * 0.2); + c.stroke(); + } +}; + +mxShapeERAttribute.prototype.mainText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape('mxgraph.er.attribute', mxShapeERAttribute); +mxShapeERAttribute.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.144, 0.144), false), new mxConnectionConstraint(new mxPoint(0.856, 0.144), false), new mxConnectionConstraint(new mxPoint(0.856, 0.856), false), new mxConnectionConstraint(new mxPoint(0.144, 0.856), false), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true)]; + +function mxShapeERHas(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeERHas, mxShape); + +mxShapeERHas.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, 'buttonText', 'Entity'); + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + var rSize = 10; + w = Math.max(w, 2 * rSize); + h = Math.max(h, 2 * rSize); + this.background(c, x, y, w, h, rSize, fontColor); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeERHas.prototype.background = function (c, x, y, w, h, rSize, fontColor) { + var buttonStyle = mxUtils.getValue(this.style, 'buttonStyle', 'rhombus').toString(); + + if (buttonStyle === 'rhombus') { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + } else if (buttonStyle === 'dblFrame') { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#666666'); + c.setFillColor(fillColor); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.1, h * 0.5); + c.lineTo(w * 0.5, h * 0.1); + c.lineTo(w * 0.9, h * 0.5); + c.lineTo(w * 0.5, h * 0.9); + c.close(); + c.stroke(); + } +}; + +mxShapeERHas.prototype.mainText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape('mxgraph.er.has', mxShapeERHas); +mxShapeERHas.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(0.25, 0.25), false), new mxConnectionConstraint(new mxPoint(0.25, 0.75), false), new mxConnectionConstraint(new mxPoint(0.75, 0.25), false), new mxConnectionConstraint(new mxPoint(0.75, 0.75), false)]; + +function mxShapeERCloud(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeERCloud, mxShape); + +mxShapeERCloud.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, 'buttonText', 'Entity'); + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + var rSize = 10; + w = Math.max(w, 2 * rSize); + h = Math.max(h, 2 * rSize); + this.background(c, x, y, w, h, rSize, fontColor); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeERCloud.prototype.background = function (c, x, y, w, h, rSize, fontColor) { + c.begin(); + c.moveTo(0.25 * w, 0.25 * h); + c.curveTo(0.05 * w, 0.25 * h, 0, 0.5 * h, 0.16 * w, 0.55 * h); + c.curveTo(0, 0.66 * h, 0.18 * w, 0.9 * h, 0.31 * w, 0.8 * h); + c.curveTo(0.4 * w, h, 0.7 * w, h, 0.8 * w, 0.8 * h); + c.curveTo(w, 0.8 * h, w, 0.6 * h, 0.875 * w, 0.5 * h); + c.curveTo(w, 0.3 * h, 0.8 * w, 0.1 * h, 0.625 * w, 0.2 * h); + c.curveTo(0.5 * w, 0.05 * h, 0.3 * w, 0.05 * h, 0.25 * w, 0.25 * h); + c.fillAndStroke(); +}; + +mxShapeERCloud.prototype.mainText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape('mxgraph.er.cloud', mxShapeERCloud); +mxShapeERCloud.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.08, 0.5), false), new mxConnectionConstraint(new mxPoint(0.9, 0.5), false), new mxConnectionConstraint(new mxPoint(0.5, 0.1), false), new mxConnectionConstraint(new mxPoint(0.5, 0.92), false), new mxConnectionConstraint(new mxPoint(0.24, 0.24), false), new mxConnectionConstraint(new mxPoint(0.22, 0.8), false), new mxConnectionConstraint(new mxPoint(0.81, 0.2), false), new mxConnectionConstraint(new mxPoint(0.78, 0.78), false)]; + +function mxShapeERHierarchy(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeERHierarchy, mxShape); + +mxShapeERHierarchy.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, 'buttonText', 'main').toString().split(','); + var subText = mxUtils.getValue(this.style, 'subText', 'sub').toString().split(','); + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + var rSize = 10; + w = Math.max(w, 2 * rSize); + h = Math.max(h, 2 * rSize); + this.background(c, x, y, w, h, rSize, fontColor); + c.setShadow(false); + this.shapeText(c, x, y, w, h, mainText, subText, fontSize, fontColor); +}; + +mxShapeERHierarchy.prototype.background = function (c, x, y, w, h, rSize, fontColor) { + var buttonStyle = mxUtils.getValue(this.style, 'buttonStyle', 'round').toString(); + + if (buttonStyle === 'round') { + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); + } else if (buttonStyle === 'rect') { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + } else if (buttonStyle === 'dblFrame') { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#666666'); + c.setFillColor(fillColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + rSize = Math.min(w, h); + c.begin(); + c.moveTo(rSize * 0.1, rSize * 0.1); + c.lineTo(w - rSize * 0.1, rSize * 0.1); + c.lineTo(w - rSize * 0.1, h - rSize * 0.1); + c.lineTo(rSize * 0.1, h - rSize * 0.1); + c.close(); + c.stroke(); + } + + var trX = 0; + var trY = 0; + + if (buttonStyle === 'round') { + trX = w * 0.5; + trY = rSize; + c.translate(trX, trY); + w = w * 0.5 - rSize; + h = h - 2 * rSize; + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); + } else if (buttonStyle === 'rect') { + trX = w * 0.5; + trY = rSize; + c.translate(trX, trY); + w = w * 0.5 - rSize; + h = h - 2 * rSize; + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + } else if (buttonStyle === 'dblFrame') { + trX = w * 0.5; + trY = rSize * 0.15; + c.translate(trX, trY); + w = w * 0.5 - rSize * 0.15; + h = h - rSize * 0.3; + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#666666'); + c.setFillColor(fillColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + rSize = Math.min(w, h); + c.begin(); + c.moveTo(rSize * 0.1, rSize * 0.1); + c.lineTo(w - rSize * 0.1, rSize * 0.1); + c.lineTo(w - rSize * 0.1, h - rSize * 0.1); + c.lineTo(rSize * 0.1, h - rSize * 0.1); + c.close(); + c.stroke(); + } + + c.translate(-trX, -trY); +}; + +mxShapeERHierarchy.prototype.shapeText = function (c, x, y, w, h, text, subText, fontSize, fontColor, rSize) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.25, (h - fontSize) * 0.5, 0, 0, text[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.25, (h + fontSize) * 0.5, 0, 0, text[1], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.7, (h - fontSize) * 0.5, 0, 0, subText[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.7, (h + fontSize) * 0.5, 0, 0, subText[1], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape('mxgraph.er.hierarchy', mxShapeERHierarchy); +mxShapeERHierarchy.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxShapeERNote(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeERNote, mxShape); + +mxShapeERNote.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, 'buttonText', 'Entity'); + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + var backColor = mxUtils.getValue(this.style, 'fillColor2', '#ffffff'); + c.translate(x, y); + var flipSize = 20; + w = Math.max(w, flipSize * 2); + h = Math.max(h, flipSize * 2); + this.background(c, x, y, w, h, flipSize); + c.setShadow(false); + this.flipShape(c, x, y, w, h, flipSize, backColor); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeERNote.prototype.background = function (c, x, y, w, h, flipSize) { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - flipSize, 0); + c.lineTo(w, flipSize); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeERNote.prototype.flipShape = function (c, x, y, w, h, flipSize, backColor) { + c.setLineJoin('round'); + c.setFillColor(backColor); + c.begin(); + c.moveTo(w - flipSize, 0); + c.lineTo(w, flipSize); + c.lineTo(w - flipSize, flipSize); + c.close(); + c.fillAndStroke(); +}; + +mxShapeERNote.prototype.mainText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape('mxgraph.er.note', mxShapeERNote); +mxShapeERNote.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxShapeERChen(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeERChen, mxShape); + +mxShapeERChen.prototype.paintVertexShape = function (c, x, y, w, h) { + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + var flipSize = 20; + w = Math.max(w, flipSize * 2); + h = Math.max(h, flipSize * 2); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h, fontSize, fontColor); +}; + +mxShapeERChen.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeERChen.prototype.foreground = function (c, x, y, w, h, fontSize, fontColor) { + c.begin(); + c.moveTo(0, h * 0.25); + c.lineTo(w, h * 0.25); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.moveTo(0, h * 0.75); + c.lineTo(w, h * 0.75); + c.moveTo(w * 0.25, h * 0.5); + c.lineTo(w * 0.25, h); + c.moveTo(w * 0.5, h * 0.25); + c.lineTo(w * 0.5, h); + c.moveTo(w * 0.75, h * 0.5); + c.lineTo(w * 0.75, h); + c.stroke(); + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.125, 0, 0, 'ERD Peter Chen\'s Notation', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontSize(fontSize * 0.85); + c.text(w * 0.25, h * 0.375, 0, 0, 'Cardinality', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.75, h * 0.375, 0, 0, 'Optionality', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontSize(fontSize * 0.7); + c.text(w * 0.125, h * 0.625, 0, 0, '1', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.375, h * 0.625, 0, 0, 'One', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.625, h * 0.625, 0, 0, '0', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.875, h * 0.625, 0, 0, 'Optional', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.125, h * 0.875, 0, 0, 'N', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.375, h * 0.875, 0, 0, 'Many', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.625, h * 0.875, 0, 0, '1', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.875, h * 0.875, 0, 0, 'Mandatory', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape('mxgraph.er.chens', mxShapeERChen); +mxShapeERChen.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxShapeERBachman(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeERBachman, mxShape); + +mxShapeERBachman.prototype.paintVertexShape = function (c, x, y, w, h) { + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h, fontSize, fontColor); +}; + +mxShapeERBachman.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeERBachman.prototype.foreground = function (c, x, y, w, h, fontSize, fontColor) { + c.begin(); + c.moveTo(0, h * 0.125); + c.lineTo(w, h * 0.125); + c.moveTo(0, h * 0.25); + c.lineTo(w, h * 0.25); + c.moveTo(0, h * 0.375); + c.lineTo(w, h * 0.375); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.moveTo(0, h * 0.625); + c.lineTo(w, h * 0.625); + c.moveTo(0, h * 0.75); + c.lineTo(w, h * 0.75); + c.moveTo(0, h * 0.875); + c.lineTo(w, h * 0.875); + c.moveTo(w * 0.5, h * 0.125); + c.lineTo(w * 0.5, h); + c.stroke(); + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.0625, 0, 0, 'ERD Bachman\'s Notation', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontSize(fontSize * 0.85); + c.text(w * 0.52, h * 0.1875, 0, 0, 'Relationship', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.3125, 0, 0, 'Cardinality (One)', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.4375, 0, 0, 'Cardinality (Many)', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.5625, 0, 0, 'Mandatory, One', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.6875, 0, 0, 'Mandatory, Many', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.8125, 0, 0, 'Optional, One', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.9375, 0, 0, 'Optional, Many', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var textWidth = mxUtils.getSizeForString('has/forms', fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + c.begin(); + c.moveTo(w * 0.04, h * 0.1875); + c.lineTo(w * 0.25 - textWidth * 0.5, h * 0.1875); + c.moveTo(w * 0.25 + textWidth * 0.5, h * 0.1875); + c.lineTo(w * 0.46, h * 0.1875); + c.text(w * 0.25, h * 0.1875, 0, 0, 'has/forms', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, true, 0, 0); + c.moveTo(w * 0.04, h * 0.3125); + c.lineTo(w * 0.46, h * 0.3125); + c.moveTo(w * 0.04, h * 0.4375); + c.lineTo(w * 0.46, h * 0.4375); + c.moveTo(w * 0.46, h * 0.4050); + c.lineTo(w * 0.4, h * 0.4375); + c.lineTo(w * 0.46, h * 0.47); + c.moveTo(w * 0.04, h * 0.5625); + c.lineTo(w * 0.46, h * 0.5625); + c.moveTo(w * 0.38, h * 0.53); + c.lineTo(w * 0.38, h * 0.595); + c.moveTo(w * 0.04, h * 0.6875); + c.lineTo(w * 0.46, h * 0.6875); + c.moveTo(w * 0.46, h * 0.655); + c.lineTo(w * 0.4, h * 0.6875); + c.lineTo(w * 0.46, h * 0.72); + c.moveTo(w * 0.38, h * 0.655); + c.lineTo(w * 0.38, h * 0.72); + c.moveTo(w * 0.04, h * 0.8125); + c.lineTo(w * 0.46, h * 0.8125); + c.moveTo(w * 0.04, h * 0.9375); + c.lineTo(w * 0.46, h * 0.9375); + c.moveTo(w * 0.46, h * 0.9050); + c.lineTo(w * 0.4, h * 0.9375); + c.lineTo(w * 0.46, h * 0.97); + c.stroke(); + var ellSize = h / 15; + c.begin(); + c.ellipse(w * 0.46 - ellSize, h * 0.8125 - ellSize * 0.5, ellSize, ellSize); + c.fillAndStroke(); + c.begin(); + c.ellipse(w * 0.4 - ellSize, h * 0.9375 - ellSize * 0.5, ellSize, ellSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.er.bachmans', mxShapeERBachman); +mxShapeERBachman.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxShapeERInfEng(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeERInfEng, mxShape); + +mxShapeERInfEng.prototype.paintVertexShape = function (c, x, y, w, h) { + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + w = Math.max(w, h / 1.5); + h = Math.max(h, fontSize * 5); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h, fontSize, fontColor); +}; + +mxShapeERInfEng.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeERInfEng.prototype.foreground = function (c, x, y, w, h, fontSize, fontColor) { + c.begin(); + c.moveTo(0, h * 0.2); + c.lineTo(w, h * 0.2); + c.moveTo(0, h * 0.4); + c.lineTo(w, h * 0.4); + c.moveTo(0, h * 0.6); + c.lineTo(w, h * 0.6); + c.moveTo(0, h * 0.8); + c.lineTo(w, h * 0.8); + c.moveTo(w * 0.5, h * 0.2); + c.lineTo(w * 0.5, h); + c.stroke(); + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.1, 0, 0, 'ERD Information Engineering Notation', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontSize(fontSize * 0.85); + c.text(w * 0.52, h * 0.3, 0, 0, 'Zero or one', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.5, 0, 0, 'One only', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.7, 0, 0, 'Zero or more', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.9, 0, 0, 'One or more', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var ellSize = h / 12; + c.begin(); + c.moveTo(w * 0.04, h * 0.3); + c.lineTo(w * 0.46, h * 0.3); + c.moveTo(w * 0.46 - ellSize, h * 0.25); + c.lineTo(w * 0.46 - ellSize, h * 0.35); + c.moveTo(w * 0.04, h * 0.5); + c.lineTo(w * 0.46, h * 0.5); + c.moveTo(w * 0.46 - ellSize * 2, h * 0.45); + c.lineTo(w * 0.46 - ellSize * 2, h * 0.55); + c.moveTo(w * 0.46 - ellSize * 2.5, h * 0.45); + c.lineTo(w * 0.46 - ellSize * 2.5, h * 0.55); + c.moveTo(w * 0.04, h * 0.7); + c.lineTo(w * 0.46, h * 0.7); + c.moveTo(w * 0.46, h * 0.65); + c.lineTo(w * 0.46 - ellSize * 2, h * 0.7); + c.lineTo(w * 0.46, h * 0.75); + c.stroke(); + c.moveTo(w * 0.04, h * 0.9); + c.lineTo(w * 0.46, h * 0.9); + c.moveTo(w * 0.46, h * 0.85); + c.lineTo(w * 0.46 - ellSize * 2, h * 0.9); + c.lineTo(w * 0.46, h * 0.95); + c.moveTo(w * 0.46 - ellSize * 2.5, h * 0.85); + c.lineTo(w * 0.46 - ellSize * 2.5, h * 0.95); + c.stroke(); + c.begin(); + c.ellipse(w * 0.46 - ellSize * 3, h * 0.3 - ellSize * 0.5, ellSize, ellSize); + c.fillAndStroke(); + c.begin(); + c.ellipse(w * 0.46 - ellSize * 3, h * 0.7 - ellSize * 0.5, ellSize, ellSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.er.ie', mxShapeERInfEng); +mxShapeERInfEng.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; +mxMarker.addMarker('ERone', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + return function () { + c.begin(); + c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2); + c.lineTo(pe.x - nx / 2 + ny / 2, pe.y - ny / 2 - nx / 2); + c.stroke(); + }; +}); +mxMarker.addMarker('ERmandOne', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + return function () { + c.begin(); + c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2); + c.lineTo(pe.x - nx / 2 + ny / 2, pe.y - ny / 2 - nx / 2); + c.moveTo(pe.x - nx - ny / 2, pe.y - ny + nx / 2); + c.lineTo(pe.x - nx + ny / 2, pe.y - ny - nx / 2); + c.stroke(); + }; +}); +mxMarker.addMarker('ERmany', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + return function () { + c.begin(); + c.moveTo(pe.x + ny / 2, pe.y - nx / 2); + c.lineTo(pe.x - nx, pe.y - ny); + c.lineTo(pe.x - ny / 2, pe.y + nx / 2); + c.stroke(); + }; +}); +mxMarker.addMarker('ERoneToMany', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + return function () { + c.begin(); + c.moveTo(pe.x - nx - ny / 2, pe.y - ny + nx / 2); + c.lineTo(pe.x - nx + ny / 2, pe.y - ny - nx / 2); + c.moveTo(pe.x + ny / 2, pe.y - nx / 2); + c.lineTo(pe.x - nx, pe.y - ny); + c.lineTo(pe.x - ny / 2, pe.y + nx / 2); + c.stroke(); + }; +}); +mxMarker.addMarker('ERzeroToMany', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + var a = size / 2; + return function () { + c.begin(); + c.ellipse(pe.x - 1.5 * nx - a, pe.y - 1.5 * ny - a, 2 * a, 2 * a); + + if (filled) { + var oldColor = mxUtils.getValue(shape.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + c.setFillColor('#ffffff'); + c.fillAndStroke(); + c.setFillColor(oldColor); + } else { + c.stroke(); + } + + c.begin(); + c.moveTo(pe.x + ny / 2, pe.y - nx / 2); + c.lineTo(pe.x - nx, pe.y - ny); + c.lineTo(pe.x - ny / 2, pe.y + nx / 2); + c.stroke(); + }; +}); +mxMarker.addMarker('ERzeroToOne', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + var a = size / 2; + return function () { + c.begin(); + c.ellipse(pe.x - 1.5 * nx - a, pe.y - 1.5 * ny - a, 2 * a, 2 * a); + + if (filled) { + var oldColor = mxUtils.getValue(shape.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + c.setFillColor('#ffffff'); + c.fillAndStroke(); + c.setFillColor(oldColor); + } else { + c.stroke(); + } + + c.begin(); + c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2); + c.lineTo(pe.x - nx / 2 + ny / 2, pe.y - ny / 2 - nx / 2); + c.stroke(); + }; +}); + +function mxShapeERRRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeERRRect, mxShape); +mxShapeERRRect.prototype.cst = { + RRECT: 'mxgraph.er.rrect', + R_SIZE: 'rSize' +}; +mxShapeERRRect.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Rounding Size', + type: 'float' +}]; + +mxShapeERRRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeERRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeERRRect.prototype.cst.RRECT, mxShapeERRRect); +mxShapeERRRect.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxShapeERAnchor(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; +} + +; +mxUtils.extend(mxShapeERAnchor, mxShape); +mxShapeERAnchor.prototype.cst = { + ANCHOR: 'mxgraph.er.anchor' +}; + +mxShapeERAnchor.prototype.paintVertexShape = function (c, x, y, w, h) {}; + +mxCellRenderer.registerShape(mxShapeERAnchor.prototype.cst.ANCHOR, mxShapeERAnchor); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/ios7/mxIOS7Ui.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/ios7/mxIOS7Ui.js new file mode 100644 index 0000000000000..87199cf925321 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/ios7/mxIOS7Ui.js @@ -0,0 +1,1283 @@ +"use strict"; + +var mxIOS7C = { + MAIN_TEXT: 'mainText', + SUB_TEXT: 'subText', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize', + BAR_POS: 'barPos', + BUTTON_TEXT: 'buttonText', + BUTTON_STATE: 'buttonState', + SELECTED: '+', + STATE_ON: 'on', + STATE_OFF: 'off', + GRID_SIZE: 'gridSize', + SHAPE_IOS7_APP_BAR: 'mxgraph.ios7ui.appBar', + SHAPE_IOS7_ON_OFF_BUTTON: 'mxgraph.ios7ui.onOffButton', + SHAPE_IOS7_SLIDER: 'mxgraph.ios7ui.slider', + SHAPE_IOS7_DOWNLOAD_BAR: 'mxgraph.ios7ui.downloadBar', + SHAPE_IOS7_ICON: 'mxgraph.ios7ui.icon', + SHAPE_IOS7_HOR_BUTTON_BAR: 'mxgraph.ios7ui.horButtonBar', + SHAPE_IOS7_PAGE_CONTROL: 'mxgraph.ios7ui.pageControl', + SHAPE_IOS7_EXPAND: 'mxgraph.ios7ui.expand', + SHAPE_IOS7_ICON_GRID: 'mxgraph.ios7ui.iconGrid', + SHAPE_IOS7_PHONE: 'mxgraph.ios7ui.phone', + SHAPE_IOS7_SEARCH_BOX: 'mxgraph.ios7ui.searchBox', + SHAPE_IOS7_URL: 'mxgraph.ios7ui.url', + SHAPE_IOS7_ACTION_DIALOG: 'mxgraph.ios7ui.actionDialog', + STYLE_FILLCOLOR2: 'fillColor2', + STYLE_FILLCOLOR3: 'fillColor3', + STYLE_TEXTCOLOR: 'textColor', + STYLE_TEXTCOLOR2: 'textColor2', + STYLE_STROKECOLOR2: 'strokeColor2', + STYLE_STROKECOLOR3: 'strokeColor3', + STYLE_TEXTSIZE: 'textSize' +}; + +function mxShapeIOS7AppBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7AppBar, mxShape); +mxShapeIOS7AppBar.prototype.customProperties = [{ + name: 'fillColor2', + dispName: 'Fill Color 2', + type: 'color' +}]; + +mxShapeIOS7AppBar.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeIOS7AppBar.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeIOS7AppBar.prototype.foreground = function (c, x, y, w, h) { + c.setFillColor(mxUtils.getValue(this.style, mxIOS7C.STYLE_FILLCOLOR2, '#222222')); + c.ellipse(5, h * 0.5 - 1.5, 3, 3); + c.fill(); + c.ellipse(9, h * 0.5 - 1.5, 3, 3); + c.fill(); + c.ellipse(13, h * 0.5 - 1.5, 3, 3); + c.fill(); + c.ellipse(17, h * 0.5 - 1.5, 3, 3); + c.fill(); + c.ellipse(21, h * 0.5 - 1.5, 3, 3); + c.fill(); + c.ellipse(54, h * 0.5 + 2, 2, 2); + c.fillAndStroke(); + c.setStrokeWidth(2); + c.begin(); + c.moveTo(52, h * 0.5 + 1); + c.arcTo(3.5, 3.5, 0, 0, 1, 58, h * 0.5 + 1); + c.stroke(); + c.begin(); + c.moveTo(50, h * 0.5 - 1); + c.arcTo(6, 6, 0, 0, 1, 60, h * 0.5 - 1); + c.stroke(); + c.begin(); + c.moveTo(w - 19, h * 0.5 - 2); + c.lineTo(w - 6, h * 0.5 - 2); + c.lineTo(w - 6, h * 0.5 + 2); + c.lineTo(w - 19, h * 0.5 + 2); + c.close(); + c.fill(); + c.setStrokeWidth(1); + c.begin(); + c.moveTo(w - 44, h * 0.5 - 2.5); + c.lineTo(w - 36, h * 0.5 + 2.5); + c.lineTo(w - 40, h * 0.5 + 5); + c.lineTo(w - 40, h * 0.5 - 5); + c.lineTo(w - 36, h * 0.5 - 2.5); + c.lineTo(w - 44, h * 0.5 + 2.5); + c.stroke(); + c.begin(); + c.moveTo(w - 20, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 3); + c.lineTo(w - 20, h * 0.5 + 3); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_APP_BAR, mxShapeIOS7AppBar); + +function mxShapeIOS7OnOffButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7OnOffButton, mxShape); +mxShapeIOS7OnOffButton.prototype.customProperties = [{ + name: 'buttonState', + dispName: 'Button State', + type: 'enum', + enumList: [{ + val: 'on', + dispName: 'On' + }, { + val: 'off', + dispName: 'Off' + }] +}, { + name: 'strokeColor2', + dispName: 'Stroke Color 2', + type: 'color' +}, { + name: 'fillColor2', + dispName: 'Fill Color 2', + type: 'color' +}]; + +mxShapeIOS7OnOffButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + w = Math.max(w, 2 * h); + var state = mxUtils.getValue(this.style, mxIOS7C.BUTTON_STATE, mxIOS7C.STATE_ON); + this.background(c, x, y, w, h, state); + c.setShadow(false); + this.foreground(c, x, y, w, h, state); +}; + +mxShapeIOS7OnOffButton.prototype.background = function (c, x, y, w, h, state) { + if (state === mxIOS7C.STATE_ON) { + c.roundrect(0, 0, w, h, h * 0.5, h * 0.5); + c.fillAndStroke(); + } else if (state === mxIOS7C.STATE_OFF) { + c.setStrokeColor(mxUtils.getValue(this.style, mxIOS7C.STYLE_STROKECOLOR2, '#aaaaaa')); + c.setFillColor(mxUtils.getValue(this.style, mxIOS7C.STYLE_FILLCOLOR2, '#ffffff')); + c.roundrect(0, 0, w, h, h * 0.5, h * 0.5); + c.fillAndStroke(); + } +}; + +mxShapeIOS7OnOffButton.prototype.foreground = function (c, x, y, w, h, state) { + c.setFillColor('#ffffff'); + + if (state === mxIOS7C.STATE_ON) { + c.ellipse(w - h + 1, 1, h - 2, h - 2); + c.fill(); + } else { + c.ellipse(0, 0, h, h); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_ON_OFF_BUTTON, mxShapeIOS7OnOffButton); + +function mxShapeIOS7Slider(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.barPos = 80; +} + +; +mxUtils.extend(mxShapeIOS7Slider, mxShape); + +mxShapeIOS7Slider.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeIOS7Slider.prototype.foreground = function (c, w, h) { + c.setStrokeWidth(2); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + var barPos = mxUtils.getValue(this.style, mxIOS7C.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var deadzone = 0; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + c.setStrokeColor(mxUtils.getValue(this.style, mxIOS7C.STYLE_STROKECOLOR2, '#a0a0a0')); + c.ellipse(truePos - 5, h * 0.5 - 5, 10, 10); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_SLIDER, mxShapeIOS7Slider); + +Graph.handleFactory[mxIOS7C.SHAPE_IOS7_SLIDER] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'barPos', this.barPos)))); + return new mxPoint(bounds.x + barPos / 100 * bounds.width, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 1000; + })]; + return handles; +}; + +function mxShapeIOS7DownloadBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.barPos = 80; +} + +; +mxUtils.extend(mxShapeIOS7DownloadBar, mxShape); +mxShapeIOS7DownloadBar.prototype.customProperties = [{ + name: 'barPos', + dispName: 'Handle Position', + type: 'float', + min: 0, + max: 1, + defVal: 30 +}, { + name: 'strokeColor2', + dispName: 'Stroke Color 2', + type: 'color' +}]; + +mxShapeIOS7DownloadBar.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.foreground(c, w, h); +}; + +mxShapeIOS7DownloadBar.prototype.foreground = function (c, w, h) { + var fieldText = mxUtils.getValue(this.style, mxIOS7C.BUTTON_TEXT, ''); + c.setFontStyle(mxConstants.FONT_BOLD); + c.text(w * 0.5, h * 0.2, 0, 0, fieldText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var barPos = mxUtils.getValue(this.style, mxIOS7C.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var truePos = w * barPos / 100; + c.setStrokeWidth(2); + c.setStrokeColor(mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '')); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + c.setStrokeColor(mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '')); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(truePos, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_DOWNLOAD_BAR, mxShapeIOS7DownloadBar); + +Graph.handleFactory[mxIOS7C.SHAPE_IOS7_DOWNLOAD_BAR] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'barPos', this.barPos)))); + return new mxPoint(bounds.x + barPos / 100 * bounds.width, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 1000; + })]; + return handles; +}; + +function mxShapeIOS7Icon(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7Icon, mxShape); + +mxShapeIOS7Icon.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.foreground(c, w, h); +}; + +mxShapeIOS7Icon.prototype.foreground = function (c, w, h) { + c.setGradient('#00D0F0', '#0080F0', w * 0.325, 0, w * 0.675, h * 0.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(0, 0, w, h, w * 0.1, h * 0.1); + c.fill(); + var fieldText = mxUtils.getValue(this.style, mxIOS7C.BUTTON_TEXT, ''); + c.setFontColor('#ffffff'); + c.setFontStyle(mxConstants.FONT_BOLD); + c.setFontSize(8); + c.text(w * 0.5, h * 0.5, 0, 0, fieldText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_ICON, mxShapeIOS7Icon); + +function mxShapeIOS7horButtonBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7horButtonBar, mxShape); + +mxShapeIOS7horButtonBar.prototype.paintVertexShape = function (c, x, y, w, h) { + var textStrings = mxUtils.getValue(this.style, mxIOS7C.BUTTON_TEXT, '+Button 1, Button 2, Button 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTCOLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTCOLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8.5').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var selectedFillColor = mxUtils.getValue(this.style, mxIOS7C.STYLE_FILLCOLOR2, '#008cff'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var selectedButton = -1; + var rSize = 2.5; + var labelOffset = 2.5; + + for (var i = 0; i < buttonNum; i++) { + var buttonText = textStrings[i]; + + if (buttonText.charAt(0) === mxIOS7C.SELECTED) { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + buttonWidths[i] = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 10); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + c.translate(x, y); + this.background(c, trueW, trueH, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, bgColor, selectedFillColor, selectedButton); + c.setShadow(false); + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) { + if (i === selectedButton) { + c.setFontColor(selectedFontColor); + } else { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeIOS7horButtonBar.prototype.background = function (c, w, h, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, bgColor, selectedFillColor, selectedButton) { + c.begin(); + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); + c.setStrokeColor(frameColor); + c.begin(); + + for (var i = 1; i < buttonNum; i++) { + if (i !== selectedButton && i !== selectedButton + 1) { + var currWidth = 0; + + for (var j = 0; j < i; j++) { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth = currWidth * w / minW; + c.moveTo(currWidth, 0); + c.lineTo(currWidth, h); + } + } + + c.stroke(); + var buttonLeft = 0; + c.setStrokeColor(mxConstants.NONE); + + for (var i = 0; i < selectedButton; i++) { + buttonLeft += buttonWidths[i] + 2 * labelOffset; + } + + buttonLeft = buttonLeft * w / minW; + var buttonRight = (buttonWidths[selectedButton] + 2 * labelOffset) * w / minW; + buttonRight += buttonLeft; + c.setFillColor('#0080F0'); + + if (selectedButton === 0) { + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(buttonRight, 0); + c.lineTo(buttonRight, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fill(); + } else if (selectedButton === buttonNum - 1) { + c.begin(); + c.moveTo(buttonLeft, 0); + c.lineTo(buttonRight - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, buttonRight, rSize); + c.lineTo(buttonRight, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, buttonRight - rSize, h); + c.lineTo(buttonLeft, h); + c.close(); + c.fill(); + } else if (selectedButton !== -1) { + c.begin(); + c.moveTo(buttonLeft, 0); + c.lineTo(buttonRight, 0); + c.lineTo(buttonRight, h); + c.lineTo(buttonLeft, h); + c.close(); + c.fill(); + } + + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.stroke(); +}; + +mxShapeIOS7horButtonBar.prototype.buttonText = function (c, w, h, textString, buttonWidth, fontSize, minW, trueW) { + if (textString.charAt(0) === mxIOS7C.SELECTED) { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, h * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_HOR_BUTTON_BAR, mxShapeIOS7horButtonBar); + +function mxShapeIOS7pageControl(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7pageControl, mxShape); + +mxShapeIOS7pageControl.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#000000'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var rSize = Math.min(h * 0.5, w * 0.05); + c.setFillColor(strokeColor); + c.ellipse(0, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w * 0.25 - rSize * 0.5, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w * 0.5 - rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w * 0.75 - rSize * 1.5, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.setFillColor(fillColor); + c.ellipse(w - 2 * rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_PAGE_CONTROL, mxShapeIOS7pageControl); + +function mxShapeIOS7iconGrid(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7iconGrid, mxShape); +mxShapeIOS7iconGrid.prototype.customProperties = [{ + name: 'gridSize', + dispName: 'Grid Size', + type: 'String' +}]; + +mxShapeIOS7iconGrid.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var gridSize = mxUtils.getValue(this.style, mxIOS7C.GRID_SIZE, '4,7').toString().split(','); + var boxSizeX = w / (parseInt(gridSize[0], 10) + (gridSize[0] - 1) * 0.1); + var boxSizeY = h / (parseInt(gridSize[1], 10) + (gridSize[1] - 1) * 0.1); + + for (var i = 0; i < gridSize[0]; i++) { + for (var j = 0; j < gridSize[1]; j++) { + c.rect(boxSizeX * 1.1 * i, boxSizeY * 1.1 * j, boxSizeX, boxSizeY); + c.fill(); + } + } +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_ICON_GRID, mxShapeIOS7iconGrid); + +function mxShapeIOS7phone(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7phone, mxShape); + +mxShapeIOS7phone.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = 25; + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); + c.setShadow(false); + this.foreground(c, x, y, w, h, rSize); +}; + +mxShapeIOS7phone.prototype.foreground = function (c, x, y, w, h, rSize) { + c.rect(w * 0.0625, h * 0.15, w * 0.875, h * 0.7); + c.stroke(); + c.ellipse(w * 0.4875, h * 0.04125, w * 0.025, h * 0.0125); + c.stroke(); + c.roundrect(w * 0.375, h * 0.075, w * 0.25, h * 0.01875, w * 0.02, h * 0.01); + c.stroke(); + c.ellipse(w * 0.4, h * 0.875, w * 0.2, h * 0.1); + c.stroke(); + c.roundrect(w * 0.4575, h * 0.905, w * 0.085, h * 0.04375, h * 0.00625, h * 0.00625); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_PHONE, mxShapeIOS7phone); + +function mxShapeIOS7searchBox(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7searchBox, mxShape); + +mxShapeIOS7searchBox.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeIOS7searchBox.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeIOS7searchBox.prototype.foreground = function (c, w, h) { + var mainText = mxUtils.getValue(this.style, mxIOS7C.BUTTON_TEXT, 'Search'); + var fontColor = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTCOLOR, '#666666'); + var strokeColor2 = mxUtils.getValue(this.style, mxIOS7C.STYLE_STROKECOLOR2, '#008cff'); + var fontSize = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTSIZE, '17'); + var rSize = Math.min(w, h) * 0.1; + c.setFillColor('#ffffff'); + c.roundrect(w * 0.05, h * 0.15, w * 0.5, h * 0.7, rSize, rSize); + c.fillAndStroke(); + c.setFontColor(fontColor); + c.setFontSize(Math.min(h * 0.7, w * 0.1)); + c.text(5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setStrokeColor(strokeColor2); + c.ellipse(w * 0.05 + 3, h * 0.5 - 3, 4, 4); + c.stroke(); + c.begin(); + c.moveTo(w * 0.05 + 8, h * 0.5 + 3.5); + c.lineTo(w * 0.05 + 6, h * 0.5 + 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_SEARCH_BOX, mxShapeIOS7searchBox); + +function mxShapeIOS7URL(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7URL, mxShape); + +mxShapeIOS7URL.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeIOS7URL.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeIOS7URL.prototype.foreground = function (c, w, h) { + var mainText = mxUtils.getValue(this.style, mxIOS7C.BUTTON_TEXT, 'draw.io'); + var fontColor = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTCOLOR, '#666666'); + var strokeColor2 = mxUtils.getValue(this.style, mxIOS7C.STYLE_STROKECOLOR2, '#008cff'); + var fontSize = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTSIZE, '17'); + var rSize = Math.min(w, h) * 0.1; + c.setFillColor('#d8d8d8'); + c.roundrect(w * 0.05, h * 0.15, w * 0.9, h * 0.7, rSize, rSize); + c.fill(); + c.setFontColor(fontColor); + c.setFontSize(Math.min(h * 0.7, w * 0.1)); + c.text(w * 0.5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setStrokeColor(strokeColor2); + c.begin(); + c.moveTo(w * 0.95 - 5, h * 0.5); + c.arcTo(3, 3, 0, 1, 1, w * 0.95 - 8, h * 0.5 - 3); + c.stroke(); + c.setFillColor(strokeColor2); + c.begin(); + c.moveTo(w * 0.95 - 8, h * 0.5 - 4); + c.lineTo(w * 0.95 - 6, h * 0.5 - 3); + c.lineTo(w * 0.95 - 8, h * 0.5 - 2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_URL, mxShapeIOS7URL); + +function mxShapeIOS7Actiondialog(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7Actiondialog, mxShape); + +mxShapeIOS7Actiondialog.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, mxIOS7C.MAIN_TEXT, 'Main Text'); + var subText = mxUtils.getValue(this.style, mxIOS7C.SUB_TEXT, 'Sub Text'); + var fontColor = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTCOLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTSIZE, '17'); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + c.setFillColor('#e0e0e0'); + c.roundrect(w * 0.05, h * 0.1, w * 0.9, h * 0.35, w * 0.025, h * 0.05); + c.fill(); + c.roundrect(w * 0.05, h * 0.55, w * 0.9, h * 0.35, w * 0.025, h * 0.05); + c.fill(); + c.setFontStyle(mxConstants.FONT_BOLD); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); + this.subText(c, x, y, w, h, subText, fontSize / 1.4, fontColor); +}; + +mxShapeIOS7Actiondialog.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeIOS7Actiondialog.prototype.mainText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.4, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxShapeIOS7Actiondialog.prototype.subText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.text(w * 0.5, h * 0.7, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_ACTION_DIALOG, mxShapeIOS7Actiondialog); + +function mxShapeIOS7Anchor(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; +} + +; +mxUtils.extend(mxShapeIOS7Anchor, mxShape); +mxShapeIOS7Anchor.prototype.cst = { + ANCHOR: 'mxgraph.ios7ui.anchor' +}; + +mxShapeIOS7Anchor.prototype.paintVertexShape = function (c, x, y, w, h) {}; + +mxCellRenderer.registerShape(mxShapeIOS7Anchor.prototype.cst.ANCHOR, mxShapeIOS7Anchor); + +function mxShapeIOS7RRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7RRect, mxShape); +mxShapeIOS7RRect.prototype.cst = { + RRECT: 'mxgraph.ios7ui.rrect', + R_SIZE: 'rSize' +}; +mxShapeIOS7RRect.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 3 +}]; + +mxShapeIOS7RRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeIOS7RRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeIOS7RRect.prototype.cst.RRECT, mxShapeIOS7RRect); + +function mxShapeIOS7LeftButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7LeftButton, mxShape); +mxShapeIOS7LeftButton.prototype.cst = { + LEFT_BUTTON: 'mxgraph.ios7ui.leftButton', + R_SIZE: 'rSize' +}; +mxShapeIOS7LeftButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 3 +}]; + +mxShapeIOS7LeftButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeIOS7LeftButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeIOS7LeftButton.prototype.cst.LEFT_BUTTON, mxShapeIOS7LeftButton); + +function mxShapeIOS7RightButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7RightButton, mxShape); +mxShapeIOS7RightButton.prototype.cst = { + RIGHT_BUTTON: 'mxgraph.ios7ui.rightButton', + R_SIZE: 'rSize' +}; +mxShapeIOS7RightButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 3 +}]; + +mxShapeIOS7RightButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeIOS7RightButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeIOS7RightButton.prototype.cst.RIGHT_BUTTON, mxShapeIOS7RightButton); + +function mxShapeIOS7TopButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7TopButton, mxShape); +mxShapeIOS7TopButton.prototype.cst = { + TOP_BUTTON: 'mxgraph.ios7ui.topButton', + R_SIZE: 'rSize' +}; +mxShapeIOS7TopButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 3 +}]; + +mxShapeIOS7TopButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeIOS7TopButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(w, h); + c.lineTo(0, h); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeIOS7TopButton.prototype.cst.TOP_BUTTON, mxShapeIOS7TopButton); + +function mxShapeIOS7BottomButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7BottomButton, mxShape); +mxShapeIOS7BottomButton.prototype.cst = { + BOTTOM_BUTTON: 'mxgraph.ios7ui.bottomButton', + R_SIZE: 'rSize' +}; +mxShapeIOS7BottomButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 3 +}]; + +mxShapeIOS7BottomButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeIOS7BottomButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(w, 0); + c.lineTo(0, 0); + c.lineTo(0, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 0, rSize, h); + c.lineTo(w - rSize, h); + c.arcTo(rSize, rSize, 0, 0, 0, w, h - rSize); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeIOS7BottomButton.prototype.cst.BOTTOM_BUTTON, mxShapeIOS7BottomButton); + +function mxShapeIOS7HorLines(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7HorLines, mxShape); +mxShapeIOS7HorLines.prototype.cst = { + HOR_LINES: 'mxgraph.ios7ui.horLines' +}; + +mxShapeIOS7HorLines.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(0, 0, w, h); + c.fill(); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.moveTo(0, h); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeIOS7HorLines.prototype.cst.HOR_LINES, mxShapeIOS7HorLines); + +function mxShapeIOS7MarginRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7MarginRect, mxShape); +mxShapeIOS7MarginRect.prototype.customProperties = [{ + name: 'rx', + dispName: 'Hor. Rounding Size', + type: 'float', + min: 0, + defVal: 3 +}, { + name: 'ry', + dispName: 'Ver. Rounding Size', + type: 'float', + min: 0, + defVal: 3 +}, { + name: 'rectMargin', + dispName: 'Global Margin', + type: 'float', + min: 0, + defVal: 5 +}, { + name: 'rectMarginTop', + dispName: 'Top Margin', + type: 'float', + min: 0, + defVal: 0 +}, { + name: 'rectMarginLeft', + dispName: 'Left Margin', + type: 'float', + min: 0, + defVal: 0 +}, { + name: 'rectMarginBottom', + dispName: 'Bottom Margin', + type: 'float', + min: 0, + defVal: 0 +}, { + name: 'rectMarginRight', + dispName: 'Right Margin', + type: 'float', + min: 0, + defVal: 0 +}]; +mxShapeIOS7MarginRect.prototype.cst = { + SHAPE_MARGIN_RECT: 'mxgraph.ios7ui.marginRect', + MARGIN: 'rectMargin', + RX: 'rx', + RY: 'ry', + MARGIN_TOP: 'rectMarginTop', + MARGIN_LEFT: 'rectMarginLeft', + MARGIN_BOTTOM: 'rectMarginBottom', + MARGIN_RIGHT: 'rectMarginRight' +}; + +mxShapeIOS7MarginRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeIOS7MarginRect.prototype.background = function (c, x, y, w, h, state) { + var margin = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7MarginRect.prototype.cst.MARGIN, '0')); + var marginTop = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7MarginRect.prototype.cst.MARGIN_TOP, '0')); + var marginLeft = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7MarginRect.prototype.cst.MARGIN_LEFT, '0')); + var marginBottom = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7MarginRect.prototype.cst.MARGIN_BOTTOM, '0')); + var marginRight = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7MarginRect.prototype.cst.MARGIN_RIGHT, '0')); + var rx = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7MarginRect.prototype.cst.RX, '0')); + var ry = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7MarginRect.prototype.cst.RY, '0')); + var x1 = margin + marginLeft; + var y1 = margin + marginTop; + var w1 = w - marginRight - x1 - margin; + var h1 = h - marginBottom - y1 - margin; + + if (w1 > 0 && h1 > 0) { + c.begin(); + c.roundrect(x1, y1, w1, h1, rx, ry); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeIOS7MarginRect.prototype.cst.SHAPE_MARGIN_RECT, mxShapeIOS7MarginRect); + +function mxShapeIOS7Callout(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7Callout, mxShape); +mxShapeIOS7Callout.prototype.cst = { + SHAPE_CALLOUT: 'mxgraph.ios7ui.callout' +}; + +mxShapeIOS7Callout.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeIOS7Callout.prototype.background = function (c, x, y, w, h, state) { + var r = 10; + + if (w >= 30 && h >= 20) { + c.begin(); + c.moveTo(15, h - r * 0.3); + c.arcTo(r * 2, r, 0, 0, 1, 0, h); + c.arcTo(r * 1.5, r * 1.5, 0, 0, 0, 10, h - r * 1); + c.lineTo(r, r); + c.arcTo(r, r, 0, 0, 1, r * 2, 0); + c.lineTo(w - r, 0); + c.arcTo(r, r, 0, 0, 1, w, r); + c.lineTo(w, h - r); + c.arcTo(r, r, 0, 0, 1, w - r, h); + c.lineTo(r * 2, h); + c.arcTo(r, r, 0, 0, 1, r * 1.5, h - r * 0.3); + c.close(); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeIOS7Callout.prototype.cst.SHAPE_CALLOUT, mxShapeIOS7Callout); + +function mxShapeIOS7SelectBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.dx2 = 70; + this.size = 10; +} + +; +mxUtils.extend(mxShapeIOS7SelectBar, mxActor); +mxShapeIOS7SelectBar.prototype.cst = { + SELECT_BAR: 'mxgraph.ios7ui.selectBar' +}; +mxShapeIOS7SelectBar.prototype.customProperties = [{ + name: 'dx', + dispName: 'Callout Position', + type: 'float', + min: 0, + defVal: 120 +}, { + name: 'dx2', + dispName: 'Field Size', + type: 'float', + min: 0, + defVal: 75 +}, { + name: 'size', + dispName: 'Rounding size', + type: 'float', + min: 0, + defVal: 5 +}, { + name: 'dy', + dispName: 'Callout Size', + type: 'float', + min: 0, + defVal: 5 +}]; + +mxShapeIOS7SelectBar.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var r = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var dy = Math.max(0, Math.min(h, (w - Math.max(20, r) - r) / 2, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + r = Math.min(h / 2, w / 2, r); + dx = Math.max(r + dy, dx); + dx = Math.min(w - r - dy, w - 20 - dy, dx); + c.begin(); + c.moveTo(dx - dy, h); + c.lineTo(r, h); + c.arcTo(r, r, 0, 0, 1, 0, h - r); + c.lineTo(0, r); + c.arcTo(r, r, 0, 0, 1, r, 0); + c.lineTo(w - r, 0); + c.arcTo(r, r, 0, 0, 1, w, r); + c.lineTo(w, h - r); + c.arcTo(r, r, 0, 0, 1, w - r, h); + c.lineTo(dx + dy, h); + c.lineTo(dx, h + dy); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.begin(); + c.moveTo(w - Math.max(20, r), 0); + c.lineTo(w - Math.max(20, r), h); + c.stroke(); + var currDx = dx2; + c.begin(); + + while (currDx < w - Math.max(20, r)) { + c.moveTo(currDx, 0); + c.lineTo(currDx, h); + currDx = currDx + dx2; + } + + c.stroke(); + var w1 = Math.min(Math.max(20, r), h); + var x1 = w - w1 * 0.5; + var y1 = h * 0.5; + c.setFillColor(mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '')); + c.begin(); + c.moveTo(x1 - w1 * 0.15, y1 - w1 * 0.225); + c.lineTo(x1 + w1 * 0.25, y1); + c.lineTo(x1 - w1 * 0.15, y1 + w1 * 0.225); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeIOS7SelectBar.prototype.cst.SELECT_BAR, mxShapeIOS7SelectBar); +mxShapeIOS7SelectBar.prototype.constraints = null; + +Graph.handleFactory[mxShapeIOS7SelectBar.prototype.cst.SELECT_BAR] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + bounds.height); + }, function (bounds, pt) { + var y = parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)) * 0.6; + this.state.style['dx'] = Math.round(100 * Math.max(y, Math.min(bounds.width - y, pt.x - bounds.x))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['dy'], function (bounds) { + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), bounds.y + bounds.height + dy); + }, function (bounds, pt) { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height, pt.y - bounds.y - bounds.height))) / 100; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['size'], function (bounds) { + var size = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'size', this.size)))); + return new mxPoint(bounds.x + bounds.width - size, bounds.y + 10); + }, function (bounds, pt) { + this.state.style['size'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2, bounds.height / 2, bounds.x + bounds.width - pt.x))) / 100; + }); + handles.push(handle3); + var handle4 = Graph.createHandle(state, ['dx2'], function (bounds) { + var dx2 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + return new mxPoint(bounds.x + dx2, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + }); + handles.push(handle4); + return handles; +}; + +function mxShapeIOS7Slider2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIOS7Slider2, mxShape); +mxShapeIOS7Slider2.prototype.cst = { + SHAPE_SLIDER: 'mxgraph.ios7ui.slider', + BAR_POS: 'barPos', + HANDLE_SIZE: 'handleSize' +}; +mxShapeIOS7Slider2.prototype.customProperties = [{ + name: 'barPos', + dispName: 'Handle Position', + type: 'float', + min: 0, + max: 1, + defVal: 20 +}, { + name: 'handleSize', + dispName: 'Handle Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeIOS7Slider2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeIOS7Slider2.prototype.background = function (c, x, y, w, h) { + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7Slider2.prototype.cst.HANDLE_SIZE, '10')); + var barPos = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7Slider2.prototype.cst.BAR_POS, '40')) / 100; + barPos = Math.max(0, Math.min(1, barPos)); + c.save(); + c.setStrokeColor('#bbbbbb'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.fillAndStroke(); + c.restore(); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(barPos * w, h * 0.5); + c.fillAndStroke(); + c.setStrokeColor('#bbbbbb'); + c.begin(); + c.ellipse(barPos * w - hSize * 0.5, h * 0.5 - hSize * 0.5, hSize, hSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeIOS7Slider2.prototype.cst.SHAPE_SLIDER, mxShapeIOS7Slider2); +mxShapeIOS7Slider2.prototype.constraints = null; + +Graph.handleFactory[mxShapeIOS7Slider2.prototype.cst.SHAPE_SLIDER] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + return handles; +}; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupButtons.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupButtons.js new file mode 100644 index 0000000000000..51124248f753f --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupButtons.js @@ -0,0 +1,794 @@ +"use strict"; + +function mxShapeMockupMultiButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupMultiButton, mxShape); +mxShapeMockupMultiButton.prototype.cst = { + MAIN_TEXT: 'mainText', + SHAPE_MULTILINE_BUTTON: 'mxgraph.mockup.buttons.multiButton', + SUB_TEXT: 'subText', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize', + BUTTON_STYLE: 'buttonStyle', + ROUND: 'round', + CHEVRON: 'chevron' +}; +mxShapeMockupMultiButton.prototype.customProperties = [{ + name: 'buttonStyle', + dispName: 'Style', + type: 'enum', + defVal: 'round', + enumList: [{ + val: 'round', + dispName: 'Round' + }, { + val: 'chevron', + dispName: 'Chevron' + }] +}]; + +mxShapeMockupMultiButton.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, mxShapeMockupMultiButton.prototype.cst.MAIN_TEXT, 'Main Text'); + var subText = mxUtils.getValue(this.style, mxShapeMockupMultiButton.prototype.cst.SUB_TEXT, 'Sub Text'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupMultiButton.prototype.cst.TEXT_COLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupMultiButton.prototype.cst.TEXT_SIZE, '17'); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + c.setFontStyle(mxConstants.FONT_BOLD); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); + this.subText(c, x, y, w, h, subText, fontSize / 1.4, fontColor); +}; + +mxShapeMockupMultiButton.prototype.background = function (c, x, y, w, h) { + var buttonStyle = mxUtils.getValue(this.style, mxShapeMockupMultiButton.prototype.cst.BUTTON_STYLE, mxShapeMockupMultiButton.prototype.cst.ROUND).toString(); + var rSize = 10; + c.begin(); + + if (buttonStyle === mxShapeMockupMultiButton.prototype.cst.ROUND) { + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + } else if (buttonStyle === mxShapeMockupMultiButton.prototype.cst.CHEVRON) { + c.moveTo(0, h * 0.1); + c.arcTo(w * 0.0372, h * 0.1111, 0, 0, 1, w * 0.0334, 0); + c.lineTo(w * 0.768, 0); + c.arcTo(w * 0.0722, h * 0.216, 0, 0, 1, w * 0.8014, h * 0.0399); + c.lineTo(w * 0.99, h * 0.4585); + c.arcTo(w * 0.09, h * 0.1, 0, 0, 1, w * 0.99, h * 0.5415); + c.lineTo(w * 0.8014, h * 0.9568); + c.arcTo(w * 0.0722, h * 0.216, 0, 0, 1, w * 0.768, h); + c.lineTo(w * 0.0334, h); + c.arcTo(w * 0.0372, h * 0.1111, 0, 0, 1, 0, h * 0.9); + } + + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupMultiButton.prototype.mainText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.4, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxShapeMockupMultiButton.prototype.subText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.text(w * 0.5, h * 0.7, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupMultiButton.prototype.cst.SHAPE_MULTILINE_BUTTON, mxShapeMockupMultiButton); + +function mxShapeMockupButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupButton, mxShape); +mxShapeMockupButton.prototype.cst = { + MAIN_TEXT: 'mainText', + SHAPE_BUTTON: 'mxgraph.mockup.buttons.button', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize', + BUTTON_STYLE: 'buttonStyle', + ROUND: 'round', + CHEVRON: 'chevron' +}; +mxShapeMockupButton.prototype.customProperties = [{ + name: 'buttonStyle', + dispName: 'Style', + type: 'enum', + defVal: 'round', + enumList: [{ + val: 'round', + dispName: 'Round' + }, { + val: 'chevron', + dispName: 'Chevron' + }] +}]; + +mxShapeMockupButton.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, mxShapeMockupButton.prototype.cst.MAIN_TEXT, 'Main Text'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupButton.prototype.cst.TEXT_COLOR, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupButton.prototype.cst.TEXT_SIZE, '17').toString(); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeMockupButton.prototype.background = function (c, x, y, w, h) { + var buttonStyle = mxUtils.getValue(this.style, mxShapeMockupButton.prototype.cst.BUTTON_STYLE, mxShapeMockupButton.prototype.cst.ROUND).toString(); + var rSize = 10; + c.begin(); + + if (buttonStyle === mxShapeMockupButton.prototype.cst.ROUND) { + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + } else if (buttonStyle === mxShapeMockupButton.prototype.cst.CHEVRON) { + c.moveTo(0, h * 0.1); + c.arcTo(w * 0.0372, h * 0.1111, 0, 0, 1, w * 0.0334, 0); + c.lineTo(w * 0.768, 0); + c.arcTo(w * 0.0722, h * 0.216, 0, 0, 1, w * 0.8014, h * 0.0399); + c.lineTo(w * 0.99, h * 0.4585); + c.arcTo(w * 0.09, h * 0.1, 0, 0, 1, w * 0.99, h * 0.5415); + c.lineTo(w * 0.8014, h * 0.9568); + c.arcTo(w * 0.0722, h * 0.216, 0, 0, 1, w * 0.768, h); + c.lineTo(w * 0.0334, h); + c.arcTo(w * 0.0372, h * 0.1111, 0, 0, 1, 0, h * 0.9); + } + + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupButton.prototype.mainText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.setFontStyle(mxConstants.FONT_BOLD); + c.text(w / 2, h / 2, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupButton.prototype.cst.SHAPE_BUTTON, mxShapeMockupButton); + +function mxShapeMockupHorButtonBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupHorButtonBar, mxShape); +mxShapeMockupHorButtonBar.prototype.cst = { + MAIN_TEXT: 'mainText', + SHAPE_HOR_BUTTON_BAR: 'mxgraph.mockup.buttons.horButtonBar', + TEXT_COLOR: 'textColor', + TEXT_COLOR2: 'textColor2', + STROKE_COLOR2: 'strokeColor2', + FILL_COLOR2: 'fillColor2', + SELECTED: '+', + TEXT_SIZE: 'textSize' +}; + +mxShapeMockupHorButtonBar.prototype.paintVertexShape = function (c, x, y, w, h) { + var textStrings = mxUtils.getValue(this.style, mxShapeMockupHorButtonBar.prototype.cst.MAIN_TEXT, '+Button 1, Button 2, Button 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupHorButtonBar.prototype.cst.TEXT_COLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxShapeMockupHorButtonBar.prototype.cst.TEXT_COLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupHorButtonBar.prototype.cst.TEXT_SIZE, '17').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var separatorColor = mxUtils.getValue(this.style, mxShapeMockupHorButtonBar.prototype.cst.STROKE_COLOR2, '#c4c4c4'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var selectedFillColor = mxUtils.getValue(this.style, mxShapeMockupHorButtonBar.prototype.cst.FILL_COLOR2, '#008cff'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var selectedButton = -1; + var rSize = 10; + var labelOffset = 5; + + for (var i = 0; i < buttonNum; i++) { + var buttonText = textStrings[i]; + + if (buttonText.charAt(0) === mxShapeMockupHorButtonBar.prototype.cst.SELECTED) { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + buttonWidths[i] = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 20); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + c.translate(x, y); + this.background(c, trueW, trueH, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton); + c.setShadow(false); + c.setFontStyle(mxConstants.FONT_BOLD); + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) { + if (i === selectedButton) { + c.setFontColor(selectedFontColor); + } else { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeMockupHorButtonBar.prototype.background = function (c, w, h, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton) { + c.begin(); + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); + c.setStrokeColor(separatorColor); + c.begin(); + + for (var i = 1; i < buttonNum; i++) { + if (i !== selectedButton && i !== selectedButton + 1) { + var currWidth = 0; + + for (var j = 0; j < i; j++) { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth = currWidth * w / minW; + c.moveTo(currWidth, 0); + c.lineTo(currWidth, h); + } + } + + c.stroke(); + var buttonLeft = 0; + c.setFillColor(selectedFillColor); + + for (var i = 0; i < selectedButton; i++) { + buttonLeft += buttonWidths[i] + 2 * labelOffset; + } + + buttonLeft = buttonLeft * w / minW; + var buttonRight = (buttonWidths[selectedButton] + 2 * labelOffset) * w / minW; + buttonRight += buttonLeft; + + if (selectedButton === 0) { + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(buttonRight, 0); + c.lineTo(buttonRight, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fill(); + } else if (selectedButton === buttonNum - 1) { + c.begin(); + c.moveTo(buttonLeft, 0); + c.lineTo(buttonRight - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, buttonRight, rSize); + c.lineTo(buttonRight, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, buttonRight - rSize, h); + c.lineTo(buttonLeft, h); + c.close(); + c.fill(); + } else if (selectedButton !== -1) { + c.begin(); + c.moveTo(buttonLeft, 0); + c.lineTo(buttonRight, 0); + c.lineTo(buttonRight, h); + c.lineTo(buttonLeft, h); + c.close(); + c.fill(); + } + + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.stroke(); +}; + +mxShapeMockupHorButtonBar.prototype.buttonText = function (c, w, h, textString, buttonWidth, fontSize, minW, trueW) { + if (textString.charAt(0) === mxShapeMockupHorButtonBar.prototype.cst.SELECTED) { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, h * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupHorButtonBar.prototype.cst.SHAPE_HOR_BUTTON_BAR, mxShapeMockupHorButtonBar); + +function mxShapeMockupVerButtonBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupVerButtonBar, mxShape); +mxShapeMockupVerButtonBar.prototype.cst = { + MAIN_TEXT: 'mainText', + SHAPE_VER_BUTTON_BAR: 'mxgraph.mockup.buttons.verButtonBar', + TEXT_COLOR: 'textColor', + TEXT_COLOR2: 'textColor2', + STROKE_COLOR2: 'strokeColor2', + FILL_COLOR2: 'fillColor2', + SELECTED: '+', + TEXT_SIZE: 'textSize' +}; + +mxShapeMockupVerButtonBar.prototype.paintVertexShape = function (c, x, y, w, h) { + var textStrings = mxUtils.getValue(this.style, mxShapeMockupVerButtonBar.prototype.cst.MAIN_TEXT, '+Button 1, Button 2, Button 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupVerButtonBar.prototype.cst.TEXT_COLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxShapeMockupVerButtonBar.prototype.cst.TEXT_COLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupVerButtonBar.prototype.cst.TEXT_SIZE, '17').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var separatorColor = mxUtils.getValue(this.style, mxShapeMockupVerButtonBar.prototype.cst.STROKE_COLOR2, '#c4c4c4'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var selectedFillColor = mxUtils.getValue(this.style, mxShapeMockupVerButtonBar.prototype.cst.FILL_COLOR2, '#008cff'); + var buttonNum = textStrings.length; + var maxButtonWidth = 0; + var selectedButton = -1; + var rSize = 10; + var labelOffset = 5; + + for (var i = 0; i < buttonNum; i++) { + var buttonText = textStrings[i]; + + if (buttonText.charAt(0) === mxShapeMockupVerButtonBar.prototype.cst.SELECTED) { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + var currWidth = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxButtonWidth) { + maxButtonWidth = currWidth; + } + } + + var minButtonHeight = fontSize * 1.5; + var minH = buttonNum * minButtonHeight; + var trueH = Math.max(h, minH); + var minW = 2 * labelOffset + maxButtonWidth; + var trueW = Math.max(w, minW); + c.translate(x, y); + this.background(c, trueW, trueH, rSize, buttonNum, labelOffset, buttonNum * minButtonHeight, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton, minButtonHeight); + c.setShadow(false); + var currWidth = 0; + c.setFontStyle(mxConstants.FONT_BOLD); + + for (var i = 0; i < buttonNum; i++) { + if (i === selectedButton) { + c.setFontColor(selectedFontColor); + } else { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + var currHeight = (i * minButtonHeight + minButtonHeight * 0.5) * trueH / minH; + this.buttonText(c, trueW, currHeight, textStrings[i], fontSize); + } +}; + +mxShapeMockupVerButtonBar.prototype.background = function (c, w, h, rSize, buttonNum, labelOffset, minH, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton, minButtonHeight) { + c.begin(); + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); + c.setStrokeColor(separatorColor); + c.begin(); + + for (var i = 1; i < buttonNum; i++) { + if (i !== selectedButton && i !== selectedButton + 1) { + var currHeight = i * minButtonHeight * h / minH; + c.moveTo(0, currHeight); + c.lineTo(w, currHeight); + } + } + + c.stroke(); + c.setFillColor(selectedFillColor); + + if (selectedButton === 0) { + c.begin(); + var buttonBottom = minButtonHeight * h / minH; + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, buttonBottom); + c.lineTo(0, buttonBottom); + c.close(); + c.fill(); + } else if (selectedButton === buttonNum - 1) { + c.begin(); + var buttonTop = h - minButtonHeight * h / minH; + c.moveTo(0, buttonTop); + c.lineTo(w, buttonTop); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fill(); + } else if (selectedButton !== -1) { + c.begin(); + var buttonTop = minButtonHeight * selectedButton * h / minH; + var buttonBottom = minButtonHeight * (selectedButton + 1) * h / minH; + c.moveTo(0, buttonTop); + c.lineTo(w, buttonTop); + c.lineTo(w, buttonBottom); + c.lineTo(0, buttonBottom); + c.close(); + c.fill(); + } + + c.begin(); + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.stroke(); +}; + +mxShapeMockupVerButtonBar.prototype.buttonText = function (c, w, h, textString, fontSize) { + if (textString.charAt(0) === mxShapeMockupVerButtonBar.prototype.cst.SELECTED) { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text(w * 0.5, h, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupVerButtonBar.prototype.cst.SHAPE_VER_BUTTON_BAR, mxShapeMockupVerButtonBar); + +function mxShapeMockupOnOffButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupOnOffButton, mxShape); +mxShapeMockupOnOffButton.prototype.cst = { + SHAPE_ON_OFF_BUTTON: 'mxgraph.mockup.buttons.onOffButton', + BUTTON_STATE: 'buttonState', + STATE_ON: 'on', + STATE_OFF: 'off', + FILL_COLOR2: 'fillColor2', + MAIN_TEXT: 'mainText', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize' +}; +mxShapeMockupOnOffButton.prototype.customProperties = [{ + name: 'buttonState', + dispName: 'Button State', + type: 'enum', + enumList: [{ + val: 'on', + dispName: 'On' + }, { + val: 'off', + dispName: 'Off' + }] +}]; + +mxShapeMockupOnOffButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + w = Math.max(w, 10); + h = Math.max(h, 10); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupOnOffButton.prototype.background = function (c, x, y, w, h) { + c.roundrect(0, 0, w, h, 10, 10); + c.fillAndStroke(); +}; + +mxShapeMockupOnOffButton.prototype.foreground = function (c, x, y, w, h) { + var state = mxUtils.getValue(this.style, mxShapeMockupOnOffButton.prototype.cst.BUTTON_STATE, mxShapeMockupOnOffButton.prototype.cst.STATE_ON); + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupOnOffButton.prototype.cst.FILL_COLOR2, '#008cff'); + var textColor = mxUtils.getValue(this.style, mxShapeMockupOnOffButton.prototype.cst.TEXT_COLOR, '#ffffff,#999999').toString().split(','); + var mainText = mxUtils.getValue(this.style, mxShapeMockupOnOffButton.prototype.cst.MAIN_TEXT, 'ON,OFF').toString().split(','); + var textSize = mxUtils.getValue(this.style, mxShapeMockupOnOffButton.prototype.cst.TEXT_SIZE, '17'); + + if (state === mxShapeMockupOnOffButton.prototype.cst.STATE_ON) { + c.setFillColor(fillColor2); + c.setFontColor(textColor[0]); + c.roundrect(0, 0, w * 0.75, h, 10, 10); + } else { + c.setFontColor(textColor[1]); + c.roundrect(w * 0.25, 0, w * 0.75, h, 10, 10); + } + + c.fillAndStroke(); + c.setFontSize(textSize); + c.setFontStyle(mxConstants.FONT_BOLD); + + if (state === mxShapeMockupOnOffButton.prototype.cst.STATE_ON) { + c.text(w * 0.375, h * 0.5, 0, 0, mainText[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (state === mxShapeMockupOnOffButton.prototype.cst.STATE_OFF) { + c.text(w * 0.625, h * 0.5, 0, 0, mainText[1], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupOnOffButton.prototype.cst.SHAPE_ON_OFF_BUTTON, mxShapeMockupOnOffButton); + +function mxShapeMockupRRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupRRect, mxShape); +mxShapeMockupRRect.prototype.cst = { + RRECT: 'mxgraph.mockup.rrect', + R_SIZE: 'rSize' +}; +mxShapeMockupRRect.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeMockupRRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupRRect.prototype.cst.RRECT, mxShapeMockupRRect); + +function mxShapeMockupAnchor(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; +} + +; +mxUtils.extend(mxShapeMockupAnchor, mxShape); +mxShapeMockupAnchor.prototype.cst = { + ANCHOR: 'mxgraph.mockup.anchor' +}; +mxShapeMockupAnchor.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeMockupAnchor.prototype.paintVertexShape = function (c, x, y, w, h) {}; + +mxCellRenderer.registerShape(mxShapeMockupAnchor.prototype.cst.ANCHOR, mxShapeMockupAnchor); + +function mxShapeMockupTopButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupTopButton, mxShape); +mxShapeMockupTopButton.prototype.cst = { + TOP_BUTTON: 'mxgraph.mockup.topButton', + R_SIZE: 'rSize' +}; +mxShapeMockupTopButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeMockupTopButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupTopButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupTopButton.prototype.cst.TOP_BUTTON, mxShapeMockupTopButton); + +function mxShapeMockupBottomButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupBottomButton, mxShape); +mxShapeMockupBottomButton.prototype.cst = { + BOTTOM_BUTTON: 'mxgraph.mockup.bottomButton', + R_SIZE: 'rSize' +}; +mxShapeMockupBottomButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeMockupBottomButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupBottomButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupBottomButton.prototype.cst.BOTTOM_BUTTON, mxShapeMockupBottomButton); + +function mxShapeMockupRightButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupRightButton, mxShape); +mxShapeMockupRightButton.prototype.cst = { + RIGHT_BUTTON: 'mxgraph.mockup.rightButton', + R_SIZE: 'rSize' +}; +mxShapeMockupRightButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeMockupRightButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupRightButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupRightButton.prototype.cst.RIGHT_BUTTON, mxShapeMockupRightButton); + +function mxShapeMockupLeftButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupLeftButton, mxShape); +mxShapeMockupLeftButton.prototype.cst = { + LEFT_BUTTON: 'mxgraph.mockup.leftButton', + R_SIZE: 'rSize' +}; +mxShapeMockupLeftButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeMockupLeftButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupLeftButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupLeftButton.prototype.cst.LEFT_BUTTON, mxShapeMockupLeftButton); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupContainers.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupContainers.js new file mode 100644 index 0000000000000..c82f3c153ba8d --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupContainers.js @@ -0,0 +1,1685 @@ +"use strict"; + +function mxShapeMockupVideoPlayer(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.barPos = 20; + this.barHeight = 30; +} + +; +mxUtils.extend(mxShapeMockupVideoPlayer, mxShape); +mxShapeMockupVideoPlayer.prototype.cst = { + FILL_COLOR2: 'fillColor2', + TEXT_COLOR: 'textColor', + STROKE_COLOR2: 'strokeColor2', + STROKE_COLOR3: 'strokeColor3', + SHAPE_VIDEO_PLAYER: 'mxgraph.mockup.containers.videoPlayer', + BAR_POS: 'barPos', + BAR_HEIGHT: 'barHeight' +}; +mxShapeMockupVideoPlayer.prototype.customProperties = [{ + name: 'fillColor2', + dispName: 'Fill2 Color', + type: 'color' +}, { + name: 'textColor', + dispName: 'Text Color', + type: 'color' +}, { + name: 'strokeColor2', + dispName: 'Stroke2 Color', + type: 'color' +}, { + name: 'strokeColor3', + dispName: 'Stroke3 Color', + type: 'color' +}, { + name: 'barPos', + dispName: 'Handle Position', + type: 'float', + min: 0, + max: 100, + defVal: 20 +}, { + name: 'barHeight', + dispName: 'Video Bar Height', + type: 'float', + min: 0, + defVal: 30 +}]; + +mxShapeMockupVideoPlayer.prototype.paintVertexShape = function (c, x, y, w, h) { + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var buttonColor = mxUtils.getValue(this.style, mxShapeMockupVideoPlayer.prototype.cst.FILL_COLOR2, '#c4c4c4'); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var filledColor = mxUtils.getValue(this.style, mxShapeMockupVideoPlayer.prototype.cst.STROKE_COLOR2, '#008cff'); + var emptyColor = mxUtils.getValue(this.style, mxShapeMockupVideoPlayer.prototype.cst.STROKE_COLOR3, '#c4c4c4'); + var barHeight = mxUtils.getValue(this.style, mxShapeMockupVideoPlayer.prototype.cst.BAR_HEIGHT, '30'); + w = Math.max(w, 5 * barHeight); + h = Math.max(h, barHeight + 10); + c.translate(x, y); + this.background(c, x, y, w, h, bgColor, frameColor); + c.setShadow(false); + this.otherShapes(c, x, y, w, h, buttonColor, frameColor, filledColor, emptyColor, barHeight); +}; + +mxShapeMockupVideoPlayer.prototype.background = function (c, x, y, w, h, bgColor, frameColor) { + c.setFillColor(bgColor); + c.setStrokeColor(frameColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupVideoPlayer.prototype.otherShapes = function (c, x, y, w, h, buttonColor, frameColor, filledColor, emptyColor, barHeight) { + var barPos = mxUtils.getValue(this.style, mxShapeMockupVideoPlayer.prototype.cst.BAR_POS, '20'); + barPos = Math.max(0, barPos); + barPos = Math.min(100, barPos); + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + var buttonR = 8; + var barY = h - barHeight; + var barMin = buttonR; + var barMax = w - buttonR; + var barRange = barMax - barMin; + var realBarPos = barRange * barPos / 100; + var barEnd = barMin + realBarPos; + c.setStrokeColor(filledColor); + c.begin(); + c.moveTo(0, barY); + c.lineTo(barEnd, barY); + c.stroke(); + c.setStrokeColor(emptyColor); + c.begin(); + c.moveTo(barEnd, barY); + c.lineTo(w, barY); + c.stroke(); + c.setStrokeColor(frameColor); + c.begin(); + c.ellipse(barEnd - buttonR, barY - buttonR, 2 * buttonR, 2 * buttonR); + c.fillAndStroke(); + c.begin(); + c.setStrokeWidth(strokeWidth / 2); + c.ellipse(barEnd - buttonR * 0.5, barY - buttonR * 0.5, buttonR, buttonR); + c.fillAndStroke(); + c.setStrokeWidth(strokeWidth); + var iconSize = barHeight * 0.3; + var iconY = h - (barHeight + iconSize) * 0.5; + var iconX = barHeight * 0.3; + c.setFillColor(buttonColor); + c.setStrokeColor(buttonColor); + c.begin(); + c.moveTo(iconX, iconY); + c.lineTo(iconX + iconSize, iconY + iconSize * 0.5); + c.lineTo(iconX, iconY + iconSize); + c.close(); + c.fillAndStroke(); + var speakerX = barHeight; + var speakerY = h - barHeight; + c.moveTo(speakerX + barHeight * 0.05, speakerY + barHeight * 0.4); + c.lineTo(speakerX + barHeight * 0.15, speakerY + barHeight * 0.4); + c.lineTo(speakerX + barHeight * 0.3, speakerY + barHeight * 0.25); + c.lineTo(speakerX + barHeight * 0.3, speakerY + barHeight * 0.75); + c.lineTo(speakerX + barHeight * 0.15, speakerY + barHeight * 0.6); + c.lineTo(speakerX + barHeight * 0.05, speakerY + barHeight * 0.6); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(speakerX + barHeight * 0.4, speakerY + barHeight * 0.35); + c.arcTo(barHeight * 0.2, barHeight * 0.3, 0, 0, 1, speakerX + barHeight * 0.4, speakerY + barHeight * 0.65); + c.moveTo(speakerX + barHeight * 0.425, speakerY + barHeight * 0.25); + c.arcTo(barHeight * 0.225, barHeight * 0.35, 0, 0, 1, speakerX + barHeight * 0.425, speakerY + barHeight * 0.75); + c.stroke(); + var screenX = w - barHeight * 1.3; + c.begin(); + c.moveTo(screenX + barHeight * 0.1, speakerY + barHeight * 0.4); + c.lineTo(screenX + barHeight * 0.1, speakerY + barHeight * 0.3); + c.lineTo(screenX + barHeight * 0.25, speakerY + barHeight * 0.3); + c.moveTo(screenX + barHeight * 0.1, speakerY + barHeight * 0.6); + c.lineTo(screenX + barHeight * 0.1, speakerY + barHeight * 0.7); + c.lineTo(screenX + barHeight * 0.25, speakerY + barHeight * 0.7); + c.moveTo(screenX + barHeight * 0.9, speakerY + barHeight * 0.4); + c.lineTo(screenX + barHeight * 0.9, speakerY + barHeight * 0.3); + c.lineTo(screenX + barHeight * 0.75, speakerY + barHeight * 0.3); + c.moveTo(screenX + barHeight * 0.9, speakerY + barHeight * 0.6); + c.lineTo(screenX + barHeight * 0.9, speakerY + barHeight * 0.7); + c.lineTo(screenX + barHeight * 0.75, speakerY + barHeight * 0.7); + c.stroke(); + var textColor = mxUtils.getValue(this.style, mxShapeMockupVideoPlayer.prototype.cst.TEXT_COLOR, '#666666'); + c.begin(); + c.setFontSize(barHeight * 0.5); + c.setFontColor(textColor); + c.text(barHeight * 1.9, h - barHeight * 0.45, 0, 0, '0:00/3:53', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupVideoPlayer.prototype.cst.SHAPE_VIDEO_PLAYER, mxShapeMockupVideoPlayer); + +Graph.handleFactory[mxShapeMockupVideoPlayer.prototype.cst.SHAPE_VIDEO_PLAYER] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'barPos', this.barPos)))); + var barH = parseFloat(mxUtils.getValue(this.state.style, 'barHeight', this.barHeight)); + return new mxPoint(bounds.x + (bounds.width - 16) * barPos / bounds.width / 100 * bounds.width + 8, bounds.y + bounds.height - barH - 20); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 1000; + })]; + var handle2 = Graph.createHandle(state, ['barHeight'], function (bounds) { + var barHeight = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'barHeight', this.barHeight)))); + return new mxPoint(bounds.x + bounds.width - 20, bounds.y + bounds.height - barHeight); + }, function (bounds, pt) { + this.state.style['barHeight'] = Math.round(1000 * Math.max(0, Math.min(bounds.height, bounds.y + bounds.height - pt.y))) / 1000; + }); + handles.push(handle2); + return handles; +}; + +function mxShapeMockupAccordion(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupAccordion, mxShape); +mxShapeMockupAccordion.prototype.cst = { + TEXT_COLOR: 'textColor', + TEXT_COLOR2: 'textColor2', + TEXT_SIZE: 'textSize', + SHAPE_ACCORDION: 'mxgraph.mockup.containers.accordion', + STROKE_COLOR2: 'strokeColor2', + FILL_COLOR2: 'fillColor2', + SELECTED: '+', + MAIN_TEXT: 'mainText' +}; + +mxShapeMockupAccordion.prototype.paintVertexShape = function (c, x, y, w, h) { + var textStrings = mxUtils.getValue(this.style, mxShapeMockupAccordion.prototype.cst.MAIN_TEXT, '+Group 1, Group 2, Group 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupAccordion.prototype.cst.TEXT_COLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxShapeMockupAccordion.prototype.cst.TEXT_COLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupAccordion.prototype.cst.TEXT_SIZE, '17').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var separatorColor = mxUtils.getValue(this.style, mxShapeMockupAccordion.prototype.cst.STROKE_COLOR2, '#c4c4c4'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var selectedFillColor = mxUtils.getValue(this.style, mxShapeMockupAccordion.prototype.cst.FILL_COLOR2, '#008cff'); + var buttonNum = textStrings.length; + var maxButtonWidth = 0; + var selectedButton = -1; + var rSize = 10; + var labelOffset = 5; + + for (var i = 0; i < buttonNum; i++) { + var buttonText = textStrings[i]; + + if (buttonText.charAt(0) === mxShapeMockupAccordion.prototype.cst.SELECTED) { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + var currWidth = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxButtonWidth) { + maxButtonWidth = currWidth; + } + } + + var minButtonHeight = fontSize * 1.5; + var minH = buttonNum * minButtonHeight; + var trueH = Math.max(h, minH); + var minW = 2 * labelOffset + maxButtonWidth; + var trueW = Math.max(w, minW); + c.translate(x, y); + this.background(c, trueW, trueH, rSize, buttonNum, labelOffset, buttonNum * minButtonHeight, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton, minButtonHeight); + c.setShadow(false); + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) { + if (i === selectedButton) { + c.setFontColor(selectedFontColor); + } else { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + var currHeight = 0; + + if (selectedButton === -1 || i <= selectedButton) { + currHeight = i * minButtonHeight + minButtonHeight * 0.5; + } else { + currHeight = trueH - (buttonNum - i - 0.5) * minButtonHeight; + } + + this.buttonText(c, trueW, currHeight, textStrings[i], fontSize); + } +}; + +mxShapeMockupAccordion.prototype.background = function (c, w, h, rSize, buttonNum, labelOffset, minH, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton, minButtonHeight) { + c.begin(); + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + c.setStrokeColor(separatorColor); + c.begin(); + + for (var i = 1; i < buttonNum; i++) { + if (i !== selectedButton) { + if (selectedButton === -1 || i < selectedButton) { + var currHeight = i * minButtonHeight; + c.moveTo(0, currHeight); + c.lineTo(w, currHeight); + } else { + var currHeight = h - (buttonNum - i) * minButtonHeight; + c.moveTo(0, currHeight); + c.lineTo(w, currHeight); + } + } + } + + c.stroke(); + c.setStrokeColor(mxConstants.NONE); + c.setFillColor(selectedFillColor); + + if (selectedButton !== -1) { + c.begin(); + var buttonTop = minButtonHeight * selectedButton; + var buttonBottom = minButtonHeight * (selectedButton + 1); + c.moveTo(0, buttonTop); + c.lineTo(w, buttonTop); + c.lineTo(w, buttonBottom); + c.lineTo(0, buttonBottom); + c.close(); + c.fill(); + } + + c.begin(); + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.stroke(); +}; + +mxShapeMockupAccordion.prototype.buttonText = function (c, w, h, textString, fontSize) { + if (textString.charAt(0) === mxShapeMockupAccordion.prototype.cst.SELECTED) { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text(w * 0.5, h, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupAccordion.prototype.cst.SHAPE_ACCORDION, mxShapeMockupAccordion); + +function mxShapeMockupBrowserWindow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupBrowserWindow, mxShape); +mxShapeMockupBrowserWindow.prototype.cst = { + STROKE_COLOR2: 'strokeColor2', + STROKE_COLOR3: 'strokeColor3', + MAIN_TEXT: 'mainText', + SHAPE_BROWSER_WINDOW: 'mxgraph.mockup.containers.browserWindow' +}; +mxShapeMockupBrowserWindow.prototype.customProperties = [{ + name: 'strokeColor2', + dispName: 'Stroke2 Color', + type: 'color' +}, { + name: 'strokeColor3', + dispName: 'Stroke3 Color', + type: 'color' +}]; + +mxShapeMockupBrowserWindow.prototype.paintVertexShape = function (c, x, y, w, h) { + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var closeColor = mxUtils.getValue(this.style, mxShapeMockupBrowserWindow.prototype.cst.STROKE_COLOR2, '#008cff'); + var insideColor = mxUtils.getValue(this.style, mxShapeMockupBrowserWindow.prototype.cst.STROKE_COLOR3, '#c4c4c4'); + w = Math.max(w, 260); + h = Math.max(h, 110); + c.translate(x, y); + this.background(c, x, y, w, h, bgColor, frameColor); + c.setShadow(false); + this.otherShapes(c, x, y, w, h, frameColor, insideColor, closeColor); +}; + +mxShapeMockupBrowserWindow.prototype.background = function (c, x, y, w, h, bgColor, frameColor) { + c.setFillColor(bgColor); + c.setStrokeColor(frameColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupBrowserWindow.prototype.otherShapes = function (c, x, y, w, h, frameColor, insideColor, closeColor) { + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + var mainText = mxUtils.getValue(this.style, mxShapeMockupBrowserWindow.prototype.cst.MAIN_TEXT, 'http://www.draw.io,Page 1').toString().split(','); + c.setStrokeColor(frameColor); + c.ellipse(w - 75, 5, 20, 20); + c.stroke(); + c.ellipse(w - 50, 5, 20, 20); + c.stroke(); + c.setStrokeColor(closeColor); + c.ellipse(w - 25, 5, 20, 20); + c.stroke(); + c.setStrokeColor(insideColor); + c.begin(); + c.moveTo(0, 40); + c.lineTo(30, 40); + c.lineTo(30, 15); + c.arcTo(5, 5, 0, 0, 1, 35, 10); + c.lineTo(170, 10); + c.arcTo(5, 5, 0, 0, 1, 175, 15); + c.lineTo(175, 40); + c.lineTo(w, 40); + c.stroke(); + c.begin(); + c.moveTo(0, 110); + c.lineTo(w, 110); + c.stroke(); + c.begin(); + c.moveTo(100, 60); + c.arcTo(5, 5, 0, 0, 1, 105, 55); + c.lineTo(w - 15, 55); + c.arcTo(5, 5, 0, 0, 1, w - 10, 60); + c.lineTo(w - 10, 85); + c.arcTo(5, 5, 0, 0, 1, w - 15, 90); + c.lineTo(105, 90); + c.arcTo(5, 5, 0, 0, 1, 100, 85); + c.close(); + c.stroke(); + var textColor = mxUtils.getValue(this.style, mxShapeMockupBrowserWindow.prototype.cst.TEXT_COLOR, '#666666'); + c.setFontColor(textColor); + c.setFontSize(17); + c.text(65, 25, 0, 0, mainText[1], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(130, 73, 0, 0, mainText[0], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.stroke(); + c.translate(37, 17); + c.begin(); + c.moveTo(0, 0); + c.lineTo(11, 0); + c.lineTo(15, 4); + c.lineTo(15, 18); + c.lineTo(0, 18); + c.close(); + c.stroke(); + c.setStrokeWidth(strokeWidth * 0.5); + c.begin(); + c.moveTo(11, 0); + c.lineTo(11, 4); + c.lineTo(15, 5); + c.stroke(); + c.setStrokeWidth(strokeWidth * 2); + c.translate(70, 47); + c.begin(); + c.moveTo(0, 0); + c.lineTo(11, 0); + c.lineTo(15, 4); + c.lineTo(15, 18); + c.lineTo(0, 18); + c.close(); + c.stroke(); + c.setStrokeWidth(strokeWidth * 0.5); + c.begin(); + c.moveTo(11, 0); + c.lineTo(11, 4); + c.lineTo(15, 5); + c.stroke(); + var iSi = 20; + c.setFillColor(insideColor); + c.begin(); + c.setStrokeWidth(strokeWidth * 2); + c.translate(-95, 0); + c.moveTo(0, iSi * 0.5); + c.lineTo(iSi * 0.5, 0); + c.lineTo(iSi * 0.5, iSi * 0.3); + c.lineTo(iSi, iSi * 0.3); + c.lineTo(iSi, iSi * 0.7); + c.lineTo(iSi * 0.5, iSi * 0.7); + c.lineTo(iSi * 0.5, iSi); + c.close(); + c.fillAndStroke(); + c.begin(); + c.translate(30, 0); + c.moveTo(iSi, iSi * 0.5); + c.lineTo(iSi * 0.5, 0); + c.lineTo(iSi * 0.5, iSi * 0.3); + c.lineTo(0, iSi * 0.3); + c.lineTo(0, iSi * 0.7); + c.lineTo(iSi * 0.5, iSi * 0.7); + c.lineTo(iSi * 0.5, iSi); + c.close(); + c.fillAndStroke(); + c.begin(); + c.translate(30, 0); + c.moveTo(iSi * 0.78, iSi * 0.665); + c.arcTo(iSi * 0.3, iSi * 0.3, 0, 1, 1, iSi * 0.675, iSi * 0.252); + c.lineTo(iSi * 0.595, iSi * 0.325); + c.lineTo(iSi * 0.99, iSi * 0.415); + c.lineTo(iSi * 0.9, iSi * 0.04); + c.lineTo(iSi * 0.815, iSi * 0.12); + c.arcTo(iSi * 0.49, iSi * 0.49, 0, 1, 0, iSi * 0.92, iSi * 0.8); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupBrowserWindow.prototype.cst.SHAPE_BROWSER_WINDOW, mxShapeMockupBrowserWindow); + +function mxShapeMockupUserMale(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupUserMale, mxShape); +mxShapeMockupUserMale.prototype.cst = { + STROKE_COLOR2: 'strokeColor2', + SHAPE_MALE_USER: 'mxgraph.mockup.containers.userMale' +}; +mxShapeMockupUserMale.prototype.customProperties = [{ + name: 'strokeColor2', + dispName: 'Stroke2 Color', + type: 'color' +}]; + +mxShapeMockupUserMale.prototype.paintVertexShape = function (c, x, y, w, h) { + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var insideColor = mxUtils.getValue(this.style, mxShapeMockupUserMale.prototype.cst.STROKE_COLOR2, '#008cff'); + c.translate(x, y); + this.background(c, x, y, w, h, bgColor, frameColor); + c.setShadow(false); + this.otherShapes(c, x, y, w, h, insideColor, frameColor); +}; + +mxShapeMockupUserMale.prototype.background = function (c, x, y, w, h, bgColor, frameColor) { + c.setFillColor(bgColor); + c.setStrokeColor(frameColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupUserMale.prototype.otherShapes = function (c, x, y, w, h, insideColor, frameColor) { + c.setStrokeColor(insideColor); + c.setLineCap('round'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.5, h * 0.6721); + c.curveTo(w * 0.3891, h * 0.6721, w * 0.31, h * 0.5648, w * 0.31, h * 0.3962); + c.curveTo(w * 0.31, h * 0.3656, w * 0.3012, h * 0.3473, w * 0.3051, h * 0.3227); + c.curveTo(w * 0.3126, h * 0.2762, w * 0.3124, h * 0.2212, w * 0.332, h * 0.1939); + c.curveTo(w * 0.354, h * 0.1633, w * 0.4382, h * 0.12, w * 0.5, h * 0.12); + c.stroke(); + c.begin(); + c.moveTo(w * 0.3046, h * 0.3716); + c.curveTo(w * 0.3046, h * 0.3716, w * 0.3046, h * 0.341, w * 0.2826, h * 0.3594); + c.curveTo(w * 0.2606, h * 0.3778, w * 0.2661, h * 0.4452, w * 0.266, h * 0.4452); + c.quadTo(w * 0.2715, h * 0.4942, w * 0.277, h * 0.5065); + c.curveTo(w * 0.2825, h * 0.5187, w * 0.277, h * 0.5187, w * 0.2935, h * 0.5371); + c.curveTo(w * 0.31, h * 0.5554, w * 0.3375, h * 0.5615, w * 0.3375, h * 0.5616); + c.stroke(); + c.begin(); + c.moveTo(w * 0.3829, h * 0.6213); + c.curveTo(w * 0.3829, h * 0.6213, w * 0.405, h * 0.7704, w * 0.2921, h * 0.7888); + c.curveTo(w * 0.2536, h * 0.795, w * 0.1328, h * 0.85, w * 0.1052, h * 0.8745); + c.curveTo(w * 0.0776, h * 0.899, w * 0.0641, h * 0.9316, w * 0.0571, h * 0.9622); + c.quadTo(w * 0.05, h, w * 0.05, h); + c.stroke(); + c.begin(); + c.moveTo(w * 0.3427, h * 0.4185); + c.curveTo(w * 0.3427, h * 0.4185, w * 0.3427, h * 0.3839, w * 0.3427, h * 0.3593); + c.curveTo(w * 0.3427, h * 0.3348, w * 0.3663, h * 0.3103, w * 0.3718, h * 0.3041); + c.curveTo(w * 0.3773, h * 0.298, w * 0.3822, h * 0.2673, w * 0.3877, h * 0.2551); + c.curveTo(w * 0.3932, h * 0.2429, w * 0.4095, h * 0.2429, w * 0.4259, h * 0.2367); + c.curveTo(w * 0.4424, h * 0.2306, w * 0.4984, h * 0.2357, w * 0.4984, h * 0.2357); + c.stroke(); + c.begin(); + c.moveTo(w * 0.365, h * 0.7427); + c.curveTo(w * 0.365, h * 0.7427, w * 0.3772, h * 0.8076, w * 0.4286, h * 0.8224); + c.curveTo(w * 0.4816, h * 0.8377, w * 0.5028, h * 0.8347, w * 0.5028, h * 0.8347); + c.stroke(); + c.begin(); + c.moveTo(w * 0.3322, h * 0.7764); + c.curveTo(w * 0.3322, h * 0.7764, w * 0.3556, h * 0.8386, w * 0.4038, h * 0.8684); + c.curveTo(w * 0.4533, h * 0.8991, w * 0.5029, h * 0.8929, w * 0.5029, h * 0.8929); + c.stroke(); + c.begin(); + c.moveTo(w * 0.2717, h * 0.9); + c.lineTo(w * 0.2717, h); + c.stroke(); + c.begin(); + c.moveTo(w * 0.1671, h * 0.8991); + c.curveTo(w * 0.1671, h * 0.8991, w * 0.1726, h * 0.9114, w * 0.1836, h * 0.9481); + c.curveTo(w * 0.1946, h * 0.9849, w * 0.2, h, w * 0.2, h); + c.stroke(); + c.begin(); + c.moveTo(w * 0.5, h * 0.6721); + c.curveTo(w * 0.6109, h * 0.6721, w * 0.69, h * 0.5648, w * 0.69, h * 0.3962); + c.curveTo(w * 0.69, h * 0.3656, w * 0.6988, h * 0.3473, w * 0.6949, h * 0.3227); + c.curveTo(w * 0.6847, h * 0.2762, w * 0.6876, h * 0.2212, w * 0.668, h * 0.1939); + c.curveTo(w * 0.646, h * 0.1633, w * 0.5618, h * 0.12, w * 0.5, h * 0.12); + c.stroke(); + c.begin(); + c.moveTo(w * 0.6954, h * 0.3716); + c.curveTo(w * 0.6954, h * 0.3716, w * 0.6954, h * 0.341, w * 0.7174, h * 0.3594); + c.curveTo(w * 0.7394, h * 0.3778, w * 0.7339, h * 0.4452, w * 0.734, h * 0.4452); + c.quadTo(w * 0.7285, h * 0.4942, w * 0.723, h * 0.5065); + c.curveTo(w * 0.7175, h * 0.5187, w * 0.723, h * 0.5187, w * 0.7065, h * 0.5371); + c.curveTo(w * 0.69, h * 0.5554, w * 0.6625, h * 0.5615, w * 0.6625, h * 0.5616); + c.stroke(); + c.begin(); + c.moveTo(w * 0.6171, h * 0.6213); + c.curveTo(w * 0.6171, h * 0.6213, w * 0.595, h * 0.7704, w * 0.7079, h * 0.7888); + c.curveTo(w * 0.7464, h * 0.795, w * 0.8672, h * 0.85, w * 0.8948, h * 0.8745); + c.curveTo(w * 0.9224, h * 0.899, w * 0.9359, h * 0.9316, w * 0.9429, h * 0.9622); + c.quadTo(w * 0.95, h, w * 0.95, h); + c.stroke(); + c.begin(); + c.moveTo(w * 0.6573, h * 0.4185); + c.curveTo(w * 0.6573, h * 0.4185, w * 0.6573, h * 0.3839, w * 0.6573, h * 0.3593); + c.curveTo(w * 0.6573, h * 0.3348, w * 0.6337, h * 0.3103, w * 0.6282, h * 0.3041); + c.curveTo(w * 0.6227, h * 0.298, w * 0.6178, h * 0.2673, w * 0.6123, h * 0.2551); + c.curveTo(w * 0.6068, h * 0.2429, w * 0.5905, h * 0.2429, w * 0.5741, h * 0.2367); + c.curveTo(w * 0.5576, h * 0.2306, w * 0.5016, h * 0.2357, w * 0.5016, h * 0.2357); + c.stroke(); + c.begin(); + c.moveTo(w * 0.635, h * 0.7427); + c.curveTo(w * 0.635, h * 0.7427, w * 0.6228, h * 0.8076, w * 0.5714, h * 0.8224); + c.curveTo(w * 0.5184, h * 0.8377, w * 0.4972, h * 0.8347, w * 0.4972, h * 0.8347); + c.stroke(); + c.begin(); + c.moveTo(w * 0.6678, h * 0.7764); + c.curveTo(w * 0.6678, h * 0.7764, w * 0.6444, h * 0.8386, w * 0.5962, h * 0.8684); + c.curveTo(w * 0.5467, h * 0.8991, w * 0.4971, h * 0.8929, w * 0.4971, h * 0.8929); + c.stroke(); + c.begin(); + c.moveTo(w * 0.7283, h * 0.9); + c.lineTo(w * 0.7283, h); + c.stroke(); + c.begin(); + c.moveTo(w * 0.8329, h * 0.8991); + c.curveTo(w * 0.8329, h * 0.8991, w * 0.8274, h * 0.9114, w * 0.8164, h * 0.9481); + c.curveTo(w * 0.8054, h * 0.9849, w * 0.8, h, w * 0.8, h); + c.stroke(); + c.setStrokeColor(frameColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupUserMale.prototype.cst.SHAPE_MALE_USER, mxShapeMockupUserMale); + +function mxShapeMockupUserFemale(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupUserFemale, mxShape); +mxShapeMockupUserFemale.prototype.cst = { + STROKE_COLOR2: 'strokeColor2', + SHAPE_FEMALE_USER: 'mxgraph.mockup.containers.userFemale' +}; +mxShapeMockupUserFemale.prototype.customProperties = [{ + name: 'strokeColor2', + dispName: 'Stroke2 Color', + type: 'color' +}]; + +mxShapeMockupUserFemale.prototype.paintVertexShape = function (c, x, y, w, h) { + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var insideColor = mxUtils.getValue(this.style, mxShapeMockupUserFemale.prototype.cst.STROKE_COLOR2, '#008cff'); + c.translate(x, y); + this.background(c, x, y, w, h, bgColor, frameColor); + c.setShadow(false); + this.otherShapes(c, x, y, w, h, insideColor, frameColor); +}; + +mxShapeMockupUserFemale.prototype.background = function (c, x, y, w, h, bgColor, frameColor) { + c.setFillColor(bgColor); + c.setStrokeColor(frameColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupUserFemale.prototype.otherShapes = function (c, x, y, w, h, insideColor, frameColor) { + c.setStrokeColor(insideColor); + c.setLineCap('round'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.3148, h * 0.468); + c.curveTo(w * 0.3045, h * 0.3195, w * 0.3176, h * 0.2383, w * 0.3302, h * 0.2069); + c.curveTo(w * 0.3508, h * 0.1557, w * 0.44, h * 0.1156, w * 0.5026, h * 0.1156); + c.stroke(); + c.begin(); + c.moveTo(w * 0.5029, h * 0.6728); + c.curveTo(w * 0.4616, h * 0.6728, w * 0.4018, h * 0.6177, w * 0.3663, h * 0.5653); + c.stroke(); + c.begin(); + c.moveTo(w * 0.3108, h * 0.4021); + c.curveTo(w * 0.3108, h * 0.4021, w * 0.3091, h * 0.3765, w * 0.2891, h * 0.3933); + c.curveTo(w * 0.2691, h * 0.4101, w * 0.2782, h * 0.4661, w * 0.2782, h * 0.4661); + c.quadTo(w * 0.2862, h * 0.5067, w * 0.2922, h * 0.5166); + c.curveTo(w * 0.2982, h * 0.5265, w * 0.2929, h * 0.5268, w * 0.3097, h * 0.5412); + c.stroke(); + c.begin(); + c.moveTo(w * 0.4038, h * 0.6176); + c.curveTo(w * 0.4038, h * 0.6176, w * 0.4324, h * 0.7778, w * 0.3375, h * 0.7963); + c.curveTo(w * 0.3054, h * 0.8026, w * 0.1753, h * 0.8578, w * 0.15, h * 0.8826); + c.curveTo(w * 0.1247, h * 0.9074, w * 0.1126, h * 0.9412, w * 0.1063, h * 0.9722); + c.curveTo(w * 0.10, h * 1.0032, w * 0.1, h, w * 0.1, h); + c.stroke(); + c.begin(); + c.moveTo(w * 0.6377, h * 0.3365); + c.curveTo(w * 0.5927, h * 0.2634, w * 0.5206, h * 0.2634, w * 0.5206, h * 0.2634); + c.quadTo(w * 0.3769, h * 0.2591, w * 0.3713, h * 0.2659); + c.curveTo(w * 0.3657, h * 0.2727, w * 0.3405, h * 0.3674, w * 0.3405, h * 0.3946); + c.curveTo(w * 0.3405, h * 0.4218, w * 0.3405, h * 0.4602, w * 0.3405, h * 0.4602); + c.quadTo(w * 0.3546, h * 0.6401, w * 0.3546, h * 0.6626); + c.stroke(); + c.begin(); + c.moveTo(w * 0.2931, h * 0.818); + c.curveTo(w * 0.2931, h * 0.818, w * 0.3224, h * 0.9159, w * 0.3826, h * 0.9677); + c.curveTo(w * 0.4446, h * 1.01, w * 0.5065, h, w * 0.5065, h); + c.stroke(); + c.begin(); + c.moveTo(w * 0.2995, h * 0.9106); + c.lineTo(w * 0.2995, h); + c.stroke(); + c.begin(); + c.moveTo(w * 0.2081, h * 0.907); + c.curveTo(w * 0.2081, h * 0.907, w * 0.2131, h * 0.9194, w * 0.2232, h * 0.9565); + c.curveTo(w * 0.2333, h * 0.9936, w * 0.24, h, w * 0.24, h); + c.stroke(); + c.begin(); + c.moveTo(w * 0.6951, h * 0.4988); + c.curveTo(w * 0.6951, h * 0.4662, w * 0.7042, h * 0.3453, w * 0.7, h * 0.32); + c.curveTo(w * 0.6923, h * 0.273, w * 0.6926, h * 0.2175, w * 0.6727, h * 0.19); + c.curveTo(w * 0.6504, h * 0.159, w * 0.5651, h * 0.1157, w * 0.5025, h * 0.1157); + c.stroke(); + c.begin(); + c.moveTo(w * 0.5029, h * 0.6728); + c.curveTo(w * 0.5546, h * 0.6728, w * 0.6107, h * 0.6316, w * 0.6461, h * 0.5602); + c.stroke(); + c.begin(); + c.moveTo(w * 0.696, h * 0.4022); + c.curveTo(w * 0.696, h * 0.4022, w * 0.6983, h * 0.3766, w * 0.7179, h * 0.4106); + c.curveTo(w * 0.7375, h * 0.4278, w * 0.7273, h * 0.4836, w * 0.7273, h * 0.4836); + c.quadTo(w * 0.7184, h * 0.5241, w * 0.7123, h * 0.5338); + c.curveTo(w * 0.7062, h * 0.5436, w * 0.7114, h * 0.544, w * 0.6943, h * 0.558); + c.stroke(); + c.begin(); + c.moveTo(w * 0.5995, h * 0.6278); + c.curveTo(w * 0.5995, h * 0.6278, w * 0.5724, h * 0.7777, w * 0.6663, h * 0.7963); + c.curveTo(w * 0.6984, h * 0.8026, w * 0.8386, h * 0.8578, w * 0.8638, h * 0.8826); + c.curveTo(w * 0.8891, h * 0.9074, w * 0.9016, h * 0.9412, w * 0.9079, h * 0.9722); + c.curveTo(w * 0.9142, h * 1.0032, w * 0.91, h, w * 0.91, h); + c.stroke(); + c.begin(); + c.moveTo(w * 0.6545, h * 0.6802); + c.lineTo(w * 0.6545, h * 0.3986); + c.stroke(); + c.begin(); + c.moveTo(w * 0.7132, h * 0.8078); + c.curveTo(w * 0.7132, h * 0.8078, w * 0.6839, h * 0.916, w * 0.6237, h * 0.9678); + c.curveTo(w * 0.5617, h * 1.01, w * 0.4998, h, w * 0.4998, h); + c.stroke(); + c.begin(); + c.moveTo(w * 0.7111, h * 0.9106); + c.lineTo(w * 0.7111, h); + c.stroke(); + c.begin(); + c.moveTo(w * 0.8075, h * 0.907); + c.curveTo(w * 0.8075, h * 0.907, w * 0.8025, h * 0.9194, w * 0.7924, h * 0.9565); + c.curveTo(w * 0.7823, h * 0.9936, w * 0.775, h, w * 0.775, h); + c.stroke(); + c.begin(); + c.moveTo(w * 0.3148, h * 0.5448); + c.curveTo(w * 0.3148, h * 0.5448, w * 0.32, h * 0.6216, w * 0.3148, h * 0.6677); + c.quadTo(w * 0.2891, h * 0.7343, w * 0.2891, h * 0.7343); + c.lineTo(w * 0.3303, h * 0.7625); + c.lineTo(w * 0.39, h * 0.7625); + c.stroke(); + c.begin(); + c.moveTo(w * 0.6852, h * 0.5448); + c.curveTo(w * 0.6852, h * 0.5448, w * 0.68, h * 0.6216, w * 0.6852, h * 0.6677); + c.quadTo(w * 0.7109, h * 0.7343, w * 0.7109, h * 0.7343); + c.lineTo(w * 0.6697, h * 0.7625); + c.lineTo(w * 0.62, h * 0.7625); + c.stroke(); + c.setStrokeColor(frameColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupUserFemale.prototype.cst.SHAPE_FEMALE_USER, mxShapeMockupUserFemale); + +function mxShapeMockupGroup(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupGroup, mxShape); +mxShapeMockupGroup.prototype.cst = { + MAIN_TEXT: 'mainText', + TEXT_SIZE: 'textSize', + TEXT_COLOR: 'textColor', + FILL_COLOR2: 'fillColor2', + SHAPE_GROUP: 'mxgraph.mockup.containers.group' +}; + +mxShapeMockupGroup.prototype.paintVertexShape = function (c, x, y, w, h) { + var groupString = mxUtils.getValue(this.style, mxShapeMockupGroup.prototype.cst.MAIN_TEXT, 'Group').toString(); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupGroup.prototype.cst.TEXT_SIZE, '17'); + var textWidth = mxUtils.getSizeForString(groupString, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (textWidth === 0) { + textWidth = Math.max(80, textWidth); + } + + c.translate(x, y); + w = Math.max(w, textWidth + 15); + h = Math.max(h, fontSize + 10); + this.background(c, w, h, textWidth, fontSize); + c.setShadow(false); + this.foreground(c, w, h, textWidth, fontSize); + this.buttonText(c, w, h, groupString, fontSize); +}; + +mxShapeMockupGroup.prototype.background = function (c, w, h, textWidth, fontSize) { + c.roundrect(0, fontSize * 0.5, w, h - fontSize * 0.5, 5, 5); + c.fillAndStroke(); +}; + +mxShapeMockupGroup.prototype.foreground = function (c, w, h, textWidth, fontSize) { + var fillColor = mxUtils.getValue(this.style, mxShapeMockupGroup.prototype.cst.FILL_COLOR2, '#000000'); + c.setFillColor(fillColor); + c.roundrect(3, 0, textWidth + 6, fontSize * 1.5, fontSize * 0.25, fontSize * 0.25); + c.fill(); +}; + +mxShapeMockupGroup.prototype.buttonText = function (c, w, h, textString, fontSize) { + var fontColor = mxUtils.getValue(this.style, mxShapeMockupGroup.prototype.cst.TEXT_COLOR, '#ffffff'); + c.setFontColor(fontColor); + c.setFontSize(fontSize); + c.text(6, 0, 0, 0, textString, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_TOP, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupGroup.prototype.cst.SHAPE_GROUP, mxShapeMockupGroup); + +function mxShapeMockupWindow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupWindow, mxShape); +mxShapeMockupWindow.prototype.cst = { + MAIN_TEXT: 'mainText', + TEXT_SIZE: 'textSize', + TEXT_COLOR: 'textColor', + STROKE_COLOR2: 'strokeColor2', + STROKE_COLOR3: 'strokeColor3', + SHAPE_WINDOW: 'mxgraph.mockup.containers.window' +}; +mxShapeMockupWindow.prototype.customProperties = [{ + name: 'strokeColor2', + dispName: 'Stroke2 Color', + type: 'color' +}, { + name: 'strokeColor3', + dispName: 'Stroke3 Color', + type: 'color' +}]; + +mxShapeMockupWindow.prototype.paintVertexShape = function (c, x, y, w, h) { + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var closeColor = mxUtils.getValue(this.style, mxShapeMockupWindow.prototype.cst.STROKE_COLOR2, '#008cff'); + var insideColor = mxUtils.getValue(this.style, mxShapeMockupWindow.prototype.cst.STROKE_COLOR3, '#c4c4c4'); + c.translate(x, y); + h = Math.max(h, 30); + w = Math.max(w, 90); + this.background(c, x, y, w, h, bgColor, frameColor); + c.setShadow(false); + this.otherShapes(c, x, y, w, h, frameColor, insideColor, closeColor); +}; + +mxShapeMockupWindow.prototype.background = function (c, x, y, w, h, bgColor, frameColor) { + c.setFillColor(bgColor); + c.setStrokeColor(frameColor); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupWindow.prototype.otherShapes = function (c, x, y, w, h, frameColor, insideColor, closeColor) { + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + c.setStrokeColor(frameColor); + c.ellipse(w - 75, 5, 20, 20); + c.stroke(); + c.ellipse(w - 50, 5, 20, 20); + c.stroke(); + c.setStrokeColor(closeColor); + c.ellipse(w - 25, 5, 20, 20); + c.stroke(); + c.setStrokeColor(insideColor); + c.begin(); + c.moveTo(0, 30); + c.lineTo(w, 30); + c.stroke(); + var windowTitle = mxUtils.getValue(this.style, mxShapeMockupWindow.prototype.cst.MAIN_TEXT, 'Window Title'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupWindow.prototype.cst.TEXT_COLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupWindow.prototype.cst.TEXT_SIZE, '17').toString(); + c.setFontColor(fontColor); + c.setFontSize(fontSize); + c.text(10, 15, 0, 0, windowTitle, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupWindow.prototype.cst.SHAPE_WINDOW, mxShapeMockupWindow); + +function mxShapeMockupHorTabBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupHorTabBar, mxShape); +mxShapeMockupHorTabBar.prototype.cst = { + BLOCK: 'block', + CONE: 'cone', + HALF_CONE: 'halfCone', + ROUND: 'round', + TEXT_SIZE: 'textSize', + TAB_NAMES: 'tabs', + TAB_STYLE: 'tabStyle', + STYLE_FILLCOLOR2: 'fillColor2', + TEXT_COLOR: 'textColor', + SEL_TEXT_COLOR: 'textColor2', + SHAPE_HOR_TAB_BAR: 'mxgraph.mockup.containers.horTabBar' +}; + +mxShapeMockupHorTabBar.prototype.paintVertexShape = function (c, x, y, w, h) { + var fontSize = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.TEXT_SIZE, '17').toString(); + var tabNames = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.TAB_NAMES, 'Tab 1,+Tab 2,Tab 3').toString().split(','); + var tabH = fontSize * 1.5; + var startOffset = 10; + var tabOffset = 5; + var labelOffset = 10; + var tabCount = tabNames.length; + var minW = 2 * startOffset + (tabCount - 1) * tabOffset + tabCount * 2 * labelOffset; + var rSize = 5; + var labelWidths = new Array(); + var selectedTab = -1; + + for (var i = 0; i < tabCount; i++) { + var currLabel = tabNames[i]; + + if (currLabel.charAt(0) === '+') { + currLabel = currLabel.substring(1); + selectedTab = i; + } + + currW = mxUtils.getSizeForString(currLabel, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currW === 0) { + labelWidths[i] = 40; + } else { + labelWidths[i] = currW; + } + + ; + minW = minW + labelWidths[i]; + } + + w = Math.max(w, minW); + h = Math.max(h, tabH + rSize); + c.translate(x, y); + this.background(c, w, h, rSize, tabH); + c.setShadow(false); + this.backTabs(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab); + this.focusTab(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab); + this.tabText(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab, tabNames); +}; + +mxShapeMockupHorTabBar.prototype.background = function (c, w, h, rSize, tabH) { + c.begin(); + c.moveTo(0, tabH + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, tabH); + c.lineTo(w - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 1, w, tabH + rSize); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupHorTabBar.prototype.backTabs = function (c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab) { + var tabStyle = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.TAB_STYLE, mxShapeMockupHorTabBar.prototype.cst.BLOCK); + var currW = startOffset; + + for (var i = 0; i < tabCount; i++) { + var tabW = labelWidths[i] + 2 * labelOffset; + + if (selectedTab !== i) { + if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.BLOCK) { + c.rect(currW, 0, tabW, tabH); + } else if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.CONE) { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW - labelOffset * 0.5, 0); + c.lineTo(currW + tabW, tabH); + } else if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.HALF_CONE) { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW, 0); + c.lineTo(currW + tabW, tabH); + } else if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.ROUND) { + c.begin(); + c.moveTo(currW - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 0, currW, tabH - rSize); + c.lineTo(currW, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, currW + rSize, 0); + c.lineTo(currW + tabW - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, currW + tabW, rSize); + c.lineTo(currW + tabW, tabH - rSize); + c.arcTo(rSize, rSize, 0, 0, 0, currW + tabW + rSize, tabH); + } + + c.fillAndStroke(); + } + + currW = currW + tabW + tabOffset; + } +}; + +mxShapeMockupHorTabBar.prototype.focusTab = function (c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab) { + var tabStyle = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.TAB_STYLE, mxShapeMockupHorTabBar.prototype.cst.BLOCK); + var selectedFill = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.STYLE_FILLCOLOR2, '#008cff'); + var currW = startOffset; + c.setStrokeColor(selectedFill); + c.setFillColor(selectedFill); + + for (var i = 0; i <= selectedTab; i++) { + var tabW = labelWidths[i] + 2 * labelOffset; + + if (selectedTab === i) { + if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.BLOCK) { + c.begin(); + c.moveTo(0, tabH + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, tabH); + c.lineTo(currW, tabH); + c.lineTo(currW, 0); + c.lineTo(currW + tabW, 0); + c.lineTo(currW + tabW, tabH); + c.lineTo(w - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 1, w, tabH + rSize); + c.close(); + } else if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.CONE) { + c.begin(); + c.moveTo(0, tabH + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, tabH); + c.lineTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW - labelOffset * 0.5, 0); + c.lineTo(currW + tabW, tabH); + c.lineTo(w - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 1, w, tabH + rSize); + c.close(); + } else if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.HALF_CONE) { + c.begin(); + c.moveTo(0, tabH + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, tabH); + c.lineTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW, 0); + c.lineTo(currW + tabW, tabH); + c.lineTo(w - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 1, w, tabH + rSize); + c.close(); + } else if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.ROUND) { + c.begin(); + c.moveTo(0, tabH + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, tabH); + c.lineTo(currW - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 0, currW, tabH - rSize); + c.lineTo(currW, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, currW + rSize, 0); + c.lineTo(currW + tabW - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, currW + tabW, rSize); + c.lineTo(currW + tabW, tabH - rSize); + c.arcTo(rSize, rSize, 0, 0, 0, currW + tabW + rSize, tabH); + c.lineTo(w - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 1, w, tabH + rSize); + c.close(); + } + + c.fillAndStroke(); + } + + currW = currW + tabW + tabOffset; + } +}; + +mxShapeMockupHorTabBar.prototype.tabText = function (c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab, tabNames) { + var fontColor = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.TEXT_COLOR, '#666666'); + var selFontColor = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.SEL_TEXT_COLOR, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.TEXT_SIZE, '17').toString(); + c.setFontColor(fontColor); + c.setFontSize(fontSize); + var currW = startOffset; + + for (var i = 0; i < tabCount; i++) { + var currLabel = tabNames[i]; + + if (i === selectedTab) { + c.setFontColor(selFontColor); + } + + if (currLabel.charAt(0) === '+') { + currLabel = currLabel.substring(1); + } + + var tabW = labelWidths[i] + 2 * labelOffset; + c.text(currW + labelOffset, tabH * 0.5, 0, 0, currLabel, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + currW = currW + tabW + tabOffset; + + if (i === selectedTab) { + c.setFontColor(fontColor); + } + } +}; + +mxCellRenderer.registerShape(mxShapeMockupHorTabBar.prototype.cst.SHAPE_HOR_TAB_BAR, mxShapeMockupHorTabBar); + +function mxShapeMockupVerTabBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupVerTabBar, mxShape); +mxShapeMockupVerTabBar.prototype.cst = { + BLOCK: 'block', + ROUND: 'round', + TEXT_SIZE: 'textSize', + TAB_NAMES: 'tabs', + TAB_STYLE: 'tabStyle', + STYLE_FILLCOLOR2: 'fillColor2', + TEXT_COLOR: 'textColor', + SEL_TEXT_COLOR: 'textColor2', + SHAPE_VER_TAB_BAR: 'mxgraph.mockup.containers.verTabBar' +}; + +mxShapeMockupVerTabBar.prototype.paintVertexShape = function (c, x, y, w, h) { + var fontSize = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.TEXT_SIZE, '17').toString(); + var tabNames = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.TAB_NAMES, 'Tab 1,+Tab 2,Tab 3').toString().split(','); + var tabH = fontSize * 1.5; + var startOffset = 10; + var tabOffset = 5; + var labelOffset = 10; + var tabCount = tabNames.length; + var rSize = 5; + var labelWidths = new Array(); + var selectedTab = -1; + + for (var i = 0; i < tabCount; i++) { + var currLabel = tabNames[i]; + + if (currLabel.charAt(0) === '+') { + currLabel = currLabel.substring(1); + selectedTab = i; + } + + var currW = mxUtils.getSizeForString(currLabel, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currW === 0) { + labelWidths[i] = 42; + } else { + labelWidths[i] = currW; + } + } + + var tabW = 2 * labelOffset + Math.max.apply(Math, labelWidths); + var minW = tabW + rSize; + w = Math.max(w, minW); + h = Math.max(h, 2 * startOffset + tabCount * tabH + (tabCount - 1) * tabOffset); + c.translate(x, y); + this.background(c, w, h, rSize, tabW); + c.setShadow(false); + this.backTabs(c, w, h, rSize, tabH, tabW, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab); + this.focusTab(c, w, h, rSize, tabH, tabW, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab); + this.tabText(c, w, h, rSize, tabH, tabW, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab, tabNames); +}; + +mxShapeMockupVerTabBar.prototype.background = function (c, w, h, rSize, tabW) { + c.begin(); + c.moveTo(tabW + rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, tabW, h - rSize); + c.lineTo(tabW, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, tabW + rSize, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupVerTabBar.prototype.backTabs = function (c, w, h, rSize, tabH, tabW, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab) { + var tabStyle = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.TAB_STYLE, mxShapeMockupVerTabBar.prototype.cst.BLOCK); + var currH = startOffset; + + for (var i = 0; i < tabCount; i++) { + if (selectedTab !== i) { + if (tabStyle === mxShapeMockupVerTabBar.prototype.cst.BLOCK) { + c.rect(0, currH, tabW, tabH); + } else if (tabStyle === mxShapeMockupVerTabBar.prototype.cst.ROUND) { + c.begin(); + c.moveTo(tabW, currH + tabH + rSize); + c.arcTo(rSize, rSize, 0, 0, 0, tabW - rSize, currH + tabH); + c.lineTo(rSize, currH + tabH); + c.arcTo(rSize, rSize, 0, 0, 1, 0, currH + tabH - rSize); + c.lineTo(0, currH + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, currH); + c.lineTo(tabW - rSize, currH); + c.arcTo(rSize, rSize, 0, 0, 0, tabW, currH - rSize); + } + + c.fillAndStroke(); + } + + currH = currH + tabH + tabOffset; + } +}; + +mxShapeMockupVerTabBar.prototype.focusTab = function (c, w, h, rSize, tabH, tabW, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab) { + var tabStyle = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.TAB_STYLE, mxShapeMockupVerTabBar.prototype.cst.BLOCK); + var selectedFill = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.STYLE_FILLCOLOR2, '#008cff'); + + if (selectedTab !== -1) { + var currH = startOffset + (tabH + tabOffset) * selectedTab; + c.setStrokeColor(selectedFill); + c.setFillColor(selectedFill); + + if (tabStyle === mxShapeMockupVerTabBar.prototype.cst.BLOCK) { + c.begin(); + c.moveTo(tabW + rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, tabW, h - rSize); + c.lineTo(tabW, currH + tabH); + c.lineTo(0, currH + tabH); + c.lineTo(0, currH); + c.lineTo(tabW, currH); + c.lineTo(tabW, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, tabW + rSize, 0); + c.close(); + } else if (tabStyle === mxShapeMockupVerTabBar.prototype.cst.ROUND) { + c.begin(); + c.moveTo(tabW + rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, tabW, h - rSize); + c.lineTo(tabW, currH + tabH + rSize); + c.arcTo(rSize, rSize, 0, 0, 0, tabW - rSize, currH + tabH); + c.lineTo(rSize, currH + tabH); + c.arcTo(rSize, rSize, 0, 0, 1, 0, currH + tabH - rSize); + c.lineTo(0, currH + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, currH); + c.lineTo(tabW - rSize, currH); + c.arcTo(rSize, rSize, 0, 0, 0, tabW, currH - rSize); + c.lineTo(tabW, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, tabW + rSize, 0); + c.close(); + } + + c.fillAndStroke(); + } +}; + +mxShapeMockupVerTabBar.prototype.tabText = function (c, w, h, rSize, tabH, tabW, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab, tabNames) { + var fontColor = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.TEXT_COLOR, '#666666'); + var selFontColor = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.SEL_TEXT_COLOR, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.TEXT_SIZE, '17').toString(); + c.setFontColor(fontColor); + c.setFontSize(fontSize); + var currH = startOffset; + + for (var i = 0; i < tabCount; i++) { + var currLabel = tabNames[i]; + + if (i === selectedTab) { + c.setFontColor(selFontColor); + } + + if (currLabel.charAt(0) === '+') { + currLabel = currLabel.substring(1); + } + + c.text(tabW * 0.5, currH + tabH * 0.5, 0, 0, currLabel, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + currH = currH + tabH + tabOffset; + + if (i === selectedTab) { + c.setFontColor(fontColor); + } + } +}; + +mxCellRenderer.registerShape(mxShapeMockupVerTabBar.prototype.cst.SHAPE_VER_TAB_BAR, mxShapeMockupVerTabBar); + +function mxShapeMockupAlertBox(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupAlertBox, mxShape); +mxShapeMockupAlertBox.prototype.cst = { + MAIN_TEXT: 'mainText', + SUB_TEXT: 'subText', + BUTTON_TEXT: 'buttonText', + TEXT_SIZE: 'textSize', + TEXT_COLOR: 'textColor', + STROKE_COLOR2: 'strokeColor2', + STROKE_COLOR3: 'strokeColor3', + SHAPE_ALERT_BOX: 'mxgraph.mockup.containers.alertBox' +}; + +mxShapeMockupAlertBox.prototype.paintVertexShape = function (c, x, y, w, h) { + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var closeColor = mxUtils.getValue(this.style, mxShapeMockupAlertBox.prototype.cst.STROKE_COLOR2, '#008cff'); + var insideColor = mxUtils.getValue(this.style, mxShapeMockupAlertBox.prototype.cst.STROKE_COLOR3, '#c4c4c4'); + c.translate(x, y); + h = Math.max(h, 75); + w = Math.max(w, 90); + this.background(c, x, y, w, h, bgColor, frameColor); + c.setShadow(false); + this.foreground(c, x, y, w, h, frameColor, insideColor, closeColor); +}; + +mxShapeMockupAlertBox.prototype.background = function (c, x, y, w, h, bgColor, frameColor) { + c.setFillColor(bgColor); + c.setStrokeColor(frameColor); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupAlertBox.prototype.foreground = function (c, x, y, w, h, frameColor, insideColor, closeColor) { + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + c.setStrokeColor(closeColor); + c.ellipse(w - 25, 5, 20, 20); + c.stroke(); + c.setStrokeColor(insideColor); + c.begin(); + c.moveTo(0, 30); + c.lineTo(w, 30); + c.stroke(); + var windowTitle = mxUtils.getValue(this.style, mxShapeMockupAlertBox.prototype.cst.MAIN_TEXT, 'Window Title').toString(); + var subText = mxUtils.getValue(this.style, mxShapeMockupAlertBox.prototype.cst.SUB_TEXT, 'Sub Text').toString().split(','); + var buttonText = mxUtils.getValue(this.style, mxShapeMockupAlertBox.prototype.cst.BUTTON_TEXT, 'OK,Cancel').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupAlertBox.prototype.cst.TEXT_COLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupAlertBox.prototype.cst.TEXT_SIZE, '17').toString(); + var buttonCount = buttonText.length; + var buttonOffset = 10; + var buttonW = (w - buttonOffset * (buttonCount + 1)) / buttonCount; + c.setFontColor(fontColor); + c.setFontSize(fontSize); + c.text(10, 15, 0, 0, windowTitle, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var currW = buttonOffset; + + for (var i = 0; i < buttonText.length; i++) { + if (buttonText[i] !== '') { + c.rect(currW, h - 10 - fontSize * 1.5, buttonW, fontSize * 1.5); + c.stroke(); + c.text(currW + buttonW * 0.5, h - 10 - fontSize * 0.75, 0, 0, buttonText[i], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currW = currW + buttonW + buttonOffset; + } + + for (var i = 0; i < subText.length; i++) { + c.text(w * 0.5, 30 + fontSize * (i * 1.5 + 0.75), 0, 0, subText[i], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupAlertBox.prototype.cst.SHAPE_ALERT_BOX, mxShapeMockupAlertBox); + +function mxShapeMockupContainersRRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupContainersRRect, mxShape); +mxShapeMockupContainersRRect.prototype.cst = { + RRECT: 'mxgraph.mockup.containers.rrect', + R_SIZE: 'rSize' +}; +mxShapeMockupContainersRRect.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeMockupContainersRRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupContainersRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupContainersRRect.prototype.cst.RRECT, mxShapeMockupContainersRRect); + +function mxShapeMockupContainersAnchor(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; +} + +; +mxUtils.extend(mxShapeMockupContainersAnchor, mxShape); +mxShapeMockupContainersAnchor.prototype.cst = { + ANCHOR: 'mxgraph.mockup.containers.anchor' +}; + +mxShapeMockupContainersAnchor.prototype.paintVertexShape = function (c, x, y, w, h) {}; + +mxCellRenderer.registerShape(mxShapeMockupContainersAnchor.prototype.cst.ANCHOR, mxShapeMockupContainersAnchor); + +function mxShapeMockupContrainersTopButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupContrainersTopButton, mxShape); +mxShapeMockupContrainersTopButton.prototype.cst = { + TOP_BUTTON: 'mxgraph.mockup.containers.topButton', + R_SIZE: 'rSize' +}; +mxShapeMockupContrainersTopButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeMockupContrainersTopButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupContrainersTopButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupContrainersTopButton.prototype.cst.TOP_BUTTON, mxShapeMockupContrainersTopButton); + +function mxShapeMockupContainersLeftButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupContainersLeftButton, mxShape); +mxShapeMockupContainersLeftButton.prototype.cst = { + LEFT_BUTTON: 'mxgraph.mockup.containers.leftButton', + R_SIZE: 'rSize' +}; +mxShapeMockupContainersLeftButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeMockupContainersLeftButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupContainersLeftButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupContainersLeftButton.prototype.cst.LEFT_BUTTON, mxShapeMockupContainersLeftButton); + +function mxShapeMockupContainersMarginRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupContainersMarginRect, mxShape); +mxShapeMockupContainersMarginRect.prototype.cst = { + SHAPE_MARGIN_RECT: 'mxgraph.mockup.containers.marginRect', + MARGIN: 'rectMargin', + MARGIN_TOP: 'rectMarginTop', + MARGIN_LEFT: 'rectMarginLeft', + MARGIN_BOTTOM: 'rectMarginBottom', + MARGIN_RIGHT: 'rectMarginRight' +}; +mxShapeMockupContainersMarginRect.prototype.customProperties = [{ + name: 'rectMargin', + dispName: 'Global Margin', + type: 'float', + min: 0, + defVal: 0 +}, { + name: 'rectMarginTop', + dispName: 'Top Margin', + type: 'float', + min: 0, + defVal: 0 +}, { + name: 'rectMarginLeft', + dispName: 'Left Margin', + type: 'float', + min: 0, + defVal: 0 +}, { + name: 'rectMarginBottom', + dispName: 'Bottom Margin', + type: 'float', + min: 0, + defVal: 0 +}, { + name: 'rectMarginRight', + dispName: 'Right Margin', + type: 'float', + min: 0, + defVal: 0 +}]; + +mxShapeMockupContainersMarginRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeMockupContainersMarginRect.prototype.background = function (c, x, y, w, h, state) { + var margin = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect.prototype.cst.MARGIN, '0')); + var marginTop = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect.prototype.cst.MARGIN_TOP, '0')); + var marginLeft = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect.prototype.cst.MARGIN_LEFT, '0')); + var marginBottom = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect.prototype.cst.MARGIN_BOTTOM, '0')); + var marginRight = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect.prototype.cst.MARGIN_RIGHT, '0')); + var x1 = margin + marginLeft; + var y1 = margin + marginTop; + var w1 = w - marginRight - x1 - margin; + var h1 = h - marginBottom - y1 - margin; + + if (w1 > 0 && h1 > 0) { + c.begin(); + c.roundrect(x1, y1, w1, h1, 10, 10); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupContainersMarginRect.prototype.cst.SHAPE_MARGIN_RECT, mxShapeMockupContainersMarginRect); + +function mxShapeMockupContainersMarginRect2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupContainersMarginRect2, mxShape); +mxShapeMockupContainersMarginRect2.prototype.cst = { + SHAPE_MARGIN_RECT: 'mxgraph.mockup.containers.marginRect2', + MARGIN: 'rectMargin', + MARGIN_TOP: 'rectMarginTop', + MARGIN_LEFT: 'rectMarginLeft', + MARGIN_BOTTOM: 'rectMarginBottom', + MARGIN_RIGHT: 'rectMarginRight' +}; +mxShapeMockupContainersMarginRect2.prototype.customProperties = [{ + name: 'rectMargin', + dispName: 'Global Margin', + type: 'float', + min: 0, + defVal: 0 +}, { + name: 'rectMarginTop', + dispName: 'Top Margin', + type: 'float', + min: 0, + defVal: 0 +}, { + name: 'rectMarginLeft', + dispName: 'Left Margin', + type: 'float', + min: 0, + defVal: 0 +}, { + name: 'rectMarginBottom', + dispName: 'Bottom Margin', + type: 'float', + min: 0, + defVal: 0 +}, { + name: 'rectMarginRight', + dispName: 'Right Margin', + type: 'float', + min: 0, + defVal: 0 +}]; + +mxShapeMockupContainersMarginRect2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeMockupContainersMarginRect2.prototype.background = function (c, x, y, w, h, state) { + var margin = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect2.prototype.cst.MARGIN, '0')); + var marginTop = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect2.prototype.cst.MARGIN_TOP, '0')); + var marginLeft = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect2.prototype.cst.MARGIN_LEFT, '0')); + var marginBottom = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect2.prototype.cst.MARGIN_BOTTOM, '0')); + var marginRight = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect2.prototype.cst.MARGIN_RIGHT, '0')); + var x1 = margin + marginLeft; + var y1 = margin + marginTop; + var w1 = w - marginRight - x1 - margin; + var h1 = h - marginBottom - y1 - margin; + + if (w1 > 0 && h1 > 0) { + c.begin(); + c.rect(x1, y1, w1, h1); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupContainersMarginRect2.prototype.cst.SHAPE_MARGIN_RECT, mxShapeMockupContainersMarginRect2); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupForms.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupForms.js new file mode 100644 index 0000000000000..9019abeb84039 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupForms.js @@ -0,0 +1,1925 @@ +"use strict"; + +function mxShapeMockupCheckboxGroup(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupCheckboxGroup, mxShape); +mxShapeMockupCheckboxGroup.prototype.cst = { + MAIN_TEXT: 'mainText', + TEXT_SIZE: 'textSize', + TEXT_COLOR: 'textColor', + SELECTED: '+', + SHAPE_CHECKBOX_GROUP: 'mxgraph.mockup.forms.checkboxGroup' +}; + +mxShapeMockupCheckboxGroup.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupCheckboxGroup.prototype.cst.TEXT_COLOR, '#666666,#008cff').toString().split(','); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupCheckboxGroup.prototype.cst.TEXT_SIZE, '17').toString(); + var optionText = mxUtils.getValue(this.style, mxShapeMockupCheckboxGroup.prototype.cst.MAIN_TEXT, 'Option 1').toString().split(','); + var optionNum = optionText.length; + var buttonSize = 15; + var lineH = Math.max(fontSize * 1.5, buttonSize); + var maxTextWidth = 0; + var selected = -1; + var labelOffset = 2.5; + var minH = optionNum * lineH; + var trueH = Math.max(h, minH); + + for (var i = 0; i < optionNum; i++) { + var currText = optionText[i]; + + if (currText.charAt(0) === mxShapeMockupCheckboxGroup.prototype.cst.SELECTED) { + currText = optionText[i].substring(1); + selected = i; + } + + var currWidth = mxUtils.getSizeForString(currText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxTextWidth) { + maxTextWidth = currWidth; + } + } + + var minW = 2 * labelOffset + maxTextWidth + 2 * buttonSize; + var trueW = Math.max(w, minW); + c.rect(0, 0, trueW, trueH); + c.fillAndStroke(); + c.setShadow(false); + c.setFontSize(fontSize); + + for (var i = 0; i < optionNum; i++) { + var currHeight = (i * lineH + lineH * 0.5) * trueH / minH; + var currText = optionText[i]; + + if (currText.charAt(0) === mxShapeMockupCheckboxGroup.prototype.cst.SELECTED) { + c.setFontColor(fontColor[1]); + currText = optionText[i].substring(1); + selected = i; + } else { + c.setFontColor(fontColor[0]); + } + + c.text(buttonSize * 2 + labelOffset, currHeight, 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var iconX = buttonSize * 0.5; + var iconY = currHeight - buttonSize * 0.5; + c.setFillColor('#dddddd'); + c.setStrokeColor('#999999'); + + if (selected === i) { + c.setGradient('#aaaaaa', '#666666', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + c.setStrokeColor('#333333'); + c.begin(); + c.moveTo(iconX + buttonSize * 0.25, iconY + buttonSize * 0.5); + c.lineTo(iconX + buttonSize * 0.5, iconY + buttonSize * 0.75); + c.lineTo(iconX + buttonSize * 0.75, iconY + buttonSize * 0.25); + c.stroke(); + } else { + c.setGradient('#eeeeee', '#cccccc', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + } + + selected = -1; + } +}; + +mxCellRenderer.registerShape(mxShapeMockupCheckboxGroup.prototype.cst.SHAPE_CHECKBOX_GROUP, mxShapeMockupCheckboxGroup); + +function mxShapeMockupRadioGroup(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupRadioGroup, mxShape); +mxShapeMockupRadioGroup.prototype.cst = { + MAIN_TEXT: 'mainText', + TEXT_SIZE: 'textSize', + TEXT_COLOR: 'textColor', + SELECTED: '+', + SHAPE_RADIO_GROUP: 'mxgraph.mockup.forms.radioGroup' +}; + +mxShapeMockupRadioGroup.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupRadioGroup.prototype.cst.TEXT_COLOR, '#666666,#008cff').toString().split(','); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupRadioGroup.prototype.cst.TEXT_SIZE, '17').toString(); + var optionText = mxUtils.getValue(this.style, mxShapeMockupRadioGroup.prototype.cst.MAIN_TEXT, 'Option 1').toString().split(','); + var optionNum = optionText.length; + var buttonSize = 15; + var lineH = Math.max(fontSize * 1.5, buttonSize); + var maxTextWidth = 0; + var selected = -1; + var labelOffset = 2.5; + var minH = optionNum * lineH; + var trueH = Math.max(h, minH); + + for (var i = 0; i < optionNum; i++) { + var currText = optionText[i]; + + if (currText.charAt(0) === mxShapeMockupRadioGroup.prototype.cst.SELECTED) { + currText = optionText[i].substring(1); + selected = i; + } + + var currWidth = mxUtils.getSizeForString(currText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxTextWidth) { + maxTextWidth = currWidth; + } + } + + var minW = 2 * labelOffset + maxTextWidth + 2 * buttonSize; + var trueW = Math.max(w, minW); + c.rect(0, 0, trueW, trueH); + c.fillAndStroke(); + c.setShadow(false); + c.setFontSize(fontSize); + + for (var i = 0; i < optionNum; i++) { + var currHeight = (i * lineH + lineH * 0.5) * trueH / minH; + var currText = optionText[i]; + + if (currText.charAt(0) === mxShapeMockupRadioGroup.prototype.cst.SELECTED) { + c.setFontColor(fontColor[1]); + currText = optionText[i].substring(1); + selected = i; + } else { + c.setFontColor(fontColor[0]); + } + + c.text(buttonSize * 2 + labelOffset, currHeight, 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var iconX = buttonSize * 0.5; + var iconY = currHeight - buttonSize * 0.5; + c.setStrokeColor('#999999'); + + if (selected === i) { + c.setGradient('#aaaaaa', '#666666', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + c.setFillColor('#333333'); + c.setStrokeColor('#333333'); + c.ellipse(iconX + buttonSize * 0.25, iconY + buttonSize * 0.25, buttonSize * 0.5, buttonSize * 0.5); + c.fillAndStroke(); + } else { + c.setGradient('#eeeeee', '#cccccc', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + } + } +}; + +mxCellRenderer.registerShape(mxShapeMockupRadioGroup.prototype.cst.SHAPE_RADIO_GROUP, mxShapeMockupRadioGroup); + +function mxShapeMockupColorPicker(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupColorPicker, mxShape); +mxShapeMockupColorPicker.prototype.cst = { + COLOR: 'chosenColor', + SHAPE_COLOR_PICKER: 'mxgraph.mockup.forms.colorPicker' +}; +mxShapeMockupColorPicker.prototype.customProperties = [{ + name: 'chosenColor', + dispName: 'Current Color', + type: 'color' +}]; + +mxShapeMockupColorPicker.prototype.paintVertexShape = function (c, x, y, w, h) { + var chosenColor = mxUtils.getValue(this.style, mxShapeMockupColorPicker.prototype.cst.COLOR, '#aaddff'); + c.translate(x, y); + c.setStrokeColor('#999999'); + c.roundrect(0, 0, w, h, w * 0.05, h * 0.05); + c.fillAndStroke(); + c.setShadow(false); + c.setFillColor(chosenColor); + c.rect(w * 0.1, h * 0.1, w * 0.8, h * 0.8); + c.fill(); + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(w * 0.75, h * 0.75); + c.lineTo(w * 0.75, h); + c.lineTo(w * 0.95, h); + c.arcTo(w * 0.05, h * 0.05, 0, 0, 0, w, h * 0.95); + c.lineTo(w, h * 0.75); + c.close(); + c.fill(); + c.setFillColor('#999999'); + c.begin(); + c.moveTo(w * 0.77, h * 0.77); + c.lineTo(w * 0.875, h * 0.98); + c.lineTo(w * 0.98, h * 0.77); + c.close(); + c.fill(); + c.roundrect(0, 0, w, h, w * 0.05, h * 0.05); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupColorPicker.prototype.cst.SHAPE_COLOR_PICKER, mxShapeMockupColorPicker); + +function mxShapeMockupComboBox(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupComboBox, mxShape); +mxShapeMockupComboBox.prototype.cst = { + MAIN_TEXT: 'mainText', + FILL_COLOR2: 'fillColor2', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize', + SHAPE_COMBO_BOX: 'mxgraph.mockup.forms.comboBox' +}; +mxShapeMockupComboBox.prototype.customProperties = [{ + name: 'fillColor2', + dispName: 'Fill2 Color', + type: 'color' +}]; + +mxShapeMockupComboBox.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); + this.mainText(c, x, y, w, h); +}; + +mxShapeMockupComboBox.prototype.background = function (c, x, y, w, h) { + c.setFillColor('#ffffff'); + c.roundrect(0, 0, w, h, 5, 5); + c.fillAndStroke(); +}; + +mxShapeMockupComboBox.prototype.foreground = function (c, x, y, w, h) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupComboBox.prototype.cst.FILL_COLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, w - 30, 0, 30, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(w - 30, 0); + c.lineTo(w - 5, 0); + c.arcTo(5, 5, 0, 0, 1, w, 5); + c.lineTo(w, h - 5); + c.arcTo(5, 5, 0, 0, 1, w - 5, h); + c.lineTo(w - 30, h); + c.close(); + c.fillAndStroke(); + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(w - 22, h * 0.5 - 5); + c.lineTo(w - 15, h * 0.5 + 5); + c.lineTo(w - 8, h * 0.5 - 5); + c.fill(); +}; + +mxShapeMockupComboBox.prototype.mainText = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, mxShapeMockupComboBox.prototype.cst.MAIN_TEXT, 'Main Text'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupComboBox.prototype.cst.TEXT_COLOR, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupComboBox.prototype.cst.TEXT_SIZE, '17').toString(); + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupComboBox.prototype.cst.SHAPE_COMBO_BOX, mxShapeMockupComboBox); + +function mxShapeMockupSpinner(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupSpinner, mxShape); +mxShapeMockupSpinner.prototype.cst = { + LAYOUT: 'spinLayout', + SPINNER_STYLE: 'spinStyle', + ADJ_STYLE: 'adjStyle', + LAYOUT_RIGHT: 'right', + LAYOUT_LEFT: 'left', + LAYOUT_TOP: 'top', + LAYOUT_BOTTOM: 'bottom', + LAYOUT_VERTICAL: 'vertical', + LAYOUT_HORIZONTAL: 'horizontal', + SPINNER_MERGED: 'merged', + SPINNER_NORMAL: 'normal', + ADJ_TRIANGLE: 'triangle', + ADJ_PLUSMINUS: 'plusMinus', + ADJ_ARROW: 'arrow', + MAIN_TEXT: 'mainText', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize', + SHAPE_SPINNER: 'mxgraph.mockup.forms.spinner' +}; +mxShapeMockupSpinner.prototype.customProperties = [{ + name: 'spinLayout', + dispName: 'Layout', + type: 'enum', + enumList: [{ + val: 'right', + dispName: 'Right' + }, { + val: 'left', + dispName: 'Left' + }, { + val: 'top', + dispName: 'Top' + }, { + val: 'bottom', + dispName: 'Bottom' + }, { + val: 'vertical', + dispName: 'Vertical' + }, { + val: 'horizontal', + dispName: 'Horizontal' + }] +}, { + name: 'spinStyle', + dispName: 'Spinner Style', + type: 'enum', + enumList: [{ + val: 'merged', + dispName: 'Merged' + }, { + val: 'normal', + dispName: 'Normal' + }] +}, { + name: 'adjStyle', + dispName: 'Button Style', + type: 'enum', + enumList: [{ + val: 'triangle', + dispName: 'Triangle' + }, { + val: 'plusMinus', + dispName: '+/-' + }, { + val: 'arrow', + dispName: 'Arrow' + }] +}]; + +mxShapeMockupSpinner.prototype.paintVertexShape = function (c, x, y, w, h) { + var spinnerLayout = mxUtils.getValue(this.style, mxShapeMockupSpinner.prototype.cst.LAYOUT, mxShapeMockupSpinner.prototype.cst.LAYOUT_RIGHT); + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h, spinnerLayout); + this.mainText(c, w, h, spinnerLayout); +}; + +mxShapeMockupSpinner.prototype.background = function (c, w, h) { + c.setFillColor('#ffffff'); + c.roundrect(0, 0, w, h, 10, 10); + c.fillAndStroke(); +}; + +mxShapeMockupSpinner.prototype.foreground = function (c, w, h, spinnerLayout) { + var spinnerStyle = mxUtils.getValue(this.style, mxShapeMockupSpinner.prototype.cst.SPINNER_STYLE, mxShapeMockupSpinner.prototype.cst.SPINNER_NORMAL); + var adjStyle = mxUtils.getValue(this.style, mxShapeMockupSpinner.prototype.cst.ADJ_STYLE, mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + c.setFillColor(fillColor); + + if (spinnerStyle === mxShapeMockupSpinner.prototype.cst.SPINNER_NORMAL) { + if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_RIGHT) { + c.begin(); + c.moveTo(w - 20, 0); + c.lineTo(w - 20, h); + c.moveTo(w - 20, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_LEFT) { + c.begin(); + c.moveTo(20, 0); + c.lineTo(20, h); + c.moveTo(20, h * 0.5); + c.lineTo(0, h * 0.5); + c.stroke(); + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_TOP) { + c.begin(); + c.moveTo(0, 15); + c.lineTo(w, 15); + c.moveTo(w * 0.5, 15); + c.lineTo(w * 0.5, 0); + c.stroke(); + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_BOTTOM) { + c.begin(); + c.moveTo(0, h - 15); + c.lineTo(w, h - 15); + c.moveTo(w * 0.5, h - 15); + c.lineTo(w * 0.5, h); + c.stroke(); + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_VERTICAL) { + c.begin(); + c.moveTo(0, 15); + c.lineTo(w, 15); + c.moveTo(0, h - 15); + c.lineTo(w, h - 15); + c.stroke(); + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_HORIZONTAL) { + c.begin(); + c.moveTo(20, 0); + c.lineTo(20, h); + c.moveTo(w - 20, 0); + c.lineTo(w - 20, h); + c.stroke(); + } + } + + c.setStrokeColor(fillColor); + + if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_RIGHT) { + if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) { + c.begin(); + c.moveTo(w - 14, h * 0.25 + 4.5); + c.lineTo(w - 10, h * 0.25 - 2.5); + c.lineTo(w - 6, h * 0.25 + 4.5); + c.close(); + c.fillAndStroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) { + c.begin(); + c.moveTo(w - 10, h * 0.25 - 4); + c.lineTo(w - 10, h * 0.25 + 4); + c.moveTo(w - 14, h * 0.25); + c.lineTo(w - 6, h * 0.25); + c.stroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) { + c.begin(); + c.moveTo(w - 14, h * 0.25 + 1.5); + c.lineTo(w - 10, h * 0.25 - 2.5); + c.lineTo(w - 6, h * 0.25 + 1.5); + c.close(); + c.moveTo(w - 10, h * 0.25 + 4.5); + c.lineTo(w - 10, h * 0.25 - 2.5); + c.fillAndStroke(); + } + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_LEFT) { + if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) { + c.begin(); + c.moveTo(14, h * 0.25 + 4.5); + c.lineTo(10, h * 0.25 - 2.5); + c.lineTo(6, h * 0.25 + 4.5); + c.close(); + c.fillAndStroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) { + c.begin(); + c.moveTo(10, h * 0.25 - 4); + c.lineTo(10, h * 0.25 + 4); + c.moveTo(14, h * 0.25); + c.lineTo(6, h * 0.25); + c.stroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) { + c.begin(); + c.moveTo(14, h * 0.25 + 1.5); + c.lineTo(10, h * 0.25 - 2.5); + c.lineTo(6, h * 0.25 + 1.5); + c.close(); + c.moveTo(10, h * 0.25 + 4.5); + c.lineTo(10, h * 0.25 - 2.5); + c.fillAndStroke(); + } + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_TOP) { + if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) { + c.begin(); + c.moveTo(w * 0.75 + 4, 12); + c.lineTo(w * 0.75, 5); + c.lineTo(w * 0.75 - 4, 12); + c.close(); + c.fillAndStroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) { + c.begin(); + c.moveTo(w * 0.75, 3.5); + c.lineTo(w * 0.75, 11.5); + c.moveTo(w * 0.75 + 4, 7.5); + c.lineTo(w * 0.75 - 4, 7.5); + c.stroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) { + c.begin(); + c.moveTo(w * 0.75 + 4, 9); + c.lineTo(w * 0.75, 5); + c.lineTo(w * 0.75 - 4, 9); + c.close(); + c.moveTo(w * 0.75, 12); + c.lineTo(w * 0.75, 5); + c.fillAndStroke(); + } + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_BOTTOM) { + if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) { + c.begin(); + c.moveTo(w * 0.75 + 4, h - 5); + c.lineTo(w * 0.75, h - 12); + c.lineTo(w * 0.75 - 4, h - 5); + c.close(); + c.fillAndStroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) { + c.begin(); + c.moveTo(w * 0.75, h - 3.5); + c.lineTo(w * 0.75, h - 11.5); + c.moveTo(w * 0.75 + 4, h - 7.5); + c.lineTo(w * 0.75 - 4, h - 7.5); + c.stroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) { + c.begin(); + c.moveTo(w * 0.75 + 4, h - 6); + c.lineTo(w * 0.75, h - 10); + c.lineTo(w * 0.75 - 4, h - 6); + c.close(); + c.moveTo(w * 0.75, h - 3); + c.lineTo(w * 0.75, h - 10); + c.fillAndStroke(); + } + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_VERTICAL) { + if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) { + c.begin(); + c.moveTo(w * 0.5 + 4, 12); + c.lineTo(w * 0.5, 5); + c.lineTo(w * 0.5 - 4, 12); + c.close(); + c.fillAndStroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) { + c.begin(); + c.moveTo(w * 0.5, 3.5); + c.lineTo(w * 0.5, 11.5); + c.moveTo(w * 0.5 + 4, 7.5); + c.lineTo(w * 0.5 - 4, 7.5); + c.stroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) { + c.begin(); + c.moveTo(w * 0.5 + 4, 9); + c.lineTo(w * 0.5, 5); + c.lineTo(w * 0.5 - 4, 9); + c.close(); + c.moveTo(w * 0.5, 12); + c.lineTo(w * 0.5, 5); + c.fillAndStroke(); + } + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_HORIZONTAL) { + if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) { + c.begin(); + c.moveTo(w - 6, h * 0.5 + 4.5); + c.lineTo(w - 10, h * 0.5 - 2.5); + c.lineTo(w - 14, h * 0.5 + 4.5); + c.close(); + c.fillAndStroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) { + c.begin(); + c.moveTo(w - 10, h * 0.5 - 4); + c.lineTo(w - 10, h * 0.5 + 4); + c.moveTo(w - 14, h * 0.5); + c.lineTo(w - 6, h * 0.5); + c.stroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) { + c.begin(); + c.moveTo(w - 14, h * 0.5 + 1.5); + c.lineTo(w - 10, h * 0.5 - 2.5); + c.lineTo(w - 6, h * 0.5 + 1.5); + c.close(); + c.moveTo(w - 10, h * 0.5 + 4.5); + c.lineTo(w - 10, h * 0.5 - 2.5); + c.fillAndStroke(); + } + } + + if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_RIGHT) { + if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) { + c.begin(); + c.moveTo(w - 14, h * 0.75 - 4.5); + c.lineTo(w - 10, h * 0.75 + 2.5); + c.lineTo(w - 6, h * 0.75 - 4.5); + c.close(); + c.fillAndStroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) { + c.begin(); + c.moveTo(w - 14, h * 0.75); + c.lineTo(w - 6, h * 0.75); + c.stroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) { + c.begin(); + c.moveTo(w - 14, h * 0.75 - 1.5); + c.lineTo(w - 10, h * 0.75 + 2.5); + c.lineTo(w - 6, h * 0.75 - 1.5); + c.close(); + c.moveTo(w - 10, h * 0.75 - 4.5); + c.lineTo(w - 10, h * 0.75 + 2.5); + c.fillAndStroke(); + } + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_LEFT) { + if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) { + c.begin(); + c.moveTo(14, h * 0.75 - 4.5); + c.lineTo(10, h * 0.75 + 2.5); + c.lineTo(6, h * 0.75 - 4.5); + c.close(); + c.fillAndStroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) { + c.begin(); + c.moveTo(14, h * 0.75); + c.lineTo(6, h * 0.75); + c.stroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) { + c.begin(); + c.moveTo(14, h * 0.75 - 1.5); + c.lineTo(10, h * 0.75 + 2.5); + c.lineTo(6, h * 0.75 - 1.5); + c.close(); + c.moveTo(10, h * 0.75 - 4.5); + c.lineTo(10, h * 0.75 + 2.5); + c.fillAndStroke(); + } + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_TOP) { + if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) { + c.begin(); + c.moveTo(w * 0.25 + 4, 5); + c.lineTo(w * 0.25, 12); + c.lineTo(w * 0.25 - 4, 5); + c.close(); + c.fillAndStroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) { + c.begin(); + c.moveTo(w * 0.25 + 4, 7.5); + c.lineTo(w * 0.25 - 4, 7.5); + c.stroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) { + c.begin(); + c.moveTo(w * 0.25 + 4, 6); + c.lineTo(w * 0.25, 10); + c.lineTo(w * 0.25 - 4, 6); + c.close(); + c.moveTo(w * 0.25, 3); + c.lineTo(w * 0.25, 10); + c.fillAndStroke(); + } + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_BOTTOM) { + if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) { + c.begin(); + c.moveTo(w * 0.25 + 4, h - 12); + c.lineTo(w * 0.25, h - 5); + c.lineTo(w * 0.25 - 4, h - 12); + c.close(); + c.fillAndStroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) { + c.begin(); + c.moveTo(w * 0.25 + 4, h - 7.5); + c.lineTo(w * 0.25 - 4, h - 7.5); + c.stroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) { + c.begin(); + c.moveTo(w * 0.25 + 4, h - 9); + c.lineTo(w * 0.25, h - 5); + c.lineTo(w * 0.25 - 4, h - 9); + c.close(); + c.moveTo(w * 0.25, h - 12); + c.lineTo(w * 0.25, h - 5); + c.fillAndStroke(); + } + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_VERTICAL) { + if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) { + c.begin(); + c.moveTo(w * 0.5 + 4, h - 12); + c.lineTo(w * 0.5, h - 5); + c.lineTo(w * 0.5 - 4, h - 12); + c.close(); + c.fillAndStroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) { + c.begin(); + c.moveTo(w * 0.5 + 4, h - 7.5); + c.lineTo(w * 0.5 - 4, h - 7.5); + c.stroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) { + c.begin(); + c.moveTo(w * 0.5 + 4, h - 9); + c.lineTo(w * 0.5, h - 5); + c.lineTo(w * 0.5 - 4, h - 9); + c.close(); + c.moveTo(w * 0.5, h - 12); + c.lineTo(w * 0.5, h - 5); + c.fillAndStroke(); + } + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_HORIZONTAL) { + if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) { + c.begin(); + c.moveTo(6, h * 0.5 - 4.5); + c.lineTo(10, h * 0.5 + 2.5); + c.lineTo(14, h * 0.5 - 4.5); + c.close(); + c.fillAndStroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) { + c.begin(); + c.moveTo(14, h * 0.5); + c.lineTo(6, h * 0.5); + c.stroke(); + } else if (adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) { + c.begin(); + c.moveTo(14, h * 0.5 - 1.5); + c.lineTo(10, h * 0.5 + 2.5); + c.lineTo(6, h * 0.5 - 1.5); + c.close(); + c.moveTo(10, h * 0.5 - 4.5); + c.lineTo(10, h * 0.5 + 2.5); + c.fillAndStroke(); + } + } +}; + +mxShapeMockupSpinner.prototype.mainText = function (c, w, h, spinnerLayout) { + var spinnerText = mxUtils.getValue(this.style, mxShapeMockupSpinner.prototype.cst.MAIN_TEXT, '100').toString(); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupSpinner.prototype.cst.TEXT_SIZE, '17'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupSpinner.prototype.cst.TEXT_COLOR, '#666666'); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + + if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_RIGHT) { + c.text((w - 20) * 0.5, h * 0.5, 0, 0, spinnerText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_LEFT) { + c.text((w + 20) * 0.5, h * 0.5, 0, 0, spinnerText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_TOP) { + c.text(w * 0.5, (h + 15) * 0.5, 0, 0, spinnerText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_BOTTOM) { + c.text(w * 0.5, (h - 15) * 0.5, 0, 0, spinnerText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_VERTICAL) { + c.text(w * 0.5, h * 0.5, 0, 0, spinnerText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_HORIZONTAL) { + c.text(w * 0.5, h * 0.5, 0, 0, spinnerText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupSpinner.prototype.cst.SHAPE_SPINNER, mxShapeMockupSpinner); + +function mxShapeMockupMenuBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupMenuBar, mxShape); +mxShapeMockupMenuBar.prototype.cst = { + MAIN_TEXT: 'mainText', + SHAPE_MENU_BAR: 'mxgraph.mockup.forms.menuBar', + TEXT_COLOR: 'textColor', + TEXT_COLOR2: 'textColor2', + STROKE_COLOR2: 'strokeColor2', + FILL_COLOR2: 'fillColor2', + SELECTED: '+', + TEXT_SIZE: 'textSize' +}; + +mxShapeMockupMenuBar.prototype.paintVertexShape = function (c, x, y, w, h) { + var textStrings = mxUtils.getValue(this.style, mxShapeMockupMenuBar.prototype.cst.MAIN_TEXT, '+Menu 1, Menu 2, Menu 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupMenuBar.prototype.cst.TEXT_COLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxShapeMockupMenuBar.prototype.cst.TEXT_COLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupMenuBar.prototype.cst.TEXT_SIZE, '17').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var separatorColor = mxUtils.getValue(this.style, mxShapeMockupMenuBar.prototype.cst.STROKE_COLOR2, '#c4c4c4'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var selectedFillColor = mxUtils.getValue(this.style, mxShapeMockupMenuBar.prototype.cst.FILL_COLOR2, '#008cff'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var selectedButton = -1; + var rSize = 10; + var labelOffset = 5; + + for (var i = 0; i < buttonNum; i++) { + var buttonText = textStrings[i]; + + if (buttonText.charAt(0) === mxShapeMockupMenuBar.prototype.cst.SELECTED) { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + buttonWidths[i] = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 20); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + c.translate(x, y); + this.background(c, trueW, trueH, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton); + c.setShadow(false); + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) { + if (i === selectedButton) { + c.setFontColor(selectedFontColor); + } else { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeMockupMenuBar.prototype.background = function (c, w, h, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton) { + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.setStrokeColor(separatorColor); + c.begin(); + + for (var i = 1; i < buttonNum; i++) { + if (i !== selectedButton && i !== selectedButton + 1) { + var currWidth = 0; + + for (var j = 0; j < i; j++) { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth = currWidth * w / minW; + c.moveTo(currWidth, 0); + c.lineTo(currWidth, h); + } + } + + c.stroke(); + + if (selectedButton !== -1) { + var buttonLeft = 0; + c.setFillColor(selectedFillColor); + + for (var i = 0; i < selectedButton; i++) { + buttonLeft += buttonWidths[i] + 2 * labelOffset; + } + + buttonLeft = buttonLeft * w / minW; + var buttonRight = (buttonWidths[selectedButton] + 2 * labelOffset) * w / minW; + buttonRight += buttonLeft; + c.rect(buttonLeft, 0, buttonRight - buttonLeft, h); + c.fill(); + } + + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.rect(0, 0, w, h); + c.stroke(); +}; + +mxShapeMockupMenuBar.prototype.buttonText = function (c, w, h, textString, buttonWidth, fontSize, minW, trueW) { + if (textString.charAt(0) === mxShapeMockupMenuBar.prototype.cst.SELECTED) { + textString = textString.substring(1); + } + + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, h * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupMenuBar.prototype.cst.SHAPE_MENU_BAR, mxShapeMockupMenuBar); + +function mxShapeMockupHorSlider(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupHorSlider, mxShape); +mxShapeMockupHorSlider.prototype.cst = { + STYLE: 'sliderStyle', + SLIDER_BASIC: 'basic', + SLIDER_FANCY: 'fancy', + SLIDER_POS: 'sliderPos', + HANDLE_TRIANGLE: 'triangle', + HANDLE_CIRCLE: 'circle', + HANDLE_HANDLE: 'handle', + HANDLE_STYLE: 'handleStyle', + FILL_COLOR2: 'fillColor2', + SHAPE_HOR_SLIDER: 'mxgraph.mockup.forms.horSlider' +}; +mxShapeMockupHorSlider.prototype.customProperties = [{ + name: 'sliderStyle', + dispName: 'Slider Style', + type: 'enum', + enumList: [{ + val: 'basic', + dispName: 'Basic' + }, { + val: 'fancy', + dispName: 'Fancy' + }] +}, { + name: 'handleStyle', + dispName: 'Handle Style', + type: 'enum', + enumList: [{ + val: 'triangle', + dispName: 'Triangle' + }, { + val: 'circle', + dispName: 'Circle' + }, { + val: 'handle', + dispName: 'Handle' + }] +}, { + name: 'sliderPos', + dispName: 'Handle Position', + type: 'float' +}, { + name: 'fillColor2', + dispName: 'Fill2 Color', + type: 'color' +}]; + +mxShapeMockupHorSlider.prototype.paintVertexShape = function (c, x, y, w, h) { + var sliderStyle = mxUtils.getValue(this.style, mxShapeMockupHorSlider.prototype.cst.STYLE, mxShapeMockupHorSlider.prototype.cst.SLIDER_BASIC); + var rSize = 5; + c.translate(x, y); + this.background(c, w, h, rSize, sliderStyle); + c.setShadow(false); + this.foreground(c, w, h, rSize, sliderStyle); + this.sliderPos = 20; +}; + +mxShapeMockupHorSlider.prototype.background = function (c, w, h, rSize, sliderStyle) { + if (sliderStyle === mxShapeMockupHorSlider.prototype.cst.SLIDER_BASIC) { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } else if (sliderStyle === mxShapeMockupHorSlider.prototype.cst.SLIDER_FANCY) { + c.roundrect(0, h * 0.5 - rSize, w, 2 * rSize, rSize, rSize); + c.fillAndStroke(); + } +}; + +mxShapeMockupHorSlider.prototype.foreground = function (c, w, h, rSize, sliderStyle) { + var sliderPos = mxUtils.getValue(this.style, mxShapeMockupHorSlider.prototype.cst.SLIDER_POS, '20'); + var handleStyle = mxUtils.getValue(this.style, mxShapeMockupHorSlider.prototype.cst.HANDLE_STYLE, mxShapeMockupHorSlider.prototype.cst.HANDLE_CIRCLE); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupHorSlider.prototype.cst.FILL_COLOR2, '#ddeeff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + sliderPos = Math.min(100, sliderPos); + sliderPos = Math.max(0, sliderPos); + + if (sliderStyle === mxShapeMockupHorSlider.prototype.cst.SLIDER_BASIC) { + c.setStrokeColor(fillColor2); + var barCenterPos = w * sliderPos / 100; + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(barCenterPos, h * 0.5); + c.stroke(); + c.setStrokeColor(strokeColor); + } else if (sliderStyle === mxShapeMockupHorSlider.prototype.cst.SLIDER_FANCY) { + var barCenterPos = 10 + (w - 10) * sliderPos / 100; + c.setFillColor(fillColor2); + c.roundrect(0, h * 0.5 - rSize, barCenterPos, 2 * rSize, rSize, rSize); + c.fillAndStroke(); + c.setFillColor(fillColor); + } + + var handleCenterPos = 5 + (w - 10) * sliderPos / 100; + + if (handleStyle === mxShapeMockupHorSlider.prototype.cst.HANDLE_CIRCLE) { + c.ellipse(handleCenterPos - 10, h * 0.5 - 10, 20, 20); + c.fillAndStroke(); + } else if (handleStyle === mxShapeMockupHorSlider.prototype.cst.HANDLE_TRIANGLE) { + c.begin(); + c.moveTo(handleCenterPos - 10, h * 0.5 + 10); + c.lineTo(handleCenterPos, h * 0.5 - 10); + c.lineTo(handleCenterPos + 10, h * 0.5 + 10); + c.close(); + c.fillAndStroke(); + } else if (handleStyle === mxShapeMockupHorSlider.prototype.cst.HANDLE_HANDLE) { + c.begin(); + c.moveTo(handleCenterPos - 7, h * 0.5 + 10); + c.lineTo(handleCenterPos - 7, h * 0.5); + c.lineTo(handleCenterPos, h * 0.5 - 10); + c.lineTo(handleCenterPos + 7, h * 0.5); + c.lineTo(handleCenterPos + 7, h * 0.5 + 10); + c.close(); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupHorSlider.prototype.cst.SHAPE_HOR_SLIDER, mxShapeMockupHorSlider); + +Graph.handleFactory[mxShapeMockupHorSlider.prototype.cst.SHAPE_HOR_SLIDER] = function (state) { + var handles = [Graph.createHandle(state, ['sliderPos'], function (bounds) { + var sliderPos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'sliderPos', this.sliderPos)))); + return new mxPoint(bounds.x + (bounds.width - 10) * sliderPos / bounds.width / 100 * bounds.width + 5, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['sliderPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 1000; + })]; + return handles; +}; + +function mxShapeMockupListBox(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupListBox, mxShape); +mxShapeMockupListBox.prototype.cst = { + MAIN_TEXT: 'mainText', + SUB_TEXT: 'subText', + BUTTON_TEXT: 'buttonText', + TEXT_SIZE: 'textSize', + TEXT_COLOR: 'textColor', + STROKE_COLOR2: 'strokeColor2', + STROKE_COLOR3: 'strokeColor3', + SELECTED_COLOR: 'selectedColor', + SELECTED: '+', + SHAPE_LIST_BOX: 'mxgraph.mockup.forms.listBox' +}; + +mxShapeMockupListBox.prototype.paintVertexShape = function (c, x, y, w, h) { + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupListBox.prototype.cst.TEXT_SIZE, '17').toString(); + var selectedButton = -1; + var maxShapeWidth = w; + var subText = mxUtils.getValue(this.style, mxShapeMockupListBox.prototype.cst.SUB_TEXT, 'Sub Text').toString().split(','); + + for (var i = 0; i < subText.length; i++) { + var itemText = subText[i]; + + if (itemText.charAt(0) === mxShapeMockupListBox.prototype.cst.SELECTED) { + itemText = subText[i].substring(1); + selectedButton = i; + } + + var currWidth = mxUtils.getSizeForString(itemText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxShapeWidth) { + maxShapeWidth = currWidth; + } + } + + c.translate(x, y); + w = Math.min(w, maxShapeWidth); + h = Math.max(h, 30 + subText.length * fontSize * 1.5); + this.background(c, w, h, bgColor, frameColor); + c.setShadow(false); + this.foreground(c, w, h, frameColor, selectedButton, subText, fontSize); +}; + +mxShapeMockupListBox.prototype.background = function (c, w, h, bgColor, frameColor) { + c.setFillColor(bgColor); + c.setStrokeColor(frameColor); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupListBox.prototype.foreground = function (c, w, h, frameColor, selectedButton, subText, fontSize) { + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + var selectedColor = mxUtils.getValue(this.style, mxShapeMockupListBox.prototype.cst.SELECTED_COLOR, '#ddeeff'); + + if (selectedButton !== -1) { + c.setFillColor(selectedColor); + c.rect(0, 30 + selectedButton * fontSize * 1.5, w, fontSize * 1.5); + c.fill(); + } + + c.begin(); + c.moveTo(0, 30); + c.lineTo(w, 30); + c.stroke(); + var windowTitle = mxUtils.getValue(this.style, mxShapeMockupListBox.prototype.cst.MAIN_TEXT, 'Window Title').toString(); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupListBox.prototype.cst.TEXT_COLOR, '#666666,#008cff').toString().split(','); + c.setFontColor(fontColor[1]); + c.setFontSize(fontSize); + c.text(10, 15, 0, 0, windowTitle, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontColor(fontColor[0]); + + for (var i = 0; i < subText.length; i++) { + var currText = subText[i]; + + if (currText.charAt(0) === mxShapeMockupListBox.prototype.cst.SELECTED) { + currText = subText[i].substring(1); + } + + c.text(10, 30 + fontSize * (i * 1.5 + 0.75), 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + c.rect(0, 0, w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupListBox.prototype.cst.SHAPE_LIST_BOX, mxShapeMockupListBox); + +function mxShapeMockupPwField(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupPwField, mxShape); +mxShapeMockupPwField.prototype.cst = { + MAIN_TEXT: 'mainText', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize', + SHAPE_PW_FIELD: 'mxgraph.mockup.forms.pwField' +}; + +mxShapeMockupPwField.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupPwField.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupPwField.prototype.foreground = function (c, w, h) { + var mainText = mxUtils.getValue(this.style, mxShapeMockupPwField.prototype.cst.MAIN_TEXT, '******'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupPwField.prototype.cst.TEXT_COLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupPwField.prototype.cst.TEXT_SIZE, '17'); + c.setFontColor(fontColor); + c.setFontSize(fontSize); + c.text(5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupPwField.prototype.cst.SHAPE_PW_FIELD, mxShapeMockupPwField); + +function mxShapeMockupSplitter(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupSplitter, mxShape); +mxShapeMockupSplitter.prototype.cst = { + MAIN_TEXT: 'mainText', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize', + SHAPE_SPLITTER: 'mxgraph.mockup.forms.splitter' +}; + +mxShapeMockupSplitter.prototype.paintVertexShape = function (c, x, y, w, h) { + w = Math.max(w, 35); + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupSplitter.prototype.background = function (c, w, h) { + c.begin(); + c.moveTo(0, h * 0.5 - 5); + c.lineTo(w, h * 0.5 - 5); + c.lineTo(w, h * 0.5 + 5); + c.lineTo(0, h * 0.5 + 5); + c.close(); + c.fill(); +}; + +mxShapeMockupSplitter.prototype.foreground = function (c, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + c.begin(); + c.moveTo(0, h * 0.5 - 5); + c.lineTo(w, h * 0.5 - 5); + c.moveTo(w, h * 0.5 + 5); + c.lineTo(0, h * 0.5 + 5); + c.stroke(); + c.setFillColor(strokeColor); + c.ellipse(w * 0.5 - 17, h * 0.5 - 2, 4, 4); + c.fill(); + c.ellipse(w * 0.5 - 2, h * 0.5 - 2, 4, 4); + c.fill(); + c.ellipse(w * 0.5 + 13, h * 0.5 - 2, 4, 4); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupSplitter.prototype.cst.SHAPE_SPLITTER, mxShapeMockupSplitter); + +function mxShapeMockupWedgeBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupWedgeBar, mxShape); +mxShapeMockupWedgeBar.prototype.cst = { + BLOCK: 'block', + CONE: 'cone', + HALF_CONE: 'halfCone', + ROUND: 'round', + TEXT_SIZE: 'textSize', + TAB_NAMES: 'tabs', + TAB_STYLE: 'tabStyle', + STYLE_FILLCOLOR2: 'fillColor2', + TEXT_COLOR: 'textColor', + SEL_TEXT_COLOR: 'textColor2', + SHAPE_WEDGE_BAR: 'mxgraph.mockup.forms.wedgeBar' +}; + +mxShapeMockupWedgeBar.prototype.paintVertexShape = function (c, x, y, w, h) { + var fontSize = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.TEXT_SIZE, '17').toString(); + var tabNames = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.TAB_NAMES, 'Tab 1,+Tab 2,Tab 3').toString().split(','); + var tabH = fontSize * 1.5; + var startOffset = 10; + var tabOffset = 5; + var labelOffset = 10; + var tabCount = tabNames.length; + var minW = 2 * startOffset + (tabCount - 1) * tabOffset + tabCount * 2 * labelOffset; + var rSize = 5; + var labelWidths = new Array(); + var selectedTab = -1; + + for (var i = 0; i < tabCount; i++) { + var currLabel = tabNames[i]; + + if (currLabel.charAt(0) === '+') { + currLabel = currLabel.substring(1); + selectedTab = i; + } + + var currW = mxUtils.getSizeForString(currLabel, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currW === 0) { + labelWidths[i] = 42; + } else { + labelWidths[i] = currW; + } + + minW = minW + labelWidths[i]; + } + + w = Math.max(w, minW); + h = Math.max(h, tabH + rSize); + c.translate(x, y); + c.setShadow(false); + this.backTabs(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab); + this.focusTab(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab); + this.tabText(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab, tabNames); +}; + +mxShapeMockupWedgeBar.prototype.backTabs = function (c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab) { + var tabStyle = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.TAB_STYLE, mxShapeMockupWedgeBar.prototype.cst.BLOCK); + var currW = startOffset; + + for (var i = 0; i < tabCount; i++) { + var tabW = labelWidths[i] + 2 * labelOffset; + + if (selectedTab !== i) { + if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.BLOCK) { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW, 0); + c.lineTo(currW + tabW, 0); + c.lineTo(currW + tabW, tabH); + } else if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.CONE) { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW - labelOffset * 0.5, 0); + c.lineTo(currW + tabW, tabH); + } else if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.HALF_CONE) { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW, 0); + c.lineTo(currW + tabW, tabH); + } else if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.ROUND) { + c.begin(); + c.moveTo(currW - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 0, currW, tabH - rSize); + c.lineTo(currW, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, currW + rSize, 0); + c.lineTo(currW + tabW - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, currW + tabW, rSize); + c.lineTo(currW + tabW, tabH - rSize); + c.arcTo(rSize, rSize, 0, 0, 0, currW + tabW + rSize, tabH); + } + + c.fillAndStroke(); + } + + currW = currW + tabW + tabOffset; + } +}; + +mxShapeMockupWedgeBar.prototype.focusTab = function (c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab) { + var tabStyle = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.TAB_STYLE, mxShapeMockupWedgeBar.prototype.cst.BLOCK); + var selectedFill = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.STYLE_FILLCOLOR2, '#008cff'); + var currW = startOffset; + c.setStrokeColor(selectedFill); + c.setFillColor(selectedFill); + + for (var i = 0; i <= selectedTab; i++) { + var tabW = labelWidths[i] + 2 * labelOffset; + + if (selectedTab === i) { + if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.BLOCK) { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW, 0); + c.lineTo(currW + tabW, 0); + c.lineTo(currW + tabW, tabH); + } else if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.CONE) { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW - labelOffset * 0.5, 0); + c.lineTo(currW + tabW, tabH); + } else if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.HALF_CONE) { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW, 0); + c.lineTo(currW + tabW, tabH); + } else if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.ROUND) { + c.begin(); + c.moveTo(currW - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 0, currW, tabH - rSize); + c.lineTo(currW, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, currW + rSize, 0); + c.lineTo(currW + tabW - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, currW + tabW, rSize); + c.lineTo(currW + tabW, tabH - rSize); + c.arcTo(rSize, rSize, 0, 0, 0, currW + tabW + rSize, tabH); + } + + c.fillAndStroke(); + } + + currW = currW + tabW + tabOffset; + } +}; + +mxShapeMockupWedgeBar.prototype.tabText = function (c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab, tabNames) { + var fontColor = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.TEXT_COLOR, '#666666'); + var selFontColor = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.SEL_TEXT_COLOR, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.TEXT_SIZE, '17').toString(); + c.setFontColor(fontColor); + c.setFontSize(fontSize); + var currW = startOffset; + + for (var i = 0; i < tabCount; i++) { + var currLabel = tabNames[i]; + + if (i === selectedTab) { + c.setFontColor(selFontColor); + } + + if (currLabel.charAt(0) === '+') { + currLabel = currLabel.substring(1); + } + + var tabW = labelWidths[i] + 2 * labelOffset; + c.text(currW + labelOffset, tabH * 0.5, 0, 0, currLabel, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + currW = currW + tabW + tabOffset; + + if (i === selectedTab) { + c.setFontColor(fontColor); + } + } +}; + +mxCellRenderer.registerShape(mxShapeMockupWedgeBar.prototype.cst.SHAPE_WEDGE_BAR, mxShapeMockupWedgeBar); + +function mxShapeMockupSearchBox(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupSearchBox, mxShape); +mxShapeMockupSearchBox.prototype.cst = { + MAIN_TEXT: 'mainText', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize', + STROKE_COLOR2: 'strokeColor2', + SHAPE_SEARCH_BOX: 'mxgraph.mockup.forms.searchBox' +}; +mxShapeMockupSearchBox.prototype.customProperties = [{ + name: 'strokeColor2', + dispName: 'Icon Color', + type: 'color' +}]; + +mxShapeMockupSearchBox.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupSearchBox.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupSearchBox.prototype.foreground = function (c, w, h) { + var mainText = mxUtils.getValue(this.style, mxShapeMockupSearchBox.prototype.cst.MAIN_TEXT, 'Search'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupSearchBox.prototype.cst.TEXT_COLOR, '#666666'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeMockupSearchBox.prototype.cst.STROKE_COLOR2, '#008cff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupSearchBox.prototype.cst.TEXT_SIZE, '17'); + c.setFontColor(fontColor); + c.setFontSize(fontSize); + c.text(5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setStrokeColor(strokeColor2); + c.ellipse(w - 15, h * 0.5 - 8, 10, 10); + c.stroke(); + c.begin(); + c.moveTo(w - 19, h * 0.5 + 9); + c.lineTo(w - 13, h * 0.5 + 1); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupSearchBox.prototype.cst.SHAPE_SEARCH_BOX, mxShapeMockupSearchBox); + +function mxShapeMockupSignIn(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupSignIn, mxShape); +mxShapeMockupSignIn.prototype.cst = { + MAIN_TEXT: 'mainText', + TEXT_COLOR: 'textColor', + TEXT_COLOR2: 'textColor2', + TEXT_SIZE: 'textSize', + TEXT_SIZE2: 'textSize2', + STROKE_COLOR2: 'strokeColor2', + FILL_COLOR2: 'fillColor2', + SHAPE_SIGN_IN: 'mxgraph.mockup.forms.signIn' +}; + +mxShapeMockupSignIn.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupSignIn.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupSignIn.prototype.foreground = function (c, w, h) { + var mainText = mxUtils.getValue(this.style, mxShapeMockupSignIn.prototype.cst.MAIN_TEXT, 'Sign In,User Name:,johndoe,Password:,********,Forgot Password?,New User,SIGN IN,SIGN UP').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupSignIn.prototype.cst.TEXT_COLOR, '#666666'); + var fontColor2 = mxUtils.getValue(this.style, mxShapeMockupSignIn.prototype.cst.TEXT_COLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupSignIn.prototype.cst.TEXT_SIZE, '12'); + var fontSize2 = mxUtils.getValue(this.style, mxShapeMockupSignIn.prototype.cst.TEXT_SIZE2, '15'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeMockupSignIn.prototype.cst.STROKE_COLOR2, '#ddeeff'); + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupSignIn.prototype.cst.FILL_COLOR2, '#66bbff'); + c.setFillColor(fillColor2); + c.roundrect(w * 0.09, h * 0.52, w * 0.36, h * 0.09, 5, 5); + c.fill(); + c.roundrect(w * 0.09, h * 0.84, w * 0.36, h * 0.09, 5, 5); + c.fill(); + c.rect(w * 0.05, h * 0.22, w * 0.75, h * 0.08); + c.stroke(); + c.rect(w * 0.05, h * 0.4, w * 0.75, h * 0.08); + c.stroke(); + c.setStrokeColor(strokeColor2); + c.setStrokeWidth(2); + c.begin(); + c.moveTo(w * 0.05, h * 0.12); + c.lineTo(w * 0.95, h * 0.12); + c.moveTo(w * 0.05, h * 0.72); + c.lineTo(w * 0.95, h * 0.72); + c.stroke(); + c.setFontColor(fontColor); + c.setFontSize(fontSize); + c.text(w * 0.05, h * 0.1, 0, 0, mainText[0], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_BOTTOM, 0, null, 0, 0, 0); + c.text(w * 0.05, h * 0.2, 0, 0, mainText[1], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_BOTTOM, 0, null, 0, 0, 0); + c.text(w * 0.075, h * 0.26, 0, 0, mainText[2], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.05, h * 0.38, 0, 0, mainText[3], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_BOTTOM, 0, null, 0, 0, 0); + c.text(w * 0.075, h * 0.44, 0, 0, mainText[4], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.05, h * 0.8, 0, 0, mainText[6], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setStrokeWidth(1); + c.setFontColor('#9999ff'); + c.setStrokeColor('#9999ff'); + var forgotW = mxUtils.getSizeForString(mainText[5], fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + c.text(w * 0.05, h * 0.7, 0, 0, mainText[5], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_BOTTOM, 0, null, 0, 0, 0); + c.begin(); + c.moveTo(w * 0.05, h * 0.7); + c.lineTo(w * 0.05 + forgotW, h * 0.7); + c.stroke(); + c.setFontColor(fontColor2); + c.setFontStyle(mxConstants.FONT_BOLD); + c.setFontSize(fontSize2); + c.text(w * 0.27, h * 0.565, 0, 0, mainText[7], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.27, h * 0.885, 0, 0, mainText[8], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupSignIn.prototype.cst.SHAPE_SIGN_IN, mxShapeMockupSignIn); + +function mxShapeMockupCalendar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupCalendar, mxShape); +mxShapeMockupCalendar.prototype.cst = { + SHAPE_CALENDAR: 'mxgraph.mockup.forms.calendar', + DAYS: 'days', + SELECTED_DAY: 'selDay', + PREV_DAYS: 'prevDays', + FIRST_DAY: 'firstDay', + START_ON: 'startOn', + DAY_NAMES: 'dayNames', + MAIN_TEXT: 'mainText', + TEXT_SIZE: 'textSize', + TEXT_COLOR: 'textColor', + TEXT_COLOR2: 'textColor2', + STROKE_COLOR2: 'strokeColor2', + FILL_COLOR2: 'fillColor2' +}; + +mxShapeMockupCalendar.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupCalendar.prototype.background = function (c, w, h) { + c.roundrect(0, 0, w, h, w * 0.0312, h * 0.0286); + c.fillAndStroke(); +}; + +mxShapeMockupCalendar.prototype.foreground = function (c, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.STROKE_COLOR2, '#008cff'); + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.FILL_COLOR2, '#ddeeff'); + var mainText = mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.MAIN_TEXT, ''); + var textSize = mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.TEXT_SIZE, '15'); + var textColor = mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.TEXT_COLOR, '#999999'); + var textColor2 = mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.TEXT_COLOR2, '#ffffff'); + var days = parseInt(mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.DAYS, '30'), 10); + var prevDays = parseInt(mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.PREV_DAYS, '31'), 10); + var firstDay = parseInt(mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.FIRST_DAY, '0'), 10); + var startOn = parseInt(mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.START_ON, '6', 10)); + var dayNames = mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.DAY_NAMES, 'Mo,Tu,We,Th,Fr,Sa,Su').toString().split(','); + var selDay = parseInt(mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.SELECTED_DAY, '24'), 10); + fistDay = Math.max(firstDay, 0); + startOn = Math.max(startOn, 0); + fistDay = Math.min(firstDay, 6); + startOn = Math.min(startOn, 6); + c.roundrect(w * 0.05, h * 0.0457, w * 0.1438, h * 0.1029, w * 0.025, h * 0.0229); + c.stroke(); + c.roundrect(w * 0.8125, h * 0.0457, w * 0.1438, h * 0.1029, w * 0.025, h * 0.0229); + c.stroke(); + c.setStrokeWidth(2); + c.setStrokeColor(strokeColor2); + c.begin(); + c.moveTo(w * 0.1438, h * 0.0743); + c.lineTo(w * 0.1, h * 0.0971); + c.lineTo(w * 0.1438, h * 0.12); + c.moveTo(w * 0.8625, h * 0.0743); + c.lineTo(w * 0.9062, h * 0.0971); + c.lineTo(w * 0.8625, h * 0.12); + c.stroke(); + c.setFontSize(textSize); + c.setFontColor(textColor); + c.text(w * 0.5, h * 0.0971, 0, 0, mainText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var range = w * 0.875; + var cellSize = range / 7; + + for (var i = 0; i < 7; i++) { + var currX = w * 0.0625 + cellSize * 0.5 + i * cellSize; + var j = i + startOn; + + if (j > 6) { + j = j - 7; + } + + c.text(currX, h * 0.2114, 0, 0, dayNames[j], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + c.setStrokeWidth(1); + var x = 0; + var selX = -1; + var selY = -1; + + if (firstDay !== startOn) { + c.setStrokeColor(strokeColor); + c.setFillColor(fillColor2); + var diff = firstDay - startOn; + + if (diff < 0) { + diff = diff + 7; + } + + for (var i = 0; i < diff; i++) { + var currX = w * 0.0625 + i * cellSize; + c.rect(currX, h * 0.2686, cellSize, h * 0.1143); + c.fillAndStroke(); + var tmp = prevDays - diff + i + 1; + c.text(currX + cellSize * 0.5, h * 0.2686 + cellSize * 0.5, 0, 0, tmp.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + x = diff; + } + + c.setFillColor(fillColor); + c.setStrokeColor(strokeColor); + var y = 0; + + for (var i = 0; i < days; i++) { + var d = i + 1; + var currX = w * 0.0625 + x * cellSize; + var currY = h * 0.2686 + y * h * 0.1143; + + if (d === selDay) { + selX = currX; + selY = currY; + } else { + c.rect(currX, currY, cellSize, h * 0.1143); + c.fillAndStroke(); + c.text(currX + cellSize * 0.5, currY + cellSize * 0.5, 0, 0, d.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + if (x < 6) { + x++; + } else { + x = 0; + y++; + } + } + + var i = 1; + c.setFillColor(fillColor2); + + while (y < 6) { + var currX = w * 0.0625 + x * cellSize; + var currY = h * 0.2686 + y * h * 0.1143; + c.rect(currX, currY, cellSize, h * 0.1143); + c.fillAndStroke(); + c.text(currX + cellSize * 0.5, currY + cellSize * 0.5, 0, 0, i.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + if (x < 6) { + x++; + } else { + x = 0; + y++; + } + + i++; + } + + if (selX >= 0) { + c.setStrokeColor('#ff0000'); + c.setStrokeWidth(2); + c.setFillColor(strokeColor2); + c.setFontColor(textColor2); + c.rect(selX, selY, cellSize, h * 0.1143); + c.fillAndStroke(); + c.text(selX + cellSize * 0.5, selY + cellSize * 0.5, 0, 0, selDay.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupCalendar.prototype.cst.SHAPE_CALENDAR, mxShapeMockupCalendar); + +function mxShapeMockupEmailForm(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupEmailForm, mxShape); +mxShapeMockupEmailForm.prototype.cst = { + MAIN_TEXT: 'mainText', + TEXT_COLOR: 'textColor', + SHOW_CC: 'showCC', + SHOW_BCC: 'showBCC', + TEXT_SIZE: 'textSize', + SHAPE_EMAIL_FORM: 'mxgraph.mockup.forms.emailForm' +}; + +mxShapeMockupEmailForm.prototype.paintVertexShape = function (c, x, y, w, h) { + var fontSize = mxUtils.getValue(this.style, mxShapeMockupEmailForm.prototype.cst.TEXT_SIZE, '12'); + var showCC = mxUtils.getValue(this.style, mxShapeMockupEmailForm.prototype.cst.SHOW_CC, 'true'); + var showBCC = mxUtils.getValue(this.style, mxShapeMockupEmailForm.prototype.cst.SHOW_BCC, 'true'); + var tabX = fontSize * 4; + var optCount = 0; + + if (showCC === 'true') { + optCount++; + } + + if (showBCC === 'true') { + optCount++; + } + + w = Math.max(w, fontSize * 5); + h = Math.max(h, fontSize * 10.5 + optCount * fontSize * 3); + c.translate(x, y); + this.background(c, w, h, fontSize, tabX, showCC, showBCC); + c.setShadow(false); + this.foreground(c, w, h, fontSize, tabX, showCC, showBCC); +}; + +mxShapeMockupEmailForm.prototype.background = function (c, w, h, fontSize, tabX, showCC, showBCC) { + var messX = fontSize * 9; + + if (showCC === 'true') { + messX = messX + fontSize * 3; + c.rect(tabX, fontSize * 9, w - tabX, fontSize * 1.5); + c.fillAndStroke(); + } + + if (showBCC === 'true') { + c.rect(tabX, messX, w - tabX, fontSize * 1.5); + messX = messX + fontSize * 3; + c.fillAndStroke(); + } + + c.rect(tabX, 0, w - tabX, fontSize * 1.5); + c.fillAndStroke(); + c.rect(tabX, fontSize * 3, w - tabX, fontSize * 1.5); + c.fillAndStroke(); + c.rect(tabX, fontSize * 6, w - tabX, fontSize * 1.5); + c.fillAndStroke(); + c.rect(0, messX, w, h - messX); + c.fillAndStroke(); +}; + +mxShapeMockupEmailForm.prototype.foreground = function (c, w, h, fontSize, tabX, showCC, showBCC) { + var mainText = mxUtils.getValue(this.style, mxShapeMockupEmailForm.prototype.cst.MAIN_TEXT, 'john@jgraph.com,Greeting,fred@jgraph.com,,,Lorem ipsum').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupEmailForm.prototype.cst.TEXT_COLOR, '#666666'); + c.setFontColor(fontColor); + c.setFontSize(fontSize); + c.text(tabX - fontSize * 0.5, fontSize * 0.75, 0, 0, 'From', mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(tabX - fontSize * 0.5, fontSize * 3.75, 0, 0, 'Subject', mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(tabX - fontSize * 0.5, fontSize * 6.75, 0, 0, 'To', mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(tabX + fontSize * 0.5, fontSize * 0.75, 0, 0, mainText[0], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(tabX + fontSize * 0.5, fontSize * 3.75, 0, 0, mainText[1], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(tabX + fontSize * 0.5, fontSize * 6.75, 0, 0, mainText[2], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var messX = fontSize * 9; + + if (showCC === 'true') { + messX = messX + fontSize * 3; + c.text(tabX - fontSize * 0.5, fontSize * 9.75, 0, 0, 'CC', mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(tabX + fontSize * 0.5, fontSize * 9.75, 0, 0, mainText[3], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + if (showBCC === 'true') { + c.text(tabX - fontSize * 0.5, messX + fontSize * 0.75, 0, 0, 'BCC', mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(tabX + fontSize * 0.5, messX + fontSize * 0.75, 0, 0, mainText[4], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + messX = messX + fontSize * 3; + } + + c.text(fontSize * 0.5, messX + fontSize * 0.75, 0, 0, mainText[5], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupEmailForm.prototype.cst.SHAPE_EMAIL_FORM, mxShapeMockupEmailForm); + +function mxShapeMockupFormsRRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupFormsRRect, mxShape); +mxShapeMockupFormsRRect.prototype.cst = { + RRECT: 'mxgraph.mockup.forms.rrect', + R_SIZE: 'rSize' +}; +mxShapeMockupFormsRRect.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeMockupFormsRRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupFormsRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupFormsRRect.prototype.cst.RRECT, mxShapeMockupFormsRRect); + +function mxShapeMockupFormsAnchor(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; +} + +; +mxUtils.extend(mxShapeMockupFormsAnchor, mxShape); +mxShapeMockupFormsAnchor.prototype.cst = { + ANCHOR: 'mxgraph.mockup.forms.anchor' +}; + +mxShapeMockupFormsAnchor.prototype.paintVertexShape = function (c, x, y, w, h) {}; + +mxCellRenderer.registerShape(mxShapeMockupFormsAnchor.prototype.cst.ANCHOR, mxShapeMockupFormsAnchor); + +function mxShapeMockupFormsCheckbox(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupFormsCheckbox, mxShape); +mxShapeMockupFormsCheckbox.prototype.cst = { + CHECKBOX: 'mxgraph.mockup.forms.checkbox' +}; + +mxShapeMockupFormsCheckbox.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8, h * 0.2); + c.lineTo(w * 0.4, h * 0.8); + c.lineTo(w * 0.25, h * 0.6); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupFormsCheckbox.prototype.cst.CHECKBOX, mxShapeMockupFormsCheckbox); + +function mxShapeMockupFormsURect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupFormsURect, mxShape); +mxShapeMockupFormsURect.prototype.cst = { + U_RECT: 'mxgraph.mockup.forms.uRect' +}; + +mxShapeMockupFormsURect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupFormsURect.prototype.cst.U_RECT, mxShapeMockupFormsURect); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupGraphics.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupGraphics.js new file mode 100644 index 0000000000000..a7069e5148c21 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupGraphics.js @@ -0,0 +1,997 @@ +"use strict"; + +function mxShapeMockupBarChart(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupBarChart, mxShape); +mxShapeMockupBarChart.prototype.cst = { + STROKE_COLOR2: 'strokeColor2', + STROKE_COLOR3: 'strokeColor3', + FILL_COLOR2: 'fillColor2', + FILL_COLOR3: 'fillColor3', + SHAPE_BAR_CHART: 'mxgraph.mockup.graphics.barChart' +}; +mxShapeMockupBarChart.prototype.customProperties = [{ + name: 'strokeColor2', + dispName: 'Stroke2 Color', + type: 'color' +}, { + name: 'strokeColor3', + dispName: 'Stroke3 Color', + type: 'color' +}, { + name: 'fillColor2', + dispName: 'Fill2 Color', + type: 'color' +}, { + name: 'fillColor3', + dispName: 'Fill3 Color', + type: 'color' +}]; + +mxShapeMockupBarChart.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + var bgFill = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'); + + if (bgFill !== 'none') { + c.setShadow(false); + } + + this.bars(c, x, y, w, h); +}; + +mxShapeMockupBarChart.prototype.background = function (c, x, y, w, h, bgColor, frameColor) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupBarChart.prototype.bars = function (c, x, y, w, h) { + var barStroke = mxUtils.getValue(this.style, mxShapeMockupBarChart.prototype.cst.STROKE_COLOR2, 'none'); + var coordStroke = mxUtils.getValue(this.style, mxShapeMockupBarChart.prototype.cst.STROKE_COLOR3, '#666666'); + var barFill1 = mxUtils.getValue(this.style, mxShapeMockupBarChart.prototype.cst.FILL_COLOR2, '#008cff'); + var barFill2 = mxUtils.getValue(this.style, mxShapeMockupBarChart.prototype.cst.FILL_COLOR3, '#dddddd'); + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + c.setStrokeColor(barStroke); + c.setFillColor(barFill1); + c.rect(0, h * 0.2, w * 0.75, h * 0.05); + c.fillAndStroke(); + c.rect(0, h * 0.45, w * 0.6, h * 0.05); + c.fillAndStroke(); + c.rect(0, h * 0.7, w * 0.95, h * 0.05); + c.fillAndStroke(); + c.setFillColor(barFill2); + c.rect(0, h * 0.25, w * 0.85, h * 0.05); + c.fillAndStroke(); + c.rect(0, h * 0.5, w * 0.65, h * 0.05); + c.fillAndStroke(); + c.rect(0, h * 0.75, w * 0.8, h * 0.05); + c.fillAndStroke(); + c.setStrokeWidth(strokeWidth * 2); + c.setStrokeColor(coordStroke); + c.setShadow(false); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, h); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupBarChart.prototype.cst.SHAPE_BAR_CHART, mxShapeMockupBarChart); + +function mxShapeMockupColumnChart(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupColumnChart, mxShape); +mxShapeMockupColumnChart.prototype.cst = { + STROKE_COLOR2: 'strokeColor2', + STROKE_COLOR3: 'strokeColor3', + FILL_COLOR2: 'fillColor2', + FILL_COLOR3: 'fillColor3', + SHAPE_COLUMN_CHART: 'mxgraph.mockup.graphics.columnChart' +}; +mxShapeMockupColumnChart.prototype.customProperties = [{ + name: 'strokeColor2', + dispName: 'Bar Stroke Color', + type: 'color' +}, { + name: 'strokeColor3', + dispName: 'Coord System Color', + type: 'color' +}, { + name: 'fillColor2', + dispName: 'Bar1 Color', + type: 'color' +}, { + name: 'fillColor3', + dispName: 'Bar2 Color', + type: 'color' +}]; + +mxShapeMockupColumnChart.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + var bgFill = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'); + + if (bgFill !== 'none') { + c.setShadow(false); + } + + this.bars(c, x, y, w, h); +}; + +mxShapeMockupColumnChart.prototype.background = function (c, x, y, w, h, bgColor, frameColor) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupColumnChart.prototype.bars = function (c, x, y, w, h) { + var barStroke = mxUtils.getValue(this.style, mxShapeMockupColumnChart.prototype.cst.STROKE_COLOR2, 'none'); + var coordStroke = mxUtils.getValue(this.style, mxShapeMockupColumnChart.prototype.cst.STROKE_COLOR3, '#666666'); + var barFill1 = mxUtils.getValue(this.style, mxShapeMockupColumnChart.prototype.cst.FILL_COLOR2, '#008cff'); + var barFill2 = mxUtils.getValue(this.style, mxShapeMockupColumnChart.prototype.cst.FILL_COLOR3, '#dddddd'); + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + c.setStrokeColor(barStroke); + c.setFillColor(barFill1); + c.rect(w * 0.2, h * 0.25, w * 0.05, h * 0.75); + c.fillAndStroke(); + c.rect(w * 0.45, h * 0.4, w * 0.05, h * 0.6); + c.fillAndStroke(); + c.rect(w * 0.7, h * 0.05, w * 0.05, h * 0.95); + c.fillAndStroke(); + c.setFillColor(barFill2); + c.rect(w * 0.25, h * 0.15, w * 0.05, h * 0.85); + c.fillAndStroke(); + c.rect(w * 0.5, h * 0.35, w * 0.05, h * 0.65); + c.fillAndStroke(); + c.rect(w * 0.75, h * 0.2, w * 0.05, h * 0.8); + c.fillAndStroke(); + c.setStrokeWidth(strokeWidth * 2); + c.setStrokeColor(coordStroke); + c.setShadow(false); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, h); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupColumnChart.prototype.cst.SHAPE_COLUMN_CHART, mxShapeMockupColumnChart); + +function mxShapeMockupLineChart(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupLineChart, mxShape); +mxShapeMockupLineChart.prototype.cst = { + STROKE_COLOR2: 'strokeColor2', + STROKE_COLOR3: 'strokeColor3', + STROKE_COLOR4: 'strokeColor4', + SHAPE_LINE_CHART: 'mxgraph.mockup.graphics.lineChart' +}; +mxShapeMockupLineChart.prototype.customProperties = [{ + name: 'strokeColor2', + dispName: 'Coord. System Color', + type: 'color' +}, { + name: 'strokeColor3', + dispName: 'Line1 Color', + type: 'color' +}, { + name: 'strokeColor4', + dispName: 'Line2 Color', + type: 'color' +}]; + +mxShapeMockupLineChart.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + var bgFill = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'); + + if (bgFill !== 'none') { + c.setShadow(false); + } + + this.bars(c, x, y, w, h); +}; + +mxShapeMockupLineChart.prototype.background = function (c, x, y, w, h, bgColor, frameColor) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupLineChart.prototype.bars = function (c, x, y, w, h) { + var coordStroke = mxUtils.getValue(this.style, mxShapeMockupLineChart.prototype.cst.STROKE_COLOR2, '#666666'); + var line1Stroke = mxUtils.getValue(this.style, mxShapeMockupLineChart.prototype.cst.STROKE_COLOR3, '#008cff'); + var line2Stroke = mxUtils.getValue(this.style, mxShapeMockupLineChart.prototype.cst.STROKE_COLOR4, '#dddddd'); + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + c.setStrokeWidth(strokeWidth * 2); + c.setStrokeColor(line2Stroke); + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.3, h * 0.5); + c.lineTo(w * 0.6, h * 0.74); + c.lineTo(w * 0.9, h * 0.24); + c.stroke(); + c.setStrokeColor(line1Stroke); + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.3, h * 0.65); + c.lineTo(w * 0.6, h * 0.6); + c.lineTo(w * 0.9, h * 0.35); + c.stroke(); + c.setStrokeColor(coordStroke); + c.setShadow(false); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, h); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupLineChart.prototype.cst.SHAPE_LINE_CHART, mxShapeMockupLineChart); + +function mxShapeMockupPieChart(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupPieChart, mxShape); +mxShapeMockupPieChart.prototype.cst = { + PARTS: 'parts', + PART_COLORS: 'partColors', + SHAPE_PIE_CHART: 'mxgraph.mockup.graphics.pieChart' +}; +mxShapeMockupPieChart.prototype.customProperties = [{ + name: 'partsCount', + dispName: 'partsCount', + type: 'int', + defVal: 4, + dependentProps: ['partColors', 'parts'] +}, { + name: 'partColors', + dispName: 'Part Colors', + type: 'staticArr', + subType: 'color', + sizeProperty: 'partsCount', + subDefVal: '#FFFFFF' +}, { + name: 'parts', + dispName: 'Part Sizes', + type: 'staticArr', + subType: 'int', + sizeProperty: 'partsCount', + subDefVal: '10' +}]; + +mxShapeMockupPieChart.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupPieChart.prototype.background = function (c, x, y, w, h, bgColor, frameColor) { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupPieChart.prototype.foreground = function (c, x, y, w, h) { + var parts = mxUtils.getValue(this.style, mxShapeMockupPieChart.prototype.cst.PARTS, '10,20,30').toString().split(','); + var partNum = parts.length; + var partColors = mxUtils.getValue(this.style, mxShapeMockupPieChart.prototype.cst.PART_COLORS, '#333333,#666666,#999999').toString().split(','); + var total = 0; + + for (var i = 0; i < partNum; i++) { + total = total + parseInt(parts[i], 10); + } + + for (var i = 0; i < partNum; i++) { + if (partColors.length > i) { + c.setFillColor(partColors[i]); + } else { + c.setFillColor('#ff0000'); + } + + var beginPerc = 0; + var endPerc = 0; + var currPerc = parseInt(parts[i], 10) / total; + + if (currPerc === 0.5) { + currPerc = 0.501; + } + + for (var j = 0; j < i; j++) { + beginPerc = beginPerc + parseInt(parts[j], 10) / total; + } + + endPerc = currPerc + beginPerc; + var startAngle = 2 * Math.PI * beginPerc; + var endAngle = 2 * Math.PI * endPerc; + var x1 = w * 0.5 - w * Math.sin(startAngle) * 0.5; + var y1 = h * 0.5 - h * Math.cos(startAngle) * 0.5; + var x2 = w * 0.5 - w * Math.sin(endAngle) * 0.5; + var y2 = h * 0.5 - h * Math.cos(endAngle) * 0.5; + var largeArc = 1; + var sweep = 1; + + if (endPerc - beginPerc < 0.5) { + largeArc = 0; + } + + c.begin(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(x2, y2); + c.arcTo(w * 0.5, h * 0.5, 0, largeArc, 1, x1, y1); + c.close(); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupPieChart.prototype.cst.SHAPE_PIE_CHART, mxShapeMockupPieChart); + +function mxShapeMockupIconGrid(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupIconGrid, mxShape); +mxShapeMockupIconGrid.prototype.cst = { + GRID_SIZE: 'gridSize', + SHAPE_ICON_GRID: 'mxgraph.mockup.graphics.iconGrid' +}; + +mxShapeMockupIconGrid.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var gridSize = mxUtils.getValue(this.style, mxShapeMockupIconGrid.prototype.cst.GRID_SIZE, '3,3').toString().split(','); + this.background(c, w, h, gridSize); + c.setShadow(false); + this.foreground(c, w, h, gridSize); +}; + +mxShapeMockupIconGrid.prototype.background = function (c, w, h, gridSize) { + var boxSizeX = w / (parseInt(gridSize[0], 10) + (gridSize[0] - 1) * 0.5); + var boxSizeY = h / (parseInt(gridSize[1], 10) + (gridSize[1] - 1) * 0.5); + + for (var i = 0; i < gridSize[0]; i++) { + for (var j = 0; j < gridSize[1]; j++) { + c.rect(boxSizeX * 1.5 * i, boxSizeY * 1.5 * j, boxSizeX, boxSizeY); + c.fillAndStroke(); + } + } +}; + +mxShapeMockupIconGrid.prototype.foreground = function (c, w, h, gridSize) { + var boxSizeX = w / (parseInt(gridSize[0], 10) + (gridSize[0] - 1) * 0.5); + var boxSizeY = h / (parseInt(gridSize[1], 10) + (gridSize[1] - 1) * 0.5); + + for (var i = 0; i < gridSize[0]; i++) { + for (var j = 0; j < gridSize[1]; j++) { + c.begin(); + c.moveTo(boxSizeX * 1.5 * i, boxSizeY * 1.5 * j); + c.lineTo(boxSizeX * 1.5 * i + boxSizeX, boxSizeY * 1.5 * j + boxSizeY); + c.moveTo(boxSizeX * 1.5 * i + boxSizeX, boxSizeY * 1.5 * j); + c.lineTo(boxSizeX * 1.5 * i, boxSizeY * 1.5 * j + boxSizeY); + c.stroke(); + } + } +}; + +mxCellRenderer.registerShape(mxShapeMockupIconGrid.prototype.cst.SHAPE_ICON_GRID, mxShapeMockupIconGrid); + +function mxShapeMockupBubbleChart(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupBubbleChart, mxShape); +mxShapeMockupBubbleChart.prototype.cst = { + STROKE_COLOR2: 'strokeColor2', + STROKE_COLOR3: 'strokeColor3', + FILL_COLOR2: 'fillColor2', + FILL_COLOR3: 'fillColor3', + SHAPE_BUBBLE_CHART: 'mxgraph.mockup.graphics.bubbleChart' +}; +mxShapeMockupBubbleChart.prototype.customProperties = [{ + name: 'strokeColor2', + dispName: 'Bubble Stroke Color', + type: 'color' +}, { + name: 'strokeColor3', + dispName: 'Coord. System Color', + type: 'color' +}, { + name: 'fillColor2', + dispName: 'Bubble1 Color', + type: 'color' +}, { + name: 'fillColor3', + dispName: 'Bubble2 Color', + type: 'color' +}]; + +mxShapeMockupBubbleChart.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + var bgFill = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'); + + if (bgFill !== 'none') { + c.setShadow(false); + } + + this.bars(c, x, y, w, h); +}; + +mxShapeMockupBubbleChart.prototype.background = function (c, x, y, w, h, bgColor, frameColor) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupBubbleChart.prototype.bars = function (c, x, y, w, h) { + var barStroke = mxUtils.getValue(this.style, mxShapeMockupBubbleChart.prototype.cst.STROKE_COLOR2, 'none'); + var coordStroke = mxUtils.getValue(this.style, mxShapeMockupBubbleChart.prototype.cst.STROKE_COLOR3, '#666666'); + var barFill1 = mxUtils.getValue(this.style, mxShapeMockupBubbleChart.prototype.cst.FILL_COLOR2, '#008cff'); + var barFill2 = mxUtils.getValue(this.style, mxShapeMockupBubbleChart.prototype.cst.FILL_COLOR3, '#dddddd'); + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + c.setStrokeColor(barStroke); + c.setFillColor(barFill1); + var cx = w * 0.4; + var cy = h * 0.45; + var r = Math.min(h, w) * 0.14; + c.ellipse(cx - r, cy - r, 2 * r, 2 * r); + c.fillAndStroke(); + cx = w * 0.1; + cy = h * 0.8; + r = Math.min(h, w) * 0.1; + c.ellipse(cx - r, cy - r, 2 * r, 2 * r); + c.fillAndStroke(); + cx = w * 0.7; + cy = h * 0.7; + r = Math.min(h, w) * 0.22; + c.ellipse(cx - r, cy - r, 2 * r, 2 * r); + c.fillAndStroke(); + c.setFillColor(barFill2); + cx = w * 0.15; + cy = h * 0.25; + r = Math.min(h, w) * 0.19; + c.ellipse(cx - r, cy - r, 2 * r, 2 * r); + c.fillAndStroke(); + cx = w * 0.48; + cy = h * 0.7; + r = Math.min(h, w) * 0.12; + c.ellipse(cx - r, cy - r, 2 * r, 2 * r); + c.fillAndStroke(); + cx = w * 0.74; + cy = h * 0.17; + r = Math.min(h, w) * 0.1; + c.ellipse(cx - r, cy - r, 2 * r, 2 * r); + c.fillAndStroke(); + c.setStrokeWidth(strokeWidth * 2); + c.setStrokeColor(coordStroke); + c.setShadow(false); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, h); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupBubbleChart.prototype.cst.SHAPE_BUBBLE_CHART, mxShapeMockupBubbleChart); + +function mxShapeMockupGauge(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.gaugePos = 25; +} + +; +mxUtils.extend(mxShapeMockupGauge, mxShape); +mxShapeMockupGauge.prototype.cst = { + SCALE_COLORS: 'scaleColors', + GAUGE_LABELS: 'gaugeLabels', + NEEDLE_COLOR: 'needleColor', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize', + GAUGE_POS: 'gaugePos', + SHAPE_GAUGE: 'mxgraph.mockup.graphics.gauge' +}; +mxShapeMockupGauge.prototype.customProperties = [{ + name: 'scaleColors', + dispName: 'Scale Colors', + type: 'String' +}, { + name: 'needleColor', + dispName: 'Needle Color', + type: 'color' +}, { + name: 'gaugePos', + dispName: 'Needle Position', + type: 'float', + min: 0, + max: 100, + defVal: 25 +}]; + +mxShapeMockupGauge.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupGauge.prototype.background = function (c, w, h) { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupGauge.prototype.foreground = function (c, w, h) { + var gaugePos = mxUtils.getValue(this.style, mxShapeMockupGauge.prototype.cst.GAUGE_POS, '0'); + var scaleColors = mxUtils.getValue(this.style, mxShapeMockupGauge.prototype.cst.SCALE_COLORS, '#888888,#aaaaaa,#444444').toString().split(','); + var gaugeLabels = mxUtils.getValue(this.style, mxShapeMockupGauge.prototype.cst.GAUGE_LABELS, 'CPU[%],0,100').toString().split(','); + var needleColor = mxUtils.getValue(this.style, mxShapeMockupGauge.prototype.cst.NEEDLE_COLOR, '#008cff'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var textColor = mxUtils.getValue(this.style, mxShapeMockupGauge.prototype.cst.TEXT_COLOR, '#666666'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupGauge.prototype.cst.TEXT_SIZE, '12'); + gaugePos = Math.max(0, gaugePos); + gaugePos = Math.min(100, gaugePos); + c.setFillColor(scaleColors[1]); + c.begin(); + c.moveTo(w * 0.05, h * 0.5); + c.arcTo(w * 0.4, h * 0.4, 0, 0, 1, w * 0.95, h * 0.5); + c.lineTo(w, h * 0.5); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 0, 0, h * 0.5); + c.close(); + c.fill(); + c.setFillColor(scaleColors[0]); + c.begin(); + c.moveTo(w * 0.05, h * 0.5); + c.arcTo(w * 0.45, h * 0.45, 0, 0, 0, w * 0.182, h * 0.818); + c.lineTo(w * 0.146, h * 0.854); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, 0, h * 0.5); + c.close(); + c.fill(); + c.setFillColor(scaleColors[2]); + c.begin(); + c.moveTo(w, h * 0.5); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, w * 0.854, h * 0.854); + c.lineTo(w * 0.818, h * 0.818); + c.arcTo(w * 0.45, h * 0.45, 0, 0, 0, w * 0.95, h * 0.5); + c.close(); + c.fill(); + c.setFontSize(textSize); + c.setFontColor(textColor); + c.text(w * 0.5, h * 0.3, 0, 0, gaugeLabels[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.2, h * 0.85, 0, 0, gaugeLabels[1], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8, h * 0.85, 0, 0, gaugeLabels[2], mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var needlePos = 0.75 * (2 * Math.PI * parseFloat(gaugePos) / 100) + 1.25 * Math.PI; + var x1 = w * 0.5 + w * 0.38 * Math.sin(needlePos); + var y1 = h * 0.5 - h * 0.38 * Math.cos(needlePos); + var x2 = 0; + var y2 = 0; + c.setFillColor(needleColor); + c.begin(); + c.moveTo(x1, y1); + x1 = w * 0.5 + w * 0.05 * Math.cos(needlePos); + y1 = h * 0.5 + h * 0.05 * Math.sin(needlePos); + c.lineTo(x1, y1); + x2 = w * 0.5 + w * -0.05 * Math.sin(needlePos); + y2 = h * 0.5 - h * -0.05 * Math.cos(needlePos); + c.arcTo(w * 0.05, h * 0.05, 0, 0, 1, x2, y2); + x1 = x2; + y1 = y2; + x2 = w * 0.5 - w * 0.05 * Math.cos(needlePos); + y2 = h * 0.5 - h * 0.05 * Math.sin(needlePos); + c.arcTo(w * 0.05, h * 0.05, 0, 0, 1, x2, y2); + c.close(); + c.fill(); + c.setFillColor(fillColor); + c.begin(); + c.moveTo(w * 0.49, h * 0.49); + c.lineTo(w * 0.51, h * 0.49); + c.lineTo(w * 0.51, h * 0.51); + c.lineTo(w * 0.49, h * 0.51); + c.close(); + c.fill(); + c.begin(); + c.ellipse(0, 0, w, h); + c.stroke(); + c.begin(); + c.moveTo(w * 0.146, h * 0.854); + c.lineTo(w * 0.219, h * 0.781); + c.moveTo(w * 0.854, h * 0.854); + c.lineTo(w * 0.781, h * 0.781); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupGauge.prototype.cst.SHAPE_GAUGE, mxShapeMockupGauge); + +Graph.handleFactory[mxShapeMockupGauge.prototype.cst.SHAPE_GAUGE] = function (state) { + var handles = [Graph.createHandle(state, ['gaugePos'], function (bounds) { + var gaugePos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'gaugePos', this.gaugePos)))); + return new mxPoint(bounds.x + bounds.width * 0.2 + gaugePos * 0.6 * bounds.width / 100, bounds.y + bounds.height * 0.8); + }, function (bounds, pt) { + this.state.style['gaugePos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 1000; + })]; + return handles; +}; + +function mxShapeMockupPlotChart(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupPlotChart, mxShape); +mxShapeMockupPlotChart.prototype.cst = { + STROKE_COLOR2: 'strokeColor2', + STROKE_COLOR3: 'strokeColor3', + SHAPES_COLORS: 'fillColor2', + SHAPE_PLOT_CHART: 'mxgraph.mockup.graphics.plotChart' +}; +mxShapeMockupPlotChart.prototype.customProperties = [{ + name: 'strokeColor2', + dispName: 'Bubble Stroke Color', + type: 'color' +}, { + name: 'strokeColor3', + dispName: 'Coord. System Color', + type: 'color' +}, { + name: 'fillColor2', + dispName: 'Shapes Color', + type: 'string' +}]; + +mxShapeMockupPlotChart.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + var bgFill = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'); + + if (bgFill !== 'none') { + c.setShadow(false); + } + + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupPlotChart.prototype.background = function (c, x, y, w, h, bgColor, frameColor) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupPlotChart.prototype.foreground = function (c, x, y, w, h) { + var shapeStroke = mxUtils.getValue(this.style, mxShapeMockupPlotChart.prototype.cst.STROKE_COLOR2, '#dddddd'); + var coordStroke = mxUtils.getValue(this.style, mxShapeMockupPlotChart.prototype.cst.STROKE_COLOR3, '#666666'); + var shapesColors = mxUtils.getValue(this.style, mxShapeMockupPlotChart.prototype.cst.SHAPES_COLORS, '#00aaff,#0044ff,#008cff').toString().split(','); + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + var shapeSize = Math.min(w, h) * 0.03; + c.setStrokeColor(shapeStroke); + c.setFillColor(shapesColors[0]); + var cx = w * 0.2; + var cy = h * 0.8; + c.begin(); + c.moveTo(cx - shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy + shapeSize * 0.5); + c.lineTo(cx - shapeSize * 0.5, cy + shapeSize * 0.5); + c.close(); + c.fillAndStroke(); + cx = w * 0.3; + cy = h * 0.65; + c.begin(); + c.moveTo(cx - shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy + shapeSize * 0.5); + c.lineTo(cx - shapeSize * 0.5, cy + shapeSize * 0.5); + c.close(); + c.fillAndStroke(); + cx = w * 0.6; + cy = h * 0.44; + c.begin(); + c.moveTo(cx - shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy + shapeSize * 0.5); + c.lineTo(cx - shapeSize * 0.5, cy + shapeSize * 0.5); + c.close(); + c.fillAndStroke(); + cx = w * 0.85; + cy = h * 0.9; + c.begin(); + c.moveTo(cx - shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy + shapeSize * 0.5); + c.lineTo(cx - shapeSize * 0.5, cy + shapeSize * 0.5); + c.close(); + c.fillAndStroke(); + c.setFillColor(shapesColors[1]); + cx = w * 0.08; + cy = h * 0.65; + c.begin(); + c.moveTo(cx, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy + shapeSize * 0.5); + c.lineTo(cx - shapeSize * 0.5, cy + shapeSize * 0.5); + c.close(); + c.fillAndStroke(); + cx = w * 0.58; + cy = h * 0.85; + c.begin(); + c.moveTo(cx, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy + shapeSize * 0.5); + c.lineTo(cx - shapeSize * 0.5, cy + shapeSize * 0.5); + c.close(); + c.fillAndStroke(); + cx = w * 0.72; + cy = h * 0.92; + c.begin(); + c.moveTo(cx, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy + shapeSize * 0.5); + c.lineTo(cx - shapeSize * 0.5, cy + shapeSize * 0.5); + c.close(); + c.fillAndStroke(); + c.setFillColor(shapesColors[2]); + cx = w * 0.32; + cy = h * 0.28; + c.begin(); + c.moveTo(cx, cy - shapeSize * 0.75); + c.lineTo(cx + shapeSize * 0.75, cy); + c.lineTo(cx, cy + shapeSize * 0.75); + c.lineTo(cx - shapeSize * 0.75, cy); + c.close(); + c.fillAndStroke(); + cx = w * 0.92; + cy = h * 0.45; + c.begin(); + c.moveTo(cx, cy - shapeSize * 0.75); + c.lineTo(cx + shapeSize * 0.75, cy); + c.lineTo(cx, cy + shapeSize * 0.75); + c.lineTo(cx - shapeSize * 0.75, cy); + c.close(); + c.fillAndStroke(); + cx = w * 0.81; + cy = h * 0.37; + c.begin(); + c.moveTo(cx, cy - shapeSize * 0.75); + c.lineTo(cx + shapeSize * 0.75, cy); + c.lineTo(cx, cy + shapeSize * 0.75); + c.lineTo(cx - shapeSize * 0.75, cy); + c.close(); + c.fillAndStroke(); + cx = w * 0.51; + cy = h * 0.7; + c.begin(); + c.moveTo(cx, cy - shapeSize * 0.75); + c.lineTo(cx + shapeSize * 0.75, cy); + c.lineTo(cx, cy + shapeSize * 0.75); + c.lineTo(cx - shapeSize * 0.75, cy); + c.close(); + c.fillAndStroke(); + c.setStrokeWidth(strokeWidth * 2); + c.setStrokeColor(coordStroke); + c.setShadow(false); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, h); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupPlotChart.prototype.cst.SHAPE_PLOT_CHART, mxShapeMockupPlotChart); + +function mxShapeMockupGanttChart(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupGanttChart, mxShape); +mxShapeMockupGanttChart.prototype.cst = { + STROKE_COLOR2: 'strokeColor2', + STROKE_COLOR3: 'strokeColor3', + SHAPES_COLORS: 'fillColor2', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize', + SHAPE_GANTT_CHART: 'mxgraph.mockup.graphics.ganttChart' +}; + +mxShapeMockupGanttChart.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupGanttChart.prototype.background = function (c, x, y, w, h, bgColor, frameColor) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupGanttChart.prototype.foreground = function (c, x, y, w, h) { + var shapesColors = mxUtils.getValue(this.style, mxShapeMockupGanttChart.prototype.cst.SHAPES_COLORS, '#888888,#bbbbbb').toString().split(','); + var textColor = mxUtils.getValue(this.style, mxShapeMockupGanttChart.prototype.cst.TEXT_COLOR, '#666666'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupGanttChart.prototype.cst.TEXT_SIZE, '#12'); + c.begin(); + c.moveTo(0, h * 0.13); + c.lineTo(w, h * 0.13); + c.moveTo(w * 0.4, 0); + c.lineTo(w * 0.4, h); + c.moveTo(w * 0.4, h * 0.065); + c.lineTo(w, h * 0.065); + c.moveTo(w * 0.03, 0); + c.lineTo(w * 0.03, h * 0.13); + c.moveTo(w * 0.1, 0); + c.lineTo(w * 0.1, h * 0.13); + c.moveTo(w * 0.315, 0); + c.lineTo(w * 0.315, h * 0.13); + c.moveTo(w * 0.45, h * 0.065); + c.lineTo(w * 0.45, h * 0.13); + c.moveTo(w * 0.5, h * 0.065); + c.lineTo(w * 0.5, h); + c.moveTo(w * 0.55, h * 0.065); + c.lineTo(w * 0.55, h * 0.13); + c.moveTo(w * 0.6, h * 0.065); + c.lineTo(w * 0.6, h); + c.moveTo(w * 0.65, h * 0.065); + c.lineTo(w * 0.65, h * 0.13); + c.moveTo(w * 0.7, h * 0.065); + c.lineTo(w * 0.7, h); + c.moveTo(w * 0.75, 0); + c.lineTo(w * 0.75, h * 0.13); + c.moveTo(w * 0.8, h * 0.065); + c.lineTo(w * 0.8, h); + c.moveTo(w * 0.85, h * 0.065); + c.lineTo(w * 0.85, h * 0.13); + c.moveTo(w * 0.9, h * 0.065); + c.lineTo(w * 0.9, h); + c.moveTo(w * 0.95, h * 0.065); + c.lineTo(w * 0.95, h * 0.13); + c.stroke(); + c.setFillColor(shapesColors[0]); + c.begin(); + c.moveTo(w * 0.41, h * 0.15); + c.lineTo(w * 0.64, h * 0.15); + c.lineTo(w * 0.64, h * 0.18); + c.lineTo(w * 0.625, h * 0.21); + c.lineTo(w * 0.61, h * 0.18); + c.lineTo(w * 0.44, h * 0.18); + c.lineTo(w * 0.425, h * 0.21); + c.lineTo(w * 0.41, h * 0.18); + c.close(); + c.moveTo(w * 0.41, h * 0.24); + c.lineTo(w * 0.49, h * 0.24); + c.lineTo(w * 0.49, h * 0.275); + c.lineTo(w * 0.41, h * 0.275); + c.close(); + c.moveTo(w * 0.46, h * 0.31); + c.lineTo(w * 0.64, h * 0.31); + c.lineTo(w * 0.64, h * 0.345); + c.lineTo(w * 0.46, h * 0.345); + c.close(); + c.moveTo(w * 0.56, h * 0.39); + c.lineTo(w * 0.69, h * 0.39); + c.lineTo(w * 0.69, h * 0.425); + c.lineTo(w * 0.56, h * 0.425); + c.close(); + c.fill(); + c.setFillColor(shapesColors[1]); + c.begin(); + c.moveTo(w * 0.46, h * 0.32); + c.lineTo(w * 0.58, h * 0.32); + c.lineTo(w * 0.58, h * 0.335); + c.lineTo(w * 0.46, h * 0.335); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupGanttChart.prototype.cst.SHAPE_GANTT_CHART, mxShapeMockupGanttChart); + +function mxShapeMockupSimpleIcon(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupSimpleIcon, mxShape); +mxShapeMockupSimpleIcon.prototype.cst = { + SIMPLE_ICON: 'mxgraph.mockup.graphics.simpleIcon' +}; + +mxShapeMockupSimpleIcon.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, h); + c.moveTo(0, h); + c.lineTo(w, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupSimpleIcon.prototype.cst.SIMPLE_ICON, mxShapeMockupSimpleIcon); + +function mxShapeMockupGraphicsAnchor(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; +} + +; +mxUtils.extend(mxShapeMockupGraphicsAnchor, mxShape); +mxShapeMockupGraphicsAnchor.prototype.cst = { + ANCHOR: 'mxgraph.mockup.graphics.anchor' +}; + +mxShapeMockupGraphicsAnchor.prototype.paintVertexShape = function (c, x, y, w, h) {}; + +mxCellRenderer.registerShape(mxShapeMockupGraphicsAnchor.prototype.cst.ANCHOR, mxShapeMockupGraphicsAnchor); + +function mxShapeMockupGraphicsRRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupGraphicsRRect, mxShape); +mxShapeMockupGraphicsRRect.prototype.cst = { + RRECT: 'mxgraph.mockup.graphics.rrect', + R_SIZE: 'rSize' +}; +mxShapeMockupGraphicsRRect.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeMockupGraphicsRRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupGraphicsRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupGraphicsRRect.prototype.cst.RRECT, mxShapeMockupGraphicsRRect); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupMarkup.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupMarkup.js new file mode 100644 index 0000000000000..1a758108a4c76 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupMarkup.js @@ -0,0 +1,132 @@ +"use strict"; + +function mxShapeMockupCurlyBrace(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupCurlyBrace, mxShape); +mxShapeMockupCurlyBrace.prototype.cst = { + SHAPE_CURLY_BRACE: 'mxgraph.mockup.markup.curlyBrace' +}; + +mxShapeMockupCurlyBrace.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeMockupCurlyBrace.prototype.background = function (c, x, y, w, h) { + var midY = h * 0.5; + var rSize = Math.min(w * 0.125, midY); + c.begin(); + c.moveTo(0, midY + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, midY); + c.lineTo(w * 0.5 - rSize, midY); + c.arcTo(rSize, rSize, 0, 0, 0, w * 0.5, midY - rSize); + c.arcTo(rSize, rSize, 0, 0, 0, w * 0.5 + rSize, midY); + c.lineTo(w - rSize, midY); + c.arcTo(rSize, rSize, 0, 0, 1, w, midY + rSize); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupCurlyBrace.prototype.cst.SHAPE_CURLY_BRACE, mxShapeMockupCurlyBrace); + +function mxShapeMockupLine(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupLine, mxShape); +mxShapeMockupLine.prototype.cst = { + SHAPE_LINE: 'mxgraph.mockup.markup.line' +}; + +mxShapeMockupLine.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupLine.prototype.cst.SHAPE_LINE, mxShapeMockupLine); + +function mxShapeMockupScratchOut(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupScratchOut, mxShape); +mxShapeMockupScratchOut.prototype.cst = { + SHAPE_SCRATCH_OUT: 'mxgraph.mockup.markup.scratchOut' +}; + +mxShapeMockupScratchOut.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(w * 0.038, h * 0.095); + c.curveTo(w * 0.038, h * 0.095, w * 0.289, h * -0.045, w * 0.186, h * 0.05); + c.curveTo(w * 0.084, h * 0.145, w * -0.046, h * 0.251, w * 0.072, h * 0.208); + c.curveTo(w * 0.191, h * 0.164, w * 0.522, h * -0.09, w * 0.366, h * 0.062); + c.curveTo(w * 0.21, h * 0.215, w * -0.094, h * 0.38, w * 0.108, h * 0.304); + c.curveTo(w * 0.309, h * 0.228, w * 0.73, h * -0.126, w * 0.544, h * 0.096); + c.curveTo(w * 0.358, h * 0.319, w * -0.168, h * 0.592, w * 0.108, h * 0.476); + c.curveTo(w * 0.382, h * 0.36, w * 0.972, h * -0.138, w * 0.779, h * 0.114); + c.curveTo(w * 0.585, h * 0.365, w * -0.12, h * 0.688, w * 0.071, h * 0.639); + c.curveTo(w * 0.262, h * 0.59, w * 1.174, h * 0.012, w * 0.936, h * 0.238); + c.curveTo(w * 0.699, h * 0.462, w * -0.216, h * 0.855, w * 0.085, h * 0.806); + c.curveTo(w * 0.386, h * 0.758, w * 1.185, h * 0.26, w * 0.935, h * 0.534); + c.curveTo(w * 0.685, h * 0.808, w * -0.186, h * 0.94, w * 0.236, h * 0.895); + c.curveTo(w * 0.659, h * 0.85, w * 1.095, h * 0.608, w * 0.905, h * 0.769); + c.curveTo(w * 0.715, h * 0.93, w * 0.286, h * 0.962, w * 0.661, h * 0.931); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupScratchOut.prototype.cst.SHAPE_SCRATCH_OUT, mxShapeMockupScratchOut); + +function mxShapeMockupRedX(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupRedX, mxShape); +mxShapeMockupRedX.prototype.cst = { + SHAPE_RED_X: 'mxgraph.mockup.markup.redX' +}; + +mxShapeMockupRedX.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(w * 0.1, 0); + c.lineTo(w * 0.5, h * 0.4); + c.lineTo(w * 0.9, 0); + c.lineTo(w, h * 0.1); + c.lineTo(w * 0.6, h * 0.5); + c.lineTo(w, h * 0.9); + c.lineTo(w * 0.9, h); + c.lineTo(w * 0.5, h * 0.6); + c.lineTo(w * 0.1, h); + c.lineTo(0, h * 0.9); + c.lineTo(w * 0.4, h * 0.5); + c.lineTo(0, h * 0.1); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupRedX.prototype.cst.SHAPE_RED_X, mxShapeMockupRedX); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupMisc.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupMisc.js new file mode 100644 index 0000000000000..68ceb991916ee --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupMisc.js @@ -0,0 +1,1252 @@ +"use strict"; + +function mxShapeMockupPlaybackControls(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupPlaybackControls, mxShape); +mxShapeMockupPlaybackControls.prototype.cst = { + SHAPE_PLAYBACK_CONTROLS: 'mxgraph.mockup.misc.playbackControls', + FILL_COLOR2: 'fillColor2', + STROKE_COLOR2: 'strokeColor2', + FILL_COLOR3: 'fillColor3', + STROKE_COLOR3: 'strokeColor3' +}; +mxShapeMockupPlaybackControls.prototype.customProperties = [{ + name: 'fillColor2', + dispName: 'Outline Color', + type: 'color' +}, { + name: 'fillColor3', + dispName: 'Symbol Color', + type: 'color' +}, { + name: 'strokeColor2', + dispName: 'Outline Stroke Color', + type: 'color' +}, { + name: 'strokeColor3', + dispName: 'Symbol Stroke Color', + type: 'color' +}]; + +mxShapeMockupPlaybackControls.prototype.paintVertexShape = function (c, x, y, w, h) { + var controlBarHeight = 30; + var buttonSize = 22; + var h = Math.max(h, controlBarHeight); + var w = Math.max(225, w); + c.translate(x, y); + this.background(c, w, h, controlBarHeight); + c.setShadow(false); + this.foreground(c, w, h, controlBarHeight, buttonSize); +}; + +mxShapeMockupPlaybackControls.prototype.background = function (c, w, h, controlBarHeight) { + c.rect(0, (h - controlBarHeight) * 0.5, w, controlBarHeight); + c.fillAndStroke(); +}; + +mxShapeMockupPlaybackControls.prototype.foreground = function (c, w, h, controlBarHeight, buttonSize) { + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupPlaybackControls.prototype.cst.FILL_COLOR2, '#99ddff'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeMockupPlaybackControls.prototype.cst.STROKE_COLOR2, 'none'); + var fillColor3 = mxUtils.getValue(this.style, mxShapeMockupPlaybackControls.prototype.cst.FILL_COLOR3, '#ffffff'); + var strokeColor3 = mxUtils.getValue(this.style, mxShapeMockupPlaybackControls.prototype.cst.STROKE_COLOR3, 'none'); + c.setStrokeColor(strokeColor2); + c.setFillColor(fillColor2); + c.ellipse(10, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize); + c.fillAndStroke(); + c.ellipse(40, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize); + c.fillAndStroke(); + c.ellipse(70, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize); + c.fillAndStroke(); + c.ellipse(100, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize); + c.fillAndStroke(); + c.ellipse(130, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize); + c.fillAndStroke(); + c.ellipse(160, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize); + c.fillAndStroke(); + c.ellipse(190, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize); + c.fillAndStroke(); + c.setStrokeColor(strokeColor3); + c.setFillColor(fillColor3); + var t = h * 0.5 - controlBarHeight * 0.5; + c.begin(); + c.moveTo(16, t + 10); + c.lineTo(16, t + 20); + c.lineTo(18, t + 20); + c.lineTo(18, t + 10); + c.close(); + c.moveTo(20, t + 15); + c.lineTo(25, t + 20); + c.lineTo(25, t + 10); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(44, t + 15); + c.lineTo(49, t + 20); + c.lineTo(49, t + 10); + c.close(); + c.moveTo(51, t + 15); + c.lineTo(56, t + 20); + c.lineTo(56, t + 10); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(77, t + 15); + c.lineTo(82, t + 20); + c.lineTo(82, t + 10); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(108, t + 10); + c.lineTo(108, t + 20); + c.lineTo(110, t + 20); + c.lineTo(110, t + 10); + c.close(); + c.moveTo(117, t + 15); + c.lineTo(112, t + 20); + c.lineTo(112, t + 10); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(144, t + 15); + c.lineTo(139, t + 20); + c.lineTo(139, t + 10); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(171, t + 15); + c.lineTo(166, t + 20); + c.lineTo(166, t + 10); + c.close(); + c.moveTo(178, t + 15); + c.lineTo(173, t + 20); + c.lineTo(173, t + 10); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(203, t + 10); + c.lineTo(203, t + 20); + c.lineTo(205, t + 20); + c.lineTo(205, t + 10); + c.close(); + c.moveTo(201, t + 15); + c.lineTo(196, t + 20); + c.lineTo(196, t + 10); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupPlaybackControls.prototype.cst.SHAPE_PLAYBACK_CONTROLS, mxShapeMockupPlaybackControls); + +function mxShapeMockupProgressBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.barPos = 20; +} + +; +mxUtils.extend(mxShapeMockupProgressBar, mxShape); +mxShapeMockupProgressBar.prototype.cst = { + SHAPE_PROGRESS_BAR: 'mxgraph.mockup.misc.progressBar', + BAR_POS: 'barPos', + FILL_COLOR2: 'fillColor2' +}; +mxShapeMockupProgressBar.prototype.customProperties = [{ + name: 'fillColor2', + dispName: 'Outline Color', + type: 'color' +}, { + name: 'barPos', + dispName: 'Handle Position', + type: 'float', + min: 0, + defVal: 80 +}]; + +mxShapeMockupProgressBar.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupProgressBar.prototype.background = function (c, w, h) { + c.roundrect(0, h * 0.5 - 5, w, 10, 5, 5); + c.fillAndStroke(); +}; + +mxShapeMockupProgressBar.prototype.foreground = function (c, w, h) { + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupProgressBar.prototype.cst.FILL_COLOR2, '#ddeeff'); + var barPos = mxUtils.getValue(this.style, mxShapeMockupProgressBar.prototype.cst.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var deadzone = 0; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + c.setFillColor(fillColor2); + c.roundrect(0, h * 0.5 - 5, truePos, 10, 5, 5); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupProgressBar.prototype.cst.SHAPE_PROGRESS_BAR, mxShapeMockupProgressBar); + +Graph.handleFactory[mxShapeMockupProgressBar.prototype.cst.SHAPE_PROGRESS_BAR] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'barPos', this.barPos)))); + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height * 0.5); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 1000; + })]; + return handles; +}; + +function mxShapeMockupShoppingCart(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupShoppingCart, mxShape); +mxShapeMockupShoppingCart.prototype.cst = { + SHAPE_SHOPPING_CART: 'mxgraph.mockup.misc.shoppingCart' +}; + +mxShapeMockupShoppingCart.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.translate(x, y); + c.setStrokeWidth(3); + c.begin(); + c.moveTo(w * 0.975, h * 0.025); + c.lineTo(w * 0.82, h * 0.055); + c.lineTo(w * 0.59, h * 0.66); + c.lineTo(w * 0.7, h * 0.765); + c.arcTo(w * 0.06, h * 0.06, 0, 0, 1, w * 0.665, h * 0.86); + c.lineTo(w * 0.05, h * 0.86); + c.moveTo(w * 0.74, h * 0.26); + c.lineTo(w * 0.03, h * 0.28); + c.lineTo(w * 0.065, h * 0.61); + c.lineTo(w * 0.59, h * 0.66); + c.stroke(); + c.setStrokeWidth(1); + c.begin(); + c.moveTo(w * 0.15, h * 0.28); + c.lineTo(w * 0.15, h * 0.62); + c.moveTo(w * 0.265, h * 0.275); + c.lineTo(w * 0.265, h * 0.63); + c.moveTo(w * 0.38, h * 0.27); + c.lineTo(w * 0.38, h * 0.64); + c.moveTo(w * 0.495, h * 0.265); + c.lineTo(w * 0.495, h * 0.65); + c.moveTo(w * 0.61, h * 0.265); + c.lineTo(w * 0.61, h * 0.61); + c.stroke(); + c.begin(); + c.moveTo(w * 0.69, h * 0.405); + c.lineTo(w * 0.045, h * 0.405); + c.moveTo(w * 0.645, h * 0.52); + c.lineTo(w * 0.055, h * 0.52); + c.stroke(); + c.setFillColor(strokeColor); + c.ellipse(w * 0.075, h * 0.89, w * 0.1, h * 0.1); + c.fillAndStroke(); + c.ellipse(w * 0.62, h * 0.89, w * 0.1, h * 0.1); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupShoppingCart.prototype.cst.SHAPE_SHOPPING_CART, mxShapeMockupShoppingCart); + +function mxShapeMockupRating(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupRating, mxShape); +mxShapeMockupRating.prototype.cst = { + SHAPE_RATING: 'mxgraph.mockup.misc.rating', + RATING_STYLE: 'ratingStyle', + RATING_SCALE: 'ratingScale', + RATING_HEART: 'heart', + RATING_STAR: 'star', + EMPTY_FILL_COLOR: 'emptyFillColor', + GRADE: 'grade' +}; +mxShapeMockupRating.prototype.customProperties = [{ + name: 'ratingStyle', + dispName: 'Style', + type: 'enum', + enumList: [{ + val: 'heart', + dispName: 'Heart' + }, { + val: 'star', + dispName: 'Star' + }] +}, { + name: 'ratingScale', + dispName: 'Max. Rating', + type: 'int' +}, { + name: 'grade', + dispName: 'Current Rating', + type: 'int' +}, { + name: 'emptyFillColor', + dispName: 'Fill2 Color', + type: 'color' +}]; + +mxShapeMockupRating.prototype.paintVertexShape = function (c, x, y, w, h) { + var ratingStyle = mxUtils.getValue(this.style, mxShapeMockupRating.prototype.cst.RATING_STYLE, mxShapeMockupRating.prototype.cst.RATING_STAR); + var grade = mxUtils.getValue(this.style, mxShapeMockupRating.prototype.cst.GRADE, '5'); + var ratingScale = mxUtils.getValue(this.style, mxShapeMockupRating.prototype.cst.RATING_SCALE, '10'); + c.translate(x, y); + + if (ratingStyle === mxShapeMockupRating.prototype.cst.RATING_STAR) { + for (var i = 0; i < grade; i++) { + c.begin(); + c.moveTo(i * h * 1.5, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.364 * h, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.475 * h, 0); + c.lineTo(i * h * 1.5 + 0.586 * h, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.95 * h, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.66 * h, 0.551 * h); + c.lineTo(i * h * 1.5 + 0.775 * h, 0.9 * h); + c.lineTo(i * h * 1.5 + 0.475 * h, 0.684 * h); + c.lineTo(i * h * 1.5 + 0.175 * h, 0.9 * h); + c.lineTo(i * h * 1.5 + 0.29 * h, 0.551 * h); + c.close(); + c.fillAndStroke(); + } + } else if (ratingStyle === mxShapeMockupRating.prototype.cst.RATING_HEART) { + for (var i = 0; i < grade; i++) { + c.begin(); + c.moveTo(i * h * 1.5 + h * 0.519, h * 0.947); + c.curveTo(i * h * 1.5 + h * 0.558, h * 0.908, i * h * 1.5 + h * 0.778, h * 0.682, i * h * 1.5 + h * 0.916, h * 0.54); + c.curveTo(i * h * 1.5 + h * 1.039, h * 0.414, i * h * 1.5 + h * 1.036, h * 0.229, i * h * 1.5 + h * 0.924, h * 0.115); + c.curveTo(i * h * 1.5 + h * 0.812, 0, i * h * 1.5 + h * 0.631, 0, i * h * 1.5 + h * 0.519, h * 0.115); + c.curveTo(i * h * 1.5 + h * 0.408, 0, i * h * 1.5 + h * 0.227, 0, i * h * 1.5 + h * 0.115, h * 0.115); + c.curveTo(i * h * 1.5 + h * 0.03, h * 0.229, i * h * 1.5, h * 0.414, i * h * 1.5 + h * 0.123, h * 0.54); + c.close(); + c.fillAndStroke(); + } + } + + var emptyFillColor = mxUtils.getValue(this.style, mxShapeMockupRating.prototype.cst.EMPTY_FILL_COLOR, '#ffffff'); + c.setFillColor(emptyFillColor); + + if (ratingStyle === mxShapeMockupRating.prototype.cst.RATING_STAR) { + for (var i = grade; i < ratingScale; i++) { + c.begin(); + c.moveTo(i * h * 1.5, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.364 * h, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.475 * h, 0); + c.lineTo(i * h * 1.5 + 0.586 * h, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.95 * h, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.66 * h, 0.551 * h); + c.lineTo(i * h * 1.5 + 0.775 * h, 0.9 * h); + c.lineTo(i * h * 1.5 + 0.475 * h, 0.684 * h); + c.lineTo(i * h * 1.5 + 0.175 * h, 0.9 * h); + c.lineTo(i * h * 1.5 + 0.29 * h, 0.551 * h); + c.close(); + c.fillAndStroke(); + } + } else if (ratingStyle === mxShapeMockupRating.prototype.cst.RATING_HEART) { + for (var i = grade; i < ratingScale; i++) { + c.begin(); + c.moveTo(i * h * 1.5 + h * 0.519, h * 0.947); + c.curveTo(i * h * 1.5 + h * 0.558, h * 0.908, i * h * 1.5 + h * 0.778, h * 0.682, i * h * 1.5 + h * 0.916, h * 0.54); + c.curveTo(i * h * 1.5 + h * 1.039, h * 0.414, i * h * 1.5 + h * 1.036, h * 0.229, i * h * 1.5 + h * 0.924, h * 0.115); + c.curveTo(i * h * 1.5 + h * 0.812, 0, i * h * 1.5 + h * 0.631, 0, i * h * 1.5 + h * 0.519, h * 0.115); + c.curveTo(i * h * 1.5 + h * 0.408, 0, i * h * 1.5 + h * 0.227, 0, i * h * 1.5 + h * 0.115, h * 0.115); + c.curveTo(i * h * 1.5 + h * 0.03, h * 0.229, i * h * 1.5, h * 0.414, i * h * 1.5 + h * 0.123, h * 0.54); + c.close(); + c.fillAndStroke(); + } + } +}; + +mxCellRenderer.registerShape(mxShapeMockupRating.prototype.cst.SHAPE_RATING, mxShapeMockupRating); + +function mxShapeMockupMail(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupMail, mxShape); +mxShapeMockupMail.prototype.cst = { + SHAPE_MAIL: 'mxgraph.mockup.misc.mail2' +}; + +mxShapeMockupMail.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.setShadow(false); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupMail.prototype.cst.SHAPE_MAIL, mxShapeMockupMail); + +function mxShapeMockupVolumeSlider(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.barPos = 80; +} + +; +mxUtils.extend(mxShapeMockupVolumeSlider, mxShape); +mxShapeMockupVolumeSlider.prototype.cst = { + SHAPE_VOLUME_SLIDER: 'mxgraph.mockup.misc.volumeSlider', + BAR_POS: 'barPos', + FILL_COLOR2: 'fillColor2' +}; +mxShapeMockupVolumeSlider.prototype.customProperties = [{ + name: 'fillColor2', + dispName: 'Fill2 Color', + type: 'color' +}, { + name: 'barPos', + dispName: 'Handle Position', + type: 'float' +}]; + +mxShapeMockupVolumeSlider.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var barPos = mxUtils.getValue(this.style, mxShapeMockupVolumeSlider.prototype.cst.BAR_POS, '80'); + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupVolumeSlider.prototype.cst.FILL_COLOR2, '#ddeeff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var controlBarHeight = 25; + var h = Math.max(h, controlBarHeight); + var w = Math.max(w, 3.5 * controlBarHeight); + var speakerStartX = w - controlBarHeight; + var speakerStartY = (h - controlBarHeight) * 0.5; + c.begin(); + c.moveTo(speakerStartX + controlBarHeight * 0.05, speakerStartY + controlBarHeight * 0.35); + c.lineTo(speakerStartX + controlBarHeight * 0.15, speakerStartY + controlBarHeight * 0.35); + c.lineTo(speakerStartX + controlBarHeight * 0.3, speakerStartY + controlBarHeight * 0.2); + c.lineTo(speakerStartX + controlBarHeight * 0.3, speakerStartY + controlBarHeight * 0.8); + c.lineTo(speakerStartX + controlBarHeight * 0.15, speakerStartY + controlBarHeight * 0.65); + c.lineTo(speakerStartX + controlBarHeight * 0.05, speakerStartY + controlBarHeight * 0.65); + c.close(); + c.fill(); + var barMin = 0; + var barMax = w - controlBarHeight * 1.3; + var videoBarStartY = (h - controlBarHeight) * 0.5; + var barRange = barMax - barMin; + var barPos = barRange * barPos / 100; + var barEnd = barMin + barPos; + var soundStartX = w - controlBarHeight; + var soundStartY = (h - controlBarHeight) * 0.5; + c.begin(); + c.moveTo(soundStartX + controlBarHeight * 0.4, soundStartY + controlBarHeight * 0.35); + c.arcTo(controlBarHeight * 0.2, controlBarHeight * 0.3, 0, 0, 1, soundStartX + controlBarHeight * 0.4, soundStartY + controlBarHeight * 0.65); + c.moveTo(soundStartX + controlBarHeight * 0.425, soundStartY + controlBarHeight * 0.25); + c.arcTo(controlBarHeight * 0.225, controlBarHeight * 0.35, 0, 0, 1, soundStartX + controlBarHeight * 0.425, soundStartY + controlBarHeight * 0.75); + c.moveTo(soundStartX + controlBarHeight * 0.5, soundStartY + controlBarHeight * 0.2); + c.arcTo(controlBarHeight * 0.25, controlBarHeight * 0.4, 0, 0, 1, soundStartX + controlBarHeight * 0.5, soundStartY + controlBarHeight * 0.8); + c.fillAndStroke(); + var videoBarStartX = 0; + var videoBarStartY = (h - controlBarHeight) * 0.5; + var videoBarEndX = w - controlBarHeight * 1.3; + c.roundrect(videoBarStartX, videoBarStartY + controlBarHeight * 0.35, videoBarEndX, controlBarHeight * 0.3, 5, 5); + c.fill(); + c.setShadow(false); + c.setFillColor(fillColor2); + c.roundrect(barMin, videoBarStartY + controlBarHeight * 0.35, barEnd, controlBarHeight * 0.3, 5, 5); + c.fill(); + c.ellipse(barEnd - controlBarHeight * 0.25, videoBarStartY + controlBarHeight * 0.25, controlBarHeight * 0.5, controlBarHeight * 0.5); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupVolumeSlider.prototype.cst.SHAPE_VOLUME_SLIDER, mxShapeMockupVolumeSlider); + +Graph.handleFactory[mxShapeMockupVolumeSlider.prototype.cst.SHAPE_VOLUME_SLIDER] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'barPos', this.barPos)))); + return new mxPoint(bounds.x + barPos * (bounds.width - 32.5) / 100, bounds.y + bounds.height * 0.5); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 1000; + })]; + return handles; +}; + +function mxShapeMockupEdit(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupEdit, mxShape); +mxShapeMockupEdit.prototype.cst = { + SHAPE_EDIT: 'mxgraph.mockup.misc.editIcon' +}; + +mxShapeMockupEdit.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + c.translate(x, y); + c.roundrect(0, 0, w, h, w * 0.05, h * 0.05); + c.fillAndStroke(); + c.setShadow(false); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.11, h * 0.8); + c.lineTo(w * 0.2, h * 0.89); + c.lineTo(w * 0.05, h * 0.95); + c.close(); + c.moveTo(w * 0.74, h * 0.16); + c.lineTo(w * 0.84, h * 0.26); + c.lineTo(w * 0.22, h * 0.88); + c.lineTo(w * 0.12, h * 0.78); + c.close(); + c.moveTo(w * 0.755, h * 0.145); + c.lineTo(w * 0.82, h * 0.08); + c.lineTo(w * 0.92, h * 0.18); + c.lineTo(w * 0.855, h * 0.245); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupEdit.prototype.cst.SHAPE_EDIT, mxShapeMockupEdit); + +function mxShapeMockupPrint(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupPrint, mxShape); +mxShapeMockupPrint.prototype.cst = { + SHAPE_PRINT: 'mxgraph.mockup.misc.printIcon' +}; + +mxShapeMockupPrint.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + c.translate(x, y); + c.roundrect(0, 0, w, h, w * 0.05, h * 0.05); + c.fillAndStroke(); + c.setShadow(false); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.15, h * 0.58); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.18, h * 0.55); + c.lineTo(w * 0.82, h * 0.55); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.85, h * 0.58); + c.lineTo(w * 0.85, h * 0.82); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.82, h * 0.85); + c.lineTo(w * 0.18, h * 0.85); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.15, h * 0.82); + c.close(); + c.moveTo(w * 0.7, h * 0.52); + c.lineTo(w * 0.3, h * 0.52); + c.lineTo(w * 0.3, h * 0.15); + c.lineTo(w * 0.55, h * 0.15); + c.lineTo(w * 0.55, h * 0.3); + c.lineTo(w * 0.7, h * 0.3); + c.close(); + c.moveTo(w * 0.57, h * 0.15); + c.lineTo(w * 0.7, h * 0.28); + c.lineTo(w * 0.57, h * 0.28); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupPrint.prototype.cst.SHAPE_PRINT, mxShapeMockupPrint); + +function mxShapeMockupShare(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupShare, mxShape); +mxShapeMockupShare.prototype.cst = { + SHAPE_SHARE: 'mxgraph.mockup.misc.shareIcon' +}; + +mxShapeMockupShare.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + c.translate(x, y); + c.roundrect(0, 0, w, h, w * 0.05, h * 0.05); + c.fillAndStroke(); + c.setShadow(false); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.15, h * 0.18); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.18, h * 0.15); + c.lineTo(w * 0.82, h * 0.15); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.85, h * 0.18); + c.lineTo(w * 0.85, h * 0.82); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.82, h * 0.85); + c.lineTo(w * 0.18, h * 0.85); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.15, h * 0.82); + c.close(); + c.fill(); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + c.setFillColor(fillColor); + c.begin(); + c.moveTo(w * 0.563, h * 0.34); + c.arcTo(w * 0.095, h * 0.095, 0, 1, 1, w * 0.603, h * 0.42); + c.lineTo(w * 0.44, h * 0.5); + c.lineTo(w * 0.602, h * 0.582); + c.arcTo(w * 0.095, h * 0.095, 0, 1, 1, w * 0.563, h * 0.653); + c.lineTo(w * 0.403, h * 0.575); + c.arcTo(w * 0.095, h * 0.095, 0, 1, 1, w * 0.4, h * 0.42); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupShare.prototype.cst.SHAPE_SHARE, mxShapeMockupShare); + +function mxShapeMockupTrashcan(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupTrashcan, mxShape); +mxShapeMockupTrashcan.prototype.cst = { + SHAPE_TRASHCAN: 'mxgraph.mockup.misc.trashcanIcon' +}; + +mxShapeMockupTrashcan.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + c.translate(x, y); + c.roundrect(0, 0, w, h, w * 0.05, h * 0.05); + c.fillAndStroke(); + c.setShadow(false); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.24, h * 0.24); + c.arcTo(w * 0.04, h * 0.04, 0, 0, 1, w * 0.24, h * 0.16); + c.lineTo(w * 0.4, h * 0.16); + c.lineTo(w * 0.4, h * 0.12); + c.lineTo(w * 0.6, h * 0.12); + c.lineTo(w * 0.6, h * 0.16); + c.lineTo(w * 0.76, h * 0.16); + c.arcTo(w * 0.04, h * 0.04, 0, 0, 1, w * 0.76, h * 0.24); + c.close(); + c.fill(); + c.roundrect(w * 0.26, h * 0.3, w * 0.1, h * 0.6, w * 0.06, h * 0.06); + c.fill(); + c.roundrect(w * 0.44, h * 0.3, w * 0.1, h * 0.6, w * 0.06, h * 0.06); + c.fill(); + c.roundrect(w * 0.62, h * 0.3, w * 0.1, h * 0.6, w * 0.06, h * 0.06); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupTrashcan.prototype.cst.SHAPE_TRASHCAN, mxShapeMockupTrashcan); + +function mxShapeMockupCopyright(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupCopyright, mxShape); +mxShapeMockupCopyright.prototype.cst = { + SHAPE_COPYRIGHT: 'mxgraph.mockup.misc.copyrightIcon' +}; + +mxShapeMockupCopyright.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + c.translate(x, y); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + c.setShadow(false); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.713, h * 0.288); + c.arcTo(w * 0.3, h * 0.3, 0, 1, 0, w * 0.713, h * 0.712); + c.lineTo(w * 0.784, h * 0.783); + c.arcTo(w * 0.4, h * 0.4, 0, 1, 1, w * 0.784, h * 0.217); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupCopyright.prototype.cst.SHAPE_COPYRIGHT, mxShapeMockupCopyright); + +function mxShapeMockupRegistered(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupRegistered, mxShape); +mxShapeMockupRegistered.prototype.cst = { + SHAPE_REGISTERED: 'mxgraph.mockup.misc.registeredIcon' +}; + +mxShapeMockupRegistered.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + c.translate(x, y); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + c.setShadow(false); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.29, h * 0.9); + c.lineTo(w * 0.29, h * 0.09); + c.lineTo(w * 0.5, h * 0.09); + c.arcTo(w * 0.2195, h * 0.2195, 0, 0, 1, w * 0.545, h * 0.525); + c.lineTo(w * 0.738, h * 0.91); + c.lineTo(w * 0.674, h * 0.91); + c.lineTo(w * 0.4825, h * 0.53); + c.lineTo(w * 0.35, h * 0.53); + c.lineTo(w * 0.35, h * 0.9); + c.close(); + c.moveTo(w * 0.35, h * 0.47); + c.lineTo(w * 0.5, h * 0.47); + c.arcTo(w * 0.15, h * 0.15, 0, 0, 0, w * 0.5, h * 0.15); + c.lineTo(w * 0.35, h * 0.15); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupRegistered.prototype.cst.SHAPE_REGISTERED, mxShapeMockupRegistered); + +function mxShapeMockupVolume(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupVolume, mxShape); +mxShapeMockupVolume.prototype.cst = { + SHAPE_VOLUME: 'mxgraph.mockup.misc.volumeIcon' +}; + +mxShapeMockupVolume.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + c.translate(x, y); + c.roundrect(0, 0, w, h, w * 0.05, h * 0.05); + c.fillAndStroke(); + c.setShadow(false); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.1, h * 0.3); + c.lineTo(w * 0.3, h * 0.3); + c.lineTo(w * 0.5, h * 0.15); + c.lineTo(w * 0.5, h * 0.85); + c.lineTo(w * 0.3, h * 0.7); + c.lineTo(w * 0.1, h * 0.7); + c.close(); + c.fill(); + c.begin(); + c.moveTo(w * 0.6, h * 0.4); + c.arcTo(w * 0.2, h * 0.2, 0, 0, 1, w * 0.6, h * 0.6); + c.moveTo(w * 0.7, h * 0.3); + c.arcTo(w * 0.3, h * 0.3, 0, 0, 1, w * 0.7, h * 0.7); + c.moveTo(w * 0.8, h * 0.2); + c.arcTo(w * 0.4, h * 0.4, 0, 0, 1, w * 0.8, h * 0.8); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupVolume.prototype.cst.SHAPE_VOLUME, mxShapeMockupVolume); + +function mxShapeMockupRuler(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupRuler, mxShape); +mxShapeMockupRuler.prototype.cst = { + SHAPE_RULER: 'mxgraph.mockup.misc.ruler', + ORIENTATION: 'rulerOrient', + UNIT_SIZE: 'unitSize', + FACE_UP: 'up', + FACE_DOWN: 'down' +}; + +mxShapeMockupRuler.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupRuler.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupRuler.prototype.foreground = function (c, w, h) { + var facing = mxUtils.getValue(this.style, mxShapeMockupRuler.prototype.cst.ORIENTATION, mxShapeMockupRuler.prototype.cst.FACE_DOWN); + var unitSize = mxUtils.getValue(this.style, mxShapeMockupRuler.prototype.cst.UNIT_SIZE, '10'); + unitSize = Math.max(unitSize, 1); + var currX = unitSize; + var i = 1; + + if (facing === mxShapeMockupRuler.prototype.cst.FACE_DOWN) { + c.begin(); + + while (currX < w) { + var remainder = i % 10; + + if (remainder === 0) { + c.moveTo(currX, h * 0.5); + c.lineTo(currX, h); + } else if (remainder === 5) { + c.moveTo(currX, h * 0.7); + c.lineTo(currX, h); + } else { + c.moveTo(currX, h * 0.8); + c.lineTo(currX, h); + } + + currX = currX + unitSize; + i = i + 1; + } + + c.stroke(); + } else if (facing === mxShapeMockupRuler.prototype.cst.FACE_UP) { + c.begin(); + + while (currX < w) { + var remainder = i % 10; + + if (remainder === 0) { + c.moveTo(currX, h * 0.5); + c.lineTo(currX, 0); + } else if (remainder === 5) { + c.moveTo(currX, h * 0.3); + c.lineTo(currX, 0); + } else { + c.moveTo(currX, h * 0.2); + c.lineTo(currX, 0); + } + + currX = currX + unitSize; + i = i + 1; + } + + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupRuler.prototype.cst.SHAPE_RULER, mxShapeMockupRuler); + +function mxShapeMockupRuler2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupRuler2, mxShape); +mxShapeMockupRuler2.prototype.cst = { + SHAPE_RULER: 'mxgraph.mockup.misc.ruler2', + ORIENTATION: 'rulerOrient', + UNIT_SIZE: 'dx', + FACE_UP: 'up', + FACE_DOWN: 'down' +}; +mxShapeMockupRuler2.prototype.customProperties = [{ + name: 'rulerOrient', + dispName: 'Orientation', + defVal: 'up', + type: 'enum', + enumList: [{ + val: 'up', + dispName: 'Up' + }, { + val: 'down', + dispName: 'Down' + }] +}, { + name: 'dx', + dispName: 'Unit Size', + type: 'float', + min: 0, + defVal: 100 +}]; + +mxShapeMockupRuler2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupRuler2.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupRuler2.prototype.foreground = function (c, x, y, w, h) { + var facing = mxUtils.getValue(this.style, mxShapeMockupRuler2.prototype.cst.ORIENTATION, mxShapeMockupRuler2.prototype.cst.FACE_DOWN); + var fontColor = mxUtils.getValue(this.style, mxConstants.STYLE_FONTCOLOR, '#000000'); + var dx = mxUtils.getValue(this.style, 'dx', '100'); + var unitSize = dx / 10; + this.state.style['spacingLeft'] = Math.round(1000 * Math.max(0, Math.min(w, dx))) / 1000 - 4; + unitSize = Math.max(unitSize, 1); + c.setFontColor(fontColor); + var currX = unitSize; + var i = 1; + + if (facing === mxShapeMockupRuler2.prototype.cst.FACE_DOWN) { + c.begin(); + + while (currX < w) { + var remainder = i % 10; + + if (remainder === 0) { + c.moveTo(currX, h - 10); + c.lineTo(currX, h); + var unit = this.state.view.graph.getLabel(this.state.cell); + + if (!isNaN(unit)) { + c.stroke(); + var num = i * Math.round(100 * unit) / 1000; + + if (i != 10 && num != 0) { + c.text(currX, (h - 10) * 0.5, 0, 0, num.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + c.begin(); + } + } else if (remainder === 5) { + c.moveTo(currX, h - 6); + c.lineTo(currX, h); + } else { + c.moveTo(currX, h - 4); + c.lineTo(currX, h); + } + + currX = currX + unitSize; + i = i + 1; + } + + c.stroke(); + } else if (facing === mxShapeMockupRuler2.prototype.cst.FACE_UP) { + c.begin(); + + while (currX < w) { + var remainder = i % 10; + + if (remainder === 0) { + c.moveTo(currX, 10); + c.lineTo(currX, 0); + var unit = this.state.view.graph.getLabel(this.state.cell); + + if (!isNaN(unit)) { + c.stroke(); + var num = i * Math.round(100 * unit) / 1000; + + if (i != 10 && num != 0) { + c.text(currX, (h + 10) * 0.5, 0, 0, num.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + c.begin(); + } + } else if (remainder === 5) { + c.moveTo(currX, 6); + c.lineTo(currX, 0); + } else { + c.moveTo(currX, 4); + c.lineTo(currX, 0); + } + + currX = currX + unitSize; + i = i + 1; + } + + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupRuler2.prototype.cst.SHAPE_RULER, mxShapeMockupRuler2); + +Graph.handleFactory[mxShapeMockupRuler2.prototype.cst.SHAPE_RULER] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'spacingLeft', 'align', 'varticalAlign', 'spacingBottom', 'spacingTop', 'spacingRight', 'spacing'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + bounds.height - 10); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(1000 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 1000; + this.state.style['spacingLeft'] = Math.round(1000 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 1000 - 4; + this.state.style['align'] = 'left'; + this.state.style['verticalAlign'] = 'middle'; + var facing = mxUtils.getValue(this.state.style, 'rulerOrient', '1'); + + if (facing == 'down') { + this.state.style['spacingBottom'] = 10; + this.state.style['spacingTop'] = 0; + } else { + this.state.style['spacingBottom'] = 0; + this.state.style['spacingTop'] = 10; + } + + this.state.style['spacingRight'] = 0; + this.state.style['spacing'] = 0; + })]; + return handles; +}; + +function mxShapeMockupRevisionTable(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupRevisionTable, mxShape); +mxShapeMockupRevisionTable.prototype.cst = { + SHAPE_REVISION_TABLE: 'mxgraph.mockup.misc.revisionTable', + MAIN_TEXT: 'mainText', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize' +}; + +mxShapeMockupRevisionTable.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupRevisionTable.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupRevisionTable.prototype.foreground = function (c, w, h) { + var mainText = mxUtils.getValue(this.style, mxShapeMockupRevisionTable.prototype.cst.MAIN_TEXT, '').toString().split(','); + var textColor = mxUtils.getValue(this.style, mxShapeMockupRevisionTable.prototype.cst.TEXT_COLOR, '#999999'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupRevisionTable.prototype.cst.TEXT_SIZE, '17'); + c.begin(); + c.moveTo(0, h * 0.33); + c.lineTo(w, h * 0.33); + c.moveTo(0, h * 0.67); + c.lineTo(w, h * 0.67); + c.moveTo(w * 0.125, h * 0.33); + c.lineTo(w * 0.125, h); + c.moveTo(w * 0.5, h * 0.33); + c.lineTo(w * 0.5, h); + c.stroke(); + c.setFontSize(textSize); + c.setFontColor(textColor); + c.text(w * 0.5, h * 0.165, 0, 0, mainText[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.0625, h * 0.5, 0, 0, mainText[1], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.3125, h * 0.5, 0, 0, mainText[2], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.75, h * 0.5, 0, 0, mainText[3], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.0625, h * 0.835, 0, 0, mainText[4], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.3125, h * 0.835, 0, 0, mainText[5], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.75, h * 0.835, 0, 0, mainText[6], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupRevisionTable.prototype.cst.SHAPE_REVISION_TABLE, mxShapeMockupRevisionTable); + +function mxShapeMockupStatusBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupStatusBar, mxShape); +mxShapeMockupStatusBar.prototype.cst = { + SHAPE_STATUS_BAR: 'mxgraph.mockup.misc.statusBar', + MAIN_TEXT: 'mainText', + FILL_COLOR2: 'fillColor2', + STROKE_COLOR2: 'strokeColor2', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize' +}; + +mxShapeMockupStatusBar.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + w = Math.max(w, 105); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupStatusBar.prototype.background = function (c, w, h) { + c.rect(0, h * 0.5 - 15, w, 30); + c.fillAndStroke(); +}; + +mxShapeMockupStatusBar.prototype.foreground = function (c, w, h) { + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupStatusBar.prototype.cst.FILL_COLOR2, '#ddeeff'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeMockupStatusBar.prototype.cst.STROKE_COLOR2, '#008cff'); + var mainText = mxUtils.getValue(this.style, mxShapeMockupStatusBar.prototype.cst.MAIN_TEXT, '').toString().split(','); + var textColor = mxUtils.getValue(this.style, mxShapeMockupStatusBar.prototype.cst.TEXT_COLOR, '#999999'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupStatusBar.prototype.cst.TEXT_SIZE, '17'); + c.setFillColor(fillColor2); + c.roundrect(5, h * 0.5 - 10, (w - 75) * 0.46, 20, 5, 5); + c.fill(); + c.roundrect(10 + (w - 75) * 0.46, h * 0.5 - 10, (w - 75) * 0.23, 20, 5, 5); + c.fill(); + c.roundrect(15 + (w - 75) * 0.69, h * 0.5 - 10, (w - 75) * 0.276, 20, 5, 5); + c.fill(); + c.setFontSize(textSize); + c.setFontColor(textColor); + c.text(10, h * 0.5, 0, 0, mainText[0], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(10 + (w - 75) * 0.575, h * 0.5, 0, 0, mainText[1], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(15 + (w - 75) * 0.828, h * 0.5, 0, 0, mainText[2], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setStrokeColor(strokeColor2); + c.ellipse(w - 25, h * 0.5 - 10, 20, 20); + c.stroke(); + c.begin(); + c.moveTo(w - 55, h * 0.5 + 10); + c.lineTo(w - 35, h * 0.5 + 10); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupStatusBar.prototype.cst.SHAPE_STATUS_BAR, mxShapeMockupStatusBar); + +function mxShapeMockupPin(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupPin, mxShape); +mxShapeMockupPin.prototype.cst = { + SHAPE_PIN: 'mxgraph.mockup.misc.pin', + FILL_COLOR2: 'fillColor2', + FILL_COLOR3: 'fillColor3' +}; +mxShapeMockupPin.prototype.customProperties = [{ + name: 'fillColor2', + dispName: 'Fill2 Color', + type: 'color' +}, { + name: 'fillColor3', + dispName: 'Fill3 Color', + type: 'color' +}]; + +mxShapeMockupPin.prototype.paintVertexShape = function (c, x, y, w, h) { + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupPin.prototype.cst.FILL_COLOR2, '#000000'); + var fillColor3 = mxUtils.getValue(this.style, mxShapeMockupPin.prototype.cst.FILL_COLOR3, '#000000'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setShadow(false); + c.translate(x, y); + c.setStrokeWidth(3); + c.setStrokeColor('#666666'); + c.begin(); + c.moveTo(w * 0.5, h * 0.4); + c.lineTo(w * 0.5, h); + c.stroke(); + c.setStrokeWidth(2); + c.setStrokeColor(strokeColor); + c.setGradient(fillColor2, fillColor3, 0, 0, w, h * 0.4, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(0.9); + c.ellipse(0, 0, w, h * 0.4); + c.fillAndStroke(); + c.setFillColor('#ffffff'); + c.setAlpha(0.5); + c.ellipse(w * 0.2, h * 0.08, w * 0.3, h * 0.12); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupPin.prototype.cst.SHAPE_PIN, mxShapeMockupPin); + +function mxShapeMockupMiscRRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupMiscRRect, mxShape); +mxShapeMockupMiscRRect.prototype.cst = { + RRECT: 'mxgraph.mockup.misc.rrect', + R_SIZE: 'rSize' +}; +mxShapeMockupMiscRRect.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeMockupMiscRRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupMiscRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupMiscRRect.prototype.cst.RRECT, mxShapeMockupMiscRRect); + +function mxShapeMockupMiscAnchor(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; +} + +; +mxUtils.extend(mxShapeMockupMiscAnchor, mxShape); +mxShapeMockupMiscAnchor.prototype.cst = { + ANCHOR: 'mxgraph.mockup.misc.anchor' +}; + +mxShapeMockupMiscAnchor.prototype.paintVertexShape = function (c, x, y, w, h) {}; + +mxCellRenderer.registerShape(mxShapeMockupMiscAnchor.prototype.cst.ANCHOR, mxShapeMockupMiscAnchor); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupNavigation.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupNavigation.js new file mode 100644 index 0000000000000..65cf371ea4a4d --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupNavigation.js @@ -0,0 +1,651 @@ +"use strict"; + +function mxShapeMockupBreadcrumb(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupBreadcrumb, mxShape); +mxShapeMockupBreadcrumb.prototype.cst = { + SHAPE_BREADCRUMB: 'mxgraph.mockup.navigation.breadcrumb', + MAIN_TEXT: 'mainText', + TEXT_SIZE: 'textSize', + TEXT_COLOR: 'textColor', + TEXT_COLOR2: 'textColor2' +}; + +mxShapeMockupBreadcrumb.prototype.paintVertexShape = function (c, x, y, w, h) { + var textStrings = mxUtils.getValue(this.style, mxShapeMockupBreadcrumb.prototype.cst.MAIN_TEXT, 'Layer 1, Layer 2, Layer 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupBreadcrumb.prototype.cst.TEXT_COLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxShapeMockupBreadcrumb.prototype.cst.TEXT_COLOR2, '#008cff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupBreadcrumb.prototype.cst.TEXT_SIZE, '17').toString(); + var separatorColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#c4c4c4'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var labelOffset = 10; + + for (var i = 0; i < buttonNum; i++) { + buttonWidths[i] = mxUtils.getSizeForString(textStrings[i], fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 20); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + c.translate(x, y); + c.setShadow(false); + this.separators(c, trueW, trueH, buttonNum, buttonWidths, labelOffset, minW, separatorColor); + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) { + if (i + 1 === buttonNum) { + c.setFontColor(selectedFontColor); + } else { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeMockupBreadcrumb.prototype.separators = function (c, w, h, buttonNum, buttonWidths, labelOffset, minW, separatorColor) { + c.setStrokeColor(separatorColor); + var midY = h * 0.5; + var size = 5; + c.begin(); + + for (var i = 1; i < buttonNum; i++) { + var currWidth = 0; + + for (var j = 0; j < i; j++) { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth = currWidth * w / minW; + c.moveTo(currWidth - size * 0.5, midY - size); + c.lineTo(currWidth + size * 0.5, midY); + c.lineTo(currWidth - size * 0.5, midY + size); + } + + c.stroke(); +}; + +mxShapeMockupBreadcrumb.prototype.buttonText = function (c, w, h, textString, buttonWidth, fontSize, minW, trueW) { + c.begin(); + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, h * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupBreadcrumb.prototype.cst.SHAPE_BREADCRUMB, mxShapeMockupBreadcrumb); + +function mxShapeMockupStepBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupStepBar, mxShape); +mxShapeMockupStepBar.prototype.cst = { + SHAPE_STEP_BAR: 'mxgraph.mockup.navigation.stepBar', + SELECTED: '+', + MAIN_TEXT: 'mainText', + TEXT_SIZE: 'textSize', + TEXT_COLOR: 'textColor', + TEXT_COLOR2: 'textColor2' +}; +mxShapeMockupStepBar.prototype.customProperties = [{ + name: 'mainText', + dispName: 'Text', + type: 'string' +}, { + name: 'textSize', + dispName: 'Text Size', + type: 'float' +}, { + name: 'textColor', + dispName: 'Text Color', + type: 'color' +}, { + name: 'textColor2', + dispName: 'Text2 Color', + type: 'color' +}]; + +mxShapeMockupStepBar.prototype.paintVertexShape = function (c, x, y, w, h) { + var textStrings = mxUtils.getValue(this.style, mxShapeMockupStepBar.prototype.cst.MAIN_TEXT, 'Step 1, Step 2, Step 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupStepBar.prototype.cst.TEXT_COLOR, '#666666'); + var currColor = mxUtils.getValue(this.style, mxShapeMockupStepBar.prototype.cst.TEXT_COLOR2, '#008cff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupStepBar.prototype.cst.TEXT_SIZE, '17').toString(); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#c4c4c4'); + var doneColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#666666'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var labelOffset = 10; + var selectedButton = -1; + + for (var i = 0; i < buttonNum; i++) { + var buttonText = textStrings[i]; + + if (buttonText.charAt(0) === mxShapeMockupStepBar.prototype.cst.SELECTED) { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + buttonWidths[i] = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 20); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + c.translate(x, y); + this.stepLineBg(c, trueW, trueH, buttonNum, buttonWidths, labelOffset, minW, bgColor, fontSize, trueW); + c.setShadow(false); + this.stepLineFg(c, trueW, trueH, buttonNum, buttonWidths, labelOffset, minW, bgColor, doneColor, currColor, fontSize, trueW, selectedButton); + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) { + if (i >= selectedButton) { + c.setFontColor(currColor); + } else { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeMockupStepBar.prototype.stepLineBg = function (c, w, h, buttonNum, buttonWidths, labelOffset, minW, bgColor, fontSize, trueW) { + c.setStrokeColor(bgColor); + c.setFillColor(bgColor); + var midY = fontSize * 2; + var size = 10; + var startX = 0; + var endX = 0; + + for (var i = 0; i < buttonNum; i++) { + var currWidth = 0; + + for (var j = 0; j < i; j++) { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth += buttonWidths[i] * 0.5 + labelOffset; + currWidth = currWidth * w / minW; + + if (i === 0) { + startX = currWidth; + } else if (i + 1 === buttonNum) { + endX = currWidth; + } + + c.begin(); + c.ellipse(currWidth - size, midY - size, 2 * size, 2 * size); + c.fillAndStroke(); + } + + c.begin(); + c.rect(startX, midY - size * 0.2, endX - startX, size * 0.4); + c.fillAndStroke(); +}; + +mxShapeMockupStepBar.prototype.stepLineFg = function (c, w, h, buttonNum, buttonWidths, labelOffset, minW, bgColor, doneColor, currColor, fontSize, trueW, selectedButton) { + c.setStrokeColor(doneColor); + var midY = fontSize * 2; + var size = 10 * 0.75; + var startX = 0; + var endX = 0; + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + + for (var i = 0; i <= selectedButton; i++) { + var currWidth = 0; + + for (var j = 0; j < i; j++) { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth += buttonWidths[i] * 0.5 + labelOffset; + currWidth = currWidth * w / minW; + + if (i === 0) { + startX = currWidth; + } else if (i === selectedButton) { + endX = currWidth; + } + } + + c.setFillColor(doneColor); + c.begin(); + c.rect(startX, midY - size * 0.15, endX - startX, size * 0.3); + c.fill(); + c.setFillColor(bgColor); + + for (var i = 0; i <= selectedButton; i++) { + var currWidth = 0; + + for (var j = 0; j < i; j++) { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth += buttonWidths[i] * 0.5 + labelOffset; + currWidth = currWidth * w / minW; + + if (i === 0) { + startX = currWidth; + } else if (i + 1 === selectedButton) { + endX = currWidth; + } + + if (i < selectedButton) { + c.setStrokeWidth(strokeWidth); + c.begin(); + c.ellipse(currWidth - size, midY - size, 2 * size, 2 * size); + c.fillAndStroke(); + c.setStrokeWidth(strokeWidth * 0.5); + c.begin(); + c.ellipse(currWidth - size * 0.6, midY - size * 0.6, 2 * size * 0.6, 2 * size * 0.6); + c.fillAndStroke(); + } else { + c.setStrokeWidth(strokeWidth); + c.setFillColor(bgColor); + c.setStrokeColor(bgColor); + c.begin(); + c.ellipse(currWidth - size / 0.75, midY - size / 0.75, 2 * size / 0.75, 2 * size / 0.75); + c.fillAndStroke(); + c.setStrokeWidth(strokeWidth); + c.setFillColor('#ffffff'); + c.setStrokeColor('#ffffff'); + c.begin(); + c.ellipse(currWidth - size, midY - size, 2 * size, 2 * size); + c.fillAndStroke(); + c.setFillColor(currColor); + c.setStrokeColor(currColor); + c.setStrokeWidth(strokeWidth * 0.5); + c.begin(); + c.ellipse(currWidth - size * 0.7, midY - size * 0.7, 2 * size * 0.7, 2 * size * 0.7); + c.fillAndStroke(); + } + } +}; + +mxShapeMockupStepBar.prototype.buttonText = function (c, w, h, textString, buttonWidth, fontSize, minW, trueW) { + if (textString.charAt(0) === mxShapeMockupStepBar.prototype.cst.SELECTED) { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, fontSize * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupStepBar.prototype.cst.SHAPE_STEP_BAR, mxShapeMockupStepBar); + +function mxShapeMockupCoverFlow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupCoverFlow, mxShape); +mxShapeMockupCoverFlow.prototype.cst = { + SHAPE_COVER_FLOW: 'mxgraph.mockup.navigation.coverFlow' +}; + +mxShapeMockupCoverFlow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(w * 0.0924, h * 0.07); + c.lineTo(w * 0.005, h * 0.01); + c.lineTo(w * 0.005, h * 0.99); + c.lineTo(w * 0.0924, h * 0.93); + c.moveTo(w * 0.1774, h * 0.09); + c.lineTo(w * 0.0924, h * 0.01); + c.lineTo(w * 0.0924, h * 0.99); + c.lineTo(w * 0.1774, h * 0.91); + c.moveTo(w * 0.3373, h * 0.22); + c.lineTo(w * 0.1774, h * 0.01); + c.lineTo(w * 0.1774, h * 0.99); + c.lineTo(w * 0.3373, h * 0.78); + c.moveTo(w * 0.912, h * 0.07); + c.lineTo(w * 0.998, h * 0.01); + c.lineTo(w * 0.998, h * 0.99); + c.lineTo(w * 0.912, h * 0.93); + c.moveTo(w * 0.8271, h * 0.09); + c.lineTo(w * 0.912, h * 0.01); + c.lineTo(w * 0.912, h * 0.99); + c.lineTo(w * 0.8271, h * 0.91); + c.moveTo(w * 0.6672, h * 0.22); + c.lineTo(w * 0.8271, h * 0.01); + c.lineTo(w * 0.8271, h * 0.99); + c.lineTo(w * 0.6672, h * 0.78); + c.moveTo(w * 0.3373, h * 0.005); + c.lineTo(w * 0.3373, h * 0.995); + c.lineTo(w * 0.6672, h * 0.995); + c.lineTo(w * 0.6672, h * 0.005); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupCoverFlow.prototype.cst.SHAPE_COVER_FLOW, mxShapeMockupCoverFlow); + +function mxShapeMockupScrollBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupScrollBar, mxShape); +mxShapeMockupScrollBar.prototype.cst = { + SHAPE_SCROLL_BAR: 'mxgraph.mockup.navigation.scrollBar', + FILL_COLOR2: 'fillColor2', + STROKE_COLOR2: 'strokeColor2', + BAR_POS: 'barPos' +}; +mxShapeMockupScrollBar.prototype.customProperties = [{ + name: 'barPos', + dispName: 'Handle Position', + type: 'float' +}, { + name: 'fillColor2', + dispName: 'Fill2 Color', + type: 'color' +}, { + name: 'strokeColor2', + dispName: 'Stroke2 Color', + type: 'color' +}]; + +mxShapeMockupScrollBar.prototype.paintVertexShape = function (c, x, y, w, h) { + h = 20; + var buttonX = 20; + w = Math.max(w, 2 * buttonX); + c.translate(x, y); + this.background(c, w, h, buttonX); + c.setShadow(false); + this.foreground(c, w, h, buttonX); + this.barPos = 20; +}; + +mxShapeMockupScrollBar.prototype.background = function (c, w, h, buttonX) { + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.begin(); + c.moveTo(buttonX, 0); + c.lineTo(buttonX, h); + c.moveTo(w - buttonX, 0); + c.lineTo(w - buttonX, h); + c.stroke(); +}; + +mxShapeMockupScrollBar.prototype.foreground = function (c, w, h, buttonX) { + var barPos = mxUtils.getValue(this.style, mxShapeMockupScrollBar.prototype.cst.BAR_POS, '20'); + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupScrollBar.prototype.cst.FILL_COLOR2, '#99ddff'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeMockupScrollBar.prototype.cst.STROKE_COLOR2, 'none'); + barPos = Math.max(0, barPos); + barPos = Math.min(100, barPos); + c.setStrokeColor(strokeColor2); + c.setFillColor(fillColor2); + c.begin(); + c.moveTo(buttonX * 0.2, h * 0.5); + c.lineTo(buttonX * 0.8, h * 0.2); + c.lineTo(buttonX * 0.8, h * 0.8); + c.close(); + c.moveTo(w - buttonX * 0.2, h * 0.5); + c.lineTo(w - buttonX * 0.8, h * 0.2); + c.lineTo(w - buttonX * 0.8, h * 0.8); + c.close(); + c.fillAndStroke(); + var barWidth = 60; + var barMin = buttonX; + var barMax = w - buttonX; + barWidth = Math.min(barWidth, barMax - barMin); + var barCenterMin = barMin + barWidth / 2; + var barCenterMax = barMax - barWidth / 2; + var barCenterRange = barCenterMax - barCenterMin; + var barCenterPos = barCenterRange * barPos / 100; + var barStart = barMin + barCenterPos; + c.roundrect(barStart, h * 0.15, barWidth, h * 0.7, 5, 5); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupScrollBar.prototype.cst.SHAPE_SCROLL_BAR, mxShapeMockupScrollBar); + +Graph.handleFactory[mxShapeMockupScrollBar.prototype.cst.SHAPE_SCROLL_BAR] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'barPos', this.barPos)))); + return new mxPoint(bounds.x + (bounds.width - 100) * barPos / bounds.width / 100 * bounds.width + 50, bounds.y + 10); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x - 50) * 100 / (bounds.width - 100)))) / 1000; + })]; + return handles; +}; + +function mxShapeMockupPagination(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupPagination, mxShape); +mxShapeMockupPagination.prototype.cst = { + MAIN_TEXT: 'linkText', + TEXT_SIZE: 'textSize', + TEXT_COLOR: 'textColor', + SHAPE_PAGINATION: 'mxgraph.mockup.navigation.pagination' +}; + +mxShapeMockupPagination.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, mxShapeMockupPagination.prototype.cst.MAIN_TEXT, '0-9 A B C D E F G H I J K L M N O P Q R S T U V X Y Z'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupPagination.prototype.cst.TEXT_SIZE, '17'); + var textColor = mxUtils.getValue(this.style, mxShapeMockupPagination.prototype.cst.TEXT_COLOR, '#0000ff'); + c.translate(x, y); + var width = mxUtils.getSizeForString(mainText, textSize, mxConstants.DEFAULT_FONTFAMILY).width; + c.setStrokeColor(textColor); + c.setFontSize(textSize); + c.setFontColor(textColor); + c.text(w * 0.5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.begin(); + c.moveTo(w * 0.5 - width * 0.5, (h + parseInt(textSize, 10)) * 0.5); + c.lineTo(w * 0.5 + width * 0.5, (h + parseInt(textSize, 10)) * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupPagination.prototype.cst.SHAPE_PAGINATION, mxShapeMockupPagination); + +function mxShapeMockupPageControl(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupPageControl, mxShape); +mxShapeMockupPageControl.prototype.cst = { + SHAPE_PAGE_CONTROL: 'mxgraph.mockup.navigation.pageControl' +}; + +mxShapeMockupPageControl.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#000000'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var rSize = Math.min(h * 0.5, w * 0.05); + c.setFillColor(strokeColor); + c.ellipse(0, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.setFillColor(fillColor); + c.ellipse(w * 0.35 - rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w * 0.65 - rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w - 2 * rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupPageControl.prototype.cst.SHAPE_PAGE_CONTROL, mxShapeMockupPageControl); + +function mxShapeMockupMapNavigator(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupMapNavigator, mxShape); +mxShapeMockupMapNavigator.prototype.cst = { + SHAPE_MAP_NAVIGATOR: 'mxgraph.mockup.navigation.mapNavigator', + FILL_COLOR2: 'fillColor2', + STROKE_COLOR2: 'strokeColor2', + STROKE_COLOR3: 'strokeColor3' +}; +mxShapeMockupMapNavigator.prototype.customProperties = [{ + name: 'fillColor2', + dispName: 'Fill2 Color', + type: 'color' +}, { + name: 'strokeColor2', + dispName: 'Stroke2 Color', + type: 'color' +}, { + name: 'strokeColor3', + dispName: 'Stroke3 Color', + type: 'color' +}]; + +mxShapeMockupMapNavigator.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupMapNavigator.prototype.background = function (c, w, h) { + c.ellipse(0, 0, w, h * 0.6); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.35, h * 0.584); + c.lineTo(w * 0.35, h * 0.95); + c.arcTo(w * 0.083, h * 0.05, 0, 0, 0, w * 0.43, h); + c.lineTo(w * 0.56, h); + c.arcTo(w * 0.083, h * 0.05, 0, 0, 0, w * 0.65, h * 0.95); + c.lineTo(w * 0.65, h * 0.584); + c.fillAndStroke(); +}; + +mxShapeMockupMapNavigator.prototype.foreground = function (c, w, h) { + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupMapNavigator.prototype.cst.FILL_COLOR2, '#99ddff'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeMockupMapNavigator.prototype.cst.STROKE_COLOR2, 'none'); + var strokeColor3 = mxUtils.getValue(this.style, mxShapeMockupMapNavigator.prototype.cst.STROKE_COLOR3, '#ffffff'); + c.setFillColor(fillColor2); + c.setStrokeColor(strokeColor2); + c.ellipse(w * 0.4, h * 0.65, w * 0.2, h * 0.12); + c.fillAndStroke(); + c.ellipse(w * 0.4, h * 0.85, w * 0.2, h * 0.12); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.1806, h * 0.34); + c.lineTo(w * 0.1357, h * 0.366); + c.lineTo(w * 0.0228, h * 0.3); + c.lineTo(w * 0.1357, h * 0.234); + c.lineTo(w * 0.1806, h * 0.26); + c.lineTo(w * 0.1142, h * 0.3); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.433, h * 0.108); + c.lineTo(w * 0.3881, h * 0.08); + c.lineTo(w * 0.4994, h * 0.012); + c.lineTo(w * 0.6123, h * 0.08); + c.lineTo(w * 0.5658, h * 0.108); + c.lineTo(w * 0.4994, h * 0.068); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8198, h * 0.262); + c.lineTo(w * 0.868, h * 0.233); + c.lineTo(w * 0.9776, h * 0.3); + c.lineTo(w * 0.868, h * 0.367); + c.lineTo(w * 0.8198, h * 0.341); + c.lineTo(w * 0.8863, h * 0.3); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5641, h * 0.493); + c.lineTo(w * 0.6123, h * 0.522); + c.lineTo(w * 0.4994, h * 0.588); + c.lineTo(w * 0.3881, h * 0.521); + c.lineTo(w * 0.4363, h * 0.493); + c.lineTo(w * 0.4994, h * 0.533); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.3333, h * 0.32); + c.lineTo(w * 0.3333, h * 0.28); + c.lineTo(w * 0.4163, h * 0.3); + c.close(); + c.moveTo(w * 0.4662, h * 0.2); + c.lineTo(w * 0.5326, h * 0.2); + c.lineTo(w * 0.4994, h * 0.25); + c.close(); + c.moveTo(w * 0.6654, h * 0.28); + c.lineTo(w * 0.6654, h * 0.32); + c.lineTo(w * 0.5824, h * 0.3); + c.close(); + c.moveTo(w * 0.5326, h * 0.4); + c.lineTo(w * 0.4662, h * 0.4); + c.lineTo(w * 0.4994, h * 0.35); + c.close(); + c.fillAndStroke(); + c.setStrokeWidth(2); + c.setStrokeColor(strokeColor3); + c.begin(); + c.moveTo(w * 0.5, h * 0.67); + c.lineTo(w * 0.5, h * 0.75); + c.moveTo(w * 0.43, h * 0.71); + c.lineTo(w * 0.57, h * 0.71); + c.moveTo(w * 0.43, h * 0.91); + c.lineTo(w * 0.57, h * 0.91); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupMapNavigator.prototype.cst.SHAPE_MAP_NAVIGATOR, mxShapeMockupMapNavigator); + +function mxShapeMockupNavigationAnchor(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; +} + +; +mxUtils.extend(mxShapeMockupNavigationAnchor, mxShape); +mxShapeMockupNavigationAnchor.prototype.cst = { + ANCHOR: 'mxgraph.mockup.navigation.anchor' +}; + +mxShapeMockupNavigationAnchor.prototype.paintVertexShape = function (c, x, y, w, h) {}; + +mxCellRenderer.registerShape(mxShapeMockupNavigationAnchor.prototype.cst.ANCHOR, mxShapeMockupNavigationAnchor); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupText.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupText.js new file mode 100644 index 0000000000000..d8778c11ab958 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupText.js @@ -0,0 +1,643 @@ +"use strict"; + +function mxShapeMockupLink(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupLink, mxShape); +mxShapeMockupLink.prototype.cst = { + LINK_TEXT: 'linkText', + TEXT_SIZE: 'textSize', + TEXT_COLOR: 'textColor', + SHAPE_LINK: 'mxgraph.mockup.text.link' +}; + +mxShapeMockupLink.prototype.paintVertexShape = function (c, x, y, w, h) { + var linkText = mxUtils.getValue(this.style, mxShapeMockupLink.prototype.cst.LINK_TEXT, 'Link'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupLink.prototype.cst.TEXT_SIZE, '17'); + var textColor = mxUtils.getValue(this.style, mxShapeMockupLink.prototype.cst.TEXT_COLOR, '#0000ff'); + c.translate(x, y); + var width = mxUtils.getSizeForString(linkText, textSize, mxConstants.DEFAULT_FONTFAMILY).width; + c.setStrokeColor(textColor); + c.setFontSize(textSize); + c.setFontColor(textColor); + c.text(w * 0.5, h * 0.5, 0, 0, linkText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.begin(); + c.moveTo(w * 0.5 - width * 0.5, (h + parseInt(textSize, 10)) * 0.5); + c.lineTo(w * 0.5 + width * 0.5, (h + parseInt(textSize, 10)) * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupLink.prototype.cst.SHAPE_LINK, mxShapeMockupLink); + +function mxShapeMockupLinkBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupLinkBar, mxShape); +mxShapeMockupLinkBar.prototype.cst = { + MAIN_TEXT: 'mainText', + SHAPE_LINK_BAR: 'mxgraph.mockup.text.linkBar', + TEXT_COLOR: 'textColor', + TEXT_COLOR2: 'textColor2', + STROKE_COLOR2: 'strokeColor2', + FILL_COLOR2: 'fillColor2', + SELECTED: '+', + TEXT_SIZE: 'textSize' +}; + +mxShapeMockupLinkBar.prototype.paintVertexShape = function (c, x, y, w, h) { + var textStrings = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.MAIN_TEXT, '+Button 1, Button 2, Button 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.TEXT_COLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.TEXT_COLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.TEXT_SIZE, '17').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var separatorColor = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.STROKE_COLOR2, '#c4c4c4'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var selectedFillColor = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.FILL_COLOR2, '#008cff'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var selectedButton = -1; + var rSize = 10; + var labelOffset = 5; + + for (var i = 0; i < buttonNum; i++) { + var buttonText = textStrings[i]; + + if (buttonText.charAt(0) === mxShapeMockupLinkBar.prototype.cst.SELECTED) { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + var currW = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currW === 0) { + buttonWidths[i] = 42; + } else { + buttonWidths[i] = currW; + } + + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 20); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + c.translate(x, y); + this.background(c, trueW, trueH, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton); + c.setShadow(false); + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) { + if (i === selectedButton) { + c.setFontColor(selectedFontColor); + c.setStrokeColor(selectedFontColor); + } else { + c.setFontColor(fontColor); + c.setStrokeColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeMockupLinkBar.prototype.background = function (c, w, h, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton) { + c.begin(); + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.setStrokeColor(separatorColor); + c.begin(); + + for (var i = 1; i < buttonNum; i++) { + if (i !== selectedButton && i !== selectedButton + 1) { + var currWidth = 0; + + for (var j = 0; j < i; j++) { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth = currWidth * w / minW; + c.moveTo(currWidth, 0); + c.lineTo(currWidth, h); + } + } + + c.stroke(); + var buttonLeft = 0; + c.setFillColor(selectedFillColor); + + for (var i = 0; i < selectedButton; i++) { + buttonLeft += buttonWidths[i] + 2 * labelOffset; + } + + buttonLeft = buttonLeft * w / minW; + var buttonRight = (buttonWidths[selectedButton] + 2 * labelOffset) * w / minW; + buttonRight += buttonLeft; + + if (selectedButton === 0) { + c.rect(0, 0, buttonRight, h); + c.fill(); + } else if (selectedButton === buttonNum - 1) { + c.rect(buttonLeft, 0, buttonRight - buttonLeft, h); + c.fill(); + } else if (selectedButton !== -1) { + c.rect(buttonLeft, 0, buttonRight - buttonLeft, h); + c.fill(); + } + + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.rect(0, 0, w, h); + c.stroke(); +}; + +mxShapeMockupLinkBar.prototype.buttonText = function (c, w, h, textString, buttonWidth, fontSize, minW, trueW) { + if (textString.charAt(0) === mxShapeMockupLinkBar.prototype.cst.SELECTED) { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, h * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var textW = mxUtils.getSizeForString(textString, fontSize, mxConstants.DEFAULT_FONTFAMILY).width * 0.5; + + if (textString !== null && textString !== '') { + c.begin(); + c.moveTo((w + buttonWidth * 0.5) * trueW / minW - textW, h * 0.5 + fontSize * 0.5); + c.lineTo((w + buttonWidth * 0.5) * trueW / minW + textW, h * 0.5 + fontSize * 0.5); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupLinkBar.prototype.cst.SHAPE_LINK_BAR, mxShapeMockupLinkBar); + +function mxShapeMockupCallout(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupCallout, mxShape); +mxShapeMockupCallout.prototype.cst = { + CALLOUT_TEXT: 'linkText', + CALLOUT_DIR: 'callDir', + CALLOUT_STYLE: 'callStyle', + STYLE_LINE: 'line', + STYLE_RECT: 'rect', + STYLE_ROUNDRECT: 'roundRect', + DIR_NW: 'NW', + DIR_NE: 'NE', + DIR_SE: 'SE', + DIR_SW: 'SW', + TEXT_SIZE: 'textSize', + TEXT_COLOR: 'textColor', + SHAPE_CALLOUT: 'mxgraph.mockup.text.callout' +}; +mxShapeMockupCallout.prototype.customProperties = [{ + name: 'callDir', + dispName: 'Direction', + type: 'enum', + enumList: [{ + val: 'NW', + dispName: 'North-West' + }, { + val: 'NE', + dispName: 'North-East' + }, { + val: 'SE', + dispName: 'South-East' + }, { + val: 'SW', + dispName: 'South-West' + }] +}, { + name: 'callStyle', + dispName: 'Style', + type: 'enum', + enumList: [{ + val: 'line', + dispName: 'Line' + }, { + val: 'rect', + dispName: 'Rectangle' + }] +}]; + +mxShapeMockupCallout.prototype.paintVertexShape = function (c, x, y, w, h) { + var calloutText = mxUtils.getValue(this.style, mxShapeMockupCallout.prototype.cst.CALLOUT_TEXT, 'Callout'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupCallout.prototype.cst.TEXT_SIZE, '17'); + var textColor = mxUtils.getValue(this.style, mxShapeMockupCallout.prototype.cst.TEXT_COLOR, '#666666'); + var callStyle = mxUtils.getValue(this.style, mxShapeMockupCallout.prototype.cst.CALLOUT_STYLE, mxShapeMockupCallout.prototype.cst.STYLE_LINE); + var callDir = mxUtils.getValue(this.style, mxShapeMockupCallout.prototype.cst.CALLOUT_DIR, mxShapeMockupCallout.prototype.cst.DIR_NW); + var textWidth = mxUtils.getSizeForString(calloutText, textSize, mxConstants.DEFAULT_FONTFAMILY).width; + textWidth = textWidth * 1.2; + + if (textWidth == 0) { + textWidth = 70; + } + + c.translate(x, y); + c.setFontSize(textSize); + c.setFontColor(textColor); + var callH = textSize * 1.5; + + if (callDir === mxShapeMockupCallout.prototype.cst.DIR_NW) { + if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_LINE) { + c.begin(); + c.moveTo(0, callH); + c.lineTo(textWidth, callH); + c.lineTo(w, h); + c.stroke(); + } else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_RECT) { + c.rect(0, 0, textWidth, callH); + c.fillAndStroke(); + c.begin(); + c.moveTo(textWidth * 0.5, callH); + c.lineTo(w, h); + c.stroke(); + } else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT) { + c.roundrect(0, 0, textWidth, callH, callH * 0.25, callH * 0.25); + c.fillAndStroke(); + c.begin(); + c.moveTo(textWidth * 0.5, callH); + c.lineTo(w, h); + c.stroke(); + } + + c.text(textWidth * 0.5, callH * 0.5, 0, 0, calloutText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (callDir === mxShapeMockupCallout.prototype.cst.DIR_NE) { + if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_LINE) { + c.begin(); + c.moveTo(w, callH); + c.lineTo(w - textWidth, callH); + c.lineTo(0, h); + c.stroke(); + } else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_RECT) { + c.rect(w - textWidth, 0, textWidth, callH); + c.fillAndStroke(); + c.begin(); + c.moveTo(w - textWidth * 0.5, callH); + c.lineTo(0, h); + c.stroke(); + } else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT) { + c.roundrect(w - textWidth, 0, textWidth, callH, callH * 0.25, callH * 0.25); + c.fillAndStroke(); + c.begin(); + c.moveTo(w - textWidth * 0.5, callH); + c.lineTo(0, h); + c.stroke(); + } + + c.text(w - textWidth * 0.5, callH * 0.5, 0, 0, calloutText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (callDir === mxShapeMockupCallout.prototype.cst.DIR_SE) { + if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_LINE) { + c.begin(); + c.moveTo(w, h); + c.lineTo(w - textWidth, h); + c.lineTo(0, 0); + c.stroke(); + } else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_RECT) { + c.rect(w - textWidth, h - callH, textWidth, callH); + c.fillAndStroke(); + c.begin(); + c.moveTo(w - textWidth * 0.5, h - callH); + c.lineTo(0, 0); + c.stroke(); + } else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT) { + c.roundrect(w - textWidth, h - callH, textWidth, callH, callH * 0.25, callH * 0.25); + c.fillAndStroke(); + c.begin(); + c.moveTo(w - textWidth * 0.5, h - callH); + c.lineTo(0, 0); + c.stroke(); + } + + c.text(w - textWidth * 0.5, h - callH * 0.5, 0, 0, calloutText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (callDir === mxShapeMockupCallout.prototype.cst.DIR_SW) { + if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_LINE) { + c.begin(); + c.moveTo(0, h); + c.lineTo(textWidth, h); + c.lineTo(w, 0); + c.stroke(); + } else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_RECT) { + c.rect(0, h - callH, textWidth, callH); + c.fillAndStroke(); + c.begin(); + c.moveTo(textWidth * 0.5, h - callH); + c.lineTo(w, 0); + c.stroke(); + } else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT) { + c.roundrect(0, h - callH, textWidth, callH, callH * 0.25, callH * 0.25); + c.fillAndStroke(); + c.begin(); + c.moveTo(textWidth * 0.5, h - callH); + c.lineTo(w, 0); + c.stroke(); + } + + c.text(textWidth * 0.5, h - callH * 0.5, 0, 0, calloutText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupCallout.prototype.cst.SHAPE_CALLOUT, mxShapeMockupCallout); + +function mxShapeMockupStickyNote(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupStickyNote, mxShape); +mxShapeMockupStickyNote.prototype.cst = { + MAIN_TEXT: 'mainText', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize', + SHAPE_STICKY_NOTE: 'mxgraph.mockup.text.stickyNote' +}; + +mxShapeMockupStickyNote.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupStickyNote.prototype.background = function (c, w, h) { + c.setFillColor('#ffffcc'); + c.begin(); + c.moveTo(w * 0.03, h * 0.07); + c.lineTo(w * 0.89, h * 0.06); + c.arcTo(2.81 * w, 2.92 * h, 1, 0, 0, w * 0.99, h * 0.98); + c.lineTo(w * 0.09, h * 0.99); + c.arcTo(2.81 * w, 2.92 * h, 1, 0, 1, w * 0.03, h * 0.07); + c.close(); + c.fill(); +}; + +mxShapeMockupStickyNote.prototype.foreground = function (c, w, h) { + var mainText = mxUtils.getValue(this.style, mxShapeMockupStickyNote.prototype.cst.MAIN_TEXT, 'Note line 1,Note line 2,Note line 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupStickyNote.prototype.cst.TEXT_COLOR, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupStickyNote.prototype.cst.TEXT_SIZE, '17').toString(); + c.setFillColor('#ff3300'); + c.begin(); + c.moveTo(w * 0.28, 0); + c.lineTo(w * 0.59, 0); + c.lineTo(w * 0.6, h * 0.12); + c.lineTo(w * 0.28, h * 0.13); + c.close(); + c.fill(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + var lineNum = mainText.length; + var textH = lineNum * fontSize * 1.5; + + for (var i = 0; i < mainText.length; i++) { + c.text(w / 2, (h - textH) / 2 + i * fontSize * 1.5 + fontSize * 0.75, 0, 0, mainText[i], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupStickyNote.prototype.cst.SHAPE_STICKY_NOTE, mxShapeMockupStickyNote); + +function mxShapeMockupBulletedList(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupBulletedList, mxShape); +mxShapeMockupBulletedList.prototype.cst = { + MAIN_TEXT: 'mainText', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize', + BULLET_STYLE: 'bulletStyle', + STYLE_HYPHEN: 'hyphen', + STYLE_NUM: 'number', + STYLE_DOT: 'dot', + SHAPE_BULLETED_LIST: 'mxgraph.mockup.text.bulletedList' +}; + +mxShapeMockupBulletedList.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupBulletedList.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupBulletedList.prototype.foreground = function (c, w, h) { + var mainText = mxUtils.getValue(this.style, mxShapeMockupBulletedList.prototype.cst.MAIN_TEXT, 'Note line 1,Note line 2,Note line 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupBulletedList.prototype.cst.TEXT_COLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupBulletedList.prototype.cst.TEXT_SIZE, '17'); + var bulletStyle = mxUtils.getValue(this.style, mxShapeMockupBulletedList.prototype.cst.BULLET_STYLE, 'none'); + c.setFontColor(fontColor); + c.setFontSize(fontSize); + var bullet = ''; + + for (var i = 0; i < mainText.length; i++) { + var currText = ''; + + if (bulletStyle === mxShapeMockupBulletedList.prototype.cst.STYLE_NUM) { + currText = i + 1 + ') ' + mainText[i]; + } else if (bulletStyle === mxShapeMockupBulletedList.prototype.cst.STYLE_HYPHEN) { + currText = '- ' + mainText[i]; + } else if (bulletStyle === mxShapeMockupBulletedList.prototype.cst.STYLE_DOT) { + currText = String.fromCharCode(8226) + ' ' + mainText[i]; + } else { + currText = ' ' + mainText[i]; + } + + c.text(10, i * fontSize * 1.5 + fontSize * 0.75, 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupBulletedList.prototype.cst.SHAPE_BULLETED_LIST, mxShapeMockupBulletedList); + +function mxShapeMockupTextBox(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupTextBox, mxShape); +mxShapeMockupTextBox.prototype.cst = { + MAIN_TEXT: 'mainText', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize', + SHAPE_TEXT_BOX: 'mxgraph.mockup.text.textBox' +}; + +mxShapeMockupTextBox.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupTextBox.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupTextBox.prototype.foreground = function (c, w, h) { + var mainText = mxUtils.getValue(this.style, mxShapeMockupTextBox.prototype.cst.MAIN_TEXT, 'Note line 1').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupTextBox.prototype.cst.TEXT_COLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupTextBox.prototype.cst.TEXT_SIZE, '17'); + c.setFontColor(fontColor); + c.setFontSize(fontSize); + + for (var i = 0; i < mainText.length; i++) { + c.text(5, i * fontSize * 1.5 + fontSize * 0.75, 0, 0, mainText[i], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupTextBox.prototype.cst.SHAPE_TEXT_BOX, mxShapeMockupTextBox); + +function mxShapeMockupCaptcha(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupCaptcha, mxShape); +mxShapeMockupCaptcha.prototype.cst = { + MAIN_TEXT: 'mainText', + TEXT_COLOR: 'textColor', + TEXT_SIZE: 'textSize', + SHAPE_CAPTCHA: 'mxgraph.mockup.text.captcha' +}; + +mxShapeMockupCaptcha.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupCaptcha.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupCaptcha.prototype.foreground = function (c, w, h) { + var mainText = mxUtils.getValue(this.style, mxShapeMockupCaptcha.prototype.cst.MAIN_TEXT, 'Note line 1'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupCaptcha.prototype.cst.TEXT_COLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupCaptcha.prototype.cst.TEXT_SIZE, '25'); + c.setFillColor('#88aaff'); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.35, 0); + c.lineTo(w * 0.55, h * 0.85); + c.lineTo(w * 0.4, h * 0.75); + c.close(); + c.fill(); + c.begin(); + c.moveTo(w * 0.7, h * 0.1); + c.lineTo(w * 0.95, h * 0.23); + c.lineTo(w, h * 0.4); + c.lineTo(w, h * 0.9); + c.lineTo(w, h); + c.lineTo(w * 0.8, h); + c.close(); + c.fill(); + c.setFontColor(fontColor); + c.setFontSize(fontSize); + c.text(w * 0.5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.rect(0, 0, w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupCaptcha.prototype.cst.SHAPE_CAPTCHA, mxShapeMockupCaptcha); + +function mxShapeMockupAlphanumeric(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupAlphanumeric, mxShape); +mxShapeMockupAlphanumeric.prototype.cst = { + MAIN_TEXT: 'linkText', + TEXT_SIZE: 'textSize', + TEXT_COLOR: 'textColor', + SHAPE_ALPHANUMERIC: 'mxgraph.mockup.text.alphanumeric' +}; + +mxShapeMockupAlphanumeric.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, mxShapeMockupAlphanumeric.prototype.cst.MAIN_TEXT, '0-9 A B C D E F G H I J K L M N O P Q R S T U V X Y Z'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupAlphanumeric.prototype.cst.TEXT_SIZE, '17'); + var textColor = mxUtils.getValue(this.style, mxShapeMockupAlphanumeric.prototype.cst.TEXT_COLOR, '#0000ff'); + c.translate(x, y); + var width = mxUtils.getSizeForString(mainText, textSize, mxConstants.DEFAULT_FONTFAMILY).width; + c.setStrokeColor(textColor); + c.setFontSize(textSize); + c.setFontColor(textColor); + c.text(w * 0.5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.begin(); + c.moveTo(w * 0.5 - width * 0.5, (h + parseInt(textSize, 10)) * 0.5); + c.lineTo(w * 0.5 + width * 0.5, (h + parseInt(textSize, 10)) * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupAlphanumeric.prototype.cst.SHAPE_ALPHANUMERIC, mxShapeMockupAlphanumeric); + +function mxShapeMockupTextRRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupTextRRect, mxShape); +mxShapeMockupTextRRect.prototype.cst = { + RRECT: 'mxgraph.mockup.text.rrect', + R_SIZE: 'rSize' +}; + +mxShapeMockupTextRRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupTextRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupTextRRect.prototype.cst.RRECT, mxShapeMockupTextRRect); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupiOS.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupiOS.js new file mode 100644 index 0000000000000..36e13ee136956 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mockup/mxMockupiOS.js @@ -0,0 +1,5224 @@ +"use strict"; + +var mxMockupC = { + BAR_HEIGHT: 'barHeight', + BAR_POS: 'barPos', + BG_STYLE: 'bgStyle', + BG_FLAT_GREEN: 'bgGreen', + BG_FLAT_WHITE: 'bgWhite', + BG_FLAT_GRAY: 'bgGray', + BG_FLAT_CUSTOM: 'bgFlat', + BG_MAP: 'bgMap', + BG_STRIPED: 'bgStriped', + BUTTON_STYLE: 'buttonStyle', + BUTTON_TEXT: 'buttonText', + BUTTON_STATE: 'buttonState', + CHEVRON: 'chevron', + GRID_SIZE: 'gridSize', + POINTER_BOTTOM: 'bottom', + POINTER_POS: 'pointerPos', + POINTER_TOP: 'top', + ROUND: 'round', + SELECTED: '+', + STATE_ON: 'on', + STATE_OFF: 'off', + SUB_TEXT: 'subText', + SHAPE_IADD_ICON: 'mxgraph.ios.iAddIcon', + SHAPE_IALERT_BOX: 'mxgraph.ios.iAlertBox', + SHAPE_IALPHA_LIST: 'mxgraph.ios.iAlphaList', + SHAPE_IAPP_BAR: 'mxgraph.ios.iAppBar', + SHAPE_IARROW_ICON: 'mxgraph.ios.iArrowIcon', + SHAPE_IBG_FLAT: 'mxgraph.ios.iBgFlat', + SHAPE_IBG_MAP: 'mxgraph.ios.iBgMap', + SHAPE_IBG_STRIPED: 'mxgraph.ios.iBgStriped', + SHAPE_IBUTTON: 'mxgraph.ios.iButton', + SHAPE_IBUTTON_BACK: 'mxgraph.ios.iButtonBack', + SHAPE_IBUTTON_FORWARD: 'mxgraph.ios.iButtonFw', + SHAPE_IBUTTON_BAR: 'mxgraph.ios.iButtonBar', + SHAPE_ICALL_BUTTONS: 'mxgraph.ios.iCallButtons', + SHAPE_ICALL_DIALOG: 'mxgraph.ios.iCallDialog', + SHAPE_ICHECKBOX_GROUP: 'mxgraph.ios.iCheckboxGroup', + SHAPE_ICHECK_ICON: 'mxgraph.ios.iCheckIcon', + SHAPE_ICLOUD_PROGRESS_BAR: 'mxgraph.ios.iCloudProgressBar', + SHAPE_ICOMBO_BOX: 'mxgraph.ios.iComboBox', + SHAPE_ICOPY: 'mxgraph.ios.iCopy', + SHAPE_ICOPY_AREA: 'mxgraph.ios.iCopyArea', + SHAPE_IICON_GRID: 'mxgraph.ios.iIconGrid', + SHAPE_IDELETE_APP: 'mxgraph.ios.iDeleteApp', + SHAPE_IDELETE_ICON: 'mxgraph.ios.iDeleteIcon', + SHAPE_IDOWNLOAD_BAR: 'mxgraph.ios.iDownloadBar', + SHAPE_IDIALOG_BOX: 'mxgraph.ios.iDialogBox', + SHAPE_IDIRECTION: 'mxgraph.ios.iDir', + SHAPE_IHOME_PAGE_CONTROL: 'mxgraph.ios.iHomePageControl', + SHAPE_IKEYB_LETTERS: 'mxgraph.ios.iKeybLett', + SHAPE_IKEYB_NUMBERS: 'mxgraph.ios.iKeybNumb', + SHAPE_IKEYB_SYMBOLS: 'mxgraph.ios.iKeybSymb', + SHAPE_ILOCATION_BAR: 'mxgraph.ios.iLocBar', + SHAPE_ILOCK_BUTTON: 'mxgraph.ios.iLockButton', + SHAPE_IHOR_BUTTON_BAR: 'mxgraph.ios.iHorButtonBar', + SHAPE_IINFO_ICON: 'mxgraph.ios.iInfoIcon', + SHAPE_ION_OFF_BUTTON: 'mxgraph.ios.iOnOffButton', + SHAPE_IOPTION: 'mxgraph.ios.iOption', + SHAPE_IPAGE_CONTROL: 'mxgraph.ios.iPageControl', + SHAPE_IPAD: 'mxgraph.ios.iPad', + SHAPE_IPHONE: 'mxgraph.ios.iPhone', + SHAPE_IPIN: 'mxgraph.ios.iPin', + SHAPE_IPREV_NEXT: 'mxgraph.ios.iPrevNext', + SHAPE_IPROGRESS_BAR: 'mxgraph.ios.iProgressBar', + SHAPE_IRADIO_GROUP: 'mxgraph.ios.iRadioGroup', + SHAPE_ISLIDER: 'mxgraph.ios.iSlider', + SHAPE_ISORT_FIND_ICON: 'mxgraph.ios.iSortFindIcon', + SHAPE_ITEXT_INPUT: 'mxgraph.ios.iTextInput', + SHAPE_ITOP_BAR: 'mxgraph.ios.iTopBar', + SHAPE_ITOP_BAR_LOCKED: 'mxgraph.ios.iTopBarLocked', + SHAPE_IURL_BAR: 'mxgraph.ios.iURLBar', + SHAPE_IVIDEO_CONTROLS: 'mxgraph.ios.iVideoControls', + SHAPE_ISCREEN_NAME_BAR: 'mxgraph.ios.iScreenNameBar', + STYLE_FILLCOLOR2: 'fillColor2', + STYLE_FILLCOLOR3: 'fillColor3', + STYLE_TEXTCOLOR: 'textColor', + STYLE_TEXTCOLOR2: 'textColor2', + STYLE_STROKECOLOR2: 'strokeColor2', + STYLE_STROKECOLOR3: 'strokeColor3' +}; + +function mxShapeMockupiPhone(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiPhone, mxShape); +mxShapeMockupiPhone.prototype.customProperties = [{ + name: 'bgStyle', + dispName: 'Background', + type: 'enum', + enumList: [{ + val: 'bgGreen', + dispName: 'Green' + }, { + val: 'bgWhite', + dispName: 'White' + }, { + val: 'bgGray', + dispName: 'Gray' + }, { + val: 'bgFlat', + dispName: 'Flat' + }, { + val: 'bgMap', + dispName: 'Map' + }, { + val: 'bgStriped', + dispName: 'Striped' + }] +}]; + +mxShapeMockupiPhone.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = 25; + this.background(c, x, y, w, h, rSize); + c.setShadow(false); + this.foreground(c, x, y, w, h, rSize); +}; + +mxShapeMockupiPhone.prototype.background = function (c, x, y, w, h, rSize) { + c.setFillColor('#000000'); + c.setStrokeColor('#000000'); + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); +}; + +mxShapeMockupiPhone.prototype.foreground = function (c, x, y, w, h, rSize) { + c.setStrokeWidth(1.5); + c.begin(); + c.setGradient('#808080', '#000000', w * 0.325, 0, w * 0.675, h * 0.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.moveTo(w * 0.325, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.7, h * 0.5); + c.close(); + c.fill(); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, ''); + var bgStyle = mxUtils.getValue(this.style, mxMockupC.BG_STYLE, mxMockupC.BG_FLAT_GREEN); + c.setStrokeWidth(1); + + if (bgStyle === mxMockupC.BG_FLAT_WHITE) { + c.setFillColor('#ffffff'); + c.rect(w * 0.0625, h * 0.15, w * 0.875, h * 0.7); + c.fill(); + } else if (bgStyle === mxMockupC.BG_FLAT_GREEN) { + c.setFillColor('#1f2923'); + c.rect(w * 0.0625, h * 0.15, w * 0.875, h * 0.7); + c.fill(); + } else if (bgStyle === mxMockupC.BG_FLAT_GRAY) { + c.setFillColor('#dddddd'); + c.rect(w * 0.0625, h * 0.15, w * 0.875, h * 0.7); + c.fill(); + } else if (bgStyle === mxMockupC.BG_FLAT_CUSTOM) { + c.setFillColor(fillColor); + c.rect(w * 0.0625, h * 0.15, w * 0.875, h * 0.7); + c.fill(); + } else if (bgStyle === mxMockupC.BG_STRIPED) { + var xOld = x; + var yOld = y; + var wOld = w; + var hOld = h; + c.translate(w * 0.0625, h * 0.15); + w = w * 0.875; + h = h * 0.7; + c.setFillColor('#5D7585'); + c.rect(0, 0, w, h); + c.fillAndStroke(); + var strokeColor = '#18211b'; + var strokeColor2 = '#657E8F'; + c.setStrokeColor(strokeColor2); + var i = 5; + c.begin(); + + while (i < w) { + c.moveTo(i, 0); + c.lineTo(i, h); + i = i + 5; + } + + c.stroke(); + c.setStrokeColor(strokeColor); + c.begin(); + c.rect(0, 0, w, h); + c.stroke(); + w = wOld; + h = hOld; + c.translate(-w * 0.0625, -h * 0.15); + } else if (bgStyle === mxMockupC.BG_MAP) { + var xOld = x; + var yOld = y; + var wOld = w; + var hOld = h; + c.translate(w * 0.0625, h * 0.15); + w = w * 0.875; + h = h * 0.7; + c.setFillColor('#ffffff'); + c.rect(0, 0, w, h); + c.fillAndStroke(); + var fillColor2 = '#96D1FF'; + var strokeColor = '#18211b'; + var strokeColor2 = '#008cff'; + c.setFillColor(fillColor2); + c.setStrokeColor(strokeColor2); + c.setStrokeWidth(1); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.1171, 0); + c.lineTo(w * 0.1136, h * 0.0438); + c.lineTo(w * 0.0993, h * 0.054); + c.lineTo(0, h * 0.0446); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.1993, 0); + c.lineTo(w * 0.1914, h * 0.03884); + c.lineTo(w * 0.1536, h * 0.0362); + c.lineTo(w * 0.1586, 0); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.24, 0); + c.lineTo(w * 0.2257, h * 0.054); + c.lineTo(w * 0.2414, h * 0.0674); + c.lineTo(w * 0.4707, h * 0.0835); + c.lineTo(w * 0.5264, h * 0.0906); + c.lineTo(w * 0.6429, h * 0.0929); + c.arcTo(w * 0.0857, h * 0.0536, 0, 0, 0, w * 0.7193, h * 0.0621); + c.arcTo(w * 0.48, h * 0.2143, 0, 0, 0, w * 0.7286, 0); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8, 0); + c.lineTo(w * 0.7886, h * 0.04554); + c.arcTo(w * 0.0857, h * 0.0536, 0, 0, 0, w * 0.8164, h * 0.0875); + c.arcTo(w * 0.1429, h * 0.0893, 0, 0, 0, w * 0.88, h * 0.1036); + c.lineTo(w, h * 0.1112); + c.lineTo(w, 0); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.0933); + c.lineTo(w * 0.08, h * 0.1036); + c.lineTo(w * 0.1021, h * 0.1246); + c.lineTo(w * 0.1007, h * 0.1768); + c.lineTo(w * 0.0471, h * 0.2241); + c.lineTo(0, h * 0.2527); + c.close(); + c.fillAndStroke(); + c.ellipse(w * 0.1214, h * 0.0603, w * 0.0843, h * 0.0576); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.1293, h * 0.1924); + c.lineTo(w * 0.1729, h * 0.142); + c.lineTo(w * 0.1407, h * 0.1411); + c.lineTo(w * 0.14, h * 0.1777); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.4586, h * 0.1241); + c.lineTo(w * 0.455, h * 0.1835); + c.lineTo(w * 0.3893, h * 0.2246); + c.lineTo(w * 0.2171, h * 0.1362); + c.lineTo(w * 0.2171, h * 0.1308); + c.lineTo(w * 0.2293, h * 0.1214); + c.lineTo(w * 0.2857, h * 0.1174); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5079, h * 0.1134); + c.lineTo(w * 0.7307, h * 0.1223); + c.lineTo(w * 0.7279, h * 0.1625); + c.lineTo(w * 0.715, h * 0.1772); + c.lineTo(w * 0.6929, h * 0.1688); + c.lineTo(w * 0.625, h * 0.1795); + c.lineTo(w * 0.4779, h * 0.2835); + c.lineTo(w * 0.395, h * 0.2299); + c.lineTo(w * 0.4657, h * 0.1826); + c.lineTo(w * 0.4707, h * 0.1223); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, h * 0.1362); + c.lineTo(w * 0.7643, h * 0.1237); + c.lineTo(w * 0.7543, h * 0.1562); + c.lineTo(w * 0.7643, h * 0.1585); + c.lineTo(w * 0.9186, h * 0.2366); + c.lineTo(w, h * 0.1732); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.2079, h * 0.1545); + c.lineTo(w * 0.3886, h * 0.2536); + c.lineTo(w * 0.3414, h * 0.2933); + c.lineTo(w * 0.1743, h * 0.1969); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.1579, h * 0.2134); + c.lineTo(w * 0.3221, h * 0.3067); + c.lineTo(w * 0.2957, h * 0.3237); + c.lineTo(w * 0.1157, h * 0.2424); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.405, h * 0.2656); + c.lineTo(w * 0.31, h * 0.3353); + c.lineTo(w * 0.3693, h * 0.3661); + c.lineTo(w * 0.4571, h * 0.2982); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.7121, h * 0.1848); + c.lineTo(w * 0.6879, h * 0.1754); + c.lineTo(w * 0.6329, h * 0.1844); + c.lineTo(w * 0.61, h * 0.2018); + c.lineTo(w * 0.6207, h * 0.2085); + c.lineTo(w * 0.4986, h * 0.2982); + c.lineTo(w * 0.535, h * 0.3237); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5557, h * 0.3379); + c.lineTo(w * 0.7464, h * 0.1826); + c.lineTo(w * 0.8036, h * 0.2076); + c.lineTo(w * 0.595, h * 0.3616); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8293, h * 0.2188); + c.lineTo(w * 0.8979, h * 0.2509); + c.lineTo(w * 0.6936, h * 0.4125); + c.lineTo(w * 0.6171, h * 0.3737); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, h * 0.2138); + c.lineTo(w * 0.6821, h * 0.4603); + c.lineTo(w * 0.815, h * 0.5277); + c.lineTo(w, h * 0.4); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.317); + c.lineTo(w * 0.0971, h * 0.2554); + c.lineTo(w * 0.4121, h * 0.4143); + c.lineTo(w * 0.3736, h * 0.4415); + c.lineTo(w * 0.315, h * 0.4076); + c.lineTo(w * 0.3093, h * 0.4116); + c.lineTo(w * 0.3686, h * 0.4455); + c.lineTo(w * 0.285, h * 0.5045); + c.lineTo(w * 0.1114, h * 0.4134); + c.lineTo(w * 0.025, h * 0.4603); + c.lineTo(w * 0.0371, h * 0.4723); + c.lineTo(w * 0.1114, h * 0.4371); + c.lineTo(w * 0.2871, h * 0.5312); + c.lineTo(w * 0.1929, h * 0.6058); + c.lineTo(w * 0.2271, h * 0.6705); + c.lineTo(w * 0.17, h * 0.7147); + c.lineTo(w * 0.0314, h * 0.6321); + c.lineTo(0, h * 0.6246); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.48, h * 0.3121); + c.lineTo(w * 0.5157, h * 0.3375); + c.lineTo(w * 0.4314, h * 0.3982); + c.lineTo(w * 0.3929, h * 0.3786); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.3086, h * 0.5179); + c.lineTo(w * 0.53, h * 0.3518); + c.lineTo(w * 0.5757, h * 0.3745); + c.lineTo(w * 0.3479, h * 0.5411); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5964, h * 0.3884); + c.lineTo(w * 0.6736, h * 0.4277); + c.lineTo(w * 0.445, h * 0.5991); + c.lineTo(w * 0.3664, h * 0.5531); + c.lineTo(w * 0.5057, h * 0.4545); + c.lineTo(w * 0.5507, h * 0.4754); + c.lineTo(w * 0.5571, h * 0.4723); + c.lineTo(w * 0.5114, h * 0.4504); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.4793, h * 0.6161); + c.lineTo(w * 0.6771, h * 0.4643); + c.lineTo(w * 0.8086, h * 0.5326); + c.lineTo(w * 0.7471, h * 0.5817); + c.lineTo(w * 0.7214, h * 0.567); + c.lineTo(w * 0.715, h * 0.571); + c.lineTo(w * 0.7421, h * 0.5871); + c.lineTo(w * 0.6014, h * 0.6933); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, h * 0.4371); + c.lineTo(w * 0.8443, h * 0.546); + c.lineTo(w * 0.9071, h * 0.5701); + c.lineTo(w, h * 0.5022); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8407, h * 0.5504); + c.lineTo(w * 0.8993, h * 0.5759); + c.lineTo(w * 0.6757, h * 0.7416); + c.lineTo(w * 0.6286, h * 0.7139); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, h * 0.5321); + c.lineTo(w * 0.6979, h * 0.7549); + c.lineTo(w * 0.7457, h * 0.7781); + c.lineTo(w * 0.9814, h * 0.6094); + c.lineTo(w, h * 0.6067); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, h * 0.6254); + c.lineTo(w * 0.7664, h * 0.792); + c.lineTo(w * 0.9586, h * 0.9062); + c.lineTo(w, h * 0.8786); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.3093, h * 0.5464); + c.lineTo(w * 0.4271, h * 0.6152); + c.lineTo(w * 0.245, h * 0.7643); + c.lineTo(w * 0.185, h * 0.7228); + c.lineTo(w * 0.2493, h * 0.6728); + c.lineTo(w * 0.2214, h * 0.6143); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.65); + c.lineTo(w * 0.2179, h * 0.7826); + c.lineTo(w * 0.1136, h * 0.8424); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.7272); + c.lineTo(w * 0.0821, h * 0.859); + c.lineTo(0, h * 0.9085); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.4529, h * 0.6366); + c.lineTo(w * 0.575, h * 0.7143); + c.lineTo(w * 0.39, h * 0.8621); + c.lineTo(w * 0.2657, h * 0.7902); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.9415); + c.lineTo(w * 0.1036, h * 0.8821); + c.lineTo(w * 0.2343, h * 0.959); + c.lineTo(w * 0.1721, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.2586, h * 0.7951); + c.lineTo(w * 0.3829, h * 0.8674); + c.lineTo(w * 0.2543, h * 0.9451); + c.lineTo(w * 0.1279, h * 0.8692); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.2836, h * 0.9639); + c.lineTo(w * 0.4207, h * 0.8772); + c.lineTo(w * 0.605, h * 0.7321); + c.lineTo(w * 0.6521, h * 0.7634); + c.lineTo(w * 0.3486, h); + c.lineTo(w * 0.3393, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.3879, h); + c.lineTo(w * 0.6721, h * 0.7759); + c.lineTo(w * 0.7171, h * 0.7982); + c.lineTo(w * 0.4564, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.4986, h); + c.lineTo(w * 0.7386, h * 0.8125); + c.lineTo(w * 0.9307, h * 0.925); + c.lineTo(w * 0.8264, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8671, h); + c.lineTo(w * 0.9464, h * 0.9491); + c.lineTo(w, h * 0.975); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.2295, h); + c.lineTo(w * 0.2648, h * 0.9792); + c.lineTo(w * 0.2981, h); + c.close(); + c.fillAndStroke(); + w = wOld; + h = hOld; + c.translate(-w * 0.0625, -h * 0.15); + } + + c.setStrokeWidth(1); + c.setStrokeColor('#18211b'); + c.rect(w * 0.0625, h * 0.15, w * 0.875, h * 0.7); + c.stroke(); + c.setStrokeWidth(1.5); + c.setAlpha(0.8); + c.setStrokeColor('#dddddd'); + c.roundrect(0, 0, w, h, rSize, rSize); + c.stroke(); + rSize = 22.5; + c.begin(); + c.setStrokeColor('#666666'); + c.roundrect(5, 5, w - 10, h - 10, rSize, rSize); + c.stroke(); + c.setAlpha(1); + c.ellipse(w * 0.4875, h * 0.04125, w * 0.025, h * 0.0125); + c.setStrokeWidth(2.5); + c.setStrokeColor('#000000'); + c.setFillColor('#000099'); + c.fillAndStroke(); + c.begin(); + c.setStrokeWidth(1.5); + c.setFillColor('#444444'); + c.setStrokeColor('#333333'); + rSize = 4; + c.roundrect(w * 0.375, h * 0.075, w * 0.25, h * 0.01875, w * 0.02, h * 0.01); + c.fillAndStroke(); + c.setGradient('#bbbbbb', '#000000', w * 0.4, h * 0.875, w * 0.2, h * 0.1, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(w * 0.4, h * 0.875, w * 0.2, h * 0.1); + c.fill(); + c.setAlpha(0.5); + c.ellipse(w * 0.404, h * 0.876, w * 0.19, h * 0.095); + c.stroke(); + c.begin(); + c.setAlpha(0.85); + c.setFillColor('#000000'); + c.moveTo(w * 0.4025, h * 0.925); + c.arcTo(w * 0.0975, h * 0.04625, 0, 0, 1, w * 0.5975, h * 0.925); + c.arcTo(w * 0.2, h * 0.1, 0, 0, 1, w * 0.4025, h * 0.925); + c.close(); + c.fillAndStroke(); + c.begin(); + c.setAlpha(0.7); + c.setStrokeWidth(1.5); + c.setStrokeColor('#dddddd'); + rSize = 4; + c.roundrect(w * 0.4575, h * 0.905, w * 0.0875, h * 0.04375, h * 0.00625, h * 0.00625); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IPHONE, mxShapeMockupiPhone); + +function mxShapeMockupiBgFlat(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiBgFlat, mxShape); + +mxShapeMockupiBgFlat.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeMockupiBgFlat.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IBG_FLAT, mxShapeMockupiBgFlat); + +function mxShapeMockupiBgStriped(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiBgStriped, mxShape); + +mxShapeMockupiBgStriped.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiBgStriped.prototype.background = function (c, x, y, w, h) { + c.setStrokeWidth(1); + c.begin(); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiBgStriped.prototype.foreground = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, ''); + var strokeColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_STROKECOLOR2, ''); + c.setStrokeColor(strokeColor2); + var i = 5; + c.begin(); + + while (i < w) { + c.moveTo(i, 0); + c.lineTo(i, h); + i = i + 5; + } + + c.stroke(); + c.setStrokeColor(strokeColor); + c.begin(); + c.rect(0, 0, w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IBG_STRIPED, mxShapeMockupiBgStriped); + +function mxShapeMockupiBgMap(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiBgMap, mxShape); + +mxShapeMockupiBgMap.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiBgMap.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiBgMap.prototype.foreground = function (c, x, y, w, h) { + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, ''); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, ''); + var strokeColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_STROKECOLOR2, ''); + c.setFillColor(fillColor2); + c.setStrokeColor(strokeColor2); + c.setStrokeWidth(0.5); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.1171, 0); + c.lineTo(w * 0.1136, h * 0.0438); + c.lineTo(w * 0.0993, h * 0.054); + c.lineTo(0, h * 0.0446); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.1993, 0); + c.lineTo(w * 0.1914, h * 0.03884); + c.lineTo(w * 0.1536, h * 0.0362); + c.lineTo(w * 0.1586, 0); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.24, 0); + c.lineTo(w * 0.2257, h * 0.054); + c.lineTo(w * 0.2414, h * 0.0674); + c.lineTo(w * 0.4707, h * 0.0835); + c.lineTo(w * 0.5264, h * 0.0906); + c.lineTo(w * 0.6429, h * 0.0929); + c.arcTo(w * 0.0857, h * 0.0536, 0, 0, 0, w * 0.7193, h * 0.0621); + c.arcTo(w * 0.48, h * 0.2143, 0, 0, 0, w * 0.7286, 0); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8, 0); + c.lineTo(w * 0.7886, h * 0.04554); + c.arcTo(w * 0.0857, h * 0.0536, 0, 0, 0, w * 0.8164, h * 0.0875); + c.arcTo(w * 0.1429, h * 0.0893, 0, 0, 0, w * 0.88, h * 0.1036); + c.lineTo(w, h * 0.1112); + c.lineTo(w, 0); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.0933); + c.lineTo(w * 0.08, h * 0.1036); + c.lineTo(w * 0.1021, h * 0.1246); + c.lineTo(w * 0.1007, h * 0.1768); + c.lineTo(w * 0.0471, h * 0.2241); + c.lineTo(0, h * 0.2527); + c.close(); + c.fillAndStroke(); + c.ellipse(w * 0.1214, h * 0.0603, w * 0.0843, h * 0.0576); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.1293, h * 0.1924); + c.lineTo(w * 0.1729, h * 0.142); + c.lineTo(w * 0.1407, h * 0.1411); + c.lineTo(w * 0.14, h * 0.1777); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.4586, h * 0.1241); + c.lineTo(w * 0.455, h * 0.1835); + c.lineTo(w * 0.3893, h * 0.2246); + c.lineTo(w * 0.2171, h * 0.1362); + c.lineTo(w * 0.2171, h * 0.1308); + c.lineTo(w * 0.2293, h * 0.1214); + c.lineTo(w * 0.2857, h * 0.1174); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5079, h * 0.1134); + c.lineTo(w * 0.7307, h * 0.1223); + c.lineTo(w * 0.7279, h * 0.1625); + c.lineTo(w * 0.715, h * 0.1772); + c.lineTo(w * 0.6929, h * 0.1688); + c.lineTo(w * 0.625, h * 0.1795); + c.lineTo(w * 0.4779, h * 0.2835); + c.lineTo(w * 0.395, h * 0.2299); + c.lineTo(w * 0.4657, h * 0.1826); + c.lineTo(w * 0.4707, h * 0.1223); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, h * 0.1362); + c.lineTo(w * 0.7643, h * 0.1237); + c.lineTo(w * 0.7543, h * 0.1562); + c.lineTo(w * 0.7643, h * 0.1585); + c.lineTo(w * 0.9186, h * 0.2366); + c.lineTo(w, h * 0.1732); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.2079, h * 0.1545); + c.lineTo(w * 0.3886, h * 0.2536); + c.lineTo(w * 0.3414, h * 0.2933); + c.lineTo(w * 0.1743, h * 0.1969); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.1579, h * 0.2134); + c.lineTo(w * 0.3221, h * 0.3067); + c.lineTo(w * 0.2957, h * 0.3237); + c.lineTo(w * 0.1157, h * 0.2424); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.405, h * 0.2656); + c.lineTo(w * 0.31, h * 0.3353); + c.lineTo(w * 0.3693, h * 0.3661); + c.lineTo(w * 0.4571, h * 0.2982); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.7121, h * 0.1848); + c.lineTo(w * 0.6879, h * 0.1754); + c.lineTo(w * 0.6329, h * 0.1844); + c.lineTo(w * 0.61, h * 0.2018); + c.lineTo(w * 0.6207, h * 0.2085); + c.lineTo(w * 0.4986, h * 0.2982); + c.lineTo(w * 0.535, h * 0.3237); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5557, h * 0.3379); + c.lineTo(w * 0.7464, h * 0.1826); + c.lineTo(w * 0.8036, h * 0.2076); + c.lineTo(w * 0.595, h * 0.3616); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8293, h * 0.2188); + c.lineTo(w * 0.8979, h * 0.2509); + c.lineTo(w * 0.6936, h * 0.4125); + c.lineTo(w * 0.6171, h * 0.3737); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, h * 0.2138); + c.lineTo(w * 0.6821, h * 0.4603); + c.lineTo(w * 0.815, h * 0.5277); + c.lineTo(w, h * 0.4); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.317); + c.lineTo(w * 0.0971, h * 0.2554); + c.lineTo(w * 0.4121, h * 0.4143); + c.lineTo(w * 0.3736, h * 0.4415); + c.lineTo(w * 0.315, h * 0.4076); + c.lineTo(w * 0.3093, h * 0.4116); + c.lineTo(w * 0.3686, h * 0.4455); + c.lineTo(w * 0.285, h * 0.5045); + c.lineTo(w * 0.1114, h * 0.4134); + c.lineTo(w * 0.025, h * 0.4603); + c.lineTo(w * 0.0371, h * 0.4723); + c.lineTo(w * 0.1114, h * 0.4371); + c.lineTo(w * 0.2871, h * 0.5312); + c.lineTo(w * 0.1929, h * 0.6058); + c.lineTo(w * 0.2271, h * 0.6705); + c.lineTo(w * 0.17, h * 0.7147); + c.lineTo(w * 0.0314, h * 0.6321); + c.lineTo(0, h * 0.6246); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.48, h * 0.3121); + c.lineTo(w * 0.5157, h * 0.3375); + c.lineTo(w * 0.4314, h * 0.3982); + c.lineTo(w * 0.3929, h * 0.3786); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.3086, h * 0.5179); + c.lineTo(w * 0.53, h * 0.3518); + c.lineTo(w * 0.5757, h * 0.3745); + c.lineTo(w * 0.3479, h * 0.5411); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5964, h * 0.3884); + c.lineTo(w * 0.6736, h * 0.4277); + c.lineTo(w * 0.445, h * 0.5991); + c.lineTo(w * 0.3664, h * 0.5531); + c.lineTo(w * 0.5057, h * 0.4545); + c.lineTo(w * 0.5507, h * 0.4754); + c.lineTo(w * 0.5571, h * 0.4723); + c.lineTo(w * 0.5114, h * 0.4504); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.4793, h * 0.6161); + c.lineTo(w * 0.6771, h * 0.4643); + c.lineTo(w * 0.8086, h * 0.5326); + c.lineTo(w * 0.7471, h * 0.5817); + c.lineTo(w * 0.7214, h * 0.567); + c.lineTo(w * 0.715, h * 0.571); + c.lineTo(w * 0.7421, h * 0.5871); + c.lineTo(w * 0.6014, h * 0.6933); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, h * 0.4371); + c.lineTo(w * 0.8443, h * 0.546); + c.lineTo(w * 0.9071, h * 0.5701); + c.lineTo(w, h * 0.5022); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8407, h * 0.5504); + c.lineTo(w * 0.8993, h * 0.5759); + c.lineTo(w * 0.6757, h * 0.7416); + c.lineTo(w * 0.6286, h * 0.7139); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, h * 0.5321); + c.lineTo(w * 0.6979, h * 0.7549); + c.lineTo(w * 0.7457, h * 0.7781); + c.lineTo(w * 0.9814, h * 0.6094); + c.lineTo(w, h * 0.6067); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, h * 0.6254); + c.lineTo(w * 0.7664, h * 0.792); + c.lineTo(w * 0.9586, h * 0.9062); + c.lineTo(w, h * 0.8786); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.3093, h * 0.5464); + c.lineTo(w * 0.4271, h * 0.6152); + c.lineTo(w * 0.245, h * 0.7643); + c.lineTo(w * 0.185, h * 0.7228); + c.lineTo(w * 0.2493, h * 0.6728); + c.lineTo(w * 0.2214, h * 0.6143); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.65); + c.lineTo(w * 0.2179, h * 0.7826); + c.lineTo(w * 0.1136, h * 0.8424); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.7272); + c.lineTo(w * 0.0821, h * 0.859); + c.lineTo(0, h * 0.9085); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.4529, h * 0.6366); + c.lineTo(w * 0.575, h * 0.7143); + c.lineTo(w * 0.39, h * 0.8621); + c.lineTo(w * 0.2657, h * 0.7902); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.9415); + c.lineTo(w * 0.1036, h * 0.8821); + c.lineTo(w * 0.2343, h * 0.959); + c.lineTo(w * 0.1721, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.2586, h * 0.7951); + c.lineTo(w * 0.3829, h * 0.8674); + c.lineTo(w * 0.2543, h * 0.9451); + c.lineTo(w * 0.1279, h * 0.8692); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.2836, h * 0.9639); + c.lineTo(w * 0.4207, h * 0.8772); + c.lineTo(w * 0.605, h * 0.7321); + c.lineTo(w * 0.6521, h * 0.7634); + c.lineTo(w * 0.3486, h); + c.lineTo(w * 0.3393, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.3879, h); + c.lineTo(w * 0.6721, h * 0.7759); + c.lineTo(w * 0.7171, h * 0.7982); + c.lineTo(w * 0.4564, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.4986, h); + c.lineTo(w * 0.7386, h * 0.8125); + c.lineTo(w * 0.9307, h * 0.925); + c.lineTo(w * 0.8264, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8671, h); + c.lineTo(w * 0.9464, h * 0.9491); + c.lineTo(w, h * 0.975); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.2295, h); + c.lineTo(w * 0.2648, h * 0.9792); + c.lineTo(w * 0.2981, h); + c.close(); + c.fillAndStroke(); + c.setStrokeWidth(1); + c.setStrokeColor(strokeColor); + c.begin(); + c.rect(0, 0, w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IBG_MAP, mxShapeMockupiBgMap); + +function mxShapeMockupiButtonBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiButtonBar, mxShape); +mxShapeMockupiButtonBar.prototype.customProperties = [{ + name: 'buttonText', + dispName: 'Labels', + type: 'string' +}, { + name: 'textColor', + dispName: 'Text Color', + type: 'color' +}, { + name: 'textColor2', + dispName: 'Text2 Color', + type: 'color' +}, { + name: 'strokeColor2', + dispName: 'Stroke2 Color', + type: 'color' +}]; + +mxShapeMockupiButtonBar.prototype.paintVertexShape = function (c, x, y, w, h) { + var textStrings = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, '+Button 1, Button 2, Button 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var separatorColor = mxUtils.getValue(this.style, mxMockupC.STYLE_STROKECOLOR2, '#c4c4c4'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var buttonNum = textStrings.length; + var maxButtonWidth = 0; + var selectedButton = -1; + var rSize = 2.5; + var labelOffset = 2.5; + + for (var i = 0; i < buttonNum; i++) { + var buttonText = textStrings[i]; + + if (buttonText.charAt(0) === mxMockupC.SELECTED) { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + var currWidth = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxButtonWidth) { + maxButtonWidth = currWidth; + } + } + + var minButtonHeight = fontSize * 1.5; + var minH = buttonNum * minButtonHeight; + var trueH = Math.max(h, minH); + var minW = 2 * labelOffset + maxButtonWidth; + var trueW = Math.max(w, minW); + c.translate(x, y); + this.background(c, trueW, trueH, rSize, buttonNum, labelOffset, buttonNum * minButtonHeight, frameColor, separatorColor, bgColor, selectedButton, minButtonHeight); + c.setShadow(false); + this.foreground(c, trueW, trueH, rSize, buttonNum, labelOffset, buttonNum * minButtonHeight, frameColor, separatorColor, bgColor, selectedButton, minButtonHeight); + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) { + if (i === selectedButton) { + c.setFontColor(selectedFontColor); + } else { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + var currHeight = (i * minButtonHeight + minButtonHeight * 0.5) * trueH / minH; + this.buttonText(c, trueW, currHeight, textStrings[i], fontSize, separatorColor); + } +}; + +mxShapeMockupiButtonBar.prototype.background = function (c, w, h, rSize, buttonNum, labelOffset, minH, frameColor, separatorColor, bgColor, selectedButton, minButtonHeight) { + c.begin(); + c.setStrokeWidth(1); + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupiButtonBar.prototype.foreground = function (c, w, h, rSize, buttonNum, labelOffset, minH, frameColor, separatorColor, bgColor, selectedButton, minButtonHeight) { + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + c.setStrokeWidth(strokeWidth); + c.setStrokeColor(separatorColor); + c.begin(); + + for (var i = 1; i < buttonNum; i++) { + if (i !== selectedButton && i !== selectedButton + 1) { + var currHeight = i * minButtonHeight * h / minH; + c.moveTo(0, currHeight); + c.lineTo(w, currHeight); + } + } + + c.stroke(); + c.setStrokeColor(mxConstants.NONE); + + if (selectedButton === 0) { + c.begin(); + var buttonBottom = minButtonHeight * h / minH; + c.setGradient('#5D7585', '#008cff', 0, 0, w, buttonBottom, mxConstants.DIRECTION_SOUTH, 1, 1); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, buttonBottom); + c.lineTo(0, buttonBottom); + c.close(); + c.fill(); + } else if (selectedButton === buttonNum - 1) { + c.begin(); + var buttonTop = h - minButtonHeight * h / minH; + c.setGradient('#5D7585', '#008cff', 0, buttonTop, w, h - buttonTop, mxConstants.DIRECTION_SOUTH, 1, 1); + c.moveTo(0, buttonTop); + c.lineTo(w, buttonTop); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fill(); + } else if (selectedButton !== -1) { + c.begin(); + var buttonTop = minButtonHeight * selectedButton * h / minH; + var buttonBottom = minButtonHeight * (selectedButton + 1) * h / minH; + c.setGradient('#5D7585', '#008cff', 0, buttonTop, w, buttonBottom - buttonTop, mxConstants.DIRECTION_SOUTH, 1, 1); + c.moveTo(0, buttonTop); + c.lineTo(w, buttonTop); + c.lineTo(w, buttonBottom); + c.lineTo(0, buttonBottom); + c.close(); + c.fill(); + } + + c.begin(); + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.stroke(); +}; + +mxShapeMockupiButtonBar.prototype.buttonText = function (c, w, h, textString, fontSize, separatorColor) { + if (textString.charAt(0) === mxMockupC.SELECTED) { + textString = textString.substring(1); + } + + c.setFontSize(fontSize); + c.text(10, h, 0, 0, textString, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var mSize = fontSize * 0.5; + c.setStrokeWidth(fontSize * 0.3); + c.setStrokeColor(separatorColor); + c.begin(); + c.moveTo(w - 20 - mSize, h - mSize); + c.lineTo(w - 20, h); + c.lineTo(w - 20 - mSize, h + mSize); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IBUTTON_BAR, mxShapeMockupiButtonBar); + +function mxShapeMockupiAppBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiAppBar, mxShape); + +mxShapeMockupiAppBar.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiAppBar.prototype.background = function (c, x, y, w, h) { + c.setGradient('#eeeeee', '#999999', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeMockupiAppBar.prototype.foreground = function (c, x, y, w, h) { + c.setFillColor('#0099ff'); + c.rect(5, h * 0.5 + 1.75, 1.5, 2.5); + c.fill(); + c.rect(7, h * 0.5 + 0.75, 1.5, 3.5); + c.fill(); + c.rect(9, h * 0.5 - 0.25, 1.5, 4.5); + c.fill(); + c.rect(11, h * 0.5 - 1.25, 1.5, 5.5); + c.fill(); + c.rect(13, h * 0.5 - 2.25, 1.5, 6.5); + c.fill(); + c.rect(15, h * 0.5 - 3.25, 1.5, 7.5); + c.fill(); + c.setFillColor('#999999'); + c.ellipse(w - 56.5, h * 0.5 - 4, 8, 8); + c.fill(); + c.setStrokeColor('#cccccc'); + c.begin(); + c.moveTo(w - 52.5, h * 0.5 - 3); + c.lineTo(w - 52.5, h * 0.5); + c.lineTo(w - 54.5, h * 0.5); + c.stroke(); + c.setStrokeWidth(0.5); + c.setStrokeColor('#333333'); + c.setFillColor('#990000'); + c.begin(); + c.moveTo(w - 45.5, h * 0.5); + c.lineTo(w - 37.5, h * 0.5 - 5); + c.lineTo(w - 41.5, h * 0.5 + 4); + c.lineTo(w - 42, h * 0.5 + 0.5); + c.close(); + c.fillAndStroke(); + c.setFillColor('#999999'); + c.setStrokeColor('#999999'); + c.begin(); + c.moveTo(w - 28.5, h * 0.5 + 3.5); + c.arcTo(3.5, 3.5, 0, 1, 1, w - 26.5, h * 0.5 + 1); + c.stroke(); + c.begin(); + c.moveTo(w - 27.25, h * 0.5 + 0.25); + c.lineTo(w - 25.75, h * 0.5 + 0.25); + c.lineTo(w - 26.5, h * 0.5 + 1.5); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w - 31, h * 0.5 - 0.5); + c.arcTo(1, 1.5, 0, 0, 1, w - 29, h * 0.5 - 0.5); + c.stroke(); + c.rect(w - 31.5, h * 0.5 - 0.5, 3, 2); + c.fillAndStroke(); + c.setGradient('#eeeeee', '#444444', w - 20, h * 0.5 - 3, 16.5, 6, mxConstants.DIRECTION_NORTH, 1, 1); + c.begin(); + c.moveTo(w - 20, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 3); + c.lineTo(w - 20, h * 0.5 + 3); + c.close(); + c.fill(); + c.setGradient('#E2FFEB', '#008215', w - 20, h * 0.5 - 3, 10, 6, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(w - 20, h * 0.5 - 3); + c.lineTo(w - 10, h * 0.5 - 3); + c.lineTo(w - 10, h * 0.5 + 3); + c.lineTo(w - 20, h * 0.5 + 3); + c.close(); + c.fill(); + c.setStrokeColor('#666666'); + c.begin(); + c.moveTo(w - 20, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 3); + c.lineTo(w - 20, h * 0.5 + 3); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IAPP_BAR, mxShapeMockupiAppBar); + +function mxShapeMockupiTopBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiTopBar, mxShape); + +mxShapeMockupiTopBar.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiTopBar.prototype.background = function (c, x, y, w, h) { + c.setAlpha(0.5); + c.setFillColor('#999999'); + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeMockupiTopBar.prototype.foreground = function (c, x, y, w, h) { + c.setFillColor('#cccccc'); + c.setStrokeColor('#cccccc'); + c.setFontColor('#cccccc'); + c.setFontSize(7.5); + c.rect(5, h * 0.5 + 1.75, 1.5, 2.5); + c.fill(); + c.rect(7, h * 0.5 + 0.75, 1.5, 3.5); + c.fill(); + c.rect(9, h * 0.5 - 0.25, 1.5, 4.5); + c.fill(); + c.rect(11, h * 0.5 - 1.25, 1.5, 5.5); + c.fill(); + c.rect(13, h * 0.5 - 2.25, 1.5, 6.5); + c.fill(); + c.rect(15, h * 0.5 - 3.25, 1.5, 7.5); + c.fill(); + c.text(18, h * 0.5, 0, 0, 'CARRIER', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.5, 0, 0, '11:15AM', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.begin(); + c.moveTo(w - 19, h * 0.5 - 2); + c.lineTo(w - 10, h * 0.5 - 2); + c.lineTo(w - 10, h * 0.5 + 2); + c.lineTo(w - 19, h * 0.5 + 2); + c.close(); + c.fill(); + c.begin(); + c.moveTo(w - 20, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 3); + c.lineTo(w - 20, h * 0.5 + 3); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ITOP_BAR, mxShapeMockupiTopBar); + +function mxShapeMockupiTopBar2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiTopBar2, mxShape); +mxShapeMockupiTopBar2.prototype.cst = { + SHAPE_ITOP_BAR2: 'mxgraph.ios.iTopBar2' +}; + +mxShapeMockupiTopBar2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiTopBar2.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeMockupiTopBar2.prototype.foreground = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.setStrokeColor(strokeColor); + c.rect(5, h * 0.5 + 1.75, 1.5, 2.5); + c.fill(); + c.rect(7, h * 0.5 + 0.75, 1.5, 3.5); + c.fill(); + c.rect(9, h * 0.5 - 0.25, 1.5, 4.5); + c.fill(); + c.rect(11, h * 0.5 - 1.25, 1.5, 5.5); + c.fill(); + c.rect(13, h * 0.5 - 2.25, 1.5, 6.5); + c.fill(); + c.rect(15, h * 0.5 - 3.25, 1.5, 7.5); + c.fill(); + c.begin(); + c.moveTo(w - 19, h * 0.5 - 2); + c.lineTo(w - 10, h * 0.5 - 2); + c.lineTo(w - 10, h * 0.5 + 2); + c.lineTo(w - 19, h * 0.5 + 2); + c.close(); + c.fill(); + c.begin(); + c.moveTo(w - 20, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 3); + c.lineTo(w - 20, h * 0.5 + 3); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupiTopBar2.prototype.cst.SHAPE_ITOP_BAR2, mxShapeMockupiTopBar2); + +function mxShapeMockupiTopBarLocked(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiTopBarLocked, mxShape); + +mxShapeMockupiTopBarLocked.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiTopBarLocked.prototype.background = function (c, x, y, w, h) { + c.setFillColor('#000000'); + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeMockupiTopBarLocked.prototype.foreground = function (c, x, y, w, h) { + c.setFillColor('#cccccc'); + c.setStrokeColor('#cccccc'); + c.rect(5, h * 0.5 + 1.75, 1.5, 2.5); + c.fill(); + c.rect(7, h * 0.5 + 0.75, 1.5, 3.5); + c.fill(); + c.rect(9, h * 0.5 - 0.25, 1.5, 4.5); + c.fill(); + c.rect(11, h * 0.5 - 1.25, 1.5, 5.5); + c.fill(); + c.rect(13, h * 0.5 - 2.25, 1.5, 6.5); + c.fill(); + c.rect(15, h * 0.5 - 3.25, 1.5, 7.5); + c.fill(); + c.begin(); + c.moveTo(w * 0.5 - 2, h * 0.5 - 1); + c.arcTo(2, 3, 0, 0, 1, w * 0.5 + 2, h * 0.5 - 1); + c.stroke(); + c.rect(w * 0.5 - 3, h * 0.5 - 1, 6, 4); + c.fillAndStroke(); + c.begin(); + c.moveTo(w - 19, h * 0.5 - 2); + c.lineTo(w - 10, h * 0.5 - 2); + c.lineTo(w - 10, h * 0.5 + 2); + c.lineTo(w - 19, h * 0.5 + 2); + c.close(); + c.fill(); + c.begin(); + c.moveTo(w - 20, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 3); + c.lineTo(w - 20, h * 0.5 + 3); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ITOP_BAR_LOCKED, mxShapeMockupiTopBarLocked); + +function mxShapeMockupiButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiButton, mxShape); + +mxShapeMockupiButton.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Main Text'); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8.5').toString(); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeMockupiButton.prototype.background = function (c, x, y, w, h) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(0, 0, w, h, 2.5, 2.5); + c.fill(); +}; + +mxShapeMockupiButton.prototype.mainText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w / 2, h / 2, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IBUTTON, mxShapeMockupiButton); + +function mxShapeMockupiButtonBack(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiButtonBack, mxShape); + +mxShapeMockupiButtonBack.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Main Text'); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17').toString(); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeMockupiButtonBack.prototype.background = function (c, x, y, w, h) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + rSize = 2.5; + c.begin(); + c.moveTo(w, rSize); + c.arcTo(rSize, rSize, 0, 0, 0, w - rSize, 0); + c.lineTo(10, 0); + c.lineTo(0.87, h * 0.5 - 0.75); + c.arcTo(rSize, rSize, 0, 0, 0, 0.87, h * 0.5 + 0.75); + c.lineTo(10, h); + c.lineTo(w - rSize, h); + c.arcTo(rSize, rSize, 0, 0, 0, w, h - rSize); + c.close(); + c.fill(); +}; + +mxShapeMockupiButtonBack.prototype.mainText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5 + 2.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IBUTTON_BACK, mxShapeMockupiButtonBack); + +function mxShapeMockupiButtonForward(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiButtonForward, mxShape); + +mxShapeMockupiButtonForward.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Main Text'); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17').toString(); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeMockupiButtonForward.prototype.background = function (c, x, y, w, h) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + rSize = 2.5; + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - 10, 0); + c.lineTo(w - 0.87, h * 0.5 - 0.75); + c.arcTo(rSize, rSize, 0, 0, 1, w - 0.87, h * 0.5 + 0.75); + c.lineTo(w - 10, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fill(); +}; + +mxShapeMockupiButtonForward.prototype.mainText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5 - 2.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IBUTTON_FORWARD, mxShapeMockupiButtonForward); + +function mxShapeMockupiPrevNextButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiPrevNextButton, mxShape); + +mxShapeMockupiPrevNextButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiPrevNextButton.prototype.background = function (c, x, y, w, h) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + var rSize = 5; + c.roundrect(0, 0, w, h, rSize, rSize); + c.fill(); + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.stroke(); +}; + +mxShapeMockupiPrevNextButton.prototype.foreground = function (c, x, y, w, h) { + var fillColor3 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR3, '').toString(); + c.setFillColor(fillColor3); + c.begin(); + c.moveTo(w * 0.25, h * 0.25); + c.lineTo(w * 0.35, h * 0.75); + c.lineTo(w * 0.15, h * 0.75); + c.close(); + c.fill(); + c.begin(); + c.moveTo(w * 0.75, h * 0.75); + c.lineTo(w * 0.85, h * 0.25); + c.lineTo(w * 0.65, h * 0.25); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IPREV_NEXT, mxShapeMockupiPrevNextButton); + +function mxShapeMockupiTextInput(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiTextInput, mxShape); + +mxShapeMockupiTextInput.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Main Text'); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#000000').toString(); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8').toString(); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeMockupiTextInput.prototype.background = function (c, x, y, w, h) { + c.roundrect(0, 0, w, h, 2.5, 2.5); + c.fillAndStroke(); +}; + +mxShapeMockupiTextInput.prototype.mainText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(2, h * 0.5, 0, 0, text, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ITEXT_INPUT, mxShapeMockupiTextInput); + +function mxShapeMockupiRadioGroup(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiRadioGroup, mxShape); + +mxShapeMockupiRadioGroup.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8').toString(); + var optionText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Option 1').toString().split(','); + var optionNum = optionText.length; + var buttonSize = 5; + var lineH = Math.max(fontSize * 1.5, buttonSize); + var maxTextWidth = 0; + var selected = -1; + var labelOffset = 2.5; + var minH = optionNum * lineH; + var trueH = Math.max(h, minH); + + for (var i = 0; i < optionNum; i++) { + var currText = optionText[i]; + + if (currText.charAt(0) === mxMockupC.SELECTED) { + currText = optionText[i].substring(1); + selected = i; + } + + var currWidth = mxUtils.getSizeForString(currText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxTextWidth) { + maxTextWidth = currWidth; + } + } + + var minW = 2 * labelOffset + maxTextWidth + 2 * buttonSize; + var trueW = Math.max(w, minW); + c.roundrect(0, 0, trueW, trueH, 2.5, 2.5); + c.fillAndStroke(); + c.setShadow(false); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + + for (var i = 0; i < optionNum; i++) { + var currHeight = (i * lineH + lineH * 0.5) * trueH / minH; + var currText = optionText[i]; + + if (currText.charAt(0) === mxMockupC.SELECTED) { + currText = optionText[i].substring(1); + selected = i; + } + + c.text(buttonSize * 2 + labelOffset, currHeight, 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var iconX = buttonSize * 0.5; + var iconY = currHeight - buttonSize * 0.5; + c.setFillColor('#dddddd'); + c.setStrokeColor('#000000'); + + if (selected === i) { + c.setGradient('#aaaaaa', '#666666', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + c.setFillColor('#333333'); + c.setStrokeColor('#333333'); + c.ellipse(iconX + buttonSize * 0.25, iconY + buttonSize * 0.25, buttonSize * 0.5, buttonSize * 0.5); + c.fillAndStroke(); + } else { + c.setGradient('#eeeeee', '#cccccc', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + } + } +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IRADIO_GROUP, mxShapeMockupiRadioGroup); + +function mxShapeMockupiCheckboxGroup(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiCheckboxGroup, mxShape); + +mxShapeMockupiCheckboxGroup.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8').toString(); + var optionText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Option 1').toString().split(','); + var optionNum = optionText.length; + var buttonSize = 5; + var lineH = Math.max(fontSize * 1.5, buttonSize); + var maxTextWidth = 0; + var selected = -1; + var labelOffset = 2.5; + var minH = optionNum * lineH; + var trueH = Math.max(h, minH); + + for (var i = 0; i < optionNum; i++) { + var currText = optionText[i]; + + if (currText.charAt(0) === mxMockupC.SELECTED) { + currText = optionText[i].substring(1); + selected = i; + } + + var currWidth = mxUtils.getSizeForString(currText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxTextWidth) { + maxTextWidth = currWidth; + } + } + + var minW = 2 * labelOffset + maxTextWidth + 2 * buttonSize; + var trueW = Math.max(w, minW); + c.roundrect(0, 0, trueW, trueH, 2.5, 2.5); + c.fillAndStroke(); + c.setShadow(false); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + + for (var i = 0; i < optionNum; i++) { + var currHeight = (i * lineH + lineH * 0.5) * trueH / minH; + var currText = optionText[i]; + + if (currText.charAt(0) === mxMockupC.SELECTED) { + currText = optionText[i].substring(1); + selected = i; + } + + c.text(buttonSize * 2 + labelOffset, currHeight, 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var iconX = buttonSize * 0.5; + var iconY = currHeight - buttonSize * 0.5; + c.setFillColor('#dddddd'); + c.setStrokeColor('#000000'); + + if (selected === i) { + c.setGradient('#aaaaaa', '#666666', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + c.setStrokeColor('#333333'); + c.begin(); + c.moveTo(iconX + buttonSize * 0.25, iconY + buttonSize * 0.5); + c.lineTo(iconX + buttonSize * 0.5, iconY + buttonSize * 0.75); + c.lineTo(iconX + buttonSize * 0.75, iconY + buttonSize * 0.25); + c.stroke(); + } else { + c.setGradient('#eeeeee', '#cccccc', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + } + + selected = -1; + } +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICHECKBOX_GROUP, mxShapeMockupiCheckboxGroup); + +function mxShapeMockupiComboBox(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiComboBox, mxShape); + +mxShapeMockupiComboBox.prototype.paintVertexShape = function (c, x, y, w, h) { + var mainText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Main Text'); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8.5').toString(); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeMockupiComboBox.prototype.background = function (c, x, y, w, h) { + c.setFillColor('#ffffff'); + c.roundrect(0, 0, w, h, 2.5, 2.5); + c.fillAndStroke(); +}; + +mxShapeMockupiComboBox.prototype.foreground = function (c, x, y, w, h) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, w - 30, 0, 30, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(w - 15, 0); + c.lineTo(w - 2.5, 0); + c.arcTo(2.5, 2.5, 0, 0, 1, w, 2.5); + c.lineTo(w, h - 2.5); + c.arcTo(2.5, 2.5, 0, 0, 1, w - 2.5, h); + c.lineTo(w - 15, h); + c.close(); + c.fillAndStroke(); + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(w - 11, 5); + c.lineTo(w - 7.5, 10); + c.lineTo(w - 4, 5); + c.fill(); +}; + +mxShapeMockupiComboBox.prototype.mainText = function (c, x, y, w, h, text, fontSize, fontColor) { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(2.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICOMBO_BOX, mxShapeMockupiComboBox); + +function mxShapeMockupiOnOffButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiOnOffButton, mxShape); +mxShapeMockupiOnOffButton.prototype.customProperties = [{ + name: 'buttonState', + dispName: 'State', + type: 'enum', + enumList: [{ + val: 'on', + dispName: 'On' + }, { + val: 'off', + dispName: 'Off' + }] +}]; + +mxShapeMockupiOnOffButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + w = Math.max(w, 2 * h); + var state = mxUtils.getValue(this.style, mxMockupC.BUTTON_STATE, mxMockupC.STATE_ON); + this.background(c, x, y, w, h, state); + c.setShadow(false); + this.foreground(c, x, y, w, h, state); + this.mainText(c, x, y, w, h, state); +}; + +mxShapeMockupiOnOffButton.prototype.background = function (c, x, y, w, h, state) { + if (state === mxMockupC.STATE_ON) { + c.setGradient('#E2FFEB', '#008215', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(0, 0, w, h, h * 0.5, h * 0.5); + c.fillAndStroke(); + } else if (state === mxMockupC.STATE_OFF) { + c.setGradient('#cc9999', '#881100', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(0, 0, w, h, h * 0.5, h * 0.5); + c.fillAndStroke(); + } +}; + +mxShapeMockupiOnOffButton.prototype.foreground = function (c, x, y, w, h, state) { + if (state === mxMockupC.STATE_ON) { + c.setGradient('#ffffff', '#888888', w - h, 0, h, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(w - h, 0, h, h); + c.fillAndStroke(); + } else { + c.setGradient('#ffffff', '#888888', 0, 0, h, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(0, 0, h, h); + c.fillAndStroke(); + } +}; + +mxShapeMockupiOnOffButton.prototype.mainText = function (c, x, y, w, h, state) { + var mainText = mxUtils.getValue(this.style, 'mainText', null); + c.setFontColor('#ffffff'); + c.setFontSize(8.5); + + if (mainText != '') { + if (state === mxMockupC.STATE_ON) { + c.text(w * 0.5 - h * 0.4, h * 0.5, 0, 0, mainText || 'ON', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (state === mxMockupC.STATE_OFF) { + c.text(w * 0.5 + h * 0.4, h * 0.5, 0, 0, mainText || 'OFF', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + } +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ION_OFF_BUTTON, mxShapeMockupiOnOffButton); + +function mxShapeMockupiAlertBox(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiAlertBox, mxShape); + +mxShapeMockupiAlertBox.prototype.paintVertexShape = function (c, x, y, w, h) { + w = Math.max(w, 15); + h = Math.max(h, 15); + c.translate(x, y); + rSize = 7.5; + this.background(c, x, y, w, h, rSize); + c.setShadow(false); + this.foreground(c, x, y, w, h, rSize); +}; + +mxShapeMockupiAlertBox.prototype.background = function (c, x, y, w, h, rSize) { + c.setGradient('#497198', '#193168', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(0.8); + c.setStrokeWidth(1); + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); +}; + +mxShapeMockupiAlertBox.prototype.foreground = function (c, x, y, w, h, rSize) { + var mainText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Main Text').toString().split(','); + c.setStrokeColor('#497198'); + c.setGradient('#497198', '#c5cee1', 0, 0, w, 22.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(0.5); + c.begin(); + c.moveTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, 17.5); + c.arcTo(w * 1.67, h * 2.5, 0, 0, 1, 0, 17.5); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fillAndStroke(); + c.setAlpha(0.8); + c.setStrokeColor('#ffffff'); + c.setStrokeWidth(1); + c.roundrect(0, 0, w, h, rSize, rSize); + c.stroke(); + c.setGradient('#497198', '#c5cee1', 5, h - 50, w - 20, 20, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(5, h - 25, w - 10, 20, 2.5, 2.5); + c.fillAndStroke(); + c.setAlpha(0.9); + c.setFontSize(9.5); + c.setFontColor('#ffffff'); + c.text(w * 0.5, h * 0.15, 0, 0, mainText[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontSize(8); + c.text(w * 0.5, h * 0.4, 0, 0, mainText[2], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.55, 0, 0, mainText[3], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontSize(8.5); + c.text(w * 0.5, h - 15, 0, 0, mainText[1], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IALERT_BOX, mxShapeMockupiAlertBox); + +function mxShapeMockupiDialogBox(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiDialogBox, mxShape); + +mxShapeMockupiDialogBox.prototype.paintVertexShape = function (c, x, y, w, h) { + w = Math.max(w, 15); + h = Math.max(h, 15); + c.translate(x, y); + rSize = 7.5; + this.background(c, x, y, w, h, rSize); + c.setShadow(false); + this.foreground(c, x, y, w, h, rSize); +}; + +mxShapeMockupiDialogBox.prototype.background = function (c, x, y, w, h, rSize) { + c.setGradient('#497198', '#193168', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(0.8); + c.setStrokeWidth(1); + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); +}; + +mxShapeMockupiDialogBox.prototype.foreground = function (c, x, y, w, h, rSize) { + var mainText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Main Text').toString().split(','); + c.setStrokeColor('#497198'); + c.setGradient('#497198', '#c5cee1', 0, 0, w, 22.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(0.5); + c.begin(); + c.moveTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, 17.5); + c.arcTo(w * 1.67, h * 2.5, 0, 0, 1, 0, 17.5); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fillAndStroke(); + c.setAlpha(0.8); + c.setStrokeColor('#ffffff'); + c.setStrokeWidth(1); + c.roundrect(0, 0, w, h, rSize, rSize); + c.stroke(); + c.setGradient('#497198', '#c5cee1', 5, h - 25, w * 0.5 - 10, 20, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(5, h - 25, w * 0.5 - 10, 20, 2.5, 2.5); + c.fillAndStroke(); + c.roundrect(w * 0.5 + 2.5, h - 25, w * 0.5 - 10, 20, 2.5, 2.5); + c.fillAndStroke(); + c.setAlpha(0.9); + c.setFontSize(9.5); + c.setFontColor('#ffffff'); + c.text(w * 0.5, h * 0.15, 0, 0, mainText[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontSize(8); + c.text(w * 0.5, h * 0.4, 0, 0, mainText[3], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.55, 0, 0, mainText[4], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontSize(8.5); + c.text(w * 0.25, h - 15, 0, 0, mainText[1], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.75, h - 15, 0, 0, mainText[2], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IDIALOG_BOX, mxShapeMockupiDialogBox); + +function mxShapeMockupiLockButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiLockButton, mxShape); + +mxShapeMockupiLockButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setShadow(false); + c.setAlpha(0.7); + c.setGradient('#4A4F56', '#70757B', 0, 0, w, h, mxConstants.DIRECTION_NORTH, 1, 1); + c.rect(0, 0, w, h); + c.fill(); + c.setAlpha(0.8); + c.setGradient('#18232D', '#1F2933', 10, 10, 154, 30, mxConstants.DIRECTION_NORTH, 1, 1); + c.roundrect(10, h * 0.5 - 15, w - 20, 30, 7.5, 7.5); + c.fill(); + c.setAlpha(1); + c.setGradient('#E9F3FD', '#ADB7C1', 12.5, 12.5, 40, 25, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(12.5, h * 0.5 - 12.5, 40, 25, 5, 5); + c.fill(); + c.setAlpha(0.8); + c.setStrokeWidth(0.5); + c.setStrokeColor('#aabbbb'); + c.setGradient('#AEB7C1', '#667079', 20, 17.5, 25, 15, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(20, h * 0.5 - 3.5); + c.lineTo(35, h * 0.5 - 3.5); + c.lineTo(35, h * 0.5 - 7.5); + c.lineTo(45, h * 0.5); + c.lineTo(35, h * 0.5 + 7.5); + c.lineTo(35, h * 0.5 + 3.5); + c.lineTo(20, h * 0.5 + 3.5); + c.close(); + c.fillAndStroke(); + var mainText = mxUtils.getValue(this.style, 'mainText', null); + + if (mainText != '') { + c.setFontSize(12.5); + c.setFontColor('#cccccc'); + c.text(w / 2 + 20.5, h / 2, 0, 0, 'slide to unlock', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ILOCK_BUTTON, mxShapeMockupiLockButton); + +function mxShapeMockupiArrowIcon(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiArrowIcon, mxShape); + +mxShapeMockupiArrowIcon.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '').toString(); + c.translate(x, y); + this.background(c, x, y, w, h, strokeColor); + c.setShadow(false); + this.foreground(c, x, y, w, h, strokeColor); +}; + +mxShapeMockupiArrowIcon.prototype.background = function (c, x, y, w, h, strokeColor) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setStrokeWidth(1.5); + c.setStrokeColor(strokeColor); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiArrowIcon.prototype.foreground = function (c, x, y, w, h, strokeColor) { + c.setStrokeWidth(2.5); + c.begin(); + c.moveTo(w * 0.4, h * 0.22); + c.lineTo(w * 0.65, h * 0.5); + c.lineTo(w * 0.4, h * 0.78); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IARROW_ICON, mxShapeMockupiArrowIcon); + +function mxShapeMockupiDeleteIcon(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiDeleteIcon, mxShape); + +mxShapeMockupiDeleteIcon.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '').toString(); + c.translate(x, y); + this.background(c, x, y, w, h, strokeColor); + c.setShadow(false); + this.foreground(c, x, y, w, h, strokeColor); +}; + +mxShapeMockupiDeleteIcon.prototype.background = function (c, x, y, w, h, strokeColor) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setStrokeWidth(1.5); + c.setStrokeColor(strokeColor); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiDeleteIcon.prototype.foreground = function (c, x, y, w, h, strokeColor) { + c.setStrokeWidth(2.5); + c.begin(); + c.moveTo(w * 0.25, h * 0.5); + c.lineTo(w * 0.75, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IDELETE_ICON, mxShapeMockupiDeleteIcon); + +function mxShapeMockupiAddIcon(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiAddIcon, mxShape); + +mxShapeMockupiAddIcon.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '').toString(); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setStrokeColor(strokeColor); + c.translate(x, y); + this.background(c, x, y, w, h, strokeColor); + c.setShadow(false); + this.foreground(c, x, y, w, h, strokeColor); +}; + +mxShapeMockupiAddIcon.prototype.background = function (c, x, y, w, h, strokeColor) { + c.setStrokeWidth(1.5); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiAddIcon.prototype.foreground = function (c, x, y, w, h, strokeColor) { + c.setStrokeWidth(2.5); + c.begin(); + c.moveTo(w * 0.25, h * 0.5); + c.lineTo(w * 0.75, h * 0.5); + c.moveTo(w * 0.5, h * 0.25); + c.lineTo(w * 0.5, h * 0.75); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IADD_ICON, mxShapeMockupiAddIcon); + +function mxShapeMockupiInfoIcon(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiInfoIcon, mxShape); + +mxShapeMockupiInfoIcon.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '').toString(); + c.translate(x, y); + this.background(c, x, y, w, h, strokeColor); + c.setShadow(false); + this.foreground(c, x, y, w, h, strokeColor); +}; + +mxShapeMockupiInfoIcon.prototype.background = function (c, x, y, w, h, strokeColor) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setStrokeWidth(1.5); + c.setStrokeColor(strokeColor); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiInfoIcon.prototype.foreground = function (c, x, y, w, h, strokeColor) { + c.setStrokeWidth(2.5); + c.begin(); + c.setFillColor('#ffffff'); + c.moveTo(w * 0.47, h * 0.334); + c.arcTo(w * 0.1, h * 0.15, 60, 0, 1, w * 0.61, h * 0.42); + c.lineTo(w * 0.51, h * 0.7); + c.arcTo(w * 0.026, h * 0.03, 30, 0, 0, w * 0.54, h * 0.74); + c.lineTo(w * 0.608, h * 0.684); + c.arcTo(w * 0.02, h * 0.015, 0, 0, 1, w * 0.638, h * 0.706); + c.arcTo(w * 0.45, h * 0.45, 0, 0, 1, w * 0.42, h * 0.865); + c.arcTo(w * 0.1, h * 0.08, -15, 0, 1, w * 0.325, h * 0.77); + c.lineTo(w * 0.358, h * 0.66); + c.lineTo(w * 0.435, h * 0.46); + c.arcTo(w * 0.023, h * 0.03, 0, 0, 0, w * 0.4, h * 0.43); + c.lineTo(w * 0.338, h * 0.484); + c.arcTo(w * 0.01, h * 0.015, 45, 0, 1, w * 0.31, h * 0.47); + c.arcTo(w * 0.3, h * 0.3, 0, 0, 1, w * 0.47, h * 0.334); + c.fill(); + c.begin(); + c.moveTo(w * 0.5438, h * 0.141); + c.arcTo(w * 0.0776, h * 0.0898, 40, 0, 1, w * 0.6671, h * 0.2308); + c.arcTo(w * 0.0776, h * 0.0898, 40, 0, 1, w * 0.5438, h * 0.141); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IINFO_ICON, mxShapeMockupiInfoIcon); + +function mxShapeMockupiSortFindIcon(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiSortFindIcon, mxShape); + +mxShapeMockupiSortFindIcon.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '').toString(); + c.translate(x, y); + this.background(c, x, y, w, h, strokeColor); + c.setShadow(false); + this.foreground(c, x, y, w, h, strokeColor); +}; + +mxShapeMockupiSortFindIcon.prototype.background = function (c, x, y, w, h, strokeColor) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setStrokeWidth(1.5); + c.setStrokeColor(strokeColor); + c.roundrect(0, 0, w, h, w * 0.1, h * 0.1); + c.fillAndStroke(); +}; + +mxShapeMockupiSortFindIcon.prototype.foreground = function (c, x, y, w, h, strokeColor) { + c.setStrokeWidth(Math.min(h, w) / 20); + c.begin(); + c.setFillColor('#ffffff'); + c.moveTo(w * 0.1, h * 0.25); + c.lineTo(w * 0.9, h * 0.25); + c.moveTo(w * 0.1, h * 0.4); + c.lineTo(w * 0.9, h * 0.4); + c.moveTo(w * 0.1, h * 0.55); + c.lineTo(w * 0.6, h * 0.55); + c.moveTo(w * 0.1, h * 0.7); + c.lineTo(w * 0.5, h * 0.7); + c.stroke(); + c.begin(); + c.ellipse(w * 0.6, h * 0.6, w * 0.2, h * 0.2); + c.stroke(); + c.begin(); + c.moveTo(w * 0.77, h * 0.77); + c.lineTo(w * 0.85, h * 0.85); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ISORT_FIND_ICON, mxShapeMockupiSortFindIcon); + +function mxShapeMockupiCheckIcon(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiCheckIcon, mxShape); + +mxShapeMockupiCheckIcon.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '').toString(); + c.translate(x, y); + this.background(c, x, y, w, h, strokeColor); + c.setShadow(false); + this.foreground(c, x, y, w, h, strokeColor); +}; + +mxShapeMockupiCheckIcon.prototype.background = function (c, x, y, w, h, strokeColor) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setStrokeWidth(1.5); + c.setStrokeColor(strokeColor); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiCheckIcon.prototype.foreground = function (c, x, y, w, h, strokeColor) { + c.setStrokeWidth(2.5); + c.begin(); + c.moveTo(w * 0.25, h * 0.5); + c.lineTo(w * 0.5, h * 0.65); + c.lineTo(w * 0.75, h * 0.25); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICHECK_ICON, mxShapeMockupiCheckIcon); + +function mxShapeMockupiKeybLetters(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiKeybLetters, mxShape); + +mxShapeMockupiKeybLetters.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiKeybLetters.prototype.background = function (c, x, y, w, h) { + c.setGradient('#8A97A7', '#425163', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeMockupiKeybLetters.prototype.foreground = function (c, x, y, w, h, strokeColor) { + c.setGradient('#EEF3F9', '#DBE2E9', w * 0.0086, h * 0.03, w * 0.0776, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + rSizeX = w * 0.0144; + rSizeY = h * 0.025; + c.setFontSize(10.5); + c.setFontColor('#000000'); + c.roundrect(w * 0.0086, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.0474, h * 0.125, 0, 0, 'Q', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.1092, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.148, h * 0.125, 0, 0, 'W', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.2098, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2486, h * 0.125, 0, 0, 'E', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.3103, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3491, h * 0.125, 0, 0, 'R', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.4109, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.4497, h * 0.125, 0, 0, 'T', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.5115, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5503, h * 0.125, 0, 0, 'Y', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.6121, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6509, h * 0.125, 0, 0, 'U', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.7126, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7514, h * 0.125, 0, 0, 'I', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.8132, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.852, h * 0.125, 0, 0, 'O', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.9138, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.9526, h * 0.125, 0, 0, 'P', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.0632, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.102, h * 0.375, 0, 0, 'A', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.1638, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2026, h * 0.375, 0, 0, 'S', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.2644, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3032, h * 0.375, 0, 0, 'D', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.3649, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.4037, h * 0.375, 0, 0, 'F', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.4655, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5043, h * 0.375, 0, 0, 'G', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.5661, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6049, h * 0.375, 0, 0, 'H', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.6667, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7055, h * 0.375, 0, 0, 'J', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.7672, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.806, h * 0.375, 0, 0, 'K', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.8678, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.9066, h * 0.375, 0, 0, 'L', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.1638, h * 0.53, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2026, h * 0.625, 0, 0, 'Z', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.2644, h * 0.53, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3032, h * 0.625, 0, 0, 'X', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.3649, h * 0.53, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.4037, h * 0.625, 0, 0, 'C', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.4655, h * 0.53, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5043, h * 0.625, 0, 0, 'V', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.5661, h * 0.53, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6049, h * 0.625, 0, 0, 'B', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.6667, h * 0.53, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7055, h * 0.625, 0, 0, 'N', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.7672, h * 0.53, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.806, h * 0.625, 0, 0, 'M', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.2644, h * 0.78, w * 0.4799, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.setFontColor('#666666'); + c.text(w * 0.5043, h * 0.875, 0, 0, 'space', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontColor('#ffffff'); + c.setGradient('#8B98A8', '#677488', w * 0.0115, h * 0.53, w * 0.1207, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(w * 0.0115, h * 0.53, w * 0.1207, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.setGradient('#8B98A8', '#677488', w * 0.8736, h * 0.53, w * 0.115, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(w * 0.8736, h * 0.53, w * 0.115, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.setGradient('#8B98A8', '#677488', w * 0.0115, h * 0.78, w * 0.2299, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(w * 0.0115, h * 0.78, w * 0.2299, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.setGradient('#8B98A8', '#677488', w * 0.7672, h * 0.78, w * 0.2213, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(w * 0.7672, h * 0.78, w * 0.2213, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.1264, h * 0.875, 0, 0, '.?123', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8779, h * 0.875, 0, 0, 'return', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setShadow(false); + c.setLineJoin('round'); + c.setStrokeColor('#ffffff'); + c.setFillColor('#ffffff'); + c.setStrokeWidth(1.5); + c.begin(); + c.moveTo(w * 0.0402, h * 0.635); + c.lineTo(w * 0.0718, h * 0.58); + c.lineTo(w * 0.1034, h * 0.635); + c.lineTo(w * 0.0862, h * 0.635); + c.lineTo(w * 0.0862, h * 0.67); + c.lineTo(w * 0.0575, h * 0.67); + c.lineTo(w * 0.0575, h * 0.635); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.9109, h * 0.585); + c.lineTo(w * 0.9655, h * 0.585); + c.lineTo(w * 0.9655, h * 0.665); + c.lineTo(w * 0.9109, h * 0.665); + c.lineTo(w * 0.8879, h * 0.625); + c.close(); + c.fillAndStroke(); + c.setStrokeColor('#677488'); + c.begin(); + c.moveTo(w * 0.9224, h * 0.605); + c.lineTo(w * 0.9454, h * 0.645); + c.moveTo(w * 0.9224, h * 0.645); + c.lineTo(w * 0.9454, h * 0.605); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IKEYB_LETTERS, mxShapeMockupiKeybLetters); + +function mxShapeMockupiKeybNumbers(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiKeybNumbers, mxShape); + +mxShapeMockupiKeybNumbers.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiKeybNumbers.prototype.background = function (c, x, y, w, h) { + c.setGradient('#8A97A7', '#425163', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeMockupiKeybNumbers.prototype.foreground = function (c, x, y, w, h, strokeColor) { + c.setGradient('#EEF3F9', '#DBE2E9', w * 0.0086, h * 0.03, w * 0.0776, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + rSizeX = w * 0.0144; + rSizeY = h * 0.025; + c.setFontSize(10.5); + c.setFontColor('#000000'); + c.roundrect(w * 0.0086, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.0474, h * 0.125, 0, 0, '1', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.1092, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.148, h * 0.125, 0, 0, '2', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.2098, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2486, h * 0.125, 0, 0, '3', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.3103, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3491, h * 0.125, 0, 0, '4', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.4109, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.4497, h * 0.125, 0, 0, '5', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.5115, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5503, h * 0.125, 0, 0, '6', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.6121, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6509, h * 0.125, 0, 0, '7', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.7126, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7514, h * 0.125, 0, 0, '8', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.8132, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.852, h * 0.125, 0, 0, '9', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.9138, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.9526, h * 0.125, 0, 0, '0', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.0086, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.0474, h * 0.375, 0, 0, '-', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.1092, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.148, h * 0.375, 0, 0, '/', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.2098, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2486, h * 0.375, 0, 0, ':', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.3103, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3491, h * 0.375, 0, 0, ';', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.4109, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.4497, h * 0.375, 0, 0, '(', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.5115, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5503, h * 0.375, 0, 0, ')', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.6121, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6509, h * 0.375, 0, 0, '$', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.7126, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7514, h * 0.375, 0, 0, '&', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.8132, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.852, h * 0.375, 0, 0, '@', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.9138, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.9526, h * 0.375, 0, 0, '\"', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.1638, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2227, h * 0.625, 0, 0, '.', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.3046, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3635, h * 0.625, 0, 0, ',', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.4454, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5043, h * 0.625, 0, 0, '?', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.5862, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6451, h * 0.625, 0, 0, '!', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.727, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7859, h * 0.625, 0, 0, '\'', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.2644, h * 0.78, w * 0.4799, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.setFontColor('#666666'); + c.text(w * 0.5043, h * 0.875, 0, 0, 'space', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setGradient('#8B98A8', '#677488', w * 0.0115, h * 0.53, w * 0.1207, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setFontColor('#ffffff'); + c.roundrect(w * 0.0115, h * 0.53, w * 0.1207, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.roundrect(w * 0.8736, h * 0.53, w * 0.115, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.roundrect(w * 0.0115, h * 0.78, w * 0.2299, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.roundrect(w * 0.7672, h * 0.78, w * 0.2213, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.0718, h * 0.625, 0, 0, '#+=', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.1264, h * 0.875, 0, 0, 'ABC', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8779, h * 0.875, 0, 0, 'return', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setShadow(false); + c.setLineJoin('round'); + c.setStrokeColor('#ffffff'); + c.setFillColor('#ffffff'); + c.setStrokeWidth(1.5); + c.begin(); + c.moveTo(w * 0.9109, h * 0.585); + c.lineTo(w * 0.9655, h * 0.585); + c.lineTo(w * 0.9655, h * 0.665); + c.lineTo(w * 0.9109, h * 0.665); + c.lineTo(w * 0.8879, h * 0.625); + c.close(); + c.fillAndStroke(); + c.setStrokeColor('#677488'); + c.begin(); + c.moveTo(w * 0.9224, h * 0.605); + c.lineTo(w * 0.9454, h * 0.645); + c.moveTo(w * 0.9224, h * 0.645); + c.lineTo(w * 0.9454, h * 0.605); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IKEYB_NUMBERS, mxShapeMockupiKeybNumbers); + +function mxShapeMockupiKeybSymbols(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiKeybSymbols, mxShape); + +mxShapeMockupiKeybSymbols.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiKeybSymbols.prototype.background = function (c, x, y, w, h) { + c.setGradient('#8A97A7', '#425163', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeMockupiKeybSymbols.prototype.foreground = function (c, x, y, w, h, strokeColor) { + c.setGradient('#EEF3F9', '#DBE2E9', w * 0.0086, h * 0.03, w * 0.0776, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + rSizeX = w * 0.0144; + rSizeY = h * 0.025; + c.setFontSize(10.5); + c.setFontColor('#000000'); + c.roundrect(w * 0.0086, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.0474, h * 0.125, 0, 0, '[', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.1092, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.148, h * 0.125, 0, 0, ']', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.2098, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2486, h * 0.125, 0, 0, '{', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.3103, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3491, h * 0.125, 0, 0, '}', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.4109, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.4497, h * 0.125, 0, 0, '#', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.5115, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5503, h * 0.125, 0, 0, '%', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.6121, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6509, h * 0.125, 0, 0, '^', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.7126, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7514, h * 0.125, 0, 0, '*', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.8132, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.852, h * 0.125, 0, 0, '+', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.9138, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.9526, h * 0.125, 0, 0, '=', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.0086, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.0474, h * 0.375, 0, 0, '_', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.1092, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.148, h * 0.375, 0, 0, '\\', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.2098, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2486, h * 0.375, 0, 0, '|', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.3103, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3491, h * 0.375, 0, 0, '~', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.4109, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.4497, h * 0.375, 0, 0, '<', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.5115, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5503, h * 0.375, 0, 0, '>', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.6121, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6509, h * 0.375, 0, 0, String.fromCharCode(128), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.7126, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7514, h * 0.375, 0, 0, String.fromCharCode(parseInt('00A3', 16)), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.8132, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.852, h * 0.375, 0, 0, String.fromCharCode(parseInt('00A5', 16)), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.9138, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.9526, h * 0.375, 0, 0, String.fromCharCode(parseInt('0095', 16)), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.1638, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2227, h * 0.625, 0, 0, '.', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.3046, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3635, h * 0.625, 0, 0, ',', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.4454, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5043, h * 0.625, 0, 0, '?', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.5862, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6451, h * 0.625, 0, 0, '!', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.727, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7859, h * 0.625, 0, 0, '\'', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.roundrect(w * 0.2644, h * 0.78, w * 0.4799, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.setFontColor('#666666'); + c.text(w * 0.5043, h * 0.875, 0, 0, 'space', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setGradient('#8B98A8', '#677488', w * 0.0115, h * 0.53, w * 0.1207, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setFontColor('#ffffff'); + c.roundrect(w * 0.0115, h * 0.53, w * 0.1207, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.roundrect(w * 0.8736, h * 0.53, w * 0.115, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.roundrect(w * 0.0115, h * 0.78, w * 0.2299, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.roundrect(w * 0.7672, h * 0.78, w * 0.2213, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.0718, h * 0.625, 0, 0, '123', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.1264, h * 0.875, 0, 0, 'ABC', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8779, h * 0.875, 0, 0, 'return', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setShadow(false); + c.setLineJoin('round'); + c.setStrokeColor('#ffffff'); + c.setFillColor('#ffffff'); + c.setStrokeWidth(1.5); + c.begin(); + c.moveTo(w * 0.9109, h * 0.585); + c.lineTo(w * 0.9655, h * 0.585); + c.lineTo(w * 0.9655, h * 0.665); + c.lineTo(w * 0.9109, h * 0.665); + c.lineTo(w * 0.8879, h * 0.625); + c.close(); + c.fillAndStroke(); + c.setStrokeColor('#677488'); + c.begin(); + c.moveTo(w * 0.9224, h * 0.605); + c.lineTo(w * 0.9454, h * 0.645); + c.moveTo(w * 0.9224, h * 0.645); + c.lineTo(w * 0.9454, h * 0.605); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IKEYB_SYMBOLS, mxShapeMockupiKeybSymbols); + +function mxShapeMockupiDeleteApp(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiDeleteApp, mxShape); + +mxShapeMockupiDeleteApp.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '').toString(); + c.translate(x, y); + this.background(c, x, y, w, h, strokeColor); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiDeleteApp.prototype.background = function (c, x, y, w, h, strokeColor) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setStrokeWidth(1.5); + c.setStrokeColor(strokeColor); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiDeleteApp.prototype.foreground = function (c, x, y, w, h) { + c.setStrokeWidth(2.5); + c.begin(); + c.moveTo(w * 0.3, h * 0.3); + c.lineTo(w * 0.7, h * 0.7); + c.moveTo(w * 0.3, h * 0.7); + c.lineTo(w * 0.7, h * 0.3); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IDELETE_APP, mxShapeMockupiDeleteApp); + +function mxShapeMockupiDirection(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiDirection, mxShape); + +mxShapeMockupiDirection.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiDirection.prototype.background = function (c, x, y, w, h) { + c.setStrokeWidth(0.5); + c.setStrokeColor('#008cff'); + c.ellipse(0, 0, w, h); + c.stroke(); +}; + +mxShapeMockupiDirection.prototype.foreground = function (c, x, y, w, h) { + c.setAlpha(1); + c.setGradient('#ffffff', '#ffffff', w * 0.29, h * 0.2, w * 0.42, h * 0.3, mxConstants.DIRECTION_NORTH, 1, 0); + c.begin(); + c.moveTo(w * 0.29, h * 0.2); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.71, h * 0.2); + c.fillAndStroke(); + c.setStrokeColor('#006cdf'); + c.setGradient('#ffffff', '#007cef', w * 0.47, h * 0.47, w * 0.06, h * 0.06, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(1); + c.ellipse(w * 0.47, h * 0.47, w * 0.06, h * 0.06); + c.fillAndStroke(); + c.setFillColor('#ffffff'); + c.setAlpha(0.8); + c.ellipse(w * 0.4825, h * 0.4825, w * 0.015, h * 0.015); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IDIRECTION, mxShapeMockupiDirection); + +function mxShapeMockupiLocationBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiLocationBar, mxShape); +mxShapeMockupiLocationBar.prototype.customProperties = [{ + name: 'buttonText', + dispName: 'Text', + type: 'string' +}, { + name: 'barPos', + dispName: 'Callout Position', + type: 'float', + min: 0, + defVal: 80 +}, { + name: 'pointerPos', + dispName: 'Callout Orientation', + type: 'enum', + enumList: [{ + val: 'bottom', + dispName: 'Bottom' + }, { + val: 'top', + dispName: 'Top' + }] +}]; + +mxShapeMockupiLocationBar.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiLocationBar.prototype.background = function (c, x, y, w, h) { + var barPos = mxUtils.getValue(this.style, mxMockupC.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var pointerPos = mxUtils.getValue(this.style, mxMockupC.POINTER_POS, mxMockupC.POINTER_BOTTOM); + var rSize = 2.5; + var deadzone = rSize + 7.5; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + c.setStrokeWidth(0.5); + c.setStrokeColor('#000000'); + c.setAlpha(0.7); + c.begin(); + + if (pointerPos === mxMockupC.POINTER_BOTTOM) { + c.setGradient('#000000', '#888888', 0, 0, w, h, mxConstants.DIRECTION_NORTH, 1, 1); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize - 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h - 7.5); + c.lineTo(truePos + 7.5, h - 7.5); + c.lineTo(truePos, h); + c.lineTo(truePos - 7.5, h - 7.5); + c.lineTo(rSize, h - 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize - 7.5); + } else if (pointerPos === mxMockupC.POINTER_TOP) { + c.setGradient('#000000', '#888888', 0, 0, w, h, mxConstants.DIRECTION_NORTH, 1, 1); + c.moveTo(0, rSize + 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 7.5); + c.lineTo(truePos - 7.5, 7.5); + c.lineTo(truePos, 0); + c.lineTo(truePos + 7.5, 7.5); + c.lineTo(w - rSize, 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize + 7.5); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + } + + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupiLocationBar.prototype.foreground = function (c, x, y, w, h) { + var pointerPos = mxUtils.getValue(this.style, mxMockupC.POINTER_POS, mxMockupC.POINTER_BOTTOM); + var locText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Some Location'); + c.setAlpha(1); + c.setFontColor('#ffffff'); + c.setFontSize(9.5); + + if (pointerPos === mxMockupC.POINTER_BOTTOM) { + c.text(5, (h - 7.5) * 0.5, 0, 0, locText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.translate(w - 20, (h - 7.5) * 0.5 - 7.5); + } else { + c.text(5, (h + 7.5) * 0.5, 0, 0, locText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.translate(w - 20, (h + 7.5) * 0.5 - 7.5); + } + + w = 15; + h = 15; + c.setGradient('#8BbEff', '#135Ec8', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setStrokeWidth(1.5); + c.setStrokeColor('#ffffff'); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + c.setStrokeWidth(2.5); + c.begin(); + c.moveTo(w * 0.4, h * 0.22); + c.lineTo(w * 0.65, h * 0.5); + c.lineTo(w * 0.4, h * 0.78); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ILOCATION_BAR, mxShapeMockupiLocationBar); + +function mxShapeMockupiCallDialog(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiCallDialog, mxShape); + +mxShapeMockupiCallDialog.prototype.paintVertexShape = function (c, x, y, w, h) { + var rSize = 5; + c.translate(x, y); + this.background(c, x, y, w, h, rSize); + c.setShadow(false); + this.foreground(c, x, y, w, h, rSize); +}; + +mxShapeMockupiCallDialog.prototype.background = function (c, x, y, w, h, rSize) { + c.setAlpha(0.8); + c.setStrokeColor('#888888'); + c.setStrokeWidth(1.5); + c.setFillColor('#000000'); + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); +}; + +mxShapeMockupiCallDialog.prototype.foreground = function (c, x, y, w, h, rSize) { + c.begin(); + c.moveTo(w * 0.33, 0); + c.lineTo(w * 0.33, h); + c.moveTo(w * 0.67, 0); + c.lineTo(w * 0.67, h); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + c.setStrokeColor('#000000'); + c.setFillColor('#ffffff'); + c.setStrokeWidth(0.5); + c.roundrect(w * 0.1433, h * 0.104, w * 0.0417, h * 0.148, w * 0.02, h * 0.024); + c.fill(); + c.begin(); + c.moveTo(w * 0.14, h * 0.188); + c.lineTo(w * 0.14, h * 0.228); + c.arcTo(w * 0.025, h * 0.03, 0, 0, 0, w * 0.19, h * 0.228); + c.lineTo(w * 0.19, h * 0.188); + c.lineTo(w * 0.2, h * 0.188); + c.lineTo(w * 0.2, h * 0.228); + c.arcTo(w * 0.0367, h * 0.044, 0, 0, 1, w * 0.17, h * 0.27); + c.lineTo(w * 0.17, h * 0.296); + c.lineTo(w * 0.195, h * 0.296); + c.lineTo(w * 0.195, h * 0.308); + c.lineTo(w * 0.1367, h * 0.308); + c.lineTo(w * 0.1367, h * 0.296); + c.lineTo(w * 0.16, h * 0.296); + c.lineTo(w * 0.16, h * 0.27); + c.arcTo(w * 0.0367, h * 0.044, 0, 0, 1, w * 0.13, h * 0.228); + c.lineTo(w * 0.13, h * 0.188); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.1033, h * 0.108); + c.lineTo(w * 0.24, h * 0.286); + c.lineTo(w * 0.2317, h * 0.298); + c.lineTo(w * 0.095, h * 0.12); + c.close(); + c.fillAndStroke(); + c.rect(w * 0.44, h * 0.128, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.485, h * 0.128, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.53, h * 0.128, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.44, h * 0.186, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.485, h * 0.186, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.53, h * 0.186, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.44, h * 0.244, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.485, h * 0.244, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.53, h * 0.244, w * 0.033, h * 0.04); + c.fill(); + c.begin(); + c.moveTo(w * 0.7567, h * 0.18); + c.lineTo(w * 0.785, h * 0.18); + c.lineTo(w * 0.825, h * 0.128); + c.lineTo(w * 0.825, h * 0.28); + c.lineTo(w * 0.79, h * 0.234); + c.lineTo(w * 0.7567, h * 0.234); + c.close(); + c.fill(); + c.setStrokeWidth(1.5); + c.setStrokeColor('#ffffff'); + c.begin(); + c.moveTo(w * 0.8383, h * 0.16); + c.arcTo(w * 0.0533, h * 0.064, 0, 0, 1, w * 0.8383, h * 0.252); + c.moveTo(w * 0.8583, h * 0.134); + c.arcTo(w * 0.0817, h * 0.098, 0, 0, 1, w * 0.8583, h * 0.276); + c.moveTo(w * 0.8767, h * 0.11); + c.arcTo(w * 0.1133, h * 0.136, 0, 0, 1, w * 0.8767, h * 0.304); + c.stroke(); + c.begin(); + c.moveTo(w * 0.1467, h * 0.62); + c.lineTo(w * 0.1833, h * 0.62); + c.lineTo(w * 0.1833, h * 0.676); + c.lineTo(w * 0.2267, h * 0.676); + c.lineTo(w * 0.2267, h * 0.724); + c.lineTo(w * 0.1833, h * 0.724); + c.lineTo(w * 0.1833, h * 0.78); + c.lineTo(w * 0.1467, h * 0.78); + c.lineTo(w * 0.1467, h * 0.724); + c.lineTo(w * 0.105, h * 0.724); + c.lineTo(w * 0.105, h * 0.676); + c.lineTo(w * 0.1467, h * 0.676); + c.close(); + c.fill(); + c.rect(w * 0.4517, h * 0.624, w * 0.0333, h * 0.152); + c.fill(); + c.rect(w * 0.5183, h * 0.624, w * 0.0333, h * 0.152); + c.fill(); + c.begin(); + c.moveTo(w * 0.76, h * 0.752); + c.arcTo(w * 0.1, h * 0.12, 0, 0, 1, w * 0.8033, h * 0.728); + c.arcTo(w * 0.0167, h * 0.02, 0, 0, 0, w * 0.8167, h * 0.712); + c.lineTo(w * 0.8175, h * 0.7); + c.arcTo(w * 0.0267, h * 0.06, 0, 0, 1, w * 0.8067, h * 0.644); + c.arcTo(w * 0.0287, h * 0.0344, 0, 0, 1, w * 0.8633, h * 0.644); + c.arcTo(w * 0.0267, h * 0.06, 0, 0, 1, w * 0.855, h * 0.7); + c.arcTo(w * 0.05, h * 0.724, 0, 0, 1, w * 0.8633, h * 0.724); + c.arcTo(w * 0.1667, h * 0.75, 0, 0, 1, w * 0.9083, h * 0.75); + c.lineTo(w * 0.9083, h * 0.78); + c.lineTo(w * 0.76, h * 0.78); + c.close(); + c.fill(); + c.setFontColor('#ffffff'); + c.setFontSize(8.5); + c.text(w * 0.1667, h * 0.35, 0, 0, 'mute', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.35, 0, 0, 'keypad', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.35, 0, 0, 'speaker', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.1667, h * 0.85, 0, 0, 'add', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.85, 0, 0, 'pause', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.85, 0, 0, 'contacts', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setGradient('#808080', '#ffffff', 0, 0, w, h * 0.308, mxConstants.DIRECTION_NORTH, 1, 1); + c.setAlpha(0.4); + c.begin(); + c.moveTo(0, h * 0.308); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h * 0.308); + c.arcTo(w * 1.5, h * 1.8, 0, 0, 1, 0, h * 0.308); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICALL_DIALOG, mxShapeMockupiCallDialog); + +function mxShapeMockupiCallButtons(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiCallButtons, mxShape); + +mxShapeMockupiCallButtons.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiCallButtons.prototype.background = function (c, x, y, w, h) { + c.setStrokeWidth(0.5); + c.setStrokeColor('#008cff'); + c.setGradient('#0F1B2B', '#4F5B6B', 0, 0, w, h, mxConstants.DIRECTION_NORTH, 1, 1); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiCallButtons.prototype.foreground = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, h * 0.1667); + c.lineTo(w, h * 0.1667); + c.moveTo(0, h * 0.3333); + c.lineTo(w, h * 0.3333); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.moveTo(0, h * 0.6667); + c.lineTo(w, h * 0.6667); + c.moveTo(0, h * 0.8333); + c.lineTo(w, h * 0.8333); + c.moveTo(w * 0.3333, h * 0.1667); + c.lineTo(w * 0.3333, h); + c.moveTo(w * 0.6667, h * 0.1667); + c.lineTo(w * 0.6667, h); + c.stroke(); + c.setFontSize(15.5); + c.setFontColor('#ffffff'); + c.setFontStyle(mxConstants.FONT_BOLD); + c.text(w * 0.5, h * 0.0834, 0, 0, '(123) 456-7890', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.1667, h * 0.22, 0, 0, '1', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.22, 0, 0, '2', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.22, 0, 0, '3', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.1667, h * 0.3867, 0, 0, '3', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.3867, 0, 0, '4', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.3867, 0, 0, '5', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.1667, h * 0.5534, 0, 0, '6', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.5534, 0, 0, '7', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.5534, 0, 0, '8', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontSize(27.5); + c.text(w * 0.1667, h * 0.76, 0, 0, '*', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontSize(15.5); + c.text(w * 0.5, h * 0.72, 0, 0, '0', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.75, 0, 0, '#', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setGradient('#E2FFEB', '#008215', w * 0.3333, h * 0.8333, w * 0.3333, h * 0.1667, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(w * 0.3333, h * 0.8333, w * 0.3333, h * 0.1667); + c.fillAndStroke(); + c.text(w * 0.5, h * 0.9168, 0, 0, 'Call', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontStyle(0); + c.setFontSize(8); + c.setFontColor('#bbbbbb'); + c.text(w * 0.5, h * 0.28, 0, 0, 'ABC', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.28, 0, 0, 'DEF', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.1667, h * 0.4467, 0, 0, 'GHI', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.4467, 0, 0, 'JKL', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.4467, 0, 0, 'MNO', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.1667, h * 0.6134, 0, 0, 'PQRS', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.6134, 0, 0, 'TUV', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.6134, 0, 0, 'WXYZ', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.78, 0, 0, '+', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(w * 0.1028, h * 0.9464); + c.arcTo(w * 0.0862, h * 0.0652, 0, 0, 1, w * 0.1402, h * 0.9333); + c.arcTo(w * 0.0144, h * 0.0109, 0, 0, 0, w * 0.1517, h * 0.9246); + c.lineTo(w * 0.1524, h * 0.9181); + c.arcTo(w * 0.023, h * 0.0326, 0, 0, 1, w * 0.143, h * 0.8877); + c.arcTo(w * 0.0247, h * 0.0187, 0, 0, 1, w * 0.1919, h * 0.8877); + c.arcTo(w * 0.023, h * 0.0326, 0, 0, 1, w * 0.1847, h * 0.9181); + c.arcTo(w * 0.0431, h * 0.0174, 0, 0, 0, w * 0.1919, h * 0.9311); + c.arcTo(w * 0.1437, h * 0.1087, 0, 0, 1, w * 0.2307, h * 0.9453); + c.lineTo(w * 0.2307, h * 0.9616); + c.lineTo(w * 0.1028, h * 0.9616); + c.close(); + c.fill(); + c.setStrokeColor('#ffffff'); + c.setStrokeWidth(2.5); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.79, h * 0.89); + c.lineTo(w * 0.9, h * 0.89); + c.lineTo(w * 0.9, h * 0.95); + c.lineTo(w * 0.79, h * 0.95); + c.lineTo(w * 0.76, h * 0.92); + c.close(); + c.fillAndStroke(); + c.setStrokeColor('#0F1B2B'); + c.begin(); + c.moveTo(w * 0.82, h * 0.907); + c.lineTo(w * 0.85, h * 0.933); + c.moveTo(w * 0.82, h * 0.933); + c.lineTo(w * 0.85, h * 0.907); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICALL_BUTTONS, mxShapeMockupiCallButtons); + +function mxShapeMockupiOption(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiOption, mxShape); +mxShapeMockupiOption.prototype.customProperties = [{ + name: 'buttonText', + dispName: 'Text', + type: 'string' +}, { + name: 'barPos', + dispName: 'Callout Position', + type: 'float', + min: 0, + defVal: 80 +}, { + name: 'pointerPos', + dispName: 'Callout Orientation', + type: 'enum', + enumList: [{ + val: 'bottom', + dispName: 'Bottom' + }, { + val: 'top', + dispName: 'Top' + }] +}]; + +mxShapeMockupiOption.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiOption.prototype.background = function (c, x, y, w, h) { + var barPos = mxUtils.getValue(this.style, mxMockupC.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var pointerPos = mxUtils.getValue(this.style, mxMockupC.POINTER_POS, mxMockupC.POINTER_BOTTOM); + var rSize = 2.5; + var deadzone = rSize + 7.5; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + c.setStrokeWidth(0.5); + c.setStrokeColor('#000000'); + c.setAlpha(0.9); + c.begin(); + + if (pointerPos === mxMockupC.POINTER_BOTTOM) { + c.setGradient('#000000', '#888888', 0, 0, w, h, mxConstants.DIRECTION_NORTH, 1, 1); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize - 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h - 7.5); + c.lineTo(truePos + 7.5, h - 7.5); + c.lineTo(truePos, h); + c.lineTo(truePos - 7.5, h - 7.5); + c.lineTo(rSize, h - 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize - 7.5); + } else if (pointerPos === mxMockupC.POINTER_TOP) { + c.setGradient('#000000', '#888888', 0, 0, w, h, mxConstants.DIRECTION_NORTH, 1, 1); + c.moveTo(0, rSize + 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 7.5); + c.lineTo(truePos - 7.5, 7.5); + c.lineTo(truePos, 0); + c.lineTo(truePos + 7.5, 7.5); + c.lineTo(w - rSize, 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize + 7.5); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + } + + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupiOption.prototype.foreground = function (c, x, y, w, h) { + var locText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Some Location'); + var pointerPos = mxUtils.getValue(this.style, mxMockupC.POINTER_POS, mxMockupC.POINTER_BOTTOM); + c.setAlpha(1); + c.setFontColor('#ffffff'); + c.setFontSize(9.5); + + if (pointerPos === mxMockupC.POINTER_BOTTOM) { + c.text(w * 0.5, (h - 7.5) * 0.5, 0, 0, locText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else { + c.text(w * 0.5, (h + 7.5) * 0.5, 0, 0, locText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IOPTION, mxShapeMockupiOption); + +function mxShapeMockupiAlphaList(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiAlphaList, mxShape); + +mxShapeMockupiAlphaList.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setShadow(false); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8'); + c.setFontColor('#999999'); + c.setFontSize(fontSize); + c.text(w * 0.5, h * 0.069, 0, 0, 'A', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.1035, 0, 0, 'B', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.138, 0, 0, 'C', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.1725, 0, 0, 'D', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.207, 0, 0, 'E', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.2415, 0, 0, 'F', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.276, 0, 0, 'G', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.3105, 0, 0, 'H', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.345, 0, 0, 'I', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.3795, 0, 0, 'J', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.414, 0, 0, 'K', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.4485, 0, 0, 'L', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.483, 0, 0, 'M', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.5175, 0, 0, 'N', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.552, 0, 0, 'O', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.5865, 0, 0, 'P', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.621, 0, 0, 'Q', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.6555, 0, 0, 'R', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.69, 0, 0, 'S', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.7245, 0, 0, 'T', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.759, 0, 0, 'U', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.7935, 0, 0, 'V', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.828, 0, 0, 'W', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.8625, 0, 0, 'X', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.897, 0, 0, 'Y', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.9315, 0, 0, 'Z', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.966, 0, 0, '#', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setStrokeColor('#999999'); + c.ellipse(w * 0.5 - 2.25, h * 0.0345 - 3.5, 4.5, 4.5); + c.stroke(); + c.begin(); + c.moveTo(w * 0.5 - 4.25, h * 0.0345 + 3); + c.lineTo(w * 0.5 - 1.75, h * 0.0345); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IALPHA_LIST, mxShapeMockupiAlphaList); + +function mxShapeMockupiHorButtonBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiHorButtonBar, mxShape); +mxShapeMockupiHorButtonBar.prototype.customProperties = [{ + name: 'buttonText', + dispName: 'Labels', + type: 'string' +}, { + name: 'textColor', + dispName: 'Text Color', + type: 'color' +}, { + name: 'textColor2', + dispName: 'Text2 Color', + type: 'color' +}, { + name: 'strokeColor2', + dispName: 'Stroke2 Color', + type: 'color' +}]; + +mxShapeMockupiHorButtonBar.prototype.paintVertexShape = function (c, x, y, w, h) { + var textStrings = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, '+Button 1, Button 2, Button 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8.5').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var separatorColor = mxUtils.getValue(this.style, mxMockupC.STYLE_STROKECOLOR2, '#c4c4c4'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var selectedFillColor = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '#008cff'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var selectedButton = -1; + var rSize = 2.5; + var labelOffset = 2.5; + + for (var i = 0; i < buttonNum; i++) { + var buttonText = textStrings[i]; + + if (buttonText.charAt(0) === mxMockupC.SELECTED) { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + buttonWidths[i] = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 10); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + c.translate(x, y); + this.background(c, trueW, trueH, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton); + c.setShadow(false); + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) { + if (i === selectedButton) { + c.setFontColor(selectedFontColor); + } else { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeMockupiHorButtonBar.prototype.background = function (c, w, h, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton) { + c.begin(); + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); + c.setStrokeColor(separatorColor); + c.begin(); + + for (var i = 1; i < buttonNum; i++) { + if (i !== selectedButton && i !== selectedButton + 1) { + var currWidth = 0; + + for (var j = 0; j < i; j++) { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth = currWidth * w / minW; + c.moveTo(currWidth, 0); + c.lineTo(currWidth, h); + } + } + + c.stroke(); + var buttonLeft = 0; + c.setStrokeColor(mxConstants.NONE); + + for (var i = 0; i < selectedButton; i++) { + buttonLeft += buttonWidths[i] + 2 * labelOffset; + } + + buttonLeft = buttonLeft * w / minW; + var buttonRight = (buttonWidths[selectedButton] + 2 * labelOffset) * w / minW; + buttonRight += buttonLeft; + + if (selectedButton === 0) { + c.setGradient('#5D7585', '#008cff', 0, 0, buttonRight, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(buttonRight, 0); + c.lineTo(buttonRight, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fill(); + } else if (selectedButton === buttonNum - 1) { + c.setGradient('#5D7585', '#008cff', buttonLeft, 0, buttonRight - buttonLeft, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(buttonLeft, 0); + c.lineTo(buttonRight - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, buttonRight, rSize); + c.lineTo(buttonRight, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, buttonRight - rSize, h); + c.lineTo(buttonLeft, h); + c.close(); + c.fill(); + } else if (selectedButton !== -1) { + c.setGradient('#5D7585', '#008cff', buttonLeft, 0, buttonRight - buttonLeft, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(buttonLeft, 0); + c.lineTo(buttonRight, 0); + c.lineTo(buttonRight, h); + c.lineTo(buttonLeft, h); + c.close(); + c.fill(); + } + + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.stroke(); +}; + +mxShapeMockupiHorButtonBar.prototype.buttonText = function (c, w, h, textString, buttonWidth, fontSize, minW, trueW) { + if (textString.charAt(0) === mxMockupC.SELECTED) { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, h * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IHOR_BUTTON_BAR, mxShapeMockupiHorButtonBar); + +function mxShapeMockupiPin(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiPin, mxShape); +mxShapeMockupiPin.prototype.customProperties = [{ + name: 'fillColor2', + dispName: 'Fill2 Color', + type: 'color' +}, { + name: 'fillColor3', + dispName: 'Fill3 Color', + type: 'color' +}]; + +mxShapeMockupiPin.prototype.paintVertexShape = function (c, x, y, w, h) { + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '#000000'); + var fillColor3 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR3, '#000000'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setShadow(false); + c.translate(x, y); + c.setStrokeWidth(1.5); + c.setStrokeColor('#666666'); + c.begin(); + c.moveTo(w * 0.5, h * 0.4); + c.lineTo(w * 0.5, h); + c.stroke(); + c.setStrokeWidth(1); + c.setStrokeColor(strokeColor); + c.setGradient(fillColor2, fillColor3, 0, 0, w, h * 0.4, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(0.9); + c.ellipse(0, 0, w, h * 0.4); + c.fillAndStroke(); + c.setFillColor('#ffffff'); + c.setAlpha(0.5); + c.ellipse(w * 0.2, h * 0.08, w * 0.3, h * 0.12); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IPIN, mxShapeMockupiPin); + +function mxShapeMockupiVideoControls(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiVideoControls, mxShape); +mxShapeMockupiVideoControls.prototype.customProperties = [{ + name: 'barPos', + dispName: 'Handle Position', + type: 'float', + min: 0, + defVal: 20 +}]; + +mxShapeMockupiVideoControls.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = 5; + c.setStrokeWidth(1); + c.setFillColor('#000000'); + c.setStrokeColor('#bbbbbb'); + c.setAlpha(0.7); + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); + c.setShadow(false); + this.foreground(c, w, h, rSize); +}; + +mxShapeMockupiVideoControls.prototype.foreground = function (c, w, h, rSize) { + c.setGradient('#ffffff', '#ffffff', 0, 0, w, h * 0.5, mxConstants.DIRECTION_SOUTH, 0.8, 0.1); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h * 0.5); + c.lineTo(0, h * 0.5); + c.close(); + c.fill(); + c.setAlpha(1); + c.setFillColor('#ffffff'); + c.setStrokeColor('#ffffff'); + var iconX = w * 0.1; + var iconY = h * 0.35; + c.begin(); + c.moveTo(iconX - 7.5, iconY - 2.5); + c.arcTo(6, 6, 0, 0, 1, iconX, iconY - 2.5); + c.arcTo(6, 6, 0, 0, 1, iconX + 7.5, iconY - 2.5); + c.lineTo(iconX + 7.5, iconY + 4); + c.arcTo(6, 6, 0, 0, 0, iconX, iconY + 4); + c.arcTo(6, 6, 0, 0, 0, iconX - 7.5, iconY + 4); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(iconX, iconY - 2.5); + c.lineTo(iconX, iconY + 4); + c.stroke(); + iconX = w * 0.3; + c.rect(iconX - 7.5, iconY - 5, 1, 10); + c.fill(); + c.begin(); + c.moveTo(iconX - 6.5, iconY); + c.lineTo(iconX + 0.5, iconY - 5); + c.lineTo(iconX + 0.5, iconY + 5); + c.close(); + c.fill(); + c.begin(); + c.moveTo(iconX + 0.5, iconY); + c.lineTo(iconX + 7.5, iconY - 5); + c.lineTo(iconX + 7.5, iconY + 5); + c.close(); + c.fill(); + iconX = w * 0.5; + c.begin(); + c.moveTo(iconX - 6, iconY - 5); + c.lineTo(iconX + 6, iconY); + c.lineTo(iconX - 6, iconY + 5); + c.close(); + c.fill(); + iconX = w * 0.7; + c.begin(); + c.moveTo(iconX - 7.5, iconY - 5); + c.lineTo(iconX - 0.5, iconY); + c.lineTo(iconX - 7.5, iconY + 5); + c.close(); + c.fill(); + c.begin(); + c.moveTo(iconX - 0.5, iconY - 5); + c.lineTo(iconX + 6.5, iconY); + c.lineTo(iconX - 0.5, iconY + 5); + c.close(); + c.fill(); + c.rect(iconX + 6.5, iconY - 5, 1, 10); + c.fill(); + iconX = w * 0.9; + c.rect(iconX - 7.5, iconY - 4, 15, 8); + c.stroke(); + c.setStrokeWidth(0.5); + c.begin(); + c.moveTo(iconX - 7.5, iconY - 4); + c.lineTo(iconX, iconY + 1.5); + c.lineTo(iconX + 7.5, iconY - 4); + c.stroke(); + c.begin(); + c.moveTo(iconX - 7.5, iconY + 4); + c.lineTo(iconX - 2, iconY); + c.stroke(); + c.begin(); + c.moveTo(iconX + 7.5, iconY + 4); + c.lineTo(iconX + 2, iconY); + c.stroke(); + c.setGradient('#444444', '#ffffff', w * 0.1, h * 0.75 - 2.5, w * 0.8, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(w * 0.1, h * 0.75 - 2.5, w * 0.8, 5, 2.5, 2.5); + c.fill(); + var barPos = mxUtils.getValue(this.style, mxMockupC.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var deadzone = w * 0.1; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + c.setGradient('#96D1FF', '#003377', w * 0.1, h * 0.75 - 5, truePos - w * 0.1, 10, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(truePos, h * 0.75 - 2.5); + c.lineTo(truePos, h * 0.75 + 2.5); + c.lineTo(w * 0.1 + 2.5, h * 0.75 + 2.5); + c.arcTo(2.5, 2.5, 0, 0, 1, w * 0.1 + 2.5, h * 0.75 - 2.5); + c.close(); + c.fill(); + c.setStrokeColor('#999999'); + c.setGradient('#444444', '#ffffff', truePos - 5, h * 0.75 - 5, 10, 10, mxConstants.DIRECTION_NORTH, 1, 1); + c.ellipse(truePos - 5, h * 0.75 - 5, 10, 10); + c.fillAndStroke(); + c.setStrokeColor('#dddddd'); + c.roundrect(0, 0, w, h, rSize, rSize); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IVIDEO_CONTROLS, mxShapeMockupiVideoControls); + +Graph.handleFactory[mxMockupC.SHAPE_IVIDEO_CONTROLS] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 40)))); + return new mxPoint(bounds.x + bounds.width * 0.1 + barPos * bounds.width * 0.8 / 100, bounds.y + bounds.height * 0.75); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.width * 0.1 - bounds.x) * 100 / (bounds.width * 0.8)))) / 100; + })]; + return handles; +}; + +function mxShapeMockupiURLBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiURLBar, mxShape); + +mxShapeMockupiURLBar.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setGradient('#cccccc', '#003377', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(0, 0, w, h); + c.fill(); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupiURLBar.prototype.foreground = function (c, w, h) { + c.setStrokeWidth(0.5); + c.setFillColor('#ffffff'); + c.setStrokeColor('#008cff'); + c.roundrect(w * 0.0287, h * 0.625 - 6.25, w * 0.7184, 12.5, 6.25, 6.25); + c.fillAndStroke(); + c.setGradient('#cccccc', '#001144', w * 0.7816, h * 0.625 - 6.25, w * 0.1868, 12.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setStrokeColor('#000000'); + c.roundrect(w * 0.7816, h * 0.625 - 6.25, w * 0.1868, 12.5, 2.5, 2.5); + c.fillAndStroke(); + c.setFillColor('#bbbbbb'); + c.ellipse(w * 0.7471 - 11.5, h * 0.625 - 5, 10, 10); + c.fill(); + c.setStrokeColor('#ffffff'); + c.setStrokeWidth(1.5); + c.begin(); + c.moveTo(w * 0.7471 - 8.5, h * 0.625 - 2.5); + c.lineTo(w * 0.7471 - 3.5, h * 0.625 + 2.5); + c.moveTo(w * 0.7471 - 8.5, h * 0.625 + 2.5); + c.lineTo(w * 0.7471 - 3.5, h * 0.625 - 2.5); + c.stroke(); + var fieldText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, '').toString().split(','); + c.setFontColor('#425664'); + c.setFontStyle(mxConstants.FONT_BOLD); + c.setFontSize(8); + c.text(w * 0.5, h * 0.2, 0, 0, fieldText[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontColor('#000000'); + c.text(w * 0.06, h * 0.625, 0, 0, fieldText[1], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontColor('#ffffff'); + c.text(w * 0.875, h * 0.625, 0, 0, fieldText[2], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IURL_BAR, mxShapeMockupiURLBar); + +function mxShapeMockupiSlider(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiSlider, mxShape); +mxShapeMockupiSlider.prototype.customProperties = [{ + name: 'barPos', + dispName: 'Handle Position', + type: 'float', + min: 0, + defVal: 20 +}]; + +mxShapeMockupiSlider.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupiSlider.prototype.foreground = function (c, w, h) { + c.setStrokeWidth(0.5); + c.setGradient('#444444', '#ffffff', 0, h * 0.5 - 2.5, w, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(0, h * 0.5 - 2.5, w, 5, 2.5, 2.5); + c.fill(); + var barPos = mxUtils.getValue(this.style, mxMockupC.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var deadzone = 0; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + c.setGradient('#96D1FF', '#003377', 2.5, h * 0.5 - 2.5, truePos - 2.5, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(truePos, h * 0.5 - 2.5); + c.lineTo(truePos, h * 0.5 + 2.5); + c.lineTo(2.5, h * 0.5 + 2.5); + c.arcTo(2.5, 2.5, 0, 0, 1, 2.5, h * 0.5 - 2.5); + c.close(); + c.fill(); + c.setStrokeColor('#999999'); + c.setGradient('#444444', '#ffffff', truePos - 5, h * 0.5 - 5, 10, 10, mxConstants.DIRECTION_NORTH, 1, 1); + c.ellipse(truePos - 5, h * 0.5 - 5, 10, 10); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ISLIDER, mxShapeMockupiSlider); + +Graph.handleFactory[mxMockupC.SHAPE_ISLIDER] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + return handles; +}; + +function mxShapeMockupiProgressBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiProgressBar, mxShape); +mxShapeMockupiProgressBar.prototype.customProperties = [{ + name: 'barPos', + dispName: 'Handle Position', + type: 'float', + min: 0, + defVal: 40 +}]; + +mxShapeMockupiProgressBar.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupiProgressBar.prototype.foreground = function (c, w, h) { + c.setStrokeWidth(0.5); + c.setGradient('#444444', '#ffffff', 0, h * 0.5 - 2.5, w, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(0, h * 0.5 - 2.5, w, 5, 2.5, 2.5); + c.fill(); + var barPos = mxUtils.getValue(this.style, mxMockupC.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var deadzone = 0; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + c.setGradient('#96D1FF', '#003377', 2.5, h * 0.5 - 2.5, truePos - 2.5, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(truePos, h * 0.5 - 2.5); + c.arcTo(2.5, 2.5, 0, 0, 1, truePos, h * 0.5 + 2.5); + c.lineTo(2.5, h * 0.5 + 2.5); + c.arcTo(2.5, 2.5, 0, 0, 1, 2.5, h * 0.5 - 2.5); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IPROGRESS_BAR, mxShapeMockupiProgressBar); + +Graph.handleFactory[mxMockupC.SHAPE_IPROGRESS_BAR] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + return handles; +}; + +function mxShapeMockupiCloudProgressBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiCloudProgressBar, mxShape); +mxShapeMockupiCloudProgressBar.prototype.customProperties = [{ + name: 'barPos', + dispName: 'Handle Position', + type: 'float', + min: 0, + defVal: 20 +}]; + +mxShapeMockupiCloudProgressBar.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupiCloudProgressBar.prototype.foreground = function (c, w, h) { + c.setStrokeWidth(0.5); + c.setFillColor('#5C6E86'); + c.rect(0, h * 0.5 - 2.5, w, 5); + c.fill(); + var barPos = mxUtils.getValue(this.style, mxMockupC.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var deadzone = 0; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + c.setFillColor('#8AD155'); + c.rect(0, h * 0.5 - 2.5, truePos, 5); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICLOUD_PROGRESS_BAR, mxShapeMockupiCloudProgressBar); + +Graph.handleFactory[mxMockupC.SHAPE_ICLOUD_PROGRESS_BAR] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + return handles; +}; + +function mxShapeMockupiDownloadBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiDownloadBar, mxShape); +mxShapeMockupiDownloadBar.prototype.customProperties = [{ + name: 'barPos', + dispName: 'Handle Position', + type: 'float', + min: 0, + defVal: 30 +}]; + +mxShapeMockupiDownloadBar.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setGradient('#00ccff', '#0066cc', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(0, 0, w, h); + c.fill(); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupiDownloadBar.prototype.foreground = function (c, w, h) { + var fieldText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, ''); + c.setFontColor('#ffffff'); + c.setFontStyle(mxConstants.FONT_BOLD); + c.setFontSize(8); + c.text(w * 0.5, h * 0.2, 0, 0, fieldText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var barPos = mxUtils.getValue(this.style, mxMockupC.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var deadzone = w * 0.1; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + c.setStrokeWidth(0.5); + c.setGradient('#96D1FF', '#003377', deadzone, h * 0.65 - 2.5, w - 2 * deadzone, 5, mxConstants.DIRECTION_NORTH, 1, 1); + c.roundrect(deadzone, h * 0.65 - 2.5, w - 2 * deadzone, 5, 2.5, 2.5); + c.fill(); + c.setGradient('#aaaaaa', '#ffffff', deadzone + 2.5, h * 0.65 - 2.5, truePos - deadzone - 2.5, 5, mxConstants.DIRECTION_NORTH, 1, 1); + c.begin(); + c.moveTo(truePos, h * 0.65 - 2.5); + c.arcTo(2.5, 2.5, 0, 0, 1, truePos, h * 0.65 + 2.5); + c.lineTo(deadzone + 2.5, h * 0.65 + 2.5); + c.arcTo(2.5, 2.5, 0, 0, 1, deadzone + 2.5, h * 0.65 - 2.5); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IDOWNLOAD_BAR, mxShapeMockupiDownloadBar); + +Graph.handleFactory[mxMockupC.SHAPE_IDOWNLOAD_BAR] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 40)))); + return new mxPoint(bounds.x + bounds.width * 0.1 + barPos * bounds.width * 0.8 / 100, bounds.y + bounds.height * 0.65); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.width * 0.1 - bounds.x) * 100 / (bounds.width * 0.8)))) / 100; + })]; + return handles; +}; + +function mxShapeMockupiScreenNameBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiScreenNameBar, mxShape); + +mxShapeMockupiScreenNameBar.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = 5; + c.setStrokeWidth(0.5); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '#00ff00'); + c.setFillColor(fillColor2); + c.rect(0, 0, w, h); + c.fill(); + c.setShadow(false); + this.foreground(c, w, h, rSize); +}; + +mxShapeMockupiScreenNameBar.prototype.foreground = function (c, w, h, rSize) { + var fillColor3 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR3, '#00ff00'); + c.setGradient(fillColor3, fillColor3, 0, 0, w, h * 0.5, mxConstants.DIRECTION_SOUTH, 0.8, 0.1); + c.rect(0, 0, w, h * 0.5); + c.fill(); + var fieldText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, ''); + var textColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR, '#00ff00'); + c.setFontColor(textColor); + c.setFontSize(9.5); + c.text(w * 0.5, h * 0.45, 0, 0, fieldText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ISCREEN_NAME_BAR, mxShapeMockupiScreenNameBar); + +function mxShapeMockupiIconGrid(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiIconGrid, mxShape); +mxShapeMockupiIconGrid.prototype.customProperties = [{ + name: 'gridSize', + dispName: 'Grid Size', + type: 'string' +}]; + +mxShapeMockupiIconGrid.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var gridSize = mxUtils.getValue(this.style, mxMockupC.GRID_SIZE, '3,3').toString().split(','); + this.background(c, w, h, gridSize); + c.setShadow(false); + this.foreground(c, w, h, gridSize); +}; + +mxShapeMockupiIconGrid.prototype.background = function (c, w, h, gridSize) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#00ff00'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#00ff00'); + c.setStrokeColor(strokeColor); + c.setFillColor(fillColor); + var boxSizeX = w / (parseInt(gridSize[0], 10) + (gridSize[0] - 1) * 0.5); + var boxSizeY = h / (parseInt(gridSize[1], 10) + (gridSize[1] - 1) * 0.5); + + for (var i = 0; i < gridSize[0]; i++) { + for (var j = 0; j < gridSize[1]; j++) { + c.rect(boxSizeX * 1.5 * i, boxSizeY * 1.5 * j, boxSizeX, boxSizeY); + c.fillAndStroke(); + } + } +}; + +mxShapeMockupiIconGrid.prototype.foreground = function (c, w, h, gridSize) { + var boxSizeX = w / (parseInt(gridSize[0], 10) + (gridSize[0] - 1) * 0.5); + var boxSizeY = h / (parseInt(gridSize[1], 10) + (gridSize[1] - 1) * 0.5); + + for (var i = 0; i < gridSize[0]; i++) { + for (var j = 0; j < gridSize[1]; j++) { + c.begin(); + c.moveTo(boxSizeX * 1.5 * i, boxSizeY * 1.5 * j); + c.lineTo(boxSizeX * 1.5 * i + boxSizeX, boxSizeY * 1.5 * j + boxSizeY); + c.moveTo(boxSizeX * 1.5 * i + boxSizeX, boxSizeY * 1.5 * j); + c.lineTo(boxSizeX * 1.5 * i, boxSizeY * 1.5 * j + boxSizeY); + c.stroke(); + } + } +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IICON_GRID, mxShapeMockupiIconGrid); + +function mxShapeMockupiCopy(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiCopy, mxShape); + +mxShapeMockupiCopy.prototype.paintVertexShape = function (c, x, y, w, h) { + var rSize = 5; + c.translate(x, y); + this.background(c, w, h, rSize); + c.setShadow(false); + this.foreground(c, w, h, rSize); +}; + +mxShapeMockupiCopy.prototype.background = function (c, w, h, rSize) { + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize - 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h - 7.5); + c.lineTo(w * 0.5 + 7.5, h - 7.5); + c.lineTo(w * 0.5, h); + c.lineTo(w * 0.5 - 7.5, h - 7.5); + c.lineTo(rSize, h - 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize - 7.5); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupiCopy.prototype.foreground = function (c, w, h, rSize) { + var fillColor3 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR3, '#00ff00'); + c.setGradient(fillColor3, fillColor3, 0, 0, w, h * 0.5, mxConstants.DIRECTION_SOUTH, 0.8, 0.1); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, (h - 7.5) * 0.5); + c.lineTo(0, (h - 7.5) * 0.5); + c.close(); + c.fill(); + var fieldText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, ''); + var textColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR, '#00ff00'); + c.setFontColor(textColor); + c.setFontSize(8.5); + c.text(w * 0.5, (h - 7.5) * 0.45, 0, 0, fieldText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICOPY, mxShapeMockupiCopy); + +function mxShapeMockupiCopyArea(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiCopyArea, mxShape); + +mxShapeMockupiCopyArea.prototype.paintVertexShape = function (c, x, y, w, h) { + var rSize = 5; + c.translate(x, y); + this.background(c, w, h, rSize); + c.setShadow(false); + this.foreground(c, w, h, rSize); +}; + +mxShapeMockupiCopyArea.prototype.background = function (c, w, h, rSize) { + c.begin(); + c.moveTo(w * 0.5 - 20, 0 + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 - 20 + rSize, 0); + c.lineTo(w * 0.5 + 20 - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 + 20, rSize); + c.lineTo(w * 0.5 + 20, 20 - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 + 20 - rSize, 20); + c.lineTo(w * 0.5 + 7.5, 20); + c.lineTo(w * 0.5, 27.5); + c.lineTo(w * 0.5 - 7.5, 20); + c.lineTo(w * 0.5 - 20 + rSize, 20); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 - 20, 20 - rSize); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupiCopyArea.prototype.foreground = function (c, w, h, rSize) { + c.setAlpha(0.3); + c.setFillColor('#2266ff'); + c.rect(2.5, 27.5, w - 5, h - 30); + c.fill(); + c.setAlpha(1); + + if (h > 27.5) { + c.setStrokeColor('#ffffff'); + c.setGradient('#88ddff', '#2266ff', w * 0.5 - 2.5, 25, 5, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(w * 0.5 - 2.5, 25, 5, 5); + c.fillAndStroke(); + c.setGradient('#88ddff', '#2266ff', w * 0.5 - 2.5, h - 5, 5, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(w * 0.5 - 2.5, h - 5, 5, 5); + c.fillAndStroke(); + c.setGradient('#88ddff', '#2266ff', 0, h * 0.5 + 10, 5, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(0, h * 0.5 + 10, 5, 5); + c.fillAndStroke(); + c.setGradient('#88ddff', '#2266ff', w - 5, h * 0.5 + 10, 5, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(w - 5, h * 0.5 + 10, 5, 5); + c.fillAndStroke(); + } + + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '#00ff00'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#00ff00'); + c.setFillColor(fillColor2); + c.setStrokeColor(strokeColor); + c.begin(); + c.moveTo(w * 0.5 - 20, 0 + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 - 20 + rSize, 0); + c.lineTo(w * 0.5 + 20 - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 + 20, rSize); + c.lineTo(w * 0.5 + 20, 20 - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 + 20 - rSize, 20); + c.lineTo(w * 0.5 + 7.5, 20); + c.lineTo(w * 0.5, 27.5); + c.lineTo(w * 0.5 - 7.5, 20); + c.lineTo(w * 0.5 - 20 + rSize, 20); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 - 20, 20 - rSize); + c.close(); + c.fillAndStroke(); + var fillColor3 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR3, '#00ff00'); + c.setGradient(fillColor3, fillColor3, w * 0.5 - 20, 0, 40, 10, mxConstants.DIRECTION_SOUTH, 0.8, 0.1); + c.begin(); + c.moveTo(w * 0.5 - 20, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 - 20 + rSize, 0); + c.lineTo(w * 0.5 + 20 - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 + 20, rSize); + c.lineTo(w * 0.5 + 20, 10); + c.lineTo(w * 0.5 - 20, 10); + c.close(); + c.fill(); + var fieldText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, ''); + var textColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR, '#00ff00'); + c.setFontColor(textColor); + c.setFontSize(8.5); + c.text(w * 0.5, 8.75, 0, 0, fieldText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICOPY_AREA, mxShapeMockupiCopyArea); + +function mxShapeMockupiHomePageControl(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiHomePageControl, mxShape); + +mxShapeMockupiHomePageControl.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#000000'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setStrokeColor(strokeColor); + c.setFillColor(fillColor); + var rSize = Math.min(h * 0.5, w * 0.05); + c.ellipse(w * 0.35 - rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w * 0.65 - rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w - 2 * rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(rSize * 0.2, h * 0.5 - rSize * 0.8, rSize * 1.2, rSize * 1.2); + c.stroke(); + c.begin(); + c.moveTo(rSize * 1.15, h * 0.5 + rSize * 0.25); + c.lineTo(rSize * 1.6, h * 0.5 + rSize * 0.8); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IHOME_PAGE_CONTROL, mxShapeMockupiHomePageControl); + +function mxShapeMockupiPageControl(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiPageControl, mxShape); + +mxShapeMockupiPageControl.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#000000'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var rSize = Math.min(h * 0.5, w * 0.05); + c.setFillColor(strokeColor); + c.ellipse(0, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.setFillColor(fillColor); + c.ellipse(w * 0.35 - rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w * 0.65 - rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w - 2 * rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IPAGE_CONTROL, mxShapeMockupiPageControl); + +function mxShapeMockupiPad(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupiPad, mxShape); +mxShapeMockupiPad.prototype.customProperties = [{ + name: 'bgStyle', + dispName: 'Background', + type: 'enum', + enumList: [{ + val: 'bgGreen', + dispName: 'Green' + }, { + val: 'bgWhite', + dispName: 'White' + }, { + val: 'bgGray', + dispName: 'Gray' + }, { + val: 'bgFlat', + dispName: 'Flat' + }, { + val: 'bgMap', + dispName: 'Map' + }, { + val: 'bgStriped', + dispName: 'Striped' + }] +}]; + +mxShapeMockupiPad.prototype.paintVertexShape = function (c, x, y, w, h) { + var rSize = 25; + c.translate(x, y); + this.background(c, x, y, w, h, rSize); + c.setShadow(false); + this.foreground(c, x, y, w, h, rSize); +}; + +mxShapeMockupiPad.prototype.background = function (c, x, y, w, h, rSize) { + c.setFillColor('#000000'); + c.setStrokeColor('#000000'); + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); +}; + +mxShapeMockupiPad.prototype.foreground = function (c, x, y, w, h, rSize) { + c.setStrokeWidth(1.5); + c.setStrokeColor('#999999'); + c.begin(); + c.setStrokeColor('none'); + c.setFillColor('#808080'); + c.setGradient('#808080', '#000000', w * 0.325, 0, w * 0.675, h * 0.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.moveTo(w * 0.325, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.7, h * 0.5); + c.close(); + c.fillAndStroke(); + c.begin(); + c.setFillColor('#1f2923'); + c.setStrokeColor('#18211b'); + c.setStrokeWidth(1); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, ''); + var bgStyle = mxUtils.getValue(this.style, mxMockupC.BG_STYLE, mxMockupC.BG_FLAT_GREEN); + c.setStrokeWidth(1); + + if (bgStyle === mxMockupC.BG_FLAT_WHITE) { + c.setFillColor('#ffffff'); + c.rect(w * 0.0928, h * 0.08, w * 0.8144, h * 0.816); + c.fill(); + } else if (bgStyle === mxMockupC.BG_FLAT_GREEN) { + c.setFillColor('#1f2923'); + c.rect(w * 0.0928, h * 0.08, w * 0.8144, h * 0.816); + c.fill(); + } else if (bgStyle === mxMockupC.BG_FLAT_GRAY) { + c.setFillColor('#dddddd'); + c.rect(w * 0.0928, h * 0.08, w * 0.8144, h * 0.816); + c.fill(); + } else if (bgStyle === mxMockupC.BG_FLAT_CUSTOM) { + c.setFillColor(fillColor); + c.rect(w * 0.0928, h * 0.08, w * 0.8144, h * 0.816); + c.fill(); + } else if (bgStyle === mxMockupC.BG_STRIPED) { + var xOld = x; + var yOld = y; + var wOld = w; + var hOld = h; + c.translate(w * 0.0928, h * 0.08); + w = w * 0.8144; + h = h * 0.816; + c.setFillColor('#5D7585'); + c.rect(0, 0, w, h); + c.fillAndStroke(); + var strokeColor = '#18211b'; + var strokeColor2 = '#657E8F'; + c.setStrokeColor(strokeColor2); + var i = 7; + c.begin(); + + while (i < w) { + c.moveTo(i, 0); + c.lineTo(i, h); + i = i + 7; + } + + c.stroke(); + c.setStrokeColor(strokeColor); + c.begin(); + c.rect(0, 0, w, h); + c.stroke(); + w = wOld; + h = hOld; + c.translate(-w * 0.0928, -h * 0.08); + } else if (bgStyle === mxMockupC.BG_MAP) { + var xOld = x; + var yOld = y; + var wOld = w; + var hOld = h; + c.translate(w * 0.0928, h * 0.08); + w = w * 0.8144; + h = h * 0.816; + c.setFillColor('#ffffff'); + c.rect(0, 0, w, h); + c.fillAndStroke(); + var fillColor2 = '#96D1FF'; + var strokeColor = '#18211b'; + var strokeColor2 = '#008cff'; + c.setFillColor(fillColor2); + c.setStrokeColor(strokeColor2); + c.setStrokeWidth(0.5); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.1171, 0); + c.lineTo(w * 0.1136, h * 0.0438); + c.lineTo(w * 0.0993, h * 0.054); + c.lineTo(0, h * 0.0446); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.1993, 0); + c.lineTo(w * 0.1914, h * 0.03884); + c.lineTo(w * 0.1536, h * 0.0362); + c.lineTo(w * 0.1586, 0); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.24, 0); + c.lineTo(w * 0.2257, h * 0.054); + c.lineTo(w * 0.2414, h * 0.0674); + c.lineTo(w * 0.4707, h * 0.0835); + c.lineTo(w * 0.5264, h * 0.0906); + c.lineTo(w * 0.6429, h * 0.0929); + c.arcTo(w * 0.0857, h * 0.0536, 0, 0, 0, w * 0.7193, h * 0.0621); + c.arcTo(w * 0.48, h * 0.2143, 0, 0, 0, w * 0.7286, 0); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8, 0); + c.lineTo(w * 0.7886, h * 0.04554); + c.arcTo(w * 0.0857, h * 0.0536, 0, 0, 0, w * 0.8164, h * 0.0875); + c.arcTo(w * 0.1429, h * 0.0893, 0, 0, 0, w * 0.88, h * 0.1036); + c.lineTo(w, h * 0.1112); + c.lineTo(w, 0); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.0933); + c.lineTo(w * 0.08, h * 0.1036); + c.lineTo(w * 0.1021, h * 0.1246); + c.lineTo(w * 0.1007, h * 0.1768); + c.lineTo(w * 0.0471, h * 0.2241); + c.lineTo(0, h * 0.2527); + c.close(); + c.fillAndStroke(); + c.ellipse(w * 0.1214, h * 0.0603, w * 0.0843, h * 0.0576); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.1293, h * 0.1924); + c.lineTo(w * 0.1729, h * 0.142); + c.lineTo(w * 0.1407, h * 0.1411); + c.lineTo(w * 0.14, h * 0.1777); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.4586, h * 0.1241); + c.lineTo(w * 0.455, h * 0.1835); + c.lineTo(w * 0.3893, h * 0.2246); + c.lineTo(w * 0.2171, h * 0.1362); + c.lineTo(w * 0.2171, h * 0.1308); + c.lineTo(w * 0.2293, h * 0.1214); + c.lineTo(w * 0.2857, h * 0.1174); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5079, h * 0.1134); + c.lineTo(w * 0.7307, h * 0.1223); + c.lineTo(w * 0.7279, h * 0.1625); + c.lineTo(w * 0.715, h * 0.1772); + c.lineTo(w * 0.6929, h * 0.1688); + c.lineTo(w * 0.625, h * 0.1795); + c.lineTo(w * 0.4779, h * 0.2835); + c.lineTo(w * 0.395, h * 0.2299); + c.lineTo(w * 0.4657, h * 0.1826); + c.lineTo(w * 0.4707, h * 0.1223); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, h * 0.1362); + c.lineTo(w * 0.7643, h * 0.1237); + c.lineTo(w * 0.7543, h * 0.1562); + c.lineTo(w * 0.7643, h * 0.1585); + c.lineTo(w * 0.9186, h * 0.2366); + c.lineTo(w, h * 0.1732); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.2079, h * 0.1545); + c.lineTo(w * 0.3886, h * 0.2536); + c.lineTo(w * 0.3414, h * 0.2933); + c.lineTo(w * 0.1743, h * 0.1969); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.1579, h * 0.2134); + c.lineTo(w * 0.3221, h * 0.3067); + c.lineTo(w * 0.2957, h * 0.3237); + c.lineTo(w * 0.1157, h * 0.2424); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.405, h * 0.2656); + c.lineTo(w * 0.31, h * 0.3353); + c.lineTo(w * 0.3693, h * 0.3661); + c.lineTo(w * 0.4571, h * 0.2982); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.7121, h * 0.1848); + c.lineTo(w * 0.6879, h * 0.1754); + c.lineTo(w * 0.6329, h * 0.1844); + c.lineTo(w * 0.61, h * 0.2018); + c.lineTo(w * 0.6207, h * 0.2085); + c.lineTo(w * 0.4986, h * 0.2982); + c.lineTo(w * 0.535, h * 0.3237); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5557, h * 0.3379); + c.lineTo(w * 0.7464, h * 0.1826); + c.lineTo(w * 0.8036, h * 0.2076); + c.lineTo(w * 0.595, h * 0.3616); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8293, h * 0.2188); + c.lineTo(w * 0.8979, h * 0.2509); + c.lineTo(w * 0.6936, h * 0.4125); + c.lineTo(w * 0.6171, h * 0.3737); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, h * 0.2138); + c.lineTo(w * 0.6821, h * 0.4603); + c.lineTo(w * 0.815, h * 0.5277); + c.lineTo(w, h * 0.4); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.317); + c.lineTo(w * 0.0971, h * 0.2554); + c.lineTo(w * 0.4121, h * 0.4143); + c.lineTo(w * 0.3736, h * 0.4415); + c.lineTo(w * 0.315, h * 0.4076); + c.lineTo(w * 0.3093, h * 0.4116); + c.lineTo(w * 0.3686, h * 0.4455); + c.lineTo(w * 0.285, h * 0.5045); + c.lineTo(w * 0.1114, h * 0.4134); + c.lineTo(w * 0.025, h * 0.4603); + c.lineTo(w * 0.0371, h * 0.4723); + c.lineTo(w * 0.1114, h * 0.4371); + c.lineTo(w * 0.2871, h * 0.5312); + c.lineTo(w * 0.1929, h * 0.6058); + c.lineTo(w * 0.2271, h * 0.6705); + c.lineTo(w * 0.17, h * 0.7147); + c.lineTo(w * 0.0314, h * 0.6321); + c.lineTo(0, h * 0.6246); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.48, h * 0.3121); + c.lineTo(w * 0.5157, h * 0.3375); + c.lineTo(w * 0.4314, h * 0.3982); + c.lineTo(w * 0.3929, h * 0.3786); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.3086, h * 0.5179); + c.lineTo(w * 0.53, h * 0.3518); + c.lineTo(w * 0.5757, h * 0.3745); + c.lineTo(w * 0.3479, h * 0.5411); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5964, h * 0.3884); + c.lineTo(w * 0.6736, h * 0.4277); + c.lineTo(w * 0.445, h * 0.5991); + c.lineTo(w * 0.3664, h * 0.5531); + c.lineTo(w * 0.5057, h * 0.4545); + c.lineTo(w * 0.5507, h * 0.4754); + c.lineTo(w * 0.5571, h * 0.4723); + c.lineTo(w * 0.5114, h * 0.4504); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.4793, h * 0.6161); + c.lineTo(w * 0.6771, h * 0.4643); + c.lineTo(w * 0.8086, h * 0.5326); + c.lineTo(w * 0.7471, h * 0.5817); + c.lineTo(w * 0.7214, h * 0.567); + c.lineTo(w * 0.715, h * 0.571); + c.lineTo(w * 0.7421, h * 0.5871); + c.lineTo(w * 0.6014, h * 0.6933); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, h * 0.4371); + c.lineTo(w * 0.8443, h * 0.546); + c.lineTo(w * 0.9071, h * 0.5701); + c.lineTo(w, h * 0.5022); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8407, h * 0.5504); + c.lineTo(w * 0.8993, h * 0.5759); + c.lineTo(w * 0.6757, h * 0.7416); + c.lineTo(w * 0.6286, h * 0.7139); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, h * 0.5321); + c.lineTo(w * 0.6979, h * 0.7549); + c.lineTo(w * 0.7457, h * 0.7781); + c.lineTo(w * 0.9814, h * 0.6094); + c.lineTo(w, h * 0.6067); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, h * 0.6254); + c.lineTo(w * 0.7664, h * 0.792); + c.lineTo(w * 0.9586, h * 0.9062); + c.lineTo(w, h * 0.8786); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.3093, h * 0.5464); + c.lineTo(w * 0.4271, h * 0.6152); + c.lineTo(w * 0.245, h * 0.7643); + c.lineTo(w * 0.185, h * 0.7228); + c.lineTo(w * 0.2493, h * 0.6728); + c.lineTo(w * 0.2214, h * 0.6143); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.65); + c.lineTo(w * 0.2179, h * 0.7826); + c.lineTo(w * 0.1136, h * 0.8424); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.7272); + c.lineTo(w * 0.0821, h * 0.859); + c.lineTo(0, h * 0.9085); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.4529, h * 0.6366); + c.lineTo(w * 0.575, h * 0.7143); + c.lineTo(w * 0.39, h * 0.8621); + c.lineTo(w * 0.2657, h * 0.7902); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.9415); + c.lineTo(w * 0.1036, h * 0.8821); + c.lineTo(w * 0.2343, h * 0.959); + c.lineTo(w * 0.1721, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.2586, h * 0.7951); + c.lineTo(w * 0.3829, h * 0.8674); + c.lineTo(w * 0.2543, h * 0.9451); + c.lineTo(w * 0.1279, h * 0.8692); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.2836, h * 0.9639); + c.lineTo(w * 0.4207, h * 0.8772); + c.lineTo(w * 0.605, h * 0.7321); + c.lineTo(w * 0.6521, h * 0.7634); + c.lineTo(w * 0.3486, h); + c.lineTo(w * 0.3393, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.3879, h); + c.lineTo(w * 0.6721, h * 0.7759); + c.lineTo(w * 0.7171, h * 0.7982); + c.lineTo(w * 0.4564, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.4986, h); + c.lineTo(w * 0.7386, h * 0.8125); + c.lineTo(w * 0.9307, h * 0.925); + c.lineTo(w * 0.8264, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8671, h); + c.lineTo(w * 0.9464, h * 0.9491); + c.lineTo(w, h * 0.975); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.2295, h); + c.lineTo(w * 0.2648, h * 0.9792); + c.lineTo(w * 0.2981, h); + c.close(); + c.fillAndStroke(); + w = wOld; + h = hOld; + c.translate(-w * 0.0928, -h * 0.08); + } + + c.setStrokeWidth(1); + c.setStrokeColor('#18211b'); + c.rect(w * 0.0928, h * 0.08, w * 0.8144, h * 0.816); + c.stroke(); + c.setStrokeWidth(1.5); + c.setAlpha(0.8); + c.setStrokeColor('#dddddd'); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.stroke(); + rSize = 22.5; + c.begin(); + c.setStrokeColor('#666666'); + c.begin(); + c.moveTo(2.5, 2.5 + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, 2.5 + rSize, 2.5); + c.lineTo(w - rSize - 5, 2.5); + c.arcTo(rSize, rSize, 0, 0, 1, w - 2.5, rSize + 2.5); + c.lineTo(w - 2.5, h - rSize - 2.5); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize - 2.5, h - 2.5); + c.lineTo(rSize + 2.5, h - 2.5); + c.arcTo(rSize, rSize, 0, 0, 1, 2.5, h - rSize - 2.5); + c.close(); + c.stroke(); + c.setAlpha(1); + c.ellipse(w * 0.4948, h * 0.0444, w * 0.0103, h * 0.008); + c.setStrokeWidth(2.5); + c.setStrokeColor('#000000'); + c.setFillColor('#000099'); + c.fillAndStroke(); + c.setGradient('#bbbbbb', '#000000', w * 0.4588, h * 0.912, w * 0.0825, h * 0.064, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(w * 0.4588, h * 0.912, w * 0.0825, h * 0.064); + c.fill(); + c.setAlpha(0.5); + c.ellipse(w * 0.4588, h * 0.912, w * 0.0825, h * 0.064); + c.stroke(); + c.begin(); + c.setAlpha(0.85); + c.setFillColor('#000000'); + c.moveTo(w * 0.4598, h * 0.944); + c.arcTo(w * 0.0402, h * 0.0296, 0, 0, 1, w * 0.5402, h * 0.944); + c.arcTo(w * 0.0825, h * 0.064, 0, 0, 1, w * 0.4598, h * 0.944); + c.close(); + c.fillAndStroke(); + c.begin(); + c.setAlpha(0.7); + c.setStrokeWidth(1.5); + c.setStrokeColor('#dddddd'); + rSize = 4; + c.roundrect(w * 0.4814, h * 0.9296, w * 0.0371, h * 0.0288, h * 0.00515, h * 0.004); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IPAD, mxShapeMockupiPad); + +function mxShapeMockupRRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupRRect, mxShape); +mxShapeMockupRRect.prototype.cst = { + RRECT: 'mxgraph.ios.rrect', + R_SIZE: 'rSize' +}; +mxShapeMockupRRect.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 5 +}]; + +mxShapeMockupRRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupRRect.prototype.cst.RRECT, mxShapeMockupRRect); + +function mxShapeIosTopButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIosTopButton, mxShape); +mxShapeIosTopButton.prototype.cst = { + TOP_BUTTON: 'mxgraph.ios.topButton', + R_SIZE: 'rSize' +}; +mxShapeIosTopButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 5 +}]; + +mxShapeIosTopButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeIosTopButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeIosTopButton.prototype.cst.TOP_BUTTON, mxShapeIosTopButton); + +function mxShapeIosBottomButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIosBottomButton, mxShape); +mxShapeIosBottomButton.prototype.cst = { + BOTTOM_BUTTON: 'mxgraph.ios.bottomButton', + R_SIZE: 'rSize' +}; +mxShapeIosBottomButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 5 +}]; + +mxShapeIosBottomButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeIosBottomButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeIosBottomButton.prototype.cst.BOTTOM_BUTTON, mxShapeIosBottomButton); + +function mxShapeIosAnchor(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; +} + +; +mxUtils.extend(mxShapeIosAnchor, mxShape); +mxShapeIosAnchor.prototype.cst = { + ANCHOR: 'mxgraph.ios.anchor' +}; + +mxShapeIosAnchor.prototype.paintVertexShape = function (c, x, y, w, h) {}; + +mxCellRenderer.registerShape(mxShapeIosAnchor.prototype.cst.ANCHOR, mxShapeIosAnchor); + +function mxShapeIosCheckbox(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeIosCheckbox, mxShape); +mxShapeIosCheckbox.prototype.cst = { + CHECKBOX: 'mxgraph.ios.checkbox' +}; + +mxShapeIosCheckbox.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8, h * 0.2); + c.lineTo(w * 0.4, h * 0.8); + c.lineTo(w * 0.25, h * 0.6); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeIosCheckbox.prototype.cst.CHECKBOX, mxShapeIosCheckbox); + +function mxShapeMockupFancyRRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeMockupFancyRRect, mxShape); +mxShapeMockupFancyRRect.prototype.cst = { + FANCY_RRECT: 'mxgraph.ios.fancyRRect', + R_SIZE: 'rSize' +}; +mxShapeMockupFancyRRect.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 8 +}]; + +mxShapeMockupFancyRRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupFancyRRect.prototype.cst.R_SIZE, '10')); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); + c.setShadow(false); + c.setStrokeColor(fillColor); + c.setGradient(fillColor, '#ffffff', 0, 0, w, 22.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(0.3); + c.begin(); + c.moveTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, 17.5); + c.arcTo(w * 1.67, h * 2.5, 0, 0, 1, 0, 17.5); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fillAndStroke(); + c.setAlpha(0.8); + c.setStrokeColor(strokeColor); + c.setStrokeWidth(1); + c.roundrect(0, 0, w, h, rSize, rSize); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupFancyRRect.prototype.cst.FANCY_RRECT, mxShapeMockupFancyRRect); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxAWS3D.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxAWS3D.js new file mode 100644 index 0000000000000..4e8f99a3816ce --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxAWS3D.js @@ -0,0 +1,7001 @@ +"use strict"; + +function mxShapeAws3dArrowNE(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dArrowNE, mxShape); +mxShapeAws3dArrowNE.prototype.cst = { + ARROW_NE: 'mxgraph.aws3d.arrowNE' +}; + +mxShapeAws3dArrowNE.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(w - 17, 8); + c.lineTo(w - 21, 5.5); + c.lineTo(w, 0); + c.lineTo(w - 9.7, 12.2); + c.lineTo(w - 13.9, 9.8); + c.lineTo(9.7, h - 3.5); + c.arcTo(6, 3, 0, 0, 1, 9, h - 0.4); + c.arcTo(5.2, 3, 0, 0, 1, 1, h - 1.4); + c.arcTo(6, 2.8, 0, 0, 1, 3, h - 5.4); + c.arcTo(5, 3, 0, 0, 1, 6.7, h - 5.2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dArrowNE.prototype.cst.ARROW_NE, mxShapeAws3dArrowNE); + +function mxShapeAws3dArrowSE(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dArrowSE, mxShape); +mxShapeAws3dArrowSE.prototype.cst = { + ARROW_SE: 'mxgraph.aws3d.arrowSE' +}; + +mxShapeAws3dArrowSE.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(w - 17, h - 8); + c.lineTo(w - 21, h - 5.5); + c.lineTo(w, h); + c.lineTo(w - 9.7, h - 12.2); + c.lineTo(w - 13.9, h - 9.8); + c.lineTo(9.7, 3.5); + c.arcTo(6, 3, 0, 0, 0, 9, 0.4); + c.arcTo(5.2, 3, 0, 0, 0, 1, 1.4); + c.arcTo(6, 2.8, 0, 0, 0, 3, 5.4); + c.arcTo(5, 3, 0, 0, 0, 6.7, 5.2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dArrowSE.prototype.cst.ARROW_SE, mxShapeAws3dArrowSE); + +function mxShapeAws3dArrowSW(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dArrowSW, mxShape); +mxShapeAws3dArrowSW.prototype.cst = { + ARROW_SW: 'mxgraph.aws3d.arrowSW' +}; + +mxShapeAws3dArrowSW.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(17, h - 8); + c.lineTo(21, h - 5.5); + c.lineTo(0, h); + c.lineTo(9.7, h - 12.2); + c.lineTo(13.9, h - 9.8); + c.lineTo(w - 9.7, 3.5); + c.arcTo(6, 3, 0, 0, 1, w - 9, 0.4); + c.arcTo(5.2, 3, 0, 0, 1, w - 1, 1.4); + c.arcTo(6, 2.8, 0, 0, 1, w - 3, 5.4); + c.arcTo(5, 3, 0, 0, 1, w - 6.7, 5.2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dArrowSW.prototype.cst.ARROW_SW, mxShapeAws3dArrowSW); + +function mxShapeAws3dArrowNW(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dArrowNW, mxShape); +mxShapeAws3dArrowNW.prototype.cst = { + ARROW_NW: 'mxgraph.aws3d.arrowNW' +}; + +mxShapeAws3dArrowNW.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(17, 8); + c.lineTo(21, 5.5); + c.lineTo(0, 0); + c.lineTo(9.7, 12.2); + c.lineTo(13.9, 9.8); + c.lineTo(w - 9.7, h - 3.5); + c.arcTo(6, 3, 0, 0, 0, w - 9, h - 0.4); + c.arcTo(5.2, 3, 0, 0, 0, w - 1, h - 1.4); + c.arcTo(6, 2.8, 0, 0, 0, w - 3, h - 5.4); + c.arcTo(5, 3, 0, 0, 0, w - 6.7, h - 5.2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dArrowNW.prototype.cst.ARROW_NW, mxShapeAws3dArrowNW); + +function mxShapeAws3dArrowlessNE(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dArrowlessNE, mxShape); +mxShapeAws3dArrowlessNE.prototype.cst = { + ARROWLESS_NE: 'mxgraph.aws3d.arrowlessNE' +}; + +mxShapeAws3dArrowlessNE.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(w - 3.1, 0); + c.lineTo(w, 1.8); + c.lineTo(9.7, h - 3.5); + c.arcTo(6, 3, 0, 0, 1, 9, h - 0.4); + c.arcTo(5.2, 3, 0, 0, 1, 1, h - 1.4); + c.arcTo(6, 2.8, 0, 0, 1, 3, h - 5.4); + c.arcTo(5, 3, 0, 0, 1, 6.7, h - 5.2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dArrowlessNE.prototype.cst.ARROWLESS_NE, mxShapeAws3dArrowlessNE); + +function mxShapeAws3dDashedEdgeDouble(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dDashedEdgeDouble, mxShape); +mxShapeAws3dDashedEdgeDouble.prototype.cst = { + DASHED_EDGE_DOUBLE: 'mxgraph.aws3d.dashedEdgeDouble' +}; + +mxShapeAws3dDashedEdgeDouble.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setFillColor('#2D6195'); + c.save(); + c.setStrokeColor('none'); + c.begin(); + c.moveTo(21, 5.5); + c.lineTo(0, 0); + c.lineTo(9.7, 12.2); + c.fillAndStroke(); + c.begin(); + c.moveTo(w - 21, h - 5.5); + c.lineTo(w, h); + c.lineTo(w - 9.7, h - 12.2); + c.fillAndStroke(); + c.restore(); + c.setStrokeColor('#2D6195'); + c.setStrokeWidth('4'); + c.setDashed('true'); + c.setLineCap('round'); + c.begin(); + c.moveTo(7.675, 4.425); + c.lineTo(w - 7.675, h - 4.425); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dDashedEdgeDouble.prototype.cst.DASHED_EDGE_DOUBLE, mxShapeAws3dDashedEdgeDouble); + +function mxShapeAws3dDashedArrowlessEdge(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dDashedArrowlessEdge, mxShape); +mxShapeAws3dDashedArrowlessEdge.prototype.cst = { + DASHED_ARROWLESS_EDGE: 'mxgraph.aws3d.dashedArrowlessEdge' +}; + +mxShapeAws3dDashedArrowlessEdge.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setStrokeColor('#2D6195'); + c.setStrokeWidth('4'); + c.setDashed('true'); + c.setLineCap('round'); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dDashedArrowlessEdge.prototype.cst.DASHED_ARROWLESS_EDGE, mxShapeAws3dDashedArrowlessEdge); + +function mxShapeAws3dDashedEdge(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dDashedEdge, mxShape); +mxShapeAws3dDashedEdge.prototype.cst = { + DASHED_EDGE: 'mxgraph.aws3d.dashedEdge' +}; + +mxShapeAws3dDashedEdge.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setFillColor('#2D6195'); + c.save(); + c.setStrokeColor('none'); + c.begin(); + c.moveTo(w - 21, 5.5); + c.lineTo(w, 0); + c.lineTo(w - 9.7, 12.2); + c.fillAndStroke(); + c.restore(); + c.setStrokeColor('#2D6195'); + c.setStrokeWidth('4'); + c.setDashed('true'); + c.setLineCap('round'); + c.begin(); + c.moveTo(w - 7.675, 4.425); + c.lineTo(0, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dDashedEdge.prototype.cst.DASHED_EDGE, mxShapeAws3dDashedEdge); + +function mxShapeAws3dFlatEdge(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dFlatEdge, mxShape); +mxShapeAws3dFlatEdge.prototype.cst = { + FLAT_EDGE: 'mxgraph.aws3d.flatEdge' +}; + +mxShapeAws3dFlatEdge.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setFillColor('#F4B934'); + c.setStrokeColor('none'); + c.begin(); + c.moveTo(w - 46, 8.8); + c.lineTo(w - 61.2, 0); + c.lineTo(w, 0); + c.lineTo(w, 35.5); + c.lineTo(w - 15.4, 26.5); + c.lineTo(30.7, h); + c.lineTo(0, h - 17.7); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dFlatEdge.prototype.cst.FLAT_EDGE, mxShapeAws3dFlatEdge); + +function mxShapeAws3dFlatDoubleEdge(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dFlatDoubleEdge, mxShape); +mxShapeAws3dFlatDoubleEdge.prototype.cst = { + FLAT_DOUBLE_EDGE: 'mxgraph.aws3d.flatDoubleEdge' +}; + +mxShapeAws3dFlatDoubleEdge.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setFillColor('#F4B934'); + c.setStrokeColor('none'); + c.begin(); + c.moveTo(15.3, 61.9); + c.lineTo(30.8, 53.2); + c.lineTo(15.4, 44.2); + c.lineTo(0, 53.2); + c.lineTo(15.4, 8.8); + c.lineTo(92.1, 0); + c.lineTo(76.5, 8.8); + c.lineTo(92.1, 17.7); + c.lineTo(107.4, 8.8); + c.lineTo(w - 15.3, h - 61.9); + c.lineTo(w - 30.8, h - 53.2); + c.lineTo(w - 15.4, h - 44.2); + c.lineTo(w, h - 53.2); + c.lineTo(w - 15.4, h - 8.8); + c.lineTo(w - 92.1, h); + c.lineTo(w - 76.5, h - 8.8); + c.lineTo(w - 92.1, h - 17.7); + c.lineTo(w - 107.4, h - 8.8); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dFlatDoubleEdge.prototype.cst.FLAT_DOUBLE_EDGE, mxShapeAws3dFlatDoubleEdge); + +function mxShapeAws3dAMI(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dAMI, mxShape); +mxShapeAws3dAMI.prototype.cst = { + AMI: 'mxgraph.aws3d.ami', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dAMI.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + var strokeWidth1 = strokeWidth * w / 92; + var strokeWidth2 = strokeWidth * h / 60; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + c.setShadow(false); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.6483); + c.lineTo(w * 0.0684, h * 0.4133); + c.lineTo(w * 0.5326, 0); + c.lineTo(w * 0.6685, 0); + c.lineTo(w * 0.9359, h * 0.2367); + c.lineTo(w, h * 0.465); + c.lineTo(w * 0.4, h); + c.close(); + c.fillAndStroke(); + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dAMI.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.65); + c.lineTo(w * 0.0652, h * 0.5); + c.lineTo(w * 0.3326, h * 0.7667); + c.lineTo(w * 0.4663, h * 0.7667); + c.lineTo(w * 0.4, h); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.4, h); + c.lineTo(w * 0.4641, h * 0.77); + c.lineTo(w * 0.9326, h * 0.355); + c.lineTo(w * 0.9347, h * 0.24); + c.lineTo(w, h * 0.4667); + c.close(); + c.fill(); + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.65); + c.lineTo(w * 0.0652, h * 0.5); + c.lineTo(w * 0.3326, h * 0.7667); + c.lineTo(w * 0.4663, h * 0.7667); + c.lineTo(w * 0.4, h); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.4, h); + c.lineTo(w * 0.4641, h * 0.77); + c.lineTo(w * 0.9326, h * 0.355); + c.lineTo(w * 0.9347, h * 0.24); + c.lineTo(w, h * 0.4667); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.0652, h * 0.42); + c.lineTo(w * 0.0652, h * 0.5); + c.moveTo(w * 0.3337, h * 0.7667); + c.lineTo(w * 0.4, h); + c.moveTo(w * 0.9348, h * 0.355); + c.lineTo(w, h * 0.4733); + c.stroke(); + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.1935, h * 0.42); + c.lineTo(w * 0.5543, h * 0.0967); + c.lineTo(w * 0.6652, h * 0.1967); + c.lineTo(w * 0.3, h * 0.5133); + c.close(); + c.moveTo(w * 0.2967, h * 0.4633); + c.lineTo(w * 0.3837, h * 0.3883); + c.lineTo(w * 0.3326, h * 0.3417); + c.lineTo(w * 0.2467, h * 0.42); + c.close(); + c.moveTo(w * 0.362, h * 0.32); + c.lineTo(w * 0.412, h * 0.3633); + c.lineTo(w * 0.5054, h * 0.2867); + c.lineTo(w * 0.4522, h * 0.24); + c.close(); + c.moveTo(w * 0.5293, h * 0.26); + c.lineTo(w * 0.6109, h * 0.1933); + c.lineTo(w * 0.5511, h * 0.145); + c.lineTo(w * 0.4739, h * 0.2133); + c.close(); + c.moveTo(w * 0.3528, h * 0.557); + c.lineTo(w * 0.7137, h * 0.2337); + c.lineTo(w * 0.8246, h * 0.3337); + c.lineTo(w * 0.4593, h * 0.6503); + c.close(); + c.moveTo(w * 0.4561, h * 0.6003); + c.lineTo(w * 0.543, h * 0.5253); + c.lineTo(w * 0.492, h * 0.4787); + c.lineTo(w * 0.4061, h * 0.557); + c.close(); + c.moveTo(w * 0.5213, h * 0.457); + c.lineTo(w * 0.5713, h * 0.5003); + c.lineTo(w * 0.6648, h * 0.4237); + c.lineTo(w * 0.6115, h * 0.377); + c.close(); + c.moveTo(w * 0.6887, h * 0.397); + c.lineTo(w * 0.7702, h * 0.3303); + c.lineTo(w * 0.7104, h * 0.282); + c.lineTo(w * 0.6333, h * 0.3503); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.6483); + c.lineTo(w * 0.0684, h * 0.4133); + c.lineTo(w * 0.5326, 0); + c.lineTo(w * 0.6685, 0); + c.lineTo(w * 0.9359, h * 0.2367); + c.lineTo(w, h * 0.465); + c.lineTo(w * 0.4, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dAMI.prototype.cst.AMI, mxShapeAws3dAMI); + +function mxShapeAws3dSnapshot(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dSnapshot, mxShape); +mxShapeAws3dSnapshot.prototype.cst = { + SNAPSHOT: 'mxgraph.aws3d.snapshot', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dSnapshot.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 92; + var strokeWidth2 = strokeWidth * h / 60; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + c.setShadow(false); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) { + c.setShadow(true); + } + + c.begin(); + c.moveTo(w, h * 0.6483); + c.lineTo(w * 0.9316, h * 0.4133); + c.lineTo(w * 0.4674, 0); + c.lineTo(w * 0.3315, 0); + c.lineTo(w * 0.0641, h * 0.2367); + c.lineTo(0, h * 0.465); + c.lineTo(w * 0.6, h); + c.close(); + c.fillAndStroke(); + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSnapshot.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w, h * 0.65); + c.lineTo(w * 0.9348, h * 0.52); + c.lineTo(w * 0.6674, h * 0.7667); + c.lineTo(w * 0.5337, h * 0.7667); + c.lineTo(w * 0.6, h); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.6, h); + c.lineTo(w * 0.5359, h * 0.77); + c.lineTo(w * 0.0674, h * 0.355); + c.lineTo(w * 0.0653, h * 0.24); + c.lineTo(0, h * 0.4667); + c.close(); + c.fill(); + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w, h * 0.65); + c.lineTo(w * 0.9348, h * 0.52); + c.lineTo(w * 0.6674, h * 0.7667); + c.lineTo(w * 0.5337, h * 0.7667); + c.lineTo(w * 0.6, h); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.6, h); + c.lineTo(w * 0.5359, h * 0.77); + c.lineTo(w * 0.0674, h * 0.355); + c.lineTo(w * 0.0653, h * 0.24); + c.lineTo(0, h * 0.4667); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.9348, h * 0.42); + c.lineTo(w * 0.9348, h * 0.52); + c.moveTo(w * 0.6663, h * 0.7667); + c.lineTo(w * 0.6, h); + c.moveTo(w * 0.0652, h * 0.355); + c.lineTo(0, h * 0.4733); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w, h * 0.6483); + c.lineTo(w * 0.9316, h * 0.4133); + c.lineTo(w * 0.4674, 0); + c.lineTo(w * 0.3315, 0); + c.lineTo(w * 0.0641, h * 0.2367); + c.lineTo(0, h * 0.465); + c.lineTo(w * 0.6, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dSnapshot.prototype.cst.SNAPSHOT, mxShapeAws3dSnapshot); + +function mxShapeAws3dApplication(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dApplication, mxShape); +mxShapeAws3dApplication.prototype.cst = { + APPLICATION: 'mxgraph.aws3d.application', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dApplication.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 62; + var strokeWidth2 = strokeWidth * h / 68.8; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.2544); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.2544); + c.lineTo(w, h * 0.7485); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7485); + c.close(); + c.fillAndStroke(); + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplication.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.2544); + c.lineTo(w * 0.5, h * 0.5015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7485); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h * 0.5015); + c.lineTo(w, h * 0.2544); + c.lineTo(w, h * 0.7485); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.2544); + c.lineTo(w * 0.5, h * 0.5015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7485); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.5, h * 0.5015); + c.lineTo(w, h * 0.2544); + c.lineTo(w, h * 0.7485); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.6694, h * 0.0872); + c.lineTo(w * 0.7629, h * 0.1337); + c.lineTo(w * 0.2661, h * 0.3882); + c.lineTo(w * 0.2661, h * 0.5407); + c.lineTo(w * 0.1742, h * 0.4953); + c.lineTo(w * 0.1742, h * 0.3459); + c.close(); + c.moveTo(w * 0.8629, h * 0.1846); + c.lineTo(w * 0.379, h * 0.4331); + c.lineTo(w * 0.379, h * 0.5945); + c.lineTo(w * 0.2855, h * 0.5494); + c.lineTo(w * 0.2855, h * 0.3953); + c.lineTo(w * 0.7839, h * 0.1439); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.2544); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.2544); + c.lineTo(w, h * 0.7485); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7485); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dApplication.prototype.cst.APPLICATION, mxShapeAws3dApplication); + +function mxShapeAws3dApplicationServer(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dApplicationServer, mxShape); +mxShapeAws3dApplicationServer.prototype.cst = { + APPLICATION_SERVER: 'mxgraph.aws3d.application_server', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dApplicationServer.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 124; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dApplicationServer.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7236); + c.lineTo(0, h * 0.2863); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.2863); + c.lineTo(w, h * 0.7236); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dApplicationServer.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplicationServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.2863); + c.lineTo(w * 0.5, h * 0.5726); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7177); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w, h * 0.2863); + c.lineTo(w * 0.5, h * 0.5726); + c.lineTo(w * 0.5, h); + c.lineTo(w, h * 0.7177); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.2863); + c.lineTo(w * 0.5, h * 0.5726); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7177); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w, h * 0.2863); + c.lineTo(w * 0.5, h * 0.5726); + c.lineTo(w * 0.5, h); + c.lineTo(w, h * 0.7177); + c.close(); + c.stroke(); + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.374, h * 0.4435); + c.arcTo(w * 0.0325, h * 0.0202, 0, 0, 1, w * 0.374, h * 0.4153); + c.lineTo(w * 0.4797, h * 0.3548); + c.arcTo(w * 0.0325, h * 0.0161, 0, 0, 1, w * 0.5203, h * 0.3548); + c.lineTo(w * 0.626, h * 0.4153); + c.arcTo(w * 0.0325, h * 0.0202, 0, 0, 1, w * 0.626, h * 0.4411); + c.lineTo(w * 0.5203, h * 0.5016); + c.arcTo(w * 0.0325, h * 0.0161, 0, 0, 1, w * 0.4797, h * 0.5016); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7236); + c.lineTo(0, h * 0.2863); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.2863); + c.lineTo(w, h * 0.7236); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dApplicationServer.prototype.cst.APPLICATION_SERVER, mxShapeAws3dApplicationServer); + +function mxShapeAws3dCloudFront(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dCloudFront, mxShape); +mxShapeAws3dCloudFront.prototype.cst = { + CLOUDFRONT: 'mxgraph.aws3d.cloudfront', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dCloudFront.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 103.8; + var strokeWidth2 = strokeWidth * h / 169.8; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.7915); + c.lineTo(0, h * 0.7491); + c.lineTo(w * 0.0588, h * 0.7279); + c.lineTo(w * 0.0588, h * 0.1036); + c.lineTo(w * 0.3526, 0); + c.lineTo(w * 0.9422, h * 0.2073); + c.lineTo(w * 0.9422, h * 0.8316); + c.lineTo(w, h * 0.8539); + c.lineTo(w, h * 0.894); + c.lineTo(w * 0.7013, h); + c.lineTo(w * 0.5877, h); + c.close(); + c.fillAndStroke(); + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCloudFront.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.0588, h * 0.106); + c.lineTo(w * 0.6474, h * 0.3121); + c.lineTo(w * 0.6474, h * 0.9352); + c.lineTo(w * 0.7052, h); + c.lineTo(w * 0.5915, h); + c.lineTo(0, h * 0.7915); + c.lineTo(0, h * 0.7491); + c.lineTo(w * 0.0588, h * 0.7279); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.6474, h * 0.3121); + c.lineTo(w * 0.9422, h * 0.2073); + c.lineTo(w * 0.9422, h * 0.8363); + c.lineTo(w, h * 0.8539); + c.lineTo(w, h * 0.894); + c.lineTo(w * 0.7013, h); + c.lineTo(w * 0.6474, h * 0.9305); + c.close(); + c.fill(); + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7915); + c.lineTo(w * 0.0559, h * 0.7291); + c.lineTo(w * 0.6474, h * 0.9364); + c.lineTo(w * 0.5896, h); + c.moveTo(w * 0.6493, h * 0.9364); + c.lineTo(w * 0.9412, h * 0.8333); + c.lineTo(w, h * 0.894); + c.stroke(); + c.begin(); + c.moveTo(w * 0.0588, h * 0.106); + c.lineTo(w * 0.6474, h * 0.3121); + c.lineTo(w * 0.6474, h * 0.9352); + c.lineTo(w * 0.7052, h); + c.lineTo(w * 0.5915, h); + c.lineTo(0, h * 0.7915); + c.lineTo(0, h * 0.7491); + c.lineTo(w * 0.0588, h * 0.7279); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.6474, h * 0.3121); + c.lineTo(w * 0.9422, h * 0.2073); + c.lineTo(w * 0.9422, h * 0.8363); + c.lineTo(w, h * 0.8539); + c.lineTo(w, h * 0.894); + c.lineTo(w * 0.7013, h); + c.lineTo(w * 0.6474, h * 0.9305); + c.close(); + c.stroke(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.3333, h * 0.6643); + c.arcTo(w * 0.3372, h * 0.2061, 0, 0, 1, w * 0.2351, h * 0.6042); + c.arcTo(w * 0.4528, h * 0.2768, 0, 0, 1, w * 0.1724, h * 0.523); + c.lineTo(w * 0.2428, h * 0.5677); + c.lineTo(w * 0.2427, h * 0.5895); + c.lineTo(w * 0.2765, h * 0.5995); + c.close(); + c.moveTo(w * 0.1599, h * 0.4935); + c.arcTo(w * 0.3372, h * 0.2061, 0, 0, 1, w * 0.1522, h * 0.4146); + c.arcTo(w * 0.1156, h * 0.0883, 0, 0, 1, w * 0.2071, h * 0.3486); + c.lineTo(w * 0.2013, h * 0.4187); + c.lineTo(w * 0.1859, h * 0.4146); + c.lineTo(w * 0.1859, h * 0.4464); + c.lineTo(w * 0.1907, h * 0.4493); + c.close(); + c.moveTo(w * 0.2235, h * 0.3445); + c.arcTo(w * 0.1927, h * 0.1767, 0, 0, 1, w * 0.368, h * 0.361); + c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.468, h * 0.4299); + c.lineTo(w * 0.368, h * 0.4034); + c.lineTo(w * 0.368, h * 0.394); + c.lineTo(w * 0.3256, h * 0.3799); + c.lineTo(w * 0.3256, h * 0.3887); + c.close(); + c.moveTo(w * 0.4855, h * 0.4499); + c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.5337, h * 0.5395); + c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.5328, h * 0.6302); + c.lineTo(w * 0.4952, h * 0.5589); + c.lineTo(w * 0.5019, h * 0.5595); + c.lineTo(w * 0.5019, h * 0.5265); + c.lineTo(w * 0.4855, h * 0.5194); + c.close(); + c.moveTo(w * 0.5241, h * 0.6455); + c.arcTo(w * 0.0963, h * 0.0589, 0, 0, 1, w * 0.4663, h * 0.682); + c.arcTo(w * 0.1445, h * 0.0883, 0, 0, 1, w * 0.3642, h * 0.6761); + c.lineTo(w * 0.4239, h * 0.6525); + c.lineTo(w * 0.4566, h * 0.6643); + c.lineTo(w * 0.4566, h * 0.6413); + c.close(); + c.moveTo(w * 0.3507, h * 0.6667); + c.lineTo(w * 0.2871, h * 0.5919); + c.lineTo(w * 0.4123, h * 0.6366); + c.close(); + c.moveTo(w * 0.2563, h * 0.5595); + c.lineTo(w * 0.1753, h * 0.5088); + c.lineTo(w * 0.2052, h * 0.4594); + c.close(); + c.moveTo(w * 0.2139, h * 0.4229); + c.lineTo(w * 0.2197, h * 0.3528); + c.lineTo(w * 0.3256, h * 0.4028); + c.lineTo(w * 0.2283, h * 0.4252); + c.close(); + c.moveTo(w * 0.2264, h * 0.4417); + c.lineTo(w * 0.3218, h * 0.4146); + c.lineTo(w * 0.3353, h * 0.4181); + c.lineTo(w * 0.3353, h * 0.4971); + c.lineTo(w * 0.3208, h * 0.4912); + c.lineTo(w * 0.3208, h * 0.4965); + c.lineTo(w * 0.2264, h * 0.4482); + c.close(); + c.moveTo(w * 0.2697, h * 0.5618); + c.lineTo(w * 0.2245, h * 0.4635); + c.lineTo(w * 0.2331, h * 0.4588); + c.lineTo(w * 0.3256, h * 0.5112); + c.lineTo(w * 0.3237, h * 0.5241); + c.close(); + c.moveTo(w * 0.2852, h * 0.576); + c.lineTo(w * 0.2852, h * 0.5654); + c.lineTo(w * 0.3391, h * 0.53); + c.lineTo(w * 0.3516, h * 0.5347); + c.lineTo(w * 0.4133, h * 0.6213); + c.close(); + c.moveTo(w * 0.368, h * 0.5141); + c.lineTo(w * 0.368, h * 0.5088); + c.lineTo(w * 0.3526, h * 0.5029); + c.lineTo(w * 0.3526, h * 0.4234); + c.lineTo(w * 0.3622, h * 0.4276); + c.lineTo(w * 0.4547, h * 0.5177); + c.lineTo(w * 0.4557, h * 0.5277); + c.close(); + c.moveTo(w * 0.3671, h * 0.417); + c.lineTo(w * 0.4692, h * 0.4411); + c.lineTo(w * 0.4721, h * 0.52); + c.close(); + c.moveTo(w * 0.368, h * 0.5253); + c.lineTo(w * 0.4566, h * 0.5359); + c.lineTo(w * 0.4566, h * 0.5453); + c.lineTo(w * 0.4663, h * 0.5465); + c.lineTo(w * 0.4335, h * 0.6201); + c.lineTo(w * 0.422, h * 0.616); + c.lineTo(w * 0.368, h * 0.5389); + c.close(); + c.moveTo(w * 0.4798, h * 0.5583); + c.lineTo(w * 0.5183, h * 0.629); + c.lineTo(w * 0.4557, h * 0.6313); + c.lineTo(w * 0.4557, h * 0.6237); + c.lineTo(w * 0.447, h * 0.6225); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7915); + c.lineTo(0, h * 0.7491); + c.lineTo(w * 0.0588, h * 0.7279); + c.lineTo(w * 0.0588, h * 0.1036); + c.lineTo(w * 0.3526, 0); + c.lineTo(w * 0.9422, h * 0.2073); + c.lineTo(w * 0.9422, h * 0.8316); + c.lineTo(w, h * 0.8539); + c.lineTo(w, h * 0.894); + c.lineTo(w * 0.7013, h); + c.lineTo(w * 0.5877, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dCloudFront.prototype.cst.CLOUDFRONT, mxShapeAws3dCloudFront); + +function mxShapeAws3dDataCenter(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dDataCenter, mxShape); +mxShapeAws3dDataCenter.prototype.cst = { + DATA_CENTER: 'mxgraph.aws3d.dataCenter', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dDataCenter.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 142; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.7465); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7465); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDataCenter.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.7465); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w, h * 0.7465); + c.lineTo(w, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7465); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w, h * 0.7465); + c.lineTo(w, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + c.setLineCap('round'); + c.setStrokeWidth(3 * strokeWidth); + c.begin(); + c.moveTo(w * 0.0894, h * 0.3838); + c.lineTo(w * 0.4187, h * 0.5493); + c.moveTo(w * 0.0894, h * 0.4331); + c.lineTo(w * 0.4187, h * 0.5986); + c.moveTo(w * 0.0894, h * 0.4824); + c.lineTo(w * 0.4187, h * 0.6479); + c.moveTo(w * 0.5854, h * 0.5493); + c.lineTo(w * 0.9146, h * 0.3838); + c.moveTo(w * 0.5854, h * 0.5986); + c.lineTo(w * 0.9146, h * 0.4331); + c.moveTo(w * 0.5854, h * 0.6479); + c.lineTo(w * 0.9146, h * 0.4824); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7465); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7465); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dDataCenter.prototype.cst.DATA_CENTER, mxShapeAws3dDataCenter); + +function mxShapeAws3dDataServer(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dDataServer, mxShape); +mxShapeAws3dDataServer.prototype.cst = { + DATA_SERVER: 'mxgraph.aws3d.dataServer', + SHADINC_COLORS: 'shadingCols' +}; + +mxShapeAws3dDataServer.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 106; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.6651); + c.lineTo(0, h * 0.3349); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3349); + c.lineTo(w, h * 0.6651); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDataServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.6651); + c.lineTo(0, h * 0.3349); + c.lineTo(w * 0.5, h * 0.6698); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w, h * 0.6651); + c.lineTo(w, h * 0.3349); + c.lineTo(w * 0.5, h * 0.6698); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.6651); + c.lineTo(0, h * 0.3349); + c.lineTo(w * 0.5, h * 0.6698); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w, h * 0.6651); + c.lineTo(w, h * 0.3349); + c.lineTo(w * 0.5, h * 0.6698); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + c.setLineCap('round'); + c.setStrokeWidth(3 * strokeWidth); + c.begin(); + c.moveTo(w * 0.0878, h * 0.4858); + c.lineTo(w * 0.4187, h * 0.7094); + c.moveTo(w * 0.587, h * 0.7094); + c.lineTo(w * 0.9187, h * 0.4858); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.6651); + c.lineTo(0, h * 0.3349); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3349); + c.lineTo(w, h * 0.6651); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dDataServer.prototype.cst.DATA_SERVER, mxShapeAws3dDataServer); + +function mxShapeAws3dElasticLoadBalancing(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dElasticLoadBalancing, mxShape); +mxShapeAws3dElasticLoadBalancing.prototype.cst = { + ELASTIC_LOAD_BALANCING: 'mxgraph.aws3d.elasticLoadBalancing', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dElasticLoadBalancing.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 92; + var strokeWidth2 = strokeWidth * h / 88.17; + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.7996); + c.lineTo(0, h * 0.1985); + c.lineTo(w * 0.3315, 0); + c.lineTo(w * 0.6685, 0); + c.lineTo(w, h * 0.1985); + c.lineTo(w, h * 0.7996); + c.lineTo(w * 0.6685, h); + c.lineTo(w * 0.3315, h); + c.close(); + c.fillAndStroke(); + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticLoadBalancing.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.4026); + c.lineTo(w * 0.3315, h * 0.6011); + c.lineTo(w * 0.6685, h * 0.6011); + c.lineTo(w * 0.6685, h); + c.lineTo(w * 0.3315, h); + c.lineTo(0, h * 0.7996); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.6685, h * 0.6011); + c.lineTo(w, h * 0.4026); + c.lineTo(w, h * 0.7996); + c.lineTo(w * 0.6685, h); + c.close(); + c.fill(); + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.4026); + c.lineTo(w * 0.3315, h * 0.6011); + c.lineTo(w * 0.6685, h * 0.6011); + c.lineTo(w * 0.6685, h); + c.lineTo(w * 0.3315, h); + c.lineTo(0, h * 0.7996); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.6685, h * 0.6011); + c.lineTo(w, h * 0.4026); + c.lineTo(w, h * 0.7996); + c.lineTo(w * 0.6685, h); + c.close(); + c.moveTo(w * 0.3315, h * 0.6011); + c.lineTo(w * 0.3315, h); + c.stroke(); + c.restore(); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.337, h * 0.1395); + c.arcTo(w * 0.3043, h * 0.1928, 0, 0, 1, w * 0.5, h * 0.1191); + c.arcTo(w * 0.3043, h * 0.1928, 0, 0, 1, w * 0.6739, h * 0.1645); + c.arcTo(w * 0.3261, h * 0.2155, 0, 0, 1, w * 0.8152, h * 0.3176); + c.arcTo(w * 0.3261, h * 0.1701, 0, 0, 1, w * 0.75, h * 0.4367); + c.arcTo(w * 0.3261, h * 0.3403, 0, 0, 1, w * 0.6033, h * 0.4854); + c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.4348, h * 0.4741); + c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.2848, h * 0.4094); + c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.2065, h * 0.3062); + c.arcTo(w * 0.3261, h * 0.1701, 0, 0, 1, w * 0.2446, h * 0.1928); + c.arcTo(w * 0.2717, h * 0.1701, 0, 0, 1, w * 0.337, h * 0.1395); + c.fill(); + c.restore(); + c.begin(); + c.moveTo(w * 0.2826, h * 0.372); + c.lineTo(w * 0.362, h * 0.3232); + c.lineTo(w * 0.4054, h * 0.3482); + c.lineTo(w * 0.4457, h * 0.2654); + c.lineTo(w * 0.4185, h * 0.2643); + c.lineTo(w * 0.4728, h * 0.2132); + c.lineTo(w * 0.4348, h * 0.1928); + c.lineTo(w * 0.5141, h * 0.144); + c.lineTo(w * 0.5837, h * 0.1883); + c.lineTo(w * 0.5043, h * 0.2348); + c.lineTo(w * 0.4848, h * 0.2223); + c.lineTo(w * 0.4967, h * 0.2688); + c.lineTo(w * 0.463, h * 0.2665); + c.lineTo(w * 0.4304, h * 0.3346); + c.lineTo(w * 0.4946, h * 0.2949); + c.lineTo(w * 0.4761, h * 0.2858); + c.lineTo(w * 0.5511, h * 0.2631); + c.lineTo(w * 0.5261, h * 0.2472); + c.lineTo(w * 0.6043, h * 0.1996); + c.lineTo(w * 0.6761, h * 0.2404); + c.lineTo(w * 0.5978, h * 0.2892); + c.lineTo(w * 0.5652, h * 0.2699); + c.lineTo(w * 0.5293, h * 0.3198); + c.lineTo(w * 0.5087, h * 0.3051); + c.lineTo(w * 0.4543, h * 0.3391); + c.lineTo(w * 0.563, h * 0.3221); + c.lineTo(w * 0.5598, h * 0.3017); + c.lineTo(w * 0.6326, h * 0.3096); + c.lineTo(w * 0.6163, h * 0.2994); + c.lineTo(w * 0.6957, h * 0.2529); + c.lineTo(w * 0.7674, h * 0.2938); + c.lineTo(w * 0.687, h * 0.3425); + c.lineTo(w * 0.6489, h * 0.321); + c.lineTo(w * 0.5707, h * 0.3539); + c.lineTo(w * 0.5674, h * 0.3369); + c.lineTo(w * 0.4293, h * 0.3618); + c.lineTo(w * 0.4641, h * 0.3834); + c.lineTo(w * 0.3859, h * 0.4299); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7996); + c.lineTo(0, h * 0.1985); + c.lineTo(w * 0.3315, 0); + c.lineTo(w * 0.6685, 0); + c.lineTo(w, h * 0.1985); + c.lineTo(w, h * 0.7996); + c.lineTo(w * 0.6685, h); + c.lineTo(w * 0.3315, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dElasticLoadBalancing.prototype.cst.ELASTIC_LOAD_BALANCING, mxShapeAws3dElasticLoadBalancing); + +function mxShapeAws3dInstance(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dInstance, mxShape); +mxShapeAws3dInstance.prototype.cst = { + INSTANCE: 'mxgraph.aws3d.instance', + SHADIG_COLORS: 'shadingCols' +}; + +mxShapeAws3dInstance.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 97; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dInstance.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.634); + c.lineTo(0, h * 0.2732); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.622, 0); + c.lineTo(w, h * 0.2732); + c.lineTo(w, h * 0.634); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dInstance.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInstance.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.2732); + c.lineTo(w * 0.5, h * 0.6392); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.634); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h * 0.6392); + c.lineTo(w, h * 0.2732); + c.lineTo(w, h * 0.6392); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.2732); + c.lineTo(w * 0.5, h * 0.6392); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.634); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.5, h * 0.6392); + c.lineTo(w, h * 0.2732); + c.lineTo(w, h * 0.6392); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.374, h * 0.4742); + c.arcTo(w * 0.0325, h * 0.0258, 0, 0, 1, w * 0.374, h * 0.4381); + c.lineTo(w * 0.4797, h * 0.3608); + c.arcTo(w * 0.0325, h * 0.0206, 0, 0, 1, w * 0.5203, h * 0.3608); + c.lineTo(w * 0.626, h * 0.4381); + c.arcTo(w * 0.0325, h * 0.0258, 0, 0, 1, w * 0.626, h * 0.4711); + c.lineTo(w * 0.5203, h * 0.5485); + c.arcTo(w * 0.0325, h * 0.0206, 0, 0, 1, w * 0.4797, h * 0.5485); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.634); + c.lineTo(0, h * 0.2732); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.622, 0); + c.lineTo(w, h * 0.2732); + c.lineTo(w, h * 0.634); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dInstance.prototype.cst.INSTANCE, mxShapeAws3dInstance); + +function mxShapeAws3dInternetGateway(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dInternetGateway, mxShape); +mxShapeAws3dInternetGateway.prototype.cst = { + INTERNET_GATEWAY: 'mxgraph.aws3d.internetGateway', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dInternetGateway.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 116.7; + var strokeWidth2 = strokeWidth * h / 102.8; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dInternetGateway.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.8946, 0); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6812, h * 0.7247); + c.close(); + c.fillAndStroke(); + c.restore(); + c.save(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInternetGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.6838, h * 0.2072); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.6838, h * 0.2072); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.6838, h * 0.2072); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.stroke(); + c.restore(); + c.setLineJoin('round'); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.6838, h * 0.2072); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.8946, 0); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6812, h * 0.7247); + c.close(); + c.stroke(); + c.restore(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.3171, h * 0.1031); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.lineTo(w * 0.1054, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dInternetGateway.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setShadow(false); + c.setLineJoin('round'); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInternetGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.1054, h); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.1054, h); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.1054, h); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.1054, h); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.close(); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.3171, h * 0.1031); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.lineTo(w * 0.1054, h); + c.close(); + c.stroke(); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.7849, h * 0.5039); + c.arcTo(w * 0.0343, h * 0.0632, 0, 0, 1, w * 0.7481, h * 0.4796); + c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.7661, h * 0.3911); + c.arcTo(w * 0.06, h * 0.0681, 0, 0, 1, w * 0.7712, h * 0.3356); + c.arcTo(w * 0.0257, h * 0.0292, 0, 0, 1, w * 0.7952, h * 0.32); + c.arcTo(w * 0.1285, h * 0.1459, 0, 0, 1, w * 0.8166, h * 0.2461); + c.arcTo(w * 0.06, h * 0.0973, 0, 0, 1, w * 0.8595, h * 0.2238); + c.arcTo(w * 0.0514, h * 0.0973, 0, 0, 1, w * 0.8937, h * 0.2743); + c.arcTo(w * 0.0428, h * 0.0778, 0, 0, 1, w * 0.9323, h * 0.3093); + c.arcTo(w * 0.0686, h * 0.0778, 0, 0, 1, w * 0.928, h * 0.3716); + c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.8972, h * 0.4125); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dInternetGateway.prototype.cst.INTERNET_GATEWAY, mxShapeAws3dInternetGateway); + +function mxShapeAws3dOracleDataCenter(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dOracleDataCenter, mxShape); +mxShapeAws3dOracleDataCenter.prototype.cst = { + ORACLE_DATA_CENTER: 'mxgraph.aws3d.oracleDataCenter' +}; + +mxShapeAws3dOracleDataCenter.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 142; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dOracleDataCenter.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dOracleDataCenter.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + c.setAlpha('0.1'); + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + c.setAlpha('0.3'); + c.begin(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.setFillColor('#ff0000'); + c.begin(); + c.moveTo(0, h * 0.5866); + c.lineTo(w * 0.5, h * 0.8359); + c.lineTo(w, h * 0.5866); + c.lineTo(w, h * 0.6986); + c.lineTo(w * 0.5, h * 0.9486); + c.lineTo(0, h * 0.6986); + c.fill(); + c.setStrokeWidth(0.5 * strokeWidth); + c.setStrokeColor('#ffffff'); + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(0, h * 0.5866); + c.lineTo(w * 0.5, h * 0.8359); + c.lineTo(w, h * 0.5866); + c.moveTo(w, h * 0.6986); + c.lineTo(w * 0.5, h * 0.9486); + c.lineTo(0, h * 0.6986); + c.stroke(); + c.begin(); + c.moveTo(w * 0.0813, h * 0.7113); + c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.065, h * 0.6831); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.065, h * 0.6613); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.0797, h * 0.6549); + c.lineTo(w * 0.122, h * 0.6754); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.1358, h * 0.6937); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.139, h * 0.7232); + c.arcTo(w * 0.0179, h * 0.0155, 0, 0, 1, w * 0.1187, h * 0.7296); + c.close(); + c.moveTo(w * 0.1163, h * 0.7183); + c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.1285, h * 0.7148); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1293, h * 0.7021); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1179, h * 0.6831); + c.lineTo(w * 0.087, h * 0.6676); + c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.0764, h * 0.6697); + c.arcTo(w * 0.0325, h * 0.0352, 0, 0, 0, w * 0.078, h * 0.6937); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.087, h * 0.7035); + c.close(); + c.moveTo(w * 0.1439, h * 0.743); + c.lineTo(w * 0.1439, h * 0.6866); + c.lineTo(w * 0.1846, h * 0.707); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.1967, h * 0.7183); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2, h * 0.738); + c.arcTo(w * 0.0138, h * 0.0155, 0, 0, 1, w * 0.1813, h * 0.743); + c.lineTo(w * 0.1992, h * 0.769); + c.lineTo(w * 0.187, h * 0.7641); + c.lineTo(w * 0.1577, h * 0.7218); + c.lineTo(w * 0.1854, h * 0.7345); + c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.1911, h * 0.7317); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 0, w * 0.1894, h * 0.7225); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.1821, h * 0.7155); + c.lineTo(w * 0.1528, h * 0.7007); + c.lineTo(w * 0.1528, h * 0.7472); + c.close(); + c.moveTo(w * 0.2008, h * 0.7711); + c.lineTo(w * 0.2293, h * 0.7338); + c.arcTo(w * 0.0065, h * 0.0056, 0, 0, 1, w * 0.2382, h * 0.7324); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2431, h * 0.7415); + c.lineTo(w * 0.2699, h * 0.8035); + c.lineTo(w * 0.2602, h * 0.8007); + c.lineTo(w * 0.252, h * 0.7859); + c.lineTo(w * 0.2293, h * 0.7754); + c.lineTo(w * 0.2244, h * 0.7634); + c.lineTo(w * 0.248, h * 0.7739); + c.lineTo(w * 0.235, h * 0.7444); + c.lineTo(w * 0.2122, h * 0.7768); + c.close(); + c.moveTo(w * 0.3244, h * 0.8225); + c.lineTo(w * 0.3171, h * 0.8289); + c.lineTo(w * 0.2854, h * 0.8127); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2724, h * 0.7986); + c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.265, h * 0.7746); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2683, h * 0.762); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.2829, h * 0.757); + c.lineTo(w * 0.3228, h * 0.7761); + c.lineTo(w * 0.3179, h * 0.7831); + c.lineTo(w * 0.2878, h * 0.7683); + c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.2789, h * 0.7697); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.2748, h * 0.7831); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.2878, h * 0.8042); + c.close(); + c.moveTo(w * 0.3276, h * 0.7789); + c.lineTo(w * 0.3366, h * 0.7831); + c.lineTo(w * 0.3366, h * 0.8289); + c.lineTo(w * 0.3805, h * 0.8507); + c.lineTo(w * 0.3748, h * 0.857); + c.lineTo(w * 0.3317, h * 0.8359); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3276, h * 0.8275); + c.close(); + c.moveTo(w * 0.435, h * 0.8775); + c.lineTo(w * 0.4325, h * 0.8866); + c.lineTo(w * 0.3959, h * 0.8683); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.3862, h * 0.8563); + c.arcTo(w * 0.0528, h * 0.0458, 0, 0, 1, w * 0.3805, h * 0.8183); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3951, h * 0.8134); + c.lineTo(w * 0.435, h * 0.8324); + c.lineTo(w * 0.4285, h * 0.838); + c.lineTo(w * 0.4008, h * 0.8246); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.3878, h * 0.831); + c.lineTo(w * 0.4333, h * 0.8542); + c.lineTo(w * 0.426, h * 0.8606); + c.lineTo(w * 0.3878, h * 0.8415); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.3976, h * 0.8585); + c.close(); + c.moveTo(w * 0.6171, h * 0.8063); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.6366, h * 0.8092); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 1, w * 0.639, h * 0.8303); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.6211, h * 0.8592); + c.lineTo(w * 0.5894, h * 0.8761); + c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 1, w * 0.565, h * 0.8732); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.5659, h * 0.8458); + c.arcTo(w * 0.0488, h * 0.0422, 0, 0, 1, w * 0.5805, h * 0.8246); + c.close(); + c.moveTo(w * 0.5886, h * 0.8296); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.5748, h * 0.8472); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.574, h * 0.862); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.587, h * 0.8676); + c.lineTo(w * 0.6163, h * 0.8528); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.6285, h * 0.8359); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6293, h * 0.8225); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.6163, h * 0.8155); + c.close(); + c.moveTo(w * 0.64, h * 0.85); + c.lineTo(w * 0.64, h * 0.7930); + c.lineTo(w * 0.6854, h * 0.7718); + c.arcTo(w * 0.0106, h * 0.0092, 0, 0, 1, w * 0.7008, h * 0.7782); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6959, h * 0.8); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6805, h * 0.8127); + c.lineTo(w * 0.6992, h * 0.8218); + c.lineTo(w * 0.6854, h * 0.8282); + c.lineTo(w * 0.6569, h * 0.8141); + c.lineTo(w * 0.6805, h * 0.8021); + c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 0, w * 0.6894, h * 0.7923); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6894, h * 0.7845); + c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.6837, h * 0.7831); + c.lineTo(w * 0.6528, h * 0.7979); + c.lineTo(w * 0.6528, h * 0.8437); + c.close(); + c.moveTo(w * 0.7, h * 0.8204); + c.lineTo(w * 0.7301, h * 0.7507); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7358, h * 0.7444); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7415, h * 0.7486); + c.lineTo(w * 0.7699, h * 0.7852); + c.lineTo(w * 0.7602, h * 0.7908); + c.lineTo(w * 0.7537, h * 0.7838); + c.lineTo(w * 0.7276, h * 0.7958); + c.lineTo(w * 0.7228, h * 0.788); + c.lineTo(w * 0.748, h * 0.7768); + c.lineTo(w * 0.7358, h * 0.7585); + c.lineTo(w * 0.7114, h * 0.8155); + c.close(); + c.moveTo(w * 0.8244, h * 0.7486); + c.lineTo(w * 0.8171, h * 0.762); + c.lineTo(w * 0.7894, h * 0.7761); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 1, w * 0.7683, h * 0.7746); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.7667, h * 0.7507); + c.arcTo(w * 0.0488, h * 0.0423, 0, 0, 1, w * 0.7937, h * 0.7162); + c.lineTo(w * 0.822, h * 0.7035); + c.lineTo(w * 0.8171, h * 0.7155); + c.lineTo(w * 0.7902, h * 0.7296); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.778, h * 0.743); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.7756, h * 0.7606); + c.arcTo(w * 0.0077, h * 0.0067, 0, 0, 0, w * 0.787, h * 0.767); + c.close(); + c.moveTo(w * 0.8366, h * 0.6949); + c.lineTo(w * 0.8366, h * 0.7423); + c.lineTo(w * 0.878, h * 0.7231); + c.lineTo(w * 0.874, h * 0.7338); + c.lineTo(w * 0.8333, h * 0.7535); + c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 1, w * 0.8268, h * 0.75); + c.lineTo(w * 0.8268, h * 0.7007); + c.close(); + c.moveTo(w * 0.9342, h * 0.6472); + c.lineTo(w * 0.9293, h * 0.6599); + c.lineTo(w * 0.9033, h * 0.6725); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.8927, h * 0.6817); + c.arcTo(w * 0.0406, h * 0.0352, 0, 0, 0, w * 0.887, h * 0.6937); + c.lineTo(w * 0.9309, h * 0.6725); + c.lineTo(w * 0.9268, h * 0.6845); + c.lineTo(w * 0.887, h * 0.7035); + c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.8992, h * 0.7106); + c.lineTo(w * 0.935, h * 0.693); + c.lineTo(w * 0.9285, h * 0.7063); + c.lineTo(w * 0.9008, h * 0.7197); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.8829, h * 0.7204); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.8764, h * 0.7028); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.8959, h * 0.6669); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + c.restore(); + c.setShadow(false); + c.setStrokeWidth(3 * strokeWidth); + c.setLineCap('round'); + c.begin(); + c.moveTo(w * 0.0894, h * 0.3838); + c.lineTo(w * 0.4187, h * 0.5493); + c.moveTo(w * 0.0894, h * 0.4331); + c.lineTo(w * 0.4187, h * 0.5986); + c.moveTo(w * 0.0894, h * 0.4824); + c.lineTo(w * 0.4187, h * 0.6479); + c.moveTo(w * 0.5854, h * 0.5492); + c.lineTo(w * 0.9146, h * 0.3838); + c.moveTo(w * 0.5854, h * 0.5986); + c.lineTo(w * 0.9146, h * 0.4331); + c.moveTo(w * 0.5854, h * 0.6479); + c.lineTo(w * 0.9146, h * 0.4824); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dOracleDataCenter.prototype.cst.ORACLE_DATA_CENTER, mxShapeAws3dOracleDataCenter); + +function mxShapeAws3dOracleDatabaseServer(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dOracleDatabaseServer, mxShape); +mxShapeAws3dOracleDatabaseServer.prototype.cst = { + ORACLE_DB_SERVER: 'mxgraph.aws3d.oracleDbServer' +}; + +mxShapeAws3dOracleDatabaseServer.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 142; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dOracleDatabaseServer.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dOracleDatabaseServer.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + c.setAlpha('0.1'); + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.close(); + c.moveTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3308); + c.fill(); + c.setAlpha('0.3'); + c.begin(); + c.moveTo(w * 0.5, h); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w, h * 0.3308); + c.lineTo(w, h * 0.7331); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.setFillColor('#ff0000'); + c.begin(); + c.moveTo(0, h * 0.5586); + c.lineTo(w * 0.5, h * 0.8248); + c.lineTo(w, h * 0.5586); + c.lineTo(w, h * 0.6782); + c.lineTo(w * 0.5, h * 0.9453); + c.lineTo(0, h * 0.6782); + c.fill(); + c.setStrokeWidth(0.5 * strokeWidth); + c.setStrokeColor('#ffffff'); + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(0, h * 0.5586); + c.lineTo(w * 0.5, h * 0.8248); + c.lineTo(w, h * 0.5586); + c.moveTo(w, h * 0.6782); + c.lineTo(w * 0.5, h * 0.9453); + c.lineTo(0, h * 0.6782); + c.stroke(); + c.begin(); + c.moveTo(w * 0.0813, h * 0.6918); + c.arcTo(w * 0.0569, h * 0.0526, 0, 0, 1, w * 0.065, h * 0.6616); + c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.065, h * 0.6384); + c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.0797, h * 0.6315); + c.lineTo(w * 0.122, h * 0.6534); + c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.1358, h * 0.673); + c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.139, h * 0.7045); + c.arcTo(w * 0.0179, h * 0.0165, 0, 0, 1, w * 0.1187, h * 0.7113); + c.close(); + c.moveTo(w * 0.1163, h * 0.6992); + c.arcTo(w * 0.0089, h * 0.0082, 0, 0, 0, w * 0.1285, h * 0.6955); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.1293, h * 0.6819); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.1179, h * 0.6616); + c.lineTo(w * 0.087, h * 0.6451); + c.arcTo(w * 0.0081, h * 0.0075, 0, 0, 0, w * 0.0764, h * 0.6473); + c.arcTo(w * 0.0325, h * 0.0376, 0, 0, 0, w * 0.078, h * 0.673); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.087, h * 0.6834); + c.close(); + c.moveTo(w * 0.1439, h * 0.7256); + c.lineTo(w * 0.1439, h * 0.6654); + c.lineTo(w * 0.1846, h * 0.6872); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.1967, h * 0.6992); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2, h * 0.7203); + c.arcTo(w * 0.0138, h * 0.0165, 0, 0, 1, w * 0.1813, h * 0.7256); + c.lineTo(w * 0.1992, h * 0.7534); + c.lineTo(w * 0.187, h * 0.7481); + c.lineTo(w * 0.1577, h * 0.7029); + c.lineTo(w * 0.1854, h * 0.7165); + c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 0, w * 0.1911, h * 0.7135); + c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 0, w * 0.1894, h * 0.7037); + c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.1821, h * 0.6962); + c.lineTo(w * 0.1528, h * 0.6804); + c.lineTo(w * 0.1528, h * 0.7301); + c.close(); + c.moveTo(w * 0.2008, h * 0.7556); + c.lineTo(w * 0.2293, h * 0.7158); + c.arcTo(w * 0.0065, h * 0.006, 0, 0, 1, w * 0.2382, h * 0.7143); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2431, h * 0.724); + c.lineTo(w * 0.2699, h * 0.7902); + c.lineTo(w * 0.2602, h * 0.7872); + c.lineTo(w * 0.252, h * 0.7714); + c.lineTo(w * 0.2293, h * 0.7602); + c.lineTo(w * 0.2244, h * 0.7474); + c.lineTo(w * 0.248, h * 0.7586); + c.lineTo(w * 0.235, h * 0.7271); + c.lineTo(w * 0.2122, h * 0.7617); + c.close(); + c.moveTo(w * 0.3244, h * 0.8105); + c.lineTo(w * 0.3171, h * 0.8173); + c.lineTo(w * 0.2854, h * 0.8); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2724, h * 0.785); + c.arcTo(w * 0.0569, h * 0.0526, 0, 0, 1, w * 0.265, h * 0.7593); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2683, h * 0.7459); + c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.2829, h * 0.7405); + c.lineTo(w * 0.3228, h * 0.7609); + c.lineTo(w * 0.3179, h * 0.7684); + c.lineTo(w * 0.2878, h * 0.7526); + c.arcTo(w * 0.0081, h * 0.0075, 0, 0, 0, w * 0.2789, h * 0.7541); + c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.2748, h * 0.7684); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.2878, h * 0.7909); + c.close(); + c.moveTo(w * 0.3276, h * 0.7639); + c.lineTo(w * 0.3366, h * 0.7684); + c.lineTo(w * 0.3366, h * 0.8173); + c.lineTo(w * 0.3805, h * 0.8406); + c.lineTo(w * 0.3748, h * 0.8473); + c.lineTo(w * 0.3317, h * 0.8248); + c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.3276, h * 0.8158); + c.close(); + c.moveTo(w * 0.435, h * 0.8692); + c.lineTo(w * 0.4325, h * 0.8789); + c.lineTo(w * 0.3959, h * 0.8594); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.3862, h * 0.8466); + c.arcTo(w * 0.0528, h * 0.0489, 0, 0, 1, w * 0.3805, h * 0.806); + c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.3951, h * 0.8008); + c.lineTo(w * 0.435, h * 0.821); + c.lineTo(w * 0.4285, h * 0.827); + c.lineTo(w * 0.4008, h * 0.8127); + c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.3878, h * 0.8196); + c.lineTo(w * 0.4333, h * 0.8443); + c.lineTo(w * 0.426, h * 0.8512); + c.lineTo(w * 0.3878, h * 0.8308); + c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.3976, h * 0.8489); + c.close(); + c.moveTo(w * 0.6171, h * 0.7932); + c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.6366, h * 0.7963); + c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 1, w * 0.639, h * 0.8188); + c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.6211, h * 0.8497); + c.lineTo(w * 0.5894, h * 0.8677); + c.arcTo(w * 0.0203, h * 0.0188, 0, 0, 1, w * 0.565, h * 0.8646); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.5659, h * 0.8354); + c.arcTo(w * 0.0488, h * 0.0451, 0, 0, 1, w * 0.5805, h * 0.8127); + c.close(); + c.moveTo(w * 0.5886, h * 0.8181); + c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.5748, h * 0.8368); + c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.574, h * 0.8527); + c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.587, h * 0.8586); + c.lineTo(w * 0.6163, h * 0.8428); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.6285, h * 0.8248); + c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.6293, h * 0.8105); + c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.6163, h * 0.803); + c.close(); + c.moveTo(w * 0.64, h * 0.8398); + c.lineTo(w * 0.64, h * 0.779); + c.lineTo(w * 0.6854, h * 0.7563); + c.arcTo(w * 0.0106, h * 0.0098, 0, 0, 1, w * 0.7008, h * 0.7632); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.6959, h * 0.7865); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.6805, h * 0.8); + c.lineTo(w * 0.6992, h * 0.8097); + c.lineTo(w * 0.6854, h * 0.8166); + c.lineTo(w * 0.6569, h * 0.8015); + c.lineTo(w * 0.6805, h * 0.7887); + c.arcTo(w * 0.0203, h * 0.0188, 0, 0, 0, w * 0.6894, h * 0.7782); + c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.6894, h * 0.7699); + c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 0, w * 0.6837, h * 0.7684); + c.lineTo(w * 0.6528, h * 0.7842); + c.lineTo(w * 0.6528, h * 0.8331); + c.close(); + c.moveTo(w * 0.7, h * 0.8082); + c.lineTo(w * 0.7301, h * 0.7338); + c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 1, w * 0.7358, h * 0.7271); + c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 1, w * 0.7415, h * 0.7316); + c.lineTo(w * 0.7699, h * 0.7707); + c.lineTo(w * 0.7602, h * 0.7766); + c.lineTo(w * 0.7537, h * 0.7692); + c.lineTo(w * 0.7276, h * 0.782); + c.lineTo(w * 0.7228, h * 0.7736); + c.lineTo(w * 0.748, h * 0.7617); + c.lineTo(w * 0.7358, h * 0.7421); + c.lineTo(w * 0.7114, h * 0.803); + c.close(); + c.moveTo(w * 0.8244, h * 0.7316); + c.lineTo(w * 0.8171, h * 0.7459); + c.lineTo(w * 0.7894, h * 0.7609); + c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 1, w * 0.7683, h * 0.7593); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.7667, h * 0.7338); + c.arcTo(w * 0.0488, h * 0.0452, 0, 0, 1, w * 0.7937, h * 0.697); + c.lineTo(w * 0.822, h * 0.6834); + c.lineTo(w * 0.8171, h * 0.6962); + c.lineTo(w * 0.7902, h * 0.7113); + c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.778, h * 0.7256); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.7756, h * 0.7444); + c.arcTo(w * 0.0077, h * 0.0072, 0, 0, 0, w * 0.787, h * 0.7512); + c.close(); + c.moveTo(w * 0.8366, h * 0.6742); + c.lineTo(w * 0.8366, h * 0.7248); + c.lineTo(w * 0.878, h * 0.7043); + c.lineTo(w * 0.874, h * 0.7158); + c.lineTo(w * 0.8333, h * 0.7368); + c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 1, w * 0.8268, h * 0.7324); + c.lineTo(w * 0.8268, h * 0.6804); + c.close(); + c.moveTo(w * 0.9342, h * 0.6233); + c.lineTo(w * 0.9293, h * 0.6369); + c.lineTo(w * 0.9033, h * 0.6503); + c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.8927, h * 0.6601); + c.arcTo(w * 0.0406, h * 0.0376, 0, 0, 0, w * 0.887, h * 0.6729); + c.lineTo(w * 0.9309, h * 0.6503); + c.lineTo(w * 0.9268, h * 0.6631); + c.lineTo(w * 0.887, h * 0.6834); + c.arcTo(w * 0.0089, h * 0.0082, 0, 0, 0, w * 0.8992, h * 0.691); + c.lineTo(w * 0.935, h * 0.6722); + c.lineTo(w * 0.9285, h * 0.6864); + c.lineTo(w * 0.9008, h * 0.7007); + c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.8829, h * 0.7015); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.8764, h * 0.6827); + c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.8959, h * 0.6443); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.moveTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.267); + c.moveTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.moveTo(w, h * 0.3346); + c.lineTo(w * 0.87, h * 0.267); + c.moveTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.622, h * 0.4023); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dOracleDatabaseServer.prototype.cst.ORACLE_DB_SERVER, mxShapeAws3dOracleDatabaseServer); + +function mxShapeAws3dRdsMaster(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dRdsMaster, mxShape); +mxShapeAws3dRdsMaster.prototype.cst = { + RDS_MASTER: 'mxgraph.aws3d.rdsMaster', + SHADIG_COLORS: 'shadingCols' +}; + +mxShapeAws3dRdsMaster.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 133; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dRdsMaster.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dRdsMaster.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRdsMaster.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.close(); + c.moveTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3308); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w, h * 0.3308); + c.lineTo(w, h * 0.7331); + c.close(); + c.fill(); + c.restore(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.1878, h * 0.1932); + c.lineTo(w * 0.4854, h * 0.0414); + c.lineTo(w * 0.5886, h * 0.094); + c.lineTo(w * 0.4455, h * 0.2308); + c.lineTo(w * 0.7122, h * 0.1579); + c.lineTo(w * 0.8171, h * 0.2098); + c.lineTo(w * 0.5187, h * 0.3617); + c.lineTo(w * 0.4537, h * 0.3293); + c.lineTo(w * 0.7016, h * 0.2053); + c.lineTo(w * 0.3854, h * 0.2947); + c.lineTo(w * 0.3187, h * 0.2602); + c.lineTo(w * 0.4959, h * 0.0992); + c.lineTo(w * 0.2504, h * 0.2256); + c.close(); + c.fill(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.moveTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.267); + c.moveTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.moveTo(w, h * 0.3346); + c.lineTo(w * 0.87, h * 0.267); + c.moveTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.622, h * 0.4023); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dRdsMaster.prototype.cst.RDS_MASTER, mxShapeAws3dRdsMaster); + +function mxShapeAws3dRds(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dRds, mxShape); +mxShapeAws3dRds.prototype.cst = { + RDS: 'mxgraph.aws3d.rds', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dRds.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 133; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dRds.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dRds.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRds.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.close(); + c.moveTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3308); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w, h * 0.3308); + c.lineTo(w, h * 0.7331); + c.close(); + c.fill(); + c.restore(); + c.setFillColor('#ffffff'); + c.setShadow(false); + c.begin(); + c.moveTo(0, h * 0.6053); + c.lineTo(w * 0.5, h * 0.8722); + c.lineTo(w, h * 0.6053); + c.lineTo(w, h * 0.6278); + c.lineTo(w * 0.5, h * 0.8947); + c.lineTo(0, h * 0.6278); + c.close(); + c.fill(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.moveTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.267); + c.moveTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.moveTo(w, h * 0.3346); + c.lineTo(w * 0.87, h * 0.267); + c.moveTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.622, h * 0.4023); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dRds.prototype.cst.RDS, mxShapeAws3dRds); + +function mxShapeAws3dRoute53(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dRoute53, mxShape); +mxShapeAws3dRoute53.prototype.cst = { + ROUTE_53: 'mxgraph.aws3d.route53', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dRoute53.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 117; + var strokeWidth2 = strokeWidth * h / 134.4; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dRoute53.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.6994); + c.lineTo(0, h * 0.2009); + c.lineTo(w * 0.0427, h * 0.0781); + c.lineTo(w * 0.7974, 0); + c.lineTo(w, h * 0.1004); + c.lineTo(w, h * 0.5915); + c.lineTo(w * 0.8376, h * 0.9784); + c.lineTo(w * 0.5983, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dRoute53.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRoute53.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.2009); + c.lineTo(w * 0.6009, h * 0.5007); + c.lineTo(w * 0.8376, h * 0.4799); + c.lineTo(w * 0.8376, h * 0.9784); + c.lineTo(w * 0.5966, h); + c.lineTo(0, h * 0.6979); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.8348, h * 0.4861); + c.lineTo(w * 0.9985, h * 0.0992); + c.lineTo(w, h * 0.5952); + c.lineTo(w * 0.8404, h * 0.9747); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.5855, h * 0.1079); + c.arcTo(w * 0.094, h * 0.0744, 0, 0, 0, w * 0.6863, h * 0.1548); + c.arcTo(w * 0.0855, h * 0.0446, 0, 0, 0, w * 0.7761, h * 0.2031); + c.lineTo(w * 0.7726, h * 0.2455); + c.arcTo(w * 0.0769, h * 0.0298, 0, 0, 0, w * 0.694, h * 0.2693); + c.arcTo(w * 0.0684, h * 0.0446, 0, 0, 1, w * 0.5897, h * 0.3051); + c.arcTo(w * 0.4274, h * 0.372, 0, 0, 0, w * 0.4573, h * 0.2753); + c.arcTo(w * 0.0855, h * 0.0744, 0, 0, 0, w * 0.4188, h * 0.2344); + c.lineTo(w * 0.3846, h * 0.2083); + c.arcTo(w * 0.0769, h * 0.0372, 0, 0, 1, w * 0.4103, h * 0.1525); + c.arcTo(w * 0.0855, h * 0.0409, 0, 0, 0, w * 0.4906, h * 0.1079); + c.close(); + c.fill(); + c.begin(); + c.moveTo(0, h * 0.2009); + c.lineTo(w * 0.6009, h * 0.5007); + c.lineTo(w * 0.8376, h * 0.4799); + c.lineTo(w * 0.8376, h * 0.9784); + c.lineTo(w * 0.5966, h); + c.lineTo(0, h * 0.6979); + c.close(); + c.moveTo(w * 0.8348, h * 0.4861); + c.lineTo(w * 0.9985, h * 0.0992); + c.lineTo(w, h * 0.5952); + c.lineTo(w * 0.8404, h * 0.9747); + c.close(); + c.moveTo(w * 0.6009, h * 0.5007); + c.lineTo(w * 0.6009, h); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(0, h * 0.6994); + c.lineTo(0, h * 0.2009); + c.lineTo(w * 0.0427, h * 0.0781); + c.lineTo(w * 0.7974, 0); + c.lineTo(w, h * 0.1004); + c.lineTo(w, h * 0.5915); + c.lineTo(w * 0.8376, h * 0.9784); + c.lineTo(w * 0.5983, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dRoute53.prototype.cst.ROUTE_53, mxShapeAws3dRoute53); + +function mxShapeAws3dS3Bucket(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dS3Bucket, mxShape); +mxShapeAws3dS3Bucket.prototype.cst = { + S3_BUCKET: 'mxgraph.aws3d.s3Bucket', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dS3Bucket.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 61.5; + var strokeWidth2 = strokeWidth * h / 63.8; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.2774); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.2774); + c.lineTo(w * 0.7967, h * 0.8307); + c.lineTo(w * 0.5, h); + c.lineTo(w * 0.1951, h * 0.8307); + c.close(); + c.fillAndStroke(); + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dS3Bucket.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.2774); + c.lineTo(w * 0.5, h * 0.5564); + c.lineTo(w * 0.5, h); + c.lineTo(w * 0.1984, h * 0.8307); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h * 0.5533); + c.lineTo(w, h * 0.2774); + c.lineTo(w * 0.7967, h * 0.8307); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.2774); + c.lineTo(w * 0.5, h * 0.5564); + c.lineTo(w, h * 0.2774); + c.stroke(); + c.begin(); + c.moveTo(w * 0.5, h * 0.5564); + c.lineTo(w * 0.5, h); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.2774); + c.lineTo(w * 0.5008, 0); + c.lineTo(w, h * 0.2774); + c.lineTo(w * 0.7967, h * 0.8307); + c.lineTo(w * 0.5008, h); + c.lineTo(w * 0.1951, h * 0.8307); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dS3Bucket.prototype.cst.S3_BUCKET, mxShapeAws3dS3Bucket); + +function mxShapeAws3dS3(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dS3, mxShape); +mxShapeAws3dS3.prototype.cst = { + S3: 'mxgraph.aws3d.s3', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dS3.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 231.5; + var strokeWidth2 = strokeWidth * h / 239; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dS3.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7782); + c.lineTo(0, h * 0.3406); + c.lineTo(w * 0.5974, 0); + c.lineTo(w, h * 0.2218); + c.lineTo(w, h * 0.6674); + c.lineTo(w * 0.3991, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dS3.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dS3.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.3406); + c.lineTo(w * 0.3991, h * 0.5548); + c.lineTo(w * 0.3991, h); + c.lineTo(0, h * 0.7782); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.3991, h * 0.5548); + c.lineTo(w, h * 0.2218); + c.lineTo(w, h * 0.6661); + c.lineTo(w * 0.3991, h); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.3406); + c.lineTo(w * 0.3991, h * 0.5548); + c.lineTo(w, h * 0.2218); + c.moveTo(w * 0.3991, h * 0.5548); + c.lineTo(w * 0.3991, h); + c.moveTo(w * 0.3991, h * 0.3335); + c.lineTo(w * 0.2009, h * 0.448); + c.lineTo(w * 0.2009, h * 0.8891); + c.moveTo(w * 0.5983, h * 0.2209); + c.lineTo(w * 0.7948, h * 0.1109); + c.moveTo(w * 0.2022, h * 0.2218); + c.lineTo(w * 0.5991, h * 0.4448); + c.lineTo(w * 0.5991, h * 0.8891); + c.moveTo(w * 0.4004, h * 0.1117); + c.lineTo(w * 0.7978, h * 0.3335); + c.lineTo(w * 0.7978, h * 0.7791); + c.stroke(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.4773, h * 0.2155); + c.arcTo(w * 0.0086, h * 0.0046, 0, 0, 1, w * 0.4903, h * 0.2096); + c.arcTo(w * 0.2808, h * 0.272, 0, 0, 1, w * 0.6004, h * 0.2619); + c.arcTo(w * 0.108, h * 0.105, 0, 0, 1, w * 0.6177, h * 0.277); + c.arcTo(w * 0.0065, h * 0.0063, 0, 0, 1, w * 0.6099, h * 0.2879); + c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.5378, h * 0.2607); + c.arcTo(w * 0.216, h * 0.2092, 0, 0, 1, w * 0.4773, h * 0.2155); + c.close(); + c.fill(); + c.begin(); + c.moveTo(w * 0.4687, h * 0.2138); + c.arcTo(w * 0.1512, h * 0.1464, 0, 0, 0, w * 0.4838, h * 0.2343); + c.arcTo(w * 0.2376, h * 0.2301, 0, 0, 0, w * 0.5529, h * 0.2774); + c.arcTo(w * 0.1728, h * 0.1674, 0, 0, 0, w * 0.6091, h * 0.2954); + c.lineTo(w * 0.4946, h * 0.3339); + c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.4549, h * 0.3205); + c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.419, h * 0.3004); + c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.3965, h * 0.2795); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7782); + c.lineTo(0, h * 0.3406); + c.lineTo(w * 0.5974, 0); + c.lineTo(w, h * 0.2218); + c.lineTo(w, h * 0.6674); + c.lineTo(w * 0.3991, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dS3.prototype.cst.S3, mxShapeAws3dS3); + +function mxShapeAws3dSimpleDB(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dSimpleDB, mxShape); +mxShapeAws3dSimpleDB.prototype.cst = { + SIMPLE_DB: 'mxgraph.aws3d.simpleDb', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dSimpleDB.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 133; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dSimpleDB.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dSimpleDB.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSimpleDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.close(); + c.moveTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3308); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w, h * 0.3308); + c.lineTo(w, h * 0.7331); + c.close(); + c.fill(); + c.restore(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.1821, h * 0.182); + c.lineTo(w * 0.4659, h * 0.0308); + c.lineTo(w * 0.822, h * 0.2218); + c.lineTo(w * 0.539, h * 0.3714); + c.close(); + c.fill(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.moveTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.267); + c.moveTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.moveTo(w, h * 0.3346); + c.lineTo(w * 0.87, h * 0.267); + c.moveTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.622, h * 0.4023); + c.stroke(); + c.restore(); + c.setShadow(false); + var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff'); + c.setStrokeColor(fillColor); + c.setStrokeWidth(2.2 * strokeWidth); + c.begin(); + c.moveTo(w * 0.2382, h * 0.2218); + c.lineTo(w * 0.5415, h * 0.0602); + c.moveTo(w * 0.3821, h * 0.0564); + c.lineTo(w * 0.7737, h * 0.2656); + c.moveTo(w * 0.2967, h * 0.0915); + c.lineTo(w * 0.7114, h * 0.312); + c.moveTo(w * 0.2209, h * 0.1316); + c.lineTo(w * 0.6179, h * 0.3434); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dSimpleDB.prototype.cst.SIMPLE_DB, mxShapeAws3dSimpleDB); + +function mxShapeAws3dSqs(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dSqs, mxShape); +mxShapeAws3dSqs.prototype.cst = { + SQS: 'mxgraph.aws3d.sqs', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dSqs.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 184; + var strokeWidth2 = strokeWidth * h / 212.75; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dSqs.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7485); + c.lineTo(0, h * 0.584); + c.lineTo(w * 0.1658, h * 0.1666); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.8337, h * 0.1666); + c.lineTo(w, h * 0.584); + c.lineTo(w, h * 0.7485); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dSqs.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSqs.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.1658, h * 0.1671); + c.lineTo(w * 0.5, h * 0.334); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7485); + c.lineTo(0, h * 0.584); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h * 0.3344); + c.lineTo(w * 0.8332, h * 0.1671); + c.lineTo(w, h * 0.584); + c.lineTo(w, h * 0.7509); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.6674, h * 0.0844); + c.lineTo(w * 0.3337, h * 0.2512); + c.lineTo(w * 0.25, h * 0.7109); + c.lineTo(w * 0.25, h * 0.8736); + c.moveTo(w * 0.3326, h * 0.0839); + c.lineTo(w * 0.6674, h * 0.2512); + c.lineTo(w * 0.75, h * 0.7053); + c.lineTo(w * 0.75, h * 0.874); + c.moveTo(0, h * 0.584); + c.lineTo(w * 0.5, h * 0.8331); + c.lineTo(w, h * 0.584); + c.moveTo(w * 0.1658, h * 0.1671); + c.lineTo(w * 0.5, h * 0.334); + c.lineTo(w * 0.8332, h * 0.1671); + c.moveTo(w * 0.5, h * 0.334); + c.lineTo(w * 0.5, h); + c.stroke(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.3337, h * 0.1511); + c.lineTo(w * 0.4668, h * 0.0848); + c.lineTo(w * 0.6663, h * 0.184); + c.lineTo(w * 0.5337, h * 0.2503); + c.close(); + c.fill(); + var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#000000'); + c.setFillColor(fillColor); + c.begin(); + c.moveTo(w * 0.3902, h * 0.153); + c.lineTo(w * 0.4701, h * 0.113); + c.lineTo(w * 0.4701, h * 0.153); + c.close(); + c.moveTo(w * 0.4402, h * 0.1784); + c.lineTo(w * 0.5196, h * 0.1384); + c.lineTo(w * 0.5196, h * 0.1784); + c.close(); + c.moveTo(w * 0.4908, h * 0.2033); + c.lineTo(w * 0.5701, h * 0.1633); + c.lineTo(w * 0.5701, h * 0.2033); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7485); + c.lineTo(0, h * 0.584); + c.lineTo(w * 0.1658, h * 0.1666); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.8337, h * 0.1666); + c.lineTo(w, h * 0.584); + c.lineTo(w, h * 0.7485); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dSqs.prototype.cst.SQS, mxShapeAws3dSqs); + +function mxShapeAws3dVpcGateway(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dVpcGateway, mxShape); +mxShapeAws3dVpcGateway.prototype.cst = { + VPC_GATEWAY: 'mxgraph.aws3d.vpcGateway', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dVpcGateway.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 116.7; + var strokeWidth2 = strokeWidth * h / 102.8; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dVpcGateway.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.5801, h * 0.5447); + c.lineTo(w * 0.5801, h * 0.035); + c.lineTo(w * 0.1054, 0); + c.lineTo(0, h * 0.0691); + c.lineTo(0, h * 0.4134); + c.lineTo(w * 0.3188, h * 0.7247); + c.close(); + c.fillAndStroke(); + c.restore(); + c.save(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dVpcGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5801, h * 0.5447); + c.lineTo(w * 0.5801, h * 0.035); + c.lineTo(w * 0.3162, h * 0.2072); + c.lineTo(w * 0.3162, h * 0.7247); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.3162, h * 0.2072); + c.lineTo(0, h * 0.0691); + c.lineTo(0, h * 0.4134); + c.lineTo(w * 0.3162, h * 0.7247); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.5801, h * 0.5447); + c.lineTo(w * 0.5801, h * 0.035); + c.lineTo(w * 0.3162, h * 0.2072); + c.lineTo(w * 0.3162, h * 0.7247); + c.close(); + c.stroke(); + c.restore(); + c.setLineJoin('round'); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.3162, h * 0.2072); + c.lineTo(0, h * 0.0691); + c.lineTo(0, h * 0.4134); + c.lineTo(w * 0.3162, h * 0.7247); + c.close(); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(w * 0.5801, h * 0.5447); + c.lineTo(w * 0.5801, h * 0.035); + c.lineTo(w * 0.1054, 0); + c.lineTo(0, h * 0.0691); + c.lineTo(0, h * 0.4134); + c.lineTo(w * 0.3188, h * 0.7247); + c.close(); + c.stroke(); + c.restore(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w, h * 0.929); + c.lineTo(w, h * 0.5866); + c.lineTo(w * 0.6829, h * 0.1031); + c.lineTo(w * 0.4216, h * 0.2753); + c.lineTo(w * 0.4216, h * 0.7928); + c.lineTo(w * 0.8946, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dVpcGateway.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setShadow(false); + c.setLineJoin('round'); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dVpcGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w, h * 0.929); + c.lineTo(w, h * 0.5866); + c.lineTo(w * 0.8946, h * 0.6537); + c.lineTo(w * 0.8946, h); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.8946, h); + c.lineTo(w * 0.8946, h * 0.6537); + c.lineTo(w * 0.4216, h * 0.2753); + c.lineTo(w * 0.4216, h * 0.7928); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w, h * 0.929); + c.lineTo(w, h * 0.5866); + c.lineTo(w * 0.8946, h * 0.6537); + c.lineTo(w * 0.8946, h); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.8946, h); + c.lineTo(w * 0.8946, h * 0.6537); + c.lineTo(w * 0.4216, h * 0.2753); + c.lineTo(w * 0.4216, h * 0.7928); + c.close(); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w, h * 0.929); + c.lineTo(w, h * 0.5866); + c.lineTo(w * 0.6829, h * 0.1031); + c.lineTo(w * 0.4216, h * 0.2753); + c.lineTo(w * 0.4216, h * 0.7928); + c.lineTo(w * 0.8946, h); + c.close(); + c.stroke(); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.5587, h * 0.7743); + c.lineTo(w * 0.5587, h * 0.6274); + c.lineTo(w * 0.5775, h * 0.6342); + c.lineTo(w * 0.5775, h * 0.57); + c.arcTo(w * 0.0428, h * 0.0486, 0, 0, 1, w * 0.6058, h * 0.5253); + c.arcTo(w * 0.0686, h * 0.0778, 0, 0, 1, w * 0.6564, h * 0.5447); + c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.6847, h * 0.607); + c.lineTo(w * 0.6847, h * 0.6877); + c.lineTo(w * 0.7001, h * 0.6946); + c.lineTo(w * 0.7001, h * 0.8405); + c.close(); + c.moveTo(w * 0.6564, h * 0.6741); + c.lineTo(w * 0.6564, h * 0.6177); + c.arcTo(w * 0.06, h * 0.0681, 0, 0, 0, w * 0.6392, h * 0.57); + c.arcTo(w * 0.0343, h * 0.0389, 0, 0, 0, w * 0.6195, h * 0.5574); + c.arcTo(w * 0.0111, h * 0.0126, 0, 0, 0, w * 0.6058, h * 0.5691); + c.lineTo(w * 0.6058, h * 0.6498); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dVpcGateway.prototype.cst.VPC_GATEWAY, mxShapeAws3dVpcGateway); + +function mxShapeAws3dWebServer(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dWebServer, mxShape); +mxShapeAws3dWebServer.prototype.cst = { + WEB_SERVER: 'mxgraph.aws3d.webServer', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dWebServer.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 106; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dWebServer.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.6651); + c.lineTo(0, h * 0.3349); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3349); + c.lineTo(w, h * 0.6651); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dWebServer.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWebServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.3349); + c.lineTo(w * 0.5, h * 0.6651); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.6651); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h * 0.6651); + c.lineTo(w, h * 0.3349); + c.lineTo(w, h * 0.6651); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.3349); + c.lineTo(w * 0.5, h * 0.6651); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.6651); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.5, h * 0.6651); + c.lineTo(w, h * 0.3349); + c.lineTo(w, h * 0.6651); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.374, h * 0.5189); + c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.374, h * 0.4858); + c.lineTo(w * 0.4797, h * 0.4151); + c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.5203, h * 0.4151); + c.lineTo(w * 0.626, h * 0.4858); + c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.626, h * 0.516); + c.lineTo(w * 0.5203, h * 0.5868); + c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.4797, h * 0.5868); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.6651); + c.lineTo(0, h * 0.3349); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3349); + c.lineTo(w, h * 0.6651); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dWebServer.prototype.cst.WEB_SERVER, mxShapeAws3dWebServer); + +function mxShapeAws3dDynamoDB(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dDynamoDB, mxShape); +mxShapeAws3dDynamoDB.prototype.cst = { + DYNAMO_DB: 'mxgraph.aws3d.dynamoDb', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dDynamoDB.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 181.5; + var strokeWidth2 = strokeWidth * h / 210; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dDynamoDB.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.8333); + c.lineTo(0, h * 0.1667); + c.lineTo(w * 0.3333, h * 0.0014); + c.lineTo(w * 0.4986, h * 0.1667); + c.lineTo(w * 0.6639, 0); + c.lineTo(w, h * 0.169); + c.lineTo(w, h * 0.8333); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5014, h * 0.9162); + c.lineTo(w * 0.3333, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dDynamoDB.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDynamoDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.168, h * 0.3333); + c.lineTo(0, h * 0.3333); + c.lineTo(w * 0.3333, h * 0.5); + c.lineTo(w * 0.3333, h); + c.lineTo(0, h * 0.8333); + c.lineTo(0, h * 0.1714); + c.close(); + c.moveTo(w * 0.4986, h * 0.1667); + c.lineTo(w * 0.6667, 0); + c.lineTo(w, h * 0.169); + c.lineTo(w * 0.832, h * 0.3348); + c.lineTo(w, h * 0.3333); + c.lineTo(w * 0.6667, h * 0.5); + c.lineTo(w * 0.5014, h * 0.5); + c.lineTo(w * 0.832, h * 0.3348); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.3333, h * 0.5); + c.lineTo(w * 0.4986, h * 0.5); + c.lineTo(w * 0.4986, h * 0.9162); + c.lineTo(w * 0.3333, h); + c.close(); + c.moveTo(w * 0.6667, h); + c.lineTo(w * 0.6667, h * 0.5); + c.lineTo(w, h * 0.3333); + c.lineTo(w * 0.832, h * 0.3348); + c.lineTo(w, h * 0.169); + c.lineTo(w, h * 0.831); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.168, h * 0.3333); + c.lineTo(0, h * 0.3333); + c.lineTo(w * 0.3333, h * 0.5); + c.lineTo(w * 0.3333, h); + c.lineTo(0, h * 0.8333); + c.lineTo(0, h * 0.1714); + c.close(); + c.moveTo(w * 0.4986, h * 0.1667); + c.lineTo(w * 0.6667, 0); + c.lineTo(w, h * 0.169); + c.lineTo(w * 0.832, h * 0.3348); + c.lineTo(w, h * 0.3333); + c.lineTo(w * 0.6667, h * 0.5); + c.lineTo(w * 0.5014, h * 0.5); + c.lineTo(w * 0.832, h * 0.3348); + c.close(); + c.moveTo(w * 0.3333, h * 0.5); + c.lineTo(w * 0.4986, h * 0.5); + c.lineTo(w * 0.4986, h * 0.9162); + c.lineTo(w * 0.3333, h); + c.close(); + c.moveTo(w * 0.6667, h); + c.lineTo(w * 0.6667, h * 0.5); + c.lineTo(w, h * 0.3333); + c.lineTo(w, h * 0.831); + c.close(); + c.moveTo(w * 0.168, h * 0.3333); + c.lineTo(w * 0.5, h * 0.1667); + c.moveTo(w * 0.168, h * 0.3333); + c.lineTo(w * 0.5014, h * 0.5); + c.stroke(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.4876, h * 0.2262); + c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.5647, h * 0.25); + c.arcTo(w * 0.4407, h * 0.381, 0, 0, 1, w * 0.6419, h * 0.2905); + c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.6799, h * 0.32); + c.arcTo(w * 0.0132, h * 0.0076, 0, 0, 1, w * 0.6634, h * 0.3314); + c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.5978, h * 0.3119); + c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.508, h * 0.2667); + c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.4711, h * 0.2343); + c.arcTo(w * 0.0132, h * 0.0076, 0, 0, 1, w * 0.4876, h * 0.2262); + c.close(); + c.fill(); + c.begin(); + c.moveTo(w * 0.5124, h * 0.4143); + c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 1, w * 0.4683, h * 0.4095); + c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.3829, h * 0.3757); + c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.3196, h * 0.3371); + c.arcTo(w * 0.0661, h * 0.0357, 0, 0, 1, w * 0.3058, h * 0.3081); + c.lineTo(w * 0.4612, h * 0.2333); + c.arcTo(w * 0.0661, h * 0.0476, 0, 0, 0, w * 0.4744, h * 0.2548); + c.arcTo(w * 0.3306, h * 0.2857, 0, 0, 0, w * 0.53, h * 0.2905); + c.arcTo(w * 0.4408, h * 0.381, 0, 0, 0, w * 0.6198, h * 0.3295); + c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.665, h * 0.3367); + c.close(); + c.moveTo(w * 0.5052, h * 0.3714); + c.arcTo(w * 0.0275, h * 0.019, 0, 0, 1, w * 0.5135, h * 0.3581); + c.arcTo(w * 0.0275, h * 0.0238, 0, 0, 1, w * 0.5344, h * 0.3571); + c.lineTo(w * 0.5405, h * 0.3471); + c.arcTo(w * 0.0275, h * 0.0143, 0, 0, 1, w * 0.5278, h * 0.3381); + c.arcTo(w * 0.022, h * 0.0119, 0, 0, 1, w * 0.5372, h * 0.3271); + c.lineTo(w * 0.5306, h * 0.3186); + c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.5041, h * 0.3143); + c.arcTo(w * 0.0275, h * 0.0143, 0, 0, 1, w * 0.4975, h * 0.3029); + c.lineTo(w * 0.4777, h * 0.2995); + c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4628, h * 0.3033); + c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4408, h * 0.2967); + c.lineTo(w * 0.4187, h * 0.3); + c.arcTo(w * 0.011, h * 0.0081, 0, 0, 1, w * 0.4132, h * 0.3124); + c.arcTo(w * 0.0386, h * 0.0333, 0, 0, 1, w * 0.395, h * 0.3129); + c.lineTo(w * 0.3873, h * 0.3224); + c.arcTo(w * 0.0165, h * 0.0143, 0, 0, 1, w * 0.3994, h * 0.3333); + c.arcTo(w * 0.0138, h * 0.0119, 0, 0, 1, w * 0.3901, h * 0.3433); + c.lineTo(w * 0.3994, h * 0.3514); + c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4215, h * 0.3548); + c.arcTo(w * 0.0165, h * 0.0119, 0, 0, 1, w * 0.4298, h * 0.3667); + c.lineTo(w * 0.449, h * 0.3714); + c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4711, h * 0.3657); + c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4887, h * 0.3724); + c.close(); + c.moveTo(w * 0.4986, h * 0.351); + c.arcTo(w * 0.0441, h * 0.0381, 0, 0, 1, w * 0.4804, h * 0.3552); + c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 1, w * 0.443, h * 0.349); + c.lineTo(w * 0.4413, h * 0.3529); + c.lineTo(w * 0.4242, h * 0.3371); + c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4545, h * 0.3462); + c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4793, h * 0.3476); + c.arcTo(w * 0.0441, h * 0.0381, 0, 0, 0, w * 0.4986, h * 0.3448); + c.close(); + c.moveTo(w * 0.503, h * 0.3349); + c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4766, h * 0.3233); + c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 0, w * 0.4529, h * 0.32); + c.arcTo(w * 0.0551, h * 0.0476, 0, 0, 0, w * 0.4325, h * 0.3238); + c.lineTo(w * 0.427, h * 0.3195); + c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 1, w * 0.4556, h * 0.3157); + c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 1, w * 0.4851, h * 0.3232); + c.lineTo(w * 0.4876, h * 0.3181); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.8333); + c.lineTo(0, h * 0.1667); + c.lineTo(w * 0.3333, h * 0.0014); + c.lineTo(w * 0.4986, h * 0.1667); + c.lineTo(w * 0.6639, 0); + c.lineTo(w, h * 0.169); + c.lineTo(w, h * 0.8333); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5014, h * 0.9162); + c.lineTo(w * 0.3333, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dDynamoDB.prototype.cst.DYNAMO_DB, mxShapeAws3dDynamoDB); + +function mxShapeAws3dElasticMapReduce(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dElasticMapReduce, mxShape); +mxShapeAws3dElasticMapReduce.prototype.cst = { + ELASTIC_MAP_REDUCE: 'mxgraph.aws3d.elasticMapReduce', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dElasticMapReduce.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 133; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dElasticMapReduce.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dElasticMapReduce.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDynamoDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.close(); + c.moveTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3308); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w, h * 0.3308); + c.lineTo(w, h * 0.7331); + c.close(); + c.fill(); + c.restore(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.3336, h * 0.1789); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.359, h * 0.1789); + c.lineTo(w * 0.4001, h * 0.2015); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4008, h * 0.2135); + c.lineTo(w * 0.3574, h * 0.2368); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.3352, h * 0.2368); + c.lineTo(w * 0.2934, h * 0.2143); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.2934, h * 0.2015); + c.close(); + c.moveTo(w * 0.3705, h * 0.1729); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.3705, h * 0.1602); + c.lineTo(w * 0.4139, h * 0.1368); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4336, h * 0.1368); + c.lineTo(w * 0.4811, h * 0.1617); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4811, h * 0.1708); + c.lineTo(w * 0.4328, h * 0.1955); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4156, h * 0.1955); + c.close(); + c.moveTo(w * 0.4467, h * 0.1308); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4467, h * 0.1203); + c.lineTo(w * 0.491, h * 0.0962); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5123, h * 0.0962); + c.lineTo(w * 0.559, h * 0.1203); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.559, h * 0.1293); + c.lineTo(w * 0.5123, h * 0.1549); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4918, h * 0.1549); + c.close(); + c.moveTo(w * 0.568, h * 0.1383); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5918, h * 0.1383); + c.lineTo(w * 0.6361, h * 0.1624); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6366, h * 0.1714); + c.lineTo(w * 0.5885, h * 0.1955); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.568, h * 0.1955); + c.lineTo(w * 0.523, h * 0.1714); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.523, h * 0.1616); + c.close(); + c.moveTo(w * 0.6451, h * 0.1789); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.6697, h * 0.1789); + c.lineTo(w * 0.7123, h * 0.2023); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.7123, h * 0.2128); + c.lineTo(w * 0.6664, h * 0.2376); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.6492, h * 0.2376); + c.lineTo(w * 0.6016, h * 0.2135); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6016, h * 0.2023); + c.close(); + c.moveTo(w * 0.6369, h * 0.2451); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6369, h * 0.2526); + c.lineTo(w * 0.5172, h * 0.3173); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4893, h * 0.3173); + c.lineTo(w * 0.3697, h * 0.2541); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.3697, h * 0.2436); + c.lineTo(w * 0.4918, h * 0.1782); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5131, h * 0.1782); + c.close(); + c.fill(); + c.moveTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.arcTo(w * 0., h * 0., 0, 0, 1, w * 0., h * 0.); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.moveTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.267); + c.moveTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.moveTo(w, h * 0.3346); + c.lineTo(w * 0.87, h * 0.267); + c.moveTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.622, h * 0.4023); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dElasticMapReduce.prototype.cst.ELASTIC_MAP_REDUCE, mxShapeAws3dElasticMapReduce); + +function mxShapeAws3dRdsSlave(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dRdsSlave, mxShape); +mxShapeAws3dRdsSlave.prototype.cst = { + RDS_SLAVE: 'mxgraph.aws3d.rdsSlave' +}; + +mxShapeAws3dRdsSlave.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 133; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dRdsSlave.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dRdsSlave.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + c.setAlpha('0.1'); + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.close(); + c.moveTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3308); + c.fill(); + c.setAlpha('0.3'); + c.begin(); + c.moveTo(w * 0.5, h); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w, h * 0.3308); + c.lineTo(w, h * 0.7331); + c.close(); + c.fill(); + c.restore(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.2457, h * 0.2137); + c.lineTo(w * 0.5393, h * 0.0593); + c.lineTo(w * 0.6875, h * 0.1377); + c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 1, w * 0.7137, h * 0.1625); + c.arcTo(w * 0.0348, h * 0.032, 0, 0, 1, w * 0.7076, h * 0.1968); + c.arcTo(w * 0.1743, h * 0.1599, 0, 0, 1, w * 0.6597, h * 0.2249); + c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 1, w * 0.5943, h * 0.232); + c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 1, w * 0.5542, h * 0.2225); + c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 1, w * 0.5673, h * 0.2353); + c.arcTo(w * 0.0261, h * 0.024, 0, 0, 1, w * 0.5611, h * 0.2729); + c.lineTo(w * 0.4889, h * 0.316); + c.arcTo(w * 0.0261, h * 0.024, 0, 0, 0, w * 0.4766, h * 0.3352); + c.lineTo(w * 0.4052, h * 0.2992); + c.arcTo(w * 0.0173, h * 0.0159, 0, 0, 1, w * 0.4121, h * 0.2841); + c.lineTo(w * 0.4914, h * 0.2368); + c.arcTo(w * 0.0218, h * 0.02, 0, 0, 0, w * 0.4897, h * 0.2129); + c.lineTo(w * 0.4409, h * 0.1857); + c.lineTo(w * 0.3145, h * 0.2529); + c.close(); + c.moveTo(w * 0.4801, h * 0.1633); + c.lineTo(w * 0.5263, h * 0.1865); + c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 0, w * 0.583, h * 0.1905); + c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 0, w * 0.6196, h * 0.1721); + c.arcTo(w * 0.0261, h * 0.024, 0, 0, 0, w * 0.6117, h * 0.1441); + c.lineTo(w * 0.5655, h * 0.1193); + c.fill(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.moveTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.267); + c.moveTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.moveTo(w, h * 0.3346); + c.lineTo(w * 0.87, h * 0.267); + c.moveTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.622, h * 0.4023); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dRdsSlave.prototype.cst.RDS_SLAVE, mxShapeAws3dRdsSlave); + +function mxShapeAws3dAMI2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dAMI2, mxShape); +mxShapeAws3dAMI2.prototype.cst = { + AMI_2: 'mxgraph.aws3d.ami2', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dAMI2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + var strokeWidth1 = strokeWidth * w / 92; + var strokeWidth2 = strokeWidth * h / 60; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + c.setShadow(false); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0865, h * 0.284); + c.lineTo(w * 0.4203, 0); + c.lineTo(w * 0.5865, 0); + c.lineTo(w * 0.919, h * 0.286); + c.lineTo(w, h * 0.566); + c.lineTo(w * 0.5027, h); + c.close(); + c.fillAndStroke(); + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dAMI2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.566); + c.lineTo(w * 0.0892, h * 0.282); + c.lineTo(w * 0.0878, h * 0.426); + c.lineTo(w * 0.4216, h * 0.712); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.5027, h); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.9176, h * 0.43); + c.lineTo(w, h * 0.566); + c.close(); + c.fill(); + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.566); + c.lineTo(w * 0.0892, h * 0.282); + c.lineTo(w * 0.0878, h * 0.426); + c.lineTo(w * 0.4216, h * 0.712); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.5027, h); + c.close(); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.9176, h * 0.43); + c.lineTo(w, h * 0.566); + c.close(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0892, h * 0.422); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.4189, h * 0.708); + c.moveTo(w * 0.9176, h * 0.43); + c.lineTo(w * 0.9176, h * 0.29); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.2095, h * 0.376); + c.lineTo(w * 0.527, h * 0.104); + c.lineTo(w * 0.6338, h * 0.194); + c.lineTo(w * 0.3149, h * 0.468); + c.close(); + c.moveTo(w * 0.3716, h * 0.518); + c.lineTo(w * 0.6892, h * 0.246); + c.lineTo(w * 0.796, h * 0.336); + c.lineTo(w * 0.477, h * 0.61); + c.close(); + c.moveTo(w * 0.3108, h * 0.282); + c.lineTo(w * 0.4257, h * 0.38); + c.moveTo(w * 0.4189, h * 0.194); + c.lineTo(w * 0.5297, h * 0.288); + c.moveTo(w * 0.5838, h * 0.338); + c.lineTo(w * 0.6892, h * 0.426); + c.moveTo(w * 0.4757, h * 0.426); + c.lineTo(w * 0.5838, h * 0.518); + c.stroke(); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0865, h * 0.284); + c.lineTo(w * 0.4203, 0); + c.lineTo(w * 0.5865, 0); + c.lineTo(w * 0.919, h * 0.286); + c.lineTo(w, h * 0.566); + c.lineTo(w * 0.5027, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dAMI2.prototype.cst.AMI_2, mxShapeAws3dAMI2); + +function mxShapeAws3dEbs(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dEbs, mxShape); +mxShapeAws3dEbs.prototype.cst = { + EBS: 'mxgraph.aws3d.ebs', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dEbs.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 92; + var strokeWidth2 = strokeWidth * h / 60; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + c.setShadow(false); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.5276); + c.lineTo(0, h * 0.4188); + c.lineTo(w * 0.071, h * 0.2898); + c.lineTo(w * 0.4033, 0); + c.lineTo(w * 0.9301, h * 0.464); + c.lineTo(w, h * 0.5863); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.close(); + c.fillAndStroke(); + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEbs.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.071, h * 0.2948); + c.lineTo(w * 0.6011, h * 0.7621); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.lineTo(0, h * 0.5276); + c.lineTo(0, h * 0.4137); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.6011, h * 0.7655); + c.lineTo(w * 0.9344, h * 0.4724); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.close(); + c.fill(); + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.071, h * 0.2948); + c.lineTo(w * 0.6011, h * 0.7621); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.lineTo(0, h * 0.5276); + c.lineTo(0, h * 0.4137); + c.close(); + c.moveTo(w * 0.6011, h * 0.7655); + c.lineTo(w * 0.9344, h * 0.4724); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.close(); + c.moveTo(w * 0.0033, h * 0.5276); + c.lineTo(w * 0.071, h * 0.2898); + c.moveTo(w * 0.5325, h * 0.9976); + c.lineTo(w * 0.603, h * 0.7593); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.5276); + c.lineTo(0, h * 0.4188); + c.lineTo(w * 0.071, h * 0.2898); + c.lineTo(w * 0.4033, 0); + c.lineTo(w * 0.9301, h * 0.464); + c.lineTo(w, h * 0.5863); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dEbs.prototype.cst.EBS, mxShapeAws3dEbs); + +function mxShapeAws3dOracleServer(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dOracleServer, mxShape); +mxShapeAws3dOracleServer.prototype.cst = { + ORACLE_SERVER: 'mxgraph.aws3d.oracleServer' +}; + +mxShapeAws3dOracleServer.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 133; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dOracleServer.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dOracleServer.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + c.setAlpha('0.1'); + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + c.setAlpha('0.3'); + c.begin(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.setFillColor('#ff0000'); + c.begin(); + c.moveTo(0, h * 0.5866); + c.lineTo(w * 0.5, h * 0.8359); + c.lineTo(w, h * 0.5866); + c.lineTo(w, h * 0.6986); + c.lineTo(w * 0.5, h * 0.9486); + c.lineTo(0, h * 0.6986); + c.fill(); + c.setStrokeWidth(0.5 * strokeWidth); + c.setStrokeColor('#ffffff'); + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(0, h * 0.5866); + c.lineTo(w * 0.5, h * 0.8359); + c.lineTo(w, h * 0.5866); + c.moveTo(w, h * 0.6986); + c.lineTo(w * 0.5, h * 0.9486); + c.lineTo(0, h * 0.6986); + c.stroke(); + c.begin(); + c.moveTo(w * 0.0813, h * 0.7113); + c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.065, h * 0.6831); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.065, h * 0.6613); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.0797, h * 0.6549); + c.lineTo(w * 0.122, h * 0.6754); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.1358, h * 0.6937); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.139, h * 0.7232); + c.arcTo(w * 0.0179, h * 0.0155, 0, 0, 1, w * 0.1187, h * 0.7296); + c.close(); + c.moveTo(w * 0.1163, h * 0.7183); + c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.1285, h * 0.7148); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1293, h * 0.7021); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1179, h * 0.6831); + c.lineTo(w * 0.087, h * 0.6676); + c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.0764, h * 0.6697); + c.arcTo(w * 0.0325, h * 0.0352, 0, 0, 0, w * 0.078, h * 0.6937); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.087, h * 0.7035); + c.close(); + c.moveTo(w * 0.1439, h * 0.743); + c.lineTo(w * 0.1439, h * 0.6866); + c.lineTo(w * 0.1846, h * 0.707); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.1967, h * 0.7183); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2, h * 0.738); + c.arcTo(w * 0.0138, h * 0.0155, 0, 0, 1, w * 0.1813, h * 0.743); + c.lineTo(w * 0.1992, h * 0.769); + c.lineTo(w * 0.187, h * 0.7641); + c.lineTo(w * 0.1577, h * 0.7218); + c.lineTo(w * 0.1854, h * 0.7345); + c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.1911, h * 0.7317); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 0, w * 0.1894, h * 0.7225); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.1821, h * 0.7155); + c.lineTo(w * 0.1528, h * 0.7007); + c.lineTo(w * 0.1528, h * 0.7472); + c.close(); + c.moveTo(w * 0.2008, h * 0.7711); + c.lineTo(w * 0.2293, h * 0.7338); + c.arcTo(w * 0.0065, h * 0.0056, 0, 0, 1, w * 0.2382, h * 0.7324); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2431, h * 0.7415); + c.lineTo(w * 0.2699, h * 0.8035); + c.lineTo(w * 0.2602, h * 0.8007); + c.lineTo(w * 0.252, h * 0.7859); + c.lineTo(w * 0.2293, h * 0.7754); + c.lineTo(w * 0.2244, h * 0.7634); + c.lineTo(w * 0.248, h * 0.7739); + c.lineTo(w * 0.235, h * 0.7444); + c.lineTo(w * 0.2122, h * 0.7768); + c.close(); + c.moveTo(w * 0.3244, h * 0.8225); + c.lineTo(w * 0.3171, h * 0.8289); + c.lineTo(w * 0.2854, h * 0.8127); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2724, h * 0.7986); + c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.265, h * 0.7746); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2683, h * 0.762); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.2829, h * 0.757); + c.lineTo(w * 0.3228, h * 0.7761); + c.lineTo(w * 0.3179, h * 0.7831); + c.lineTo(w * 0.2878, h * 0.7683); + c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.2789, h * 0.7697); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.2748, h * 0.7831); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.2878, h * 0.8042); + c.close(); + c.moveTo(w * 0.3276, h * 0.7789); + c.lineTo(w * 0.3366, h * 0.7831); + c.lineTo(w * 0.3366, h * 0.8289); + c.lineTo(w * 0.3805, h * 0.8507); + c.lineTo(w * 0.3748, h * 0.857); + c.lineTo(w * 0.3317, h * 0.8359); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3276, h * 0.8275); + c.close(); + c.moveTo(w * 0.435, h * 0.8775); + c.lineTo(w * 0.4325, h * 0.8866); + c.lineTo(w * 0.3959, h * 0.8683); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.3862, h * 0.8563); + c.arcTo(w * 0.0528, h * 0.0458, 0, 0, 1, w * 0.3805, h * 0.8183); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3951, h * 0.8134); + c.lineTo(w * 0.435, h * 0.8324); + c.lineTo(w * 0.4285, h * 0.838); + c.lineTo(w * 0.4008, h * 0.8246); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.3878, h * 0.831); + c.lineTo(w * 0.4333, h * 0.8542); + c.lineTo(w * 0.426, h * 0.8606); + c.lineTo(w * 0.3878, h * 0.8415); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.3976, h * 0.8585); + c.close(); + c.moveTo(w * 0.6171, h * 0.8063); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.6366, h * 0.8092); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 1, w * 0.639, h * 0.8303); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.6211, h * 0.8592); + c.lineTo(w * 0.5894, h * 0.8761); + c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 1, w * 0.565, h * 0.8732); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.5659, h * 0.8458); + c.arcTo(w * 0.0488, h * 0.0422, 0, 0, 1, w * 0.5805, h * 0.8246); + c.close(); + c.moveTo(w * 0.5886, h * 0.8296); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.5748, h * 0.8472); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.574, h * 0.862); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.587, h * 0.8676); + c.lineTo(w * 0.6163, h * 0.8528); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.6285, h * 0.8359); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6293, h * 0.8225); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.6163, h * 0.8155); + c.close(); + c.moveTo(w * 0.64, h * 0.85); + c.lineTo(w * 0.64, h * 0.7930); + c.lineTo(w * 0.6854, h * 0.7718); + c.arcTo(w * 0.0106, h * 0.0092, 0, 0, 1, w * 0.7008, h * 0.7782); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6959, h * 0.8); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6805, h * 0.8127); + c.lineTo(w * 0.6992, h * 0.8218); + c.lineTo(w * 0.6854, h * 0.8282); + c.lineTo(w * 0.6569, h * 0.8141); + c.lineTo(w * 0.6805, h * 0.8021); + c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 0, w * 0.6894, h * 0.7923); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6894, h * 0.7845); + c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.6837, h * 0.7831); + c.lineTo(w * 0.6528, h * 0.7979); + c.lineTo(w * 0.6528, h * 0.8437); + c.close(); + c.moveTo(w * 0.7, h * 0.8204); + c.lineTo(w * 0.7301, h * 0.7507); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7358, h * 0.7444); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7415, h * 0.7486); + c.lineTo(w * 0.7699, h * 0.7852); + c.lineTo(w * 0.7602, h * 0.7908); + c.lineTo(w * 0.7537, h * 0.7838); + c.lineTo(w * 0.7276, h * 0.7958); + c.lineTo(w * 0.7228, h * 0.788); + c.lineTo(w * 0.748, h * 0.7768); + c.lineTo(w * 0.7358, h * 0.7585); + c.lineTo(w * 0.7114, h * 0.8155); + c.close(); + c.moveTo(w * 0.8244, h * 0.7486); + c.lineTo(w * 0.8171, h * 0.762); + c.lineTo(w * 0.7894, h * 0.7761); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 1, w * 0.7683, h * 0.7746); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.7667, h * 0.7507); + c.arcTo(w * 0.0488, h * 0.0423, 0, 0, 1, w * 0.7937, h * 0.7162); + c.lineTo(w * 0.822, h * 0.7035); + c.lineTo(w * 0.8171, h * 0.7155); + c.lineTo(w * 0.7902, h * 0.7296); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.778, h * 0.743); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.7756, h * 0.7606); + c.arcTo(w * 0.0077, h * 0.0067, 0, 0, 0, w * 0.787, h * 0.767); + c.close(); + c.moveTo(w * 0.8366, h * 0.6949); + c.lineTo(w * 0.8366, h * 0.7423); + c.lineTo(w * 0.878, h * 0.7231); + c.lineTo(w * 0.874, h * 0.7338); + c.lineTo(w * 0.8333, h * 0.7535); + c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 1, w * 0.8268, h * 0.75); + c.lineTo(w * 0.8268, h * 0.7007); + c.close(); + c.moveTo(w * 0.9342, h * 0.6472); + c.lineTo(w * 0.9293, h * 0.6599); + c.lineTo(w * 0.9033, h * 0.6725); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.8927, h * 0.6817); + c.arcTo(w * 0.0406, h * 0.0352, 0, 0, 0, w * 0.887, h * 0.6937); + c.lineTo(w * 0.9309, h * 0.6725); + c.lineTo(w * 0.9268, h * 0.6845); + c.lineTo(w * 0.887, h * 0.7035); + c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.8992, h * 0.7106); + c.lineTo(w * 0.935, h * 0.693); + c.lineTo(w * 0.9285, h * 0.7063); + c.lineTo(w * 0.9008, h * 0.7197); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.8829, h * 0.7204); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.8764, h * 0.7028); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.8959, h * 0.6669); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.374, h * 0.3873); + c.arcTo(w * 0.0325, h * 0.01764, 0, 0, 1, w * 0.374, h * 0.3626); + c.lineTo(w * 0.4797, h * 0.3098); + c.arcTo(w * 0.0325, h * 0.0141, 0, 0, 1, w * 0.5203, h * 0.3098); + c.lineTo(w * 0.626, h * 0.3626); + c.arcTo(w * 0.0325, h * 0.01764, 0, 0, 1, w * 0.626, h * 0.3852); + c.lineTo(w * 0.5203, h * 0.438); + c.arcTo(w * 0.0325, h * 0.0141, 0, 0, 1, w * 0.4797, h * 0.438); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dOracleServer.prototype.cst.ORACLE_SERVER, mxShapeAws3dOracleServer); + +function mxShapeAws3dSecureConnection(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dSecureConnection, mxShape); +mxShapeAws3dSecureConnection.prototype.cst = { + SECURE_CONNECTION: 'mxgraph.aws3d.secureConnection' +}; + +mxShapeAws3dSecureConnection.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 57; + var strokeWidth2 = strokeWidth * h / 34; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dSecureConnection.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.begin(); + c.moveTo(w * 0.0058, h * 0.3889); + c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.0774, h * 0.1856); + c.arcTo(w * 0.5241, h * 0.8839, 0, 0, 1, w * 0.308, h * 0.0262); + c.arcTo(w * 0.8735, h * 1.4732, 0, 0, 1, w * 0.6417, h * 0.056); + c.arcTo(w * 0.6988, h * 1.1786, 0, 0, 1, w * 0.9106, h * 0.277); + c.arcTo(w * 0.2621, h * 0.442, 0, 0, 1, w, h * 0.5451); + c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.9474, h * 0.7808); + c.arcTo(w * 0.4368, h * 0.7366, 0, 0, 1, w * 0.7186, h * 0.9605); + c.arcTo(w * 0.8735, h * 1.4732, 0, 0, 1, w * 0.3045, h * 0.9104); + c.arcTo(w * 0.6115, h * 1.0312, 0, 0, 1, w * 0.0687, h * 0.6747); + c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.0058, h * 0.3889); + c.close(); + c.fill(); +}; + +mxShapeAws3dSecureConnection.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.2661, h * 0.5068); + c.lineTo(w * 0.5002, h * 0.7336); + c.lineTo(w * 0.6626, h * 0.5775); + c.lineTo(w * 0.6469, h * 0.5539); + c.lineTo(w * 0.6958, h * 0.5097); + c.arcTo(w * 0.0874, h * 0.1473, 0, 0, 0, w * 0.7325, h * 0.4066); + c.arcTo(w * 0.0874, h * 0.1473, 0, 0, 0, w * 0.6889, h * 0.3153); + c.arcTo(w * 0.1747, h * 0.2946, 0, 0, 0, w * 0.5928, h * 0.2622); + c.arcTo(w * 0.1398, h * 0.2357, 0, 0, 0, w * 0.5107, h * 0.3005); + c.lineTo(w * 0.446, h * 0.3654); + c.lineTo(w * 0.4268, h * 0.3477); + c.close(); + c.moveTo(w * 0.4949, h * 0.4184); + c.lineTo(w * 0.5491, h * 0.3624); + c.arcTo(w * 0.1222, h * 0.2062, 0, 0, 1, w * 0.6277, h * 0.3536); + c.arcTo(w * 0.0874, h * 0.1179, 0, 0, 1, w * 0.6679, h * 0.3978); + c.arcTo(w * 0.0175, h * 0.0295, 0, 0, 1, w * 0.6626, h * 0.439); + c.lineTo(w * 0.5928, h * 0.5068); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dSecureConnection.prototype.cst.SECURE_CONNECTION, mxShapeAws3dSecureConnection); + +function mxShapeAws3dEmailService(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dEmailService, mxShape); +mxShapeAws3dEmailService.prototype.cst = { + EMAIL_SERVICE: 'mxgraph.aws3d.email_service', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dEmailService.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 151; + var strokeWidth2 = strokeWidth * h / 192; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dEmailService.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.8182); + c.lineTo(0, h * 0.1818); + c.lineTo(w * 0.4007, 0); + c.lineTo(w * 0.606, 0); + c.lineTo(w, h * 0.1792); + c.lineTo(w, h * 0.8182); + c.lineTo(w * 0.5993, h); + c.lineTo(w * 0.4007, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dEmailService.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEmailService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.2727); + c.lineTo(w * 0.4007, h * 0.4546); + c.lineTo(w * 0.5993, h * 0.4546); + c.lineTo(w * 0.5993, h); + c.lineTo(w * 0.4007, h); + c.lineTo(0, h * 0.8182); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5993, h * 0.4546); + c.lineTo(w, h * 0.2727); + c.lineTo(w * 0.8013, h * 0.1792); + c.lineTo(w * 0.8013, h * 0.0883); + c.lineTo(w, h * 0.1792); + c.lineTo(w, h * 0.8182); + c.lineTo(w * 0.5993, h); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.2727); + c.lineTo(w * 0.4007, h * 0.4546); + c.lineTo(w * 0.5993, h * 0.4546); + c.lineTo(w * 0.5993, h); + c.lineTo(w * 0.4007, h); + c.lineTo(0, h * 0.8182); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.5993, h * 0.4546); + c.lineTo(w, h * 0.2727); + c.lineTo(w * 0.8013, h * 0.1792); + c.lineTo(w * 0.8013, h * 0.0883); + c.lineTo(w, h * 0.1792); + c.lineTo(w, h * 0.8182); + c.lineTo(w * 0.5993, h); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.202, h * 0.0883); + c.lineTo(w * 0.202, h * 0.1818); + c.lineTo(w * 0.4007, h * 0.2727); + c.lineTo(w * 0.5993, h * 0.2727); + c.lineTo(w * 0.798, h * 0.1818); + c.moveTo(w * 0.2053, h * 0.1818); + c.lineTo(w * 0.0033, h * 0.2714); + c.moveTo(w * 0.4007, h * 0.2727); + c.lineTo(w * 0.4007, h * 0.9961); + c.moveTo(w * 0.5993, h * 0.2727); + c.lineTo(w * 0.5993, h * 0.4546); + c.stroke(); + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.4437, h * 0.0779); + c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 1, w * 0.404, h * 0.0706); + c.arcTo(w * 0.0464, h * 0.0364, 0, 0, 1, w * 0.3815, h * 0.0421); + c.arcTo(w * 0.053, h * 0.026, 0, 0, 1, w * 0.4205, h * 0.0187); + c.arcTo(w * 0.1987, h * 0.1558, 0, 0, 1, w * 0.4768, h * 0.0203); + c.arcTo(w * 0.0795, h * 0.0364, 0, 0, 1, w * 0.5199, h * 0.0494); + c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.5099, h * 0.0649); + c.arcTo(w * 0.0795, h * 0.0623, 0, 0, 1, w * 0.4536, h * 0.0727); + c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4404, h * 0.0597); + c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.4219, h * 0.0566); + c.arcTo(w * 0.0199, h * 0.0114, 0, 0, 1, w * 0.4172, h * 0.0431); + c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.4483, h * 0.0416); + c.arcTo(w * 0.0132, h * 0.0104, 0, 0, 1, w * 0.457, h * 0.053); + c.arcTo(w * 0.0132, h * 0.0104, 0, 0, 0, w * 0.4669, h * 0.0431); + c.arcTo(w * 0.0166, h * 0.0166, 0, 0, 0, w * 0.4464, h * 0.0358); + c.lineTo(w * 0.4437, h * 0.0338); + c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4603, h * 0.0322); + c.arcTo(w * 0.0397, h * 0.0156, 0, 0, 1, w * 0.4755, h * 0.0462); + c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4669, h * 0.0545); + c.arcTo(w * 0.053, h * 0.0416, 0, 0, 1, w * 0.453, h * 0.0608); + c.arcTo(w * 0.0099, h * 0.0078, 0, 0, 0, w * 0.4636, h * 0.0675); + c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 0, w * 0.498, h * 0.0623); + c.arcTo(w * 0.0185, h * 0.0145, 0, 0, 0, w * 0.5079, h * 0.0457); + c.arcTo(w * 0.053, h * 0.0416, 0, 0, 0, w * 0.4848, h * 0.0296); + c.arcTo(w * 0.0993, h * 0.0779, 0, 0, 0, w * 0.455, h * 0.0234); + c.arcTo(w * 0.1325, h * 0.1039, 0, 0, 0, w * 0.4172, h * 0.026); + c.arcTo(w * 0.0397, h * 0.0312, 0, 0, 0, w * 0.3927, h * 0.039); + c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 0, w * 0.3974, h * 0.0571); + c.arcTo(w * 0.053, h * 0.0416, 0, 0, 0, w * 0.4205, h * 0.0701); + c.arcTo(w * 0.0331, h * 0.026, 0, 0, 0, w * 0.4404, h * 0.0722); + c.moveTo(w * 0.42, h * 0.049); + c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.435, h * 0.055); + c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.45, h * 0.049); + c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.435, h * 0.043); + c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.42, h * 0.049); + c.close(); + c.moveTo(w * 0.4669, h * 0.0894); + c.arcTo(w * 0.1325, h * 0.1039, 0, 0, 0, w * 0.5099, h * 0.0831); + c.lineTo(w * 0.6689, h * 0.1543); + c.lineTo(w * 0.4887, h * 0.1371); + c.close(); + c.moveTo(w * 0.3887, h * 0.0769); + c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 0, w * 0.4205, h * 0.0888); + c.arcTo(w * 0.0662, h * 0.026, 0, 0, 0, w * 0.447, h * 0.0894); + c.lineTo(w * 0.4735, h * 0.1512); + c.lineTo(w * 0.6689, h * 0.1688); + c.lineTo(w * 0.5199, h * 0.2364); + c.lineTo(w * 0.2815, h * 0.1273); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.8182); + c.lineTo(0, h * 0.1818); + c.lineTo(w * 0.4007, 0); + c.lineTo(w * 0.606, 0); + c.lineTo(w, h * 0.1792); + c.lineTo(w, h * 0.8182); + c.lineTo(w * 0.5993, h); + c.lineTo(w * 0.4007, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dEmailService.prototype.cst.EMAIL_SERVICE, mxShapeAws3dEmailService); + +function mxShapeAws3dWorker(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dWorker, mxShape); +mxShapeAws3dWorker.prototype.cst = { + WORKER: 'mxgraph.aws3d.worker', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dWorker.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + var strokeWidth1 = strokeWidth * w / 74; + var strokeWidth2 = strokeWidth * h / 50; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + c.setShadow(false); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0865, h * 0.284); + c.lineTo(w * 0.4203, 0); + c.lineTo(w * 0.5865, 0); + c.lineTo(w * 0.919, h * 0.286); + c.lineTo(w, h * 0.566); + c.lineTo(w * 0.5027, h); + c.close(); + c.fillAndStroke(); + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWorker.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.566); + c.lineTo(w * 0.0892, h * 0.282); + c.lineTo(w * 0.0878, h * 0.426); + c.lineTo(w * 0.4216, h * 0.712); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.5027, h); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.9176, h * 0.43); + c.lineTo(w, h * 0.566); + c.close(); + c.fill(); + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.566); + c.lineTo(w * 0.0892, h * 0.282); + c.lineTo(w * 0.0878, h * 0.426); + c.lineTo(w * 0.4216, h * 0.712); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.5027, h); + c.close(); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.9176, h * 0.43); + c.lineTo(w, h * 0.566); + c.close(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0892, h * 0.422); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.4189, h * 0.708); + c.moveTo(w * 0.9176, h * 0.43); + c.lineTo(w * 0.9176, h * 0.29); + c.stroke(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.2892, h * 0.2104); + c.lineTo(w * 0.3595, h * 0.1503); + c.lineTo(w * 0.3973, h * 0.1844); + c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.4486, h * 0.1703); + c.lineTo(w * 0.4486, h * 0.1242); + c.lineTo(w * 0.5527, h * 0.1242); + c.lineTo(w * 0.5527, h * 0.1703); + c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.6149, h * 0.1924); + c.lineTo(w * 0.6527, h * 0.1603); + c.lineTo(w * 0.7257, h * 0.2224); + c.lineTo(w * 0.6892, h * 0.2545); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.7162, h * 0.3106); + c.lineTo(w * 0.7676, h * 0.3106); + c.lineTo(w * 0.7676, h * 0.3988); + c.lineTo(w * 0.7162, h * 0.3988); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.6973, h * 0.4409); + c.lineTo(w * 0.7378, h * 0.475); + c.lineTo(w * 0.6635, h * 0.5371); + c.lineTo(w * 0.6297, h * 0.505); + c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.5527, h * 0.5351); + c.lineTo(w * 0.5527, h * 0.5812); + c.lineTo(w * 0.45, h * 0.5812); + c.lineTo(w * 0.45, h * 0.5351); + c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.3878, h * 0.513); + c.lineTo(w * 0.3514, h * 0.5431); + c.lineTo(w * 0.2784, h * 0.481); + c.lineTo(w * 0.3149, h * 0.4509); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.2865, h * 0.3968); + c.lineTo(w * 0.2351, h * 0.3968); + c.lineTo(w * 0.2351, h * 0.3086); + c.lineTo(w * 0.2865, h * 0.3086); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.3203, h * 0.2425); + c.close(); + c.moveTo(w * 0.4054, h * 0.2445); + c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.3554, h * 0.2986); + c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 0, w * 0.3432, h * 0.3567); + c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 0, w * 0.3635, h * 0.4208); + c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.4122, h * 0.4649); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.4122, h * 0.4649); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.5676, h * 0.4749); + c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.6351, h * 0.4228); + c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 0, w * 0.6595, h * 0.3467); + c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 0, w * 0.6149, h * 0.2605); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.5419, h * 0.2204); + c.arcTo(w * 0.3378, h * 0.501, 0, 0, 0, w * 0.4649, h * 0.2184); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.4054, h * 0.2445); + c.close(); + c.moveTo(w * 0.473, h * 0.2806); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.55, h * 0.2866); + c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 1, w * 0.5892, h * 0.3307); + c.arcTo(w * 0.0338, h * 0.0501, 0, 0, 1, w * 0.5824, h * 0.3888); + c.arcTo(w * 0.0946, h * 0.1403, 0, 0, 1, w * 0.5216, h * 0.4269); + c.arcTo(w * 0.1622, h * 0.2405, 0, 0, 1, w * 0.4432, h * 0.4128); + c.arcTo(w * 0.0541, h * 0.0802, 0, 0, 1, w * 0.4108, h * 0.3527); + c.arcTo(w * 0.0541, h * 0.0802, 0, 0, 1, w * 0.4351, h * 0.2986); + c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 1, w * 0.473, h * 0.2806); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0865, h * 0.284); + c.lineTo(w * 0.4203, 0); + c.lineTo(w * 0.5865, 0); + c.lineTo(w * 0.919, h * 0.286); + c.lineTo(w, h * 0.566); + c.lineTo(w * 0.5027, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dWorker.prototype.cst.WORKER, mxShapeAws3dWorker); + +function mxShapeAws3dApplication2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dApplication2, mxShape); +mxShapeAws3dApplication2.prototype.cst = { + APPLICATION2: 'mxgraph.aws3d.application2', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dApplication2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 62; + var strokeWidth2 = strokeWidth * h / 53.5; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.6766); + c.lineTo(0, h * 0.3271); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3271); + c.lineTo(w, h * 0.6766); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplication2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.3271); + c.lineTo(w * 0.5, h * 0.6449); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.6766); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h * 0.6449); + c.lineTo(w, h * 0.3271); + c.lineTo(w, h * 0.6766); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.3271); + c.lineTo(w * 0.5, h * 0.6449); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.6766); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.5, h * 0.6449); + c.lineTo(w, h * 0.3271); + c.lineTo(w, h * 0.6766); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.1742, h * 0.6355); + c.lineTo(w * 0.1742, h * 0.4393); + c.lineTo(w * 0.6726, h * 0.1121); + c.lineTo(w * 0.7661, h * 0.1738); + c.lineTo(w * 0.2661, h * 0.4991); + c.lineTo(w * 0.2661, h * 0.6916); + c.close(); + c.moveTo(w * 0.2871, h * 0.7084); + c.lineTo(w * 0.2871, h * 0.514); + c.lineTo(w * 0.7823, h * 0.1869); + c.lineTo(w * 0.8629, h * 0.2374); + c.lineTo(w * 0.379, h * 0.5626); + c.lineTo(w * 0.379, h * 0.7607); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.6766); + c.lineTo(0, h * 0.3271); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3271); + c.lineTo(w, h * 0.6766); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dApplication2.prototype.cst.APPLICATION2, mxShapeAws3dApplication2); + +function mxShapeAws3dElasticBeanstalk(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dElasticBeanstalk, mxShape); +mxShapeAws3dElasticBeanstalk.prototype.cst = { + ELASTIC_BEANSTALK: 'mxgraph.aws3d.elasticBeanstalk', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dElasticBeanstalk.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 181.5; + var strokeWidth2 = strokeWidth * h / 140; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.6239); + c.lineTo(0, h * 0.3754); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3754); + c.lineTo(w, h * 0.6239); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticBeanstalk.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.3754); + c.lineTo(w * 0.5, h * 0.7514); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.6239); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h * 0.7514); + c.lineTo(w, h * 0.3754); + c.lineTo(w, h * 0.6239); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.3754); + c.lineTo(w * 0.5, h * 0.7514); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.6239); + c.close(); + c.moveTo(w * 0.5, h * 0.7514); + c.lineTo(w, h * 0.3754); + c.lineTo(w, h * 0.6239); + c.lineTo(w * 0.5, h); + c.close(); + c.moveTo(w * 0.2485, h * 0.187); + c.lineTo(w * 0.7493, h * 0.5623); + c.lineTo(w * 0.7493, h * 0.8123); + c.stroke(); + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.7763, h * 0.2063); + c.lineTo(w * 0.2749, h * 0.5817); + c.lineTo(w * 0.2749, h * 0.8309); + c.lineTo(w * 0.2204, h * 0.7894); + c.lineTo(w * 0.2204, h * 0.5394); + c.lineTo(w * 0.7185, h * 0.1619); + c.close(); + c.fill(); + c.restore(); + c.begin(); + c.moveTo(w * 0.1713, h * 0.543); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2028, h * 0.5723); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2281, h * 0.6096); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.2402, h * 0.644); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.2424, h * 0.6848); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.216, h * 0.6612); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.1895, h * 0.6239); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.1719, h * 0.5824); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.1713, h * 0.543); + c.close(); + c.moveTo(w * 0.2507, h * 0.7794); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.254, h * 0.7421); + c.arcTo(w * 0.022, h * 0.0287, 0, 0, 1, w * 0.27, h * 0.7264); + c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.2986, h * 0.73); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3234, h * 0.7457); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3218, h * 0.7815); + c.arcTo(w * 0.022, h * 0.0287, 0, 0, 1, w * 0.3019, h * 0.7987); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.27, h * 0.7923); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2507, h * 0.7794); + c.close(); + c.moveTo(w * 0.2799, h * 0.5265); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.3003, h * 0.515); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3317, h * 0.515); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3774, h * 0.5315); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4033, h * 0.5487); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3906, h * 0.5595); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3493, h * 0.5616); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3069, h * 0.5444); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2799, h * 0.5265); + c.close(); + c.moveTo(w * 0.2887, h * 0.3933); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.314, h * 0.414); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3322, h * 0.4391); + c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.3344, h * 0.4699); + c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.3196, h * 0.485); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2887, h * 0.4592); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.27, h * 0.4269); + c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.2727, h * 0.4054); + c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.2887, h * 0.3933); + c.close(); + c.moveTo(w * 0.4613, h * 0.262); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4867, h * 0.2827); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.5049, h * 0.3078); + c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.5071, h * 0.3386); + c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.4922, h * 0.3537); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4613, h * 0.3279); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.4426, h * 0.2956); + c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.4453, h * 0.2741); + c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.4613, h * 0.262); + c.close(); + c.moveTo(w * 0.4525, h * 0.3952); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.4729, h * 0.3837); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5043, h * 0.3837); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.55, h * 0.4002); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.5759, h * 0.4174); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5633, h * 0.4282); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5219, h * 0.4303); + c.arcTo(w * 0.1653, h * 0.1074, 0, 0, 1, w * 0.4795, h * 0.4131); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4525, h * 0.3952); + c.close(); + c.moveTo(w * 0.6217, h * 0.1426); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6471, h * 0.1633); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6652, h * 0.1884); + c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.6674, h * 0.2192); + c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.6526, h * 0.2342); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6217, h * 0.2085); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.603, h * 0.1762); + c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.6057, h * 0.1547); + c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.6217, h * 0.1426); + c.close(); + c.moveTo(w * 0.6129, h * 0.2758); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.6333, h * 0.2643); + c.arcTo(w * 0.0826, h * 0.1433, 0, 0, 1, w * 0.6647, h * 0.2643); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.7104, h * 0.2808); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.7363, h * 0.298); + c.arcTo(w * 0.0826, h * 0.2149, 0, 0, 1, w * 0.7363, h * 0.298); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.6823, h * 0.3109); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6399, h * 0.2937); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6129, h * 0.2758); + c.close(); + c.fillAndStroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.6239); + c.lineTo(0, h * 0.3754); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3754); + c.lineTo(w, h * 0.6239); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dElasticBeanstalk.prototype.cst.ELASTIC_BEANSTALK, mxShapeAws3dElasticBeanstalk); + +function mxShapeAws3dSimpleDB2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dSimpleDB2, mxShape); +mxShapeAws3dSimpleDB2.prototype.cst = { + SIMPLE_DB_2: 'mxgraph.aws3d.simpleDb2', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dSimpleDB2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 181.5; + var strokeWidth2 = strokeWidth * h / 210; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dSimpleDB2.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.8183); + c.lineTo(0, h * 0.1848); + c.lineTo(w * 0.3366, 0); + c.lineTo(w * 0.6293, h * 0.0021); + c.lineTo(w, h * 0.1833); + c.lineTo(w, h * 0.8183); + c.lineTo(w * 0.6694, h); + c.lineTo(w * 0.4986, h * 0.9091); + c.lineTo(w * 0.3333, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dSimpleDB2.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSimpleDB2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.1848); + c.lineTo(w * 0.168, h * 0.1833); + c.lineTo(0, h * 0.365); + c.lineTo(w * 0.3333, h * 0.5467); + c.lineTo(w * 0.3333, h); + c.lineTo(0, h * 0.8183); + c.close(); + c.moveTo(w * 0.4986, h * 0.9078); + c.lineTo(w * 0.4986, h * 0.3655); + c.lineTo(w * 0.6667, h * 0.5457); + c.lineTo(w * 0.6667, h); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.3333, h * 0.5467); + c.lineTo(w * 0.4986, h * 0.3655); + c.lineTo(w * 0.4986, h * 0.9076); + c.lineTo(w * 0.3333, h); + c.close(); + c.moveTo(w * 0.8292, h * 0.1822); + c.lineTo(w, h * 0.1848); + c.lineTo(w, h * 0.8183); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.6667, h * 0.5441); + c.lineTo(w, h * 0.3666); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.1848); + c.lineTo(w * 0.168, h * 0.1833); + c.lineTo(0, h * 0.365); + c.lineTo(w * 0.3333, h * 0.5467); + c.lineTo(w * 0.3333, h); + c.lineTo(0, h * 0.8183); + c.close(); + c.moveTo(w * 0.4986, h * 0.9078); + c.lineTo(w * 0.4986, h * 0.3655); + c.lineTo(w * 0.6667, h * 0.5457); + c.lineTo(w * 0.6667, h); + c.close(); + c.moveTo(w * 0.3333, h * 0.5467); + c.lineTo(w * 0.4986, h * 0.3655); + c.lineTo(w * 0.4986, h * 0.9076); + c.lineTo(w * 0.3333, h); + c.close(); + c.moveTo(w * 0.8292, h * 0.1822); + c.lineTo(w, h * 0.1848); + c.lineTo(w, h * 0.8183); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.6667, h * 0.5441); + c.lineTo(w, h * 0.3666); + c.close(); + c.moveTo(w * 0.1669, h * 0.1828); + c.lineTo(w * 0.4986, h * 0.3655); + c.lineTo(w * 0.8314, h * 0.1833); + c.lineTo(w * 0.4986, h * 0.0031); + c.close(); + c.stroke(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.2634, h * 0.1833); + c.lineTo(w * 0.5003, h * 0.0535); + c.lineTo(w * 0.7394, h * 0.1833); + c.lineTo(w * 0.5003, h * 0.3136); + c.close(); + c.fill(); + var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#000000'); + c.restore(); + c.setShadow(false); + c.setStrokeWidth(3 * strokeWidth); + c.setStrokeColor(fillColor); + c.begin(); + c.moveTo(w * 0.3003, h * 0.2108); + c.lineTo(w * 0.5642, h * 0.068); + c.moveTo(w * 0.4429, h * 0.0693); + c.lineTo(w * 0.7059, h * 0.2121); + c.moveTo(w * 0.6667, h * 0.2458); + c.lineTo(w * 0.3974, h * 0.0992); + c.moveTo(w * 0.3499, h * 0.1277); + c.lineTo(w * 0.6088, h * 0.2698); + c.moveTo(w * 0.3009, h * 0.1556); + c.lineTo(w * 0.5496, h * 0.2913); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.8183); + c.lineTo(0, h * 0.1848); + c.lineTo(w * 0.3366, 0); + c.lineTo(w * 0.6293, h * 0.0021); + c.lineTo(w, h * 0.1833); + c.lineTo(w, h * 0.8183); + c.lineTo(w * 0.6694, h); + c.lineTo(w * 0.4986, h * 0.9091); + c.lineTo(w * 0.3333, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dSimpleDB2.prototype.cst.SIMPLE_DB_2, mxShapeAws3dSimpleDB2); + +function mxShapeAws3dWorkflowService(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dWorkflowService, mxShape); +mxShapeAws3dWorkflowService.prototype.cst = { + WORKFLOW_SERVICE: 'mxgraph.aws3d.workflowService', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dWorkflowService.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 181.5; + var strokeWidth2 = strokeWidth * h / 210; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dWorkflowService.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.6456); + c.lineTo(w * 0.2481, 0); + c.lineTo(w * 0.7497, 0); + c.lineTo(w, h * 0.6456); + c.lineTo(w * 0.4984, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dWorkflowService.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWorkflowService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.6456); + c.lineTo(w * 0.2486, 0); + c.lineTo(w * 0.2486, h * 0.3531); + c.lineTo(w * 0.4984, h); + c.close(); + c.moveTo(w * 0.7497, h * 0.3531); + c.lineTo(w * 0.7497, 0); + c.lineTo(w, h * 0.6456); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.4984, h); + c.lineTo(w * 0.7486, h * 0.3531); + c.lineTo(w, h * 0.6456); + c.lineTo(w * 0.4967, h); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.7497, h * 0.3531); + c.lineTo(w * 0.7497, 0); + c.lineTo(w, h * 0.6456); + c.close(); + c.moveTo(0, h * 0.6456); + c.lineTo(w * 0.2486, 0); + c.lineTo(w * 0.2486, h * 0.3531); + c.lineTo(w * 0.4984, h); + c.lineTo(w * 0.7486, h * 0.3531); + c.lineTo(w, h * 0.6456); + c.lineTo(w * 0.4967, h); + c.close(); + c.moveTo(w * 0.2486, h * 0.3531); + c.lineTo(w * 0.7508, h * 0.3531); + c.moveTo(w * 0.2488, h * 0.353); + c.lineTo(0, h * 0.6486); + c.stroke(); + c.restore(); + c.setShadow(false); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setStrokeWidth(2 * strokeWidth); + c.begin(); + c.ellipse(w * 0.2925, h * 0.031, w * 0.4116, h * 0.2925); + c.fill(); + var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff'); + c.setStrokeColor(fillColor); + c.begin(); + c.moveTo(w * 0.5252, h * 0.0465); + c.lineTo(w * 0.5873, h * 0.0903); + c.lineTo(w * 0.5483, h * 0.1173); + c.lineTo(w * 0.4874, h * 0.0728); + c.close(); + c.moveTo(w * 0.4896, h * 0.1132); + c.lineTo(w * 0.5005, h * 0.1705); + c.lineTo(w * 0.4182, h * 0.1631); + c.lineTo(w * 0.4122, h * 0.1058); + c.close(); + c.moveTo(w * 0.3584, h * 0.1631); + c.lineTo(w * 0.4204, h * 0.2062); + c.lineTo(w * 0.3825, h * 0.2332); + c.lineTo(w * 0.32, h * 0.19); + c.close(); + c.moveTo(w * 0.4594, h * 0.2338); + c.lineTo(w * 0.5214, h * 0.2783); + c.lineTo(w * 0.4835, h * 0.3053); + c.lineTo(w * 0.4215, h * 0.2608); + c.close(); + c.moveTo(w * 0.5187, h * 0.0943); + c.lineTo(w * 0.4879, h * 0.1152); + c.moveTo(w * 0.421, h * 0.1624); + c.lineTo(w * 0.3895, h * 0.1846); + c.moveTo(w * 0.5, h * 0.1698); + c.lineTo(w * 0.5554, h * 0.2089); + c.lineTo(w * 0.4885, h * 0.2567); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.6456); + c.lineTo(w * 0.2481, 0); + c.lineTo(w * 0.7497, 0); + c.lineTo(w, h * 0.6456); + c.lineTo(w * 0.4984, h); + c.close(); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dWorkflowService.prototype.cst.WORKFLOW_SERVICE, mxShapeAws3dWorkflowService); + +function mxShapeAws3dDecider(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dDecider, mxShape); +mxShapeAws3dDecider.prototype.cst = { + DECIDER: 'mxgraph.aws3d.decider', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dDecider.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + var strokeWidth1 = strokeWidth * w / 74; + var strokeWidth2 = strokeWidth * h / 50; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + c.setShadow(false); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0865, h * 0.284); + c.lineTo(w * 0.4203, 0); + c.lineTo(w * 0.5865, 0); + c.lineTo(w * 0.919, h * 0.286); + c.lineTo(w, h * 0.566); + c.lineTo(w * 0.5027, h); + c.close(); + c.fillAndStroke(); + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDecider.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.566); + c.lineTo(w * 0.0892, h * 0.282); + c.lineTo(w * 0.0878, h * 0.426); + c.lineTo(w * 0.4216, h * 0.712); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.5027, h); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.9176, h * 0.43); + c.lineTo(w, h * 0.566); + c.close(); + c.fill(); + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.566); + c.lineTo(w * 0.0892, h * 0.282); + c.lineTo(w * 0.0878, h * 0.426); + c.lineTo(w * 0.4216, h * 0.712); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.5027, h); + c.close(); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.9176, h * 0.43); + c.lineTo(w, h * 0.566); + c.close(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0892, h * 0.422); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.4189, h * 0.708); + c.moveTo(w * 0.9176, h * 0.43); + c.lineTo(w * 0.9176, h * 0.29); + c.stroke(); + c.setStrokeWidth(1.6 * strokeWidth); + c.setLineJoin('square'); + c.begin(); + c.moveTo(w * 0.4973, h * 0.1523); + c.lineTo(w * 0.5608, h * 0.0982); + c.lineTo(w * 0.6581, h * 0.1844); + c.lineTo(w * 0.5986, h * 0.2365); + c.close(); + c.moveTo(w * 0.3784, h * 0.2164); + c.lineTo(w * 0.5054, h * 0.2305); + c.lineTo(w * 0.5203, h * 0.3407); + c.lineTo(w * 0.3892, h * 0.3246); + c.close(); + c.moveTo(w * 0.2932, h * 0.3246); + c.lineTo(w * 0.3919, h * 0.4128); + c.lineTo(w * 0.3334, h * 0.4647); + c.lineTo(w * 0.2357, h * 0.38); + c.close(); + c.moveTo(w * 0.4568, h * 0.4649); + c.lineTo(w * 0.5554, h * 0.5511); + c.lineTo(w * 0.4932, h * 0.6032); + c.lineTo(w * 0.3946, h * 0.517); + c.close(); + c.moveTo(w * 0.5473, h * 0.1924); + c.lineTo(w * 0.5027, h * 0.2365); + c.moveTo(w * 0.4, h * 0.3186); + c.lineTo(w * 0.3446, h * 0.3667); + c.moveTo(w * 0.5189, h * 0.3387); + c.lineTo(w * 0.6081, h * 0.4148); + c.lineTo(w * 0.5068, h * 0.501); + c.stroke(); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0865, h * 0.284); + c.lineTo(w * 0.4203, 0); + c.lineTo(w * 0.5865, 0); + c.lineTo(w * 0.919, h * 0.286); + c.lineTo(w, h * 0.566); + c.lineTo(w * 0.5027, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dDecider.prototype.cst.DECIDER, mxShapeAws3dDecider); + +function mxShapeAws3dSearchEngine(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dSearchEngine, mxShape); +mxShapeAws3dSearchEngine.prototype.cst = { + SEARCH_ENGINE: 'mxgraph.aws3d.searchEngine', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dSearchEngine.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 180; + var strokeWidth2 = strokeWidth * h / 192; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dSearchEngine.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7281); + c.lineTo(w * 0.1667, h * 0.5444); + c.lineTo(w * 0.1667, h * 0.1832); + c.lineTo(w * 0.5011, 0); + c.lineTo(w * 0.8333, h * 0.1832); + c.lineTo(w * 0.8333, h * 0.5446); + c.lineTo(w, h * 0.7281); + c.lineTo(w * 0.7486, h * 0.7735); + c.lineTo(w * 0.5819, h * 0.8617); + c.lineTo(w * 0.5011, h); + c.lineTo(w * 0.4169, h * 0.8653); + c.lineTo(w * 0.2475, h * 0.7704); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dSearchEngine.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSearchEngine.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.1672, h * 0.1837); + c.lineTo(w * 0.4989, h * 0.3638); + c.lineTo(w * 0.4989, h * 0.7291); + c.lineTo(w * 0.5825, h * 0.8633); + c.lineTo(w * 0.4989, h); + c.lineTo(w * 0.4164, h * 0.8622); + c.lineTo(w * 0.2458, h * 0.7719); + c.lineTo(0, h * 0.7276); + c.lineTo(w * 0.1661, h * 0.5454); + c.close(); + c.moveTo(w * 0.7486, h * 0.7714); + c.lineTo(w * 0.8317, h * 0.5459); + c.lineTo(w, h * 0.727); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.4989, h * 0.3643); + c.lineTo(w * 0.8317, h * 0.1827); + c.lineTo(w * 0.8317, h * 0.5465); + c.lineTo(w * 0.7508, h * 0.7714); + c.lineTo(w * 0.5836, h * 0.8633); + c.lineTo(w * 0.4989, h * 0.727); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.1672, h * 0.1837); + c.lineTo(w * 0.4989, h * 0.3638); + c.lineTo(w * 0.4989, h * 0.7291); + c.lineTo(w * 0.5825, h * 0.8633); + c.lineTo(w * 0.4989, h); + c.lineTo(w * 0.4164, h * 0.8622); + c.lineTo(w * 0.2458, h * 0.7719); + c.lineTo(0, h * 0.7276); + c.lineTo(w * 0.1661, h * 0.5454); + c.close(); + c.moveTo(w * 0.7486, h * 0.7714); + c.lineTo(w * 0.8317, h * 0.5459); + c.lineTo(w, h * 0.727); + c.close(); + c.moveTo(w * 0.4989, h * 0.3643); + c.lineTo(w * 0.8317, h * 0.1827); + c.lineTo(w * 0.8317, h * 0.5465); + c.lineTo(w * 0.7508, h * 0.7714); + c.lineTo(w * 0.5836, h * 0.8633); + c.lineTo(w * 0.4989, h * 0.727); + c.close(); + c.moveTo(w * 0.1667, h * 0.5459); + c.lineTo(w * 0.2486, h * 0.7704); + c.moveTo(w * 0.4164, h * 0.8633); + c.lineTo(w * 0.4989, h * 0.727); + c.lineTo(w * 0.4989, h); + c.stroke(); + c.restore(); + c.setShadow(false); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.3427, h * 0.179); + c.arcTo(w * 0.0277, h * 0.0261, 0, 0, 1, w * 0.3267, h * 0.1487); + c.arcTo(w * 0.0664, h * 0.0365, 0, 0, 1, w * 0.3621, h * 0.1227); + c.arcTo(w * 0.1052, h * 0.0992, 0, 0, 1, w * 0.4247, h * 0.1195); + c.arcTo(w * 0.1274, h * 0.12, 0, 0, 1, w * 0.4884, h * 0.1018); + c.arcTo(w * 0.1329, h * 0.1253, 0, 0, 1, w * 0.5548, h * 0.1112); + c.arcTo(w * 0.0377, h * 0.0344, 0, 0, 1, w * 0.572, h * 0.166); + c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.6047, h * 0.1775); + c.arcTo(w * 0.021, h * 0.0198, 0, 0, 1, w * 0.5936, h * 0.2046); + c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.6008, h * 0.2416); + c.arcTo(w * 0.072, h * 0.0678, 0, 0, 1, w * 0.5437, h * 0.2677); + c.arcTo(w * 0.1052, h * 0.0939, 0, 0, 1, w * 0.4828, h * 0.2563); + c.close(); + c.moveTo(w * 0.448, h * 0.2156); + c.arcTo(w * 0.0111, h * 0.0104, 0, 0, 0, w * 0.459, h * 0.2255); + c.arcTo(w * 0.0138, h * 0.013, 0, 0, 0, w * 0.4729, h * 0.2182); + c.lineTo(w * 0.4773, h * 0.1874); + c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.5116, h * 0.1759); + c.arcTo(w * 0.0277, h * 0.0626, 0, 0, 0, w * 0.5233, h * 0.1503); + c.arcTo(w * 0.0554, h * 0.0261, 0, 0, 0, w * 0.5022, h * 0.1336); + c.arcTo(w * 0.0886, h * 0.0835, 0, 0, 0, w * 0.4607, h * 0.1305); + c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.4313, h * 0.142); + c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 0, w * 0.4175, h * 0.1597); + c.arcTo(w * 0.0249, h * 0.0235, 0, 0, 0, w * 0.4313, h * 0.1822); + c.arcTo(w * 0.0443, h * 0.0418, 0, 0, 0, w * 0.4535, h * 0.1884); + c.close(); + c.moveTo(w * 0.4718, h * 0.1764); + c.arcTo(w * 0.0443, h * 0.0418, 0, 0, 1, w * 0.4496, h * 0.1754); + c.arcTo(w * 0.0221, h * 0.0157, 0, 0, 1, w * 0.4369, h * 0.1634); + c.arcTo(w * 0.0221, h * 0.0183, 0, 0, 1, w * 0.4496, h * 0.1467); + c.arcTo(w * 0.0609, h * 0.0574, 0, 0, 1, w * 0.4759, h * 0.1414); + c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.5033, h * 0.1514); + c.arcTo(w * 0.0443, h * 0.0209, 0, 0, 1, w * 0.495, h * 0.1701); + c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.4718, h * 0.1764); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7281); + c.lineTo(w * 0.1667, h * 0.5444); + c.lineTo(w * 0.1667, h * 0.1832); + c.lineTo(w * 0.5011, 0); + c.lineTo(w * 0.8333, h * 0.1832); + c.lineTo(w * 0.8333, h * 0.5446); + c.lineTo(w, h * 0.7281); + c.lineTo(w * 0.7486, h * 0.7735); + c.lineTo(w * 0.5819, h * 0.8617); + c.lineTo(w * 0.5011, h); + c.lineTo(w * 0.4169, h * 0.8653); + c.lineTo(w * 0.2475, h * 0.7704); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dSearchEngine.prototype.cst.SEARCH_ENGINE, mxShapeAws3dSearchEngine); + +function mxShapeAws3dSecurityTokenService(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dSecurityTokenService, mxShape); +mxShapeAws3dSecurityTokenService.prototype.cst = { + SECURITY_TOKEN_SERVICE: 'mxgraph.aws3d.securityTokenService', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dSecurityTokenService.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 180; + var strokeWidth2 = strokeWidth * h / 192; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dSecurityTokenService.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7281); + c.lineTo(w * 0.1667, h * 0.5444); + c.lineTo(w * 0.1667, h * 0.1832); + c.lineTo(w * 0.5011, 0); + c.lineTo(w * 0.8333, h * 0.1832); + c.lineTo(w * 0.8333, h * 0.5446); + c.lineTo(w, h * 0.7281); + c.lineTo(w * 0.7486, h * 0.7735); + c.lineTo(w * 0.5819, h * 0.8617); + c.lineTo(w * 0.5011, h); + c.lineTo(w * 0.4169, h * 0.8653); + c.lineTo(w * 0.2475, h * 0.7704); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dSecurityTokenService.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSecurityTokenService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.1672, h * 0.1837); + c.lineTo(w * 0.4989, h * 0.3638); + c.lineTo(w * 0.4989, h * 0.7291); + c.lineTo(w * 0.5825, h * 0.8633); + c.lineTo(w * 0.4989, h); + c.lineTo(w * 0.4164, h * 0.8622); + c.lineTo(w * 0.2458, h * 0.7719); + c.lineTo(0, h * 0.7276); + c.lineTo(w * 0.1661, h * 0.5454); + c.close(); + c.moveTo(w * 0.7486, h * 0.7714); + c.lineTo(w * 0.8317, h * 0.5459); + c.lineTo(w, h * 0.727); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.4989, h * 0.3643); + c.lineTo(w * 0.8317, h * 0.1827); + c.lineTo(w * 0.8317, h * 0.5465); + c.lineTo(w * 0.7508, h * 0.7714); + c.lineTo(w * 0.5836, h * 0.8633); + c.lineTo(w * 0.4989, h * 0.727); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.1672, h * 0.1837); + c.lineTo(w * 0.4989, h * 0.3638); + c.lineTo(w * 0.4989, h * 0.7291); + c.lineTo(w * 0.5825, h * 0.8633); + c.lineTo(w * 0.4989, h); + c.lineTo(w * 0.4164, h * 0.8622); + c.lineTo(w * 0.2458, h * 0.7719); + c.lineTo(0, h * 0.7276); + c.lineTo(w * 0.1661, h * 0.5454); + c.close(); + c.moveTo(w * 0.7486, h * 0.7714); + c.lineTo(w * 0.8317, h * 0.5459); + c.lineTo(w, h * 0.727); + c.close(); + c.moveTo(w * 0.4989, h * 0.3643); + c.lineTo(w * 0.8317, h * 0.1827); + c.lineTo(w * 0.8317, h * 0.5465); + c.lineTo(w * 0.7508, h * 0.7714); + c.lineTo(w * 0.5836, h * 0.8633); + c.lineTo(w * 0.4989, h * 0.727); + c.close(); + c.moveTo(w * 0.1667, h * 0.5459); + c.lineTo(w * 0.2486, h * 0.7704); + c.moveTo(w * 0.4164, h * 0.8633); + c.lineTo(w * 0.4989, h * 0.727); + c.lineTo(w * 0.4989, h); + c.stroke(); + c.restore(); + c.setShadow(false); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.4773, h * 0.1915); + c.arcTo(w * 0.1274, h * 0.12, 0, 0, 1, w * 0.4358, h * 0.1968); + c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.3937, h * 0.1905); + c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 1, w * 0.3682, h * 0.1707); + c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.3699, h * 0.1414); + c.arcTo(w * 0.0775, h * 0.0731, 0, 0, 1, w * 0.4009, h * 0.118); + c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.4524, h * 0.1059); + c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.5028, h * 0.1112); + c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 1, w * 0.531, h * 0.1315); + c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.531, h * 0.1597); + c.lineTo(w * 0.5615, h * 0.1754); + c.lineTo(w * 0.5526, h * 0.1905); + c.lineTo(w * 0.5759, h * 0.1999); + c.lineTo(w * 0.5753, h * 0.2109); + c.lineTo(w * 0.5792, h * 0.2161); + c.lineTo(w * 0.6135, h * 0.2182); + c.lineTo(w * 0.6113, h * 0.2416); + c.lineTo(w * 0.5819, h * 0.2474); + c.close(); + c.moveTo(w * 0.4756, h * 0.1816); + c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.5, h * 0.1691); + c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 0, w * 0.5144, h * 0.1435); + c.arcTo(w * 0.0277, h * 0.0261, 0, 0, 0, w * 0.4967, h * 0.1247); + c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.4729, h * 0.1174); + c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 0, w * 0.4452, h * 0.1169); + c.arcTo(w * 0.0831, h * 0.0783, 0, 0, 0, w * 0.4197, h * 0.1232); + c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.397, h * 0.1357); + c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 0, w * 0.3859, h * 0.1555); + c.arcTo(w * 0.0305, h * 0.0287, 0, 0, 0, w * 0.4053, h * 0.178); + c.arcTo(w * 0.072, h * 0.0678, 0, 0, 0, w * 0.4385, h * 0.1863); + c.arcTo(w * 0.0831, h * 0.0783, 0, 0, 0, w * 0.4596, h * 0.1848); + c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.4756, h * 0.1816); + c.fill(); + c.setStrokeWidth(1.5 * strokeWidth); + c.setLineJoin('round'); + c.setLineCap('round'); + c.begin(); + c.moveTo(w * 0.4939, h * 0.1326); + c.lineTo(w * 0.4474, h * 0.1508); + c.lineTo(w * 0.4812, h * 0.1576); + c.moveTo(w * 0.4889, h * 0.1733); + c.lineTo(w * 0.4939, h * 0.1775); + c.moveTo(w * 0.5061, h * 0.1576); + c.lineTo(w * 0.5199, h * 0.1597); + c.moveTo(w * 0.5094, h * 0.1394); + c.lineTo(w * 0.5244, h * 0.1378); + c.moveTo(w * 0.4945, h * 0.1247); + c.lineTo(w * 0.4994, h * 0.1185); + c.moveTo(w * 0.4679, h * 0.1175); + c.lineTo(w * 0.4707, h * 0.1117); + c.moveTo(w * 0.4396, h * 0.1195); + c.lineTo(w * 0.4374, h * 0.1138); + c.moveTo(w * 0.412, h * 0.1284); + c.lineTo(w * 0.4059, h * 0.1232); + c.moveTo(w * 0.3948, h * 0.1441); + c.lineTo(w * 0.3804, h * 0.1425); + c.moveTo(w * 0.3931, h * 0.1608); + c.lineTo(w * 0.3804, h * 0.1649); + c.moveTo(w * 0.4059, h * 0.1754); + c.lineTo(w * 0.3998, h * 0.1801); + c.moveTo(w * 0.4308, h * 0.1822); + c.lineTo(w * 0.4286, h * 0.1884); + c.moveTo(w * 0.4618, h * 0.1827); + c.lineTo(w * 0.4635, h * 0.1868); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(0, h * 0.7281); + c.lineTo(w * 0.1667, h * 0.5444); + c.lineTo(w * 0.1667, h * 0.1832); + c.lineTo(w * 0.5011, 0); + c.lineTo(w * 0.8333, h * 0.1832); + c.lineTo(w * 0.8333, h * 0.5446); + c.lineTo(w, h * 0.7281); + c.lineTo(w * 0.7486, h * 0.7735); + c.lineTo(w * 0.5819, h * 0.8617); + c.lineTo(w * 0.5011, h); + c.lineTo(w * 0.4169, h * 0.8653); + c.lineTo(w * 0.2475, h * 0.7704); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dSecurityTokenService.prototype.cst.SECURITY_TOKEN_SERVICE, mxShapeAws3dSecurityTokenService); + +function mxShapeAws3dGlacier(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dGlacier, mxShape); +mxShapeAws3dGlacier.prototype.cst = { + GLACIER: 'mxgraph.aws3d.glacier', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dGlacier.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 180; + var strokeWidth2 = strokeWidth * h / 192; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dGlacier.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.8177); + c.lineTo(0, h * 0.5448); + c.lineTo(w * 0.168, h * 0.1792); + c.lineTo(w * 0.5008, 0); + c.lineTo(w * 0.8309, h * 0.1812); + c.lineTo(w, h * 0.5469); + c.lineTo(w, h * 0.8188); + c.lineTo(w * 0.6661, h); + c.lineTo(w * 0.3333, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dGlacier.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dGlacier.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.1658, h * 0.1802); + c.lineTo(w * 0.5008, h * 0.3651); + c.lineTo(w * 0.6661, h * 0.9089); + c.lineTo(w * 0.6661, h); + c.lineTo(w * 0.3339, h); + c.lineTo(0, h * 0.8177); + c.lineTo(0, h * 0.5427); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5008, h * 0.362); + c.lineTo(w * 0.8314, h * 0.1823); + c.lineTo(w, h * 0.5469); + c.lineTo(w, h * 0.8177); + c.lineTo(w * 0.6661, h); + c.lineTo(w * 0.6661, h * 0.9089); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.1658, h * 0.1802); + c.lineTo(w * 0.5008, h * 0.3651); + c.lineTo(w * 0.6661, h * 0.9089); + c.lineTo(w * 0.6661, h); + c.lineTo(w * 0.3339, h); + c.lineTo(0, h * 0.8177); + c.lineTo(0, h * 0.5427); + c.close(); + c.moveTo(w * 0.5008, h * 0.362); + c.lineTo(w * 0.8314, h * 0.1823); + c.lineTo(w, h * 0.5469); + c.lineTo(w, h * 0.8177); + c.lineTo(w * 0.6661, h); + c.lineTo(w * 0.6661, h * 0.9089); + c.close(); + c.moveTo(w * 0.1675, h * 0.1797); + c.lineTo(0, h * 0.7281); + c.lineTo(w * 0.3284, h * 0.9089); + c.lineTo(w * 0.6661, h * 0.9089); + c.lineTo(w, h * 0.7266); + c.lineTo(w * 0.8309, h * 0.1823); + c.moveTo(w * 0.5003, h * 0.362); + c.lineTo(w * 0.3311, h * 0.9089); + c.lineTo(w * 0.3311, h); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(0, h * 0.8177); + c.lineTo(0, h * 0.5448); + c.lineTo(w * 0.168, h * 0.1792); + c.lineTo(w * 0.5008, 0); + c.lineTo(w * 0.8309, h * 0.1812); + c.lineTo(w, h * 0.5469); + c.lineTo(w, h * 0.8188); + c.lineTo(w * 0.6661, h); + c.lineTo(w * 0.3333, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dGlacier.prototype.cst.GLACIER, mxShapeAws3dGlacier); + +function mxShapeAws3dCustomerGateway(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dCustomerGateway, mxShape); +mxShapeAws3dCustomerGateway.prototype.cst = { + CUSTOMER_GATEWAY: 'mxgraph.aws3d.customerGateway', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dCustomerGateway.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 116.7; + var strokeWidth2 = strokeWidth * h / 102.8; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dCustomerGateway.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.8946, 0); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6812, h * 0.7247); + c.close(); + c.fillAndStroke(); + c.restore(); + c.save(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCustomerGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.6838, h * 0.2072); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.6838, h * 0.2072); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.6838, h * 0.2072); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.stroke(); + c.restore(); + c.setLineJoin('round'); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.6838, h * 0.2072); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.8946, 0); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6812, h * 0.7247); + c.close(); + c.stroke(); + c.restore(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.3171, h * 0.1031); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.lineTo(w * 0.1054, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dCustomerGateway.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setShadow(false); + c.setLineJoin('round'); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCustomerGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.1054, h); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.1054, h); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.1054, h); + c.close(); + c.stroke(); + c.begin(); + c.moveTo(w * 0.1054, h); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.close(); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.3171, h * 0.1031); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.lineTo(w * 0.1054, h); + c.close(); + c.stroke(); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.7575, h * 0.3969); + c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.7686, h * 0.3259); + c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.8055, h * 0.2481); + c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.8406, h * 0.2091); + c.lineTo(w * 0.8269, h * 0.2665); + c.lineTo(w * 0.8372, h * 0.2607); + c.lineTo(w * 0.8372, h * 0.3444); + c.lineTo(w * 0.7832, h * 0.3804); + c.lineTo(w * 0.7832, h * 0.3658); + c.close(); + c.moveTo(w * 0.8466, h * 0.2082); + c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.8766, h * 0.1955); + c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.9186, h * 0.2286); + c.arcTo(w * 0.12, h * 0.1362, 0, 0, 1, w * 0.9297, h * 0.2821); + c.lineTo(w * 0.9006, h * 0.2831); + c.lineTo(w * 0.9006, h * 0.3016); + c.lineTo(w * 0.85, h * 0.3366); + c.lineTo(w * 0.85, h * 0.251); + c.lineTo(w * 0.8586, h * 0.2471); + c.close(); + c.moveTo(w * 0.9297, h * 0.2967); + c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.9195, h * 0.3667); + c.arcTo(w * 0.2571, h * 0.2918, 0, 0, 1, w * 0.8869, h * 0.4436); + c.arcTo(w * 0.1714, h * 0.1946, 0, 0, 1, w * 0.8466, h * 0.4903); + c.lineTo(w * 0.8595, h * 0.4358); + c.lineTo(w * 0.8492, h * 0.4416); + c.lineTo(w * 0.8492, h * 0.357); + c.lineTo(w * 0.9006, h * 0.32004); + c.lineTo(w * 0.9006, h * 0.3346); + c.close(); + c.moveTo(w * 0.838, h * 0.4942); + c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.8072, h * 0.5049); + c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.7712, h * 0.4815); + c.arcTo(w * 0.1714, h * 0.1946, 0, 0, 1, w * 0.7566, h * 0.4163); + c.lineTo(w * 0.7832, h * 0.4173); + c.lineTo(w * 0.7832, h * 0.4008); + c.lineTo(w * 0.8372, h * 0.3638); + c.lineTo(w * 0.8372, h * 0.4494); + c.lineTo(w * 0.8278, h * 0.4562); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dCustomerGateway.prototype.cst.CUSTOMER_GATEWAY, mxShapeAws3dCustomerGateway); + +function mxShapeAws3dRedshift(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dRedshift, mxShape); +mxShapeAws3dRedshift.prototype.cst = { + REDSHIFT: 'mxgraph.aws3d.redshift', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dRedshift.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 149.5; + var strokeWidth2 = strokeWidth * h / 187.5; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dRedshift.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.6517); + c.lineTo(0, h * 0.0912); + c.lineTo(w * 0.0368, h * 0.0155); + c.lineTo(w * 0.2047, 0); + c.lineTo(w * 0.3378, h * 0.0619); + c.lineTo(w * 0.3378, h * 0.0912); + c.lineTo(w * 0.3819, h * 0.0693); + c.lineTo(w * 0.6154, h * 0.0693); + c.lineTo(w * 0.8502, h * 0.1776); + c.lineTo(w * 0.8502, h * 0.3083); + c.lineTo(w * 0.8682, h * 0.3061); + c.lineTo(w, h * 0.3664); + c.lineTo(w, h * 0.9099); + c.lineTo(w * 0.9672, h * 0.9861); + c.lineTo(w * 0.7926, h); + c.lineTo(w * 0.6629, h * 0.9392); + c.lineTo(w * 0.6629, h * 0.9099); + c.lineTo(w * 0.6167, h * 0.9317); + c.lineTo(w * 0.3813, h * 0.9317); + c.lineTo(w * 0.1478, h * 0.8219); + c.lineTo(w * 0.1478, h * 0.7093); + c.lineTo(w * 0.1365, h * 0.7163); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dRedshift.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRedshift.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.6541); + c.lineTo(0, h * 0.0933); + c.lineTo(w * 0.1371, h * 0.1573); + c.lineTo(w * 0.1371, h * 0.7157); + c.close(); + c.moveTo(w * 0.1485, h * 0.8219); + c.lineTo(w * 0.1485, h * 0.2864); + c.lineTo(w * 0.3846, h * 0.3941); + c.lineTo(w * 0.3846, h * 0.9317); + c.close(); + c.moveTo(w * 0.6642, h * 0.9392); + c.lineTo(w * 0.6642, h * 0.4011); + c.lineTo(w * 0.796, h * 0.4597); + c.lineTo(w * 0.796, h); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.1371, h * 0.7157); + c.lineTo(w * 0.1371, h * 0.1568); + c.lineTo(w * 0.2027, h * 0.1525); + c.lineTo(w * 0.1498, h * 0.1771); + c.lineTo(w * 0.1498, h * 0.7061); + c.close(); + c.moveTo(w * 0.3846, h * 0.3941); + c.lineTo(w * 0.614, h * 0.3941); + c.lineTo(w * 0.6809, h * 0.3632); + c.lineTo(w * 0.6642, h * 0.4); + c.lineTo(w * 0.6642, h * 0.9067); + c.lineTo(w * 0.6191, h * 0.9317); + c.lineTo(w * 0.3833, h * 0.9317); + c.close(); + c.moveTo(w * 0.796, h * 0.4608); + c.lineTo(w * 0.9639, h * 0.4469); + c.lineTo(w, h * 0.3691); + c.lineTo(w, h * 0.9077); + c.lineTo(w * 0.9686, h * 0.9856); + c.lineTo(w * 0.796, h); + c.close(); + c.moveTo(w * 0.3378, h * 0.0608); + c.lineTo(w * 0.3378, h * 0.0907); + c.lineTo(w * 0.3197, h * 0.1008); + c.close(); + c.moveTo(w * 0.8502, h * 0.2843); + c.lineTo(w * 0.8502, h * 0.3083); + c.lineTo(w * 0.794, h * 0.3136); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.6541); + c.lineTo(0, h * 0.0933); + c.lineTo(w * 0.1371, h * 0.1573); + c.lineTo(w * 0.1371, h * 0.7157); + c.close(); + c.moveTo(w * 0.1485, h * 0.8219); + c.lineTo(w * 0.1485, h * 0.2864); + c.lineTo(w * 0.3846, h * 0.3941); + c.lineTo(w * 0.3846, h * 0.9317); + c.close(); + c.moveTo(w * 0.6642, h * 0.9392); + c.lineTo(w * 0.6642, h * 0.4011); + c.lineTo(w * 0.796, h * 0.4597); + c.lineTo(w * 0.796, h); + c.close(); + c.moveTo(w * 0.1371, h * 0.7157); + c.lineTo(w * 0.1371, h * 0.1568); + c.lineTo(w * 0.2027, h * 0.1525); + c.lineTo(w * 0.1498, h * 0.1771); + c.lineTo(w * 0.1498, h * 0.7061); + c.close(); + c.moveTo(w * 0.3846, h * 0.3941); + c.lineTo(w * 0.614, h * 0.3941); + c.lineTo(w * 0.6809, h * 0.3632); + c.lineTo(w * 0.6642, h * 0.4); + c.lineTo(w * 0.6642, h * 0.9067); + c.lineTo(w * 0.6191, h * 0.9317); + c.lineTo(w * 0.3833, h * 0.9317); + c.close(); + c.moveTo(w * 0.796, h * 0.4608); + c.lineTo(w * 0.9639, h * 0.4469); + c.lineTo(w, h * 0.3691); + c.lineTo(w, h * 0.9077); + c.lineTo(w * 0.9686, h * 0.9856); + c.lineTo(w * 0.796, h); + c.close(); + c.moveTo(w * 0.3378, h * 0.0608); + c.lineTo(w * 0.3378, h * 0.0907); + c.lineTo(w * 0.3197, h * 0.1008); + c.close(); + c.moveTo(w * 0.8502, h * 0.2843); + c.lineTo(w * 0.8502, h * 0.3083); + c.lineTo(w * 0.794, h * 0.3136); + c.close(); + c.moveTo(w * 0.6167, h * 0.3941); + c.lineTo(w * 0.6167, h * 0.9317); + c.moveTo(w * 0.9652, h * 0.4448); + c.lineTo(w * 0.9652, h * 0.9851); + c.stroke(); + c.restore(); + c.setShadow(false); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.4903, h * 0.1259); + c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.5023, h * 0.1189); + c.arcTo(w * 0.2007, h * 0.16, 0, 0, 1, w * 0.5639, h * 0.1333); + c.arcTo(w * 0.602, h * 0.48, 0, 0, 1, w * 0.7157, h * 0.2005); + c.arcTo(w * 0.2006, h * 0.16, 0, 0, 1, w * 0.7565, h * 0.2315); + c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.7445, h * 0.2421); + c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 1, w * 0.6742, h * 0.2251); + c.arcTo(w * 0.602, h * 0.48, 0, 0, 1, w * 0.5204, h * 0.1541); + c.arcTo(w * 0.1338, h * 0.1067, 0, 0, 1, w * 0.4903, h * 0.1259); + c.close(); + c.moveTo(w * 0.4789, h * 0.1275); + c.arcTo(w * 0.0334, h * 0.0267, 0, 0, 0, w * 0.487, h * 0.1461); + c.arcTo(w * 0.1672, h * 0.1333, 0, 0, 0, w * 0.5237, h * 0.1728); + c.arcTo(w * 0.6689, h * 0.5333, 0, 0, 0, w * 0.6609, h * 0.2352); + c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 0, w * 0.7244, h * 0.2501); + c.arcTo(w * 0.0201, h * 0.016, 0, 0, 0, w * 0.7411, h * 0.2475); + c.lineTo(w * 0.5385, h * 0.3408); + c.arcTo(w * 0.0669, h * 0.05333, 0, 0, 1, w * 0.512, h * 0.3397); + c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 1, w * 0.4548, h * 0.3248); + c.arcTo(w * 0.6689, h * 0.5333, 0, 0, 1, w * 0.3084, h * 0.2565); + c.arcTo(w * 0.1672, h * 0.1333, 0, 0, 1, w * 0.2776, h * 0.2304); + c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.2776, h * 0.2197); + c.close(); + c.fill(); + var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff'); + c.setFillColor(fillColor); + c.setLineJoin('round'); + c.setLineCap('round'); + c.begin(); + c.moveTo(w * 0.3398, h * 0.2421); + c.lineTo(w * 0.4769, h * 0.1797); + c.lineTo(w * 0.6341, h * 0.2512); + c.lineTo(w * 0.4936, h * 0.3147); + c.fill(); + c.begin(); + c.moveTo(w * 0.4334, h * 0.1941); + c.lineTo(w * 0.6207, h * 0.2811); + c.moveTo(w * 0.5338, h * 0.1995); + c.lineTo(w * 0.3866, h * 0.2688); + c.moveTo(w * 0.5873, h * 0.2235); + c.lineTo(w * 0.4334, h * 0.2955); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(0, h * 0.6517); + c.lineTo(0, h * 0.0912); + c.lineTo(w * 0.0368, h * 0.0155); + c.lineTo(w * 0.2047, 0); + c.lineTo(w * 0.3378, h * 0.0619); + c.lineTo(w * 0.3378, h * 0.0912); + c.lineTo(w * 0.3819, h * 0.0693); + c.lineTo(w * 0.6154, h * 0.0693); + c.lineTo(w * 0.8502, h * 0.1776); + c.lineTo(w * 0.8502, h * 0.3083); + c.lineTo(w * 0.8682, h * 0.3061); + c.lineTo(w, h * 0.3664); + c.lineTo(w, h * 0.9099); + c.lineTo(w * 0.9672, h * 0.9861); + c.lineTo(w * 0.7926, h); + c.lineTo(w * 0.6629, h * 0.9392); + c.lineTo(w * 0.6629, h * 0.9099); + c.lineTo(w * 0.6167, h * 0.9317); + c.lineTo(w * 0.3813, h * 0.9317); + c.lineTo(w * 0.1478, h * 0.8219); + c.lineTo(w * 0.1478, h * 0.7093); + c.lineTo(w * 0.1365, h * 0.7163); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dRedshift.prototype.cst.REDSHIFT, mxShapeAws3dRedshift); + +function mxShapeAws3dLambda(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dLambda, mxShape); +mxShapeAws3dLambda.prototype.cst = { + LAMBDA: 'mxgraph.aws3d.lambda', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dLambda.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 92; + var strokeWidth2 = strokeWidth * h / 109.5; + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dLambda.prototype.background = function (c, x, y, w, h, strokeWidth) { + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.1671); + c.lineTo(w * 0.3424, 0); + c.lineTo(w * 0.663, 0); + c.lineTo(w, h * 0.1671); + c.lineTo(w, h * 0.8365); + c.lineTo(w * 0.663, h); + c.lineTo(w * 0.3424, h); + c.lineTo(0, h * 0.8365); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dLambda.prototype.foreground = function (c, x, y, w, h, strokeWidth) { + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dLambda.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(0, h * 0.3242); + c.lineTo(w * 0.3424, h * 0.4895); + c.lineTo(w * 0.663, h * 0.4895); + c.lineTo(w * 0.663, h); + c.lineTo(w * 0.3424, h); + c.lineTo(0, h * 0.8365); + c.close(); + c.moveTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.close(); + c.moveTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.663, h * 0.4895); + c.lineTo(w, h * 0.3242); + c.lineTo(w, h * 0.8365); + c.lineTo(w * 0.663, h); + c.close(); + c.fill(); + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.3242); + c.lineTo(w * 0.3424, h * 0.4895); + c.lineTo(w * 0.663, h * 0.4895); + c.lineTo(w, h * 0.3242); + c.moveTo(w * 0.3424, h * 0.4895); + c.lineTo(w * 0.3424, h); + c.moveTo(w * 0.663, h * 0.4895); + c.lineTo(w * 0.663, h); + c.stroke(); + c.setFillColor("#5E5E5E"); + c.begin(); + c.moveTo(w * 0.3804, h * 0.1169); + c.arcTo(w * 0.5435, h * 0.4566, 0, 0, 1, w * 0.6087, h * 0.1123); + c.arcTo(w * 0.33804, h * 0.3196, 0, 0, 1, w * 0.725, h * 0.1553); + c.arcTo(w * 0.1304, h * 0.1096, 0, 0, 1, w * 0.7924, h * 0.2402); + c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.725, h * 0.3333); + c.arcTo(w * 0.4416, h * 0.274, 0, 0, 1, w * 0.6087, h * 0.3772); + c.arcTo(w * 0.5435, h * 0.4566, 0, 0, 1, w * 0.3804, h * 0.3708); + c.arcTo(w * 0.3804, h * 0.3196, 0, 0, 1, w * 0.2772, h * 0.3324); + c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.2163, h * 0.2539); + c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.2663, h * 0.1644); + c.arcTo(w * 0.3804, h * 0.3196, 0, 0, 1, w * 0.3804, h * 0.1169); + c.fill(); + c.setFillColor("#ffffff"); + c.begin(); + c.moveTo(w * 0.5565, h * 0.2174); + c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 0, w * 0.5837, h * 0.1945); + c.arcTo(w * 0.0326, h * 0.0274, 0, 0, 0, w * 0.5793, h * 0.1671); + c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 0, w * 0.525, h * 0.1598); + c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 1, w * 0.5543, h * 0.1443); + c.arcTo(w * 0.0761, h * 0.0639, 0, 0, 1, w * 0.6163, h * 0.1662); + c.arcTo(w * 0.0598, h * 0.0502, 0, 0, 1, w * 0.6087, h * 0.2091); + c.lineTo(w * 0.5, h * 0.3032); + c.arcTo(w * 0.0978, h * 0.0822, 0, 0, 0, w * 0.4728, h * 0.3379); + c.arcTo(w * 0.0272, h * 0.0228, 0, 0, 0, w * 0.4924, h * 0.3571); + c.arcTo(w * 0.0326, h * 0.0274, 0, 0, 1, w * 0.4489, h * 0.3571); + c.arcTo(w * 0.038, h * 0.032, 0, 0, 1, w * 0.437, h * 0.3242); + c.arcTo(w * 0.1087, h * 0.0913, 0, 0, 1, w * 0.4674, h * 0.2886); + c.lineTo(w * 0.5141, h * 0.2557); + c.lineTo(w * 0.3185, h * 0.2895); + c.lineTo(w * 0.2641, h * 0.2648); + c.close(); + c.fill(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.begin(); + c.moveTo(0, h * 0.1671); + c.lineTo(w * 0.3424, 0); + c.lineTo(w * 0.663, 0); + c.lineTo(w, h * 0.1671); + c.lineTo(w, h * 0.8365); + c.lineTo(w * 0.663, h); + c.lineTo(w * 0.3424, h); + c.lineTo(0, h * 0.8365); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dLambda.prototype.cst.LAMBDA, mxShapeAws3dLambda); + +function mxShapeAws3dEbs2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws3dEbs2, mxShape); +mxShapeAws3dEbs2.prototype.cst = { + EBS2: 'mxgraph.aws3d.ebs2', + SHADING_COLORS: 'shadingCols' +}; + +mxShapeAws3dEbs2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 92; + var strokeWidth2 = strokeWidth * h / 60; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + c.setShadow(false); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.5276); + c.lineTo(0, h * 0.4188); + c.lineTo(w * 0.071, h * 0.2898); + c.lineTo(w * 0.4033, 0); + c.lineTo(w * 0.9301, h * 0.464); + c.lineTo(w, h * 0.5863); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.close(); + c.fillAndStroke(); + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEbs2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + flipH == '0' ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.071, h * 0.2948); + c.lineTo(w * 0.6011, h * 0.7621); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.lineTo(0, h * 0.5276); + c.lineTo(0, h * 0.4137); + c.close(); + c.fill(); + flipH == '0' ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.6011, h * 0.7655); + c.lineTo(w * 0.9344, h * 0.4724); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.close(); + c.fill(); + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.071, h * 0.2948); + c.lineTo(w * 0.6011, h * 0.7621); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.lineTo(0, h * 0.5276); + c.lineTo(0, h * 0.4137); + c.close(); + c.moveTo(w * 0.6011, h * 0.7655); + c.lineTo(w * 0.9344, h * 0.4724); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.close(); + c.moveTo(w * 0.0033, h * 0.5276); + c.lineTo(w * 0.071, h * 0.2898); + c.moveTo(w * 0.5325, h * 0.9976); + c.lineTo(w * 0.603, h * 0.7593); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setLineCap('round'); + c.begin(); + c.moveTo(w * 0.3388, h * 0.3802); + c.lineTo(w * 0.5027, h * 0.2345); + c.lineTo(w * 0.6667, h * 0.3802); + c.lineTo(w * 0.5027, h * 0.526); + c.close(); + c.moveTo(w * 0.4426, h * 0.3802); + c.lineTo(w * 0.5027, h * 0.3266); + c.lineTo(w * 0.5628, h * 0.3802); + c.lineTo(w * 0.5027, h * 0.4338); + c.close(); + c.moveTo(w * 0.3867, h * 0.3284); + c.lineTo(w * 0.3541, h * 0.2998); + c.moveTo(w * 0.4436, h * 0.2748); + c.lineTo(w * 0.4077, h * 0.2412); + c.moveTo(w * 0.5704, h * 0.2803); + c.lineTo(w * 0.5992, h * 0.2513); + c.moveTo(w * 0.6231, h * 0.3284); + c.lineTo(w * 0.6503, h * 0.3032); + c.moveTo(w * 0.622, h * 0.4338); + c.lineTo(w * 0.6557, h * 0.4606); + c.moveTo(w * 0.5667, h * 0.4845); + c.lineTo(w * 0.5992, h * 0.5156); + c.moveTo(w * 0.4414, h * 0.4874); + c.lineTo(w * 0.412, h * 0.5159); + c.moveTo(w * 0.3889, h * 0.4405); + c.lineTo(w * 0.3607, h * 0.4657); + c.stroke(); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.5276); + c.lineTo(0, h * 0.4188); + c.lineTo(w * 0.071, h * 0.2898); + c.lineTo(w * 0.4033, 0); + c.lineTo(w * 0.9301, h * 0.464); + c.lineTo(w, h * 0.5863); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dEbs2.prototype.cst.EBS2, mxShapeAws3dEbs2); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxAWS4.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxAWS4.js new file mode 100644 index 0000000000000..d21a084a410f6 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxAWS4.js @@ -0,0 +1,243 @@ +"use strict"; + +function mxShapeAws4ProductIcon(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws4ProductIcon, mxShape); +mxShapeAws4ProductIcon.prototype.cst = { + PRODUCT_ICON: 'mxgraph.aws4.productIcon' +}; + +mxShapeAws4ProductIcon.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var opacity = parseFloat(mxUtils.getValue(this.style, 'opacity', '100')); + var op1 = opacity; + var op2 = opacity; + + if (fillColor == 'none') { + op1 = 0; + } + + if (gradientColor == 'none') { + op2 = 0; + } + + var ind = 1; + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', 'none'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fill(); + c.setShadow(false); + var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff'); + var gradientColor = mxUtils.getValue(this.state.style, 'gradientColor', fillColor); + var gradientDir = mxUtils.getValue(this.state.style, 'gradientDirection', 'south'); + c.setFillColor(fillColor); + c.setGradient(fillColor, gradientColor, 0, 0, w, h, gradientDir, op1, op2); + c.begin(); + c.moveTo(ind, ind); + c.lineTo(w - ind, ind); + c.lineTo(w - ind, w - ind); + c.lineTo(ind, w - ind); + c.close(); + c.fill(); + var prIcon = mxUtils.getValue(this.state.style, 'prIcon', ''); + var stencil = mxStencilRegistry.getStencil(prIcon); + + if (stencil != null) { + c.setFillColor(strokeColor); + c.setStrokeColor('none'); + stencil.drawShape(c, this, ind + w * 0.15, ind + w * 0.15, w * 0.7 - 2 * ind, w * 0.7 - 2 * ind); + } +}; + +mxCellRenderer.registerShape(mxShapeAws4ProductIcon.prototype.cst.PRODUCT_ICON, mxShapeAws4ProductIcon); + +function mxShapeAws4ResourceIcon(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws4ResourceIcon, mxShape); +mxShapeAws4ResourceIcon.prototype.cst = { + RESOURCE_ICON: 'mxgraph.aws4.resourceIcon' +}; + +mxShapeAws4ResourceIcon.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fill(); + c.setShadow(false); + var prIcon = mxUtils.getValue(this.state.style, 'resIcon', ''); + var stencil = mxStencilRegistry.getStencil(prIcon); + + if (stencil != null) { + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setStrokeColor('none'); + stencil.drawShape(c, this, w * 0.1, h * 0.1, w * 0.8, h * 0.8); + } +}; + +mxCellRenderer.registerShape(mxShapeAws4ResourceIcon.prototype.cst.RESOURCE_ICON, mxShapeAws4ResourceIcon); + +function mxShapeAws4Group(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws4Group, mxShape); +mxShapeAws4Group.prototype.cst = { + GROUP: 'mxgraph.aws4.group' +}; + +mxShapeAws4Group.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var grStroke = mxUtils.getValue(this.state.style, 'grStroke', '1'); + var size = 25; + + if (this.style != null && mxUtils.getValue(this.style, mxConstants.STYLE_POINTER_EVENTS, '1') == '0') { + c.pointerEvents = false; + } + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + + if (grStroke == '1') { + c.fillAndStroke(); + } else { + c.fill(); + } + + c.pointerEvents = true; + c.setShadow(false); + var grIcon = mxUtils.getValue(this.state.style, 'grIcon', ''); + var stencil = mxStencilRegistry.getStencil(grIcon); + + if (stencil != null) { + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setStrokeColor('none'); + stencil.drawShape(c, this, 0, 0, size, size); + } +}; + +mxCellRenderer.registerShape(mxShapeAws4Group.prototype.cst.GROUP, mxShapeAws4Group); + +function mxShapeAws4GroupCenter(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws4GroupCenter, mxShape); +mxShapeAws4GroupCenter.prototype.cst = { + GROUP_CENTER: 'mxgraph.aws4.groupCenter' +}; + +mxShapeAws4GroupCenter.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var grStroke = mxUtils.getValue(this.state.style, 'grStroke', '1'); + var size = 25; + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + + if (grStroke == '1') { + c.fillAndStroke(); + } else { + c.fill(); + } + + c.setShadow(false); + var grIcon = mxUtils.getValue(this.state.style, 'grIcon', ''); + var stencil = mxStencilRegistry.getStencil(grIcon); + + if (stencil != null) { + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setStrokeColor('none'); + stencil.drawShape(c, this, (w - size) * 0.5, 0, size, size); + } +}; + +mxCellRenderer.registerShape(mxShapeAws4GroupCenter.prototype.cst.GROUP_CENTER, mxShapeAws4GroupCenter); + +function mxShapeAws4Group2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAws4Group2, mxShape); +mxShapeAws4Group2.prototype.cst = { + GROUP2: 'mxgraph.aws4.group2' +}; + +mxShapeAws4Group2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var size = 25; + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(size, 0); + c.lineTo(size, size); + c.lineTo(0, size); + c.close(); + c.fill(); + var grIcon = mxUtils.getValue(this.state.style, 'grIcon', ''); + var stencil = mxStencilRegistry.getStencil(grIcon); + + if (stencil != null) { + c.setFillColor('#ffffff'); + c.setStrokeColor('none'); + stencil.drawShape(c, this, size * 0.1, size * 0.1, size * 0.8, size * 0.8); + } +}; + +mxCellRenderer.registerShape(mxShapeAws4Group2.prototype.cst.GROUP2, mxShapeAws4Group2); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxAndroid.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxAndroid.js new file mode 100644 index 0000000000000..ff6da293bb08a --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxAndroid.js @@ -0,0 +1,1059 @@ +"use strict"; + +function mxShapeAndroidTabBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAndroidTabBar, mxShape); +mxShapeAndroidTabBar.prototype.cst = { + MAIN_TEXT: 'mainText', + SHAPE_TAB_BAR: 'mxgraph.android.tabBar', + TEXT_COLOR: 'textColor', + TEXT_COLOR2: 'textColor2', + STROKE_COLOR2: 'strokeColor2', + FILL_COLOR2: 'fillColor2', + SELECTED: '+', + TEXT_SIZE: 'textSize' +}; + +mxShapeAndroidTabBar.prototype.paintVertexShape = function (c, x, y, w, h) { + var textStrings = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.MAIN_TEXT, '+Tab 1, Tab 2, Tab 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.TEXT_COLOR, 'none'); + var selectedFontColor = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.TEXT_COLOR2, 'none'); + var fontSize = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.TEXT_SIZE, '17').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, 'none'); + var separatorColor = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.STROKE_COLOR2, 'none'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'); + var selectedFillColor = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.FILL_COLOR2, 'none'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var selectedButton = -1; + var labelOffset = 5; + + for (var i = 0; i < buttonNum; i++) { + var buttonText = textStrings[i]; + + if (buttonText.charAt(0) === mxShapeAndroidTabBar.prototype.cst.SELECTED) { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + buttonWidths[i] = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 7); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + c.translate(x, y); + this.background(c, trueW, trueH, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton); + c.setShadow(false); + c.setFontStyle(mxConstants.FONT_BOLD); + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) { + if (i === selectedButton) { + c.setFontColor(selectedFontColor); + } else { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeAndroidTabBar.prototype.background = function (c, w, h, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton) { + c.begin(); + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.setStrokeColor(separatorColor); + c.begin(); + + for (var i = 1; i < buttonNum; i++) { + if (i !== selectedButton && i !== selectedButton + 1) { + var currWidth = 0; + + for (var j = 0; j < i; j++) { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth = currWidth * w / minW; + c.moveTo(currWidth, h * 0.2); + c.lineTo(currWidth, h * 0.8); + } + } + + c.stroke(); + var buttonLeft = 0; + c.setFillColor(selectedFillColor); + + for (var i = 0; i < selectedButton; i++) { + buttonLeft += buttonWidths[i] + 2 * labelOffset; + } + + buttonLeft = buttonLeft * w / minW; + var buttonRight = (buttonWidths[selectedButton] + 2 * labelOffset) * w / minW; + buttonRight += buttonLeft; + c.rect(buttonLeft, 0, buttonRight - buttonLeft, h); + c.fill(); + c.setAlpha(1); + c.setFillColor('#33b5e5'); + c.rect(buttonLeft, h * 0.9, buttonRight - buttonLeft, h * 0.1); + c.fill(); +}; + +mxShapeAndroidTabBar.prototype.buttonText = function (c, w, h, textString, buttonWidth, fontSize, minW, trueW) { + if (textString.charAt(0) === mxShapeAndroidTabBar.prototype.cst.SELECTED) { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, h * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeAndroidTabBar.prototype.cst.SHAPE_TAB_BAR, mxShapeAndroidTabBar); + +function mxShapeAndroidPhone(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAndroidPhone, mxShape); + +mxShapeAndroidPhone.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = 25; + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); + c.setShadow(false); + this.foreground(c, x, y, w, h, rSize); +}; + +mxShapeAndroidPhone.prototype.foreground = function (c, x, y, w, h, rSize) { + c.rect(w * 0.0625, h * 0.15, w * 0.875, h * 0.7); + c.stroke(); + c.ellipse(w * 0.4875, h * 0.04125, w * 0.025, h * 0.0125); + c.stroke(); + c.roundrect(w * 0.375, h * 0.075, w * 0.25, h * 0.01875, w * 0.02, h * 0.01); + c.stroke(); + c.ellipse(w * 0.4, h * 0.875, w * 0.2, h * 0.1); + c.stroke(); + c.roundrect(w * 0.4575, h * 0.905, w * 0.085, h * 0.04375, h * 0.00625, h * 0.00625); + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.android.phone', mxShapeAndroidPhone); + +function mxShapeAndroidStatusBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAndroidStatusBar, mxShape); + +mxShapeAndroidStatusBar.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeAndroidStatusBar.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeAndroidStatusBar.prototype.foreground = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fill(); + c.setFontColor(mxUtils.getValue(this.style, mxConstants.STYLE_FONTCOLOR, '#222222')); + c.setFontSize(mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '5')); + c.text(w - 30, h * 0.5 + 1, 0, 0, '12:00', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFillColor('#444444'); + c.begin(); + c.moveTo(w - 37, h * 0.5 + 6); + c.lineTo(w - 37, h * 0.5 - 5); + c.lineTo(w - 36, h * 0.5 - 5); + c.lineTo(w - 36, h * 0.5 - 6); + c.lineTo(w - 32, h * 0.5 - 6); + c.lineTo(w - 32, h * 0.5 - 5); + c.lineTo(w - 31, h * 0.5 - 5); + c.lineTo(w - 31, h * 0.5 + 6); + c.close(); + c.fill(); + c.setFillColor(mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, 'none')); + c.ellipse(w - 56, h * 0.5 + 2, 2, 2); + c.fillAndStroke(); + c.setStrokeWidth(2); + c.begin(); + c.moveTo(w - 52, h * 0.5 + 1); + c.arcTo(3.5, 3.5, 0, 0, 0, w - 58, h * 0.5 + 1); + c.stroke(); + c.begin(); + c.moveTo(w - 50, h * 0.5 - 1); + c.arcTo(6, 6, 0, 0, 0, w - 60, h * 0.5 - 1); + c.stroke(); + c.setStrokeWidth(1); + c.rect(w - 51, h * 0.5 + 5, 2, 1); + c.fill(); + c.rect(w - 48, h * 0.5 + 2, 2, 4); + c.fill(); + c.rect(w - 45, h * 0.5 - 1, 2, 7); + c.fill(); + c.rect(w - 42, h * 0.5 - 4, 2, 10); + c.fill(); + c.rect(w - 37, h * 0.5 - 2, 6, 8); + c.fill(); +}; + +mxCellRenderer.registerShape('mxgraph.android.statusBar', mxShapeAndroidStatusBar); + +function mxShapeAndroidCheckboxGroup(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAndroidCheckboxGroup, mxShape); +mxShapeAndroidCheckboxGroup.prototype.cst = { + STYLE_TEXTCOLOR2: 'textColor2', + STYLE_STROKECOLOR2: 'strokeColor2', + BUTTON_TEXT: 'buttonText', + SELECTED: '+' +}; + +mxShapeAndroidCheckboxGroup.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var fontColor = mxUtils.getValue(this.style, mxConstants.STYLE_TEXTCOLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8').toString(); + var optionText = mxUtils.getValue(this.style, mxShapeAndroidCheckboxGroup.prototype.cst.BUTTON_TEXT, 'Option 1').toString().split(','); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, 'none'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeAndroidCheckboxGroup.prototype.cst.STYLE_STROKECOLOR2, 'none'); + c.setStrokeColor(strokeColor2); + var optionNum = optionText.length; + var buttonSize = 5; + var lineH = Math.max(fontSize * 1.5, buttonSize); + var maxTextWidth = 0; + var selected = -1; + var labelOffset = 2.5; + var minH = optionNum * lineH; + var trueH = Math.max(h, minH); + + for (var i = 0; i < optionNum; i++) { + var currText = optionText[i]; + + if (currText.charAt(0) === mxShapeAndroidCheckboxGroup.prototype.cst.SELECTED) { + currText = optionText[i].substring(1); + selected = i; + } + + var currWidth = mxUtils.getSizeForString(currText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxTextWidth) { + maxTextWidth = currWidth; + } + } + + var minW = 2 * labelOffset + maxTextWidth + 2 * buttonSize; + var trueW = Math.max(w, minW); + c.roundrect(0, 0, trueW, trueH, 2.5, 2.5); + c.fillAndStroke(); + c.setShadow(false); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.setStrokeColor(strokeColor); + + for (var i = 0; i < optionNum; i++) { + var currHeight = (i * lineH + lineH * 0.5) * trueH / minH; + var currText = optionText[i]; + + if (currText.charAt(0) === mxShapeAndroidCheckboxGroup.prototype.cst.SELECTED) { + currText = optionText[i].substring(1); + selected = i; + } + + c.text(buttonSize * 2 + labelOffset, currHeight, 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var iconX = buttonSize * 0.5; + var iconY = currHeight - buttonSize * 0.5; + + if (selected === i) { + c.rect(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + c.begin(); + c.moveTo(iconX + buttonSize * 0.25, iconY + buttonSize * 0.5); + c.lineTo(iconX + buttonSize * 0.5, iconY + buttonSize * 0.75); + c.lineTo(iconX + buttonSize * 0.75, iconY + buttonSize * 0.25); + c.stroke(); + } else { + c.rect(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + } + + selected = -1; + } +}; + +mxCellRenderer.registerShape('mxgraph.android.checkboxGroup', mxShapeAndroidCheckboxGroup); + +function mxShapeAndroidRadioGroup(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAndroidRadioGroup, mxShape); +mxShapeAndroidRadioGroup.prototype.cst = { + STYLE_TEXTCOLOR2: 'textColor2', + STYLE_STROKECOLOR2: 'strokeColor2', + BUTTON_TEXT: 'buttonText', + SELECTED: '+' +}; + +mxShapeAndroidRadioGroup.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var fontColor = mxUtils.getValue(this.style, mxConstants.STYLE_TEXTCOLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8').toString(); + var optionText = mxUtils.getValue(this.style, mxShapeAndroidRadioGroup.prototype.cst.BUTTON_TEXT, 'Option 1').toString().split(','); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, 'none'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeAndroidRadioGroup.prototype.cst.STYLE_STROKECOLOR2, 'none'); + c.setStrokeColor(strokeColor2); + var optionNum = optionText.length; + var buttonSize = 5; + var lineH = Math.max(fontSize * 1.5, buttonSize); + var maxTextWidth = 0; + var selected = -1; + var labelOffset = 2.5; + var minH = optionNum * lineH; + var trueH = Math.max(h, minH); + + for (var i = 0; i < optionNum; i++) { + var currText = optionText[i]; + + if (currText.charAt(0) === mxShapeAndroidRadioGroup.prototype.cst.SELECTED) { + currText = optionText[i].substring(1); + selected = i; + } + + var currWidth = mxUtils.getSizeForString(currText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxTextWidth) { + maxTextWidth = currWidth; + } + } + + var minW = 2 * labelOffset + maxTextWidth + 2 * buttonSize; + var trueW = Math.max(w, minW); + c.roundrect(0, 0, trueW, trueH, 2.5, 2.5); + c.fillAndStroke(); + c.setShadow(false); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.setStrokeColor(strokeColor); + c.setFillColor(strokeColor); + + for (var i = 0; i < optionNum; i++) { + var currHeight = (i * lineH + lineH * 0.5) * trueH / minH; + var currText = optionText[i]; + + if (currText.charAt(0) === mxShapeAndroidRadioGroup.prototype.cst.SELECTED) { + currText = optionText[i].substring(1); + selected = i; + } + + c.text(buttonSize * 2 + labelOffset, currHeight, 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + var iconX = buttonSize * 0.5; + var iconY = currHeight - buttonSize * 0.5; + + if (selected === i) { + c.ellipse(iconX, iconY, buttonSize, buttonSize); + c.stroke(); + c.ellipse(iconX + buttonSize * 0.25, iconY + buttonSize * 0.25, buttonSize * 0.5, buttonSize * 0.5); + c.fillAndStroke(); + } else { + c.ellipse(iconX, iconY, buttonSize, buttonSize); + c.stroke(); + } + } +}; + +mxCellRenderer.registerShape('mxgraph.android.radioGroup', mxShapeAndroidRadioGroup); + +function mxShapeAndroidMenuBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAndroidMenuBar, mxShape); +mxShapeAndroidMenuBar.prototype.cst = { + MENU_TEXT: 'menuText' +}; + +mxShapeAndroidMenuBar.prototype.paintVertexShape = function (c, x, y, w, h) { + var textStrings = mxUtils.getValue(this.style, mxShapeAndroidMenuBar.prototype.cst.MENU_TEXT, 'Item 1, Item 2, Item 3').toString().split(','); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '12'); + var buttonNum = textStrings.length; + var maxButtonWidth = 0; + var labelOffset = 2.5; + + for (var i = 0; i < buttonNum; i++) { + var buttonText = textStrings[i]; + var currWidth = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxButtonWidth) { + maxButtonWidth = currWidth; + } + } + + var minButtonHeight = fontSize * 1.5; + var minH = buttonNum * minButtonHeight; + var trueH = Math.max(h, minH); + var minW = 2 * labelOffset + maxButtonWidth; + var trueW = Math.max(w, minW); + c.translate(x, y); + c.rect(0, 0, w, trueH); + c.fillAndStroke(); + c.setShadow(false); + c.begin(); + + for (var i = 1; i < buttonNum; i++) { + var currHeight = i * minButtonHeight * trueH / minH; + c.moveTo(0, currHeight); + c.lineTo(w, currHeight); + } + + c.stroke(); + + for (var i = 0; i < buttonNum; i++) { + currWidth = currWidth + labelOffset; + var currHeight = (i * minButtonHeight + minButtonHeight * 0.5) * trueH / minH; + c.text(10, currHeight, 0, 0, textStrings[i], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape('mxgraph.android.menuBar', mxShapeAndroidMenuBar); + +function mxShapeAndroidTextSelHandles(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAndroidTextSelHandles, mxShape); + +mxShapeAndroidTextSelHandles.prototype.paintVertexShape = function (c, x, y, w, h) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, 'none'); + c.translate(x, y); + var handleSizeX = 15; + var barH = Math.max(0, h - handleSizeX * 1.5); + c.setAlpha(0.5); + c.rect(handleSizeX, 0, w - 2 * handleSizeX, barH); + c.fill(); + c.begin(); + c.moveTo(0, h - handleSizeX); + c.lineTo(handleSizeX * 0.5, h - handleSizeX * 1.5); + c.lineTo(handleSizeX, h - handleSizeX); + c.close(); + c.moveTo(w - handleSizeX, h - handleSizeX); + c.lineTo(w - handleSizeX * 0.5, h - handleSizeX * 1.5); + c.lineTo(w, h - handleSizeX); + c.close(); + c.fill(); + c.setFillColor(strokeColor); + c.rect(0, h - handleSizeX, handleSizeX, handleSizeX); + c.fill(); + c.rect(w - handleSizeX, h - handleSizeX, handleSizeX, handleSizeX); + c.fill(); +}; + +mxCellRenderer.registerShape('mxgraph.android.textSelHandles', mxShapeAndroidTextSelHandles); + +function mxShapeAndroidIndeterminateSpinner(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAndroidIndeterminateSpinner, mxShape); + +mxShapeAndroidIndeterminateSpinner.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeAndroidIndeterminateSpinner.prototype.background = function (c, x, y, w, h) { + c.setGradient('#aaaaaa', '#dddddd', w * 0.325, 0, w * 0.675, h * 0.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(w * 0.5, h * 0.1); + c.arcTo(w * 0.4, h * 0.4, 0, 0, 0, w * 0.5, h * 0.9); + c.lineTo(w * 0.5, h); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, w * 0.5, 0); + c.close(); + c.fill(); + c.setGradient('#ffffff', '#dddddd', w * 0.325, 0, w * 0.675, h * 0.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(w * 0.5, h * 0.1); + c.arcTo(w * 0.4, h * 0.4, 0, 0, 1, w * 0.5, h * 0.9); + c.lineTo(w * 0.5, h); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 0, w * 0.5, 0); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape('mxgraph.android.indeterminateSpinner', mxShapeAndroidIndeterminateSpinner); + +function mxShapeAndroidAnchor(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; +} + +; +mxUtils.extend(mxShapeAndroidAnchor, mxShape); +mxShapeAndroidAnchor.prototype.cst = { + ANCHOR: 'mxgraph.android.anchor' +}; + +mxShapeAndroidAnchor.prototype.paintVertexShape = function (c, x, y, w, h) {}; + +mxCellRenderer.registerShape(mxShapeAndroidAnchor.prototype.cst.ANCHOR, mxShapeAndroidAnchor); + +function mxShapeAndroidRRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAndroidRRect, mxShape); +mxShapeAndroidRRect.prototype.cst = { + RRECT: 'mxgraph.android.rrect', + R_SIZE: 'rSize' +}; + +mxShapeAndroidRRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeAndroidRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAndroidRRect.prototype.cst.RRECT, mxShapeAndroidRRect); + +function mxShapeAndroidCheckbox(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAndroidCheckbox, mxShape); +mxShapeAndroidCheckbox.prototype.cst = { + CHECKBOX: 'mxgraph.android.checkbox' +}; + +mxShapeAndroidCheckbox.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8, h * 0.2); + c.lineTo(w * 0.4, h * 0.8); + c.lineTo(w * 0.25, h * 0.6); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAndroidCheckbox.prototype.cst.CHECKBOX, mxShapeAndroidCheckbox); + +function mxShapeAndroidProgressBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx1 = 0.8; + this.dx2 = 0.6; +} + +; +mxUtils.extend(mxShapeAndroidProgressBar, mxShape); +mxShapeAndroidProgressBar.prototype.customProperties = [{ + name: 'dx1', + dispName: 'Middle Bar Length', + type: 'float', + min: 0, + max: 1, + defVal: 0.8 +}, { + name: 'dx2', + dispName: 'Left Bar Length', + type: 'float', + min: 0, + max: 1, + defVal: 0.6 +}]; +mxShapeAndroidProgressBar.prototype.cst = { + PROGRESS_BAR: 'mxgraph.android.progressBar' +}; + +mxShapeAndroidProgressBar.prototype.paintVertexShape = function (c, x, y, w, h) { + var dx1 = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + c.translate(x, y); + c.save(); + c.save(); + c.setStrokeColor('#444444'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + c.restore(); + c.setShadow(false); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(dx1, h * 0.5); + c.stroke(); + c.setStrokeColor('#000000'); + c.setAlpha('0.2'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(dx1, h * 0.5); + c.stroke(); + c.restore(); + c.setShadow(false); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(dx2, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAndroidProgressBar.prototype.cst.PROGRESS_BAR, mxShapeAndroidProgressBar); +mxShapeAndroidProgressBar.prototype.constraints = null; + +Graph.handleFactory[mxShapeAndroidProgressBar.prototype.cst.PROGRESS_BAR] = function (state) { + var handles = [Graph.createHandle(state, ['dx1'], function (bounds) { + var dx1 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + return new mxPoint(bounds.x + dx1 * bounds.width, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['dx2'], function (bounds) { + var dx2 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx1)))); + return new mxPoint(bounds.x + dx2 * bounds.width, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + }); + handles.push(handle2); + return handles; +}; + +function mxShapeAndroidProgressScrubberDisabled(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.3; +} + +; +mxUtils.extend(mxShapeAndroidProgressScrubberDisabled, mxShape); +mxShapeAndroidProgressScrubberDisabled.prototype.customProperties = [{ + name: 'dx', + dispName: 'Handle Position', + type: 'float', + min: 0, + max: 1, + defVal: 0.3 +}]; +mxShapeAndroidProgressScrubberDisabled.prototype.cst = { + PROGRESS_SCRUBBER_DISABLED: 'mxgraph.android.progressScrubberDisabled' +}; + +mxShapeAndroidProgressScrubberDisabled.prototype.paintVertexShape = function (c, x, y, w, h) { + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + c.translate(x, y); + c.save(); + c.save(); + c.setStrokeColor('#444444'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + c.restore(); + c.setShadow(false); + c.setAlpha('0.5'); + c.setFillColor('#666666'); + c.begin(); + var r = Math.min(h, w * 0.1) / 2; + c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r); + c.fill(); + c.restore(); + c.setShadow(false); + c.begin(); + var r = Math.min(h, w * 0.1) / 8; + c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeAndroidProgressScrubberDisabled.prototype.cst.PROGRESS_SCRUBBER_DISABLED, mxShapeAndroidProgressScrubberDisabled); +mxShapeAndroidProgressScrubberDisabled.prototype.constraints = null; + +Graph.handleFactory[mxShapeAndroidProgressScrubberDisabled.prototype.cst.PROGRESS_SCRUBBER_DISABLED] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx * bounds.width, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + return handles; +}; + +function mxShapeAndroidProgressScrubberFocused(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.3; +} + +; +mxUtils.extend(mxShapeAndroidProgressScrubberFocused, mxShape); +mxShapeAndroidProgressScrubberFocused.prototype.customProperties = [{ + name: 'dx', + dispName: 'Handle Position', + type: 'float', + min: 0, + max: 1, + defVal: 0.3 +}]; +mxShapeAndroidProgressScrubberFocused.prototype.cst = { + PROGRESS_SCRUBBER_FOCUSED: 'mxgraph.android.progressScrubberFocused' +}; + +mxShapeAndroidProgressScrubberFocused.prototype.paintVertexShape = function (c, x, y, w, h) { + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var fillColor = mxUtils.getValue(this.style, 'fillColor', '#ffffff'); + c.translate(x, y); + c.save(); + c.save(); + c.setStrokeColor('#444444'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + c.restore(); + c.setShadow(false); + c.setAlpha('0.75'); + c.begin(); + var r = Math.min(h, w * 0.1) / 2; + c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r); + c.fill(); + c.restore(); + c.setShadow(false); + c.setStrokeColor(fillColor); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(dx, h * 0.5); + c.stroke(); + c.begin(); + var r = Math.min(h, w * 0.1) / 8; + c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeAndroidProgressScrubberFocused.prototype.cst.PROGRESS_SCRUBBER_FOCUSED, mxShapeAndroidProgressScrubberFocused); +mxShapeAndroidProgressScrubberFocused.prototype.constraints = null; + +Graph.handleFactory[mxShapeAndroidProgressScrubberFocused.prototype.cst.PROGRESS_SCRUBBER_FOCUSED] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx * bounds.width, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + return handles; +}; + +function mxShapeAndroidProgressScrubberPressed(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.3; +} + +; +mxUtils.extend(mxShapeAndroidProgressScrubberPressed, mxShape); +mxShapeAndroidProgressScrubberPressed.prototype.customProperties = [{ + name: 'dx', + dispName: 'Handle Position', + type: 'float', + min: 0, + max: 1, + defVal: 0.3 +}]; +mxShapeAndroidProgressScrubberPressed.prototype.cst = { + PROGRESS_SCRUBBER_PRESSED: 'mxgraph.android.progressScrubberPressed' +}; + +mxShapeAndroidProgressScrubberPressed.prototype.paintVertexShape = function (c, x, y, w, h) { + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var fillColor = mxUtils.getValue(this.style, 'fillColor', '#ffffff'); + c.translate(x, y); + c.save(); + c.save(); + c.setStrokeColor('#444444'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + c.restore(); + c.setShadow(false); + c.setStrokeColor(fillColor); + c.setAlpha('0.5'); + c.begin(); + var r = Math.min(h, w * 0.1) / 2; + c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r); + c.fillAndStroke(); + c.restore(); + c.setShadow(false); + c.setStrokeColor(fillColor); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(dx, h * 0.5); + c.stroke(); + c.begin(); + var r = Math.min(h, w * 0.1) / 8; + c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeAndroidProgressScrubberPressed.prototype.cst.PROGRESS_SCRUBBER_PRESSED, mxShapeAndroidProgressScrubberPressed); +mxShapeAndroidProgressScrubberPressed.prototype.constraints = null; + +Graph.handleFactory[mxShapeAndroidProgressScrubberPressed.prototype.cst.PROGRESS_SCRUBBER_PRESSED] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx * bounds.width, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + return handles; +}; + +function mxShapeAndroidQuickscroll2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; +} + +; +mxUtils.extend(mxShapeAndroidQuickscroll2, mxShape); +mxShapeAndroidQuickscroll2.prototype.customProperties = [{ + name: 'dy', + dispName: 'Handle Position', + type: 'float', + min: 0, + max: 1, + defVal: 0.5 +}]; +mxShapeAndroidQuickscroll2.prototype.cst = { + QUICKSCROLL: 'mxgraph.android.quickscroll2' +}; + +mxShapeAndroidQuickscroll2.prototype.paintVertexShape = function (c, x, y, w, h) { + var dy = Math.min(h - 20, Math.max(20, h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))))); + var fillColor = mxUtils.getValue(this.style, 'fillColor', '#ffffff'); + c.translate(x, y); + c.save(); + c.save(); + c.setStrokeColor('#cccccc'); + c.begin(); + c.moveTo(w - 3, 0); + c.lineTo(w - 3, h); + c.stroke(); + c.restore(); + c.begin(); + c.roundrect(w - 6, dy - 10, 6, 20, 1, 1); + c.fillAndStroke(); + c.setFillColor('#cccccc'); + c.begin(); + c.rect(0, dy - 20, w - 18, 40); + c.fill(); + c.setFillColor('#666666'); + c.begin(); + c.moveTo(w - 18, dy - 20); + c.lineTo(w - 6, dy); + c.lineTo(w - 18, dy + 20); + c.close(); + c.fill(); + c.setFontSize('12'); + c.text((w - 18) * 0.5, dy, 0, 0, 'Aa', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeAndroidQuickscroll2.prototype.cst.QUICKSCROLL, mxShapeAndroidQuickscroll2); +mxShapeAndroidQuickscroll2.prototype.constraints = null; + +Graph.handleFactory[mxShapeAndroidQuickscroll2.prototype.cst.QUICKSCROLL] = function (state) { + var handles = [Graph.createHandle(state, ['dy'], function (bounds) { + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width - 3, bounds.y + Math.min(bounds.height - 20, Math.max(20, dy * bounds.height))); + }, function (bounds, pt) { + this.state.style['dy'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + })]; + return handles; +}; + +function mxShapeAndroidQuickscroll3(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; +} + +; +mxUtils.extend(mxShapeAndroidQuickscroll3, mxShape); +mxShapeAndroidQuickscroll3.prototype.customProperties = [{ + name: 'dy', + dispName: 'Handle Position', + type: 'float', + min: 0, + max: 1, + defVal: 0.5 +}]; +mxShapeAndroidQuickscroll3.prototype.cst = { + QUICKSCROLL: 'mxgraph.android.quickscroll3' +}; + +mxShapeAndroidQuickscroll3.prototype.paintVertexShape = function (c, x, y, w, h) { + var dy = Math.min(h - 10, Math.max(10, h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))))); + var fillColor = mxUtils.getValue(this.style, 'fillColor', '#ffffff'); + c.translate(x, y); + c.save(); + c.setStrokeColor('#cccccc'); + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.stroke(); + c.restore(); + c.begin(); + c.roundrect(w * 0.5 - 3, dy - 10, 6, 20, 1, 1); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAndroidQuickscroll3.prototype.cst.QUICKSCROLL, mxShapeAndroidQuickscroll3); +mxShapeAndroidQuickscroll3.prototype.constraints = null; + +Graph.handleFactory[mxShapeAndroidQuickscroll3.prototype.cst.QUICKSCROLL] = function (state) { + var handles = [Graph.createHandle(state, ['dy'], function (bounds) { + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width * 0.5, bounds.y + Math.min(bounds.height - 10, Math.max(10, dy * bounds.height))); + }, function (bounds, pt) { + this.state.style['dy'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + })]; + return handles; +}; + +function mxShapeAndroidScrollbars2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAndroidScrollbars2, mxShape); +mxShapeAndroidScrollbars2.prototype.cst = { + SCROLLBARS: 'mxgraph.android.scrollbars2' +}; + +mxShapeAndroidScrollbars2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.rect(w - 5, 0, 5, h - 7); + c.fillAndStroke(); + c.begin(); + c.rect(0, h - 5, w - 7, 5); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAndroidScrollbars2.prototype.cst.SCROLLBARS, mxShapeAndroidScrollbars2); +mxShapeAndroidScrollbars2.prototype.constraints = null; + +function mxShapeAndroidSpinner2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeAndroidSpinner2, mxShape); +mxShapeAndroidSpinner2.prototype.cst = { + SPINNER: 'mxgraph.android.spinner2' +}; + +mxShapeAndroidSpinner2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, h); + c.lineTo(w, h); + c.stroke(); + var s = Math.min(w / 10, h); + c.begin(); + c.moveTo(w - s, h); + c.lineTo(w, h - s); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAndroidSpinner2.prototype.cst.SPINNER, mxShapeAndroidSpinner2); +mxShapeAndroidSpinner2.prototype.constraints = null; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxArchiMate.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxArchiMate.js new file mode 100644 index 0000000000000..9e26eaa5de0d9 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxArchiMate.js @@ -0,0 +1,995 @@ +"use strict"; + +function mxArchiMateLocation(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMateLocation, mxShape); +mxArchiMateLocation.prototype.cst = { + LOCATION: 'mxgraph.archimate.location' +}; + +mxArchiMateLocation.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMateLocation.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMateLocation.prototype.foreground = function (c, x, y, w, h) { + c.setDashed(false); + c.translate(3, 0); + w = w - 6; + c.begin(); + c.moveTo(w * 0.5, h); + c.arcTo(w * 0.1775, h * 0.3, 0, 0, 0, w * 0.345, h * 0.7); + c.arcTo(w * 0.538, h * 0.364, 0, 0, 1, w * 0.5, 0); + c.arcTo(w * 0.538, h * 0.364, 0, 0, 1, w * 0.655, h * 0.7); + c.arcTo(w * 0.1775, h * 0.3, 0, 0, 0, w * 0.5, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMateLocation.prototype.cst.LOCATION, mxArchiMateLocation); + +mxArchiMateLocation.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMateBusiness(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMateBusiness, mxShape); +mxArchiMateBusiness.prototype.cst = { + BUSINESS: 'mxgraph.archimate.business', + TYPE: 'busType', + PROCESS: 'process', + FUNCTION: 'function', + INTERACTION: 'interaction', + EVENT: 'event', + SERVICE: 'service' +}; +mxArchiMateBusiness.prototype.customProperties = [{ + name: 'busType', + dispName: 'Business Type', + type: 'enum', + enumList: [{ + val: 'process', + dispName: 'Process' + }, { + val: 'function', + dispName: 'Function' + }, { + val: 'interaction', + dispName: 'Interaction' + }, { + val: 'event', + dispName: 'Event' + }, { + val: 'service', + dispName: 'Service' + }] +}]; + +mxArchiMateBusiness.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMateBusiness.prototype.background = function (c, x, y, w, h) { + c.roundrect(0, 0, w, h, 10, 10); + c.fillAndStroke(); +}; + +mxArchiMateBusiness.prototype.foreground = function (c, x, y, w, h) { + var type = mxUtils.getValue(this.style, mxArchiMateBusiness.prototype.cst.TYPE, mxArchiMateBusiness.prototype.cst.PROCESS); + c.setDashed(false); + + if (type === mxArchiMateBusiness.prototype.cst.PROCESS) { + c.translate(0, 2); + h = h - 4; + c.begin(); + c.moveTo(0, h * 0.15); + c.lineTo(w * 0.65, h * 0.15); + c.lineTo(w * 0.65, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.65, h); + c.lineTo(w * 0.65, h * 0.85); + c.lineTo(0, h * 0.85); + c.close(); + c.stroke(); + } else if (type === mxArchiMateBusiness.prototype.cst.FUNCTION) { + c.translate(2, 0); + w = w - 4; + c.begin(); + c.moveTo(0, h * 0.15); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.15); + c.lineTo(w, h); + c.lineTo(w * 0.5, h * 0.85); + c.lineTo(0, h); + c.close(); + c.stroke(); + } else if (type === mxArchiMateBusiness.prototype.cst.INTERACTION) { + c.begin(); + c.moveTo(w * 0.55, 0); + c.arcTo(w * 0.45, h * 0.5, 0, 0, 1, w * 0.55, h); + c.close(); + c.moveTo(w * 0.45, 0); + c.arcTo(w * 0.45, h * 0.5, 0, 0, 0, w * 0.45, h); + c.close(); + c.stroke(); + } else if (type === mxArchiMateBusiness.prototype.cst.EVENT) { + c.translate(0, 3); + h = h - 6; + c.begin(); + c.moveTo(w - h * 0.5, 0); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, w - h * 0.5, h); + c.lineTo(0, h); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 0, 0, 0); + c.close(); + c.stroke(); + } else if (type === mxArchiMateBusiness.prototype.cst.SERVICE) { + c.translate(0, 3); + h = h - 6; + c.begin(); + c.moveTo(w - h * 0.5, 0); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, w - h * 0.5, h); + c.lineTo(0, h); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, 0, 0); + c.close(); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxArchiMateBusiness.prototype.cst.BUSINESS, mxArchiMateBusiness); + +mxArchiMateBusiness.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -2.9, -2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, 2.9, -2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMateBusinessObject(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMateBusinessObject, mxShape); +mxArchiMateBusinessObject.prototype.cst = { + BUSINESS_OBJECT: 'mxgraph.archimate.businessObject' +}; + +mxArchiMateBusinessObject.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + this.foreground(c, 0, 0, w, h); +}; + +mxArchiMateBusinessObject.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMateBusinessObject.prototype.foreground = function (c, x, y, w, h) { + if (h >= 15) { + c.begin(); + c.moveTo(0, 15); + c.lineTo(w, 15); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxArchiMateBusinessObject.prototype.cst.BUSINESS_OBJECT, mxArchiMateBusinessObject); + +mxArchiMateBusinessObject.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -2.9, -2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, 2.9, -2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMateRepresentation(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMateRepresentation, mxShape); +mxArchiMateRepresentation.prototype.cst = { + REPRESENTATION: 'mxgraph.archimate.representation' +}; + +mxArchiMateRepresentation.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); +}; + +mxArchiMateRepresentation.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 0, w * 0.5, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 1, 0, h * 0.85); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMateRepresentation.prototype.cst.REPRESENTATION, mxArchiMateRepresentation); + +mxArchiMateRepresentation.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.85), false, null)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.745), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.955), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMateProduct(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMateProduct, mxShape); +mxArchiMateProduct.prototype.cst = { + PRODUCT: 'mxgraph.archimate.product' +}; + +mxArchiMateProduct.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + this.foreground(c, 0, 0, w, h); +}; + +mxArchiMateProduct.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMateProduct.prototype.foreground = function (c, x, y, w, h) { + if (h >= 15) { + c.begin(); + c.moveTo(0, 15); + c.lineTo(w * 0.6, 15); + c.lineTo(w * 0.6, 0); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxArchiMateProduct.prototype.cst.PRODUCT, mxArchiMateProduct); + +function mxArchiMateApplication(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMateApplication, mxShape); +mxArchiMateApplication.prototype.cst = { + APPLICATION: 'mxgraph.archimate.application', + TYPE: 'appType', + COMPONENT: 'comp', + INTERFACE: 'interface', + INTERFACE2: 'interface2', + FUNCTION: 'function', + INTERACTION: 'interaction', + SERVICE: 'service', + NODE: 'node', + NETWORK: 'network', + COMM_PATH: 'commPath', + SYS_SW: 'sysSw', + ARTIFACT: 'artifact', + ACTOR: 'actor', + ROLE: 'role', + COLLABORATION: 'collab' +}; +mxArchiMateApplication.prototype.customProperties = [{ + name: 'appType', + dispName: 'App Type', + type: 'enum', + enumList: [{ + val: 'comp', + dispName: 'Component' + }, { + val: 'interface', + dispName: 'Interface' + }, { + val: 'interface2', + dispName: 'Interface2' + }, { + val: 'function', + dispName: 'Function' + }, { + val: 'interaction', + dispName: 'Interaction' + }, { + val: 'service', + dispName: 'Service' + }, { + val: 'node', + dispName: 'Node' + }, { + val: 'network', + dispName: 'Network' + }, { + val: 'commPath', + dispName: 'Comm Path' + }, { + val: 'artifact', + dispName: 'Artifact' + }, { + val: 'sysSw', + dispName: 'System Sw' + }, { + val: 'path', + dispName: 'Path' + }, { + val: 'actor', + dispName: 'Actor' + }, { + val: 'role', + dispName: 'Role' + }, { + val: 'collab', + dispName: 'Collaboration' + }] +}]; + +mxArchiMateApplication.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMateApplication.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMateApplication.prototype.foreground = function (c, x, y, w, h) { + var type = mxUtils.getValue(this.style, mxArchiMateApplication.prototype.cst.TYPE, mxArchiMateApplication.prototype.cst.COMPONENT); + c.setDashed(false); + + if (type === mxArchiMateApplication.prototype.cst.COMPONENT) { + c.translate(1, 0); + w = w - 2; + c.rect(w * 0.25, 0, w * 0.75, h); + c.stroke(); + c.rect(0, h * 0.25, w * 0.5, h * 0.15); + c.fillAndStroke(); + c.rect(0, h * 0.6, w * 0.5, h * 0.15); + c.fillAndStroke(); + } else if (type === mxArchiMateApplication.prototype.cst.COLLABORATION) { + c.translate(0, 3); + h = h - 6; + c.ellipse(0, 0, w * 0.6, h); + c.stroke(); + c.ellipse(w * 0.4, 0, w * 0.6, h); + c.fillAndStroke(); + } else if (type === mxArchiMateApplication.prototype.cst.INTERFACE) { + c.translate(0, 4); + h = h - 8; + c.ellipse(w * 0.5, 0, w * 0.5, h); + c.stroke(); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, h * 0.5); + c.stroke(); + } else if (type === mxArchiMateApplication.prototype.cst.INTERFACE2) { + c.translate(0, 1); + h = h - 2; + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.6, h * 0.5); + c.moveTo(w, 0); + c.arcTo(w * 0.4, h * 0.5, 0, 0, 0, w, h); + c.stroke(); + } else if (type === mxArchiMateApplication.prototype.cst.FUNCTION) { + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w, h * 0.2); + c.lineTo(w, h); + c.lineTo(w * 0.5, h * 0.8); + c.lineTo(0, h); + c.lineTo(0, h * 0.2); + c.close(); + c.stroke(); + } else if (type === mxArchiMateApplication.prototype.cst.INTERACTION) { + c.begin(); + c.moveTo(w * 0.55, 0); + c.arcTo(w * 0.45, h * 0.5, 0, 0, 1, w * 0.55, h); + c.close(); + c.moveTo(w * 0.45, 0); + c.arcTo(w * 0.45, h * 0.5, 0, 0, 0, w * 0.45, h); + c.close(); + c.stroke(); + } else if (type === mxArchiMateApplication.prototype.cst.SERVICE) { + c.translate(0, 3); + h = h - 6; + c.begin(); + c.moveTo(w - h * 0.5, 0); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, w - h * 0.5, h); + c.lineTo(0, h); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, 0, 0); + c.close(); + c.stroke(); + } else if (type === mxArchiMateApplication.prototype.cst.NODE) { + c.begin(); + c.moveTo(0, h * 0.25); + c.lineTo(w * 0.25, 0); + c.lineTo(w, 0); + c.lineTo(w, h * 0.75); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.moveTo(0, h * 0.25); + c.lineTo(w * 0.75, h * 0.25); + c.lineTo(w * 0.75, h); + c.moveTo(w, 0); + c.lineTo(w * 0.75, h * 0.25); + c.stroke(); + } else if (type === mxArchiMateApplication.prototype.cst.NETWORK) { + c.translate(0, 2); + h = h - 4; + c.begin(); + c.moveTo(w * 0.4, h * 0.2); + c.lineTo(w * 0.85, h * 0.2); + c.lineTo(w * 0.6, h * 0.8); + c.lineTo(w * 0.15, h * 0.8); + c.close(); + c.stroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.ellipse(w * 0.25, 0, w * 0.3, h * 0.4); + c.fill(); + c.ellipse(w * 0.7, 0, w * 0.3, h * 0.4); + c.fill(); + c.ellipse(0, h * 0.6, w * 0.3, h * 0.4); + c.fill(); + c.ellipse(w * 0.45, h * 0.6, w * 0.3, h * 0.4); + c.fill(); + } else if (type === mxArchiMateApplication.prototype.cst.COMM_PATH) { + c.translate(0, 5); + h = h - 10; + c.begin(); + c.moveTo(w * 0.1, 0); + c.lineTo(0, h * 0.5); + c.lineTo(w * 0.1, h); + c.moveTo(w * 0.9, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.9, h); + c.stroke(); + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } else if (type === mxArchiMateApplication.prototype.cst.SYS_SW) { + c.ellipse(w * 0.3, 0, w * 0.7, h * 0.7); + c.stroke(); + c.ellipse(0, h * 0.02, w * 0.98, h * 0.98); + c.fillAndStroke(); + } else if (type === mxArchiMateApplication.prototype.cst.ARTIFACT) { + c.translate(2, 0); + w = w - 4; + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.7, 0); + c.lineTo(w, h * 0.22); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.moveTo(w * 0.7, 0); + c.lineTo(w * 0.7, h * 0.22); + c.lineTo(w, h * 0.22); + c.stroke(); + } else if (type === mxArchiMateApplication.prototype.cst.ACTOR) { + c.translate(3, 0); + w = w - 6; + c.ellipse(w * 0.2, 0, w * 0.6, h * 0.3); + c.stroke(); + c.begin(); + c.moveTo(w * 0.5, h * 0.3); + c.lineTo(w * 0.5, h * 0.75); + c.moveTo(0, h * 0.45); + c.lineTo(w, h * 0.45); + c.moveTo(0, h); + c.lineTo(w * 0.5, h * 0.75); + c.lineTo(w, h); + c.stroke(); + } + + if (type === mxArchiMateApplication.prototype.cst.ROLE) { + c.translate(0, 4); + h = h - 8; + c.begin(); + c.moveTo(w * 0.8, 0); + c.lineTo(w * 0.2, 0); + c.arcTo(w * 0.2, h * 0.5, 0, 0, 0, w * 0.2, h); + c.lineTo(w * 0.8, h); + c.stroke(); + c.ellipse(w * 0.6, 0, w * 0.4, h); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxArchiMateApplication.prototype.cst.APPLICATION, mxArchiMateApplication); + +mxArchiMateApplication.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMateTech(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMateTech, mxShape); +mxArchiMateTech.prototype.cst = { + TECH: 'mxgraph.archimate.tech', + TYPE: 'techType', + DEVICE: 'device', + PLATEAU: 'plateau' +}; +mxArchiMateTech.prototype.customProperties = [{ + name: 'techType', + dispName: 'Tech Type', + type: 'enum', + enumList: [{ + val: 'device', + dispName: 'Device' + }, { + val: 'plateau', + dispName: 'Plateau' + }] +}]; + +mxArchiMateTech.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 30, 15); + this.foreground(c, w - 30, 15, 15, 15); +}; + +mxArchiMateTech.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 10); + c.lineTo(10, 0); + c.lineTo(w, 0); + c.lineTo(w, h - 10); + c.lineTo(w - 10, h); + c.lineTo(0, h); + c.close(); + c.moveTo(0, 10); + c.lineTo(w - 10, 10); + c.lineTo(w - 10, h); + c.moveTo(w, 0); + c.lineTo(w - 10, 10); + c.fillAndStroke(); +}; + +mxArchiMateTech.prototype.foreground = function (c, x, y, w, h) { + var type = mxUtils.getValue(this.style, mxArchiMateTech.prototype.cst.TYPE, mxArchiMateTech.prototype.cst.DEVICE); + c.setDashed(false); + + if (type === mxArchiMateTech.prototype.cst.DEVICE) { + c.roundrect(0, 0, w, h * 0.88, w * 0.05, h * 0.05); + c.stroke(); + c.begin(); + c.moveTo(w * 0.1, h * 0.88); + c.lineTo(0, h); + c.lineTo(w, h); + c.lineTo(w * 0.9, h * 0.88); + c.stroke(); + } else if (type === mxArchiMateTech.prototype.cst.PLATEAU) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.rect(w * 0.4, 0, w * 0.6, h * 0.2); + c.fill(); + c.rect(w * 0.2, h * 0.4, w * 0.6, h * 0.2); + c.fill(); + c.rect(0, h * 0.8, w * 0.6, h * 0.2); + c.fill(); + } +}; + +mxCellRenderer.registerShape(mxArchiMateTech.prototype.cst.TECH, mxArchiMateTech); + +mxArchiMateTech.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, 10)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, 0, -10)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMateMotivational(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMateMotivational, mxShape); +mxArchiMateMotivational.prototype.cst = { + MOTIV: 'mxgraph.archimate.motiv', + TYPE: 'motivType', + STAKE: 'stake', + DRIVER: 'driver', + ASSESSMENT: 'assess', + GOAL: 'goal', + REQUIREMENT: 'req', + CONSTRAINT: 'const', + PRINCIPLE: 'princ' +}; +mxArchiMateMotivational.prototype.customProperties = [{ + name: 'motivType', + dispName: 'Motivational Type', + type: 'enum', + enumList: [{ + val: 'stake', + dispName: 'Stake' + }, { + val: 'driver', + dispName: 'Driver' + }, { + val: 'assess', + dispName: 'Assessment' + }, { + val: 'goal', + dispName: 'Goal' + }, { + val: 'req', + dispName: 'Requirement' + }, { + val: 'const', + dispName: 'Constraint' + }, { + val: 'princ', + dispName: 'Principle' + }] +}]; + +mxArchiMateMotivational.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMateMotivational.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(10, 0); + c.lineTo(w - 10, 0); + c.lineTo(w, 10); + c.lineTo(w, h - 10); + c.lineTo(w - 10, h); + c.lineTo(10, h); + c.lineTo(0, h - 10); + c.lineTo(0, 10); + c.close(); + c.fillAndStroke(); +}; + +mxArchiMateMotivational.prototype.foreground = function (c, x, y, w, h) { + var type = mxUtils.getValue(this.style, mxArchiMateMotivational.prototype.cst.TYPE, mxArchiMateMotivational.prototype.cst.STAKE); + c.setDashed(false); + + if (type === mxArchiMateMotivational.prototype.cst.STAKE) { + c.translate(0, 4); + h = h - 8; + c.begin(); + c.moveTo(w * 0.8, 0); + c.lineTo(w * 0.2, 0); + c.arcTo(w * 0.2, h * 0.5, 0, 0, 0, w * 0.2, h); + c.lineTo(w * 0.8, h); + c.stroke(); + c.ellipse(w * 0.6, 0, w * 0.4, h); + c.stroke(); + } else if (type === mxArchiMateMotivational.prototype.cst.DRIVER) { + c.ellipse(w * 0.1, h * 0.1, w * 0.8, h * 0.8); + c.stroke(); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.moveTo(w * 0.145, h * 0.145); + c.lineTo(w * 0.855, h * 0.855); + c.moveTo(w * 0.145, h * 0.855); + c.lineTo(w * 0.855, h * 0.145); + c.stroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.ellipse(w * 0.35, h * 0.35, w * 0.3, h * 0.3); + c.fillAndStroke(); + } else if (type === mxArchiMateMotivational.prototype.cst.ASSESSMENT) { + c.ellipse(w * 0.2, 0, w * 0.8, h * 0.8); + c.stroke(); + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.32, h * 0.68); + c.stroke(); + } else if (type === mxArchiMateMotivational.prototype.cst.GOAL) { + c.ellipse(0, 0, w, h); + c.stroke(); + c.ellipse(w * 0.15, h * 0.15, w * 0.7, h * 0.7); + c.stroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.ellipse(w * 0.3, h * 0.3, w * 0.4, h * 0.4); + c.fillAndStroke(); + } else if (type === mxArchiMateMotivational.prototype.cst.REQUIREMENT) { + c.translate(0, 4); + h = h - 8; + c.begin(); + c.moveTo(w * 0.25, 0); + c.lineTo(w, 0); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.stroke(); + } else if (type === mxArchiMateMotivational.prototype.cst.CONSTRAINT) { + c.translate(0, 4); + h = h - 8; + c.begin(); + c.moveTo(w * 0.25, 0); + c.lineTo(w, 0); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.moveTo(w * 0.45, 0); + c.lineTo(w * 0.2, h); + c.stroke(); + } else if (type === mxArchiMateMotivational.prototype.cst.PRINCIPLE) { + c.begin(); + c.moveTo(w * 0.05, h * 0.05); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.95, h * 0.05); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.95, h * 0.95); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.05, h * 0.95); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.05, h * 0.05); + c.close(); + c.stroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.45, h * 0.7); + c.lineTo(w * 0.42, h * 0.15); + c.lineTo(w * 0.58, h * 0.15); + c.lineTo(w * 0.55, h * 0.7); + c.close(); + c.fill(); + c.rect(w * 0.45, h * 0.75, w * 0.1, h * 0.1); + c.fill(); + } +}; + +mxCellRenderer.registerShape(mxArchiMateMotivational.prototype.cst.MOTIV, mxArchiMateMotivational); + +mxArchiMateMotivational.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 5, 5)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -5, 5)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -5, -5)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, 5, -5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMateGap(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMateGap, mxShape); +mxArchiMateGap.prototype.cst = { + GAP: 'mxgraph.archimate.gap' +}; + +mxArchiMateGap.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMateGap.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 0, w * 0.5, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 1, 0, h * 0.85); + c.close(); + c.fillAndStroke(); +}; + +mxArchiMateGap.prototype.foreground = function (c, x, y, w, h) { + c.setDashed(false); + c.translate(0, 2); + h = h - 4; + c.ellipse(w * 0.15, 0, w * 0.7, h); + c.stroke(); + c.begin(); + c.moveTo(0, h * 0.35); + c.lineTo(w, h * 0.35); + c.moveTo(0, h * 0.65); + c.lineTo(w, h * 0.65); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMateGap.prototype.cst.GAP, mxArchiMateGap); + +mxArchiMateGap.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.85), false, null)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.745), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.955), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxArchiMate3.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxArchiMate3.js new file mode 100644 index 0000000000000..b9e0ad301b87b --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxArchiMate3.js @@ -0,0 +1,2147 @@ +"use strict"; + +function mxArchiMate3Application(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Application, mxShape); +mxArchiMate3Application.prototype.cst = { + APPLICATION: 'mxgraph.archimate3.application', + TYPE: 'appType', + COMPONENT: 'comp', + COLLABORATION: 'collab', + INTERFACE: 'interface', + INTERFACE2: 'interface2', + LOCATION: 'location', + FUNCTION: 'func', + INTERACTION: 'interaction', + SERVICE: 'serv', + EVENT: 'event', + EVENT2: 'event2', + NODE: 'node', + NETWORK: 'netw', + COMM_PATH: 'commPath', + ACTOR: 'actor', + ASSESSMENT: 'assess', + GOAL: 'goal', + OUTCOME: 'outcome', + ROLE: 'role', + PROCESS: 'proc', + DRIVER: 'driver', + PRINCIPLE: 'principle', + REQUIREMENT: 'requirement', + CONSTRAINT: 'constraint', + RESOURCE: 'resource', + CAPABILITY: 'capability', + COURSE: 'course', + MATERIAL: 'material', + DISTRIBUTION: 'distribution', + SYS_SW: 'sysSw', + ARTIFACT: 'artifact', + PATH: 'path', + ARCHI_TYPE: 'archiType', + TYPE_SQUARE: 'square', + TYPE_ROUNDED: 'rounded', + TYPE_OCT: 'oct' +}; +mxArchiMate3Application.prototype.customProperties = [{ + name: 'archiType', + dispName: 'Type', + type: 'enum', + enumList: [{ + val: 'square', + dispName: 'Square' + }, { + val: 'rounded', + dispName: 'Rounded' + }, { + val: 'oct', + dispName: 'Octagonal' + }] +}, { + name: 'appType', + dispName: 'App Type', + type: 'enum', + enumList: [{ + val: 'comp', + dispName: 'Component' + }, { + val: 'collab', + dispName: 'Collaboration' + }, { + val: 'interface', + dispName: 'Interface' + }, { + val: 'interface2', + dispName: 'Interface2' + }, { + val: 'func', + dispName: 'Function' + }, { + val: 'interaction', + dispName: 'Interaction' + }, { + val: 'location', + dispName: 'Location' + }, { + val: 'serv', + dispName: 'Service' + }, { + val: 'event', + dispName: 'Event' + }, { + val: 'event2', + dispName: 'Event2' + }, { + val: 'node', + dispName: 'Node' + }, { + val: 'netw', + dispName: 'Network' + }, { + val: 'commPath', + dispName: 'Comm Path' + }, { + val: 'actor', + dispName: 'Actor' + }, { + val: 'assess', + dispName: 'Assessment' + }, { + val: 'goal', + dispName: 'Goal' + }, { + val: 'outcome', + dispName: 'Outcome' + }, { + val: 'role', + dispName: 'Role' + }, { + val: 'proc', + dispName: 'Process' + }, { + val: 'driver', + dispName: 'Driver' + }, { + val: 'principle', + dispName: 'Principle' + }, { + val: 'requirement', + dispName: 'Requirement' + }, { + val: 'constraint', + dispName: 'Constraint' + }, { + val: 'resource', + dispName: 'Resource' + }, { + val: 'capability', + dispName: 'Capability' + }, { + val: 'course', + dispName: 'Course' + }, { + val: 'material', + dispName: 'Material' + }, { + val: 'distribution', + dispName: 'Distribution' + }, { + val: 'sysSw', + dispName: 'System Sw' + }, { + val: 'artifact', + dispName: 'Artifact' + }, { + val: 'path', + dispName: 'Path' + }] +}]; + +mxArchiMate3Application.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMate3Application.prototype.background = function (c, x, y, w, h) { + var archiType = mxUtils.getValue(this.style, mxArchiMate3Application.prototype.cst.ARCHI_TYPE, 'square'); + + if (archiType === 'rounded') { + c.roundrect(0, 0, w, h, 10, 10); + } else if (archiType === 'oct' && w >= 20 && h >= 20) { + c.begin(); + c.moveTo(0, 10); + c.lineTo(10, 0); + c.lineTo(w - 10, 0); + c.lineTo(w, 10); + c.lineTo(w, h - 10); + c.lineTo(w - 10, h); + c.lineTo(10, h); + c.lineTo(0, h - 10); + c.close(); + c.fillAndStroke(); + } else { + c.rect(0, 0, w, h); + } + + c.fillAndStroke(); +}; + +mxArchiMate3Application.prototype.foreground = function (c, x, y, w, h) { + var type = mxUtils.getValue(this.style, mxArchiMate3Application.prototype.cst.TYPE, ''); + c.setDashed(false); + + if (type === mxArchiMate3Application.prototype.cst.COMPONENT) { + c.translate(1, 0); + w = w - 2; + mxArchiMate3Component.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.COLLABORATION) { + c.translate(0, 3); + h = h - 6; + mxArchiMate3Collaboration.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.INTERFACE) { + c.translate(0, 4); + h = h - 8; + mxArchiMate3Interface.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.INTERFACE2) { + c.translate(0, 1); + h = h - 2; + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.6, h * 0.5); + c.moveTo(w, 0); + c.arcTo(w * 0.4, h * 0.5, 0, 0, 0, w, h); + c.stroke(); + } else if (type === mxArchiMate3Application.prototype.cst.FUNCTION) { + mxArchiMate3Function.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.INTERACTION) { + mxArchiMate3Interaction.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.LOCATION) { + c.translate(3, 0); + w = w - 6; + c.begin(); + c.moveTo(w * 0.5, h); + c.arcTo(w * 0.1775, h * 0.3, 0, 0, 0, w * 0.345, h * 0.7); + c.arcTo(w * 0.538, h * 0.364, 0, 0, 1, w * 0.5, 0); + c.arcTo(w * 0.538, h * 0.364, 0, 0, 1, w * 0.655, h * 0.7); + c.arcTo(w * 0.1775, h * 0.3, 0, 0, 0, w * 0.5, h); + c.stroke(); + } else if (type === mxArchiMate3Application.prototype.cst.SERVICE) { + c.translate(0, 3); + h = h - 6; + mxArchiMate3Service.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.EVENT) { + c.translate(0, 3); + h = h - 6; + mxArchiMate3Event.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.EVENT2) { + c.translate(0, 3); + h = h - 6; + mxArchiMate3Event2.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.NODE) { + mxArchiMate3Node.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.NETWORK) { + c.translate(0, 2); + h = h - 4; + c.begin(); + c.moveTo(w * 0.4, h * 0.2); + c.lineTo(w * 0.85, h * 0.2); + c.lineTo(w * 0.6, h * 0.8); + c.lineTo(w * 0.15, h * 0.8); + c.close(); + c.stroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.ellipse(w * 0.25, 0, w * 0.3, h * 0.4); + c.fill(); + c.ellipse(w * 0.7, 0, w * 0.3, h * 0.4); + c.fill(); + c.ellipse(0, h * 0.6, w * 0.3, h * 0.4); + c.fill(); + c.ellipse(w * 0.45, h * 0.6, w * 0.3, h * 0.4); + c.fill(); + } else if (type === mxArchiMate3Application.prototype.cst.COMM_PATH) { + c.translate(0, 5); + h = h - 10; + c.begin(); + c.moveTo(w * 0.1, 0); + c.lineTo(0, h * 0.5); + c.lineTo(w * 0.1, h); + c.moveTo(w * 0.9, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.9, h); + c.stroke(); + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } else if (type === mxArchiMate3Application.prototype.cst.ARTIFACT) { + c.translate(2, 0); + w = w - 4; + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.7, 0); + c.lineTo(w, h * 0.22); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.moveTo(w * 0.7, 0); + c.lineTo(w * 0.7, h * 0.22); + c.lineTo(w, h * 0.22); + c.stroke(); + } else if (type === mxArchiMate3Application.prototype.cst.ACTOR) { + c.translate(3, 0); + w = w - 6; + mxArchiMate3Actor.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.ROLE) { + c.translate(0, 4); + h = h - 8; + mxArchiMate3Role.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.PROCESS) { + c.translate(0, 3); + h = h - 6; + mxArchiMate3Process.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.DRIVER) { + c.ellipse(w * 0.1, h * 0.1, w * 0.8, h * 0.8); + c.stroke(); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.moveTo(w * 0.145, h * 0.145); + c.lineTo(w * 0.855, h * 0.855); + c.moveTo(w * 0.145, h * 0.855); + c.lineTo(w * 0.855, h * 0.145); + c.stroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.ellipse(w * 0.35, h * 0.35, w * 0.3, h * 0.3); + c.fillAndStroke(); + } else if (type === mxArchiMate3Application.prototype.cst.ASSESSMENT) { + c.ellipse(w * 0.2, 0, w * 0.8, h * 0.8); + c.stroke(); + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.32, h * 0.68); + c.stroke(); + } else if (type === mxArchiMate3Application.prototype.cst.GOAL) { + c.ellipse(0, 0, w, h); + c.stroke(); + c.ellipse(w * 0.15, h * 0.15, w * 0.7, h * 0.7); + c.stroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.ellipse(w * 0.3, h * 0.3, w * 0.4, h * 0.4); + c.fillAndStroke(); + } else if (type === mxArchiMate3Application.prototype.cst.OUTCOME) { + c.ellipse(0, w * 0.2, w * 0.8, h * 0.8); + c.stroke(); + c.ellipse(w * 0.15, w * 0.35, w * 0.5, h * 0.5); + c.stroke(); + c.ellipse(w * 0.3, w * 0.5, w * 0.2, h * 0.2); + c.stroke(); + c.begin(); + c.moveTo(w * 0.4, h * 0.6); + c.lineTo(w * 0.9, h * 0.1); + c.moveTo(w * 0.42, h * 0.4); + c.lineTo(w * 0.4, h * 0.6); + c.lineTo(w * 0.6, h * 0.58); + c.moveTo(w * 0.8, 0); + c.lineTo(w * 0.75, h * 0.25); + c.lineTo(w, h * 0.2); + c.stroke(); + } else if (type === mxArchiMate3Application.prototype.cst.PRINCIPLE) { + c.begin(); + c.moveTo(w * 0.05, h * 0.05); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.95, h * 0.05); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.95, h * 0.95); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.05, h * 0.95); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.05, h * 0.05); + c.close(); + c.stroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.45, h * 0.7); + c.lineTo(w * 0.42, h * 0.15); + c.lineTo(w * 0.58, h * 0.15); + c.lineTo(w * 0.55, h * 0.7); + c.close(); + c.fill(); + c.rect(w * 0.45, h * 0.75, w * 0.1, h * 0.1); + c.fill(); + } else if (type === mxArchiMate3Application.prototype.cst.REQUIREMENT) { + c.translate(0, 4); + h = h - 8; + mxArchiMate3Requirement.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.CONSTRAINT) { + c.translate(0, 4); + h = h - 8; + mxArchiMate3Constraint.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.MATERIAL) { + c.translate(0, 1); + h = h - 2; + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.25, 0); + c.lineTo(w * 0.75, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.75, h); + c.lineTo(w * 0.25, h); + c.close(); + c.moveTo(w * 0.15, h * 0.5); + c.lineTo(w * 0.31, h * 0.2); + c.moveTo(w * 0.69, h * 0.2); + c.lineTo(w * 0.85, h * 0.5); + c.moveTo(w * 0.68, h * 0.80); + c.lineTo(w * 0.32, h * 0.80); + c.stroke(); + } else if (type === mxArchiMate3Application.prototype.cst.DISTRIBUTION) { + c.translate(0, 4); + h = h - 8; + mxArchiMate3Distribution.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.RESOURCE) { + c.translate(0, 1); + h = h - 2; + mxArchiMate3Resource.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.CAPABILITY) { + mxArchiMate3Capability.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.COURSE) { + mxArchiMate3Course.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.SYS_SW) { + mxArchiMate3SysSw.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.ARTIFACT) { + c.translate(2, 0); + w = w - 4; + mxArchiMate3Artifact.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Application.prototype.cst.PATH) { + c.translate(0, 5); + h = h - 10; + mxArchiMate3Path.prototype.background(c, x, y, w, h); + } +}; + +mxCellRenderer.registerShape(mxArchiMate3Application.prototype.cst.APPLICATION, mxArchiMate3Application); + +mxArchiMate3Application.prototype.getConstraints = function (style, w, h) { + var constr = []; + var archiType = mxUtils.getValue(this.style, mxArchiMate3Application.prototype.cst.ARCHI_TYPE, 'square'); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + if (archiType === 'rounded') { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -2.9, -2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, 2.9, -2.9)); + } else if (archiType === 'oct' && w >= 20 && h >= 20) { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 5, 5)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -5, 5)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -5, -5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, 5, -5)); + } else { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + } + + return constr; +}; + +function mxArchiMate3Component(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Component, mxShape); +mxArchiMate3Component.prototype.cst = { + COMPONENT: 'mxgraph.archimate3.component' +}; + +mxArchiMate3Component.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Component.prototype.background = function (c, x, y, w, h) { + c.rect(w * 0.25, 0, w * 0.75, h); + c.fillAndStroke(); + c.rect(0, h * 0.25, w * 0.5, h * 0.15); + c.fillAndStroke(); + c.rect(0, h * 0.6, w * 0.5, h * 0.15); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Component.prototype.cst.COMPONENT, mxArchiMate3Component); + +mxArchiMate3Component.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.625, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.625, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.325), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.675), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + return constr; +}; + +function mxArchiMate3Collaboration(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Collaboration, mxShape); +mxArchiMate3Collaboration.prototype.cst = { + COLLABORATION: 'mxgraph.archimate3.collaboration' +}; + +mxArchiMate3Collaboration.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Collaboration.prototype.background = function (c, x, y, w, h) { + c.ellipse(0, 0, w * 0.6, h); + c.fillAndStroke(); + c.ellipse(w * 0.4, 0, w * 0.6, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Collaboration.prototype.cst.COLLABORATION, mxArchiMate3Collaboration); + +mxArchiMate3Collaboration.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.11, 0.11), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.125), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.89, 0.11), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.11, 0.89), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.875), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.89, 0.89), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.3, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.7, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.3, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.7, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + return constr; +}; + +function mxArchiMate3Interface(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Interface, mxShape); +mxArchiMate3Interface.prototype.cst = { + INTERFACE: 'mxgraph.archimate3.interface' +}; + +mxArchiMate3Interface.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Interface.prototype.background = function (c, x, y, w, h) { + c.ellipse(w * 0.5, 0, w * 0.5, h); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Interface.prototype.cst.INTERFACE, mxArchiMate3Interface); + +mxArchiMate3Interface.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + return constr; +}; + +function mxArchiMate3Process(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Process, mxShape); +mxArchiMate3Process.prototype.cst = { + PROCESS: 'mxgraph.archimate3.process' +}; + +mxArchiMate3Process.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Process.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, h * 0.3); + c.lineTo(w * 0.6, h * 0.3); + c.lineTo(w * 0.6, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.6, h); + c.lineTo(w * 0.6, h * 0.7); + c.lineTo(0, h * 0.7); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Process.prototype.cst.PROCESS, mxArchiMate3Process); + +mxArchiMate3Process.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.3), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.3, 0.3), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.6, 0.3), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.6, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.6, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.6, 0.7), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.3, 0.7), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.7), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + return constr; +}; + +function mxArchiMate3Function(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Function, mxShape); +mxArchiMate3Function.prototype.cst = { + FUNCTION: 'mxgraph.archimate3.function' +}; + +mxArchiMate3Function.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Function.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w, h * 0.2); + c.lineTo(w, h); + c.lineTo(w * 0.5, h * 0.8); + c.lineTo(0, h); + c.lineTo(0, h * 0.2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Function.prototype.cst.FUNCTION, mxArchiMate3Function); + +mxArchiMate3Function.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.2), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.6), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.8), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.6), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.2), false)); + return constr; +}; + +function mxArchiMate3Interaction(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Interaction, mxShape); +mxArchiMate3Interaction.prototype.cst = { + INTERACTION: 'mxgraph.archimate3.interaction' +}; + +mxArchiMate3Interaction.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Interaction.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w * 0.55, 0); + c.arcTo(w * 0.45, h * 0.5, 0, 0, 1, w * 0.55, h); + c.close(); + c.moveTo(w * 0.45, 0); + c.arcTo(w * 0.45, h * 0.5, 0, 0, 0, w * 0.45, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Interaction.prototype.cst.INTERACTION, mxArchiMate3Interaction); + +mxArchiMate3Interaction.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.86, 0.14), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.86, 0.86), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.14, 0.86), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.14, 0.14), false)); + return constr; +}; + +function mxArchiMate3Service(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Service, mxShape); +mxArchiMate3Service.prototype.cst = { + SERVICE: 'mxgraph.archimate3.service' +}; + +mxArchiMate3Service.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Service.prototype.background = function (c, x, y, w, h) { + var w1 = Math.max(w - h * 0.5, w * 0.5); + var w2 = Math.min(h * 0.5, w * 0.5); + c.begin(); + c.moveTo(w1, 0); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, w1, h); + c.lineTo(w2, h); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, w2, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Service.prototype.cst.SERVICE, mxArchiMate3Service); + +mxArchiMate3Service.prototype.getConstraints = function (style, w, h) { + var constr = []; + var w1 = Math.max(w - h * 0.5, w * 0.5); + var w2 = Math.min(h * 0.5, w * 0.5); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w1, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w1, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w1 + h * 0.355, h * 0.145)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w1 + h * 0.5, h * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w1 + h * 0.355, h * 0.855)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 - h * 0.355, h * 0.145)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 - h * 0.5, h * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 - h * 0.355, h * 0.855)); + return constr; +}; + +function mxArchiMate3Requirement(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Requirement, mxShape); +mxArchiMate3Requirement.prototype.cst = { + REQUIREMENT: 'mxgraph.archimate3.requirement' +}; + +mxArchiMate3Requirement.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Requirement.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w * 0.25, 0); + c.lineTo(w, 0); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Requirement.prototype.cst.REQUIREMENT, mxArchiMate3Requirement); + +mxArchiMate3Requirement.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.9375, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.875, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.8125, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.0625, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.125, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.1875, 0.25), false)); + return constr; +}; + +function mxArchiMate3Constraint(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Constraint, mxShape); +mxArchiMate3Constraint.prototype.cst = { + CONSTRAINT: 'mxgraph.archimate3.constraint' +}; + +mxArchiMate3Constraint.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Constraint.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w * 0.25, 0); + c.lineTo(w, 0); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.moveTo(w * 0.45, 0); + c.lineTo(w * 0.2, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Constraint.prototype.cst.CONSTRAINT, mxArchiMate3Constraint); + +mxArchiMate3Constraint.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.9375, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.875, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.8125, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.0625, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.125, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.1875, 0.25), false)); + return constr; +}; + +function mxArchiMate3Event(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Event, mxShape); +mxArchiMate3Event.prototype.cst = { + EVENT: 'mxgraph.archimate3.event' +}; + +mxArchiMate3Event.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Event.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w - h * 0.5, 0); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, w - h * 0.5, h); + c.lineTo(0, h); + c.lineTo(h * 0.5, h * 0.5); + c.lineTo(0, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Event.prototype.cst.EVENT, mxArchiMate3Event); + +mxArchiMate3Event.prototype.getConstraints = function (style, w, h) { + var constr = []; + var w1 = Math.max(w - h * 0.5, w * 0.5); + var w2 = Math.min(h * 0.5, w * 0.5); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - h * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - h * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, h * 0.5, h * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - h * 0.5) * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - h * 0.5) * 0.5, h)); + return constr; +}; + +function mxArchiMate3Event2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Event2, mxShape); +mxArchiMate3Event2.prototype.cst = { + EVENT2: 'mxgraph.archimate3.event2' +}; + +mxArchiMate3Event2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Event2.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w - h * 0.5, 0); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, w - h * 0.5, h); + c.lineTo(0, h); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 0, 0, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Event2.prototype.cst.EVENT2, mxArchiMate3Event2); + +function mxArchiMate3Actor(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Actor, mxShape); +mxArchiMate3Actor.prototype.cst = { + ACTOR: 'mxgraph.archimate3.actor' +}; + +mxArchiMate3Actor.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Actor.prototype.background = function (c, x, y, w, h) { + c.ellipse(w * 0.2, 0, w * 0.6, h * 0.3); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5, h * 0.3); + c.lineTo(w * 0.5, h * 0.75); + c.moveTo(0, h * 0.45); + c.lineTo(w, h * 0.45); + c.moveTo(0, h); + c.lineTo(w * 0.5, h * 0.75); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Actor.prototype.cst.ACTOR, mxArchiMate3Actor); + +mxArchiMate3Actor.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.2, 0.15), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.8, 0.15), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.45), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.45), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + return constr; +}; + +function mxArchiMate3Role(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Role, mxShape); +mxArchiMate3Role.prototype.cst = { + ROLE: 'mxgraph.archimate3.role' +}; + +mxArchiMate3Role.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Role.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w * 0.8, 0); + c.lineTo(w * 0.2, 0); + c.arcTo(w * 0.2, h * 0.5, 0, 0, 0, w * 0.2, h); + c.lineTo(w * 0.8, h); + c.fillAndStroke(); + c.ellipse(w * 0.6, 0, w * 0.4, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Role.prototype.cst.ROLE, mxArchiMate3Role); + +mxArchiMate3Role.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.2, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.8, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.8, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.2, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + return constr; +}; + +function mxArchiMate3BusinessObject(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3BusinessObject, mxShape); +mxArchiMate3BusinessObject.prototype.cst = { + BUSINESS_OBJECT: 'mxgraph.archimate3.businessObject' +}; + +mxArchiMate3BusinessObject.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + this.foreground(c, 0, 0, w, h); +}; + +mxArchiMate3BusinessObject.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMate3BusinessObject.prototype.foreground = function (c, x, y, w, h) { + if (h >= 15) { + c.begin(); + c.moveTo(0, 15); + c.lineTo(w, 15); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxArchiMate3BusinessObject.prototype.cst.BUSINESS_OBJECT, mxArchiMate3BusinessObject); + +mxArchiMate3BusinessObject.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMate3Contract(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Contract, mxShape); +mxArchiMate3Contract.prototype.cst = { + CONTRACT: 'mxgraph.archimate3.contract' +}; + +mxArchiMate3Contract.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + this.foreground(c, 0, 0, w, h); +}; + +mxArchiMate3Contract.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMate3Contract.prototype.foreground = function (c, x, y, w, h) { + if (h >= 15) { + c.begin(); + c.moveTo(0, 15); + c.lineTo(w, 15); + c.stroke(); + } + + if (h >= 30) { + c.begin(); + c.moveTo(0, h - 15); + c.lineTo(w, h - 15); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxArchiMate3Contract.prototype.cst.CONTRACT, mxArchiMate3Contract); + +mxArchiMate3Contract.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMate3Product(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Product, mxShape); +mxArchiMate3Product.prototype.cst = { + PRODUCT: 'mxgraph.archimate3.product' +}; + +mxArchiMate3Product.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + this.foreground(c, 0, 0, w, h); +}; + +mxArchiMate3Product.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMate3Product.prototype.foreground = function (c, x, y, w, h) { + if (h >= 15) { + c.begin(); + c.moveTo(0, 15); + c.lineTo(w * 0.6, 15); + c.lineTo(w * 0.6, 0); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxArchiMate3Product.prototype.cst.PRODUCT, mxArchiMate3Product); + +mxArchiMate3Product.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMate3Representation(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Representation, mxShape); +mxArchiMate3Representation.prototype.cst = { + REPRESENTATION: 'mxgraph.archimate3.representation' +}; + +mxArchiMate3Representation.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); +}; + +mxArchiMate3Representation.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 0, w * 0.5, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 1, 0, h * 0.85); + c.close(); + c.fillAndStroke(); + if (h >= 20) c.begin(); + c.moveTo(0, 15); + c.lineTo(w, 15); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Representation.prototype.cst.REPRESENTATION, mxArchiMate3Representation); + +mxArchiMate3Representation.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.745), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.955), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMate3Deliverable(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Deliverable, mxShape); +mxArchiMate3Deliverable.prototype.cst = { + DELIVERABLE: 'mxgraph.archimate3.deliverable' +}; + +mxArchiMate3Deliverable.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); +}; + +mxArchiMate3Deliverable.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 0, w * 0.5, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 1, 0, h * 0.85); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Deliverable.prototype.cst.DELIVERABLE, mxArchiMate3Deliverable); + +mxArchiMate3Deliverable.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.745), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.955), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMate3Location(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Location, mxShape); +mxArchiMate3Location.prototype.cst = { + LOCATION: 'mxgraph.archimate3.location' +}; + +mxArchiMate3Location.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMate3Location.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMate3Location.prototype.foreground = function (c, x, y, w, h) { + c.setDashed(false); + c.translate(3, 0); + w = w - 6; + c.begin(); + c.moveTo(w * 0.5, h); + c.arcTo(w * 0.1775, h * 0.3, 0, 0, 0, w * 0.345, h * 0.7); + c.arcTo(w * 0.538, h * 0.364, 0, 0, 1, w * 0.5, 0); + c.arcTo(w * 0.538, h * 0.364, 0, 0, 1, w * 0.655, h * 0.7); + c.arcTo(w * 0.1775, h * 0.3, 0, 0, 0, w * 0.5, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Location.prototype.cst.LOCATION, mxArchiMate3Location); + +function mxArchiMate3Gap(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Gap, mxShape); +mxArchiMate3Gap.prototype.cst = { + GAP: 'mxgraph.archimate3.gap' +}; + +mxArchiMate3Gap.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMate3Gap.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 0, w * 0.5, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 1, 0, h * 0.85); + c.close(); + c.fillAndStroke(); +}; + +mxArchiMate3Gap.prototype.foreground = function (c, x, y, w, h) { + c.setDashed(false); + c.translate(0, 2); + h = h - 4; + c.ellipse(w * 0.15, 0, w * 0.7, h); + c.stroke(); + c.begin(); + c.moveTo(0, h * 0.35); + c.lineTo(w, h * 0.35); + c.moveTo(0, h * 0.65); + c.lineTo(w, h * 0.65); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Gap.prototype.cst.GAP, mxArchiMate3Gap); + +mxArchiMate3Gap.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.745), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.955), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMate3Tech(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Tech, mxShape); +mxArchiMate3Tech.prototype.cst = { + TECH: 'mxgraph.archimate3.tech', + TYPE: 'techType', + DEVICE: 'device', + PLATEAU: 'plateau', + FACILITY: 'facility', + EQUIPMENT: 'equipment', + SYS_SW: 'sysSw' +}; + +mxArchiMate3Tech.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 30, 15); + this.foreground(c, w - 30, 15, 15, 15); +}; + +mxArchiMate3Tech.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 10); + c.lineTo(10, 0); + c.lineTo(w, 0); + c.lineTo(w, h - 10); + c.lineTo(w - 10, h); + c.lineTo(0, h); + c.close(); + c.moveTo(0, 10); + c.lineTo(w - 10, 10); + c.lineTo(w - 10, h); + c.moveTo(w, 0); + c.lineTo(w - 10, 10); + c.fillAndStroke(); +}; + +mxArchiMate3Tech.prototype.foreground = function (c, x, y, w, h) { + var type = mxUtils.getValue(this.style, mxArchiMate3Tech.prototype.cst.TYPE, mxArchiMate3Tech.prototype.cst.DEVICE); + c.setDashed(false); + + if (type === mxArchiMate3Tech.prototype.cst.PLATEAU) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.rect(w * 0.4, 0, w * 0.6, h * 0.2); + c.fill(); + c.rect(w * 0.2, h * 0.4, w * 0.6, h * 0.2); + c.fill(); + c.rect(0, h * 0.8, w * 0.6, h * 0.2); + c.fill(); + } else if (type === mxArchiMate3Tech.prototype.cst.FACILITY) { + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(w * 0.13, 0); + c.lineTo(w * 0.13, h * 0.7); + c.lineTo(w * 0.42, h * 0.55); + c.lineTo(w * 0.42, h * 0.7); + c.lineTo(w * 0.71, h * 0.55); + c.lineTo(w * 0.71, h * 0.7); + c.lineTo(w, h * 0.55); + c.lineTo(w, h); + c.close(); + c.stroke(); + } else if (type === mxArchiMate3Tech.prototype.cst.EQUIPMENT) { + c.begin(); + c.moveTo(w * 0.72, h * 0.38); + c.curveTo(w * 0.78, w * 0.38, w * 0.85, h * 0.34, w * 0.85, h * 0.26); + c.curveTo(w * 0.85, w * 0.18, w * 0.78, h * 0.14, w * 0.73, h * 0.14); + c.curveTo(w * 0.64, w * 0.14, w * 0.59, h * 0.2, w * 0.59, h * 0.26); + c.curveTo(w * 0.59, h * 0.33, w * 0.65, w * 0.38, w * 0.72, h * 0.38); + c.close(); + c.moveTo(w * 0.68, h * 0.52); + c.lineTo(w * 0.67, h * 0.45); + c.lineTo(w * 0.61, h * 0.43); + c.lineTo(w * 0.56, h * 0.48); + c.lineTo(w * 0.5, h * 0.42); + c.lineTo(w * 0.54, h * 0.36); + c.lineTo(w * 0.52, h * 0.31); + c.lineTo(w * 0.45, h * 0.31); + c.lineTo(w * 0.45, h * 0.22); + c.lineTo(w * 0.52, h * 0.21); + c.lineTo(w * 0.54, h * 0.16); + c.lineTo(w * 0.5, h * 0.11); + c.lineTo(w * 0.56, h * 0.05); + c.lineTo(w * 0.62, h * 0.09); + c.lineTo(w * 0.67, h * 0.07); + c.lineTo(w * 0.68, 0); + c.lineTo(w * 0.77, 0); + c.lineTo(w * 0.78, h * 0.07); + c.lineTo(w * 0.83, h * 0.09); + c.lineTo(w * 0.89, h * 0.05); + c.lineTo(w * 0.95, h * 0.11); + c.lineTo(w * 0.91, h * 0.16); + c.lineTo(w * 0.93, h * 0.21); + c.lineTo(w, h * 0.22); + c.lineTo(w, h * 0.31); + c.lineTo(w * 0.93, h * 0.31); + c.lineTo(w * 0.91, h * 0.36); + c.lineTo(w * 0.95, h * 0.41); + c.lineTo(w * 0.89, h * 0.47); + c.lineTo(w * 0.83, h * 0.43); + c.lineTo(w * 0.78, h * 0.45); + c.lineTo(w * 0.77, h * 0.52); + c.lineTo(w * 0.68, h * 0.52); + c.close(); + c.moveTo(w * 0.36, h * 0.81); + c.curveTo(w * 0.44, h * 0.81, w * 0.52, h * 0.75, w * 0.52, h * 0.67); + c.curveTo(w * 0.52, h * 0.59, w * 0.45, h * 0.51, w * 0.35, h * 0.51); + c.curveTo(w * 0.27, h * 0.51, w * 0.19, h * 0.58, w * 0.19, h * 0.67); + c.curveTo(w * 0.19, h * 0.74, w * 0.27, h * 0.82, w * 0.36, h * 0.81); + c.close(); + c.moveTo(w * 0.21, h * 0.98); + c.lineTo(w * 0.22, h * 0.89); + c.lineTo(w * 0.16, h * 0.85); + c.lineTo(w * 0.08, h * 0.88); + c.lineTo(w * 0.02, h * 0.79); + c.lineTo(w * 0.09, h * 0.74); + c.lineTo(w * 0.08, h * 0.67); + c.lineTo(0, h * 0.63); + c.lineTo(w * 0.03, h * 0.53); + c.lineTo(w * 0.12, h * 0.54); + c.lineTo(w * 0.16, h * 0.48); + c.lineTo(w * 0.13, h * 0.4); + c.lineTo(w * 0.22, h * 0.35); + c.lineTo(w * 0.28, h * 0.42); + c.lineTo(w * 0.36, h * 0.41); + c.lineTo(w * 0.39, h * 0.33); + c.lineTo(w * 0.5, h * 0.36); + c.lineTo(w * 0.49, h * 0.45); + c.lineTo(w * 0.55, h * 0.49); + c.lineTo(w * 0.63, h * 0.45); + c.lineTo(w * 0.69, h * 0.54); + c.lineTo(w * 0.62, h * 0.6); + c.lineTo(w * 0.63, h * 0.67); + c.lineTo(w * 0.71, h * 0.7); + c.lineTo(w * 0.68, h * 0.8); + c.lineTo(w * 0.59, h * 0.79); + c.lineTo(w * 0.55, h * 0.85); + c.lineTo(w * 0.59, h * 0.79); + c.lineTo(w * 0.55, h * 0.85); + c.lineTo(w * 0.59, h * 0.93); + c.lineTo(w * 0.49, h * 0.98); + c.lineTo(w * 0.43, h * 0.91); + c.lineTo(w * 0.36, h * 0.92); + c.lineTo(w * 0.32, h); + c.lineTo(w * 0.21, h * 0.98); + c.close(); + c.stroke(); + } else if (type === mxArchiMate3Tech.prototype.cst.SYS_SW) { + mxArchiMate3SysSw.prototype.background(c, x, y, w, h); + } else if (type === mxArchiMate3Tech.prototype.cst.DEVICE) { + mxArchiMate3Device.prototype.background(c, x, y, w, h); + } +}; + +mxCellRenderer.registerShape(mxArchiMate3Tech.prototype.cst.TECH, mxArchiMate3Tech); + +mxArchiMate3Tech.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, 0, -10)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, 10)); + return constr; +}; + +function mxArchiMate3Distribution(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Distribution, mxShape); +mxArchiMate3Distribution.prototype.cst = { + DISTRIBUTION: 'mxgraph.archimate3.distribution' +}; + +mxArchiMate3Distribution.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Distribution.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w * 0.1, h * 0.25); + c.lineTo(w * 0.9, h * 0.25); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.9, h * 0.75); + c.lineTo(w * 0.1, h * 0.75); + c.lineTo(0, h * 0.5); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.2, 0); + c.lineTo(0, h * 0.5); + c.lineTo(w * 0.2, h); + c.moveTo(w * 0.8, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.8, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Distribution.prototype.cst.DISTRIBUTION, mxArchiMate3Distribution); + +mxArchiMate3Distribution.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.2, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.8, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.8, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.2, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + return constr; +}; + +function mxArchiMate3Resource(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Resource, mxShape); +mxArchiMate3Resource.prototype.cst = { + RESOURCE: 'mxgraph.archimate3.resource' +}; + +mxArchiMate3Resource.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Resource.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w * 0.51, h * 0.34); + c.lineTo(w * 0.51, h * 0.65); + c.moveTo(w * 0.35, h * 0.34); + c.lineTo(w * 0.35, h * 0.65); + c.moveTo(w * 0.19, h * 0.34); + c.lineTo(w * 0.19, h * 0.65); + c.moveTo(w * 0.91, h * 0.4); + c.curveTo(w * 0.93, h * 0.39, w * 0.95, h * 0.39, w * 0.97, h * 0.40); + c.curveTo(w * 0.99, h * 0.4, w, h * 0.41, w, h * 0.43); + c.curveTo(w, h * 0.48, w, h * 0.52, w, h * 0.57); + c.curveTo(w, h * 0.58, w * 0.99, h * 0.59, w * 0.98, h * 0.6); + c.curveTo(w * 0.96, h * 0.6, w * 0.93, h * 0.6, w * 0.91, h * 0.6); + c.moveTo(0, h * 0.73); + c.curveTo(0, h * 0.6, 0, h * 0.43, 0, h * 0.27); + c.curveTo(0, h * 0.24, w * 0.03, h * 0.21, w * 0.08, h * 0.21); + c.curveTo(w * 0.33, h * 0.2, w * 0.61, h * 0.2, w * 0.84, h * 0.21); + c.curveTo(w * 0.88, h * 0.22, w * 0.89, h * 0.24, w * 0.9, h * 0.26); + c.curveTo(w * 0.91, h * 0.41, w * 0.91, h * 0.57, w * 0.9, h * 0.72); + c.curveTo(w * 0.9, h * 0.74, w * 0.88, h * 0.78, w * 0.83, h * 0.79); + c.curveTo(w * 0.57, h * 0.79, w * 0.32, h * 0.79, w * 0.06, h * 0.79); + c.curveTo(w * 0.02, h * 0.78, 0, h * 0.76, 0, h * 0.73); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Resource.prototype.cst.RESOURCE, mxArchiMate3Resource); + +function mxArchiMate3Capability(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Capability, mxShape); +mxArchiMate3Capability.prototype.cst = { + CAPABILITY: 'mxgraph.archimate3.capability' +}; + +mxArchiMate3Capability.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Capability.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.lineTo(0, h * 0.67); + c.lineTo(w * 0.33, h * 0.67); + c.lineTo(w * 0.33, h * 0.33); + c.lineTo(w * 0.67, h * 0.33); + c.lineTo(w * 0.67, 0); + c.close(); + c.moveTo(w * 0.67, h * 0.33); + c.lineTo(w, h * 0.33); + c.moveTo(w * 0.33, h * 0.67); + c.lineTo(w, h * 0.67); + c.moveTo(w * 0.33, h * 0.67); + c.lineTo(w * 0.33, h); + c.moveTo(w * 0.67, h * 0.33); + c.lineTo(w * 0.67, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Capability.prototype.cst.CAPABILITY, mxArchiMate3Capability); + +function mxArchiMate3Course(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Course, mxShape); +mxArchiMate3Course.prototype.cst = { + COURSE: 'mxgraph.archimate3.course' +}; + +mxArchiMate3Course.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Course.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, h); + c.arcTo(w * 0.7, h * 0.7, 0, 0, 1, w * 0.41, h * 0.56); + c.moveTo(w * 0.14, h * 0.54); + c.lineTo(w * 0.41, h * 0.56); + c.lineTo(w * 0.3, h * 0.78); + c.stroke(); + c.ellipse(w * 0.4, 0, w * 0.6, h * 0.6); + c.stroke(); + c.ellipse(w * 0.5, h * 0.1, w * 0.4, h * 0.4); + c.stroke(); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#000000'); + c.setFillColor(fillColor); + c.ellipse(w * 0.6, h * 0.2, w * 0.2, h * 0.2); + c.fill(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Course.prototype.cst.COURSE, mxArchiMate3Course); + +function mxArchiMate3Node(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Node, mxShape); +mxArchiMate3Node.prototype.cst = { + NODE: 'mxgraph.archimate3.node' +}; + +mxArchiMate3Node.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Node.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, h * 0.25); + c.lineTo(w * 0.25, 0); + c.lineTo(w, 0); + c.lineTo(w, h * 0.75); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.moveTo(0, h * 0.25); + c.lineTo(w * 0.75, h * 0.25); + c.lineTo(w * 0.75, h); + c.moveTo(w, 0); + c.lineTo(w * 0.75, h * 0.25); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Node.prototype.cst.NODE, mxArchiMate3Node); + +mxArchiMate3Node.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMate3Device(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Device, mxShape); +mxArchiMate3Device.prototype.cst = { + DEVICE: 'mxgraph.archimate3.device' +}; + +mxArchiMate3Device.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Device.prototype.background = function (c, x, y, w, h) { + c.roundrect(0, 0, w, h * 0.88, w * 0.1, h * 0.1); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.1, h * 0.88); + c.lineTo(0, h); + c.lineTo(w, h); + c.lineTo(w * 0.9, h * 0.88); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Device.prototype.cst.DEVICE, mxArchiMate3Device); + +mxArchiMate3Device.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.03, 0.03), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.97, 0.03), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMate3SysSw(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3SysSw, mxShape); +mxArchiMate3SysSw.prototype.cst = { + SYS_SW: 'mxgraph.archimate3.sysSw' +}; + +mxArchiMate3SysSw.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3SysSw.prototype.background = function (c, x, y, w, h) { + c.ellipse(w * 0.3, 0, w * 0.7, h * 0.7); + c.stroke(); + c.ellipse(0, h * 0.02, w * 0.98, h * 0.98); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3SysSw.prototype.cst.SYS_SW, mxArchiMate3SysSw); + +function mxArchiMate3Artifact(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Artifact, mxShape); +mxArchiMate3Artifact.prototype.cst = { + ARTIFACT: 'mxgraph.archimate3.artifact' +}; + +mxArchiMate3Artifact.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Artifact.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.7, 0); + c.lineTo(w, h * 0.22); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.7, 0); + c.lineTo(w * 0.7, h * 0.22); + c.lineTo(w, h * 0.22); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Artifact.prototype.cst.ARTIFACT, mxArchiMate3Artifact); + +mxArchiMate3Artifact.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.7, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.85, 0.11), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.22), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxArchiMate3CommNetw(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3CommNetw, mxShape); +mxArchiMate3CommNetw.prototype.cst = { + COMM_NETW: 'mxgraph.archimate3.commNetw' +}; + +mxArchiMate3CommNetw.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3CommNetw.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w * 0.2, h); + c.lineTo(0, h * 0.5); + c.lineTo(w * 0.2, 0); + c.moveTo(w * 0.8, h); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.8, 0); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3CommNetw.prototype.cst.COMM_NETW, mxArchiMate3CommNetw); + +mxArchiMate3CommNetw.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + return constr; +}; + +function mxArchiMate3Path(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxArchiMate3Path, mxShape); +mxArchiMate3Path.prototype.cst = { + PATH: 'mxgraph.archimate3.path' +}; + +mxArchiMate3Path.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Path.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w * 0.2, h); + c.lineTo(0, h * 0.5); + c.lineTo(w * 0.2, 0); + c.moveTo(w * 0.8, h); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.8, 0); + c.stroke(); + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Path.prototype.cst.PATH, mxArchiMate3Path); + +mxArchiMate3Path.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + return constr; +}; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxArrows.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxArrows.js new file mode 100644 index 0000000000000..d03ec84d6b0d2 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxArrows.js @@ -0,0 +1,2309 @@ +"use strict"; + +function mxShapeArrows2Arrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; +} + +; +mxUtils.extend(mxShapeArrows2Arrow, mxActor); +mxShapeArrows2Arrow.prototype.customProperties = [{ + name: 'dx', + dispName: 'Arrowhead Length', + type: 'float', + min: 0, + defVal: 40 +}, { + name: 'dy', + dispName: 'Arrow Width', + type: 'float', + min: 0, + max: 1, + defVal: 0.6 +}, { + name: 'notch', + dispName: 'Notch', + type: 'float', + min: 0, + defVal: 0 +}]; +mxShapeArrows2Arrow.prototype.cst = { + ARROW: 'mxgraph.arrows2.arrow' +}; + +mxShapeArrows2Arrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + c.begin(); + c.moveTo(0, dy); + c.lineTo(w - dx, dy); + c.lineTo(w - dx, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(0, h - dy); + c.lineTo(notch, h * 0.5); + c.close(); + c.fillAndStroke(); +}; + +mxShapeArrows2Arrow.prototype.getLabelBounds = function (rect) { + if (mxUtils.getValue(this.style, "boundedLbl", false)) { + var w = rect.width; + var h = rect.height; + var dy, dx; + var direction = this.direction || mxConstants.DIRECTION_EAST; + + if (mxUtils.getValue(this.style, "flipH", false)) { + if (direction == mxConstants.DIRECTION_WEST) direction = mxConstants.DIRECTION_EAST;else if (direction == mxConstants.DIRECTION_EAST) direction = mxConstants.DIRECTION_WEST; + } + + if (mxUtils.getValue(this.style, "flipV", false)) { + if (direction == mxConstants.DIRECTION_NORTH) direction = mxConstants.DIRECTION_SOUTH;else if (direction == mxConstants.DIRECTION_SOUTH) direction = mxConstants.DIRECTION_NORTH; + } + + if (direction == mxConstants.DIRECTION_NORTH || direction == mxConstants.DIRECTION_SOUTH) { + dy = w * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + dx = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + } else { + dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + } + + if (direction == mxConstants.DIRECTION_EAST) { + return new mxRectangle(rect.x, rect.y + dy, w - dx, h - 2 * dy); + } else if (direction == mxConstants.DIRECTION_WEST) { + return new mxRectangle(rect.x + dx, rect.y + dy, w - dx, h - 2 * dy); + } else if (direction == mxConstants.DIRECTION_NORTH) { + return new mxRectangle(rect.x + dy, rect.y + dx, w - 2 * dy, h - dx); + } else { + return new mxRectangle(rect.x + dy, rect.y, w - 2 * dy, h - dx); + } + } + + return rect; +}; + +mxCellRenderer.registerShape(mxShapeArrows2Arrow.prototype.cst.ARROW, mxShapeArrows2Arrow); + +Graph.handleFactory[mxShapeArrows2Arrow.prototype.cst.ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dy * bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height * 2))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), pt.x - bounds.x))) / 100; + }); + handles.push(handle2); + return handles; +}; + +mxShapeArrows2Arrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, h - dy)); + return constr; +}; + +function mxShapeArrows2TwoWayArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeArrows2TwoWayArrow, mxActor); +mxShapeArrows2TwoWayArrow.prototype.cst = { + TWO_WAY_ARROW: 'mxgraph.arrows2.twoWayArrow' +}; +mxShapeArrows2TwoWayArrow.prototype.customProperties = [{ + name: 'dx', + dispName: 'Arrowhead Length', + type: 'float', + min: 0, + defVal: 35 +}, { + name: 'dy', + dispName: 'Arrow Width', + type: 'float', + min: 0, + max: 1, + defVal: 0.6 +}]; + +mxShapeArrows2TwoWayArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + c.begin(); + c.moveTo(dx, dy); + c.lineTo(w - dx, dy); + c.lineTo(w - dx, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(dx, h - dy); + c.lineTo(dx, h); + c.lineTo(0, h * 0.5); + c.lineTo(dx, 0); + c.close(); + c.fillAndStroke(); +}; + +mxShapeArrows2TwoWayArrow.prototype.getLabelBounds = function (rect) { + if (mxUtils.getValue(this.style, "boundedLbl", false)) { + var w = rect.width; + var h = rect.height; + var vertical = this.direction == mxConstants.DIRECTION_NORTH || this.direction == mxConstants.DIRECTION_SOUTH; + var dy, dx; + + if (vertical) { + dy = w * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + dx = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + } else { + dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + } + + if (vertical) { + return new mxRectangle(rect.x + dy, rect.y + dx, w - 2 * dy, h - 2 * dx); + } else { + return new mxRectangle(rect.x + dx, rect.y + dy, w - 2 * dx, h - 2 * dy); + } + } + + return rect; +}; + +mxCellRenderer.registerShape(mxShapeArrows2TwoWayArrow.prototype.cst.TWO_WAY_ARROW, mxShapeArrows2TwoWayArrow); +mxShapeArrows2TwoWayArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2TwoWayArrow.prototype.cst.TWO_WAY_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dy * bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2, bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height * 2))) / 100; + })]; + return handles; +}; + +mxShapeArrows2TwoWayArrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, h - dy)); + return constr; +}; + +function mxShapeArrows2StylisedArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.feather = 0.5; +} + +; +mxUtils.extend(mxShapeArrows2StylisedArrow, mxActor); +mxShapeArrows2StylisedArrow.prototype.customProperties = [{ + name: 'dx', + dispName: 'Arrowhead Length', + type: 'float', + min: 0, + defVal: 40 +}, { + name: 'dy', + dispName: 'Arrow Width', + type: 'float', + min: 0, + max: 1, + defVal: 0.6 +}, { + name: 'notch', + dispName: 'Notch', + type: 'float', + min: 0, + defVal: 0 +}, { + name: 'feather', + dispName: 'Feather', + type: 'float', + min: 0, + max: 1, + defVal: 0.4 +}]; +mxShapeArrows2StylisedArrow.prototype.cst = { + STYLISED_ARROW: 'mxgraph.arrows2.stylisedArrow' +}; + +mxShapeArrows2StylisedArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var feather = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'feather', this.feather)))); + c.begin(); + c.moveTo(0, feather); + c.lineTo(w - dx, dy); + c.lineTo(w - dx - 10, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx - 10, h); + c.lineTo(w - dx, h - dy); + c.lineTo(0, h - feather); + c.lineTo(notch, h * 0.5); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2StylisedArrow.prototype.cst.STYLISED_ARROW, mxShapeArrows2StylisedArrow); +mxShapeArrows2StylisedArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2StylisedArrow.prototype.cst.STYLISED_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width - 10, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dy * bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width - 10, bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height * 2))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var notch = Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), pt.x - bounds.x))) / 100; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['feather'], function (bounds) { + var feather = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'feather', this.dy)))); + return new mxPoint(bounds.x, bounds.y + feather * bounds.height / 2); + }, function (bounds, pt) { + this.state.style['feather'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height * 2))) / 100; + }); + handles.push(handle3); + return handles; +}; + +mxShapeArrows2StylisedArrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var feather = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'feather', this.feather)))); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, feather)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - feather)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx - 10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx - 10, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, (dy + feather) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, h - (dy + feather) * 0.5)); + return constr; +}; + +function mxShapeArrows2SharpArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy1 = 0.5; + this.dx1 = 0.5; + this.dx2 = 0.5; + this.notch = 0; +} + +; +mxUtils.extend(mxShapeArrows2SharpArrow, mxActor); +mxShapeArrows2SharpArrow.prototype.cst = { + SHARP_ARROW: 'mxgraph.arrows2.sharpArrow' +}; +mxShapeArrows2SharpArrow.prototype.customProperties = [{ + name: 'dx1', + dispName: 'Arrowhead Arrow Width', + type: 'float', + min: 0, + defVal: 18 +}, { + name: 'dy1', + dispName: 'Arrow Arrow Width', + type: 'float', + min: 0, + max: 1, + defVal: 0.67 +}, { + name: 'dx2', + dispName: 'Arrowhead Angle', + type: 'float', + min: 0, + defVal: 18 +}, { + name: 'notch', + dispName: 'Notch', + type: 'float', + min: 0, + defVal: 0 +}]; + +mxShapeArrows2SharpArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy1 = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var dx1a = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy1a = h * 0.5 * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var x2 = 0; + + if (h != 0) { + x2 = dx1a + dx2 * dy1a * 2 / h; + } + + c.begin(); + c.moveTo(0, dy1); + c.lineTo(w - dx1, dy1); + c.lineTo(w - x2, 0); + c.lineTo(w - dx2, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx2, h); + c.lineTo(w - x2, h); + c.lineTo(w - dx1, h - dy1); + c.lineTo(0, h - dy1); + c.lineTo(notch, h * 0.5); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2SharpArrow.prototype.cst.SHARP_ARROW, mxShapeArrows2SharpArrow); +mxShapeArrows2SharpArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2SharpArrow.prototype.cst.SHARP_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx1', 'dy1'], function (bounds) { + var dx1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + dy1 * bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy1'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height * 2))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), pt.x - bounds.x))) / 100; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['dx2'], function (bounds) { + var dx2 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + return new mxPoint(bounds.x + bounds.width - dx2, bounds.y); + }, function (bounds, pt) { + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + }); + handles.push(handle3); + return handles; +}; + +mxShapeArrows2SharpArrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy1 = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var dx1a = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy1a = h * 0.5 * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var x2 = 0; + + if (h != 0) { + x2 = dx1a + dx2 * dy1a * 2 / h; + } + + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - x2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, h - dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - x2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1) * 0.5, dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1) * 0.5, h - dy1)); + return constr; +}; + +function mxShapeArrows2SharpArrow2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy1 = 0.5; + this.dx1 = 0.5; + this.dx2 = 0.5; + this.dy3 = 0.5; + this.dx3 = 0.5; + this.notch = 0; +} + +; +mxUtils.extend(mxShapeArrows2SharpArrow2, mxActor); +mxShapeArrows2SharpArrow2.prototype.customProperties = [{ + name: 'dx1', + dispName: 'Arrowhead Arrow Width', + type: 'float', + min: 0, + defVal: 18 +}, { + name: 'dy1', + dispName: 'Arrow Width', + type: 'float', + min: 0, + max: 1, + defVal: 0.67 +}, { + name: 'dx2', + dispName: 'Arrowhead Angle', + type: 'float', + min: 0, + defVal: 18 +}, { + name: 'dx3', + dispName: 'Arrowhead Edge X', + type: 'float', + min: 0, + defVal: 27 +}, { + name: 'dy3', + dispName: 'Arrowhead Edge Y', + type: 'float', + min: 0, + max: 1, + defVal: 0.15 +}, { + name: 'notch', + dispName: 'Notch', + type: 'float', + min: 0, + defVal: 0 +}]; +mxShapeArrows2SharpArrow2.prototype.cst = { + SHARP_ARROW2: 'mxgraph.arrows2.sharpArrow2' +}; + +mxShapeArrows2SharpArrow2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy1 = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var dy3 = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy3', this.dy3)))); + var dx3 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx3', this.dx3)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var dx1a = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy1a = h * 0.5 * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + c.begin(); + c.moveTo(0, dy1); + c.lineTo(w - dx1, dy1); + c.lineTo(w - dx3, dy3); + c.lineTo(w - dx2, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx2, h); + c.lineTo(w - dx3, h - dy3); + c.lineTo(w - dx1, h - dy1); + c.lineTo(0, h - dy1); + c.lineTo(notch, h * 0.5); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2SharpArrow2.prototype.cst.SHARP_ARROW2, mxShapeArrows2SharpArrow2); +mxShapeArrows2SharpArrow2.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2SharpArrow2.prototype.cst.SHARP_ARROW2] = function (state) { + var handles = [Graph.createHandle(state, ['dx1', 'dy1'], function (bounds) { + var dx1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + dy1 * bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy1'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height * 2))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), pt.x - bounds.x))) / 100; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['dx2'], function (bounds) { + var dx2 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + return new mxPoint(bounds.x + bounds.width - dx2, bounds.y); + }, function (bounds, pt) { + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + }); + handles.push(handle3); + var handle4 = Graph.createHandle(state, ['dx3', 'dy3'], function (bounds) { + var dx3 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx3', this.dx3)))); + var dy3 = Math.max(0, Math.min(1 - parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)) / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy3', this.dy3)))); + return new mxPoint(bounds.x + bounds.width - dx3, bounds.y + dy3 * bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx3'] = Math.round(100 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)), Math.min(bounds.width, bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy3'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)), (pt.y - bounds.y) / bounds.height * 2))) / 100; + }); + handles.push(handle4); + return handles; +}; + +mxShapeArrows2SharpArrow2.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy1 = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var dy3 = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy3', this.dy3)))); + var dx3 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx3', this.dx3)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var dx1a = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy1a = h * 0.5 * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx3, dy3)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, h - dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx3, h - dy3)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1) * 0.5, dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1) * 0.5, h - dy1)); + return constr; +}; + +function mxShapeArrows2CalloutArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 0; +} + +; +mxUtils.extend(mxShapeArrows2CalloutArrow, mxActor); +mxShapeArrows2CalloutArrow.prototype.customProperties = [{ + name: 'dx', + dispName: 'Arrowhead Length', + type: 'float', + min: 0, + defVal: 20 +}, { + name: 'arrowHead', + dispName: 'Arrowhead Width', + type: 'float', + min: 0, + defVal: 10 +}, { + name: 'dy', + dispName: 'Arrow Width', + type: 'float', + min: 0, + defVal: 10 +}, { + name: 'notch', + dispName: 'Rectangle Width', + type: 'float', + min: 0, + defVal: 60 +}]; +mxShapeArrows2CalloutArrow.prototype.cst = { + CALLOUT_ARROW: 'mxgraph.arrows2.calloutArrow' +}; + +mxShapeArrows2CalloutArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + c.begin(); + c.moveTo(0, 0); + c.lineTo(notch, 0); + c.lineTo(notch, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy - arrowHead); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx, h * 0.5 + dy + arrowHead); + c.lineTo(w - dx, h * 0.5 + dy); + c.lineTo(notch, h * 0.5 + dy); + c.lineTo(notch, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2CalloutArrow.prototype.cst.CALLOUT_ARROW, mxShapeArrows2CalloutArrow); +mxShapeArrows2CalloutArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2CalloutArrow.prototype.cst.CALLOUT_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2 - arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), bounds.y + bounds.height / 2 - pt.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), pt.x - bounds.x))) / 100; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['arrowHead'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy - arrowHead); + }, function (bounds, pt) { + this.state.style['arrowHead'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), bounds.y + bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)) - pt.y))) / 100; + }); + handles.push(handle3); + return handles; +}; + +mxShapeArrows2CalloutArrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, notch, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 - dy - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 + dy + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, notch, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, notch, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, notch * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, notch * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, (notch + w - dx) * 0.5, -dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, (notch + w - dx) * 0.5, dy)); + return constr; +}; + +function mxShapeArrows2BendArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 40; +} + +; +mxUtils.extend(mxShapeArrows2BendArrow, mxActor); +mxShapeArrows2BendArrow.prototype.customProperties = [{ + name: 'dx', + dispName: 'Arrowhead Length', + type: 'float', + min: 0, + defVal: 38 +}, { + name: 'dy', + dispName: 'Arrow Width', + type: 'float', + min: 0, + defVal: 15 +}, { + name: 'notch', + dispName: 'Notch', + type: 'float', + min: 0, + defVal: 0 +}, { + name: 'arrowHead', + dispName: 'Arrowhead Width', + type: 'float', + min: 0, + defVal: 55 +}, { + name: 'rounded', + dispName: 'Rounded', + type: 'boolean', + defVal: false +}]; +mxShapeArrows2BendArrow.prototype.cst = { + BEND_ARROW: 'mxgraph.arrows2.bendArrow' +}; + +mxShapeArrows2BendArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var rounded = mxUtils.getValue(this.style, 'rounded', '0'); + c.begin(); + c.moveTo(w - dx, 0); + c.lineTo(w, arrowHead * 0.5); + c.lineTo(w - dx, arrowHead); + c.lineTo(w - dx, arrowHead / 2 + dy); + + if (rounded == '1') { + c.lineTo(dy * 2.2, arrowHead / 2 + dy); + c.arcTo(dy * 0.2, dy * 0.2, 0, 0, 0, dy * 2, arrowHead / 2 + dy * 1.2); + } else { + c.lineTo(dy * 2, arrowHead / 2 + dy); + } + + c.lineTo(dy * 2, h); + c.lineTo(dy, h - notch); + c.lineTo(0, h); + + if (rounded == '1') { + c.lineTo(0, arrowHead / 2 + dy); + c.arcTo(dy * 2, dy * 2, 0, 0, 1, dy * 2, arrowHead / 2 - dy); + } else { + c.lineTo(0, arrowHead / 2 - dy); + } + + c.lineTo(w - dx, arrowHead / 2 - dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2BendArrow.prototype.cst.BEND_ARROW, mxShapeArrows2BendArrow); +mxShapeArrows2BendArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2BendArrow.prototype.cst.BEND_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + arrowHead / 2 - dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)) * 2.2, bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2, bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2 - pt.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(bounds.height - arrowHead / 2 - dy, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + dy, bounds.y + bounds.height - notch); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.height - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), bounds.y + bounds.height - pt.y))) / 100; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['arrowHead'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + arrowHead); + }, function (bounds, pt) { + this.state.style['arrowHead'] = Math.round(100 * Math.max(2 * parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), Math.min(bounds.height, pt.y - bounds.y))) / 100; + }); + handles.push(handle3); + return handles; +}; + +mxShapeArrows2BendArrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var rounded = mxUtils.getValue(this.style, 'rounded', '0'); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx + dy * 2) * 0.5, arrowHead / 2 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, arrowHead / 2 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, arrowHead * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, arrowHead / 2 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx + dy * 2) * 0.5, arrowHead / 2 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dy * 2, (h - arrowHead / 2 - dy) * 0.5 + arrowHead / 2 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dy * 2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dy, h - notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - arrowHead / 2 - dy) * 0.5 + arrowHead / 2 + dy)); + + if (rounded == '1') { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dy * 0.586, arrowHead / 2 - dy * 0.414)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2 * dy + dy * 0.0586, arrowHead / 2 + dy + dy * 0.0586)); + } else { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, arrowHead / 2 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dy * 2, arrowHead / 2 + dy)); + } + + return constr; +}; + +function mxShapeArrows2BendDoubleArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 40; +} + +; +mxUtils.extend(mxShapeArrows2BendDoubleArrow, mxActor); +mxShapeArrows2BendDoubleArrow.prototype.customProperties = [{ + name: 'dx', + dispName: 'Arrowhead Length', + type: 'float', + min: 0, + defVal: 38 +}, { + name: 'dy', + dispName: 'Arrow Width', + type: 'float', + min: 0, + defVal: 15 +}, { + name: 'arrowHead', + dispName: 'Arrowhead Width', + type: 'float', + min: 0, + defVal: 55 +}, { + name: 'rounded', + dispName: 'Rounded', + type: 'boolean', + defVal: false +}]; +mxShapeArrows2BendDoubleArrow.prototype.cst = { + BEND_DOUBLE_ARROW: 'mxgraph.arrows2.bendDoubleArrow' +}; + +mxShapeArrows2BendDoubleArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var rounded = mxUtils.getValue(this.style, 'rounded', '0'); + c.begin(); + c.moveTo(w - dx, 0); + c.lineTo(w, arrowHead * 0.5); + c.lineTo(w - dx, arrowHead); + c.lineTo(w - dx, arrowHead / 2 + dy); + + if (rounded == '1') { + c.lineTo(arrowHead / 2 + dy * 1.2, arrowHead / 2 + dy); + c.arcTo(dy * 0.2, dy * 0.2, 0, 0, 0, arrowHead / 2 + dy, arrowHead / 2 + dy * 1.2); + } else { + c.lineTo(arrowHead / 2 + dy, arrowHead / 2 + dy); + } + + c.lineTo(arrowHead / 2 + dy, h - dx); + c.lineTo(arrowHead, h - dx); + c.lineTo(arrowHead / 2, h); + c.lineTo(0, h - dx); + c.lineTo(arrowHead / 2 - dy, h - dx); + + if (rounded == '1') { + c.lineTo(arrowHead / 2 - dy, arrowHead / 2 + dy); + c.arcTo(dy * 2, dy * 2, 0, 0, 1, arrowHead / 2 + dy, arrowHead / 2 - dy); + } else { + c.lineTo(arrowHead / 2 - dy, arrowHead / 2 - dy); + } + + c.lineTo(w - dx, arrowHead / 2 - dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2BendDoubleArrow.prototype.cst.BEND_DOUBLE_ARROW, mxShapeArrows2BendDoubleArrow); +mxShapeArrows2BendDoubleArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2BendDoubleArrow.prototype.cst.BEND_DOUBLE_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var arrowHead = Math.max(0, Math.min(Math.min(bounds.height, bounds.width) - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(Math.min(bounds.width, bounds.height) - arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + arrowHead / 2 - dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(Math.min(bounds.width, bounds.height) - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2, bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2 - pt.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['arrowHead'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(Math.min(bounds.height, bounds.width) - dx, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + arrowHead); + }, function (bounds, pt) { + this.state.style['arrowHead'] = Math.round(100 * Math.max(2 * parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), Math.min(Math.min(bounds.height, bounds.width) - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), pt.y - bounds.y))) / 100; + }); + handles.push(handle2); + return handles; +}; + +mxShapeArrows2BendDoubleArrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var rounded = mxUtils.getValue(this.style, 'rounded', '0'); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, arrowHead * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, arrowHead / 2 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (arrowHead / 2 + dy + w - dx) * 0.5, arrowHead / 2 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (arrowHead / 2 + dy + w - dx) * 0.5, arrowHead / 2 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 + dy, (arrowHead / 2 + dy + h - dx) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 - dy, (arrowHead / 2 + dy + h - dx) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 + dy, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 - dy, h - dx)); + + if (rounded == '1') { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 - dy * 0.414, arrowHead / 2 - dy * 0.414)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 + dy + dy * 0.0586, arrowHead / 2 + dy + dy * 0.0586)); + } else { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 - dy, arrowHead / 2 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 + dy, arrowHead / 2 + dy)); + } + + return constr; +}; + +function mxShapeArrows2CalloutDoubleArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 0; +} + +; +mxUtils.extend(mxShapeArrows2CalloutDoubleArrow, mxActor); +mxShapeArrows2CalloutDoubleArrow.prototype.customProperties = [{ + name: 'dx', + dispName: 'Arrowhead Length', + type: 'float', + min: 0, + defVal: 20 +}, { + name: 'dy', + dispName: 'Arrow Width', + type: 'float', + min: 0, + defVal: 10 +}, { + name: 'arrowHead', + dispName: 'Arrowhead Width', + type: 'float', + min: 0, + defVal: 10 +}, { + name: 'notch', + dispName: 'Rect Size', + type: 'float', + min: 0, + defVal: 24 +}]; +mxShapeArrows2CalloutDoubleArrow.prototype.cst = { + CALLOUT_DOUBLE_ARROW: 'mxgraph.arrows2.calloutDoubleArrow' +}; + +mxShapeArrows2CalloutDoubleArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + c.begin(); + c.moveTo(w / 2 - notch, 0); + c.lineTo(w / 2 + notch, 0); + c.lineTo(w / 2 + notch, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy - arrowHead); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx, h * 0.5 + dy + arrowHead); + c.lineTo(w - dx, h * 0.5 + dy); + c.lineTo(w / 2 + notch, h * 0.5 + dy); + c.lineTo(w / 2 + notch, h); + c.lineTo(w / 2 - notch, h); + c.lineTo(w / 2 - notch, h * 0.5 + dy); + c.lineTo(dx, h * 0.5 + dy); + c.lineTo(dx, h * 0.5 + dy + arrowHead); + c.lineTo(0, h * 0.5); + c.lineTo(dx, h * 0.5 - dy - arrowHead); + c.lineTo(dx, h * 0.5 - dy); + c.lineTo(w / 2 - notch, h * 0.5 - dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2CalloutDoubleArrow.prototype.cst.CALLOUT_DOUBLE_ARROW, mxShapeArrows2CalloutDoubleArrow); +mxShapeArrows2CalloutDoubleArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2CalloutDoubleArrow.prototype.cst.CALLOUT_DOUBLE_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2 - arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2 - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), bounds.y + bounds.height / 2 - pt.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + bounds.width / 2 + notch, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), pt.x - bounds.x - bounds.width / 2))) / 100; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['arrowHead'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy - arrowHead); + }, function (bounds, pt) { + this.state.style['arrowHead'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), bounds.y + bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)) - pt.y))) / 100; + }); + handles.push(handle3); + return handles; +}; + +mxShapeArrows2CalloutDoubleArrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w / 2 - notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w / 2 + notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, w / 2 - notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, w / 2 + notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 - dy - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 + dy + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h * 0.5 - dy - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h * 0.5 + dy + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 1.5 - dx + notch) * 0.5, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 1.5 - dx + notch) * 0.5, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 0.5 + dx - notch) * 0.5, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 0.5 + dx - notch) * 0.5, h * 0.5 + dy)); + return constr; +}; + +function mxShapeArrows2CalloutQuadArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 0; +} + +; +mxUtils.extend(mxShapeArrows2CalloutQuadArrow, mxActor); +mxShapeArrows2CalloutQuadArrow.prototype.customProperties = [{ + name: 'dx', + dispName: 'Arrowhead Length', + type: 'float', + min: 0, + defVal: 20 +}, { + name: 'dy', + dispName: 'Arrow Width', + type: 'float', + min: 0, + defVal: 10 +}, { + name: 'notch', + dispName: 'Rect Size', + type: 'float', + min: 0, + defVal: 24 +}, { + name: 'arrowHead', + dispName: 'Arrowhead Width', + type: 'float', + min: 0, + defVal: 10 +}]; +mxShapeArrows2CalloutQuadArrow.prototype.cst = { + CALLOUT_QUAD_ARROW: 'mxgraph.arrows2.calloutQuadArrow' +}; + +mxShapeArrows2CalloutQuadArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + c.begin(); + c.moveTo(w * 0.5 + dy, h * 0.5 - notch); + c.lineTo(w * 0.5 + notch, h * 0.5 - notch); + c.lineTo(w * 0.5 + notch, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy - arrowHead); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx, h * 0.5 + dy + arrowHead); + c.lineTo(w - dx, h * 0.5 + dy); + c.lineTo(w * 0.5 + notch, h * 0.5 + dy); + c.lineTo(w * 0.5 + notch, h * 0.5 + notch); + c.lineTo(w * 0.5 + dy, h * 0.5 + notch); + c.lineTo(w * 0.5 + dy, h - dx); + c.lineTo(w * 0.5 + dy + arrowHead, h - dx); + c.lineTo(w * 0.5, h); + c.lineTo(w * 0.5 - dy - arrowHead, h - dx); + c.lineTo(w * 0.5 - dy, h - dx); + c.lineTo(w * 0.5 - dy, h * 0.5 + notch); + c.lineTo(w * 0.5 - notch, h * 0.5 + notch); + c.lineTo(w * 0.5 - notch, h * 0.5 + dy); + c.lineTo(dx, h * 0.5 + dy); + c.lineTo(dx, h * 0.5 + dy + arrowHead); + c.lineTo(0, h * 0.5); + c.lineTo(dx, h * 0.5 - dy - arrowHead); + c.lineTo(dx, h * 0.5 - dy); + c.lineTo(w * 0.5 - notch, h * 0.5 - dy); + c.lineTo(w * 0.5 - notch, h * 0.5 - notch); + c.lineTo(w * 0.5 - dy, h * 0.5 - notch); + c.lineTo(w * 0.5 - dy, dx); + c.lineTo(w * 0.5 - dy - arrowHead, dx); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.5 + dy + arrowHead, dx); + c.lineTo(w * 0.5 + dy, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2CalloutQuadArrow.prototype.cst.CALLOUT_QUAD_ARROW, mxShapeArrows2CalloutQuadArrow); +mxShapeArrows2CalloutQuadArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2CalloutQuadArrow.prototype.cst.CALLOUT_QUAD_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(Math.min(bounds.width, bounds.height) / 2 - Math.max(parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead))), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.y + bounds.height / 2 - pt.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var notch = Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), Math.min(Math.min(bounds.width, bounds.height), parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + bounds.width / 2 + notch, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), Math.min(Math.min(bounds.width, bounds.height) / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), pt.x - bounds.x - bounds.width / 2))) / 100; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['arrowHead'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy - arrowHead); + }, function (bounds, pt) { + this.state.style['arrowHead'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), bounds.y + bounds.height / 2 - pt.y))) / 100; + }); + handles.push(handle3); + return handles; +}; + +mxShapeArrows2CalloutQuadArrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy, h * 0.5 - notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + notch, h * 0.5 - notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + notch, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy, h * 0.5 + notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + notch, h * 0.5 + notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + notch, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy, h * 0.5 + notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - notch, h * 0.5 + notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - notch, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy, h * 0.5 - notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - notch, h * 0.5 - notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - notch, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 - dy - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 + dy + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy - arrowHead, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy + arrowHead, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h * 0.5 - dy - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h * 0.5 + dy + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy - arrowHead, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy + arrowHead, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75 + (notch - dx) * 0.5, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75 + (notch - dx) * 0.5, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy, h * 0.75 + (notch - dx) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy, h * 0.75 + (notch - dx) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25 - (notch - dx) * 0.5, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25 - (notch - dx) * 0.5, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy, h * 0.25 - (notch - dx) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy, h * 0.25 - (notch - dx) * 0.5)); + return constr; +}; + +function mxShapeArrows2CalloutDouble90Arrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy1 = 0.5; + this.dx1 = 0.5; + this.dx2 = 0; + this.dy2 = 0; + this.arrowHead = 0; +} + +; +mxUtils.extend(mxShapeArrows2CalloutDouble90Arrow, mxActor); +mxShapeArrows2CalloutDouble90Arrow.prototype.customProperties = [{ + name: 'dx1', + dispName: 'Arrowhead Length', + type: 'float', + min: 0, + defVal: 20 +}, { + name: 'dy1', + dispName: 'Arrow Width', + type: 'float', + min: 0, + defVal: 10 +}, { + name: 'dx2', + dispName: 'Callout Width', + type: 'float', + min: 0, + defVal: 70 +}, { + name: 'dy2', + dispName: 'Callout Height', + type: 'float', + min: 0, + defVal: 70 +}, { + name: 'arrowHead', + dispName: 'ArrowHead Width', + type: 'float', + min: 0, + defVal: 10 +}]; +mxShapeArrows2CalloutDouble90Arrow.prototype.cst = { + CALLOUT_DOUBLE_90_ARROW: 'mxgraph.arrows2.calloutDouble90Arrow' +}; + +mxShapeArrows2CalloutDouble90Arrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy1 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var dy2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + c.begin(); + c.moveTo(0, 0); + c.lineTo(dx2, 0); + c.lineTo(dx2, dy2 * 0.5 - dy1); + c.lineTo(w - dx1, dy2 * 0.5 - dy1); + c.lineTo(w - dx1, dy2 * 0.5 - dy1 - arrowHead); + c.lineTo(w, dy2 * 0.5); + c.lineTo(w - dx1, dy2 * 0.5 + dy1 + arrowHead); + c.lineTo(w - dx1, dy2 * 0.5 + dy1); + c.lineTo(dx2, dy2 * 0.5 + dy1); + c.lineTo(dx2, dy2); + c.lineTo(dx2 / 2 + dy1, dy2); + c.lineTo(dx2 / 2 + dy1, h - dx1); + c.lineTo(dx2 / 2 + dy1 + arrowHead, h - dx1); + c.lineTo(dx2 / 2, h); + c.lineTo(dx2 / 2 - dy1 - arrowHead, h - dx1); + c.lineTo(dx2 / 2 - dy1, h - dx1); + c.lineTo(dx2 / 2 - dy1, dy2); + c.lineTo(0, dy2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2CalloutDouble90Arrow.prototype.cst.CALLOUT_DOUBLE_90_ARROW, mxShapeArrows2CalloutDouble90Arrow); +mxShapeArrows2CalloutDouble90Arrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2CalloutDouble90Arrow.prototype.cst.CALLOUT_DOUBLE_90_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx1', 'dy1'], function (bounds) { + var arrowHead = Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx1 = Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)), parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2 - arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2 - dy1); + }, function (bounds, pt) { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)), bounds.height - parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy1'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2 - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2 - pt.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['dx2', 'dy2'], function (bounds) { + var dx2 = Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)) + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + var dy2 = Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)) + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), Math.min(bounds.height - parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)), parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)))); + return new mxPoint(bounds.x + dx2, bounds.y + dy2); + }, function (bounds, pt) { + this.state.style['dx2'] = Math.round(100 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)) + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), pt.x - bounds.x))) / 100; + this.state.style['dy2'] = Math.round(100 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)) + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), Math.min(bounds.height - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), pt.y - bounds.y))) / 100; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['arrowHead'], function (bounds) { + var dx1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + var arrowHead = Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2 - dy1 - arrowHead); + }, function (bounds, pt) { + this.state.style['arrowHead'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)), bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)) - pt.y))) / 100; + }); + handles.push(handle3); + return handles; +}; + +mxShapeArrows2CalloutDouble90Arrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy1 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var dy2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1 + dx2) * 0.5, dy2 * 0.5 - dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, dy2 * 0.5 - dy1 - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy2 * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, dy2 * 0.5 + dy1 + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1 + dx2) * 0.5, dy2 * 0.5 + dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 * 0.5 + dy1, (h - dx1 + dy2) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 * 0.5 - dy1, (h - dx1 + dy2) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 / 2 + dy1 + arrowHead, h - dx1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 / 2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 / 2 - dy1 - arrowHead, h - dx1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy2)); + return constr; +}; + +function mxShapeArrows2QuadArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 0; +} + +; +mxUtils.extend(mxShapeArrows2QuadArrow, mxActor); +mxShapeArrows2QuadArrow.prototype.customProperties = [{ + name: 'dx', + dispName: 'Arrowhead Length', + type: 'float', + min: 0, + defVal: 20 +}, { + name: 'dy', + dispName: 'Arrow Width', + type: 'float', + min: 0, + defVal: 10 +}, { + name: 'arrowHead', + dispName: 'Arrowhead Width', + type: 'float', + min: 0, + defVal: 10 +}]; +mxShapeArrows2QuadArrow.prototype.cst = { + QUAD_ARROW: 'mxgraph.arrows2.quadArrow' +}; + +mxShapeArrows2QuadArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + c.begin(); + c.moveTo(w * 0.5 + dy, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy - arrowHead); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx, h * 0.5 + dy + arrowHead); + c.lineTo(w - dx, h * 0.5 + dy); + c.lineTo(w * 0.5 + dy, h * 0.5 + dy); + c.lineTo(w * 0.5 + dy, h - dx); + c.lineTo(w * 0.5 + dy + arrowHead, h - dx); + c.lineTo(w * 0.5, h); + c.lineTo(w * 0.5 - dy - arrowHead, h - dx); + c.lineTo(w * 0.5 - dy, h - dx); + c.lineTo(w * 0.5 - dy, h * 0.5 + dy); + c.lineTo(dx, h * 0.5 + dy); + c.lineTo(dx, h * 0.5 + dy + arrowHead); + c.lineTo(0, h * 0.5); + c.lineTo(dx, h * 0.5 - dy - arrowHead); + c.lineTo(dx, h * 0.5 - dy); + c.lineTo(w * 0.5 - dy, h * 0.5 - dy); + c.lineTo(w * 0.5 - dy, dx); + c.lineTo(w * 0.5 - dy - arrowHead, dx); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.5 + dy + arrowHead, dx); + c.lineTo(w * 0.5 + dy, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2QuadArrow.prototype.cst.QUAD_ARROW, mxShapeArrows2QuadArrow); +mxShapeArrows2QuadArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2QuadArrow.prototype.cst.QUAD_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(Math.min(bounds.width, bounds.height) / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)) - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), bounds.y + bounds.height / 2 - pt.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['arrowHead'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy - arrowHead); + }, function (bounds, pt) { + this.state.style['arrowHead'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), bounds.y + bounds.height / 2 - pt.y))) / 100; + }); + handles.push(handle2); + return handles; +}; + +mxShapeArrows2QuadArrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 - dy - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 + dy + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h * 0.5 - dy - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h * 0.5 + dy + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy - arrowHead, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy + arrowHead, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy - arrowHead, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy + arrowHead, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy, (dx - dy) * 0.5 + h * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy, (dx - dy) * 0.5 + h * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy, (dy - dx) * 0.5 + h * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy, (dy - dx) * 0.5 + h * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (dx - dy) * 0.5 + w * 0.25, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (dx - dy) * 0.5 + w * 0.25, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (dy - dx) * 0.5 + w * 0.75, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (dy - dx) * 0.5 + w * 0.75, h * 0.5 + dy)); + return constr; +}; + +function mxShapeArrows2TriadArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.arrowHead = 0; +} + +; +mxUtils.extend(mxShapeArrows2TriadArrow, mxActor); +mxShapeArrows2TriadArrow.prototype.customProperties = [{ + name: 'dx', + dispName: 'Arrowhead Length', + type: 'float', + min: 0, + defVal: 20 +}, { + name: 'dy', + dispName: 'Arrow Width', + type: 'float', + min: 0, + defVal: 10 +}, { + name: 'arrowHead', + dispName: 'Arrowhead Width', + type: 'float', + min: 0, + defVal: 40 +}]; +mxShapeArrows2TriadArrow.prototype.cst = { + TRIAD_ARROW: 'mxgraph.arrows2.triadArrow' +}; + +mxShapeArrows2TriadArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + c.begin(); + c.moveTo(w * 0.5 + arrowHead * 0.5 - dy, h - arrowHead + dy); + c.lineTo(w - dx, h - arrowHead + dy); + c.lineTo(w - dx, h - arrowHead); + c.lineTo(w, h - arrowHead * 0.5); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(dx, h - dy); + c.lineTo(dx, h); + c.lineTo(0, h - arrowHead * 0.5); + c.lineTo(dx, h - arrowHead); + c.lineTo(dx, h - arrowHead + dy); + c.lineTo(w * 0.5 - arrowHead * 0.5 + dy, h - arrowHead + dy); + c.lineTo(w * 0.5 - arrowHead * 0.5 + dy, dx); + c.lineTo(w * 0.5 - arrowHead * 0.5, dx); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.5 + arrowHead * 0.5, dx); + c.lineTo(w * 0.5 + arrowHead * 0.5 - dy, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2TriadArrow.prototype.cst.TRIAD_ARROW, mxShapeArrows2TriadArrow); +mxShapeArrows2TriadArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2TriadArrow.prototype.cst.TRIAD_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height - dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(Math.min(bounds.height - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), bounds.width / 2 - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2, bounds.y + bounds.height - pt.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['arrowHead'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height - arrowHead); + }, function (bounds, pt) { + this.state.style['arrowHead'] = Math.round(100 * Math.max(2 * parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), Math.min(bounds.height - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)) * 2, bounds.y + bounds.height - pt.y))) / 100; + }); + handles.push(handle2); + return handles; +}; + +mxShapeArrows2TriadArrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, -arrowHead * 0.5, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, arrowHead * 0.5, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - arrowHead * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - arrowHead * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 1.5 - dx + arrowHead * 0.5 - dy) * 0.5, h - arrowHead + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 1.5 - dx + arrowHead * 0.5 - dy) * 0.5, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 0.5 + dx - arrowHead * 0.5 + dy) * 0.5, h - arrowHead + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 0.5 + dx - arrowHead * 0.5 + dy) * 0.5, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - arrowHead * 0.5 + dy, (dx + h - arrowHead + dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + arrowHead * 0.5 - dy, (dx + h - arrowHead + dy) * 0.5)); + return constr; +}; + +function mxShapeArrows2TailedArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 0; +} + +; +mxUtils.extend(mxShapeArrows2TailedArrow, mxActor); +mxShapeArrows2TailedArrow.prototype.customProperties = [{ + name: 'dx1', + dispName: 'Arrowhead Length', + type: 'float', + min: 0, + defVal: 20 +}, { + name: 'dy1', + dispName: 'Arrow Width', + type: 'float', + min: 0, + defVal: 10 +}, { + name: 'dx2', + dispName: 'Tail Length', + type: 'float', + min: 0, + defVal: 25 +}, { + name: 'dy2', + dispName: 'Tail Width', + type: 'float', + min: 0, + defVal: 30 +}, { + name: 'notch', + dispName: 'Notch', + type: 'float', + min: 0, + defVal: 0 +}, { + name: 'arrowHead', + dispName: 'Arrowhead Width', + type: 'float', + min: 0, + defVal: 20 +}]; +mxShapeArrows2TailedArrow.prototype.cst = { + TAILED_ARROW: 'mxgraph.arrows2.tailedArrow' +}; + +mxShapeArrows2TailedArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy1 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy2 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var x2 = 0; + + if (dy2 != 0) { + x2 = dx2 + dy2 * (dy2 - dy1) / dy2; + } + + c.begin(); + c.moveTo(0, h * 0.5 - dy2); + c.lineTo(dx2, h * 0.5 - dy2); + c.lineTo(x2, h * 0.5 - dy1); + c.lineTo(w - dx1, h * 0.5 - dy1); + c.lineTo(w - dx1, h * 0.5 - dy1 - arrowHead); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx1, h * 0.5 + dy1 + arrowHead); + c.lineTo(w - dx1, h * 0.5 + dy1); + c.lineTo(x2, h * 0.5 + dy1); + c.lineTo(dx2, h * 0.5 + dy2); + c.lineTo(0, h * 0.5 + dy2); + c.lineTo(notch, h * 0.5); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2TailedArrow.prototype.cst.TAILED_ARROW, mxShapeArrows2TailedArrow); +mxShapeArrows2TailedArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2TailedArrow.prototype.cst.TAILED_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx1', 'dy1'], function (bounds) { + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(bounds.height / 2 - arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + bounds.height / 2 - dy1); + }, function (bounds, pt) { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy1'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)), bounds.y + bounds.height / 2 - pt.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)), pt.x - bounds.x))) / 100; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['arrowHead'], function (bounds) { + var dx1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + bounds.height / 2 - dy1 - arrowHead); + }, function (bounds, pt) { + this.state.style['arrowHead'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)), bounds.y + bounds.height / 2 - pt.y))) / 100; + }); + handles.push(handle3); + var handle4 = Graph.createHandle(state, ['dx2', 'dy2'], function (bounds) { + var dx2 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + var dy2 = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)))); + return new mxPoint(bounds.x + dx2, bounds.y + bounds.height / 2 - dy2); + }, function (bounds, pt) { + this.state.style['dx2'] = Math.round(100 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)) - parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) + parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)) - 1, pt.x - bounds.x))) / 100; + this.state.style['dy2'] = Math.round(100 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)), Math.min(bounds.height / 2, bounds.y + bounds.height / 2 - pt.y))) / 100; + }); + handles.push(handle4); + return handles; +}; + +mxShapeArrows2TailedArrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy1 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy2 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var x2 = 0; + + if (dy2 != 0) { + x2 = dx2 + dy2 * (dy2 - dy1) / dy2; + } + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h * 0.5 - dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, h * 0.5 - dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1 + x2) * 0.5, h * 0.5 - dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, h * 0.5 - dy1 - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h * 0.5 + dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, h * 0.5 + dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1 + x2) * 0.5, h * 0.5 + dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, h * 0.5 + dy1 + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + return constr; +}; + +function mxShapeArrows2TailedNotchedArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 0; +} + +; +mxUtils.extend(mxShapeArrows2TailedNotchedArrow, mxActor); +mxShapeArrows2TailedNotchedArrow.prototype.customProperties = [{ + name: 'dx1', + dispName: 'Arrowhead Length', + type: 'float', + mix: 0, + defVal: 20 +}, { + name: 'dy1', + dispName: 'Arrow Width', + type: 'float', + min: 0, + defVal: 10 +}, { + name: 'dx2', + dispName: 'Tail Length', + type: 'float', + min: 0, + defVal: 25 +}, { + name: 'dy2', + dispName: 'Tail Width', + type: 'float', + min: 0, + defVal: 30 +}, { + name: 'notch', + dispName: 'Notch', + type: 'float', + min: 0, + defVal: 20 +}, { + name: 'arrowHead', + dispName: 'Arrowhead Width', + type: 'float', + min: 0, + defVal: 20 +}]; +mxShapeArrows2TailedNotchedArrow.prototype.cst = { + TAILED_NOTCHED_ARROW: 'mxgraph.arrows2.tailedNotchedArrow' +}; + +mxShapeArrows2TailedNotchedArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy1 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy2 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var x2 = 0; + + if (dy2 != 0) { + x2 = dx2 + notch * (dy2 - dy1) / dy2; + } + + c.begin(); + c.moveTo(0, h * 0.5 - dy2); + c.lineTo(dx2, h * 0.5 - dy2); + c.lineTo(x2, h * 0.5 - dy1); + c.lineTo(w - dx1, h * 0.5 - dy1); + c.lineTo(w - dx1, h * 0.5 - dy1 - arrowHead); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx1, h * 0.5 + dy1 + arrowHead); + c.lineTo(w - dx1, h * 0.5 + dy1); + c.lineTo(x2, h * 0.5 + dy1); + c.lineTo(dx2, h * 0.5 + dy2); + c.lineTo(0, h * 0.5 + dy2); + c.lineTo(notch, h * 0.5); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2TailedNotchedArrow.prototype.cst.TAILED_NOTCHED_ARROW, mxShapeArrows2TailedNotchedArrow); +mxShapeArrows2TailedNotchedArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2TailedNotchedArrow.prototype.cst.TAILED_NOTCHED_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx1', 'dy1'], function (bounds) { + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(bounds.height / 2 - arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + bounds.height / 2 - dy1); + }, function (bounds, pt) { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)) - parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy1'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)), bounds.y + bounds.height / 2 - pt.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), pt.x - bounds.x))) / 100; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['arrowHead'], function (bounds) { + var dx1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + bounds.height / 2 - dy1 - arrowHead); + }, function (bounds, pt) { + this.state.style['arrowHead'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)), bounds.y + bounds.height / 2 - pt.y))) / 100; + }); + handles.push(handle3); + var handle4 = Graph.createHandle(state, ['dx2', 'dy2'], function (bounds) { + var dx2 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + var dy2 = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)))); + return new mxPoint(bounds.x + dx2, bounds.y + bounds.height / 2 - dy2); + }, function (bounds, pt) { + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)) - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), pt.x - bounds.x))) / 100; + this.state.style['dy2'] = Math.round(100 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)), Math.min(bounds.height / 2, bounds.y + bounds.height / 2 - pt.y))) / 100; + }); + handles.push(handle4); + return handles; +}; + +mxShapeArrows2TailedNotchedArrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy1 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy2 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var x2 = 0; + + if (dy2 != 0) { + x2 = dx2 + notch * (dy2 - dy1) / dy2; + } + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h * 0.5 - dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, h * 0.5 - dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1 + x2) * 0.5, h * 0.5 - dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, h * 0.5 - dy1 - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h * 0.5 + dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, h * 0.5 + dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1 + x2) * 0.5, h * 0.5 + dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, h * 0.5 + dy1 + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + return constr; +}; + +function mxShapeArrows2StripedArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; +} + +; +mxUtils.extend(mxShapeArrows2StripedArrow, mxActor); +mxShapeArrows2StripedArrow.prototype.customProperties = [{ + name: 'dx', + dispName: 'Arrowhead Length', + type: 'float', + min: 0, + defVal: 40 +}, { + name: 'dy', + dispName: 'Arrow Width', + type: 'float', + min: 0, + max: 1, + defVal: 0.6 +}, { + name: 'notch', + dispName: 'Stripes Length', + type: 'float', + min: 0, + defVal: 25 +}]; +mxShapeArrows2StripedArrow.prototype.cst = { + STRIPED_ARROW: 'mxgraph.arrows2.stripedArrow' +}; + +mxShapeArrows2StripedArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + c.begin(); + c.moveTo(notch, dy); + c.lineTo(w - dx, dy); + c.lineTo(w - dx, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(notch, h - dy); + c.close(); + c.moveTo(0, h - dy); + c.lineTo(notch * 0.16, h - dy); + c.lineTo(notch * 0.16, dy); + c.lineTo(0, dy); + c.close(); + c.moveTo(notch * 0.32, h - dy); + c.lineTo(notch * 0.8, h - dy); + c.lineTo(notch * 0.8, dy); + c.lineTo(notch * 0.32, dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2StripedArrow.prototype.cst.STRIPED_ARROW, mxShapeArrows2StripedArrow); +mxShapeArrows2StripedArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2StripedArrow.prototype.cst.STRIPED_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dy * bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height * 2))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), pt.x - bounds.x))) / 100; + }); + handles.push(handle2); + return handles; +}; + +mxShapeArrows2StripedArrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 0, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, h - dy)); + return constr; +}; + +function mxShapeArrows2JumpInArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.arrowHead = 40; +} + +; +mxUtils.extend(mxShapeArrows2JumpInArrow, mxActor); +mxShapeArrows2JumpInArrow.prototype.customProperties = [{ + name: 'dx', + dispName: 'Arrowhead Length', + type: 'float', + min: 0, + defVal: 38 +}, { + name: 'dy', + dispName: 'Arrow Width', + type: 'float', + min: 0, + defVal: 15 +}, { + name: 'arrowHead', + dispName: 'Arrowhead Width', + type: 'float', + min: 0, + defVal: 55 +}]; +mxShapeArrows2JumpInArrow.prototype.cst = { + JUMP_IN_ARROW: 'mxgraph.arrows2.jumpInArrow' +}; + +mxShapeArrows2JumpInArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + c.begin(); + c.moveTo(w - dx, 0); + c.lineTo(w, arrowHead * 0.5); + c.lineTo(w - dx, arrowHead); + c.lineTo(w - dx, arrowHead / 2 + dy); + c.arcTo(w - dx, h - arrowHead / 2 - dy, 0, 0, 0, 0, h); + c.arcTo(w - dx, h - arrowHead / 2 + dy, 0, 0, 1, w - dx, arrowHead / 2 - dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2JumpInArrow.prototype.cst.JUMP_IN_ARROW, mxShapeArrows2JumpInArrow); +mxShapeArrows2JumpInArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2JumpInArrow.prototype.cst.JUMP_IN_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + arrowHead / 2 - dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2, bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2 - pt.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['arrowHead'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + arrowHead); + }, function (bounds, pt) { + this.state.style['arrowHead'] = Math.round(100 * Math.max(2 * parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), Math.min(bounds.height, pt.y - bounds.y))) / 100; + }); + handles.push(handle2); + return handles; +}; + +mxShapeArrows2JumpInArrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, arrowHead * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, arrowHead)); + return constr; +}; + +function mxShapeArrows2UTurnArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.arrowHead = 40; +} + +; +mxUtils.extend(mxShapeArrows2UTurnArrow, mxActor); +mxShapeArrows2UTurnArrow.prototype.customProperties = [{ + name: 'dx2', + dispName: 'Arrowhead Length', + type: 'float', + min: 0, + defVal: 25 +}, { + name: 'dy', + dispName: 'Arrow Width', + type: 'float', + min: 0, + defVal: 11 +}, { + name: 'arrowHead', + dispName: 'Arrowhead Width', + type: 'float', + min: 0, + defVal: 43 +}]; +mxShapeArrows2UTurnArrow.prototype.cst = { + U_TURN_ARROW: 'mxgraph.arrows2.uTurnArrow' +}; + +mxShapeArrows2UTurnArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var dx = (h - arrowHead / 2 + dy) / 2; + var dx2 = Math.max(0, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2))); + c.begin(); + c.moveTo(dx, 0); + c.lineTo(dx + dx2, arrowHead * 0.5); + c.lineTo(dx, arrowHead); + c.lineTo(dx, arrowHead / 2 + dy); + c.arcTo(dx - 2 * dy, dx - 2 * dy, 0, 0, 0, dx, h - 2 * dy); + c.lineTo(Math.max(w, dx), h - 2 * dy); + c.lineTo(Math.max(w, dx), h); + c.lineTo(dx, h); + c.arcTo(dx, dx, 0, 0, 1, dx, arrowHead / 2 - dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2UTurnArrow.prototype.cst.U_TURN_ARROW, mxShapeArrows2UTurnArrow); +mxShapeArrows2UTurnArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2UTurnArrow.prototype.cst.U_TURN_ARROW] = function (state) { + var handles = [Graph.createHandle(state, ['dy'], function (bounds) { + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var dx = (bounds.height - arrowHead / 2 + dy) / 2; + return new mxPoint(bounds.x + dx, bounds.y + arrowHead / 2 - dy); + }, function (bounds, pt) { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2, bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2 - pt.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['dx2'], function (bounds) { + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var dx = (bounds.height - arrowHead / 2 + dy) / 2; + var dx2 = Math.max(0, Math.min(bounds.width - dx, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + return new mxPoint(bounds.x + dx + dx2, bounds.y + arrowHead / 2); + }, function (bounds, pt) { + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var dx = (bounds.height - arrowHead / 2 + dy) / 2; + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(Math.max(bounds.width, dx), pt.x - bounds.x - dx))) / 100; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['arrowHead'], function (bounds) { + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var dx = (bounds.height - arrowHead / 2 + dy) / 2; + return new mxPoint(bounds.x + dx, bounds.y + arrowHead); + }, function (bounds, pt) { + this.state.style['arrowHead'] = Math.round(100 * Math.max(2 * parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + }); + handles.push(handle3); + return handles; +}; + +mxShapeArrows2UTurnArrow.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var dx = (h - arrowHead / 2 + dy) / 2; + var dx2 = Math.max(0, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2))); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + dx2, arrowHead * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (dx + w) * 0.5, h - 2 * dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, Math.max(w, dx), h - 2 * dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, Math.max(w, dx), h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, Math.max(w, dx), h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (dx + w) * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h + arrowHead * 0.5 - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead - 2 * dy, (h + arrowHead * 0.5 - dy) * 0.5)); + return constr; +}; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxAtlassian.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxAtlassian.js new file mode 100644 index 0000000000000..27b404fd318dc --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxAtlassian.js @@ -0,0 +1,327 @@ +"use strict"; + +function mxAtlassianJiraIssue(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxAtlassianJiraIssue, mxRectangleShape); +mxAtlassianJiraIssue.prototype.customProperties = [{ + name: 'issueType', + dispName: 'Issue Type', + type: 'enum', + enumList: [{ + val: 'story', + dispName: 'Story' + }, { + val: 'task', + dispName: 'Task' + }, { + val: 'subTask', + dispName: 'Sub-Task' + }, { + val: 'feature', + dispName: 'Feature' + }, { + val: 'bug', + dispName: 'Bug' + }, { + val: 'techTask', + dispName: 'Tech Task' + }, { + val: 'epic', + dispName: 'Epic' + }, { + val: 'improvement', + dispName: 'Improvement' + }, { + val: 'fault', + dispName: 'Fault' + }, { + val: 'change', + dispName: 'Change' + }, { + val: 'access', + dispName: 'Access' + }, { + val: 'purchase', + dispName: 'Purchase' + }, { + val: 'itHelp', + dispName: 'IT Help' + }] +}, { + name: 'issuePriority', + dispName: 'Issue Priority', + type: 'enum', + enumList: [{ + val: 'blocker', + dispName: 'Blocker' + }, { + val: 'critical', + dispName: 'Critical' + }, { + val: 'major', + dispName: 'Major' + }, { + val: 'minor', + dispName: 'Minor' + }, { + val: 'trivial', + dispName: 'Trivial' + }] +}, { + name: 'issueStatus', + dispName: 'Issue Status', + type: 'enum', + enumList: [{ + val: 'todo', + dispName: 'TODO' + }, { + val: 'inProgress', + dispName: 'In Progress' + }, { + val: 'inReview', + dispName: 'In Review' + }, { + val: 'done', + dispName: 'Done' + }] +}]; +mxAtlassianJiraIssue.prototype.cst = { + ISSUE: 'mxgraph.atlassian.issue' +}; + +mxAtlassianJiraIssue.prototype.paintForeground = function (c, x, y, w, h) { + c.translate(x, y); + var issueType = mxUtils.getValue(this.style, 'issueType', 'task'); + var issuePriority = mxUtils.getValue(this.style, 'issuePriority', 'minor'); + var issueStatus = mxUtils.getValue(this.style, 'issueStatus', 'todo'); + c.setStrokeColor('none'); + + switch (issueType) { + case 'story': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.story'); + + if (stencil != null) { + c.setFillColor('#61B659'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + + case 'task': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.task'); + + if (stencil != null) { + c.setFillColor('#5EA3E4'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + + case 'subTask': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.subtask'); + + if (stencil != null) { + c.setFillColor('#5EA3E4'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + + case 'feature': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.new_feature'); + + if (stencil != null) { + c.setFillColor('#61B659'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + + case 'bug': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.bug'); + + if (stencil != null) { + c.setFillColor('#CE0000'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + + case 'techTask': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.tech_task'); + + if (stencil != null) { + c.setFillColor('#999C95'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + + case 'epic': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.epic'); + + if (stencil != null) { + c.setFillColor('#9E4ADD'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + + case 'improvement': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.improvement'); + + if (stencil != null) { + c.setFillColor('#61B659'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + + case 'fault': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.fault'); + + if (stencil != null) { + c.setFillColor('#F8902F'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + + case 'change': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.change'); + + if (stencil != null) { + c.setFillColor('#9E4ADD'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + + case 'access': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.access'); + + if (stencil != null) { + c.setFillColor('#F8902F'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + + case 'purchase': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.purchase'); + + if (stencil != null) { + c.setFillColor('#61B659'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + + case 'itHelp': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.it_help'); + + if (stencil != null) { + c.setFillColor('#5EA3E4'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + } + + switch (issuePriority) { + case 'blocker': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.no'); + + if (stencil != null) { + c.setFillColor('#CE0000'); + stencil.drawShape(c, this, 85, 5, 10, 10); + } + + break; + + case 'critical': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.critical'); + + if (stencil != null) { + c.setFillColor('#CE0000'); + stencil.drawShape(c, this, 86, 3, 8, 14); + } + + break; + + case 'major': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.double_up'); + + if (stencil != null) { + c.setFillColor('#CE0000'); + stencil.drawShape(c, this, 85, 5, 10, 10); + } + + break; + + case 'minor': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.double'); + + if (stencil != null) { + c.setFillColor('#2A8735'); + stencil.drawShape(c, this, 85, 5, 10, 10); + } + + break; + + case 'trivial': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.single'); + + if (stencil != null) { + c.setFillColor('#9AA1B2'); + stencil.drawShape(c, this, 85, 5, 10, 10); + } + + break; + } + + c.setFillColor('#FFFFFD'); + c.setFontColor('#4E6B89'); + + switch (issueStatus) { + case 'todo': + c.rect(w - 45, 5, 40, 20); + c.fill(); + c.text(w - 25, 15, 0, 0, 'TO DO', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + break; + + case 'inProgress': + c.rect(w - 85, 5, 80, 20); + c.fill(); + c.text(w - 45, 15, 0, 0, 'IN PROGRESS', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + break; + + case 'inReview': + c.rect(w - 75, 5, 70, 20); + c.fill(); + c.text(w - 40, 15, 0, 0, 'IN REVIEW', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + break; + + case 'done': + c.rect(w - 45, 5, 40, 20); + c.fill(); + c.text(w - 25, 15, 0, 0, 'DONE', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + break; + + default: + var tw = mxUtils.getValue(this.style, 'issueStatusWidth', issueStatus.length * 6.5); + c.rect(w - tw - 5, 5, tw, 20); + c.fill(); + c.text(w - 7, 15, 0, 0, issueStatus, mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxAtlassianJiraIssue.prototype.cst.ISSUE, mxAtlassianJiraIssue); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxBasic.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxBasic.js new file mode 100644 index 0000000000000..895b1b7980d8c --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxBasic.js @@ -0,0 +1,3579 @@ +"use strict"; + +function mxShapeBasicCross(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicCross, mxActor); +mxShapeBasicCross.prototype.cst = { + CROSS: 'mxgraph.basic.cross2' +}; + +mxShapeBasicCross.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + c.begin(); + c.moveTo(w * 0.5 + dx, 0); + c.lineTo(w * 0.5 + dx, h * 0.5 - dx); + c.lineTo(w, h * 0.5 - dx); + c.lineTo(w, h * 0.5 + dx); + c.lineTo(w * 0.5 + dx, h * 0.5 + dx); + c.lineTo(w * 0.5 + dx, h); + c.lineTo(w * 0.5 - dx, h); + c.lineTo(w * 0.5 - dx, h * 0.5 + dx); + c.lineTo(0, h * 0.5 + dx); + c.lineTo(0, h * 0.5 - dx); + c.lineTo(w * 0.5 - dx, h * 0.5 - dx); + c.lineTo(w * 0.5 - dx, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicCross.prototype.cst.CROSS, mxShapeBasicCross); +mxShapeBasicCross.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicCross.prototype.cst.CROSS] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + bounds.width / 2 + dx, bounds.y + bounds.height / 2 - dx); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x - bounds.width / 2))) / 100; + })]; + return handles; +}; + +function mxShapeBasicRectCallout(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicRectCallout, mxActor); +mxShapeBasicRectCallout.prototype.customProperties = [{ + name: 'dx', + dispName: 'Callout Position', + type: 'float', + min: 0, + defVal: 30 +}, { + name: 'dy', + dispName: 'Callout Size', + type: 'float', + min: 0, + defVal: 15 +}]; +mxShapeBasicRectCallout.prototype.cst = { + RECT_CALLOUT: 'mxgraph.basic.rectCallout' +}; + +mxShapeBasicRectCallout.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + c.begin(); + c.moveTo(dx - dy * 0.5, h - dy); + c.lineTo(0, h - dy); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h - dy); + c.lineTo(dx + dy * 0.5, h - dy); + c.lineTo(dx - dy, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeBasicRectCallout.prototype.getLabelMargins = function () { + if (mxUtils.getValue(this.style, 'boundedLbl', false)) { + return new mxRectangle(0, 0, 0, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)) * this.scale); + } + + return null; +}; + +mxCellRenderer.registerShape(mxShapeBasicRectCallout.prototype.cst.RECT_CALLOUT, mxShapeBasicRectCallout); +mxShapeBasicRectCallout.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicRectCallout.prototype.cst.RECT_CALLOUT] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + dx, bounds.y + bounds.height - dy); + }, function (bounds, pt) { + var y = parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)) * 0.6; + this.state.style['dx'] = Math.round(100 * Math.max(y, Math.min(bounds.width - y, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, bounds.y + bounds.height - pt.y))); + })]; + return handles; +}; + +mxShapeBasicRectCallout.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx - dy, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dy) * 0.5)); + return constr; +}; + +function mxShapeBasicRoundRectCallout(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.size = 10; +} + +; +mxUtils.extend(mxShapeBasicRoundRectCallout, mxActor); +mxShapeBasicRoundRectCallout.prototype.cst = { + ROUND_RECT_CALLOUT: 'mxgraph.basic.roundRectCallout' +}; +mxShapeBasicRoundRectCallout.prototype.getLabelMargins = mxShapeBasicRectCallout.prototype.getLabelMargins; +mxShapeBasicRoundRectCallout.prototype.customProperties = [{ + name: 'size', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 5 +}, { + name: 'dx', + dispName: 'Callout Position', + type: 'float', + min: 0, + defVal: 30 +}, { + name: 'dy', + dispName: 'Callout Size', + type: 'float', + min: 0, + defVal: 15 +}]; + +mxShapeBasicRoundRectCallout.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var r = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + r = Math.min((h - dy) / 2, w / 2, r); + dx = Math.max(r + dy * 0.5, dx); + dx = Math.min(w - r - dy * 0.5, dx); + c.begin(); + c.moveTo(dx - dy * 0.5, h - dy); + c.lineTo(r, h - dy); + c.arcTo(r, r, 0, 0, 1, 0, h - dy - r); + c.lineTo(0, r); + c.arcTo(r, r, 0, 0, 1, r, 0); + c.lineTo(w - r, 0); + c.arcTo(r, r, 0, 0, 1, w, r); + c.lineTo(w, h - dy - r); + c.arcTo(r, r, 0, 0, 1, w - r, h - dy); + c.lineTo(dx + dy * 0.5, h - dy); + c.arcTo(1.9 * dy, 1.4 * dy, 0, 0, 1, dx - dy, h); + c.arcTo(0.9 * dy, 1.4 * dy, 0, 0, 0, dx - dy * 0.5, h - dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicRoundRectCallout.prototype.cst.ROUND_RECT_CALLOUT, mxShapeBasicRoundRectCallout); +mxShapeBasicRoundRectCallout.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicRoundRectCallout.prototype.cst.ROUND_RECT_CALLOUT] = function (state) { + return [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + dx, bounds.y + bounds.height - dy); + }, function (bounds, pt) { + var y = parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)) * 0.6; + this.state.style['dx'] = Math.round(100 * Math.max(y, Math.min(bounds.width - y, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, bounds.y + bounds.height - pt.y))); + }), Graph.createHandle(state, ['size'], function (bounds) { + var size = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'size', this.size)))); + return new mxPoint(bounds.x + bounds.width - size, bounds.y + 10); + }, function (bounds, pt) { + var dy = parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)); + this.state.style['size'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2, (bounds.height - dy) / 2, bounds.x + bounds.width - pt.x))) / 100; + })]; +}; + +mxShapeBasicRoundRectCallout.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var r = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + r = Math.min((h - dy) / 2, w / 2, r); + dx = Math.max(r + dy * 0.5, dx); + dx = Math.min(w - r - dy * 0.5, dx); + + if (r < w * 0.25) { + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + } + + if (r < (h - dy) * 0.25) { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dy) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dy) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dy) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dy) * 0.75)); + } + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.293, r * 0.293)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.293, r * 0.293)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.293, h - dy - r * 0.293)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.293, h - dy - r * 0.293)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx - dy, h)); + return constr; +}; + +function mxShapeBasicWave(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; +} + +; +mxUtils.extend(mxShapeBasicWave, mxActor); +mxShapeBasicWave.prototype.customProperties = [{ + name: 'dy', + dispName: 'Wave Size', + type: 'float', + min: 0, + max: 1, + defVal: 0.3 +}]; +mxShapeBasicWave.prototype.cst = { + WAVE: 'mxgraph.basic.wave2' +}; + +mxShapeBasicWave.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var fy = 1.4; + c.begin(); + c.moveTo(0, dy / 2); + c.quadTo(w / 6, dy * (1 - fy), w / 3, dy / 2); + c.quadTo(w / 2, dy * fy, w * 2 / 3, dy / 2); + c.quadTo(w * 5 / 6, dy * (1 - fy), w, dy / 2); + c.lineTo(w, h - dy / 2); + c.quadTo(w * 5 / 6, h - dy * fy, w * 2 / 3, h - dy / 2); + c.quadTo(w / 2, h - dy * (1 - fy), w / 3, h - dy / 2); + c.quadTo(w / 6, h - dy * fy, 0, h - dy / 2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicWave.prototype.cst.WAVE, mxShapeBasicWave); +mxShapeBasicWave.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicWave.prototype.cst.WAVE] = function (state) { + var handles = [Graph.createHandle(state, ['dy'], function (bounds) { + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width / 2, bounds.y + dy * bounds.height); + }, function (bounds, pt) { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 100; + })]; + return handles; +}; + +mxShapeBasicWave.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var fy = 1.4; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w / 6, h * 0.015)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w / 3, dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, dy * 0.95)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.67, dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.83, h * 0.015)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.83, h - dy * 0.95)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.67, h - dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, h - dy * 0.04)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w / 3, h - dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w / 6, h - dy * 0.95)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h * 0.5)); + return constr; +}; + +function mxShapeBasicOctagon(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicOctagon, mxActor); +mxShapeBasicOctagon.prototype.customProperties = [{ + name: 'dx', + dispName: 'Cutoff Size', + type: 'float', + min: 0, + defVal: 15 +}]; +mxShapeBasicOctagon.prototype.cst = { + OCTAGON: 'mxgraph.basic.octagon2' +}; + +mxShapeBasicOctagon.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + dx = Math.min(w * 0.5, h * 0.5, dx); + c.begin(); + c.moveTo(dx, 0); + c.lineTo(w - dx, 0); + c.lineTo(w, dx); + c.lineTo(w, h - dx); + c.lineTo(w - dx, h); + c.lineTo(dx, h); + c.lineTo(0, h - dx); + c.lineTo(0, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicOctagon.prototype.cst.OCTAGON, mxShapeBasicOctagon); +mxShapeBasicOctagon.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicOctagon.prototype.cst.OCTAGON] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +mxShapeBasicOctagon.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + dx = Math.min(w * 0.5, h * 0.5, dx) * 0.5; + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h - dx)); + return constr; +}; + +function mxShapeBasicIsoCube(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.isoAngle = 15; +} + +; +mxUtils.extend(mxShapeBasicIsoCube, mxActor); +mxShapeBasicIsoCube.prototype.customProperties = [{ + name: 'isoAngle', + dispName: 'Perspective Angle', + type: 'float', + min: 0, + defVal: 15 +}]; +mxShapeBasicIsoCube.prototype.cst = { + ISO_CUBE: 'mxgraph.basic.isocube' +}; + +mxShapeBasicIsoCube.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var isoAngle = Math.max(0.01, Math.min(94, parseFloat(mxUtils.getValue(this.style, 'isoAngle', this.isoAngle)))) * Math.PI / 200; + var isoH = Math.min(w * Math.tan(isoAngle), h * 0.5); + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w, isoH); + c.lineTo(w, h - isoH); + c.lineTo(w * 0.5, h); + c.lineTo(0, h - isoH); + c.lineTo(0, isoH); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.begin(); + c.moveTo(0, isoH); + c.lineTo(w * 0.5, 2 * isoH); + c.lineTo(w, isoH); + c.moveTo(w * 0.5, 2 * isoH); + c.lineTo(w * 0.5, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicIsoCube.prototype.cst.ISO_CUBE, mxShapeBasicIsoCube); +mxShapeBasicIsoCube.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicIsoCube.prototype.cst.ISO_CUBE] = function (state) { + var handles = [Graph.createHandle(state, ['isoAngle'], function (bounds) { + var isoAngle = Math.max(0.01, Math.min(94, parseFloat(mxUtils.getValue(this.state.style, 'isoAngle', this.isoAngle)))) * Math.PI / 200; + var isoH = Math.min(bounds.width * Math.tan(isoAngle), bounds.height * 0.5); + return new mxPoint(bounds.x, bounds.y + isoH); + }, function (bounds, pt) { + this.state.style['isoAngle'] = Math.round(100 * Math.max(0, Math.min(100, pt.y - bounds.y))) / 100; + })]; + return handles; +}; + +mxShapeBasicIsoCube.prototype.getConstraints = function (style, w, h) { + var constr = []; + var isoAngle = Math.max(0.01, Math.min(94, parseFloat(mxUtils.getValue(this.style, 'isoAngle', this.isoAngle)))) * Math.PI / 200; + var isoH = Math.min(w * Math.tan(isoAngle), h * 0.5); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, isoH)); + return constr; +}; + +function mxShapeBasicTriangleAcute(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicTriangleAcute, mxActor); +mxShapeBasicTriangleAcute.prototype.customProperties = [{ + name: 'dx', + dispName: 'Top', + type: 'float', + min: 0, + max: 1, + defVal: 0.5 +}]; +mxShapeBasicTriangleAcute.prototype.cst = { + ACUTE_TRIANGLE: 'mxgraph.basic.acute_triangle' +}; + +mxShapeBasicTriangleAcute.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + c.begin(); + c.moveTo(0, h); + c.lineTo(dx, 0); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicTriangleAcute.prototype.cst.ACUTE_TRIANGLE, mxShapeBasicTriangleAcute); +mxShapeBasicTriangleAcute.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicTriangleAcute.prototype.cst.ACUTE_TRIANGLE] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx * bounds.width, bounds.y + 10); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + return handles; +}; + +mxShapeBasicTriangleAcute.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx * 0.5, h * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - (w - dx) * 0.5, h * 0.5)); + return constr; +}; + +function mxShapeBasicTriangleObtuse(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicTriangleObtuse, mxActor); +mxShapeBasicTriangleObtuse.prototype.customProperties = [{ + name: 'dx', + dispName: 'Bottom', + type: 'float', + min: 0, + max: 1, + defVal: 0.25 +}]; +mxShapeBasicTriangleObtuse.prototype.cst = { + OBTUSE_TRIANGLE: 'mxgraph.basic.obtuse_triangle' +}; + +mxShapeBasicTriangleObtuse.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + c.begin(); + c.moveTo(dx, h); + c.lineTo(0, 0); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicTriangleObtuse.prototype.cst.OBTUSE_TRIANGLE, mxShapeBasicTriangleObtuse); +mxShapeBasicTriangleObtuse.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicTriangleObtuse.prototype.cst.OBTUSE_TRIANGLE] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx * bounds.width, bounds.y + bounds.height - 10); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + return handles; +}; + +mxShapeBasicTriangleObtuse.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, h * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w + dx) * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx * 0.5, h * 0.5)); + return constr; +}; + +function mxShapeBasicDrop(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBasicDrop, mxActor); +mxShapeBasicDrop.prototype.cst = { + DROP: 'mxgraph.basic.drop' +}; + +mxShapeBasicDrop.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var r = Math.min(h, w) * 0.5; + var d = h - r; + var a = Math.sqrt(d * d - r * r); + var angle = Math.atan(a / r); + var x1 = r * Math.sin(angle); + var y1 = r * Math.cos(angle); + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5 + x1, h - r - y1); + c.arcTo(r, r, 0, 0, 1, w * 0.5 + r, h - r); + c.arcTo(r, r, 0, 0, 1, w * 0.5, h); + c.arcTo(r, r, 0, 0, 1, w * 0.5 - r, h - r); + c.arcTo(r, r, 0, 0, 1, w * 0.5 - x1, h - r - y1); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicDrop.prototype.cst.DROP, mxShapeBasicDrop); +mxShapeBasicDrop.prototype.constraints = null; + +function mxShapeBasicCone2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; + this.dy = 0.9; +} + +; +mxUtils.extend(mxShapeBasicCone2, mxActor); +mxShapeBasicCone2.prototype.customProperties = [{ + name: 'dx', + dispName: 'Top', + type: 'float', + min: 0, + max: 1, + defVal: 0.5 +}, { + name: 'dy', + dispName: 'Bottom', + type: 'float', + min: 0, + max: 1, + defVal: 0.9 +}]; +mxShapeBasicCone2.prototype.cst = { + CONE2: 'mxgraph.basic.cone2' +}; + +mxShapeBasicCone2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var ry = h - dy; + c.begin(); + c.moveTo(dx, 0); + + if (ry > 0) { + c.lineTo(w, h - ry); + c.arcTo(w * 0.5, ry, 0, 0, 1, w * 0.5, h); + c.arcTo(w * 0.5, ry, 0, 0, 1, 0, h - ry); + } else { + c.lineTo(w, h); + c.lineTo(0, h); + } + + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicCone2.prototype.cst.CONE2, mxShapeBasicCone2); +mxShapeBasicCone2.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicCone2.prototype.cst.CONE2] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx * bounds.width, bounds.y + 10); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['dy'], function (bounds) { + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + 10, bounds.y + dy * bounds.height); + }, function (bounds, pt) { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 100; + }); + handles.push(handle2); + return handles; +}; + +mxShapeBasicCone2.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var ry = h - dy; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - ry)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - ry)); + return constr; +}; + +function mxShapeBasicPyramid(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx1 = 0.5; + this.dx2 = 0.6; + this.dy1 = 0.9; + this.dy2 = 0.8; +} + +; +mxUtils.extend(mxShapeBasicPyramid, mxActor); +mxShapeBasicPyramid.prototype.customProperties = [{ + name: 'dx1', + dispName: 'Top', + type: 'float', + min: 0, + max: 1, + defVal: 0.4 +}, { + name: 'dx2', + dispName: 'Bottom', + type: 'float', + min: 0, + max: 1, + defVal: 0.6 +}, { + name: 'dy1', + dispName: 'Perspective Left', + type: 'float', + min: 0, + max: 1, + defVal: 0.9 +}, { + name: 'dy2', + dispName: 'Perspective Right', + type: 'float', + min: 0, + max: 1, + defVal: 0.8 +}]; +mxShapeBasicPyramid.prototype.cst = { + PYRAMID: 'mxgraph.basic.pyramid' +}; + +mxShapeBasicPyramid.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx1 = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var dy1 = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dy2 = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + c.begin(); + c.moveTo(dx1, 0); + c.lineTo(w, dy2); + c.lineTo(dx2, h); + c.lineTo(0, dy1); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.begin(); + c.moveTo(dx1, 0); + c.lineTo(dx2, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicPyramid.prototype.cst.PYRAMID, mxShapeBasicPyramid); +mxShapeBasicPyramid.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicPyramid.prototype.cst.PYRAMID] = function (state) { + var handles = [Graph.createHandle(state, ['dx1'], function (bounds) { + var dx1 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + return new mxPoint(bounds.x + dx1 * bounds.width, bounds.y + 10); + }, function (bounds, pt) { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['dx2'], function (bounds) { + var dx2 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + return new mxPoint(bounds.x + dx2 * bounds.width, bounds.y + bounds.height - 10); + }, function (bounds, pt) { + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['dy1'], function (bounds) { + var dy1 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + return new mxPoint(bounds.x + 10, bounds.y + dy1 * bounds.height); + }, function (bounds, pt) { + this.state.style['dy1'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 100; + }); + handles.push(handle3); + var handle4 = Graph.createHandle(state, ['dy2'], function (bounds) { + var dy2 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)))); + return new mxPoint(bounds.x + bounds.width - 10, bounds.y + dy2 * bounds.height); + }, function (bounds, pt) { + this.state.style['dy2'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 100; + }); + handles.push(handle4); + return handles; +}; + +mxShapeBasicPyramid.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx1 = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var dy1 = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dy2 = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx1, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w + dx1) * 0.5, dy2 * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w + dx2) * 0.5, (h + dy2) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 * 0.5, (h + dy1) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx1 * 0.5, dy1 * 0.5)); + return constr; +}; + +function mxShapeBasic4PointStar2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.8; +} + +; +mxUtils.extend(mxShapeBasic4PointStar2, mxActor); +mxShapeBasic4PointStar2.prototype.customProperties = [{ + name: 'dx', + dispName: 'Thickness', + type: 'float', + min: 0, + max: 1, + defVal: 0.8 +}]; +mxShapeBasic4PointStar2.prototype.cst = { + FOUR_POINT_STAR_2: 'mxgraph.basic.4_point_star_2' +}; + +mxShapeBasic4PointStar2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = 0.5 * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(dx * w, dx * h); + c.lineTo(w * 0.5, 0); + c.lineTo(w - dx * w, dx * h); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx * w, h - dx * h); + c.lineTo(w * 0.5, h); + c.lineTo(dx * w, h - dx * h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasic4PointStar2.prototype.cst.FOUR_POINT_STAR_2, mxShapeBasic4PointStar2); +mxShapeBasic4PointStar2.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasic4PointStar2.prototype.cst.FOUR_POINT_STAR_2] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx * bounds.width / 2, bounds.y + dx * bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, 2 * (pt.x - bounds.x) / bounds.width))) / 100; + })]; + return handles; +}; + +mxShapeBasic4PointStar2.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = 0.5 * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(dx, dx), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1 - dx, dx), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1 - dx, 1 - dx), false)); + constr.push(new mxConnectionConstraint(new mxPoint(dx, 1 - dx), false)); + return constr; +}; + +function mxShapeBasicDiagSnipRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicDiagSnipRect, mxActor); +mxShapeBasicDiagSnipRect.prototype.customProperties = [{ + name: 'dx', + dispName: 'Snip', + type: 'float', + min: 0, + deVal: 6 +}]; +mxShapeBasicDiagSnipRect.prototype.cst = { + DIAG_SNIP_RECT: 'mxgraph.basic.diag_snip_rect' +}; + +mxShapeBasicDiagSnipRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + dx = Math.min(w * 0.5, h * 0.5, dx); + c.begin(); + c.moveTo(dx, 0); + c.lineTo(w, 0); + c.lineTo(w, h - dx); + c.lineTo(w - dx, h); + c.lineTo(0, h); + c.lineTo(0, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicDiagSnipRect.prototype.cst.DIAG_SNIP_RECT, mxShapeBasicDiagSnipRect); +mxShapeBasicDiagSnipRect.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicDiagSnipRect.prototype.cst.DIAG_SNIP_RECT] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +mxShapeBasicDiagSnipRect.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + dx = Math.min(w * 0.5, h * 0.5, dx) * 0.5; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + return constr; +}; + +function mxShapeBasicDiagRoundRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicDiagRoundRect, mxActor); +mxShapeBasicDiagRoundRect.prototype.customProperties = [{ + name: 'dx', + dispName: 'Rounding Size', + type: 'float', + min: 0, + defVal: 6 +}]; +mxShapeBasicDiagRoundRect.prototype.cst = { + DIAG_ROUND_RECT: 'mxgraph.basic.diag_round_rect' +}; + +mxShapeBasicDiagRoundRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + dx = Math.min(w * 0.5, h * 0.5, dx); + c.begin(); + c.moveTo(dx, 0); + c.lineTo(w, 0); + c.lineTo(w, h - dx); + c.arcTo(dx, dx, 0, 0, 1, w - dx, h); + c.lineTo(0, h); + c.lineTo(0, dx); + c.arcTo(dx, dx, 0, 0, 1, dx, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicDiagRoundRect.prototype.cst.DIAG_ROUND_RECT, mxShapeBasicDiagRoundRect); +mxShapeBasicDiagRoundRect.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicDiagRoundRect.prototype.cst.DIAG_ROUND_RECT] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +mxShapeBasicDiagRoundRect.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + return constr; +}; + +function mxShapeBasicCornerRoundRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicCornerRoundRect, mxActor); +mxShapeBasicCornerRoundRect.prototype.customProperties = [{ + name: 'dx', + dispName: 'Rounding Size', + type: 'float', + min: 0, + defVal: 6 +}]; +mxShapeBasicCornerRoundRect.prototype.cst = { + CORNER_ROUND_RECT: 'mxgraph.basic.corner_round_rect' +}; + +mxShapeBasicCornerRoundRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + dx = Math.min(w * 0.5, h * 0.5, dx); + c.begin(); + c.moveTo(dx, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.lineTo(0, dx); + c.arcTo(dx, dx, 0, 0, 1, dx, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicCornerRoundRect.prototype.cst.CORNER_ROUND_RECT, mxShapeBasicCornerRoundRect); +mxShapeBasicCornerRoundRect.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicCornerRoundRect.prototype.cst.CORNER_ROUND_RECT] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +mxShapeBasicCornerRoundRect.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + return constr; +}; + +function mxShapeBasicPlaque(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicPlaque, mxActor); +mxShapeBasicPlaque.prototype.customProperties = [{ + name: 'dx', + dispName: 'Cutoff Size', + type: 'float', + min: 0, + defVal: 6 +}]; +mxShapeBasicPlaque.prototype.cst = { + PLAQUE: 'mxgraph.basic.plaque' +}; + +mxShapeBasicPlaque.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + dx = Math.min(w * 0.5, h * 0.5, dx); + c.begin(); + c.moveTo(w - dx, 0); + c.arcTo(dx, dx, 0, 0, 0, w, dx); + c.lineTo(w, h - dx); + c.arcTo(dx, dx, 0, 0, 0, w - dx, h); + c.lineTo(dx, h); + c.arcTo(dx, dx, 0, 0, 0, 0, h - dx); + c.lineTo(0, dx); + c.arcTo(dx, dx, 0, 0, 0, dx, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicPlaque.prototype.cst.PLAQUE, mxShapeBasicPlaque); +mxShapeBasicPlaque.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicPlaque.prototype.cst.PLAQUE] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx * 1.41, bounds.y + dx * 1.41); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +mxShapeBasicPlaque.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + return constr; +}; + +function mxShapeBasicFrame(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicFrame, mxActor); +mxShapeBasicFrame.prototype.customProperties = [{ + name: 'dx', + dispName: 'Width', + type: 'float', + min: 0, + defVal: 10 +}]; +mxShapeBasicFrame.prototype.cst = { + FRAME: 'mxgraph.basic.frame' +}; + +mxShapeBasicFrame.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.5, h * 0.5, dx); + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.lineTo(0, 0); + c.close(); + c.moveTo(dx, dx); + c.lineTo(dx, h - dx); + c.lineTo(w - dx, h - dx); + c.lineTo(w - dx, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicFrame.prototype.cst.FRAME, mxShapeBasicFrame); +mxShapeBasicFrame.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicFrame.prototype.cst.FRAME] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +mxShapeBasicFrame.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.5, h * 0.5, dx); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - 2 * dx) * 0.25 + dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 1.5 - dx) * 0.5, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, (h - 2 * dx) * 0.25 + dx)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, -dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, (h - 2 * dx) * 0.75 + dx)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -dx, -dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - 2 * dx) * 0.75 + dx, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false, null, 0, -dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - 2 * dx) * 0.25 + dx, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, dx, -dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, (h - 2 * dx) * 0.75 + dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, (h - 2 * dx) * 0.25 + dx)); + return constr; +}; + +function mxShapeBasicPlaqueFrame(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicPlaqueFrame, mxActor); +mxShapeBasicPlaqueFrame.prototype.customProperties = [{ + name: 'dx', + dispName: 'Width', + type: 'float', + mix: 0, + defVal: 10 +}]; +mxShapeBasicPlaqueFrame.prototype.cst = { + PLAQUE_FRAME: 'mxgraph.basic.plaque_frame' +}; + +mxShapeBasicPlaqueFrame.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.25, h * 0.25, dx); + c.begin(); + c.moveTo(w - dx, 0); + c.arcTo(dx, dx, 0, 0, 0, w, dx); + c.lineTo(w, h - dx); + c.arcTo(dx, dx, 0, 0, 0, w - dx, h); + c.lineTo(dx, h); + c.arcTo(dx, dx, 0, 0, 0, 0, h - dx); + c.lineTo(0, dx); + c.arcTo(dx, dx, 0, 0, 0, dx, 0); + c.close(); + c.moveTo(dx * 2, dx); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, dx, dx * 2); + c.lineTo(dx, h - 2 * dx); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, dx * 2, h - dx); + c.lineTo(w - 2 * dx, h - dx); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, w - dx, h - 2 * dx); + c.lineTo(w - dx, dx * 2); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, w - 2 * dx, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicPlaqueFrame.prototype.cst.PLAQUE_FRAME, mxShapeBasicPlaqueFrame); +mxShapeBasicPlaqueFrame.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicPlaqueFrame.prototype.cst.PLAQUE_FRAME] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +mxShapeBasicPlaqueFrame.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.5, h * 0.5, dx); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, -dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false, null, 0, -dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, dx, 0)); + return constr; +}; + +function mxShapeBasicRoundedFrame(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicRoundedFrame, mxActor); +mxShapeBasicRoundedFrame.prototype.customProperties = [{ + name: 'dx', + dispName: 'Width', + type: 'float', + min: 0, + defVal: 10 +}]; +mxShapeBasicRoundedFrame.prototype.cst = { + ROUNDED_FRAME: 'mxgraph.basic.rounded_frame' +}; + +mxShapeBasicRoundedFrame.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.25, h * 0.25, dx); + c.begin(); + c.moveTo(w - 2 * dx, 0); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, w, 2 * dx); + c.lineTo(w, h - 2 * dx); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, w - 2 * dx, h); + c.lineTo(dx * 2, h); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, 0, h - 2 * dx); + c.lineTo(0, 2 * dx); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, 2 * dx, 0); + c.close(); + c.moveTo(dx * 2, dx); + c.arcTo(dx, dx, 0, 0, 0, dx, dx * 2); + c.lineTo(dx, h - 2 * dx); + c.arcTo(dx, dx, 0, 0, 0, dx * 2, h - dx); + c.lineTo(w - 2 * dx, h - dx); + c.arcTo(dx, dx, 0, 0, 0, w - dx, h - 2 * dx); + c.lineTo(w - dx, dx * 2); + c.arcTo(dx, dx, 0, 0, 0, w - 2 * dx, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicRoundedFrame.prototype.cst.ROUNDED_FRAME, mxShapeBasicRoundedFrame); +mxShapeBasicRoundedFrame.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicRoundedFrame.prototype.cst.ROUNDED_FRAME] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +mxShapeBasicRoundedFrame.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.5, h * 0.5, dx); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, -dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false, null, 0, -dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, dx, 0)); + return constr; +}; + +function mxShapeBasicFrameCorner(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicFrameCorner, mxActor); +mxShapeBasicFrameCorner.prototype.customProperties = [{ + name: 'dx', + dispName: 'Width', + type: 'float', + min: 0, + defVal: 10 +}]; +mxShapeBasicFrameCorner.prototype.cst = { + FRAME_CORNER: 'mxgraph.basic.frame_corner' +}; + +mxShapeBasicFrameCorner.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.5, h * 0.5, dx); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w - dx, dx); + c.lineTo(dx, dx); + c.lineTo(dx, h - dx); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicFrameCorner.prototype.cst.FRAME_CORNER, mxShapeBasicFrameCorner); +mxShapeBasicFrameCorner.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicFrameCorner.prototype.cst.FRAME_CORNER] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +mxShapeBasicFrameCorner.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.5, h * 0.5, dx); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - 2 * dx) * 0.5 + dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, (h - 2 * dx) * 0.5 + dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, dx, -dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + return constr; +}; + +function mxShapeBasicDiagStripe(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicDiagStripe, mxActor); +mxShapeBasicDiagStripe.prototype.customProperties = [{ + name: 'dx', + dispName: 'Width', + type: 'float', + mix: 0, + defVal: 10 +}]; +mxShapeBasicDiagStripe.prototype.cst = { + DIAG_STRIPE: 'mxgraph.basic.diag_stripe' +}; + +mxShapeBasicDiagStripe.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w, h, dx); + c.begin(); + c.moveTo(0, h); + c.lineTo(w, 0); + c.lineTo(w, Math.min(dx * 100 / w, h)); + c.lineTo(Math.min(dx * 100 / h, w), h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicDiagStripe.prototype.cst.DIAG_STRIPE, mxShapeBasicDiagStripe); +mxShapeBasicDiagStripe.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicDiagStripe.prototype.cst.DIAG_STRIPE] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + bounds.height); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +mxShapeBasicDiagStripe.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w, h, dx); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, Math.min(dx * 100 / w, h) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, Math.min(dx * 100 / w, h))); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w + Math.min(dx * 100 / h, w)) * 0.5, (Math.min(dx * 100 / w, h) + h) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, Math.min(dx * 100 / h, w), h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, Math.min(dx * 100 / h, w) * 0.5, h)); + return constr; +}; + +function mxShapeBasicDonut(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicDonut, mxActor); +mxShapeBasicDonut.prototype.customProperties = [{ + name: 'dx', + dispName: 'Width', + type: 'float', + min: 0, + defVal: 25 +}]; +mxShapeBasicDonut.prototype.cst = { + DONUT: 'mxgraph.basic.donut' +}; + +mxShapeBasicDonut.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.5, h * 0.5, dx); + c.begin(); + c.moveTo(0, h * 0.5); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, w * 0.5, 0); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, w, h * 0.5); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, w * 0.5, h); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, 0, h * 0.5); + c.close(); + c.moveTo(w * 0.5, dx); + c.arcTo(w * 0.5 - dx, h * 0.5 - dx, 0, 0, 0, dx, h * 0.5); + c.arcTo(w * 0.5 - dx, h * 0.5 - dx, 0, 0, 0, w * 0.5, h - dx); + c.arcTo(w * 0.5 - dx, h * 0.5 - dx, 0, 0, 0, w - dx, h * 0.5); + c.arcTo(w * 0.5 - dx, h * 0.5 - dx, 0, 0, 0, w * 0.5, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicDonut.prototype.cst.DONUT, mxShapeBasicDonut); +mxShapeBasicDonut.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicDonut.prototype.cst.DONUT] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +function mxShapeBasicLayeredRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicLayeredRect, mxActor); +mxShapeBasicLayeredRect.prototype.customProperties = [{ + name: 'dx', + dispName: 'Layer Distance', + type: 'float', + mix: 0, + defVal: 10 +}]; +mxShapeBasicLayeredRect.prototype.cst = { + LAYERED_RECT: 'mxgraph.basic.layered_rect' +}; + +mxShapeBasicLayeredRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.5, h * 0.5, dx); + c.begin(); + c.moveTo(dx, dx); + c.lineTo(w, dx); + c.lineTo(w, h); + c.lineTo(dx, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(dx * 0.5, dx * 0.5); + c.lineTo(w - dx * 0.5, dx * 0.5); + c.lineTo(w - dx * 0.5, h - dx * 0.5); + c.lineTo(dx * 0.5, h - dx * 0.5); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - dx, 0); + c.lineTo(w - dx, h - dx); + c.lineTo(0, h - dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicLayeredRect.prototype.cst.LAYERED_RECT, mxShapeBasicLayeredRect); +mxShapeBasicLayeredRect.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicLayeredRect.prototype.cst.LAYERED_RECT] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height - dx); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, -pt.x + bounds.width + bounds.x))) / 100; + })]; + return handles; +}; + +mxShapeBasicLayeredRect.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.5, h * 0.5, dx); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.75, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx * 0.5, dx * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dx) * 0.25 + dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dx) * 0.5 + dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dx) * 0.75 + dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.75 + dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5 + dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.25 + dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx * 0.5, h - dx * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dx) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dx) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dx) * 0.25)); + return constr; +}; + +function mxShapeBasicButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicButton, mxActor); +mxShapeBasicButton.prototype.customProperties = [{ + name: 'dx', + dispName: 'Button Height', + type: 'float', + min: 0, + defVal: 10 +}]; +mxShapeBasicButton.prototype.cst = { + BUTTON: 'mxgraph.basic.button' +}; + +mxShapeBasicButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.5, h * 0.5, dx); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(dx, dx); + c.lineTo(dx, h - dx); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w - dx, dx); + c.lineTo(dx, dx); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(w - dx, h - dx); + c.lineTo(w - dx, dx); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h); + c.lineTo(dx, h - dx); + c.lineTo(w - dx, h - dx); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(dx, dx); + c.lineTo(dx, h - dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicButton.prototype.cst.BUTTON, mxShapeBasicButton); +mxShapeBasicButton.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicButton.prototype.cst.BUTTON] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +function mxShapeBasicShadedButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicShadedButton, mxActor); +mxShapeBasicShadedButton.prototype.customProperties = [{ + name: 'dx', + dispName: 'Button Height', + type: 'float', + min: 0, + defVal: 10 +}]; +mxShapeBasicShadedButton.prototype.cst = { + SHADED_BUTTON: 'mxgraph.basic.shaded_button' +}; + +mxShapeBasicShadedButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setShadow(false); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.5, h * 0.5, dx); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fill(); + c.setFillColor('#ffffff'); + c.setAlpha(0.25); + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(dx, dx); + c.lineTo(dx, h - dx); + c.close(); + c.fill(); + c.setAlpha(0.5); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w - dx, dx); + c.lineTo(dx, dx); + c.close(); + c.fill(); + c.setFillColor('#000000'); + c.setAlpha(0.25); + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(w - dx, h - dx); + c.lineTo(w - dx, dx); + c.close(); + c.fill(); + c.setAlpha(0.5); + c.begin(); + c.moveTo(0, h); + c.lineTo(dx, h - dx); + c.lineTo(w - dx, h - dx); + c.lineTo(w, h); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeBasicShadedButton.prototype.cst.SHADED_BUTTON, mxShapeBasicShadedButton); +mxShapeBasicShadedButton.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicShadedButton.prototype.cst.SHADED_BUTTON] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +function mxShapeBasicPie(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.startAngle = 0.25; + this.endAngle = 0.75; +} + +; +mxUtils.extend(mxShapeBasicPie, mxActor); +mxShapeBasicPie.prototype.customProperties = [{ + name: 'startAngle', + dispName: 'Start Angle', + type: 'float', + min: 0, + max: 1, + defVal: 0.2 +}, { + name: 'endAngle', + dispName: 'End Angle', + type: 'float', + min: 0, + max: 1, + defVal: 0.9 +}]; +mxShapeBasicPie.prototype.cst = { + PIE: 'mxgraph.basic.pie' +}; + +mxShapeBasicPie.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'startAngle', this.startAngle)))); + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'endAngle', this.endAngle)))); + var rx = w * 0.5; + var ry = h * 0.5; + var startX = rx + Math.sin(startAngle) * rx; + var startY = ry - Math.cos(startAngle) * ry; + var endX = rx + Math.sin(endAngle) * rx; + var endY = ry - Math.cos(endAngle) * ry; + var angDiff = endAngle - startAngle; + + if (angDiff < 0) { + angDiff = angDiff + Math.PI * 2; + } + + var bigArc = 0; + + if (angDiff > Math.PI) { + bigArc = 1; + } + + c.begin(); + c.moveTo(rx, ry); + c.lineTo(startX, startY); + c.arcTo(rx, ry, 0, bigArc, 1, endX, endY); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicPie.prototype.cst.PIE, mxShapeBasicPie); +mxShapeBasicPie.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicPie.prototype.cst.PIE] = function (state) { + var handles = [Graph.createHandle(state, ['startAngle'], function (bounds) { + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'startAngle', this.startAngle)))); + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(startAngle) * bounds.height * 0.5); + }, function (bounds, pt) { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) { + res = 1 + res; + } + + this.state.style['startAngle'] = res; + })]; + var handle2 = Graph.createHandle(state, ['endAngle'], function (bounds) { + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'endAngle', this.endAngle)))); + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(endAngle) * bounds.height * 0.5); + }, function (bounds, pt) { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) { + res = 1 + res; + } + + this.state.style['endAngle'] = res; + }); + handles.push(handle2); + return handles; +}; + +function mxShapeBasicArc(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.startAngle = 0.25; + this.endAngle = 0.75; +} + +; +mxUtils.extend(mxShapeBasicArc, mxActor); +mxShapeBasicArc.prototype.customProperties = [{ + name: 'startAngle', + dispName: 'Start Angle', + type: 'float', + min: 0, + max: 1, + defVal: 0.3 +}, { + name: 'endAngle', + dispName: 'End Angle', + type: 'float', + min: 0, + max: 1, + defVal: 0.1 +}]; +mxShapeBasicArc.prototype.cst = { + ARC: 'mxgraph.basic.arc' +}; + +mxShapeBasicArc.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'startAngle', this.startAngle)))); + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'endAngle', this.endAngle)))); + var rx = w * 0.5; + var ry = h * 0.5; + var startX = rx + Math.sin(startAngle) * rx; + var startY = ry - Math.cos(startAngle) * ry; + var endX = rx + Math.sin(endAngle) * rx; + var endY = ry - Math.cos(endAngle) * ry; + var angDiff = endAngle - startAngle; + + if (angDiff < 0) { + angDiff = angDiff + Math.PI * 2; + } + + var bigArc = 0; + + if (angDiff > Math.PI) { + bigArc = 1; + } + + c.begin(); + c.moveTo(startX, startY); + c.arcTo(rx, ry, 0, bigArc, 1, endX, endY); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicArc.prototype.cst.ARC, mxShapeBasicArc); +mxShapeBasicArc.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicArc.prototype.cst.ARC] = function (state) { + var handles = [Graph.createHandle(state, ['startAngle'], function (bounds) { + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'startAngle', this.startAngle)))); + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(startAngle) * bounds.height * 0.5); + }, function (bounds, pt) { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) { + res = 1 + res; + } + + this.state.style['startAngle'] = res; + })]; + var handle2 = Graph.createHandle(state, ['endAngle'], function (bounds) { + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'endAngle', this.endAngle)))); + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(endAngle) * bounds.height * 0.5); + }, function (bounds, pt) { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) { + res = 1 + res; + } + + this.state.style['endAngle'] = res; + }); + handles.push(handle2); + return handles; +}; + +function mxShapeBasicPartConcEllipse(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.startAngle = 0.25; + this.endAngle = 0.75; + this.arcWidth = 0.5; +} + +; +mxUtils.extend(mxShapeBasicPartConcEllipse, mxActor); +mxShapeBasicPartConcEllipse.prototype.customProperties = [{ + name: 'startAngle', + dispName: 'Start Angle', + type: 'float', + min: 0, + max: 1, + defVal: 0.25 +}, { + name: 'endAngle', + dispName: 'End Angle', + type: 'float', + min: 0, + max: 1, + defVal: 0.1 +}, { + name: 'arcWidth', + dispName: 'Arc Width', + type: 'float', + min: 0, + max: 1, + defVal: 0.5 +}]; +mxShapeBasicPartConcEllipse.prototype.cst = { + PART_CONC_ELLIPSE: 'mxgraph.basic.partConcEllipse' +}; + +mxShapeBasicPartConcEllipse.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'startAngle', this.startAngle)))); + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'endAngle', this.endAngle)))); + var arcWidth = 1 - Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arcWidth', this.arcWidth)))); + var rx = w * 0.5; + var ry = h * 0.5; + var rx2 = rx * arcWidth; + var ry2 = ry * arcWidth; + var angDiff = endAngle - startAngle; + + if (angDiff < 0) { + angDiff = angDiff + Math.PI * 2; + } else if (angDiff == Math.PI) { + endAngle = endAngle + 0.00001; + } + + var startX = rx + Math.sin(startAngle) * rx; + var startY = ry - Math.cos(startAngle) * ry; + var innerStartX = rx + Math.sin(startAngle) * rx2; + var innerStartY = ry - Math.cos(startAngle) * ry2; + var endX = rx + Math.sin(endAngle) * rx; + var endY = ry - Math.cos(endAngle) * ry; + var innerEndX = rx + Math.sin(endAngle) * rx2; + var innerEndY = ry - Math.cos(endAngle) * ry2; + var bigArc = 0; + + if (angDiff >= Math.PI) { + bigArc = 1; + } + + c.begin(); + c.moveTo(startX, startY); + c.arcTo(rx, ry, 0, bigArc, 1, endX, endY); + c.lineTo(innerEndX, innerEndY); + c.arcTo(rx2, ry2, 0, bigArc, 0, innerStartX, innerStartY); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicPartConcEllipse.prototype.cst.PART_CONC_ELLIPSE, mxShapeBasicPartConcEllipse); +mxShapeBasicPartConcEllipse.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicPartConcEllipse.prototype.cst.PART_CONC_ELLIPSE] = function (state) { + var handles = [Graph.createHandle(state, ['startAngle'], function (bounds) { + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'startAngle', this.startAngle)))); + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(startAngle) * bounds.height * 0.5); + }, function (bounds, pt) { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) { + res = 1 + res; + } + + this.state.style['startAngle'] = res; + })]; + var handle2 = Graph.createHandle(state, ['endAngle'], function (bounds) { + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'endAngle', this.endAngle)))); + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(endAngle) * bounds.height * 0.5); + }, function (bounds, pt) { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) { + res = 1 + res; + } + + this.state.style['endAngle'] = res; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['arcWidth'], function (bounds) { + var arcWidth = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'arcWidth', this.arcWidth)))); + return new mxPoint(bounds.x + bounds.width / 2, bounds.y + arcWidth * bounds.height * 0.5); + }, function (bounds, pt) { + this.state.style['arcWidth'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, (pt.y - bounds.y) / (bounds.height * 0.5)))) / 100; + }); + handles.push(handle3); + return handles; +}; + +function mxShapeBasicNumEntryVert(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; +} + +; +mxUtils.extend(mxShapeBasicNumEntryVert, mxActor); +mxShapeBasicNumEntryVert.prototype.cst = { + NUM_ENTRY_VERT: 'mxgraph.basic.numberedEntryVert' +}; + +mxShapeBasicNumEntryVert.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var inset = 5; + var d = Math.min(dy, w - 2 * inset, h - inset); + c.ellipse(w * 0.5 - d * 0.5, 0, d, d); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, d * 0.5); + c.lineTo(w * 0.5 - d * 0.5 - inset, d * 0.5); + c.arcTo(d * 0.5 + inset, d * 0.5 + inset, 0, 0, 0, w * 0.5 + d * 0.5 + inset, d * 0.5); + c.lineTo(w, d * 0.5); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicNumEntryVert.prototype.cst.NUM_ENTRY_VERT, mxShapeBasicNumEntryVert); +mxShapeBasicNumEntryVert.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicNumEntryVert.prototype.cst.NUM_ENTRY_VERT] = function (state) { + var handles = [Graph.createHandle(state, ['dy'], function (bounds) { + var dy = Math.max(0, Math.min(bounds.width, bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width / 2, bounds.y + dy); + }, function (bounds, pt) { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height, bounds.width, pt.y - bounds.y))) / 100; + })]; + return handles; +}; + +function mxShapeBasicBendingArch(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.startAngle = 0.25; + this.endAngle = 0.75; + this.arcWidth = 0.5; +} + +; +mxUtils.extend(mxShapeBasicBendingArch, mxActor); +mxShapeBasicBendingArch.prototype.cst = { + BENDING_ARCH: 'mxgraph.basic.bendingArch' +}; + +mxShapeBasicBendingArch.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'startAngle', this.startAngle)))); + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'endAngle', this.endAngle)))); + var arcWidth = 1 - Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arcWidth', this.arcWidth)))); + var rx = w * 0.5; + var ry = h * 0.5; + var rx2 = rx * arcWidth; + var ry2 = ry * arcWidth; + var startX = rx + Math.sin(startAngle) * rx; + var startY = ry - Math.cos(startAngle) * ry; + var innerStartX = rx + Math.sin(startAngle) * rx2; + var innerStartY = ry - Math.cos(startAngle) * ry2; + var endX = rx + Math.sin(endAngle) * rx; + var endY = ry - Math.cos(endAngle) * ry; + var innerEndX = rx + Math.sin(endAngle) * rx2; + var innerEndY = ry - Math.cos(endAngle) * ry2; + var angDiff = endAngle - startAngle; + + if (angDiff < 0) { + angDiff = angDiff + Math.PI * 2; + } + + var bigArc = 0; + + if (angDiff > Math.PI) { + bigArc = 1; + } + + var rx3 = rx2 - 5; + var ry3 = ry2 - 5; + c.ellipse(w * 0.5 - rx3, h * 0.5 - ry3, 2 * rx3, 2 * ry3); + c.fillAndStroke(); + c.begin(); + c.moveTo(startX, startY); + c.arcTo(rx, ry, 0, bigArc, 1, endX, endY); + c.lineTo(innerEndX, innerEndY); + c.arcTo(rx2, ry2, 0, bigArc, 0, innerStartX, innerStartY); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicBendingArch.prototype.cst.BENDING_ARCH, mxShapeBasicBendingArch); +mxShapeBasicBendingArch.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicBendingArch.prototype.cst.BENDING_ARCH] = function (state) { + var handles = [Graph.createHandle(state, ['startAngle'], function (bounds) { + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'startAngle', this.startAngle)))); + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(startAngle) * bounds.height * 0.5); + }, function (bounds, pt) { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) { + res = 1 + res; + } + + this.state.style['startAngle'] = res; + })]; + var handle2 = Graph.createHandle(state, ['endAngle'], function (bounds) { + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'endAngle', this.endAngle)))); + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(endAngle) * bounds.height * 0.5); + }, function (bounds, pt) { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) { + res = 1 + res; + } + + this.state.style['endAngle'] = res; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['arcWidth'], function (bounds) { + var arcWidth = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'arcWidth', this.arcWidth)))); + return new mxPoint(bounds.x + bounds.width / 2, bounds.y + arcWidth * bounds.height * 0.5); + }, function (bounds, pt) { + this.state.style['arcWidth'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, (pt.y - bounds.y) / (bounds.height * 0.5)))) / 100; + }); + handles.push(handle3); + return handles; +}; + +function mxShapeBasicThreeCornerRoundRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; +} + +; +mxUtils.extend(mxShapeBasicThreeCornerRoundRect, mxActor); +mxShapeBasicThreeCornerRoundRect.prototype.customProperties = [{ + name: 'dx', + dispName: 'Rounding Size', + type: 'float', + min: 0, + defVal: 6 +}]; +mxShapeBasicThreeCornerRoundRect.prototype.cst = { + THREE_CORNER_ROUND_RECT: 'mxgraph.basic.three_corner_round_rect' +}; + +mxShapeBasicThreeCornerRoundRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + dx = Math.min(w * 0.5, h * 0.5, dx); + c.begin(); + c.moveTo(dx, 0); + c.lineTo(w - dx, 0); + c.arcTo(dx, dx, 0, 0, 1, w, dx); + c.lineTo(w, h - dx); + c.arcTo(dx, dx, 0, 0, 1, w - dx, h); + c.lineTo(0, h); + c.lineTo(0, dx); + c.arcTo(dx, dx, 0, 0, 1, dx, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicThreeCornerRoundRect.prototype.cst.THREE_CORNER_ROUND_RECT, mxShapeBasicThreeCornerRoundRect); +mxShapeBasicThreeCornerRoundRect.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicThreeCornerRoundRect.prototype.cst.THREE_CORNER_ROUND_RECT] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +mxShapeBasicThreeCornerRoundRect.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + return constr; +}; + +function mxShapeBasicRect2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.rectStyle = 'square'; + this.size = 10; + this.absoluteCornerSize = true; + this.indent = 2; + this.rectOutline = 'single'; +} + +; +mxUtils.extend(mxShapeBasicRect2, mxActor); +mxShapeBasicRect2.prototype.cst = { + RECT2: 'mxgraph.basic.rect' +}; +mxShapeBasicRect2.prototype.customProperties = [{ + name: 'rectStyle', + dispName: 'Style', + type: 'enum', + defVal: 'square', + enumList: [{ + val: 'square', + dispName: 'Square' + }, { + val: 'rounded', + dispName: 'Round' + }, { + val: 'snip', + dispName: 'Snip' + }, { + val: 'invRound', + dispName: 'Inv. Round' + }, { + val: 'fold', + dispName: 'Fold' + }] +}, { + name: 'size', + dispName: 'Corner Size', + type: 'float', + defVal: 10 +}, { + name: 'absoluteCornerSize', + dispName: 'Abs. Corner Size', + type: 'bool', + defVal: true +}, { + name: 'indent', + dispName: 'Indent', + type: 'float', + defVal: 2 +}, { + name: 'rectOutline', + dispName: 'Outline', + type: 'enum', + defVal: 'single', + enumList: [{ + val: 'single', + dispName: 'Single' + }, { + val: 'double', + dispName: 'Double' + }, { + val: 'frame', + dispName: 'Frame' + }] +}, { + name: 'fillColor2', + dispName: 'Inside Fill Color', + type: 'color', + defVal: 'none' +}, { + name: 'gradientColor2', + dispName: 'Inside Gradient Color', + type: 'color', + defVal: 'none' +}, { + name: 'gradientDirection2', + dispName: 'Inside Gradient Direction', + type: 'enum', + defVal: 'south', + enumList: [{ + val: 'south', + dispName: 'South' + }, { + val: 'west', + dispName: 'West' + }, { + val: 'north', + dispName: 'North' + }, { + val: 'east', + dispName: 'East' + }] +}, { + name: 'top', + dispName: 'Top Line', + type: 'bool', + defVal: true +}, { + name: 'right', + dispName: 'Right', + type: 'bool', + defVal: true +}, { + name: 'bottom', + dispName: 'Bottom Line', + type: 'bool', + defVal: true +}, { + name: 'left', + dispName: 'Left ', + type: 'bool', + defVal: true +}, { + name: 'topLeftStyle', + dispName: 'Top Left Style', + type: 'enum', + defVal: 'default', + enumList: [{ + val: 'default', + dispName: 'Default' + }, { + val: 'square', + dispName: 'Square' + }, { + val: 'rounded', + dispName: 'Round' + }, { + val: 'snip', + dispName: 'Snip' + }, { + val: 'invRound', + dispName: 'Inv. Round' + }, { + val: 'fold', + dispName: 'Fold' + }] +}, { + name: 'topRightStyle', + dispName: 'Top Right Style', + type: 'enum', + defVal: 'default', + enumList: [{ + val: 'default', + dispName: 'Default' + }, { + val: 'square', + dispName: 'Square' + }, { + val: 'rounded', + dispName: 'Round' + }, { + val: 'snip', + dispName: 'Snip' + }, { + val: 'invRound', + dispName: 'Inv. Round' + }, { + val: 'fold', + dispName: 'Fold' + }] +}, { + name: 'bottomRightStyle', + dispName: 'Bottom Right Style', + type: 'enum', + defVal: 'default', + enumList: [{ + val: 'default', + dispName: 'Default' + }, { + val: 'square', + dispName: 'Square' + }, { + val: 'rounded', + dispName: 'Round' + }, { + val: 'snip', + dispName: 'Snip' + }, { + val: 'invRound', + dispName: 'Inv. Round' + }, { + val: 'fold', + dispName: 'Fold' + }] +}, { + name: 'bottomLeftStyle', + dispName: 'Bottom Left Style', + type: 'enum', + defVal: 'default', + enumList: [{ + val: 'default', + dispName: 'Default' + }, { + val: 'square', + dispName: 'Square' + }, { + val: 'rounded', + dispName: 'Round' + }, { + val: 'snip', + dispName: 'Snip' + }, { + val: 'invRound', + dispName: 'Inv. Round' + }, { + val: 'fold', + dispName: 'Fold' + }] +}]; + +mxShapeBasicRect2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rectStyle = mxUtils.getValue(this.style, 'rectStyle', this.rectStyle); + var absoluteCornerSize = mxUtils.getValue(this.style, 'absoluteCornerSize', this.absoluteCornerSize); + var size = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var relSize = Math.max(0, Math.min(50, size)); + size = Math.min(h * 0.5, w * 0.5, size); + + if (!absoluteCornerSize) { + size = relSize * Math.min(w, h) / 100; + } + + var rectOutline = mxUtils.getValue(this.style, 'rectOutline', this.rectOutline); + var indent = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'indent', this.indent)))); + var relIndent = Math.max(0, Math.min(50, indent)); + size = Math.min(size, Math.min(w, h) * 0.5); + + if (!absoluteCornerSize) { + indent = Math.min(relIndent * Math.min(w, h) / 100); + } + + indent = Math.min(indent, Math.min(w, h) * 0.5 - size); + var top = mxUtils.getValue(this.style, 'top', true); + var right = mxUtils.getValue(this.style, 'right', true); + var bottom = mxUtils.getValue(this.style, 'bottom', true); + var left = mxUtils.getValue(this.style, 'left', true); + var topLeftStyle = mxUtils.getValue(this.style, 'topLeftStyle', 'default'); + var topRightStyle = mxUtils.getValue(this.style, 'topRightStyle', 'default'); + var bottomRightStyle = mxUtils.getValue(this.style, 'bottomRightStyle', 'default'); + var bottomLeftStyle = mxUtils.getValue(this.style, 'bottomLeftStyle', 'default'); + var fillColor = mxUtils.getValue(this.style, 'fillColor', 'none'); + var fillColor2 = mxUtils.getValue(this.style, 'fillColor2', 'none'); + var gradientColor2 = mxUtils.getValue(this.style, 'gradientColor2', 'none'); + var gdir2 = mxUtils.getValue(this.style, 'gradientDirection2', 'south'); + var opacity = mxUtils.getValue(this.style, 'opacity', '100'); + + if ((top || right || bottom || left) && rectOutline != 'frame') { + c.begin(); + + if (!top) { + c.moveTo(0, 0); + } else { + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + } + + if (top) { + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + } + + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + + if (right) { + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + } + + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + + if (bottom) { + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + } + + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + + if (left) { + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + } + + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + c.close(); + c.fill(); + c.setShadow(false); + var fillColor2 = mxUtils.getValue(this.style, 'fillColor2', 'none'); + c.setFillColor(fillColor2); + var op1 = opacity; + var op2 = opacity; + + if (fillColor2 == 'none') { + op1 = 0; + } + + if (gradientColor2 == 'none') { + op2 = 0; + } + + c.setGradient(fillColor2, gradientColor2, 0, 0, w, h, gdir2, op1, op2); + c.begin(); + + if (!top) { + c.moveTo(indent, 0); + } else { + mxShapeBasicRect2.prototype.moveNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + } + + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + + if (left && bottom) { + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + } + + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + + if (bottom && right) { + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + } + + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + + if (right && top) { + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + } + + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + + if (top && left) { + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + } + + c.fill(); + + if (fillColor == 'none') { + c.begin(); + mxShapeBasicRect2.prototype.paintFolds(c, x, y, w, h, rectStyle, topLeftStyle, topRightStyle, bottomRightStyle, bottomLeftStyle, size, top, right, bottom, left); + c.stroke(); + } + } + + if (!top && !right && !bottom && left) { + if (rectOutline != 'frame') { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, topLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + } + + c.stroke(); + } else { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, topLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.lineNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + c.close(); + c.fillAndStroke(); + } + } else if (!top && !right && bottom && !left) { + if (rectOutline != 'frame') { + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + } + + c.stroke(); + } else { + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.lineSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + c.close(); + c.fillAndStroke(); + } + } else if (!top && !right && bottom && left) { + if (rectOutline != 'frame') { + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + } + + c.stroke(); + } else { + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.lineNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + c.close(); + c.fillAndStroke(); + } + } else if (!top && right && !bottom && !left) { + if (rectOutline != 'frame') { + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + } + + c.stroke(); + } else { + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.lineSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + c.close(); + c.fillAndStroke(); + } + } else if (!top && right && !bottom && left) { + if (rectOutline != 'frame') { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, topLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + } + + c.stroke(); + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + } + + c.stroke(); + } else { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, topLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.lineNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + c.close(); + c.fillAndStroke(); + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.lineSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + c.close(); + c.fillAndStroke(); + } + } else if (!top && right && bottom && !left) { + if (rectOutline != 'frame') { + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + } + + c.stroke(); + } else { + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.lineSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + c.close(); + c.fillAndStroke(); + } + } else if (!top && right && bottom && left) { + if (rectOutline != 'frame') { + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + } + + c.stroke(); + } else { + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.lineNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + c.close(); + c.fillAndStroke(); + } + } else if (top && !right && !bottom && !left) { + if (rectOutline != 'frame') { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + } + + c.stroke(); + } else { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.lineNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + c.close(); + c.fillAndStroke(); + } + } else if (top && !right && !bottom && left) { + if (rectOutline != 'frame') { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + } + + c.stroke(); + } else { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.lineNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + c.close(); + c.fillAndStroke(); + } + } else if (top && !right && bottom && !left) { + if (rectOutline != 'frame') { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + } + + c.stroke(); + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + } + + c.stroke(); + } else { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.lineNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + c.close(); + c.fillAndStroke(); + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.lineSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + c.close(); + c.fillAndStroke(); + } + } else if (top && !right && bottom && left) { + if (rectOutline != 'frame') { + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + } + + c.stroke(); + } else { + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.lineNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + c.close(); + c.fillAndStroke(); + } + } else if (top && right && !bottom && !left) { + if (rectOutline != 'frame') { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + } + + c.stroke(); + } else { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.lineSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + c.close(); + c.fillAndStroke(); + } + } else if (top && right && !bottom && left) { + if (rectOutline != 'frame') { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + } + + c.stroke(); + } else { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.lineSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + c.close(); + c.fillAndStroke(); + } + } else if (top && right && bottom && !left) { + if (rectOutline != 'frame') { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + } + + c.stroke(); + } else { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.lineSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + c.close(); + c.fillAndStroke(); + } + } else if (top && right && bottom && left) { + if (rectOutline != 'frame') { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + c.close(); + + if (rectOutline == 'double') { + mxShapeBasicRect2.prototype.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + c.close(); + } + + c.stroke(); + } else { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + c.close(); + mxShapeBasicRect2.prototype.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + c.close(); + c.fillAndStroke(); + } + } + + c.begin(); + mxShapeBasicRect2.prototype.paintFolds(c, x, y, w, h, rectStyle, topLeftStyle, topRightStyle, bottomRightStyle, bottomLeftStyle, size, top, right, bottom, left); + c.stroke(); +}; + +mxShapeBasicRect2.prototype.moveNW = function (c, x, y, w, h, rectStyle, topLeftStyle, size, left) { + if (topLeftStyle == 'square' || topLeftStyle == 'default' && rectStyle == 'square' || !left) { + c.moveTo(0, 0); + } else { + c.moveTo(0, size); + } +}; + +mxShapeBasicRect2.prototype.moveNE = function (c, x, y, w, h, rectStyle, topRightStyle, size, top) { + if (topRightStyle == 'square' || topRightStyle == 'default' && rectStyle == 'square' || !top) { + c.moveTo(w, 0); + } else { + c.moveTo(w - size, 0); + } +}; + +mxShapeBasicRect2.prototype.moveSE = function (c, x, y, w, h, rectStyle, bottomRightStyle, size, right) { + if (bottomRightStyle == 'square' || bottomRightStyle == 'default' && rectStyle == 'square' || !right) { + c.moveTo(w, h); + } else { + c.moveTo(w, h - size); + } +}; + +mxShapeBasicRect2.prototype.moveSW = function (c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom) { + if (bottomLeftStyle == 'square' || bottomLeftStyle == 'default' && rectStyle == 'square' || !bottom) { + c.moveTo(0, h); + } else { + c.moveTo(size, h); + } +}; + +mxShapeBasicRect2.prototype.paintNW = function (c, x, y, w, h, rectStyle, topLeftStyle, size, left) { + if (!left) { + c.lineTo(0, 0); + } else if (topLeftStyle == 'rounded' || topLeftStyle == 'default' && rectStyle == 'rounded' || topLeftStyle == 'invRound' || topLeftStyle == 'default' && rectStyle == 'invRound') { + var inv = 0; + + if (topLeftStyle == 'rounded' || topLeftStyle == 'default' && rectStyle == 'rounded') { + inv = 1; + } + + c.arcTo(size, size, 0, 0, inv, size, 0); + } else if (topLeftStyle == 'snip' || topLeftStyle == 'default' && rectStyle == 'snip' || topLeftStyle == 'fold' || topLeftStyle == 'default' && rectStyle == 'fold') { + c.lineTo(size, 0); + } +}; + +mxShapeBasicRect2.prototype.paintTop = function (c, x, y, w, h, rectStyle, topRightStyle, size, right) { + if (topRightStyle == 'square' || topRightStyle == 'default' && rectStyle == 'square' || !right) { + c.lineTo(w, 0); + } else { + c.lineTo(w - size, 0); + } +}; + +mxShapeBasicRect2.prototype.paintNE = function (c, x, y, w, h, rectStyle, topRightStyle, size, top) { + if (!top) { + c.lineTo(w, 0); + } else if (topRightStyle == 'rounded' || topRightStyle == 'default' && rectStyle == 'rounded' || topRightStyle == 'invRound' || topRightStyle == 'default' && rectStyle == 'invRound') { + var inv = 0; + + if (topRightStyle == 'rounded' || topRightStyle == 'default' && rectStyle == 'rounded') { + inv = 1; + } + + c.arcTo(size, size, 0, 0, inv, w, size); + } else if (topRightStyle == 'snip' || topRightStyle == 'default' && rectStyle == 'snip' || topRightStyle == 'fold' || topRightStyle == 'default' && rectStyle == 'fold') { + c.lineTo(w, size); + } +}; + +mxShapeBasicRect2.prototype.paintRight = function (c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom) { + if (bottomRightStyle == 'square' || bottomRightStyle == 'default' && rectStyle == 'square' || !bottom) { + c.lineTo(w, h); + } else { + c.lineTo(w, h - size); + } +}; + +mxShapeBasicRect2.prototype.paintLeft = function (c, x, y, w, h, rectStyle, topLeftStyle, size, top) { + if (topLeftStyle == 'square' || topLeftStyle == 'default' && rectStyle == 'square' || !top) { + c.lineTo(0, 0); + } else { + c.lineTo(0, size); + } +}; + +mxShapeBasicRect2.prototype.paintSE = function (c, x, y, w, h, rectStyle, bottomRightStyle, size, right) { + if (!right) { + c.lineTo(w, h); + } else if (bottomRightStyle == 'rounded' || bottomRightStyle == 'default' && rectStyle == 'rounded' || bottomRightStyle == 'invRound' || bottomRightStyle == 'default' && rectStyle == 'invRound') { + var inv = 0; + + if (bottomRightStyle == 'rounded' || bottomRightStyle == 'default' && rectStyle == 'rounded') { + inv = 1; + } + + c.arcTo(size, size, 0, 0, inv, w - size, h); + } else if (bottomRightStyle == 'snip' || bottomRightStyle == 'default' && rectStyle == 'snip' || bottomRightStyle == 'fold' || bottomRightStyle == 'default' && rectStyle == 'fold') { + c.lineTo(w - size, h); + } +}; + +mxShapeBasicRect2.prototype.paintBottom = function (c, x, y, w, h, rectStyle, bottomLeftStyle, size, left) { + if (bottomLeftStyle == 'square' || bottomLeftStyle == 'default' && rectStyle == 'square' || !left) { + c.lineTo(0, h); + } else { + c.lineTo(size, h); + } +}; + +mxShapeBasicRect2.prototype.paintSW = function (c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom) { + if (!bottom) { + c.lineTo(0, h); + } else if (bottomLeftStyle == 'rounded' || bottomLeftStyle == 'default' && rectStyle == 'rounded' || bottomLeftStyle == 'invRound' || bottomLeftStyle == 'default' && rectStyle == 'invRound') { + var inv = 0; + + if (bottomLeftStyle == 'rounded' || bottomLeftStyle == 'default' && rectStyle == 'rounded') { + inv = 1; + } + + c.arcTo(size, size, 0, 0, inv, 0, h - size); + } else if (bottomLeftStyle == 'snip' || bottomLeftStyle == 'default' && rectStyle == 'snip' || bottomLeftStyle == 'fold' || bottomLeftStyle == 'default' && rectStyle == 'fold') { + c.lineTo(0, h - size); + } +}; + +mxShapeBasicRect2.prototype.paintNWInner = function (c, x, y, w, h, rectStyle, topLeftStyle, size, indent) { + if (topLeftStyle == 'rounded' || topLeftStyle == 'default' && rectStyle == 'rounded') { + c.arcTo(size - indent * 0.5, size - indent * 0.5, 0, 0, 0, indent, indent * 0.5 + size); + } else if (topLeftStyle == 'invRound' || topLeftStyle == 'default' && rectStyle == 'invRound') { + c.arcTo(size + indent, size + indent, 0, 0, 1, indent, indent + size); + } else if (topLeftStyle == 'snip' || topLeftStyle == 'default' && rectStyle == 'snip') { + c.lineTo(indent, indent * 0.5 + size); + } else if (topLeftStyle == 'fold' || topLeftStyle == 'default' && rectStyle == 'fold') { + c.lineTo(indent + size, indent + size); + c.lineTo(indent, indent + size); + } +}; + +mxShapeBasicRect2.prototype.paintTopInner = function (c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top) { + if (!left && !top) { + c.lineTo(0, 0); + } else if (!left && top) { + c.lineTo(0, indent); + } else if (left && !top) { + c.lineTo(indent, 0); + } else if (!left) { + c.lineTo(0, indent); + } else if (topLeftStyle == 'square' || topLeftStyle == 'default' && rectStyle == 'square') { + c.lineTo(indent, indent); + } else if (topLeftStyle == 'rounded' || topLeftStyle == 'default' && rectStyle == 'rounded' || topLeftStyle == 'snip' || topLeftStyle == 'default' && rectStyle == 'snip') { + c.lineTo(size + indent * 0.5, indent); + } else { + c.lineTo(size + indent, indent); + } +}; + +mxShapeBasicRect2.prototype.paintNEInner = function (c, x, y, w, h, rectStyle, topRightStyle, size, indent) { + if (topRightStyle == 'rounded' || topRightStyle == 'default' && rectStyle == 'rounded') { + c.arcTo(size - indent * 0.5, size - indent * 0.5, 0, 0, 0, w - size - indent * 0.5, indent); + } else if (topRightStyle == 'invRound' || topRightStyle == 'default' && rectStyle == 'invRound') { + c.arcTo(size + indent, size + indent, 0, 0, 1, w - size - indent, indent); + } else if (topRightStyle == 'snip' || topRightStyle == 'default' && rectStyle == 'snip') { + c.lineTo(w - size - indent * 0.5, indent); + } else if (topRightStyle == 'fold' || topRightStyle == 'default' && rectStyle == 'fold') { + c.lineTo(w - size - indent, size + indent); + c.lineTo(w - size - indent, indent); + } +}; + +mxShapeBasicRect2.prototype.paintRightInner = function (c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right) { + if (!top && !right) { + c.lineTo(w, 0); + } else if (!top && right) { + c.lineTo(w - indent, 0); + } else if (top && !right) { + c.lineTo(w, indent); + } else if (!top) { + c.lineTo(w - indent, 0); + } else if (topRightStyle == 'square' || topRightStyle == 'default' && rectStyle == 'square') { + c.lineTo(w - indent, indent); + } else if (topRightStyle == 'rounded' || topRightStyle == 'default' && rectStyle == 'rounded' || topRightStyle == 'snip' || topRightStyle == 'default' && rectStyle == 'snip') { + c.lineTo(w - indent, size + indent * 0.5); + } else { + c.lineTo(w - indent, size + indent); + } +}; + +mxShapeBasicRect2.prototype.paintLeftInner = function (c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left) { + if (!bottom && !left) { + c.lineTo(0, h); + } else if (!bottom && left) { + c.lineTo(indent, h); + } else if (bottom && !left) { + c.lineTo(0, h - indent); + } else if (!bottom) { + c.lineTo(indent, h); + } else if (bottomLeftStyle == 'square' || bottomLeftStyle == 'default' && rectStyle == 'square') { + c.lineTo(indent, h - indent); + } else if (bottomLeftStyle == 'rounded' || bottomLeftStyle == 'default' && rectStyle == 'rounded' || bottomLeftStyle == 'snip' || bottomLeftStyle == 'default' && rectStyle == 'snip') { + c.lineTo(indent, h - size - indent * 0.5); + } else { + c.lineTo(indent, h - size - indent); + } +}; + +mxShapeBasicRect2.prototype.paintSEInner = function (c, x, y, w, h, rectStyle, bottomRightStyle, size, indent) { + if (bottomRightStyle == 'rounded' || bottomRightStyle == 'default' && rectStyle == 'rounded') { + c.arcTo(size - indent * 0.5, size - indent * 0.5, 0, 0, 0, w - indent, h - size - indent * 0.5); + } else if (bottomRightStyle == 'invRound' || bottomRightStyle == 'default' && rectStyle == 'invRound') { + c.arcTo(size + indent, size + indent, 0, 0, 1, w - indent, h - size - indent); + } else if (bottomRightStyle == 'snip' || bottomRightStyle == 'default' && rectStyle == 'snip') { + c.lineTo(w - indent, h - size - indent * 0.5); + } else if (bottomRightStyle == 'fold' || bottomRightStyle == 'default' && rectStyle == 'fold') { + c.lineTo(w - size - indent, h - size - indent); + c.lineTo(w - indent, h - size - indent); + } +}; + +mxShapeBasicRect2.prototype.paintBottomInner = function (c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom) { + if (!right && !bottom) { + c.lineTo(w, h); + } else if (!right && bottom) { + c.lineTo(w, h - indent); + } else if (right && !bottom) { + c.lineTo(w - indent, h); + } else if (bottomRightStyle == 'square' || bottomRightStyle == 'default' && rectStyle == 'square' || !right) { + c.lineTo(w - indent, h - indent); + } else if (bottomRightStyle == 'rounded' || bottomRightStyle == 'default' && rectStyle == 'rounded' || bottomRightStyle == 'snip' || bottomRightStyle == 'default' && rectStyle == 'snip') { + c.lineTo(w - size - indent * 0.5, h - indent); + } else { + c.lineTo(w - size - indent, h - indent); + } +}; + +mxShapeBasicRect2.prototype.paintSWInner = function (c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom) { + if (!bottom) { + c.lineTo(indent, h); + } else if (bottomLeftStyle == 'square' || bottomLeftStyle == 'default' && rectStyle == 'square') { + c.lineTo(indent, h - indent); + } else if (bottomLeftStyle == 'rounded' || bottomLeftStyle == 'default' && rectStyle == 'rounded') { + c.arcTo(size - indent * 0.5, size - indent * 0.5, 0, 0, 0, size + indent * 0.5, h - indent); + } else if (bottomLeftStyle == 'invRound' || bottomLeftStyle == 'default' && rectStyle == 'invRound') { + c.arcTo(size + indent, size + indent, 0, 0, 1, size + indent, h - indent); + } else if (bottomLeftStyle == 'snip' || bottomLeftStyle == 'default' && rectStyle == 'snip') { + c.lineTo(size + indent * 0.5, h - indent); + } else if (bottomLeftStyle == 'fold' || bottomLeftStyle == 'default' && rectStyle == 'fold') { + c.lineTo(indent + size, h - size - indent); + c.lineTo(indent + size, h - indent); + } +}; + +mxShapeBasicRect2.prototype.moveSWInner = function (c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left) { + if (!left) { + c.moveTo(0, h - indent); + } else if (bottomLeftStyle == 'square' || bottomLeftStyle == 'default' && rectStyle == 'square') { + c.moveTo(indent, h - indent); + } else if (bottomLeftStyle == 'rounded' || bottomLeftStyle == 'default' && rectStyle == 'rounded' || bottomLeftStyle == 'snip' || bottomLeftStyle == 'default' && rectStyle == 'snip') { + c.moveTo(indent, h - size - indent * 0.5); + } else if (bottomLeftStyle == 'invRound' || bottomLeftStyle == 'default' && rectStyle == 'invRound' || bottomLeftStyle == 'fold' || bottomLeftStyle == 'default' && rectStyle == 'fold') { + c.moveTo(indent, h - size - indent); + } +}; + +mxShapeBasicRect2.prototype.lineSWInner = function (c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left) { + if (!left) { + c.lineTo(0, h - indent); + } else if (bottomLeftStyle == 'square' || bottomLeftStyle == 'default' && rectStyle == 'square') { + c.lineTo(indent, h - indent); + } else if (bottomLeftStyle == 'rounded' || bottomLeftStyle == 'default' && rectStyle == 'rounded' || bottomLeftStyle == 'snip' || bottomLeftStyle == 'default' && rectStyle == 'snip') { + c.lineTo(indent, h - size - indent * 0.5); + } else if (bottomLeftStyle == 'invRound' || bottomLeftStyle == 'default' && rectStyle == 'invRound' || bottomLeftStyle == 'fold' || bottomLeftStyle == 'default' && rectStyle == 'fold') { + c.lineTo(indent, h - size - indent); + } +}; + +mxShapeBasicRect2.prototype.moveSEInner = function (c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom) { + if (!bottom) { + c.moveTo(w - indent, h); + } else if (bottomRightStyle == 'square' || bottomRightStyle == 'default' && rectStyle == 'square') { + c.moveTo(w - indent, h - indent); + } else if (bottomRightStyle == 'rounded' || bottomRightStyle == 'default' && rectStyle == 'rounded' || bottomRightStyle == 'snip' || bottomRightStyle == 'default' && rectStyle == 'snip') { + c.moveTo(w - indent, h - size - indent * 0.5); + } else if (bottomRightStyle == 'invRound' || bottomRightStyle == 'default' && rectStyle == 'invRound' || bottomRightStyle == 'fold' || bottomRightStyle == 'default' && rectStyle == 'fold') { + c.moveTo(w - indent, h - size - indent); + } +}; + +mxShapeBasicRect2.prototype.lineSEInner = function (c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom) { + if (!bottom) { + c.lineTo(w - indent, h); + } else if (bottomRightStyle == 'square' || bottomRightStyle == 'default' && rectStyle == 'square') { + c.lineTo(w - indent, h - indent); + } else if (bottomRightStyle == 'rounded' || bottomRightStyle == 'default' && rectStyle == 'rounded' || bottomRightStyle == 'snip' || bottomRightStyle == 'default' && rectStyle == 'snip') { + c.lineTo(w - indent, h - size - indent * 0.5); + } else if (bottomRightStyle == 'invRound' || bottomRightStyle == 'default' && rectStyle == 'invRound' || bottomRightStyle == 'fold' || bottomRightStyle == 'default' && rectStyle == 'fold') { + c.lineTo(w - indent, h - size - indent); + } +}; + +mxShapeBasicRect2.prototype.moveNEInner = function (c, x, y, w, h, rectStyle, topRightStyle, size, indent, right) { + if (!right) { + c.moveTo(w, indent); + } else if (topRightStyle == 'square' || topRightStyle == 'default' && rectStyle == 'square' || right) { + c.moveTo(w - indent, indent); + } else if (topRightStyle == 'rounded' || topRightStyle == 'default' && rectStyle == 'rounded' || topRightStyle == 'snip' || topRightStyle == 'default' && rectStyle == 'snip') { + c.moveTo(w - indent, size + indent * 0.5); + } else if (topRightStyle == 'invRound' || topRightStyle == 'default' && rectStyle == 'invRound' || topRightStyle == 'fold' || topRightStyle == 'default' && rectStyle == 'fold') { + c.moveTo(w - indent, size + indent); + } +}; + +mxShapeBasicRect2.prototype.lineNEInner = function (c, x, y, w, h, rectStyle, topRightStyle, size, indent, right) { + if (!right) { + c.lineTo(w, indent); + } else if (topRightStyle == 'square' || topRightStyle == 'default' && rectStyle == 'square' || right) { + c.lineTo(w - indent, indent); + } else if (topRightStyle == 'rounded' || topRightStyle == 'default' && rectStyle == 'rounded' || topRightStyle == 'snip' || topRightStyle == 'default' && rectStyle == 'snip') { + c.lineTo(w - indent, size + indent * 0.5); + } else if (topRightStyle == 'invRound' || topRightStyle == 'default' && rectStyle == 'invRound' || topRightStyle == 'fold' || topRightStyle == 'default' && rectStyle == 'fold') { + c.lineTo(w - indent, size + indent); + } +}; + +mxShapeBasicRect2.prototype.moveNWInner = function (c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left) { + if (!top && !left) { + c.moveTo(0, 0); + } else if (!top && left) { + c.moveTo(indent, 0); + } else if (top && !left) { + c.moveTo(0, indent); + } else if (topLeftStyle == 'square' || topLeftStyle == 'default' && rectStyle == 'square') { + c.moveTo(indent, indent); + } else if (topLeftStyle == 'rounded' || topLeftStyle == 'default' && rectStyle == 'rounded' || topLeftStyle == 'snip' || topLeftStyle == 'default' && rectStyle == 'snip') { + c.moveTo(indent, size + indent * 0.5); + } else if (topLeftStyle == 'invRound' || topLeftStyle == 'default' && rectStyle == 'invRound' || topLeftStyle == 'fold' || topLeftStyle == 'default' && rectStyle == 'fold') { + c.moveTo(indent, size + indent); + } +}; + +mxShapeBasicRect2.prototype.lineNWInner = function (c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left) { + if (!top && !left) { + c.lineTo(0, 0); + } else if (!top && left) { + c.lineTo(indent, 0); + } else if (top && !left) { + c.lineTo(0, indent); + } else if (topLeftStyle == 'square' || topLeftStyle == 'default' && rectStyle == 'square') { + c.lineTo(indent, indent); + } else if (topLeftStyle == 'rounded' || topLeftStyle == 'default' && rectStyle == 'rounded' || topLeftStyle == 'snip' || topLeftStyle == 'default' && rectStyle == 'snip') { + c.lineTo(indent, size + indent * 0.5); + } else if (topLeftStyle == 'invRound' || topLeftStyle == 'default' && rectStyle == 'invRound' || topLeftStyle == 'fold' || topLeftStyle == 'default' && rectStyle == 'fold') { + c.lineTo(indent, size + indent); + } +}; + +mxShapeBasicRect2.prototype.paintFolds = function (c, x, y, w, h, rectStyle, topLeftStyle, topRightStyle, bottomRightStyle, bottomLeftStyle, size, top, right, bottom, left) { + if (rectStyle == 'fold' || topLeftStyle == 'fold' || topRightStyle == 'fold' || bottomRightStyle == 'fold' || bottomLeftStyle == 'fold') { + if ((topLeftStyle == 'fold' || topLeftStyle == 'default' && rectStyle == 'fold') && top && left) { + c.moveTo(0, size); + c.lineTo(size, size); + c.lineTo(size, 0); + } + + if ((topRightStyle == 'fold' || topRightStyle == 'default' && rectStyle == 'fold') && top && right) { + c.moveTo(w - size, 0); + c.lineTo(w - size, size); + c.lineTo(w, size); + } + + if ((bottomRightStyle == 'fold' || bottomRightStyle == 'default' && rectStyle == 'fold') && bottom && right) { + c.moveTo(w - size, h); + c.lineTo(w - size, h - size); + c.lineTo(w, h - size); + } + + if ((bottomLeftStyle == 'fold' || bottomLeftStyle == 'default' && rectStyle == 'fold') && bottom && left) { + c.moveTo(0, h - size); + c.lineTo(size, h - size); + c.lineTo(size, h); + } + } +}; + +mxCellRenderer.registerShape(mxShapeBasicRect2.prototype.cst.RECT2, mxShapeBasicRect2); +mxShapeBasicRect2.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicRect2.prototype.cst.DIAG_ROUND_RECT] = function (state) { + var handles = [Graph.createHandle(state, ['size'], function (bounds) { + var size = Math.max(0, Math.min(bounds.width / 2, bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'size', this.size)))); + return new mxPoint(bounds.x + size, bounds.y + size); + }, function (bounds, pt) { + this.state.style['size'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['indent'], function (bounds) { + var dx2 = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'indent', this.dx2)))); + return new mxPoint(bounds.x + bounds.width * 0.75, bounds.y + dx2 * bounds.height / 200); + }, function (bounds, pt) { + this.state.style['indent'] = Math.round(100 * Math.max(0, Math.min(100, 200 * (pt.y - bounds.y) / bounds.height))) / 100; + }); + handles.push(handle2); + return handles; +}; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxBootstrap.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxBootstrap.js new file mode 100644 index 0000000000000..56549f934b1d9 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxBootstrap.js @@ -0,0 +1,693 @@ +"use strict"; + +function mxShapeBootstrapRRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBootstrapRRect, mxShape); +mxShapeBootstrapRRect.prototype.cst = { + PACKAGE: 'mxgraph.bootstrap.rrect', + R_SIZE: 'rSize' +}; +mxShapeBootstrapRRect.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeBootstrapRRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeBootstrapRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapRRect.prototype.cst.PACKAGE, mxShapeBootstrapRRect); + +function mxShapeBootstrapTopButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBootstrapTopButton, mxShape); +mxShapeBootstrapTopButton.prototype.cst = { + TOP_BUTTON: 'mxgraph.bootstrap.topButton', + R_SIZE: 'rSize' +}; +mxShapeBootstrapTopButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeBootstrapTopButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeBootstrapTopButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapTopButton.prototype.cst.TOP_BUTTON, mxShapeBootstrapTopButton); + +function mxShapeBootstrapBottomButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBootstrapBottomButton, mxShape); +mxShapeBootstrapBottomButton.prototype.cst = { + BOTTOM_BUTTON: 'mxgraph.bootstrap.bottomButton', + R_SIZE: 'rSize' +}; +mxShapeBootstrapBottomButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeBootstrapBottomButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeBootstrapBottomButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapBottomButton.prototype.cst.BOTTOM_BUTTON, mxShapeBootstrapBottomButton); + +function mxShapeBootstrapRightButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBootstrapRightButton, mxShape); +mxShapeBootstrapRightButton.prototype.cst = { + RIGHT_BUTTON: 'mxgraph.bootstrap.rightButton', + R_SIZE: 'rSize' +}; +mxShapeBootstrapRightButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeBootstrapRightButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeBootstrapRightButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapRightButton.prototype.cst.RIGHT_BUTTON, mxShapeBootstrapRightButton); + +function mxShapeBootstrapLeftButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBootstrapLeftButton, mxShape); +mxShapeBootstrapLeftButton.prototype.cst = { + LEFT_BUTTON: 'mxgraph.bootstrap.leftButton', + R_SIZE: 'rSize' +}; +mxShapeBootstrapLeftButton.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeBootstrapLeftButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeBootstrapLeftButton.prototype.cst.R_SIZE, '10')); + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapLeftButton.prototype.cst.LEFT_BUTTON, mxShapeBootstrapLeftButton); + +function mxShapeBootstrapLeftButtonStriped(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBootstrapLeftButtonStriped, mxShape); +mxShapeBootstrapLeftButtonStriped.prototype.cst = { + LEFT_BUTTON_STRIPED: 'mxgraph.bootstrap.leftButtonStriped' +}; + +mxShapeBootstrapLeftButtonStriped.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + rSize = 5; + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fill(); + var fillColor = '#ffffff'; + c.setAlpha('0.2'); + var stripeW = h * 0.5; + c.setFillColor(fillColor); + c.begin(); + c.moveTo(0, h * 0.75); + c.lineTo(0, h * 0.25); + c.lineTo(h * 0.75, h); + c.lineTo(h * 0.25, h); + c.close(); + c.fill(); + var end = false; + var startX = stripeW * 0.5; + + while (!end) { + c.begin(); + c.moveTo(startX, 0); + + if (startX + stripeW >= w) { + c.lineTo(w, 0); + c.lineTo(w, w - startX); + } else { + c.lineTo(startX + stripeW, 0); + + if (startX + stripeW + h > w) { + c.lineTo(w, w - startX - stripeW); + + if (w - startX > h) { + c.lineTo(w, h); + c.lineTo(startX + h, h); + } else { + c.lineTo(w, w - startX); + } + } else { + c.lineTo(startX + stripeW + h, h); + c.lineTo(startX + h, h); + } + } + + c.close(); + c.fill(); + startX = startX + 2 * stripeW; + + if (startX > w) { + end = true; + } + } +}; + +mxCellRenderer.registerShape(mxShapeBootstrapLeftButtonStriped.prototype.cst.LEFT_BUTTON_STRIPED, mxShapeBootstrapLeftButtonStriped); + +function mxShapeBootstrapRoundedButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBootstrapRoundedButton, mxShape); +mxShapeBootstrapRoundedButton.prototype.cst = { + ROUNDED_BUTTON: 'mxgraph.bootstrap.roundedButton' +}; + +mxShapeBootstrapRoundedButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + + if (w > h) { + var r = h * 0.5; + c.begin(); + c.moveTo(w - r, 0); + c.arcTo(r, r, 0, 0, 1, w - r, h); + c.lineTo(r, h); + c.arcTo(r, r, 0, 0, 1, r, 0); + c.close(); + c.fillAndStroke(); + } else { + var r = w * 0.5; + c.begin(); + c.moveTo(0, h - r); + c.arcTo(r, r, 0, 0, 0, w, h - r); + c.lineTo(w, r); + c.arcTo(r, r, 0, 0, 0, 0, r); + c.close(); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeBootstrapRoundedButton.prototype.cst.ROUNDED_BUTTON, mxShapeBootstrapRoundedButton); + +function mxShapeBootstrapArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBootstrapArrow, mxShape); +mxShapeBootstrapArrow.prototype.cst = { + ARROW: 'mxgraph.bootstrap.arrow' +}; + +mxShapeBootstrapArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.moveTo(w * 0.9, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.9, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapArrow.prototype.cst.ARROW, mxShapeBootstrapArrow); + +function mxShapeBootstrapTabTop(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBootstrapTabTop, mxShape); +mxShapeBootstrapTabTop.prototype.cst = { + TAB_TOP: 'mxgraph.bootstrap.tabTop', + R_SIZE: 'rSize' +}; +mxShapeBootstrapTabTop.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 5 +}]; + +mxShapeBootstrapTabTop.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeBootstrapTopButton.prototype.cst.R_SIZE, '10')); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + c.setStrokeColor(fillColor); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + c.setStrokeColor(strokeColor); + c.begin(); + c.moveTo(0, h); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapTabTop.prototype.cst.TAB_TOP, mxShapeBootstrapTabTop); + +function mxShapeBootstrapImage(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBootstrapImage, mxShape); +mxShapeBootstrapImage.prototype.cst = { + IMAGE: 'mxgraph.bootstrap.image', + R_SIZE: 'rSize' +}; +mxShapeBootstrapImage.prototype.customProperties = [{ + name: 'rSize', + dispName: 'Arc Size', + type: 'float', + min: 0, + defVal: 5 +}]; + +mxShapeBootstrapImage.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = Math.max(0, parseInt(mxUtils.getValue(this.style, mxShapeBootstrapTopButton.prototype.cst.R_SIZE, '10'))); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.stroke(); + var rsHalf = rSize * 0.5; + c.translate(rsHalf, rsHalf); + w = Math.max(0, w - rSize); + h = Math.max(0, h - rSize); + c.begin(); + c.moveTo(0, rsHalf); + c.arcTo(rsHalf, rsHalf, 0, 0, 1, rsHalf, 0); + c.lineTo(w - rsHalf, 0); + c.arcTo(rsHalf, rsHalf, 0, 0, 1, w, rsHalf); + c.lineTo(w, h - rsHalf); + c.arcTo(rsHalf, rsHalf, 0, 0, 1, w - rsHalf, h); + c.lineTo(rsHalf, h); + c.arcTo(rsHalf, rsHalf, 0, 0, 1, 0, h - rsHalf); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapImage.prototype.cst.IMAGE, mxShapeBootstrapImage); + +function mxShapeBootstrapCheckbox(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBootstrapCheckbox, mxShape); +mxShapeBootstrapCheckbox.prototype.cst = { + CHECKBOX: 'mxgraph.bootstrap.checkbox' +}; + +mxShapeBootstrapCheckbox.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var rSize = 3; + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); + c.setStrokeWidth('3'); + c.begin(); + c.moveTo(w * 0.8, h * 0.2); + c.lineTo(w * 0.4, h * 0.8); + c.lineTo(w * 0.25, h * 0.6); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapCheckbox.prototype.cst.CHECKBOX, mxShapeBootstrapCheckbox); + +function mxShapeBootstrapRadioButton(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBootstrapRadioButton, mxShape); +mxShapeBootstrapRadioButton.prototype.cst = { + RADIO_BUTTON: 'mxgraph.bootstrap.radioButton' +}; + +mxShapeBootstrapRadioButton.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + c.setFillColor(strokeColor); + c.ellipse(w * 0.25, h * 0.25, w * 0.5, h * 0.5); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapRadioButton.prototype.cst.RADIO_BUTTON, mxShapeBootstrapRadioButton); + +function mxShapeBootstrapHorLines(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBootstrapHorLines, mxShape); +mxShapeBootstrapHorLines.prototype.cst = { + HOR_LINES: 'mxgraph.bootstrap.horLines' +}; + +mxShapeBootstrapHorLines.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(0, 0, w, h); + c.fill(); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.moveTo(0, h); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapHorLines.prototype.cst.HOR_LINES, mxShapeBootstrapHorLines); + +function mxShapeBootstrapUserTwo(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBootstrapUserTwo, mxShape); +mxShapeBootstrapUserTwo.prototype.cst = { + USER2: 'mxgraph.bootstrap.user2' +}; + +mxShapeBootstrapUserTwo.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, h * 0.95); + c.arcTo(w * 0.3, h * 0.3, 0, 0, 1, w * 0.02, h * 0.87); + c.arcTo(w * 0.1, h * 0.1, 0, 0, 1, w * 0.08, h * 0.812); + c.arcTo(w * 3, h * 3, 0, 0, 1, w * 0.29, h * 0.732); + c.arcTo(w * 0.15, h * 0.15, 0, 0, 0, w * 0.385, h * 0.607); + c.arcTo(w * 0.11, h * 0.11, 0, 0, 0, w * 0.355, h * 0.53); + c.arcTo(w * 0.3, h * 0.3, 0, 0, 1, w * 0.305, h * 0.44); + c.arcTo(w * 0.33, h * 0.38, 0, 0, 1, w * 0.312, h * 0.15); + c.arcTo(w * 0.218, h * 0.218, 0, 0, 1, w * 0.688, h * 0.15); + c.arcTo(w * 0.33, h * 0.38, 0, 0, 1, w * 0.693, h * 0.44); + c.arcTo(w * 0.25, h * 0.25, 0, 0, 1, w * 0.645, h * 0.53); + c.arcTo(w * 0.1, h * 0.1, 0, 0, 0, w * 0.612, h * 0.6); + c.arcTo(w * 0.15, h * 0.15, 0, 0, 0, w * 0.7, h * 0.726); + c.arcTo(w * 3, h * 3, 0, 0, 1, w * 0.92, h * 0.812); + c.arcTo(w * 0.1, h * 0.1, 0, 0, 1, w * 0.97, h * 0.865); + c.arcTo(w * 0.2, h * 0.2, 0, 0, 1, w * 0.995, h * 0.952); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapUserTwo.prototype.cst.USER2, mxShapeBootstrapUserTwo); + +function mxShapeBootstrapRating(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeBootstrapRating, mxShape); +mxShapeBootstrapRating.prototype.cst = { + RATING: 'mxgraph.bootstrap.rating', + RATING_STYLE: 'ratingStyle', + RATING_SCALE: 'ratingScale', + RATING_HEART: 'heart', + RATING_STAR: 'star', + EMPTY_FILL_COLOR: 'emptyFillColor', + GRADE: 'grade' +}; +mxShapeBootstrapRating.prototype.customProperties = [{ + name: 'ratingStyle', + dispName: 'Rating Style', + type: 'enum', + enumList: [{ + val: 'heart', + dispName: 'Heart' + }, { + val: 'star', + dispName: 'Star' + }] +}, { + name: 'ratingScale', + dispName: 'Rating Scale', + type: 'int', + min: 1, + defVal: 5 +}, { + name: 'emptyFillColor', + dispName: 'Inactive Color', + type: 'color', + defVal: 'none' +}, { + name: 'grade', + dispName: 'Grade', + type: 'int', + min: 1, + defVal: 3 +}]; + +mxShapeBootstrapRating.prototype.paintVertexShape = function (c, x, y, w, h) { + var ratingStyle = mxUtils.getValue(this.style, mxShapeBootstrapRating.prototype.cst.RATING_STYLE, mxShapeBootstrapRating.prototype.cst.RATING_STAR); + var grade = mxUtils.getValue(this.style, mxShapeBootstrapRating.prototype.cst.GRADE, '5'); + var ratingScale = mxUtils.getValue(this.style, mxShapeBootstrapRating.prototype.cst.RATING_SCALE, '10'); + c.translate(x, y); + + if (ratingStyle === mxShapeBootstrapRating.prototype.cst.RATING_STAR) { + for (var i = 0; i < grade; i++) { + c.begin(); + c.moveTo(i * h * 1.2, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.364 * h, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.475 * h, 0); + c.lineTo(i * h * 1.2 + 0.586 * h, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.95 * h, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.66 * h, 0.551 * h); + c.lineTo(i * h * 1.2 + 0.775 * h, 0.9 * h); + c.lineTo(i * h * 1.2 + 0.475 * h, 0.684 * h); + c.lineTo(i * h * 1.2 + 0.175 * h, 0.9 * h); + c.lineTo(i * h * 1.2 + 0.29 * h, 0.551 * h); + c.close(); + c.fillAndStroke(); + } + } else if (ratingStyle === mxShapeBootstrapRating.prototype.cst.RATING_HEART) { + for (var i = 0; i < grade; i++) { + c.begin(); + c.moveTo(i * h * 1.2 + h * 0.519, h * 0.947); + c.curveTo(i * h * 1.2 + h * 0.558, h * 0.908, i * h * 1.2 + h * 0.778, h * 0.682, i * h * 1.2 + h * 0.916, h * 0.54); + c.curveTo(i * h * 1.2 + h * 1.039, h * 0.414, i * h * 1.2 + h * 1.036, h * 0.229, i * h * 1.2 + h * 0.924, h * 0.115); + c.curveTo(i * h * 1.2 + h * 0.812, 0, i * h * 1.2 + h * 0.631, 0, i * h * 1.2 + h * 0.519, h * 0.115); + c.curveTo(i * h * 1.2 + h * 0.408, 0, i * h * 1.2 + h * 0.227, 0, i * h * 1.2 + h * 0.115, h * 0.115); + c.curveTo(i * h * 1.2 + h * 0.03, h * 0.229, i * h * 1.2, h * 0.414, i * h * 1.2 + h * 0.123, h * 0.54); + c.close(); + c.fillAndStroke(); + } + } + + var emptyFillColor = mxUtils.getValue(this.style, mxShapeBootstrapRating.prototype.cst.EMPTY_FILL_COLOR, '#ffffff'); + c.setFillColor(emptyFillColor); + + if (ratingStyle === mxShapeBootstrapRating.prototype.cst.RATING_STAR) { + for (var i = grade; i < ratingScale; i++) { + c.begin(); + c.moveTo(i * h * 1.2, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.364 * h, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.475 * h, 0); + c.lineTo(i * h * 1.2 + 0.586 * h, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.95 * h, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.66 * h, 0.551 * h); + c.lineTo(i * h * 1.2 + 0.775 * h, 0.9 * h); + c.lineTo(i * h * 1.2 + 0.475 * h, 0.684 * h); + c.lineTo(i * h * 1.2 + 0.175 * h, 0.9 * h); + c.lineTo(i * h * 1.2 + 0.29 * h, 0.551 * h); + c.close(); + c.fillAndStroke(); + } + } else if (ratingStyle === mxShapeBootstrapRating.prototype.cst.RATING_HEART) { + for (var i = grade; i < ratingScale; i++) { + c.begin(); + c.moveTo(i * h * 1.2 + h * 0.519, h * 0.947); + c.curveTo(i * h * 1.2 + h * 0.558, h * 0.908, i * h * 1.2 + h * 0.778, h * 0.682, i * h * 1.2 + h * 0.916, h * 0.54); + c.curveTo(i * h * 1.2 + h * 1.039, h * 0.414, i * h * 1.2 + h * 1.036, h * 0.229, i * h * 1.2 + h * 0.924, h * 0.115); + c.curveTo(i * h * 1.2 + h * 0.812, 0, i * h * 1.2 + h * 0.631, 0, i * h * 1.2 + h * 0.519, h * 0.115); + c.curveTo(i * h * 1.2 + h * 0.408, 0, i * h * 1.2 + h * 0.227, 0, i * h * 1.2 + h * 0.115, h * 0.115); + c.curveTo(i * h * 1.2 + h * 0.03, h * 0.229, i * h * 1.2, h * 0.414, i * h * 1.2 + h * 0.123, h * 0.54); + c.close(); + c.fillAndStroke(); + } + } +}; + +mxCellRenderer.registerShape(mxShapeBootstrapRating.prototype.cst.RATING, mxShapeBootstrapRating); + +function mxShapeBoostrapAnchor(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; +} + +; +mxUtils.extend(mxShapeBoostrapAnchor, mxShape); +mxShapeBoostrapAnchor.prototype.cst = { + ANCHOR: 'mxgraph.bootstrap.anchor' +}; + +mxShapeBoostrapAnchor.prototype.paintVertexShape = function (c, x, y, w, h) {}; + +mxCellRenderer.registerShape(mxShapeBoostrapAnchor.prototype.cst.ANCHOR, mxShapeBoostrapAnchor); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxCabinets.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxCabinets.js new file mode 100644 index 0000000000000..dafd06cbe8f48 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxCabinets.js @@ -0,0 +1,175 @@ +"use strict"; + +function mxCabinetsCabinet(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxCabinetsCabinet, mxShape); +mxCabinetsCabinet.prototype.cst = { + HAS_STAND: 'hasStand', + CABINET: 'mxgraph.cabinets.cabinet' +}; +mxCabinetsCabinet.prototype.customProperties = [{ + name: 'hasStand', + dispName: 'Has Stand', + type: 'bool', + defVal: true +}]; + +mxCabinetsCabinet.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + this.foreground(c, 0, 0, w, h); +}; + +mxCabinetsCabinet.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxCabinetsCabinet.prototype.foreground = function (c, x, y, w, h) { + var wallTh = 15; + c.rect(0, 0, w, wallTh); + c.stroke(); + c.begin(); + c.moveTo(wallTh, wallTh); + c.lineTo(wallTh, h); + c.moveTo(w - wallTh, wallTh); + c.lineTo(w - wallTh, h); + c.stroke(); + var hasStand = mxUtils.getValue(this.style, mxCabinetsCabinet.prototype.cst.HAS_STAND, '1'); + + if (hasStand === 1) { + c.rect(0, h - 40, w, 40); + c.fillAndStroke(); + } else { + c.rect(0, h - wallTh, w, wallTh); + c.fillAndStroke(); + } + + ; +}; + +mxCellRenderer.registerShape(mxCabinetsCabinet.prototype.cst.CABINET, mxCabinetsCabinet); + +function mxCabinetsCoverPlate(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxCabinetsCoverPlate, mxShape); +mxCabinetsCoverPlate.prototype.cst = { + COVER_PLATE: 'mxgraph.cabinets.coverPlate' +}; + +mxCabinetsCoverPlate.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + this.foreground(c, 0, 0, w, h); +}; + +mxCabinetsCoverPlate.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.moveTo(10, h * 0.5 - 12.5); + c.lineTo(10, h * 0.5 + 12.5); + c.lineTo(w - 10, h * 0.5 + 12.5); + c.lineTo(w - 10, h * 0.5 - 12.5); + c.close(); + c.fillAndStroke(); +}; + +mxCabinetsCoverPlate.prototype.foreground = function (c, x, y, w, h) {}; + +mxCellRenderer.registerShape(mxCabinetsCoverPlate.prototype.cst.COVER_PLATE, mxCabinetsCoverPlate); + +function mxCabinetsDimension(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxCabinetsDimension, mxShape); +mxCabinetsDimension.prototype.cst = { + DIMENSION: 'mxgraph.cabinets.dimension' +}; + +mxCabinetsDimension.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxCabinetsDimension.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 20); + c.lineTo(w, 20); + c.moveTo(10, 15); + c.lineTo(0, 20); + c.lineTo(10, 25); + c.moveTo(w - 10, 15); + c.lineTo(w, 20); + c.lineTo(w - 10, 25); + c.moveTo(0, 15); + c.lineTo(0, h); + c.moveTo(w, 15); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxCabinetsDimension.prototype.cst.DIMENSION, mxCabinetsDimension); + +function mxCabinetsDimensionBottom(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxCabinetsDimensionBottom, mxShape); +mxCabinetsDimensionBottom.prototype.cst = { + DIMENSION: 'mxgraph.cabinets.dimensionBottom' +}; + +mxCabinetsDimensionBottom.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxCabinetsDimensionBottom.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, h - 20); + c.lineTo(w, h - 20); + c.moveTo(10, h - 15); + c.lineTo(0, h - 20); + c.lineTo(10, h - 25); + c.moveTo(w - 10, h - 15); + c.lineTo(w, h - 20); + c.lineTo(w - 10, h - 25); + c.moveTo(0, h - 15); + c.lineTo(0, 0); + c.moveTo(w, h - 15); + c.lineTo(w, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxCabinetsDimensionBottom.prototype.cst.DIMENSION, mxCabinetsDimensionBottom); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxDFD.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxDFD.js new file mode 100644 index 0000000000000..850b499e1e567 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxDFD.js @@ -0,0 +1,323 @@ +"use strict"; + +function mxShapeDFDStart(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeDFDStart, mxShape); +mxShapeDFDStart.prototype.cst = { + START: 'mxgraph.dfd.start' +}; + +mxShapeDFDStart.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var r = Math.min(h * 0.5, w * 0.5); + c.begin(); + c.moveTo(w - r, h * 0.5 - r); + c.arcTo(r, r, 0, 0, 1, w, h * 0.5); + c.arcTo(r, r, 0, 0, 1, w - r, h * 0.5 + r); + c.lineTo(r, h * 0.5 + r); + c.arcTo(r, r, 0, 0, 1, 0, h * 0.5); + c.arcTo(r, r, 0, 0, 1, r, h * 0.5 - r); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeDFDStart.prototype.cst.START, mxShapeDFDStart); + +mxShapeDFDStart.prototype.getConstraints = function (style, w, h) { + var constr = []; + var r = Math.min(h * 0.5, w * 0.5); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.5), false, null, 0, -r)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.5), false, null, 0, r)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.293, h * 0.5 - r * 0.707)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.293, h * 0.5 - r * 0.707)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.293, h * 0.5 + r * 0.707)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.293, h * 0.5 + r * 0.707)); + + if (w >= 4 * h) { + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + } + + return constr; +}; + +function mxShapeDFDArchive(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeDFDArchive, mxShape); +mxShapeDFDArchive.prototype.cst = { + ARCHIVE: 'mxgraph.dfd.archive' +}; + +mxShapeDFDArchive.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.1, h * 0.2); + c.lineTo(w * 0.9, h * 0.2); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeDFDArchive.prototype.cst.ARCHIVE, mxShapeDFDArchive); + +mxShapeDFDArchive.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.875, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.625, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.375, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.125, 0.25), false)); + return constr; +}; + +function mxShapeDFDCheck2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeDFDCheck2, mxShape); +mxShapeDFDCheck2.prototype.cst = { + CHECK2: 'mxgraph.dfd.check2' +}; + +mxShapeDFDCheck2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var size = Math.min(h * 0.5, w * 0.5); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(size, 0); + c.lineTo(w - size, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - size, h); + c.lineTo(size, h); + c.lineTo(0, h * 0.5); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.begin(); + c.moveTo(w - size, 0); + c.lineTo(w - 2 * size, h * 0.5); + c.lineTo(w - size, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeDFDCheck2.prototype.cst.CHECK2, mxShapeDFDCheck2); + +mxShapeDFDCheck2.prototype.getConstraints = function (style, w, h) { + var constr = []; + var size = Math.min(h * 0.5, w * 0.5); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, size * 0.5, h * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - size * 0.5, h * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, size * 0.5, h * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - size * 0.5, h * 0.75)); + + if (w > h) { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, size, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - size, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, size, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - size, h)); + } + + if (size * 4 <= w) { + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + } + + return constr; +}; + +function mxShapeDFDDataStoreID(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeDFDDataStoreID, mxShape); +mxShapeDFDDataStoreID.prototype.cst = { + DATA_STORE_ID: 'mxgraph.dfd.dataStoreID' +}; + +mxShapeDFDDataStoreID.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var size = Math.min(h * 0.5, w * 0.5); + c.begin(); + c.moveTo(w, h); + c.lineTo(0, h); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.stroke(); + c.setShadow(false); + var s = Math.min(30, w); + c.begin(); + c.moveTo(s, 0); + c.lineTo(s, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeDFDDataStoreID.prototype.cst.DATA_STORE_ID, mxShapeDFDDataStoreID); +mxShapeDFDDataStoreID.prototype.constraints = null; + +function mxShapeDFDExternalEntity(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeDFDExternalEntity, mxShape); +mxShapeDFDExternalEntity.prototype.cst = { + EXTERNAL_ENTITY: 'mxgraph.dfd.externalEntity' +}; + +mxShapeDFDExternalEntity.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var size = 10; + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - size, 0); + c.lineTo(w, size); + c.lineTo(w, h); + c.lineTo(size, h); + c.lineTo(0, h - size); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setFillColor('#000000'); + c.setAlpha(0.5); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - size, 0); + c.lineTo(w, size); + c.lineTo(size, size); + c.lineTo(size, h); + c.lineTo(0, h - size); + c.close(); + c.fill(); + var opacity = parseFloat(mxUtils.getValue(this.style, 'opacity', '100')); + c.setAlpha(opacity / 100); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - size, 0); + c.lineTo(w, size); + c.lineTo(w, h); + c.lineTo(size, h); + c.lineTo(0, h - size); + c.close(); + c.moveTo(size, h); + c.lineTo(size, size); + c.lineTo(w, size); + c.moveTo(0, 0); + c.lineTo(size, size); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeDFDExternalEntity.prototype.cst.EXTERNAL_ENTITY, mxShapeDFDExternalEntity); + +mxShapeDFDExternalEntity.prototype.getConstraints = function (style, w, h) { + var constr = []; + var size = 10; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - size) * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - size) * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - size) * 0.75, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - size, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, size, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - size) * 0.25 + size, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - size) * 0.5 + size, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - size) * 0.75 + size, h)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, size)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, size + (h - size) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, size + (h - size) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, size + (h - size) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - size) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - size) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - size) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - size)); + return constr; +}; + +function mxShapeDFDLoop(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeDFDLoop, mxShape); +mxShapeDFDLoop.prototype.cst = { + LOOP: 'mxgraph.dfd.loop' +}; + +mxShapeDFDLoop.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var r = Math.min(h * 0.8, w * 0.8); + c.begin(); + c.moveTo(w - r * 0.25, 0); + c.arcTo(r, r, 0, 0, 1, w - r * 0.25, h); + c.lineTo(r * 0.25, h); + c.arcTo(r, r, 0, 0, 1, r * 0.25, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeDFDLoop.prototype.cst.LOOP, mxShapeDFDLoop); + +mxShapeDFDLoop.prototype.getConstraints = function (style, w, h) { + var constr = []; + var r = Math.min(h * 0.8, w * 0.8); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.25, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.25, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + return constr; +}; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxEip.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxEip.js new file mode 100644 index 0000000000000..101bcd428ef20 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxEip.js @@ -0,0 +1,409 @@ +"use strict"; + +function mxShapeEipMessageExpiration(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeEipMessageExpiration, mxShape); +mxShapeEipMessageExpiration.prototype.cst = { + SHAPE_MESS_EXP: 'mxgraph.eip.messExp' +}; + +mxShapeEipMessageExpiration.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeEipMessageExpiration.prototype.background = function (c, x, y, w, h) { + c.ellipse(0, 0, w, h); + c.stroke(); + c.setStrokeColor("#808080"); + c.begin(); + c.moveTo(w * 0.5, h * 0.1); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.6, h * 0.8); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeEipMessageExpiration.prototype.cst.SHAPE_MESS_EXP, mxShapeEipMessageExpiration); + +mxShapeEipMessageExpiration.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + return constr; +}; + +function mxShapeEipReturnAddress(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeEipReturnAddress, mxShape); +mxShapeEipReturnAddress.prototype.cst = { + SHAPE_RET_ADDR: 'mxgraph.eip.retAddr' +}; + +mxShapeEipReturnAddress.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeEipReturnAddress.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeEipReturnAddress.prototype.foreground = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w * 0.05, h * 0.11); + c.lineTo(w * 0.25, h * 0.11); + c.moveTo(w * 0.05, h * 0.18); + c.lineTo(w * 0.25, h * 0.18); + c.moveTo(w * 0.05, h * 0.25); + c.lineTo(w * 0.25, h * 0.25); + c.setStrokeWidth(2); + c.moveTo(w * 0.3, h * 0.63); + c.lineTo(w * 0.8, h * 0.63); + c.moveTo(w * 0.3, h * 0.72); + c.lineTo(w * 0.8, h * 0.72); + c.moveTo(w * 0.3, h * 0.80); + c.lineTo(w * 0.8, h * 0.80); + c.stroke(); + c.setFillColor("#EDEDED"); + c.rect(w * 0.8, h * 0.1, w * 0.12, h * 0.19); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeEipReturnAddress.prototype.cst.SHAPE_RET_ADDR, mxShapeEipReturnAddress); + +mxShapeEipReturnAddress.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxShapeEipAnchor(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeEipAnchor, mxShape); +mxShapeEipAnchor.prototype.cst = { + SHAPE_ANCHOR: 'mxgraph.eip.anchor' +}; + +mxShapeEipAnchor.prototype.paintVertexShape = function (c, x, y, w, h) {}; + +mxCellRenderer.registerShape(mxShapeEipAnchor.prototype.cst.SHAPE_ANCHOR, mxShapeEipAnchor); + +function mxShapeEipMessageChannel(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeEipMessageChannel, mxShape); +mxShapeEipMessageChannel.prototype.cst = { + SHAPE_MESSAGE_CHANNEL: 'mxgraph.eip.messageChannel' +}; + +mxShapeEipMessageChannel.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeEipMessageChannel.prototype.background = function (c, x, y, w, h) { + c.setGradient('#e6e6e6', '#808080', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, 8, h * 0.5 - 10); + c.lineTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.close(); + c.fillAndStroke(); +}; + +mxShapeEipMessageChannel.prototype.foreground = function (c, x, y, w, h) { + c.setFillColor('#e6e6e6'); + c.begin(); + c.moveTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 - 10); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeEipMessageChannel.prototype.cst.SHAPE_MESSAGE_CHANNEL, mxShapeEipMessageChannel); + +mxShapeEipMessageChannel.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 2.7, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, -2.7, 0)); + var currW = 10; + + while (currW < w) { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, currW, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, currW, 0)); + currW = currW + 10; + } + + return constr; +}; + +function mxShapeEipDatatypeChannel(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeEipDatatypeChannel, mxShape); +mxShapeEipDatatypeChannel.prototype.cst = { + SHAPE_DATATYPE_CHANNEL: 'mxgraph.eip.dataChannel' +}; + +mxShapeEipDatatypeChannel.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeEipDatatypeChannel.prototype.background = function (c, x, y, w, h) { + c.setGradient('#e6e6e6', '#808080', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, 8, h * 0.5 - 10); + c.lineTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.close(); + c.fillAndStroke(); +}; + +mxShapeEipDatatypeChannel.prototype.foreground = function (c, x, y, w, h) { + c.setFillColor('#e6e6e6'); + c.begin(); + c.moveTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 - 10); + c.fillAndStroke(); + c.setFillColor("#fffbc0"); + c.setStrokeWidth("1"); + + for (var i = 1; i * 20 + 10 < w - 14; i++) { + c.rect(i * 20, h * 0.5 - 5, 10, 10); + c.fillAndStroke(); + } + + ; +}; + +mxCellRenderer.registerShape(mxShapeEipDatatypeChannel.prototype.cst.SHAPE_DATATYPE_CHANNEL, mxShapeEipDatatypeChannel); + +mxShapeEipDatatypeChannel.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 2.7, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, -2.7, 0)); + var currW = 10; + + while (currW < w) { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, currW, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, currW, 0)); + currW = currW + 10; + } + + return constr; +}; + +function mxShapeEipDeadLetterChannel(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeEipDeadLetterChannel, mxShape); +mxShapeEipDeadLetterChannel.prototype.cst = { + SHAPE_DEAD_LETTER_CHANNEL: 'mxgraph.eip.deadLetterChannel' +}; + +mxShapeEipDeadLetterChannel.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeEipDeadLetterChannel.prototype.background = function (c, x, y, w, h) { + c.setGradient('#e6e6e6', '#808080', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, 8, h * 0.5 - 10); + c.lineTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.close(); + c.fillAndStroke(); +}; + +mxShapeEipDeadLetterChannel.prototype.foreground = function (c, x, y, w, h) { + c.setFillColor('#e6e6e6'); + c.begin(); + c.moveTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 - 10); + c.fillAndStroke(); + c.setFillColor("#ff0000"); + c.setStrokeWidth("1"); + c.begin(); + c.moveTo(w * 0.5 - 6, h * 0.5 - 3); + c.lineTo(w * 0.5 - 3, h * 0.5 - 6); + c.lineTo(w * 0.5 + 3, h * 0.5 - 6); + c.lineTo(w * 0.5 + 6, h * 0.5 - 3); + c.lineTo(w * 0.5 + 6, h * 0.5 + 3); + c.lineTo(w * 0.5 + 3, h * 0.5 + 6); + c.lineTo(w * 0.5 - 3, h * 0.5 + 6); + c.lineTo(w * 0.5 - 6, h * 0.5 + 3); + c.close(); + c.fillAndStroke(); + c.setStrokeWidth("2"); + c.setStrokeColor("#ffffff"); + c.begin(); + c.moveTo(w * 0.5 - 4, h * 0.5); + c.lineTo(w * 0.5 + 4, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeEipDeadLetterChannel.prototype.cst.SHAPE_DEAD_LETTER_CHANNEL, mxShapeEipDeadLetterChannel); + +mxShapeEipDeadLetterChannel.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 2.7, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, -2.7, 0)); + var currW = 10; + + while (currW < w) { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, currW, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, currW, 0)); + currW = currW + 10; + } + + return constr; +}; + +function mxShapeEipInvalidMessageChannel(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeEipInvalidMessageChannel, mxShape); +mxShapeEipInvalidMessageChannel.prototype.cst = { + SHAPE_INVALID_MESSAGE_CHANNEL: 'mxgraph.eip.invalidMessageChannel' +}; + +mxShapeEipInvalidMessageChannel.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeEipInvalidMessageChannel.prototype.background = function (c, x, y, w, h) { + c.setGradient('#e6e6e6', '#808080', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, 8, h * 0.5 - 10); + c.lineTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.close(); + c.fillAndStroke(); +}; + +mxShapeEipInvalidMessageChannel.prototype.foreground = function (c, x, y, w, h) { + c.setFillColor('#e6e6e6'); + c.begin(); + c.moveTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 - 10); + c.fillAndStroke(); + c.setFillColor("#ffe040"); + c.setStrokeWidth("1"); + c.begin(); + c.moveTo(w * 0.5 - 6, h * 0.5 + 5); + c.lineTo(w * 0.5, h * 0.5 - 5); + c.lineTo(w * 0.5 + 6, h * 0.5 + 5); + c.close(); + c.fillAndStroke(); + c.setStrokeWidth("1"); + c.begin(); + c.moveTo(w * 0.5, h * 0.5 - 2); + c.lineTo(w * 0.5, h * 0.5 + 2); + c.moveTo(w * 0.5, h * 0.5 + 3); + c.lineTo(w * 0.5, h * 0.5 + 4); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeEipInvalidMessageChannel.prototype.cst.SHAPE_INVALID_MESSAGE_CHANNEL, mxShapeEipInvalidMessageChannel); + +mxShapeEipInvalidMessageChannel.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 2.7, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, -2.7, 0)); + var currW = 10; + + while (currW < w) { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, currW, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, currW, 0)); + currW = currW + 10; + } + + return constr; +}; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxElectrical.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxElectrical.js new file mode 100644 index 0000000000000..b13ba719ac44f --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxElectrical.js @@ -0,0 +1,1469 @@ +"use strict"; + +function mxShapeElectricalTestPoint(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeElectricalTestPoint, mxShape); +mxShapeElectricalTestPoint.prototype.cst = { + SHAPE_TEST_POINT: 'mxgraph.electrical.transmission.testPoint' +}; + +mxShapeElectricalTestPoint.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var size = Math.min(w, h); + c.setFillColor(strokeColor); + c.begin(); + c.ellipse(w * 0.5 - size / 2, 0, size, size); + c.fillAndStroke(); + + if (h > w) { + c.begin(); + c.moveTo(w * 0.5, size); + c.lineTo(w * 0.5, h); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeElectricalTestPoint.prototype.cst.SHAPE_TEST_POINT, mxShapeElectricalTestPoint); +mxShapeElectricalTestPoint.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true)]; + +function mxShapeElectricalStraightBus(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeElectricalStraightBus, mxShape); +mxShapeElectricalStraightBus.prototype.cst = { + SHAPE_STRAIGHT_BUS: 'mxgraph.electrical.transmission.straightBus' +}; + +mxShapeElectricalStraightBus.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var size = Math.min(w, h); + var x1 = w * 0.2; + var y1 = 0; + + if (w > h) { + y1 = h * 0.5; + } else { + y1 = w / 2; + } + + c.begin(); + c.moveTo(w - x1, 0); + c.lineTo(w - x1, h - y1); + c.lineTo(w, h - y1); + c.lineTo(w * 0.5, h); + c.lineTo(0, h - y1); + c.lineTo(x1, h - y1); + c.lineTo(x1, 0); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeElectricalStraightBus.prototype.cst.SHAPE_STRAIGHT_BUS, mxShapeElectricalStraightBus); +mxShapeElectricalStraightBus.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true)]; + +function mxShapeElectricalTwoLineBusElbow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.notch = 0; +} + +; +mxUtils.extend(mxShapeElectricalTwoLineBusElbow, mxShape); +mxShapeElectricalTwoLineBusElbow.prototype.cst = { + SHAPE_TWO_LINE_BUS_ELBOW: 'mxgraph.electrical.transmission.twoLineBusElbow' +}; +mxShapeElectricalTwoLineBusElbow.prototype.customProperties = [{ + name: 'notch', + dispName: 'Spacing', + type: 'float', + min: 0, + defVal: 25 +}]; + +mxShapeElectricalTwoLineBusElbow.prototype.paintVertexShape = function (c, x, y, w, h) { + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + c.translate(x, y); + c.begin(); + c.moveTo(0, h); + c.lineTo(w, h); + c.lineTo(w, 0); + c.stroke(); + var wn = Math.min(w, notch); + var hn = Math.min(h, notch); + c.begin(); + c.moveTo(0, h - hn); + c.lineTo(w - wn, h - hn); + c.lineTo(w - wn, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeElectricalTwoLineBusElbow.prototype.cst.SHAPE_TWO_LINE_BUS_ELBOW, mxShapeElectricalTwoLineBusElbow); +mxShapeElectricalTwoLineBusElbow.prototype.constraints = null; + +Graph.handleFactory[mxShapeElectricalTwoLineBusElbow.prototype.cst.SHAPE_TWO_LINE_BUS_ELBOW] = function (state) { + var handles = [Graph.createHandle(state, ['notch'], function (bounds) { + var notch = Math.max(Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch))), 0); + return new mxPoint(bounds.x + bounds.width / 4, bounds.y + bounds.height - notch); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(0.2 * Math.max(0, bounds.width - pt.y + bounds.y)) / 0.2; + })]; + return handles; +}; + +function mxShapeElectricalThreeLineBusElbow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.notch = 0; +} + +; +mxUtils.extend(mxShapeElectricalThreeLineBusElbow, mxShape); +mxShapeElectricalThreeLineBusElbow.prototype.cst = { + SHAPE_THREE_LINE_BUS_ELBOW: 'mxgraph.electrical.transmission.threeLineBusElbow' +}; +mxShapeElectricalThreeLineBusElbow.prototype.customProperties = [{ + name: 'notch', + dispName: 'Spacing', + type: 'float', + min: 0, + defVal: 30 +}]; + +mxShapeElectricalThreeLineBusElbow.prototype.paintVertexShape = function (c, x, y, w, h) { + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + c.translate(x, y); + c.begin(); + c.moveTo(0, h); + c.lineTo(w, h); + c.lineTo(w, 0); + c.stroke(); + var wn = Math.min(w, notch); + var hn = Math.min(h, notch); + c.begin(); + c.moveTo(0, h - hn); + c.lineTo(w - wn, h - hn); + c.lineTo(w - wn, 0); + c.stroke(); + c.begin(); + c.moveTo(0, h - hn / 2); + c.lineTo(w - wn / 2, h - hn / 2); + c.lineTo(w - wn / 2, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeElectricalThreeLineBusElbow.prototype.cst.SHAPE_THREE_LINE_BUS_ELBOW, mxShapeElectricalThreeLineBusElbow); +mxShapeElectricalThreeLineBusElbow.prototype.constraints = null; + +Graph.handleFactory[mxShapeElectricalThreeLineBusElbow.prototype.cst.SHAPE_THREE_LINE_BUS_ELBOW] = function (state) { + var handles = [Graph.createHandle(state, ['notch'], function (bounds) { + var notch = Math.max(Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch))), 0); + return new mxPoint(bounds.x + bounds.width / 4, bounds.y + bounds.height - notch); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(0.2 * Math.max(0, bounds.width - pt.y + bounds.y)) / 0.2; + })]; + return handles; +}; + +function mxShapeElectricalFourLineBusElbow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.notch = 0; +} + +; +mxUtils.extend(mxShapeElectricalFourLineBusElbow, mxShape); +mxShapeElectricalFourLineBusElbow.prototype.cst = { + SHAPE_FOUR_LINE_BUS_ELBOW: 'mxgraph.electrical.transmission.fourLineBusElbow' +}; +mxShapeElectricalFourLineBusElbow.prototype.customProperties = [{ + name: 'notch', + dispName: 'Spacing', + type: 'float', + min: 0, + defVal: 75 +}]; + +mxShapeElectricalFourLineBusElbow.prototype.paintVertexShape = function (c, x, y, w, h) { + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + c.translate(x, y); + c.begin(); + c.moveTo(0, h); + c.lineTo(w, h); + c.lineTo(w, 0); + c.stroke(); + var wn = Math.min(w, notch); + var hn = Math.min(h, notch); + c.begin(); + c.moveTo(0, h - hn); + c.lineTo(w - wn, h - hn); + c.lineTo(w - wn, 0); + c.stroke(); + c.begin(); + c.moveTo(0, h - hn / 3); + c.lineTo(w - wn / 3, h - hn / 3); + c.lineTo(w - wn / 3, 0); + c.stroke(); + c.begin(); + c.moveTo(0, h - hn * 2 / 3); + c.lineTo(w - wn * 2 / 3, h - hn * 2 / 3); + c.lineTo(w - wn * 2 / 3, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeElectricalFourLineBusElbow.prototype.cst.SHAPE_FOUR_LINE_BUS_ELBOW, mxShapeElectricalFourLineBusElbow); +mxShapeElectricalFourLineBusElbow.prototype.constraints = null; + +Graph.handleFactory[mxShapeElectricalFourLineBusElbow.prototype.cst.SHAPE_FOUR_LINE_BUS_ELBOW] = function (state) { + var handles = [Graph.createHandle(state, ['notch'], function (bounds) { + var notch = Math.max(Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch))), 0); + return new mxPoint(bounds.x + bounds.width / 4, bounds.y + bounds.height - notch); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(0.2 * Math.max(0, bounds.width - pt.y + bounds.y)) / 0.2; + })]; + return handles; +}; + +function mxShapeElectricalEightLineBusElbow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.notch = 0; +} + +; +mxUtils.extend(mxShapeElectricalEightLineBusElbow, mxShape); +mxShapeElectricalEightLineBusElbow.prototype.cst = { + SHAPE_EIGHT_LINE_BUS_ELBOW: 'mxgraph.electrical.transmission.eightLineBusElbow' +}; +mxShapeElectricalEightLineBusElbow.prototype.customProperties = [{ + name: 'notch', + dispName: 'Spacing', + type: 'float', + min: 0, + defVal: 180 +}]; + +mxShapeElectricalEightLineBusElbow.prototype.paintVertexShape = function (c, x, y, w, h) { + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + c.translate(x, y); + c.begin(); + c.moveTo(0, h); + c.lineTo(w, h); + c.lineTo(w, 0); + c.stroke(); + var wn = Math.min(w, notch); + var hn = Math.min(h, notch); + c.begin(); + c.moveTo(0, h - hn); + c.lineTo(w - wn, h - hn); + c.lineTo(w - wn, 0); + c.stroke(); + c.begin(); + c.moveTo(0, h - hn / 7); + c.lineTo(w - wn / 7, h - hn / 7); + c.lineTo(w - wn / 7, 0); + c.stroke(); + c.begin(); + c.moveTo(0, h - hn * 2 / 7); + c.lineTo(w - wn * 2 / 7, h - hn * 2 / 7); + c.lineTo(w - wn * 2 / 7, 0); + c.stroke(); + c.begin(); + c.moveTo(0, h - hn * 3 / 7); + c.lineTo(w - wn * 3 / 7, h - hn * 3 / 7); + c.lineTo(w - wn * 3 / 7, 0); + c.stroke(); + c.begin(); + c.moveTo(0, h - hn * 4 / 7); + c.lineTo(w - wn * 4 / 7, h - hn * 4 / 7); + c.lineTo(w - wn * 4 / 7, 0); + c.stroke(); + c.begin(); + c.moveTo(0, h - hn * 5 / 7); + c.lineTo(w - wn * 5 / 7, h - hn * 5 / 7); + c.lineTo(w - wn * 5 / 7, 0); + c.stroke(); + c.begin(); + c.moveTo(0, h - hn * 6 / 7); + c.lineTo(w - wn * 6 / 7, h - hn * 6 / 7); + c.lineTo(w - wn * 6 / 7, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeElectricalEightLineBusElbow.prototype.cst.SHAPE_EIGHT_LINE_BUS_ELBOW, mxShapeElectricalEightLineBusElbow); +mxShapeElectricalEightLineBusElbow.prototype.constraints = null; + +Graph.handleFactory[mxShapeElectricalEightLineBusElbow.prototype.cst.SHAPE_EIGHT_LINE_BUS_ELBOW] = function (state) { + var handles = [Graph.createHandle(state, ['notch'], function (bounds) { + var notch = Math.max(Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch))), 0); + return new mxPoint(bounds.x + bounds.width / 4, bounds.y + bounds.height - notch); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(0.2 * Math.max(0, bounds.width - pt.y + bounds.y)) / 0.2; + })]; + return handles; +}; + +function mxShapeElectricalLogicGate(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeElectricalLogicGate, mxShape); +mxShapeElectricalLogicGate.prototype.cst = { + SHAPE_LOGIC_GATE: 'mxgraph.electrical.logic_gates.logic_gate' +}; +mxShapeElectricalLogicGate.prototype.customProperties = [{ + name: 'operation', + dispName: 'Operation', + type: 'enum', + defVal: 'and', + enumList: [{ + val: 'and', + dispName: 'And' + }, { + val: 'or', + dispName: 'Or' + }, { + val: 'xor', + dispName: 'Xor' + }] +}, { + name: 'numInputs', + dispName: 'Inputs', + type: 'int', + min: 2, + defVal: 2 +}, { + name: 'negating', + dispName: 'Negating', + type: 'bool', + defVal: 0 +}]; + +mxShapeElectricalLogicGate.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var numInputs = parseInt(mxUtils.getValue(this.style, 'numInputs', '2')); + var spacing = h / numInputs; + var currH = spacing * 0.5; + c.begin(); + c.moveTo(w * 0.8, h * 0.5); + c.lineTo(w, h * 0.5); + var operation = mxUtils.getValue(this.style, 'operation', 'and'); + + for (var i = 0; i < numInputs; i++) { + c.moveTo(0, currH); + + if (operation == 'and') { + c.lineTo(w * 0.2, currH); + } else { + c.lineTo(w * 0.23, currH); + } + + currH = currH + spacing; + } + + c.stroke(); + + switch (operation) { + case 'xor': + c.begin(); + c.moveTo(w * 0.1, 0); + c.arcTo(w * 0.6, h, 0, 0, 1, w * 0.1, h); + c.stroke(); + + case 'or': + c.begin(); + c.moveTo(w * 0.4, 0); + c.arcTo(w * 0.45, h * 0.83, 0, 0, 1, w * 0.8, h * 0.5); + c.arcTo(w * 0.45, h * 0.83, 0, 0, 1, w * 0.4, h); + c.lineTo(w * 0.15, h); + c.arcTo(w * 0.6, h, 0, 0, 0, w * 0.15, 0); + c.close(); + c.fillAndStroke(); + break; + + default: + c.begin(); + c.moveTo(w * 0.2, 0); + c.lineTo(w * 0.5, 0); + c.arcTo(w * 0.3, h * 0.5, 0, 0, 1, w * 0.5, h); + c.lineTo(w * 0.2, h); + c.close(); + c.fillAndStroke(); + } + + ; + var negating = mxUtils.getValue(this.style, 'negating', '0'); + + if (negating == '1') { + var negSize = Math.min(w * 0.04, h * 0.07); + c.begin(); + c.ellipse(w * 0.8, h * 0.5 - negSize * 0.5, negSize, negSize); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeElectricalLogicGate.prototype.cst.SHAPE_LOGIC_GATE, mxShapeElectricalLogicGate); + +mxShapeElectricalLogicGate.prototype.getConstraints = function (style) { + var constr = [new mxConnectionConstraint(new mxPoint(1, 0.5), false)]; + var numInputs = parseInt(mxUtils.getValue(style, 'numInputs', '2')); + var spacing = 1 / numInputs; + var currH = spacing * 0.5; + + for (var i = 0; i < numInputs; i++) { + constr.push(new mxConnectionConstraint(new mxPoint(0, currH), false)); + currH = currH + spacing; + } + + return constr; +}; + +function mxShapeElectricalBuffer(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeElectricalBuffer, mxShape); +mxShapeElectricalBuffer.prototype.cst = { + SHAPE_BUFFER2: 'mxgraph.electrical.logic_gates.buffer2' +}; +mxShapeElectricalBuffer.prototype.customProperties = [{ + name: 'negating', + dispName: 'Negating', + type: 'bool', + defVal: 0 +}]; + +mxShapeElectricalBuffer.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.2, h * 0.5); + c.moveTo(w * 0.8, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + c.begin(); + c.moveTo(w * 0.2, 0); + c.lineTo(w * 0.8, h * 0.5); + c.lineTo(w * 0.2, h); + c.close(); + c.fillAndStroke(); + var negating = mxUtils.getValue(this.style, 'negating', '0'); + + if (negating == '1') { + var negSize = Math.min(w * 0.04, h * 0.07); + c.begin(); + c.ellipse(w * 0.8, h * 0.5 - negSize * 0.5, negSize, negSize); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeElectricalBuffer.prototype.cst.SHAPE_BUFFER2, mxShapeElectricalBuffer); +mxShapeElectricalBuffer.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true)]; + +function mxShapeElectricalDualInLineIC(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeElectricalDualInLineIC, mxShape); +mxShapeElectricalDualInLineIC.prototype.cst = { + SHAPE_DUAL_INLINE_IC: 'mxgraph.electrical.logic_gates.dual_inline_ic' +}; +mxShapeElectricalDualInLineIC.prototype.customProperties = [{ + name: 'pinStyle', + dispName: 'Pin Style', + type: 'enum', + defVal: 'line', + enumList: [{ + val: 'line', + dispName: 'Line' + }, { + val: 'square', + dispName: 'Square' + }] +}, { + name: 'startPin', + dispName: 'Starting Pin', + type: 'enum', + defVal: 'n', + enumList: [{ + val: 'n', + dispName: 'N' + }, { + val: 'e', + dispName: 'E' + }, { + val: 's', + dispName: 'S' + }, { + val: 'w', + dispName: 'W' + }] +}, { + name: 'pinSpacing', + dispName: 'Pin Spacing', + type: 'float', + min: 1, + defVal: 20 +}, { + name: 'pinLabelType', + dispName: 'Pin Label Type', + type: 'enum', + defVal: 'gen', + enumList: [{ + val: 'gen', + dispName: 'Generated' + }, { + val: 'cust', + dispName: 'Custom' + }] +}, { + name: 'labelCount', + dispName: 'Number of Labels', + type: 'int', + defVal: 20, + dependentProps: ['labelNames'] +}, { + name: 'labelNames', + dispName: 'Label Names', + type: 'staticArr', + subType: 'string', + sizeProperty: 'labelCount', + subDefVal: 'a' +}]; + +mxShapeElectricalDualInLineIC.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var fontColor = mxUtils.getValue(this.style, 'fontColor', '#000000'); + c.setFontColor(fontColor); + var startPin = mxUtils.getValue(this.style, 'startPin', 'n'); + var pinLabelType = mxUtils.getValue(this.style, 'pinLabelType', 'gen'); + var labelNames = mxUtils.getValue(this.style, 'labelNames', '').toString().split(','); + c.begin(); + + if (startPin == 'n' || startPin == 's') { + c.rect(10, 0, w - 20, h); + } else { + c.rect(0, 10, w, h - 20); + } + + c.fillAndStroke(); + var pinSpacing = parseFloat(mxUtils.getValue(this.style, 'pinSpacing', '20')); + var pinStyle = mxUtils.getValue(this.style, 'pinStyle', 'line'); + var fontSize = parseFloat(mxUtils.getValue(this.style, 'fontSize', '12')); + + if (startPin == 'n' || startPin == 's') { + var pinsOne = parseInt(h / pinSpacing); + } else { + var pinsOne = parseInt(w / pinSpacing); + } + + if (pinStyle == 'line') { + c.setFontSize(fontSize * 0.8); + var pinCount = 1; + var currH = pinSpacing * 0.5; + c.begin(); + + if (startPin == 'n' || startPin == 's') { + while (pinCount * pinSpacing <= h) { + c.moveTo(0, currH); + c.lineTo(10, currH); + c.moveTo(w - 10, currH); + c.lineTo(w, currH); + + if (startPin == 'n') { + var currPinNum = pinCount; + } else { + var currPinNum = pinsOne + pinCount; + } + + if (pinLabelType == 'gen') { + c.text(20, currH, 0, 0, currPinNum.toString(), mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (currPinNum - 1 < labelNames.length) { + c.text(20, currH, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + if (startPin == 'n') { + var pc2 = 2 * pinsOne - pinCount + 1; + } else { + var pc2 = pinsOne - pinCount + 1; + } + + if (pinLabelType == 'gen') { + c.text(w - 20, currH, 0, 0, pc2.toString(), mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (pc2 - 1 < labelNames.length) { + c.text(w - 20, currH, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + } else { + while (pinCount * pinSpacing <= w) { + c.moveTo(currH, 0); + c.lineTo(currH, 10); + c.moveTo(currH, h - 10); + c.lineTo(currH, h); + + if (startPin == 'e') { + var currPinNum = pinsOne - pinCount + 1; + } else { + var currPinNum = 2 * pinsOne - pinCount + 1; + } + + if (pinLabelType == 'gen') { + c.text(currH, 20, 0, 0, currPinNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (currPinNum - 1 < labelNames.length) { + c.text(currH, 20, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + if (startPin == 'e') { + var pc2 = pinsOne + pinCount; + } else { + var pc2 = pinCount; + } + + if (pinLabelType == 'gen') { + c.text(currH, h - 20, 0, 0, pc2.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (pc2 - 1 < labelNames.length) { + c.text(currH, h - 20, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + } + + c.stroke(); + } else { + c.setFontSize(fontSize * 0.5); + var pinCount = 1; + var currH = pinSpacing * 0.5; + + if (startPin == 'n' || startPin == 's') { + while (pinCount * pinSpacing <= h) { + c.begin(); + c.rect(0, currH - pinSpacing * 0.25, 10, pinSpacing * 0.5); + c.fillAndStroke(); + c.begin(); + c.rect(w - 10, currH - pinSpacing * 0.25, 10, pinSpacing * 0.5); + c.fillAndStroke(); + + if (startPin == 'n') { + var currPinNum = pinCount; + } else { + var currPinNum = pinsOne + pinCount; + } + + if (pinLabelType == 'gen') { + c.text(5, currH + 1, 0, 0, currPinNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (currPinNum - 1 < labelNames.length) { + c.text(5, currH + 1, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + if (startPin == 'n') { + var pc2 = 2 * pinsOne - pinCount + 1; + } else { + var pc2 = pinsOne - pinCount + 1; + } + + if (pinLabelType == 'gen') { + c.text(w - 5, currH + 1, 0, 0, pc2.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (pc2 - 1 < labelNames.length) { + c.text(w - 5, currH + 1, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + } else { + while (pinCount * pinSpacing <= w) { + c.begin(); + c.rect(currH - pinSpacing * 0.25, 0, pinSpacing * 0.5, 10); + c.fillAndStroke(); + c.begin(); + c.rect(currH - pinSpacing * 0.25, h - 10, pinSpacing * 0.5, 10); + c.fillAndStroke(); + + if (startPin == 'e') { + var currPinNum = pinsOne - pinCount + 1; + } else { + var currPinNum = 2 * pinsOne - pinCount + 1; + } + + if (pinLabelType == 'gen') { + c.text(currH, 5, 0, 0, currPinNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (currPinNum - 1 < labelNames.length) { + c.text(currH, 5, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + if (startPin == 'e') { + var pc2 = pinsOne + pinCount; + } else { + var pc2 = pinCount; + } + + if (pinLabelType == 'gen') { + c.text(currH, h - 5, 0, 0, pc2.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (pc2 - 1 < labelNames.length) { + c.text(currH, h - 5, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + } + } + + c.setShadow(false); + c.begin(); + + switch (startPin) { + case 'e': + if (h > 40) { + c.moveTo(w, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 0, w, h * 0.5 + 10); + } + + break; + + case 's': + if (w > 40) { + c.moveTo(w * 0.5 - 10, h); + c.arcTo(12, 12, 0, 0, 1, w * 0.5 + 10, h); + } + + break; + + case 'w': + if (h > 40) { + c.moveTo(0, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, 0, h * 0.5 + 10); + } + + break; + + default: + if (w > 40) { + c.moveTo(w * 0.5 - 10, 0); + c.arcTo(12, 12, 0, 0, 0, w * 0.5 + 10, 0); + } + + } + + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeElectricalDualInLineIC.prototype.cst.SHAPE_DUAL_INLINE_IC, mxShapeElectricalDualInLineIC); + +mxShapeElectricalDualInLineIC.prototype.getConstraints = function (style, w, h) { + var constr = []; + var pinSpacing = parseFloat(mxUtils.getValue(this.style, 'pinSpacing', '20')); + var startPin = mxUtils.getValue(this.style, 'startPin', 'n'); + var pinCount = 1; + var currH = pinSpacing * 0.5; + var pinsOne = parseInt(h / pinSpacing); + + if (startPin == 'n' || startPin == 's') { + while (pinCount * pinSpacing <= h) { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, currH)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, currH)); + currH = currH + pinSpacing; + pinCount++; + } + } else { + while (pinCount * pinSpacing <= w) { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, currH, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, currH, 0)); + currH = currH + pinSpacing; + pinCount++; + } + } + + return constr; +}; + +function mxShapeElectricalQFPIC(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeElectricalQFPIC, mxShape); +mxShapeElectricalQFPIC.prototype.cst = { + SHAPE_QFP_IC: 'mxgraph.electrical.logic_gates.qfp_ic' +}; +mxShapeElectricalQFPIC.prototype.customProperties = [{ + name: 'pinStyle', + dispName: 'Pin Style', + type: 'enum', + defVal: 'line', + enumList: [{ + val: 'line', + dispName: 'Line' + }, { + val: 'square', + dispName: 'Square' + }] +}, { + name: 'startPin', + dispName: 'Starting Pin', + type: 'enum', + defVal: 'sw', + enumList: [{ + val: 'sw', + dispName: 'SW' + }, { + val: 'nw', + dispName: 'NW' + }, { + val: 'ne', + dispName: 'NE' + }, { + val: 'se', + dispName: 'SE' + }] +}, { + name: 'pinSpacing', + dispName: 'Pin Spacing', + type: 'float', + min: 1, + defVal: 20 +}, { + name: 'pinLabelType', + dispName: 'Pin Label Type', + type: 'enum', + defVal: 'gen', + enumList: [{ + val: 'gen', + dispName: 'Generated' + }, { + val: 'cust', + dispName: 'Custom' + }] +}, { + name: 'labelCount', + dispName: 'Number of Labels', + type: 'int', + defVal: 40, + dependentProps: ['labelNames'] +}, { + name: 'labelNames', + dispName: 'Label Names', + type: 'staticArr', + subType: 'string', + sizeProperty: 'labelCount', + subDefVal: 'a' +}]; + +mxShapeElectricalQFPIC.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(15, 10); + c.lineTo(w - 15, 10); + c.lineTo(w - 10, 15); + c.lineTo(w - 10, h - 15); + c.lineTo(w - 15, h - 10); + c.lineTo(15, h - 10); + c.lineTo(10, h - 15); + c.lineTo(10, 15); + c.close(); + c.fillAndStroke(); + var pinSpacing = parseFloat(mxUtils.getValue(this.style, 'pinSpacing', '20')); + var pinStyle = mxUtils.getValue(this.style, 'pinStyle', 'line'); + var pinLabelType = mxUtils.getValue(this.style, 'pinLabelType', 'gen'); + var labelNames = mxUtils.getValue(this.style, 'labelNames', '').toString().split(','); + var fontSize = parseFloat(mxUtils.getValue(this.style, 'fontSize', '12')); + var fontColor = mxUtils.getValue(this.style, 'fontColor', '#000000'); + c.setFontColor(fontColor); + var startPin = mxUtils.getValue(this.style, 'startPin', 'sw'); + + if (pinStyle == 'line') { + c.setFontSize(fontSize * 0.8); + var pinCount = 1; + var currH = pinSpacing * 0.5 + 20; + c.begin(); + var pinsVOne = parseInt((h - pinSpacing - 40) / pinSpacing) + 1; + var pinsHOne = parseInt((w - pinSpacing - 40) / pinSpacing) + 1; + + while (currH <= h - pinSpacing * 0.5 - 20) { + c.moveTo(0, currH); + c.lineTo(10, currH); + c.moveTo(w - 10, currH); + c.lineTo(w, currH); + + switch (startPin) { + case 'nw': + var currPinNum = pinCount; + break; + + case 'ne': + var currPinNum = pinsHOne + pinCount; + break; + + case 'se': + var currPinNum = pinsVOne + pinsHOne + pinCount; + break; + + default: + var currPinNum = pinsVOne + 2 * pinsHOne + pinCount; + } + + if (pinLabelType == 'gen') { + c.text(20, currH, 0, 0, currPinNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (currPinNum - 1 < labelNames.length) { + c.text(20, currH, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + switch (startPin) { + case 'nw': + var pc2 = pinsHOne + 2 * pinsVOne - pinCount + 1; + break; + + case 'ne': + var pc2 = 2 * pinsHOne + 2 * pinsVOne - pinCount + 1; + break; + + case 'se': + var pc2 = pinsVOne - pinCount + 1; + break; + + default: + var pc2 = pinsHOne + pinsVOne - pinCount + 1; + } + + if (pinLabelType == 'gen') { + c.text(w - 20, currH, 0, 0, pc2.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (pc2 - 1 < labelNames.length) { + c.text(w - 20, currH, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + + var pinCount = 1; + var currH = pinSpacing * 0.5 + 20; + + while (currH <= w - pinSpacing * 0.5 - 20) { + c.moveTo(currH, 0); + c.lineTo(currH, 10); + c.moveTo(currH, h - 10); + c.lineTo(currH, h); + + switch (startPin) { + case 'nw': + var currPinNum = pinsVOne + pinCount; + break; + + case 'ne': + var currPinNum = pinsVOne + pinsHOne + pinCount; + break; + + case 'se': + var currPinNum = 2 * pinsVOne + pinsHOne + pinCount; + break; + + default: + var currPinNum = pinCount; + } + + if (pinLabelType == 'gen') { + c.text(currH, h - 20, 0, 0, currPinNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (currPinNum - 1 < labelNames.length) { + c.text(currH, h - 20, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + switch (startPin) { + case 'nw': + var pc2 = 2 * pinsHOne + 2 * pinsVOne - pinCount + 1; + break; + + case 'ne': + var pc2 = pinsHOne - pinCount + 1; + break; + + case 'se': + var pc2 = pinsHOne + pinsVOne - pinCount + 1; + break; + + default: + var pc2 = 2 * pinsHOne + pinsVOne - pinCount + 1; + } + + if (pinLabelType == 'gen') { + c.text(currH, 20, 0, 0, pc2.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (pc2 - 1 < labelNames.length) { + c.text(currH, 20, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + + c.stroke(); + } else { + c.setFontSize(fontSize * 0.5); + var pinCount = 1; + var currH = pinSpacing * 0.5 + 20; + var pinsVOne = parseInt((h - pinSpacing - 40) / pinSpacing) + 1; + var pinsHOne = parseInt((w - pinSpacing - 40) / pinSpacing) + 1; + + while (currH <= h - pinSpacing * 0.5 - 20) { + c.begin(); + c.rect(0, currH - pinSpacing * 0.25, 10, pinSpacing * 0.5); + c.fillAndStroke(); + c.begin(); + c.rect(w - 10, currH - pinSpacing * 0.25, 10, pinSpacing * 0.5); + c.fillAndStroke(); + + switch (startPin) { + case 'nw': + var currPinNum = pinCount; + break; + + case 'ne': + var currPinNum = pinsHOne + pinCount; + break; + + case 'se': + var currPinNum = pinsVOne + pinsHOne + pinCount; + break; + + default: + var currPinNum = pinsVOne + 2 * pinsHOne + pinCount; + } + + if (pinLabelType == 'gen') { + c.text(5, currH + 1, 0, 0, currPinNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (currPinNum - 1 < labelNames.length) { + c.text(5, currH + 1, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + switch (startPin) { + case 'nw': + var pc2 = pinsHOne + 2 * pinsVOne - pinCount + 1; + break; + + case 'ne': + var pc2 = 2 * pinsHOne + 2 * pinsVOne - pinCount + 1; + break; + + case 'se': + var pc2 = pinsVOne - pinCount + 1; + break; + + default: + var pc2 = pinsHOne + pinsVOne - pinCount + 1; + } + + if (pinLabelType == 'gen') { + c.text(w - 5, currH + 1, 0, 0, pc2.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (pc2 - 1 < labelNames.length) { + c.text(w - 5, currH + 1, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + + var pinCount = 1; + var currH = pinSpacing * 0.5 + 20; + + while (currH <= w - pinSpacing * 0.5 - 20) { + c.begin(); + c.rect(currH - pinSpacing * 0.25, 0, pinSpacing * 0.5, 10); + c.fillAndStroke(); + c.begin(); + c.rect(currH - pinSpacing * 0.25, h - 10, pinSpacing * 0.5, 10); + c.fillAndStroke(); + + switch (startPin) { + case 'nw': + var currPinNum = pinsVOne + pinCount; + break; + + case 'ne': + var currPinNum = pinsVOne + pinsHOne + pinCount; + break; + + case 'se': + var currPinNum = 2 * pinsVOne + pinsHOne + pinCount; + break; + + default: + var currPinNum = pinCount; + } + + if (pinLabelType == 'gen') { + c.text(currH, h - 4, 0, 0, currPinNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (currPinNum - 1 < labelNames.length) { + c.text(currH, h - 4, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + switch (startPin) { + case 'nw': + var pc2 = 2 * pinsHOne + 2 * pinsVOne - pinCount + 1; + break; + + case 'ne': + var pc2 = pinsHOne - pinCount + 1; + break; + + case 'se': + var pc2 = pinsHOne + pinsVOne - pinCount + 1; + break; + + default: + var pc2 = 2 * pinsHOne + pinsVOne - pinCount + 1; + } + + if (pinLabelType == 'gen') { + c.text(currH, 6, 0, 0, pc2.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else if (pc2 - 1 < labelNames.length) { + c.text(currH, 6, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + } + + c.setShadow(false); + + if (w > 40) { + c.setFillColor(mxUtils.getValue(this.style, 'strokeColor', '#000000')); + c.begin(); + + switch (startPin) { + case 'nw': + c.ellipse(15, 15, 10, 10); + break; + + case 'ne': + c.ellipse(w - 25, 15, 10, 10); + break; + + case 'se': + c.ellipse(w - 25, h - 25, 10, 10); + break; + + default: + c.ellipse(15, h - 25, 10, 10); + } + + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeElectricalQFPIC.prototype.cst.SHAPE_QFP_IC, mxShapeElectricalQFPIC); + +mxShapeElectricalQFPIC.prototype.getConstraints = function (style, w, h) { + var constr = []; + var pinSpacing = parseFloat(mxUtils.getValue(this.style, 'pinSpacing', '20')); + var pinCount = 1; + var currH = pinSpacing * 0.5 + 20; + var pinsOne = parseInt(h / pinSpacing); + + while (currH <= h - pinSpacing * 0.5 - 20) { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, currH)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, currH)); + currH = currH + pinSpacing; + } + + var pinCount = 1; + var currH = pinSpacing * 0.5 + 20; + + while (currH <= w - pinSpacing * 0.5 - 20) { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, currH, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, currH, 0)); + currH = currH + pinSpacing; + } + + return constr; +}; + +function mxShapeElectricalMux(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeElectricalMux, mxShape); +mxShapeElectricalMux.prototype.cst = { + SHAPE_MUX: 'mxgraph.electrical.abstract.mux2' +}; +mxShapeElectricalMux.prototype.customProperties = [{ + name: 'operation', + dispName: 'Operation', + type: 'enum', + defVal: 'mux', + enumList: [{ + val: 'mux', + dispName: 'Mux' + }, { + val: 'demux', + dispName: 'Demux' + }] +}, { + name: 'selectorPins', + dispName: 'Selector Pins', + type: 'int', + min: 1, + max: 8, + defVal: 1 +}]; + +mxShapeElectricalMux.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var selectorPins = parseInt(mxUtils.getValue(this.style, 'selectorPins', '1')); + var operation = mxUtils.getValue(this.style, 'operation', 'mux'); + var fontSize = parseFloat(mxUtils.getValue(this.style, 'fontSize', '12')); + c.setFontSize(fontSize * 0.5); + var fontColor = mxUtils.getValue(this.style, 'fontColor', '#000000'); + c.setFontColor(fontColor); + var dir = mxUtils.getValue(this.style, 'direction', 'east'); + var txtRot = 0; + + switch (dir) { + case 'south': + txtRot = 270; + break; + + case 'west': + txtRot = 180; + break; + + case 'north': + txtRot = 90; + break; + } + + switch (operation) { + case 'demux': + c.begin(); + c.moveTo(w - 10, 0); + c.lineTo(10, h * 0.1); + c.lineTo(10, h * 0.9 - 10); + c.lineTo(w - 10, h - 10); + c.close(); + c.fillAndStroke(); + break; + + default: + c.begin(); + c.moveTo(10, 0); + c.lineTo(w - 10, h * 0.1); + c.lineTo(w - 10, h * 0.9 - 10); + c.lineTo(10, h - 10); + c.close(); + c.fillAndStroke(); + } + + ; + var numInputs = 1; + var numOutputs = 1; + + if (operation == 'mux') { + numInputs = Math.pow(2, selectorPins); + var spacing = (h - 16) / numInputs; + } else { + numOutputs = Math.pow(2, selectorPins); + var spacing = (h - 16) / numOutputs; + } + + var currH = 3 + spacing * 0.5; + c.begin(); + + if (numInputs == 1) { + c.moveTo(0, (h - 10) * 0.5); + c.lineTo(10, (h - 10) * 0.5); + } else { + for (var i = 0; i < numInputs; i++) { + c.moveTo(0, currH); + c.lineTo(10, currH); + c.text(14, currH + 1, 0, 0, '' + i.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, txtRot); + currH = currH + spacing; + } + } + + if (numOutputs == 1) { + c.moveTo(w - 10, (h - 10) * 0.5); + c.lineTo(w, (h - 10) * 0.5); + } else { + for (var i = 0; i < numOutputs; i++) { + c.moveTo(w - 10, currH); + c.lineTo(w, currH); + c.text(w - 14, currH + 1, 0, 0, '' + i.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, txtRot); + currH = currH + spacing; + } + } + + var spacing = (w - 20) / selectorPins; + var currW = 10 + spacing * 0.5; + + for (var i = 0; i < selectorPins; i++) { + if (operation == 'mux') { + c.moveTo(currW, h - 10 - (currW - 10) / (w - 20) * h * 0.1); + } else { + c.moveTo(currW, h - 10 - (w - currW - 10) / (w - 20) * h * 0.1); + } + + c.lineTo(currW, h); + c.text(currW + 5, h - 4, 0, 0, 'S' + (selectorPins - i - 1).toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, txtRot); + currW = currW + spacing; + } + + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeElectricalMux.prototype.cst.SHAPE_MUX, mxShapeElectricalMux); + +mxShapeElectricalMux.prototype.getConstraints = function (style, w, h) { + var constr = []; + var pinRange = (h - 16) / h; + var selectorPins = parseInt(mxUtils.getValue(this.style, 'selectorPins', '1')); + var operation = mxUtils.getValue(this.style, 'operation', 'mux'); + var dir = mxUtils.getValue(this.style, 'direction', 'east'); + var numInputs = 1; + var numOutputs = 1; + + if (operation == 'mux') { + numInputs = Math.pow(2, selectorPins); + var spacing = pinRange / numInputs; + } else { + numOutputs = Math.pow(2, selectorPins); + var spacing = pinRange / numOutputs; + } + + var currH = spacing * 0.5; + + if (numInputs == 1) { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5 * (h - 10) / h), false, 0, 0)); + } else { + for (var i = 0; i < numInputs; i++) { + constr.push(new mxConnectionConstraint(new mxPoint(0, currH), false, null, 0, 3)); + currH = currH + spacing; + } + } + + if (numOutputs == 1) { + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, 0, -5)); + } else { + for (var i = 0; i < numOutputs; i++) { + constr.push(new mxConnectionConstraint(new mxPoint(1, currH), false, null, 0, 3)); + currH = currH + spacing; + } + } + + var spacing = (w - 20) / (w * selectorPins); + var currW = spacing * 0.5; + + for (var i = 0; i < selectorPins; i++) { + constr.push(new mxConnectionConstraint(new mxPoint(currW, 1), false, null, 10, 0)); + currW = currW + spacing; + } + + return constr; +}; + +function mxShapeElectricalBatteryStack(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeElectricalBatteryStack, mxShape); +mxShapeElectricalBatteryStack.prototype.cst = { + SHAPE_BATTERY_STACK: 'mxgraph.electrical.miscellaneous.batteryStack' +}; + +mxShapeElectricalBatteryStack.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var bw = h * 0.3; + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var dashed = mxUtils.getValue(this.style, mxConstants.STYLE_DASHED, '0'); + var bNum = Math.floor((w - 20) / bw); + var startX = (w - bNum * bw) * 0.5; + + if (bNum > 0) { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(startX + bw * 0.2, h * 0.5); + c.moveTo(w - startX - bw * 0.2, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + var currX = startX; + c.setFillColor(strokeColor); + + for (var i = 0; i < bNum; i++) { + c.rect(currX + bw * 0.2, h * 0.25, bw * 0.2, h * 0.5); + c.fillAndStroke(); + c.begin(); + c.moveTo(currX + bw * 0.8, 0); + c.lineTo(currX + bw * 0.8, h); + c.stroke(); + + if (i > 0) { + c.setDashed('1'); + c.begin(); + c.moveTo(currX - bw * 0.2, h * 0.5); + c.lineTo(currX + bw * 0.2, h * 0.5); + c.stroke(); + c.setDashed(dashed); + } + + currX = currX + bw; + } + } +}; + +mxCellRenderer.registerShape(mxShapeElectricalBatteryStack.prototype.cst.SHAPE_BATTERY_STACK, mxShapeElectricalBatteryStack); +mxShapeElectricalBatteryStack.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true)]; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxFloorplan.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxFloorplan.js new file mode 100644 index 0000000000000..de217519c0142 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxFloorplan.js @@ -0,0 +1,481 @@ +"use strict"; + +function mxFloorplanWall(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxFloorplanWall, mxShape); +mxFloorplanWall.prototype.cst = { + WALL: 'mxgraph.floorplan.wall', + WALL_THICKNESS: "wallThickness" +}; +mxFloorplanWall.prototype.customProperties = [{ + name: 'wallThickness', + dispName: 'Thickness', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxFloorplanWall.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanWall.prototype.background = function (c, x, y, w, h) { + var wallTh = parseFloat(mxUtils.getValue(this.style, mxFloorplanWall.prototype.cst.WALL_THICKNESS, '10')); + c.rect(0, h * 0.5 - wallTh * 0.5, w, wallTh); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanWall.prototype.cst.WALL, mxFloorplanWall); + +function mxFloorplanWallCorner(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxFloorplanWallCorner, mxShape); +mxFloorplanWallCorner.prototype.cst = { + WALL_CORNER: 'mxgraph.floorplan.wallCorner', + WALL_THICKNESS: "wallThickness" +}; +mxFloorplanWallCorner.prototype.customProperties = [{ + name: 'wallThickness', + dispName: 'Thickness', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxFloorplanWallCorner.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanWallCorner.prototype.background = function (c, x, y, w, h) { + var wallTh = parseFloat(mxUtils.getValue(this.style, mxFloorplanWallCorner.prototype.cst.WALL_THICKNESS, '10')); + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, wallTh); + c.lineTo(wallTh, wallTh); + c.lineTo(wallTh, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanWallCorner.prototype.cst.WALL_CORNER, mxFloorplanWallCorner); + +function mxFloorplanWallU(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxFloorplanWallU, mxShape); +mxFloorplanWallU.prototype.cst = { + WALL_U: 'mxgraph.floorplan.wallU', + WALL_THICKNESS: "wallThickness" +}; +mxFloorplanWallU.prototype.customProperties = [{ + name: 'wallThickness', + dispName: 'Thickness', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxFloorplanWallU.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanWallU.prototype.background = function (c, x, y, w, h) { + var wallTh = parseFloat(mxUtils.getValue(this.style, mxFloorplanWallU.prototype.cst.WALL_THICKNESS, '10')); + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(w - wallTh, h); + c.lineTo(w - wallTh, wallTh); + c.lineTo(wallTh, wallTh); + c.lineTo(wallTh, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanWallU.prototype.cst.WALL_U, mxFloorplanWallU); + +function mxFloorplanRoom(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxFloorplanRoom, mxShape); +mxFloorplanRoom.prototype.cst = { + ROOM: 'mxgraph.floorplan.room', + WALL_THICKNESS: "wallThickness" +}; +mxFloorplanRoom.prototype.customProperties = [{ + name: 'wallThickness', + dispName: 'Thickness', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxFloorplanRoom.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanRoom.prototype.background = function (c, x, y, w, h) { + var wallTh = parseFloat(mxUtils.getValue(this.style, mxFloorplanRoom.prototype.cst.WALL_THICKNESS, '10')); + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.close(); + c.moveTo(wallTh, wallTh); + c.lineTo(wallTh, h - wallTh); + c.lineTo(w - wallTh, h - wallTh); + c.lineTo(w - wallTh, wallTh); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanRoom.prototype.cst.ROOM, mxFloorplanRoom); + +function mxFloorplanWindow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxFloorplanWindow, mxShape); +mxFloorplanWindow.prototype.cst = { + WINDOW: 'mxgraph.floorplan.window', + WALL_THICKNESS: "wallThickness" +}; +mxFloorplanWindow.prototype.customProperties = [{ + name: 'wallThickness', + dispName: 'Thickness', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxFloorplanWindow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanWindow.prototype.background = function (c, x, y, w, h) { + var wallTh = parseFloat(mxUtils.getValue(this.style, mxFloorplanWindow.prototype.cst.WALL_THICKNESS, '10')); + c.rect(0, h * 0.5 - wallTh * 0.5, w, wallTh); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanWindow.prototype.cst.WINDOW, mxFloorplanWindow); + +function mxFloorplanDimension(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxFloorplanDimension, mxShape); +mxFloorplanDimension.prototype.cst = { + DIMENSION: 'mxgraph.floorplan.dimension' +}; +mxFloorplanDimension.prototype.customProperties = [{ + name: 'wallThickness', + dispName: 'Thickness', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxFloorplanDimension.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanDimension.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 20); + c.lineTo(w, 20); + c.moveTo(10, 15); + c.lineTo(0, 20); + c.lineTo(10, 25); + c.moveTo(w - 10, 15); + c.lineTo(w, 20); + c.lineTo(w - 10, 25); + c.moveTo(0, 15); + c.lineTo(0, h); + c.moveTo(w, 15); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanDimension.prototype.cst.DIMENSION, mxFloorplanDimension); + +function mxFloorplanDimensionBottom(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxFloorplanDimensionBottom, mxShape); +mxFloorplanDimensionBottom.prototype.cst = { + DIMENSION: 'mxgraph.floorplan.dimensionBottom' +}; + +mxFloorplanDimensionBottom.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanDimensionBottom.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, h - 20); + c.lineTo(w, h - 20); + c.moveTo(10, h - 15); + c.lineTo(0, h - 20); + c.lineTo(10, h - 25); + c.moveTo(w - 10, h - 15); + c.lineTo(w, h - 20); + c.lineTo(w - 10, h - 25); + c.moveTo(0, h - 15); + c.lineTo(0, 0); + c.moveTo(w, h - 15); + c.lineTo(w, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanDimensionBottom.prototype.cst.DIMENSION, mxFloorplanDimensionBottom); + +function mxFloorplanStairs(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxFloorplanStairs, mxShape); +mxFloorplanStairs.prototype.cst = { + STAIRS: 'mxgraph.floorplan.stairs' +}; + +mxFloorplanStairs.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var minW = Math.max(w, 50); + this.background(c, x, y, minW, h); +}; + +mxFloorplanStairs.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); + var step = 25; + c.setShadow(false); + c.begin(); + + for (var i = 25; i < w; i = i + step) { + c.moveTo(i, 0); + c.lineTo(i, h); + } + + c.stroke(); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.moveTo(w - step, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - step, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanStairs.prototype.cst.STAIRS, mxFloorplanStairs); + +function mxFloorplanStairsRest(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxFloorplanStairsRest, mxShape); +mxFloorplanStairsRest.prototype.cst = { + STAIRS: 'mxgraph.floorplan.stairsRest' +}; + +mxFloorplanStairsRest.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var minW = Math.max(w, 50, h); + var minH = Math.min(w, h); + this.background(c, x, y, minW, h); +}; + +mxFloorplanStairsRest.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); + var step = 25; + c.setShadow(false); + c.begin(); + + for (var i = 25; i < w - h * 0.5; i = i + step) { + c.moveTo(i, 0); + c.lineTo(i, h); + } + + c.stroke(); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.moveTo(w, 0); + c.lineTo(w - h * 0.5, h * 0.5); + c.lineTo(w, h); + c.moveTo(w - h * 0.5, 0); + c.lineTo(w - h * 0.5, h); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanStairsRest.prototype.cst.STAIRS, mxFloorplanStairsRest); + +function mxFloorplanDoorLeft(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxFloorplanDoorLeft, mxShape); +mxFloorplanDoorLeft.prototype.cst = { + DOOR_LEFT: 'mxgraph.floorplan.doorLeft' +}; + +mxFloorplanDoorLeft.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanDoorLeft.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, 5); + c.fillAndStroke(); + c.begin(); + c.moveTo(w, 5); + c.arcTo(w, w, 0, 0, 1, 0, 5 + w); + c.lineTo(0, 5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanDoorLeft.prototype.cst.DOOR_LEFT, mxFloorplanDoorLeft); + +function mxFloorplanDoorRight(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxFloorplanDoorRight, mxShape); +mxFloorplanDoorRight.prototype.cst = { + DOOR_RIGHT: 'mxgraph.floorplan.doorRight' +}; + +mxFloorplanDoorRight.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanDoorRight.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, 5); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, 5); + c.arcTo(w, w, 0, 0, 0, w, 5 + w); + c.lineTo(w, 5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanDoorRight.prototype.cst.DOOR_RIGHT, mxFloorplanDoorRight); + +function mxFloorplanDoorDouble(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxFloorplanDoorDouble, mxShape); +mxFloorplanDoorDouble.prototype.cst = { + DOOR_DOUBLE: 'mxgraph.floorplan.doorDouble' +}; + +mxFloorplanDoorDouble.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanDoorDouble.prototype.background = function (c, x, y, w, h) { + var halfW = w * 0.5; + c.rect(0, 0, w, 5); + c.fillAndStroke(); + c.begin(); + c.moveTo(halfW, 0); + c.lineTo(halfW, 5); + c.moveTo(halfW, 5); + c.arcTo(halfW, halfW, 0, 0, 1, 0, 5 + halfW); + c.lineTo(0, 5); + c.moveTo(halfW, 5); + c.arcTo(halfW, halfW, 0, 0, 0, w, 5 + halfW); + c.lineTo(w, 5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanDoorDouble.prototype.cst.DOOR_DOUBLE, mxFloorplanDoorDouble); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxFlowchart.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxFlowchart.js new file mode 100644 index 0000000000000..44a73c7558c66 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxFlowchart.js @@ -0,0 +1,55 @@ +"use strict"; + +function mxShapeFlowchartDocument2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.size = 0.5; +} + +; +mxUtils.extend(mxShapeFlowchartDocument2, mxActor); +mxShapeFlowchartDocument2.prototype.cst = { + DOCUMENT2: 'mxgraph.flowchart.document2' +}; +mxShapeFlowchartDocument2.prototype.customProperties = [{ + name: 'size', + dispName: 'Wave Size', + type: 'float', + min: 0, + max: 1, + defVal: 0.25 +}]; + +mxShapeFlowchartDocument2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = h * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var fy = 1.4; + var r = 5; + c.begin(); + c.moveTo(w - r, 0); + c.arcTo(r, r, 0, 0, 1, w, r); + c.lineTo(w, h - dy / 2); + c.quadTo(w * 3 / 4, h - dy * fy, w / 2, h - dy / 2); + c.quadTo(w / 4, h - dy * (1 - fy), 0, h - dy / 2); + c.lineTo(0, dy / 2); + c.lineTo(0, r); + c.arcTo(r, r, 0, 0, 1, r, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeFlowchartDocument2.prototype.cst.DOCUMENT2, mxShapeFlowchartDocument2); +mxShapeFlowchartDocument2.prototype.constraints = null; + +Graph.handleFactory[mxShapeFlowchartDocument2.prototype.cst.DOCUMENT2] = function (state) { + var handles = [Graph.createHandle(state, ['size'], function (bounds) { + var size = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'size', this.size)))); + return new mxPoint(bounds.x + 3 * bounds.width / 4, bounds.y + (1 - size) * bounds.height); + }, function (bounds, pt) { + this.state.style['size'] = Math.max(0, Math.min(1, (bounds.y + bounds.height - pt.y) / bounds.height)); + })]; + return handles; +}; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxGCP2.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxGCP2.js new file mode 100644 index 0000000000000..d06b9bc7edc11 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxGCP2.js @@ -0,0 +1,577 @@ +"use strict"; + +function mxShapeGCP2DoubleRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeGCP2DoubleRect, mxShape); +mxShapeGCP2DoubleRect.prototype.cst = { + SHAPE_DOUBLE_RECT: 'mxgraph.gcp2.doubleRect' +}; + +mxShapeGCP2DoubleRect.prototype.paintVertexShape = function (c, x, y, w, h) { + var dx = 8; + var dy = 8; + w = w - dx; + h = h - dy; + c.translate(x, y); + c.begin(); + c.roundrect(dx, dy, w, h, 1, 1); + c.fillAndStroke(); + c.roundrect(0, 0, w, h, 1, 1); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeGCP2DoubleRect.prototype.cst.SHAPE_DOUBLE_RECT, mxShapeGCP2DoubleRect); +mxShapeGCP2DoubleRect.prototype.constraints = mxRectangleShape.prototype.constraints; + +function mxShapeGCP2HexIcon(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeGCP2HexIcon, mxShape); +mxShapeGCP2HexIcon.prototype.cst = { + HEX_ICON: 'mxgraph.gcp2.hexIcon' +}; +mxShapeGCP2HexIcon.prototype.customProperties = [{ + name: 'instNum', + dispName: 'Number of instances', + type: 'int', + min: 0, + defVal: 0 +}, { + name: 'prType', + dispName: 'Instance Type', + defVal: 'standard', + type: 'enum', + enumList: [{ + val: 'standard', + dispName: 'Standard' + }, { + val: 'dynamic', + dispName: 'Dynamic' + }, { + val: 'multiple', + dispName: 'Multiple' + }, { + val: 'shared', + dispName: 'Shared' + }, { + val: 'replica', + dispName: 'Replica' + }, { + val: 'dynamic2', + dispName: 'Dynamic 2' + }, { + val: 'dynamic3', + dispName: 'Dynamic 3' + }, { + val: 'highmem', + dispName: 'High-Mem' + }, { + val: 'highcomp', + dispName: 'High-Comp' + }, { + val: 'backend', + dispName: 'Backend' + }, { + val: 'input', + dispName: 'Input' + }] +}, { + name: 'prIcon', + dispName: 'Instance Icon', + defVal: 'compute_engine', + type: 'enum', + enumList: [{ + val: 'compute_engine', + dispName: 'Compute Engine' + }, { + val: 'gpu', + dispName: 'GPU' + }, { + val: 'app_engine', + dispName: 'App Engine' + }, { + val: 'cloud_functions', + dispName: 'Cloud Functions' + }, { + val: 'container_engine', + dispName: 'Kubernetes Engine' + }, { + val: 'container_optimized_os', + dispName: 'Container-Optimized OS' + }, { + val: 'api_analytics', + dispName: 'API Analytics' + }, { + val: 'apigee_sense', + dispName: 'Apigee Sense' + }, { + val: 'api_monetization', + dispName: 'API Monetization' + }, { + val: 'cloud_endpoints', + dispName: 'Cloud Endpoints' + }, { + val: 'apigee_api_platform', + dispName: 'Apigee API Platform' + }, { + val: 'developer_portal', + dispName: 'Developer Portal' + }, { + val: 'cloud_iam', + dispName: 'Cloud IAM' + }, { + val: 'beyondcorp', + dispName: 'BeyondCorp' + }, { + val: 'cloud_iam', + dispName: 'Cloud Resource Manager' + }, { + val: 'data_loss_prevention_api', + dispName: 'Data Loss Prevention API' + }, { + val: 'cloud_security_scanner', + dispName: 'Cloud Security Scanner' + }, { + val: 'key_management_service', + dispName: 'Key Management Service' + }, { + val: 'identity_aware_proxy', + dispName: 'Identity-Aware Proxy' + }, { + val: 'security_key_enforcement', + dispName: 'Security Key Enforcement' + }, { + val: 'bigquery', + dispName: 'BigQuery' + }, { + val: 'cloud_datalab', + dispName: 'Cloud Datalab' + }, { + val: 'cloud_dataflow', + dispName: 'Cloud Dataflow' + }, { + val: 'cloud_pubsub', + dispName: 'Cloud Pub/Sub' + }, { + val: 'cloud_dataproc', + dispName: 'Cloud Dataproc' + }, { + val: 'genomics', + dispName: 'Genomics' + }, { + val: 'cloud_dataprep', + dispName: 'Cloud Dataprep' + }, { + val: 'data_studio', + dispName: 'Data Studio' + }, { + val: 'transfer_appliance', + dispName: 'Transfer Appliance' + }, { + val: 'cloud_machine_learning', + dispName: 'Cloud Machine Learning' + }, { + val: 'cloud_natural_language_api', + dispName: 'Cloud Natural Language API' + }, { + val: 'cloud_vision_api', + dispName: 'Vision API' + }, { + val: 'cloud_translation_api', + dispName: 'Translation API' + }, { + val: 'cloud_speech_api', + dispName: 'Speech API' + }, { + val: 'cloud_jobs_api', + dispName: 'Jobs API' + }, { + val: 'cloud_video_intelligence_api', + dispName: 'Cloud Video Intelligence API' + }, { + val: 'advanced_solutions_lab', + dispName: 'Advanced Solutions Lab' + }, { + val: 'cloud_iot_core', + dispName: 'Cloud IoT Core' + }, { + val: 'cloud_storage', + dispName: 'Cloud Storage' + }, { + val: 'cloud_sql', + dispName: 'Cloud SQL' + }, { + val: 'cloud_bigtable', + dispName: 'Cloud Bigtable' + }, { + val: 'cloud_spanner', + dispName: 'Cloud Spanner' + }, { + val: 'cloud_datastore', + dispName: 'Cloud Datastore' + }, { + val: 'persistent_disk', + dispName: 'Persistent Disk' + }, { + val: 'cloud_memorystore', + dispName: 'Cloud Memorystore' + }, { + val: 'cloud_filestore', + dispName: 'Cloud Filestore' + }, { + val: 'stackdriver', + dispName: 'Stackdriver' + }, { + val: 'cloud_deployment_manager', + dispName: 'Monitoring' + }, { + val: 'cloud_deployment_manager', + dispName: 'Deployment Manager' + }, { + val: 'logging', + dispName: 'Logging' + }, { + val: 'placeholder', + dispName: 'Cloud Console' + }, { + val: 'error_reporting', + dispName: 'Error Reporting' + }, { + val: 'placeholder', + dispName: 'Cloud Shell' + }, { + val: 'trace', + dispName: 'Trace' + }, { + val: 'placeholder', + dispName: 'Cloud Mobile App' + }, { + val: 'profiler', + dispName: 'Profiler' + }, { + val: 'placeholder', + dispName: 'Billing API' + }, { + val: 'cloud_apis', + dispName: 'Cloud APIs' + }, { + val: 'virtual_private_cloud', + dispName: 'Virtual Private Cloud' + }, { + val: 'dedicated_interconnect', + dispName: 'Dedicated Interconnect' + }, { + val: 'cloud_load_balancing', + dispName: 'Cloud Load Balancing' + }, { + val: 'cloud_dns', + dispName: 'Cloud DNS' + }, { + val: 'cloud_cdn', + dispName: 'Cloud CDN' + }, { + val: 'cloud_network', + dispName: 'Cloud Network' + }, { + val: 'cloud_external_ip_addresses', + dispName: 'Cloud External IP Addresses' + }, { + val: 'cloud_routes', + dispName: 'Cloud Routes' + }, { + val: 'cloud_firewall_rules', + dispName: 'Cloud Firewall Rules' + }, { + val: 'cloud_vpn', + dispName: 'Cloud VPN' + }, { + val: 'cloud_router', + dispName: 'Cloud Router' + }, { + val: 'cloud_armor', + dispName: 'Cloud Armor' + }, { + val: 'standard_network_tier', + dispName: 'Standard Network Tier' + }, { + val: 'premium_network_tier', + dispName: 'Premium Network Tier' + }, { + val: 'partner_interconnect', + dispName: 'Partner Interconnect' + }, { + val: 'placeholder', + dispName: 'Cloud SDK' + }, { + val: 'container_builder', + dispName: 'Cloud Build' + }, { + val: 'cloud_tools_for_powershell', + dispName: 'Cloud Tools for Visual Studio' + }, { + val: 'placeholder', + dispName: 'Cloud Source Repositories' + }, { + val: 'placeholder', + dispName: 'Maven App Engine Plugin' + }, { + val: 'placeholder', + dispName: 'Cloud Tools for Eclipse' + }, { + val: 'placeholder', + dispName: 'Cloud Tools for IntelliJ' + }, { + val: 'placeholder', + dispName: 'Cloud Test Lab' + }, { + val: 'cloud_tools_for_powershell', + dispName: 'Cloud Tools for PowerShell' + }, { + val: 'cloud_tools_for_powershell', + dispName: 'IDE Plugins' + }, { + val: 'container_registry', + dispName: 'Container Registry' + }, { + val: 'cloud_iot_edge', + dispName: 'Cloud IoT Edge' + }, { + val: 'cloud_firestore', + dispName: 'Cloud Firestore' + }, { + val: 'cloud_run', + dispName: 'Cloud Run' + }, { + val: 'gke_on_prem', + dispName: 'GKE-on-Prem' + }, { + val: 'cloud_data_catalog', + dispName: 'Cloud Data Catalog' + }, { + val: 'cloud_data_fusion', + dispName: 'Cloud Data Fusion' + }, { + val: 'ai_hub', + dispName: 'AI Hub' + }, { + val: 'automl_video_intelligence', + dispName: 'AutoML Video Intelligence' + }, { + val: 'automl_natural_language', + dispName: 'AutoML Natural Language' + }, { + val: 'automl_tables', + dispName: 'AutoML Tables' + }, { + val: 'automl_translation', + dispName: 'AutoML Translation' + }, { + val: 'automl_vision', + dispName: 'AutoML Vision' + }, { + val: 'recommendations_ai', + dispName: 'Recommendations AI' + }, { + val: 'cloud_inference_api', + dispName: 'Cloud Inference API' + }, { + val: 'cloud_service_mesh', + dispName: 'Cloud Service Mesh' + }, { + val: 'cloud_nat', + dispName: 'Cloud NAT' + }, { + val: 'traffic_director', + dispName: 'Traffic Director' + }, { + val: 'cloud_test_lab', + dispName: 'Cloud Test Lab' + }, { + val: 'cloud_code', + dispName: 'Cloud Code' + }, { + val: 'cloud_tasks', + dispName: 'Cloud Tasks' + }, { + val: 'placeholder', + dispName: 'Gradle App Engine Plugin' + }] +}]; + +mxShapeGCP2HexIcon.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var prIcon = mxUtils.getValue(this.state.style, 'prIcon', 'compute_engine'); + var prType = mxUtils.getValue(this.state.style, 'prType', ''); + var instNum = parseInt(mxUtils.getValue(this.state.style, 'instNum', 0)); + var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff'); + var opacity = mxUtils.getValue(this.state.style, 'opacity', '100'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', 'none'); + var strokeWidth = mxUtils.getValue(this.state.style, 'strokeWidth', 1); + var iconSize = Math.min(w, h); + + switch (prType) { + case 'dynamic': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_2'); + c.setAlpha(opacity * 0.5 / 100); + c.setStrokeColor('none'); + bgSt1.drawShape(c, this, w * 0.21, h * 0.12, w * 0.58, h * 0.76); + break; + + case 'multiple': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_2'); + c.setAlpha(opacity * 0.5 / 100); + c.setStrokeColor('none'); + bgSt1.drawShape(c, this, w * 0.21, h * 0.12, w * 0.58, h * 0.76); + var bgSt2 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_3'); + c.setAlpha(opacity * 0.7 / 100); + c.setStrokeColor('none'); + bgSt2.drawShape(c, this, w * 0.17, h * 0.13, w * 0.66, h * 0.74); + break; + + case 'shared': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_1'); + this.style[mxConstants.STYLE_STROKEWIDTH] = iconSize * 0.038; + c.setAlpha(opacity * 0.4 / 100); + c.setStrokeColor(fillColor); + c.setFillColor('none'); + bgSt1.drawShape(c, this, w * 0.02, h * 0, w * 0.96, h); + var bgSt2 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_2'); + c.setAlpha(opacity * 0.7 / 100); + bgSt2.drawShape(c, this, w * 0.14, h * 0.01, w * 0.72, h * 0.98); + c.setAlpha(opacity / 100); + c.setFillColor('#ffffff'); + bgSt1.drawShape(c, this, w * 0.13, h * 0.12, w * 0.74, h * 0.76); + this.style[mxConstants.STYLE_STROKEWIDTH] = strokeWidth; + break; + + case 'replica': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_1'); + this.style[mxConstants.STYLE_STROKEWIDTH] = iconSize * 0.038; + c.setAlpha(opacity * 0.4 / 100); + c.setStrokeColor(fillColor); + c.setFillColor('none'); + bgSt1.drawShape(c, this, w * 0.02, h * 0, w * 0.96, h); + c.setAlpha(opacity * 0.7 / 100); + bgSt1.drawShape(c, this, w * 0.075, h * 0.06, w * 0.85, h * 0.88); + c.setAlpha(opacity / 100); + c.setFillColor('#ffffff'); + bgSt1.drawShape(c, this, w * 0.13, h * 0.12, w * 0.74, h * 0.76); + this.style[mxConstants.STYLE_STROKEWIDTH] = strokeWidth; + break; + + case 'dynamic2': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_2'); + c.setAlpha(opacity * 0.5 / 100); + c.setStrokeColor('none'); + bgSt1.drawShape(c, this, w * 0.14, h * 0.01, w * 0.72, h * 0.98); + var bgSt2 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_1'); + this.style[mxConstants.STYLE_STROKEWIDTH] = iconSize * 0.01; + c.setStrokeColor(fillColor); + c.setAlpha(opacity / 100); + c.setFillColor('#ffffff'); + bgSt2.drawShape(c, this, w * 0.13, h * 0.12, w * 0.74, h * 0.76); + this.style[mxConstants.STYLE_STROKEWIDTH] = strokeWidth; + break; + + case 'dynamic3': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_2'); + c.setStrokeColor('none'); + bgSt1.drawShape(c, this, w * 0.14, h * 0.01, w * 0.72, h * 0.98); + var bgSt2 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_1'); + this.style[mxConstants.STYLE_STROKEWIDTH] = iconSize * 0.01; + c.setStrokeColor(fillColor); + c.setAlpha(opacity / 100); + c.setFillColor('#ffffff'); + bgSt2.drawShape(c, this, w * 0.13, h * 0.12, w * 0.74, h * 0.76); + this.style[mxConstants.STYLE_STROKEWIDTH] = strokeWidth; + break; + + case 'highmem': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_highmem'); + c.setAlpha(opacity * 0.5 / 100); + c.setStrokeColor('none'); + bgSt1.drawShape(c, this, 0, h * 0.56, w, h * 0.28); + break; + + case 'highcomp': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_highcomp'); + c.setAlpha(opacity * 0.5 / 100); + c.setStrokeColor('none'); + bgSt1.drawShape(c, this, 0, h * 0.16, w, h * 0.28); + break; + + case 'backend': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_1'); + c.setFillColor('#FCC64D'); + bgSt1.drawShape(c, this, w * 0.12, h * 0.11, w * 0.76, h * 0.78); + break; + + case 'input': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_1'); + c.setFillColor('#A5DA40'); + bgSt1.drawShape(c, this, w * 0.12, h * 0.11, w * 0.76, h * 0.78); + break; + + case 'standard': + default: + break; + } + + c.setAlpha(opacity / 100); + var stencil = mxStencilRegistry.getStencil('mxgraph.gcp2.' + prIcon); + + if (stencil != null) { + c.setFillColor(fillColor); + c.setStrokeColor('none'); + stencil.drawShape(c, this, w * 0.17, h * 0.16, w * 0.66, h * 0.68); + } + + if (instNum > 0) { + c.setFillColor('#ffffff'); + c.setStrokeColor('#ffffff'); + c.setStrokeWidth(iconSize * 0.038); + c.ellipse(w * 0.2, 0, w * 0.18, h * 0.22); + c.fillAndStroke(); + c.setAlpha(opacity * 0.5 / 100); + c.setStrokeColor(fillColor); + c.ellipse(w * 0.2, 0, w * 0.18, h * 0.22); + c.stroke(); + c.setAlpha(opacity / 100); + c.setFontColor('#4E6B89'); + c.setFontStyle(1); + c.setFontSize(Math.min(w, h) * 0.1); + c.text(w * 0.29, h * 0.11 + 1, 0, 0, instNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxShapeGCP2HexIcon.prototype.cst.HEX_ICON, mxShapeGCP2HexIcon); + +mxShapeGCP2HexIcon.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.825, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.175, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.16), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.84), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.66, 0.17), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.66, 0.83), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.34, 0.17), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.34, 0.83), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.33), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.67), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.33), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.67), false)); + return constr; +}; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxGmdl.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxGmdl.js new file mode 100644 index 0000000000000..4253a883f80d5 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxGmdl.js @@ -0,0 +1,749 @@ +"use strict"; + +function mxShapeGmdlPlayer(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeGmdlPlayer, mxShape); +mxShapeGmdlPlayer.prototype.cst = { + SHAPE_PLAYER: 'mxgraph.gmdl.player' +}; + +mxShapeGmdlPlayer.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.rect(0, 0, w, h); + c.fill(); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeGmdlPlayer.prototype.foreground = function (c, x, y, w, h) { + if (h >= 4) { + c.setFillColor('#FFED00'); + c.begin(); + c.rect(0, 0, w * 0.8, 4); + c.fill(); + } + + if (h >= 14 && w >= 33) { + c.setFillColor('#717171'); + c.begin(); + c.rect(w - 33, h * 0.5 - 7, 4, 14); + c.fill(); + c.begin(); + c.rect(w - 25, h * 0.5 - 7, 4, 14); + c.fill(); + } +}; + +mxCellRenderer.registerShape(mxShapeGmdlPlayer.prototype.cst.SHAPE_PLAYER, mxShapeGmdlPlayer); + +function mxShapeGmdlSwitch(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeGmdlSwitch, mxShape); +mxShapeGmdlSwitch.prototype.cst = { + SHAPE_SWITCH: 'mxgraph.gmdl.switch', + STATE: 'switchState', + STATE_ON: 'on', + STATE_OFF: 'off' +}; +mxShapeGmdlSwitch.prototype.customProperties = [{ + name: 'switchState', + dispName: 'State', + type: 'enum', + defVal: 'on', + enumList: [{ + val: 'on', + dispName: 'On' + }, { + val: 'off', + dispName: 'Off' + }] +}]; + +mxShapeGmdlSwitch.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var state = mxUtils.getValue(this.style, mxShapeGmdlSwitch.prototype.cst.STATE, mxShapeGmdlSwitch.prototype.cst.STATE_ON); + this.background(c, x, y, w, h, state); + c.setShadow(true); + this.foreground(c, x, y, w, h, state); +}; + +mxShapeGmdlSwitch.prototype.background = function (c, x, y, w, h, state) { + c.begin(); + + if (state === mxShapeGmdlSwitch.prototype.cst.STATE_ON) { + c.save(); + c.setAlpha('0.5'); + c.moveTo(w * 0.135, h * 0.8); + c.arcTo(w * 0.135, h * 0.3, 0, 0, 1, w * 0.135, h * 0.2); + c.lineTo(w * 0.675, h * 0.2); + c.arcTo(w * 0.135, h * 0.3, 0, 0, 1, w * 0.675, h * 0.8); + c.close(); + c.fillAndStroke(); + c.restore(); + } else { + c.setFillColor('#BCBBBB'); + c.moveTo(w * 0.225, h * 0.8); + c.arcTo(w * 0.135, h * 0.3, 0, 0, 1, w * 0.225, h * 0.2); + c.lineTo(w * 0.865, h * 0.2); + c.arcTo(w * 0.135, h * 0.3, 0, 0, 1, w * 0.865, h * 0.8); + c.close(); + c.fillAndStroke(); + } +}; + +mxShapeGmdlSwitch.prototype.foreground = function (c, x, y, w, h, state) { + c.begin(); + + if (state === mxShapeGmdlSwitch.prototype.cst.STATE_ON) { + c.ellipse(w * 0.36, 0, w * 0.64, h); + } else { + c.setFillColor('#F1F1F1'); + c.ellipse(0, 0, w * 0.64, h); + } + + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeGmdlSwitch.prototype.cst.SHAPE_SWITCH, mxShapeGmdlSwitch); + +function mxShapeGmdlMarginRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeGmdlMarginRect, mxShape); +mxShapeGmdlMarginRect.prototype.cst = { + SHAPE_MARGIN_RECT: 'mxgraph.gmdl.marginRect', + MARGIN: 'rectMargin', + MARGIN_TOP: 'rectMarginTop', + MARGIN_LEFT: 'rectMarginLeft', + MARGIN_BOTTOM: 'rectMarginBottom', + MARGIN_RIGHT: 'rectMarginRight' +}; +mxShapeGmdlMarginRect.prototype.customProperties = [{ + name: 'rectMargin', + dispName: 'Margin', + type: 'float', + min: 0, + defVal: 0 +}, { + name: 'rectMarginTop', + dispName: 'Margin Top', + type: 'float', + defVal: 0 +}, { + name: 'rectMarginLeft', + dispName: 'Margin Left', + type: 'float', + defVal: 0 +}, { + name: 'rectMarginBottom', + dispName: 'Margin Bottom', + type: 'float', + defVal: 0 +}, { + name: 'rectMarginRight', + dispName: 'Margin Right', + type: 'float', + defVal: 0 +}]; + +mxShapeGmdlMarginRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeGmdlMarginRect.prototype.background = function (c, x, y, w, h, state) { + var margin = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlMarginRect.prototype.cst.MARGIN, '0')); + var marginTop = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlMarginRect.prototype.cst.MARGIN_TOP, '0')); + var marginLeft = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlMarginRect.prototype.cst.MARGIN_LEFT, '0')); + var marginBottom = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlMarginRect.prototype.cst.MARGIN_BOTTOM, '0')); + var marginRight = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlMarginRect.prototype.cst.MARGIN_RIGHT, '0')); + var x1 = margin + marginLeft; + var y1 = margin + marginTop; + var w1 = w - marginRight - x1 - margin; + var h1 = h - marginBottom - y1 - margin; + + if (w1 > 0 && h1 > 0) { + c.begin(); + c.rect(x1, y1, w1, h1); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeGmdlMarginRect.prototype.cst.SHAPE_MARGIN_RECT, mxShapeGmdlMarginRect); + +function mxShapeGmdlSliderNormal(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeGmdlSliderNormal, mxShape); +mxShapeGmdlSliderNormal.prototype.cst = { + SHAPE_SLIDER_NORMAL: 'mxgraph.gmdl.sliderNormal', + HANDLE_SIZE: 'handleSize' +}; +mxShapeGmdlSliderNormal.prototype.customProperties = [{ + name: 'handleSize', + dispName: 'Handle Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeGmdlSliderNormal.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeGmdlSliderNormal.prototype.background = function (c, x, y, w, h) { + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderNormal.prototype.cst.HANDLE_SIZE, '10')); + c.ellipse(0, h * 0.5 - hSize * 0.5, hSize, hSize); + c.stroke(); + c.begin(); + c.moveTo(hSize, h * 0.5); + c.lineTo(w, h * 0.5); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeGmdlSliderNormal.prototype.cst.SHAPE_SLIDER_NORMAL, mxShapeGmdlSliderNormal); + +function mxShapeGmdlSlider2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeGmdlSlider2, mxShape); +mxShapeGmdlSlider2.prototype.cst = { + SHAPE_SLIDER: 'mxgraph.gmdl.slider2', + BAR_POS: 'barPos', + HANDLE_SIZE: 'handleSize' +}; +mxShapeGmdlSlider2.prototype.customProperties = [{ + name: 'barPos', + dispName: 'Handle Position', + type: 'float', + min: 0, + defVal: 40 +}, { + name: 'handleSize', + dispName: 'Handle Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeGmdlSlider2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeGmdlSlider2.prototype.background = function (c, x, y, w, h) { + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSlider2.prototype.cst.HANDLE_SIZE, '10')); + var barPos = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSlider2.prototype.cst.BAR_POS, '40')) / 100; + barPos = Math.max(0, Math.min(1, barPos)); + c.save(); + c.setStrokeColor('#bbbbbb'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.fillAndStroke(); + c.restore(); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(barPos * w, h * 0.5); + c.fillAndStroke(); + c.begin(); + c.ellipse(barPos * w - hSize * 0.5, h * 0.5 - hSize * 0.5, hSize, hSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeGmdlSlider2.prototype.cst.SHAPE_SLIDER, mxShapeGmdlSlider2); +mxShapeGmdlSlider2.prototype.constraints = null; + +Graph.handleFactory[mxShapeGmdlSlider2.prototype.cst.SHAPE_SLIDER] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + return handles; +}; + +function mxShapeGmdlSliderFocused(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeGmdlSliderFocused, mxShape); +mxShapeGmdlSliderFocused.prototype.cst = { + SHAPE_SLIDER_FOCUSED: 'mxgraph.gmdl.sliderFocused', + BAR_POS: 'barPos', + HANDLE_SIZE: 'handleSize' +}; +mxShapeGmdlSliderFocused.prototype.customProperties = [{ + name: 'barPos', + dispName: 'Handle Position', + type: 'float', + min: 0, + defVal: 40 +}, { + name: 'handleSize', + dispName: 'Handle Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeGmdlSliderFocused.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeGmdlSliderFocused.prototype.background = function (c, x, y, w, h) { + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderFocused.prototype.cst.HANDLE_SIZE, '10')); + var barPos = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderFocused.prototype.cst.BAR_POS, '40')) / 100; + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#ffffff'); + barPos = Math.max(0, Math.min(1, barPos)); + c.save(); + c.setStrokeColor('#bbbbbb'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.fillAndStroke(); + c.restore(); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(barPos * w, h * 0.5); + c.fillAndStroke(); + c.begin(); + c.ellipse(barPos * w - hSize * 0.167, h * 0.5 - hSize * 0.167, hSize * 0.33, hSize * 0.33); + c.fillAndStroke(); + c.setFillColor(strokeColor); + c.setAlpha(0.15); + c.begin(); + c.ellipse(barPos * w - hSize * 0.5, h * 0.5 - hSize * 0.5, hSize, hSize); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeGmdlSliderFocused.prototype.cst.SHAPE_SLIDER_FOCUSED, mxShapeGmdlSliderFocused); +mxShapeGmdlSliderFocused.prototype.constraints = null; + +Graph.handleFactory[mxShapeGmdlSliderFocused.prototype.cst.SHAPE_SLIDER_FOCUSED] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + return handles; +}; + +function mxShapeGmdlSliderDisabled(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeGmdlSliderDisabled, mxShape); +mxShapeGmdlSliderDisabled.prototype.cst = { + SHAPE_SLIDER_DISABLED: 'mxgraph.gmdl.sliderDisabled', + HANDLE_POSITION: 'hPos', + HANDLE_SIZE: 'handleSize' +}; +mxShapeGmdlSliderDisabled.prototype.customProperties = [{ + name: 'hPos', + dispName: 'Handle Position', + type: 'float', + min: 0, + defVal: 40 +}, { + name: 'handleSize', + dispName: 'Handle Size', + type: 'float', + min: 0, + defVal: 10 +}]; + +mxShapeGmdlSliderDisabled.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeGmdlSliderDisabled.prototype.background = function (c, x, y, w, h) { + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDisabled.prototype.cst.HANDLE_SIZE, '10')); + var hPos = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDisabled.prototype.cst.HANDLE_POSITION, '50')) / 100; + hPos = Math.max(hPos, 0); + hPos = Math.min(hPos, 1); + c.ellipse(w * hPos - hSize * 0.5, (h - hSize) * 0.5, hSize, hSize); + c.fillAndStroke(); + var endL = w * hPos - 7; + var startR = w * hPos + 7; + + if (endL > 0) { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(endL, h * 0.5); + c.stroke(); + } + + if (startR < w) { + c.begin(); + c.moveTo(startR, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeGmdlSliderDisabled.prototype.cst.SHAPE_SLIDER_DISABLED, mxShapeGmdlSliderDisabled); + +function mxShapeGmdlSliderDisabled2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeGmdlSliderDisabled2, mxShape); +mxShapeGmdlSliderDisabled2.prototype.cst = { + SHAPE_SLIDER_DISABLED: 'mxgraph.gmdl.sliderDisabled2', + HANDLE_POSITION: 'hPos', + HANDLE_SIZE: 'handleSize' +}; +mxShapeGmdlSliderDisabled2.prototype.customProperties = [{ + name: 'hPos', + dispName: 'Handle Position', + type: 'float', + min: 0, + defVal: '40' +}, { + name: 'handleSize', + dispName: 'Handle Size', + type: 'float', + min: 0, + defVal: '10' +}]; + +mxShapeGmdlSliderDisabled2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeGmdlSliderDisabled2.prototype.background = function (c, x, y, w, h) { + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDisabled2.prototype.cst.HANDLE_SIZE, '10')); + var hPos = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDisabled2.prototype.cst.HANDLE_POSITION, '50')) / 100; + hPos = Math.min(Math.max(hPos, 0), 1); + c.ellipse(w * hPos - hSize * 0.5, (h - hSize) * 0.5, hSize, hSize); + c.fillAndStroke(); + var endL = w * hPos - 7; + var startR = w * hPos + 7; + + if (endL > 0) { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(endL, h * 0.5); + c.stroke(); + } + + if (startR < w) { + c.begin(); + c.moveTo(startR, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeGmdlSliderDisabled2.prototype.cst.SHAPE_SLIDER_DISABLED, mxShapeGmdlSliderDisabled2); +mxShapeGmdlSlider2.prototype.constraints = null; + +Graph.handleFactory[mxShapeGmdlSliderDisabled2.prototype.cst.SHAPE_SLIDER_DISABLED] = function (state) { + var handles = [Graph.createHandle(state, ['hPos'], function (bounds) { + var hPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'hPos', 0.4)))); + return new mxPoint(bounds.x + hPos * bounds.width / 100, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['hPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + return handles; +}; + +function mxShapeGmdlSliderDiscrete(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeGmdlSliderDiscrete, mxShape); +mxShapeGmdlSliderDiscrete.prototype.cst = { + SHAPE_DISCRETE: 'mxgraph.gmdl.sliderDiscrete', + BAR_POS: 'barPos', + HANDLE_SIZE: 'handleSize' +}; +mxShapeGmdlSliderDiscrete.prototype.customProperties = [{ + name: 'barPos', + dispName: 'Handle Position', + type: 'int', + min: 0, + defVal: '40' +}, { + name: 'handleSize', + dispName: 'Handle Size', + type: 'float', + min: 0, + defVal: '10' +}]; + +mxShapeGmdlSliderDiscrete.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeGmdlSliderDiscrete.prototype.background = function (c, x, y, w, h) { + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDiscrete.prototype.cst.HANDLE_SIZE, '10')); + var barPos = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDiscrete.prototype.cst.BAR_POS, '40')) / 100; + var fontSize = parseFloat(mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '12')); + var fontColor = mxUtils.getValue(this.style, mxConstants.STYLE_FONTCOLOR, '#000000'); + barPos = Math.max(0, Math.min(1, barPos)); + c.save(); + c.setStrokeColor('#bbbbbb'); + c.begin(); + c.moveTo(0, h * 0.5 + 22.5); + c.lineTo(w, h * 0.5 + 22.5); + c.fillAndStroke(); + c.restore(); + c.begin(); + c.moveTo(0, h * 0.5 + 22.5); + c.lineTo(barPos * w, h * 0.5 + 22.5); + c.fillAndStroke(); + c.begin(); + c.moveTo(barPos * w, h * 0.5 + 15.5); + c.lineTo(barPos * w - 10.5, h * 0.5 + 2.5); + c.arcTo(15, 15, 0, 0, 1, barPos * w, h * 0.5 - 22.5); + c.arcTo(15, 15, 0, 0, 1, barPos * w + 10.5, h * 0.5 + 2.5); + c.close(); + c.fillAndStroke(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + var p = Math.round(barPos * 100); + c.text(barPos * w, h * 0.5 - 9, 0, 0, p.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeGmdlSliderDiscrete.prototype.cst.SHAPE_DISCRETE, mxShapeGmdlSliderDiscrete); +mxShapeGmdlSliderDiscrete.prototype.constraints = null; + +Graph.handleFactory[mxShapeGmdlSliderDiscrete.prototype.cst.SHAPE_DISCRETE] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2 + 22.5); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + return handles; +}; + +function mxShapeGmdlSliderDiscreteDots(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeGmdlSliderDiscreteDots, mxShape); +mxShapeGmdlSliderDiscreteDots.prototype.cst = { + SHAPE_DISCRETE_DOTS: 'mxgraph.gmdl.sliderDiscreteDots', + BAR_POS: 'barPos', + HANDLE_SIZE: 'handleSize' +}; +mxShapeGmdlSliderDiscreteDots.prototype.customProperties = [{ + name: 'barPos', + dispName: 'Handle Position', + type: 'int', + min: 0, + defVal: '40' +}, { + name: 'handleSize', + dispName: 'Handle Size', + type: 'float', + min: 0, + defVal: '10' +}]; + +mxShapeGmdlSliderDiscreteDots.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeGmdlSliderDiscreteDots.prototype.background = function (c, x, y, w, h) { + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDiscreteDots.prototype.cst.HANDLE_SIZE, '10')); + var barPos = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDiscreteDots.prototype.cst.BAR_POS, '40')) / 100; + var fontSize = parseFloat(mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '12')); + var fontColor = mxUtils.getValue(this.style, mxConstants.STYLE_FONTCOLOR, '#000000'); + var bright = mxUtils.getValue(this.style, 'bright', '1'); + barPos = Math.max(0, Math.min(1, barPos)); + c.save(); + c.setStrokeColor('#bebebe'); + c.begin(); + c.moveTo(0, h * 0.5 + 22.5); + c.lineTo(w, h * 0.5 + 22.5); + c.fillAndStroke(); + c.restore(); + + if (barPos <= 0.1) { + c.setFillColor('#bebebe'); + } + + c.begin(); + c.moveTo(0, h * 0.5 + 22.5); + c.lineTo(barPos * w, h * 0.5 + 22.5); + c.fillAndStroke(); + c.begin(); + c.moveTo(barPos * w, h * 0.5 + 15.5); + c.lineTo(barPos * w - 10.5, h * 0.5 + 2.5); + c.arcTo(15, 15, 0, 0, 1, barPos * w, h * 0.5 - 22.5); + c.arcTo(15, 15, 0, 0, 1, barPos * w + 10.5, h * 0.5 + 2.5); + c.close(); + c.fill(); + + if (bright == '1') { + c.setFillColor('#000000'); + } else { + c.setFillColor('#ffffff'); + } + + c.ellipse(-1.5, h * 0.5 + 21, 3, 3); + c.fill(); + c.ellipse(w * 0.2 - 1.5, h * 0.5 + 21, 3, 3); + c.fill(); + c.ellipse(w * 0.4 - 1.5, h * 0.5 + 21, 3, 3); + c.fill(); + c.ellipse(w * 0.6 - 1.5, h * 0.5 + 21, 3, 3); + c.fill(); + c.ellipse(w * 0.8 - 1.5, h * 0.5 + 21, 3, 3); + c.fill(); + c.ellipse(w - 1.5, h * 0.5 + 21, 3, 3); + c.fill(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + var p = Math.round(barPos * 100); + c.text(barPos * w, h * 0.5 - 9, 0, 0, p.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeGmdlSliderDiscreteDots.prototype.cst.SHAPE_DISCRETE_DOTS, mxShapeGmdlSliderDiscreteDots); +mxShapeGmdlSliderDiscreteDots.prototype.constraints = null; + +Graph.handleFactory[mxShapeGmdlSliderDiscreteDots.prototype.cst.SHAPE_DISCRETE_DOTS] = function (state) { + var handles = [Graph.createHandle(state, ['barPos'], function (bounds) { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2 + 22.5); + }, function (bounds, pt) { + this.state.style['barPos'] = Math.round(0.05 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 0.05; + })]; + return handles; +}; + +function mxShapeGmdlProgressBar(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx1 = 0.8; +} + +; +mxUtils.extend(mxShapeGmdlProgressBar, mxShape); +mxShapeGmdlProgressBar.prototype.cst = { + PROGRESS_BAR: 'mxgraph.gmdl.progressBar' +}; +mxShapeGmdlProgressBar.prototype.customProperties = [{ + name: 'dx1', + dispName: 'Handle Position', + type: 'int', + min: 0, + defVal: 0.8 +}]; + +mxShapeGmdlProgressBar.prototype.paintVertexShape = function (c, x, y, w, h) { + var dx1 = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + c.translate(x, y); + c.save(); + c.setStrokeColor('#aaaaaa'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + c.restore(); + c.setShadow(false); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(dx1, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeGmdlProgressBar.prototype.cst.PROGRESS_BAR, mxShapeGmdlProgressBar); +mxShapeGmdlProgressBar.prototype.constraints = null; + +Graph.handleFactory[mxShapeGmdlProgressBar.prototype.cst.PROGRESS_BAR] = function (state) { + var handles = [Graph.createHandle(state, ['dx1'], function (bounds) { + var dx1 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + return new mxPoint(bounds.x + dx1 * bounds.width, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['dx2'], function (bounds) { + var dx2 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx1)))); + return new mxPoint(bounds.x + dx2 * bounds.width, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + }); + handles.push(handle2); + return handles; +}; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxInfographic.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxInfographic.js new file mode 100644 index 0000000000000..b53b39b354b9d --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxInfographic.js @@ -0,0 +1,2134 @@ +"use strict"; + +function mxShapeInfographicNumEntryVert(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; +} + +; +mxUtils.extend(mxShapeInfographicNumEntryVert, mxActor); +mxShapeInfographicNumEntryVert.prototype.cst = { + NUM_ENTRY_VERT: 'mxgraph.infographic.numberedEntryVert' +}; +mxShapeInfographicNumEntryVert.prototype.customProperties = [{ + name: 'dy', + dispName: 'Circle Size', + min: 0, + defVal: 25 +}]; + +mxShapeInfographicNumEntryVert.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var inset = 5; + var d = Math.min(dy, w - 2 * inset, h - inset); + c.ellipse(w * 0.5 - d * 0.5, 0, d, d); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, d * 0.5); + c.lineTo(w * 0.5 - d * 0.5 - inset, d * 0.5); + c.arcTo(d * 0.5 + inset, d * 0.5 + inset, 0, 0, 0, w * 0.5 + d * 0.5 + inset, d * 0.5); + c.lineTo(w, d * 0.5); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicNumEntryVert.prototype.cst.NUM_ENTRY_VERT, mxShapeInfographicNumEntryVert); + +Graph.handleFactory[mxShapeInfographicNumEntryVert.prototype.cst.NUM_ENTRY_VERT] = function (state) { + var handles = [Graph.createHandle(state, ['dy'], function (bounds) { + var dy = Math.max(0, Math.min(bounds.width, bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width / 2, bounds.y + dy); + }, function (bounds, pt) { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height, bounds.width, pt.y - bounds.y))) / 100; + })]; + return handles; +}; + +mxShapeInfographicNumEntryVert.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var inset = 5; + var d = Math.min(dy, w - 2 * inset, h - inset); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, d * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, d * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 0, d * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, 0, d * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + return constr; +}; + +function mxShapeInfographicBendingArch(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.startAngle = 0.25; + this.endAngle = 0.75; + this.arcWidth = 0.5; +} + +; +mxUtils.extend(mxShapeInfographicBendingArch, mxActor); +mxShapeInfographicBendingArch.prototype.cst = { + BENDING_ARCH: 'mxgraph.infographic.bendingArch' +}; +mxShapeInfographicBendingArch.prototype.customProperties = [{ + name: 'startAngle', + dispName: 'Start Angle', + min: 0, + max: 1, + defVal: 0.75 +}, { + name: 'endAngle', + dispName: 'End Angle', + min: 0, + max: 1, + defVal: 0.25 +}, { + name: 'arcWidth', + dispName: 'Arc Width', + min: 0, + max: 1, + defVal: 0.25 +}]; + +mxShapeInfographicBendingArch.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'startAngle', this.startAngle)))); + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'endAngle', this.endAngle)))); + var arcWidth = 1 - Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arcWidth', this.arcWidth)))); + var rx = w * 0.5; + var ry = h * 0.5; + var rx2 = rx * arcWidth; + var ry2 = ry * arcWidth; + var startX = rx + Math.sin(startAngle) * rx; + var startY = ry - Math.cos(startAngle) * ry; + var innerStartX = rx + Math.sin(startAngle) * rx2; + var innerStartY = ry - Math.cos(startAngle) * ry2; + var endX = rx + Math.sin(endAngle) * rx; + var endY = ry - Math.cos(endAngle) * ry; + var innerEndX = rx + Math.sin(endAngle) * rx2; + var innerEndY = ry - Math.cos(endAngle) * ry2; + var angDiff = endAngle - startAngle; + + if (angDiff < 0) { + angDiff = angDiff + Math.PI * 2; + } + + var bigArc = 0; + + if (angDiff > Math.PI) { + bigArc = 1; + } + + var rx3 = rx2 - 5; + var ry3 = ry2 - 5; + c.ellipse(w * 0.5 - rx3, h * 0.5 - ry3, 2 * rx3, 2 * ry3); + c.fillAndStroke(); + c.begin(); + c.moveTo(startX, startY); + c.arcTo(rx, ry, 0, bigArc, 1, endX, endY); + c.lineTo(innerEndX, innerEndY); + c.arcTo(rx2, ry2, 0, bigArc, 0, innerStartX, innerStartY); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicBendingArch.prototype.cst.BENDING_ARCH, mxShapeInfographicBendingArch); +mxShapeInfographicBendingArch.prototype.constraints = null; + +Graph.handleFactory[mxShapeInfographicBendingArch.prototype.cst.BENDING_ARCH] = function (state) { + var handles = [Graph.createHandle(state, ['startAngle'], function (bounds) { + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'startAngle', this.startAngle)))); + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(startAngle) * bounds.height * 0.5); + }, function (bounds, pt) { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) { + res = 1 + res; + } + + this.state.style['startAngle'] = res; + })]; + var handle2 = Graph.createHandle(state, ['endAngle'], function (bounds) { + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'endAngle', this.endAngle)))); + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(endAngle) * bounds.height * 0.5); + }, function (bounds, pt) { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) { + res = 1 + res; + } + + this.state.style['endAngle'] = res; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['arcWidth'], function (bounds) { + var arcWidth = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'arcWidth', this.arcWidth)))); + return new mxPoint(bounds.x + bounds.width / 2, bounds.y + arcWidth * bounds.height * 0.5); + }, function (bounds, pt) { + this.state.style['arcWidth'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, (pt.y - bounds.y) / (bounds.height * 0.5)))) / 100; + }); + handles.push(handle3); + return handles; +}; + +function mxShapeInfographicParallelogram(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 10; +} + +; +mxUtils.extend(mxShapeInfographicParallelogram, mxActor); +mxShapeInfographicParallelogram.prototype.cst = { + PARALLELOGRAM: 'mxgraph.infographic.parallelogram' +}; +mxShapeInfographicParallelogram.prototype.customProperties = [{ + name: 'dx', + dispName: 'Angle', + min: 0, + defVal: 15 +}]; + +mxShapeInfographicParallelogram.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w * 0.5, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + c.begin(); + c.moveTo(0, h); + c.lineTo(2 * dx, 0); + c.lineTo(w, 0); + c.lineTo(w - 2 * dx, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicParallelogram.prototype.cst.PARALLELOGRAM, mxShapeInfographicParallelogram); + +Graph.handleFactory[mxShapeInfographicParallelogram.prototype.cst.PARALLELOGRAM] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + dx, bounds.y + bounds.height / 2); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +mxShapeInfographicParallelogram.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w * 0.5, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var w2 = w - 2 * dx; + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2 * dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2 * dx + w2 * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 2 * dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 * 0.5, h)); + return constr; +}; + +function mxShapeInfographicRibbonRolled(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 185; + this.dy = 15; +} + +; +mxUtils.extend(mxShapeInfographicRibbonRolled, mxActor); +mxShapeInfographicRibbonRolled.prototype.cst = { + RIBBON_ROLLED: 'mxgraph.infographic.ribbonRolled' +}; +mxShapeInfographicRibbonRolled.prototype.customProperties = [{ + name: 'dx', + dispName: 'Roll Length', + min: 0, + defVal: 185 +}, { + name: 'dy', + dispName: 'Ribbon Width', + min: 0, + defVal: 15 +}]; + +mxShapeInfographicRibbonRolled.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w, h - dy); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(0, h - dy); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.close(); + c.moveTo(w, h - dy); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.close(); + c.fill(); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w, h - dy); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(0, h - dy); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicRibbonRolled.prototype.cst.RIBBON_ROLLED, mxShapeInfographicRibbonRolled); + +Graph.handleFactory[mxShapeInfographicRibbonRolled.prototype.cst.RIBBON_ROLLED] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + dx, bounds.y + dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + })]; + return handles; +}; + +mxShapeInfographicRibbonRolled.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var h2 = h - dy; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h2)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, h2)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, h2)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, h2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, 0, -dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + return constr; +}; + +function mxShapeInfographicRibbonDoubleFolded(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 25; + this.dy = 15; +} + +; +mxUtils.extend(mxShapeInfographicRibbonDoubleFolded, mxActor); +mxShapeInfographicRibbonDoubleFolded.prototype.cst = { + RIBBON_DOUBLE_FOLDED: 'mxgraph.infographic.ribbonDoubleFolded' +}; +mxShapeInfographicRibbonDoubleFolded.prototype.customProperties = [{ + name: 'dx', + dispName: 'Fold Length', + min: 0, + defVal: 25 +}, { + name: 'dy', + dispName: 'Ribbon Width', + min: 0, + defVal: 15 +}]; + +mxShapeInfographicRibbonDoubleFolded.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w, h - dy); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(0, h - dy); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, h - 2 * dy); + c.lineTo(0, h - dy); + c.close(); + c.moveTo(w, h - dy); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.close(); + c.fill(); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w, h - dy); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(0, h - dy); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicRibbonDoubleFolded.prototype.cst.RIBBON_DOUBLE_FOLDED, mxShapeInfographicRibbonDoubleFolded); + +Graph.handleFactory[mxShapeInfographicRibbonDoubleFolded.prototype.cst.RIBBON_DOUBLE_FOLDED] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + dx, bounds.y + dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + })]; + return handles; +}; + +mxShapeInfographicRibbonDoubleFolded.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + return constr; +}; + +function mxShapeInfographicRibbonFrontFolded(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; + this.dy = 0.5; + this.notch = 0.5; +} + +; +mxUtils.extend(mxShapeInfographicRibbonFrontFolded, mxActor); +mxShapeInfographicRibbonFrontFolded.prototype.cst = { + RIBBON_FRONT_FOLDED: 'mxgraph.infographic.ribbonFrontFolded' +}; +mxShapeInfographicRibbonFrontFolded.prototype.customProperties = [{ + name: 'dx', + dispName: 'Fold Length', + min: 0, + defVal: 25 +}, { + name: 'dy', + dispName: 'Ribbon Width', + min: 0, + defVal: 15 +}, { + name: 'notch', + dispName: 'Notch', + min: 0, + defVal: 15 +}]; + +mxShapeInfographicRibbonFrontFolded.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w - dx, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w - notch, (h - dy) / 2 + dy); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, h - dy); + c.lineTo(0, h); + c.close(); + c.fill(); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w - notch, (h - dy) / 2 + dy); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicRibbonFrontFolded.prototype.cst.RIBBON_FRONT_FOLDED, mxShapeInfographicRibbonFrontFolded); + +Graph.handleFactory[mxShapeInfographicRibbonFrontFolded.prototype.cst.RIBBON_FRONT_FOLDED] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + dx, bounds.y + dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + bounds.width - notch, bounds.y + dy + (bounds.height - dy) * 0.5); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width, bounds.width + bounds.x - pt.x))) / 100; + }); + handles.push(handle2); + return handles; +}; + +mxShapeInfographicRibbonFrontFolded.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w - dx, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - notch, (h + dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h + dy) * 0.5)); + return constr; +}; + +function mxShapeInfographicRibbonBackFolded(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; + this.dy = 0.5; + this.notch = 0.5; +} + +; +mxUtils.extend(mxShapeInfographicRibbonBackFolded, mxActor); +mxShapeInfographicRibbonBackFolded.prototype.cst = { + RIBBON_BACK_FOLDED: 'mxgraph.infographic.ribbonBackFolded' +}; +mxShapeInfographicRibbonBackFolded.prototype.customProperties = [{ + name: 'dx', + dispName: 'Fold Length', + min: 0, + defVal: 25 +}, { + name: 'dy', + dispName: 'Ribbon Width', + min: 0, + defVal: 15 +}, { + name: 'notch', + dispName: 'Notch', + min: 0, + defVal: 15 +}]; + +mxShapeInfographicRibbonBackFolded.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w - dx, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w - notch, (h - dy) / 2 + dy); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.close(); + c.fill(); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w - notch, (h - dy) / 2 + dy); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicRibbonBackFolded.prototype.cst.RIBBON_BACK_FOLDED, mxShapeInfographicRibbonBackFolded); + +Graph.handleFactory[mxShapeInfographicRibbonBackFolded.prototype.cst.RIBBON_BACK_FOLDED] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + dx, bounds.y + dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + bounds.width - notch, bounds.y + dy + (bounds.height - dy) * 0.5); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width, bounds.width + bounds.x - pt.x))) / 100; + }); + handles.push(handle2); + return handles; +}; + +mxShapeInfographicRibbonBackFolded.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w - dx, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - notch, (h + dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h + dy) * 0.5)); + return constr; +}; + +function mxShapeInfographicBanner(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; + this.dy = 0.5; + this.notch = 0.5; +} + +; +mxUtils.extend(mxShapeInfographicBanner, mxActor); +mxShapeInfographicBanner.prototype.cst = { + BANNER: 'mxgraph.infographic.banner' +}; +mxShapeInfographicBanner.prototype.customProperties = [{ + name: 'dx', + dispName: 'Fold Length', + min: 0, + defVal: 25 +}, { + name: 'dy', + dispName: 'Ribbon Width', + min: 0, + defVal: 15 +}, { + name: 'notch', + dispName: 'Notch', + min: 0, + defVal: 15 +}]; + +mxShapeInfographicBanner.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w / 2, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + dx = Math.min(w / 2 - 2 * dy, dx); + notch = Math.min(dx, notch); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, dy); + c.lineTo(dx, 0); + c.lineTo(w - dx, 0); + c.lineTo(w - dx, dy); + c.lineTo(w, dy); + c.lineTo(w - notch, (h - dy) * 0.5 + dy); + c.lineTo(w, h); + c.lineTo(w - dx - 2 * dy, h); + c.lineTo(w - dx - 2 * dy, h - dy); + c.lineTo(dx + 2 * dy, h - dy); + c.lineTo(dx + 2 * dy, h); + c.lineTo(0, h); + c.lineTo(notch, (h - dy) * 0.5 + dy); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, dy); + c.lineTo(dx, h - dy); + c.lineTo(dx + 2 * dy, h); + c.lineTo(0, h); + c.lineTo(notch, (h - dy) * 0.5 + dy); + c.close(); + c.moveTo(w, dy); + c.lineTo(w - dx, dy); + c.lineTo(w - dx, h - dy); + c.lineTo(w - dx - 2 * dy, h); + c.lineTo(w, h); + c.lineTo(w - notch, (h - dy) * 0.5 + dy); + c.close(); + c.fill(); + c.setFillAlpha('0.4'); + c.begin(); + c.moveTo(dx, h - dy); + c.lineTo(dx + 2 * dy, h - dy); + c.lineTo(dx + 2 * dy, h); + c.close(); + c.moveTo(w - dx, h - dy); + c.lineTo(w - dx - 2 * dy, h - dy); + c.lineTo(w - dx - 2 * dy, h); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicBanner.prototype.cst.BANNER, mxShapeInfographicBanner); + +Graph.handleFactory[mxShapeInfographicBanner.prototype.cst.BANNER] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2, bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(dx, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + bounds.width - notch, bounds.y + dy + (bounds.height - dy) * 0.5); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width, bounds.width + bounds.x - pt.x))) / 100; + }); + handles.push(handle2); + return handles; +}; + +mxShapeInfographicBanner.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w / 2, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + dx = Math.min(w / 2 - 2 * dy, dx); + notch = Math.min(dx, notch); + var w2 = w - 2 * dx; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2 * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2 * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2 * 0.75, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2 * 0.75, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2 * 0.5, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2 * 0.25, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, notch, (h + dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - notch, (h + dy) * 0.5)); + return constr; +}; + +function mxShapeInfographicCircularCallout(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; +} + +; +mxUtils.extend(mxShapeInfographicCircularCallout, mxActor); +mxShapeInfographicCircularCallout.prototype.cst = { + CIRCULAR_CALLOUT: 'mxgraph.infographic.circularCallout' +}; +mxShapeInfographicCircularCallout.prototype.customProperties = [{ + name: 'dy', + dispName: 'Ribbon Width', + min: 0, + defVal: 15 +}]; + +mxShapeInfographicCircularCallout.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var rx = Math.max(0, Math.min(w * 0.5, w * 0.5 - dy)); + var ry = Math.max(0, Math.min(h * 0.5, h * 0.5 - dy)); + c.begin(); + c.moveTo(w, h * 0.5); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, w * 0.5, h); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, 0, h * 0.5); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, w * 0.5, 0); + c.lineTo(w, 0); + c.close(); + c.moveTo(w * 0.5, dy); + c.arcTo(rx, ry, 0, 0, 0, w * 0.5 - rx, h * 0.5); + c.arcTo(rx, ry, 0, 0, 0, w * 0.5, h * 0.5 + ry); + c.arcTo(rx, ry, 0, 0, 0, w * 0.5 + rx, h * 0.5); + c.arcTo(rx, ry, 0, 0, 0, w * 0.5, h * 0.5 - ry); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicCircularCallout.prototype.cst.CIRCULAR_CALLOUT, mxShapeInfographicCircularCallout); + +Graph.handleFactory[mxShapeInfographicCircularCallout.prototype.cst.CIRCULAR_CALLOUT] = function (state) { + var handles = [Graph.createHandle(state, ['dy'], function (bounds) { + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width * 0.5, bounds.y + dy); + }, function (bounds, pt) { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + })]; + return handles; +}; + +mxShapeInfographicCircularCallout.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var rx = Math.max(0, Math.min(w * 0.5, w * 0.5 - dy)); + var ry = Math.max(0, Math.min(h * 0.5, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.145), false)); + return constr; +}; + +function mxShapeInfographicShadedTriangle(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeInfographicShadedTriangle, mxActor); +mxShapeInfographicShadedTriangle.prototype.cst = { + SHADED_TRIANGLE: 'mxgraph.infographic.shadedTriangle' +}; + +mxShapeInfographicShadedTriangle.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setFillColor('#ffffff'); + c.setFillAlpha('0.2'); + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.5, h * 0.67); + c.close(); + c.fill(); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(w, h); + c.lineTo(w * 0.5, h * 0.67); + c.lineTo(w * 0.5, 0); + c.close(); + c.fill(); + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicShadedTriangle.prototype.cst.SHADED_TRIANGLE, mxShapeInfographicShadedTriangle); + +mxShapeInfographicShadedTriangle.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.5), false)); + return constr; +}; + +function mxShapeInfographicShadedPyramid(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeInfographicShadedPyramid, mxActor); +mxShapeInfographicShadedPyramid.prototype.cst = { + SHADED_PYRAMID: 'mxgraph.infographic.shadedPyramid' +}; + +mxShapeInfographicShadedPyramid.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var h1 = Math.max(h - w * 0.3, 0); + c.begin(); + c.moveTo(0, h1); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h1); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setFillColor('#ffffff'); + c.setFillAlpha('0.2'); + c.begin(); + c.moveTo(0, h1); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(w, h1); + c.lineTo(w * 0.5, h); + c.lineTo(w * 0.5, 0); + c.close(); + c.fill(); + c.begin(); + c.moveTo(0, h1); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h1); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicShadedPyramid.prototype.cst.SHADED_PYRAMID, mxShapeInfographicShadedPyramid); + +mxShapeInfographicShadedPyramid.prototype.getConstraints = function (style, w, h) { + var constr = []; + var h1 = Math.max(h - w * 0.3, 0); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, h1 * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, (h + h1) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, (h + h1) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, h1 * 0.5)); + return constr; +}; + +function mxShapeInfographicPyramidStep(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeInfographicPyramidStep, mxActor); +mxShapeInfographicPyramidStep.prototype.cst = { + PYRAMID_STEP: 'mxgraph.infographic.pyramidStep' +}; + +mxShapeInfographicPyramidStep.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var h1 = Math.max(w * 0.1, 0); + c.begin(); + c.moveTo(0, h1); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h1); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setFillColor('#ffffff'); + c.setFillAlpha('0.2'); + c.begin(); + c.moveTo(0, h1); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.lineTo(0, h); + c.close(); + c.fill(); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(w, h1); + c.lineTo(w, h); + c.lineTo(w * 0.5, h); + c.lineTo(w * 0.5, 0); + c.close(); + c.fill(); + c.begin(); + c.moveTo(0, h1); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h1); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicPyramidStep.prototype.cst.PYRAMID_STEP, mxShapeInfographicPyramidStep); + +mxShapeInfographicPyramidStep.prototype.getConstraints = function (style, w, h) { + var constr = []; + var h1 = Math.max(w * 0.1, 0); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, h1 * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h1 + (h - h1) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h1 + (h - h1) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h1 + (h - h1) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h1 + (h - h1) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h1 + (h - h1) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h1 + (h - h1) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, h1 * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h1)); + return constr; +}; + +function mxShapeInfographicCylinder(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeInfographicCylinder, mxActor); +mxShapeInfographicCylinder.prototype.cst = { + CYLINDER: 'mxgraph.infographic.cylinder' +}; + +mxShapeInfographicCylinder.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = 20; + var rx = w * 0.5; + var ry = dy * 0.5; + c.begin(); + c.moveTo(0, dy * 0.5); + c.arcTo(rx, ry, 0, 0, 1, w, ry); + c.lineTo(w, h - ry); + c.arcTo(rx, ry, 0, 0, 1, 0, h - ry); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setGradient('#000000', '#ffffff', 0, 0, w, h, mxConstants.DIRECTION_EAST, 0.4, 0.4); + c.begin(); + c.moveTo(0, dy * 0.5); + c.arcTo(rx, ry, 0, 0, 0, w, ry); + c.lineTo(w, h - ry); + c.arcTo(rx, ry, 0, 0, 1, 0, h - ry); + c.close(); + c.fill(); + c.begin(); + c.moveTo(0, dy * 0.5); + c.arcTo(rx, ry, 0, 0, 1, w, ry); + c.lineTo(w, h - ry); + c.arcTo(rx, ry, 0, 0, 1, 0, h - ry); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicCylinder.prototype.cst.CYLINDER, mxShapeInfographicCylinder); + +mxShapeInfographicCylinder.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = 20; + var rx = w * 0.5; + var ry = dy * 0.5; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy * 0.5 + (h - dy) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy * 0.5 + (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy * 0.5 + (h - dy) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy * 0.5 + (h - dy) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy * 0.5 + (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy * 0.5 + (h - dy) * 0.25)); + return constr; +}; + +function mxShapeInfographicCircularCallout2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; +} + +; +mxUtils.extend(mxShapeInfographicCircularCallout2, mxActor); +mxShapeInfographicCircularCallout2.prototype.cst = { + CIRCULAR_CALLOUT_2: 'mxgraph.infographic.circularCallout2' +}; + +mxShapeInfographicCircularCallout2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, 'none'); + c.setFillColor(strokeColor); + var rx = Math.max(0, Math.min(w * 0.5, h * 0.4, h * 0.5 - 7)); + c.begin(); + c.moveTo(w * 0.5 - 2, 2.15 * rx); + c.arcTo(rx * 0.23, rx * 0.23, 0, 0, 0, w * 0.5 - rx * 0.2, rx * 1.97); + c.arcTo(rx, rx, 0, 0, 1, w * 0.5 - rx, rx); + c.arcTo(rx, rx, 0, 0, 1, w * 0.5, 0); + c.arcTo(rx, rx, 0, 0, 1, w * 0.5 + rx, rx); + c.arcTo(rx, rx, 0, 0, 1, w * 0.5 + rx * 0.2, rx * 1.97); + c.arcTo(rx * 0.23, rx * 0.23, 0, 0, 0, w * 0.5 + 2, 2.15 * rx); + var rxMin = Math.max(rx * 0.1, 6); + + if (rx * 0.04 > 4) { + c.lineTo(w * 0.5 + 2, h - rx * 0.22); + c.arcTo(rx * 0.05, rx * 0.05, 0, 0, 0, w * 0.5 + rx * 0.04, h - rx * 0.19); + } else { + c.lineTo(w * 0.5 + 2, h - 2 * rxMin); + } + + c.arcTo(rxMin, rxMin, 0, 0, 1, w * 0.5 + rxMin, h - rxMin); + c.arcTo(rxMin, rxMin, 0, 0, 1, w * 0.5, h); + c.arcTo(rxMin, rxMin, 0, 0, 1, w * 0.5 - rxMin, h - rxMin); + + if (rx * 0.04 > 4) { + c.arcTo(rxMin, rxMin, 0, 0, 1, w * 0.5 - rx * 0.04, h - rx * 0.19); + c.arcTo(rxMin * 0.5, rxMin * 0.5, 0, 0, 0, w * 0.5 - 2, h - rx * 0.22); + } else { + c.arcTo(rxMin, rxMin, 0, 0, 1, w * 0.5 - 2, h - 2 * rxMin); + } + + c.close(); + c.moveTo(w * 0.5, rx * 0.2); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5 - rx * 0.8, rx * 0.8); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5, rx * 1.8); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5 + rx * 0.8, rx * 0.8); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5, rx * 0.2); + c.close(); + c.moveTo(w * 0.5, h - rxMin * 1.75); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5 - rxMin * 0.75, h - rxMin); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5, h - rxMin * 0.25); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5 + rxMin * 0.75, h - rxMin); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5, h - rxMin * 1.75); + c.close(); + c.fill(); + c.setFillColor(fillColor); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.5, rx * 0.2); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5 - rx * 0.8, rx * 0.8); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5, rx * 1.8); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5 + rx * 0.8, rx * 0.8); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5, rx * 0.2); + c.close(); + c.moveTo(w * 0.5, h - rxMin * 1.75); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5 - rxMin * 0.75, h - rxMin); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5, h - rxMin * 0.25); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5 + rxMin * 0.75, h - rxMin); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5, h - rxMin * 1.75); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicCircularCallout2.prototype.cst.CIRCULAR_CALLOUT_2, mxShapeInfographicCircularCallout2); + +mxShapeInfographicCircularCallout2.prototype.getConstraints = function (style, w, h) { + var constr = []; + var rx = Math.max(0, Math.min(w * 0.5, h * 0.4, h * 0.5 - 7)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - rx, rx)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + rx, rx)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + return constr; +}; + +function mxShapeInfographicBannerSingleFold(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; + this.dy = 0.5; + this.dx2 = 0.5; + this.notch = 0.5; +} + +; +mxUtils.extend(mxShapeInfographicBannerSingleFold, mxActor); +mxShapeInfographicBannerSingleFold.prototype.cst = { + BANNER_SINGLE_FOLD: 'mxgraph.infographic.bannerSingleFold' +}; +mxShapeInfographicBannerSingleFold.prototype.customProperties = [{ + name: 'dx', + dispName: 'Fold Length', + type: 'float', + defVal: 32, + min: 0 +}, { + name: 'dy', + dispName: 'Banner Width', + type: 'float', + defVal: 17, + min: 0 +}, { + name: 'notch', + dispName: 'Notch', + type: 'float', + defVal: 15, + min: 0 +}]; + +mxShapeInfographicBannerSingleFold.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + dx = Math.min(w - 2 * dy, dx); + var dx2 = Math.max(0, Math.min(w - dx - 2 * dy, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + notch = Math.min(dx, notch); + c.begin(); + c.moveTo(dx2, 0); + c.lineTo(w - dx, 0); + c.lineTo(w - dx, dy); + c.lineTo(w, dy); + c.lineTo(w - notch, (h - dy) * 0.5 + dy); + c.lineTo(w, h); + c.lineTo(w - dx - 2 * dy, h); + c.lineTo(w - dx - 2 * dy, h - dy); + c.lineTo(dx2, h - dy); + c.lineTo(0, (h - dy) * 0.5); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setFillAlpha('0.05'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(w, dy); + c.lineTo(w - dx, dy); + c.lineTo(w - dx, h - dy); + c.lineTo(w - dx - 2 * dy, h); + c.lineTo(w, h); + c.lineTo(w - notch, (h - dy) * 0.5 + dy); + c.close(); + c.fill(); + c.setFillAlpha('0.4'); + c.begin(); + c.moveTo(w - dx, h - dy); + c.lineTo(w - dx - 2 * dy, h - dy); + c.lineTo(w - dx - 2 * dy, h); + c.close(); + c.fill(); + c.begin(); + c.moveTo(dx2, 0); + c.lineTo(w - dx, 0); + c.lineTo(w - dx, dy); + c.lineTo(w, dy); + c.lineTo(w - notch, (h - dy) * 0.5 + dy); + c.lineTo(w, h); + c.lineTo(w - dx - 2 * dy, h); + c.lineTo(w - dx - 2 * dy, h - dy); + c.lineTo(dx2, h - dy); + c.lineTo(0, (h - dy) * 0.5); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicBannerSingleFold.prototype.cst.BANNER_SINGLE_FOLD, mxShapeInfographicBannerSingleFold); + +Graph.handleFactory[mxShapeInfographicBannerSingleFold.prototype.cst.BANNER_SINGLE_FOLD] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(dx, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + bounds.width - notch, bounds.y + dy + (bounds.height - dy) * 0.5); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width, bounds.width + bounds.x - pt.x))) / 100; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['dx2'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var dx2 = Math.max(0, Math.min(bounds.width - dx, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + return new mxPoint(bounds.x + dx2, bounds.y + (bounds.height - dy) * 0.5); + }, function (bounds, pt) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(bounds.width - dx - 2 * dy, pt.x - bounds.x))) / 100; + }); + handles.push(handle3); + return handles; +}; + +mxShapeInfographicBannerSingleFold.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + dx = Math.min(w - 2 * dy, dx); + var dx2 = Math.max(0, Math.min(w - dx - 2 * dy, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + notch = Math.min(dx, notch); + var w2 = w - dx - dx2; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.75, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx * 0.25, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx * 0.5, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx * 0.75, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - notch, (h + dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx - 2 * dy, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - (dx + 2 * dy) * 0.75, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - (dx + 2 * dy) * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - (dx + 2 * dy) * 0.25, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.25, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.5, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.75, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2, h - dy)); + return constr; +}; + +function mxShapeInfographicShadedCube(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.isoAngle = 15; +} + +; +mxUtils.extend(mxShapeInfographicShadedCube, mxActor); +mxShapeInfographicShadedCube.prototype.cst = { + SHADED_CUBE: 'mxgraph.infographic.shadedCube' +}; +mxShapeInfographicShadedCube.prototype.customProperties = [{ + name: 'isoAngle', + dispName: 'Perspective', + type: 'float', + defVal: 15, + min: 0 +}]; + +mxShapeInfographicShadedCube.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var isoAngle = Math.max(0.01, Math.min(94, parseFloat(mxUtils.getValue(this.style, 'isoAngle', this.isoAngle)))) * Math.PI / 200; + var isoH = Math.min(w * Math.tan(isoAngle), h * 0.5); + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w, isoH); + c.lineTo(w, h - isoH); + c.lineTo(w * 0.5, h); + c.lineTo(0, h - isoH); + c.lineTo(0, isoH); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(w * 0.5, 2 * isoH); + c.lineTo(w, isoH); + c.lineTo(w, h - isoH); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(w * 0.5, 2 * isoH); + c.lineTo(0, isoH); + c.lineTo(0, h - isoH); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicShadedCube.prototype.cst.SHADED_CUBE, mxShapeInfographicShadedCube); + +Graph.handleFactory[mxShapeInfographicShadedCube.prototype.cst.SHADED_CUBE] = function (state) { + var handles = [Graph.createHandle(state, ['isoAngle'], function (bounds) { + var isoAngle = Math.max(0.01, Math.min(94, parseFloat(mxUtils.getValue(this.state.style, 'isoAngle', this.isoAngle)))) * Math.PI / 200; + var isoH = Math.min(bounds.width * Math.tan(isoAngle), bounds.height * 0.5); + return new mxPoint(bounds.x, bounds.y + isoH); + }, function (bounds, pt) { + this.state.style['isoAngle'] = Math.round(100 * Math.max(0, Math.min(100, pt.y - bounds.y))) / 100; + })]; + return handles; +}; + +mxShapeInfographicShadedCube.prototype.getConstraints = function (style, w, h) { + var constr = []; + var isoAngle = Math.max(0.01, Math.min(94, parseFloat(mxUtils.getValue(this.style, 'isoAngle', this.isoAngle)))) * Math.PI / 200; + var isoH = Math.min(w * Math.tan(isoAngle), h * 0.5); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, isoH * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, isoH + (h - 2 * isoH) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, isoH + (h - 2 * isoH) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, isoH + (h - 2 * isoH) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, h - isoH * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, h - isoH * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, isoH + (h - 2 * isoH) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, isoH + (h - 2 * isoH) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, isoH + (h - 2 * isoH) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, isoH * 0.5)); + return constr; +}; + +function mxShapeInfographicPartConcEllipse(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.startAngle = 0.25; + this.endAngle = 0.75; + this.arcWidth = 0.5; +} + +; +mxUtils.extend(mxShapeInfographicPartConcEllipse, mxActor); +mxShapeInfographicPartConcEllipse.prototype.cst = { + PART_CONC_ELLIPSE: 'mxgraph.infographic.partConcEllipse' +}; +mxShapeInfographicPartConcEllipse.prototype.customProperties = [{ + name: 'startAngle', + dispName: 'Start Angle', + min: 0, + max: 1, + defVal: 0.25 +}, { + name: 'endAngle', + dispName: 'End Angle', + min: 0, + max: 1, + defVal: 0.1 +}, { + name: 'arcWidth', + dispName: 'Arc Width', + min: 0, + max: 1, + defVal: 0.5 +}]; + +mxShapeInfographicPartConcEllipse.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'startAngle', this.startAngle)))); + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'endAngle', this.endAngle)))); + var arcWidth = 1 - Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arcWidth', this.arcWidth)))); + var rx = w * 0.5; + var ry = h * 0.5; + var rx2 = rx * arcWidth; + var ry2 = ry * arcWidth; + var angDiff = endAngle - startAngle; + + if (angDiff < 0) { + angDiff = angDiff + Math.PI * 2; + } else if (angDiff == Math.PI) { + endAngle = endAngle + 0.00001; + } + + var startX = rx + Math.sin(startAngle) * rx; + var startY = ry - Math.cos(startAngle) * ry; + var innerStartX = rx + Math.sin(startAngle) * rx2; + var innerStartY = ry - Math.cos(startAngle) * ry2; + var endX = rx + Math.sin(endAngle) * rx; + var endY = ry - Math.cos(endAngle) * ry; + var innerEndX = rx + Math.sin(endAngle) * rx2; + var innerEndY = ry - Math.cos(endAngle) * ry2; + var bigArc = 0; + + if (angDiff <= Math.PI) { + bigArc = 1; + } + + c.begin(); + c.moveTo(rx, 0); + c.arcTo(rx, ry, 0, 0, 1, w, ry); + c.arcTo(rx, ry, 0, 0, 1, rx, h); + c.arcTo(rx, ry, 0, 0, 1, 0, ry); + c.arcTo(rx, ry, 0, 0, 1, rx, 0); + c.close(); + c.moveTo(rx, h * 0.5 - ry2); + c.arcTo(rx2, ry2, 0, 0, 0, w * 0.5 - rx2, ry); + c.arcTo(rx2, ry2, 0, 0, 0, rx, h * 0.5 + ry2); + c.arcTo(rx2, ry2, 0, 0, 0, w * 0.5 + rx2, ry); + c.arcTo(rx2, ry2, 0, 0, 0, rx, h * 0.5 - ry2); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(startX, startY); + c.arcTo(rx, ry, 0, bigArc, 0, endX, endY); + c.lineTo(innerEndX, innerEndY); + c.arcTo(rx2, ry2, 0, bigArc, 1, innerStartX, innerStartY); + c.close(); + c.fill(); + var rx = w * 0.5; + var ry = h * 0.5; + var rx2 = rx * arcWidth; + var ry2 = ry * arcWidth; + var rx3 = rx2 + (rx - rx2) * 0.25; + var ry3 = ry2 + (ry - ry2) * 0.25; + c.setFillColor('#000000'); + c.begin(); + c.moveTo(rx, h * 0.5 - ry2); + c.arcTo(rx2, ry2, 0, 0, 1, w * 0.5 + rx2, ry); + c.arcTo(rx2, ry2, 0, 0, 1, rx, h * 0.5 + ry2); + c.arcTo(rx2, ry2, 0, 0, 1, w * 0.5 - rx2, ry); + c.arcTo(rx2, ry2, 0, 0, 1, rx, h * 0.5 - ry2); + c.close(); + c.moveTo(rx, h * 0.5 - ry3); + c.arcTo(rx3, ry3, 0, 0, 0, w * 0.5 - rx3, ry); + c.arcTo(rx3, ry3, 0, 0, 0, rx, h * 0.5 + ry3); + c.arcTo(rx3, ry3, 0, 0, 0, w * 0.5 + rx3, ry); + c.arcTo(rx3, ry3, 0, 0, 0, rx, h * 0.5 - ry3); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicPartConcEllipse.prototype.cst.PART_CONC_ELLIPSE, mxShapeInfographicPartConcEllipse); + +Graph.handleFactory[mxShapeInfographicPartConcEllipse.prototype.cst.PART_CONC_ELLIPSE] = function (state) { + var handles = [Graph.createHandle(state, ['startAngle'], function (bounds) { + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'startAngle', this.startAngle)))); + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(startAngle) * bounds.height * 0.5); + }, function (bounds, pt) { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) { + res = 1 + res; + } + + this.state.style['startAngle'] = res; + })]; + var handle2 = Graph.createHandle(state, ['endAngle'], function (bounds) { + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'endAngle', this.endAngle)))); + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(endAngle) * bounds.height * 0.5); + }, function (bounds, pt) { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) { + res = 1 + res; + } + + this.state.style['endAngle'] = res; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['arcWidth'], function (bounds) { + var arcWidth = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'arcWidth', this.arcWidth)))); + return new mxPoint(bounds.x + bounds.width / 2, bounds.y + arcWidth * bounds.height * 0.5); + }, function (bounds, pt) { + this.state.style['arcWidth'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, (pt.y - bounds.y) / (bounds.height * 0.5)))) / 100; + }); + handles.push(handle3); + return handles; +}; + +mxShapeInfographicPartConcEllipse.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + return constr; +}; + +function mxShapeInfographicBannerHalfFold(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; + this.dx2 = 0.5; + this.notch = 0.5; +} + +; +mxUtils.extend(mxShapeInfographicBannerHalfFold, mxActor); +mxShapeInfographicBannerHalfFold.prototype.cst = { + BANNER_HALF_FOLD: 'mxgraph.infographic.bannerHalfFold' +}; +mxShapeInfographicBannerHalfFold.prototype.customProperties = [{ + name: 'dx', + dispName: 'Banner Width', + min: 0, + defVal: 40 +}, { + name: 'dx2', + dispName: 'Spike Size', + min: 0, + defVal: 20 +}, { + name: 'notch', + dispName: 'Notch Size', + min: 0, + defVal: 15 +}]; + +mxShapeInfographicBannerHalfFold.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dx2 = Math.max(0, Math.min(w - dx, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(h - dx, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + c.begin(); + c.moveTo(dx2, 0); + c.lineTo(w - dx, 0); + c.lineTo(w, dx); + c.lineTo(w, h); + c.lineTo(w - dx * 0.5, h - notch); + c.lineTo(w - dx, h); + c.lineTo(w - dx, dx); + c.lineTo(dx2, dx); + c.lineTo(0, dx * 0.5); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(w - dx, dx); + c.lineTo(w, dx); + c.lineTo(w, h); + c.lineTo(w - dx * 0.5, h - notch); + c.lineTo(w - dx, h); + c.lineTo(w - dx, dx); + c.lineTo(0, dx); + c.close(); + c.fill(); + c.begin(); + c.moveTo(dx2, 0); + c.lineTo(w - dx, 0); + c.lineTo(w, dx); + c.lineTo(w, h); + c.lineTo(w - dx * 0.5, h - notch); + c.lineTo(w - dx, h); + c.lineTo(w - dx, dx); + c.lineTo(dx2, dx); + c.lineTo(0, dx * 0.5); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicBannerHalfFold.prototype.cst.BANNER_HALF_FOLD, mxShapeInfographicBannerHalfFold); + +Graph.handleFactory[mxShapeInfographicBannerHalfFold.prototype.cst.BANNER_HALF_FOLD] = function (state) { + var handles = [Graph.createHandle(state, ['dx'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dx); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, bounds.x + bounds.width - pt.x))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(bounds.height - dx, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + return new mxPoint(bounds.x + bounds.width - dx * 0.5, bounds.y + bounds.height - notch); + }, function (bounds, pt) { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.height, bounds.height + bounds.y - pt.y))) / 100; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['dx2'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dx2 = Math.max(0, Math.min(bounds.width - dx, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + return new mxPoint(bounds.x + dx2, bounds.y + dx); + }, function (bounds, pt) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(bounds.width - dx, pt.x - bounds.x))) / 100; + }); + handles.push(handle3); + return handles; +}; + +mxShapeInfographicBannerHalfFold.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dx2 = Math.max(0, Math.min(w - dx, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(h - dx, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var w2 = w - dx - dx2; + var h2 = h - dx; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dx * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.75, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx * 0.5, dx * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dx + h2 * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dx + h2 * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dx + h2 * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx * 0.5, h - notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dx + h2 * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dx + h2 * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dx + h2 * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.25, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.5, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.75, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, dx)); + return constr; +}; + +function mxShapeInfographicCircularDial(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dy = 0.5; +} + +; +mxUtils.extend(mxShapeInfographicCircularDial, mxActor); +mxShapeInfographicCircularDial.prototype.cst = { + CIRCULAR_DIAL: 'mxgraph.infographic.circularDial' +}; +mxShapeInfographicCircularDial.prototype.customProperties = [{ + name: 'dy', + dispName: 'Hole Size', + min: 0, + defVal: 15 +}]; + +mxShapeInfographicCircularDial.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy = Math.max(0, Math.min(h * 0.5 - 10, w * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var rx = Math.max(0, Math.min(w * 0.5, h * 0.5 - 10)); + var rx2 = rx - dy; + c.begin(); + c.moveTo(w * 0.5 - rx, h); + c.lineTo(w * 0.5 - rx, rx); + c.arcTo(rx, rx, 0, 0, 1, w * 0.5, 0); + c.arcTo(rx, rx, 0, 0, 1, w * 0.5 + rx, rx); + c.lineTo(w * 0.5 + rx, h); + c.close(); + c.moveTo(w * 0.5, dy); + c.arcTo(rx2, rx2, 0, 0, 0, w * 0.5 - rx2, rx); + c.arcTo(rx2, rx2, 0, 0, 0, w * 0.5, rx + rx2); + c.arcTo(rx2, rx2, 0, 0, 0, w * 0.5 + rx2, rx); + c.arcTo(rx2, rx2, 0, 0, 0, w * 0.5, dy); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(w * 0.5 - rx, 2 * rx); + c.lineTo(w * 0.5 + rx, 2 * rx); + c.lineTo(w * 0.5 + rx, h); + c.lineTo(w * 0.5 - rx, h); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicCircularDial.prototype.cst.CIRCULAR_DIAL, mxShapeInfographicCircularDial); + +Graph.handleFactory[mxShapeInfographicCircularDial.prototype.cst.CIRCULAR_DIAL] = function (state) { + var handles = [Graph.createHandle(state, ['dy'], function (bounds) { + var dy = Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + bounds.width * 0.5, bounds.y + dy); + }, function (bounds, pt) { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.y - bounds.y))) / 100; + })]; + return handles; +}; + +mxShapeInfographicCircularDial.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dy = Math.max(0, Math.min(h * 0.5 - 10, w * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var rx = Math.max(0, Math.min(w * 0.5, h * 0.5 - 10)); + var rx2 = rx - dy; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - rx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - rx, (rx + h) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - rx, rx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - rx * 0.71, rx * 0.29)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + rx * 0.71, rx * 0.29)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + rx, rx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + rx, (rx + h) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + rx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + rx * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - rx * 0.5, h)); + return constr; +}; + +function mxShapeInfographicRibbonSimple(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.notch1 = 0.5; + this.notch2 = 0.5; +} + +; +mxUtils.extend(mxShapeInfographicRibbonSimple, mxActor); +mxShapeInfographicRibbonSimple.prototype.cst = { + RIBBON_SIMPLE: 'mxgraph.infographic.ribbonSimple' +}; +mxShapeInfographicRibbonSimple.prototype.customProperties = [{ + name: 'notch1', + dispName: 'Notch Size', + min: 0, + defVal: 20 +}, { + name: 'notch2', + dispName: 'Spike Size', + min: 0, + defVal: 20 +}]; + +mxShapeInfographicRibbonSimple.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var notch1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch1', this.notch2)))); + var notch2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch2', this.notch2)))); + c.begin(); + c.moveTo(0, h); + c.lineTo(notch1, h * 0.5); + c.lineTo(0, 0); + c.lineTo(w - notch2, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - notch2, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicRibbonSimple.prototype.cst.RIBBON_SIMPLE, mxShapeInfographicRibbonSimple); + +Graph.handleFactory[mxShapeInfographicRibbonSimple.prototype.cst.RIBBON_SIMPLE] = function (state) { + var handles = [Graph.createHandle(state, ['notch1'], function (bounds) { + var notch1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch1', this.notch1)))); + return new mxPoint(bounds.x + notch1, bounds.y + bounds.height * 0.5); + }, function (bounds, pt) { + this.state.style['notch1'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + })]; + var handle2 = Graph.createHandle(state, ['notch2'], function (bounds) { + var notch2 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch2', this.notch2)))); + return new mxPoint(bounds.x + bounds.width - notch2, bounds.y); + }, function (bounds, pt) { + this.state.style['notch2'] = Math.round(100 * Math.max(0, Math.min(bounds.width, bounds.width + bounds.x - pt.x))) / 100; + }); + handles.push(handle2); + return handles; +}; + +mxShapeInfographicRibbonSimple.prototype.getConstraints = function (style, w, h) { + var constr = []; + var notch1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch1', this.notch2)))); + var notch2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch2', this.notch2)))); + var w2 = w - notch2; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 * 0.75, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 * 0.75, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 * 0.25, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, notch1, h * 0.5)); + return constr; +}; + +function mxShapeInfographicBarCallout(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; + this.dy = 0.5; +} + +; +mxUtils.extend(mxShapeInfographicBarCallout, mxActor); +mxShapeInfographicBarCallout.prototype.cst = { + BAR_CALLOUT: 'mxgraph.infographic.barCallout' +}; +mxShapeInfographicBarCallout.prototype.customProperties = [{ + name: 'dx', + dispName: 'Callout Position', + min: 0, + defVal: 100 +}, { + name: 'dy', + dispName: 'Callout Size', + min: 0, + defVal: 30 +}]; + +mxShapeInfographicBarCallout.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var x1 = Math.max(dx - dy * 0.35, 0); + var x2 = Math.min(dx + dy * 0.35, w); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h - dy); + c.lineTo(x2, h - dy); + c.lineTo(dx, h); + c.lineTo(x1, h - dy); + c.lineTo(0, h - dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicBarCallout.prototype.cst.BAR_CALLOUT, mxShapeInfographicBarCallout); +mxShapeInfographicBarCallout.prototype.constraints = null; + +Graph.handleFactory[mxShapeInfographicBarCallout.prototype.cst.BAR_CALLOUT] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + dx, bounds.y + bounds.height - dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height, bounds.y + bounds.height - pt.y))) / 100; + })]; + return handles; +}; + +mxShapeInfographicBarCallout.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var x1 = Math.max(dx - dy * 0.35, 0); + var x2 = Math.min(dx + dy * 0.35, w); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy)); + return constr; +}; + +function mxShapeInfographicFlag(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; + this.dx = 0.5; + this.dy = 0.5; +} + +; +mxUtils.extend(mxShapeInfographicFlag, mxActor); +mxShapeInfographicFlag.prototype.cst = { + FLAG: 'mxgraph.infographic.flag' +}; +mxShapeInfographicFlag.prototype.customProperties = [{ + name: 'dx', + dispName: 'Pole Width', + min: 0, + defVal: 30 +}, { + name: 'dy', + dispName: 'Spike Size', + min: 0, + defVal: 20 +}]; + +mxShapeInfographicFlag.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h - dy); + c.lineTo(dx, h - dy); + c.lineTo(dx * 0.5, h); + c.lineTo(0, h - dy); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(0, 0); + c.lineTo(dx, 0); + c.lineTo(dx, h - dy); + c.lineTo(dx * 0.5, h); + c.lineTo(0, h - dy); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicFlag.prototype.cst.FLAG, mxShapeInfographicFlag); + +Graph.handleFactory[mxShapeInfographicFlag.prototype.cst.FLAG] = function (state) { + var handles = [Graph.createHandle(state, ['dx', 'dy'], function (bounds) { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + return new mxPoint(bounds.x + dx, bounds.y + bounds.height - dy); + }, function (bounds, pt) { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height, bounds.y + bounds.height - pt.y))) / 100; + })]; + return handles; +}; + +mxShapeInfographicFlag.prototype.getConstraints = function (style, w, h) { + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx * 0.5, 0)); + return constr; +}; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxLeanMap.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxLeanMap.js new file mode 100644 index 0000000000000..04da5de2e4405 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxLeanMap.js @@ -0,0 +1,1299 @@ +"use strict"; + +function mxLeanBoatShipment(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanBoatShipment, mxShape); + +mxLeanBoatShipment.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(w * 0.15, h * 0.77); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.85, h * 0.77); + c.close(); + c.moveTo(w * 0.2, h); + c.lineTo(0, h * 0.8); + c.lineTo(w, h * 0.8); + c.lineTo(w * 0.8, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.boat_shipment', mxLeanBoatShipment); +mxLeanBoatShipment.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), false), new mxConnectionConstraint(new mxPoint(0.5, 1), false), new mxConnectionConstraint(new mxPoint(0, 0.8), false), new mxConnectionConstraint(new mxPoint(1, 0.8), false), new mxConnectionConstraint(new mxPoint(0.2, 1), false), new mxConnectionConstraint(new mxPoint(0.8, 1), false), new mxConnectionConstraint(new mxPoint(0.26, 0.5), false), new mxConnectionConstraint(new mxPoint(0.74, 0.5), false)]; + +function mxLeanSafetyStock(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanSafetyStock, mxShape); + +mxLeanSafetyStock.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxLeanSafetyStock.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxLeanSafetyStock.prototype.foreground = function (c, w, h) { + c.begin(); + c.moveTo(0, h * 0.34); + c.lineTo(w, h * 0.34); + c.moveTo(0, h * 0.66); + c.lineTo(w, h * 0.66); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.buffer_or_safety_stock', mxLeanSafetyStock); +mxLeanSafetyStock.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanDataBox(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanDataBox, mxShape); + +mxLeanDataBox.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxLeanDataBox.prototype.background = function (c, w, h) { + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.fillAndStroke(); +}; + +mxLeanDataBox.prototype.foreground = function (c, w, h) { + c.begin(); + c.moveTo(0, h * 0.2); + c.lineTo(w, h * 0.2); + c.moveTo(0, h * 0.4); + c.lineTo(w, h * 0.4); + c.moveTo(0, h * 0.6); + c.lineTo(w, h * 0.6); + c.moveTo(0, h * 0.8); + c.lineTo(w, h * 0.8); + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.data_box', mxLeanDataBox); +mxLeanDataBox.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanCustomerSupplier(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanCustomerSupplier, mxShape); + +mxLeanCustomerSupplier.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); +}; + +mxLeanCustomerSupplier.prototype.background = function (c, w, h) { + c.begin(); + c.moveTo(0, h); + c.lineTo(0, h * 0.3); + c.lineTo(w * 0.33, h * 0.02); + c.lineTo(w * 0.33, h * 0.3); + c.lineTo(w * 0.67, h * 0.02); + c.lineTo(w * 0.67, h * 0.3); + c.lineTo(w, h * 0.02); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.outside_sources', mxLeanCustomerSupplier); +mxLeanCustomerSupplier.prototype.constraints = [new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.33, 0), true), new mxConnectionConstraint(new mxPoint(0.67, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.3), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanDedicatedProcess(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanDedicatedProcess, mxShape); + +mxLeanDedicatedProcess.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var fontSize = parseFloat(mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8')); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h, fontSize); +}; + +mxLeanDedicatedProcess.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxLeanDedicatedProcess.prototype.foreground = function (c, w, h, fontSize) { + var lineH = Math.min(fontSize * 1.5, h); + c.begin(); + c.moveTo(0, lineH); + c.lineTo(w, lineH); + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.manufacturing_process', mxLeanDedicatedProcess); +mxLeanDedicatedProcess.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanSharedProcess(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanSharedProcess, mxShape); + +mxLeanSharedProcess.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var fontSize = parseFloat(mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8')); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h, fontSize); +}; + +mxLeanSharedProcess.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxLeanSharedProcess.prototype.foreground = function (c, w, h, fontSize) { + var lineH = Math.min(fontSize * 1.5, h); + c.begin(); + c.moveTo(0, lineH); + c.lineTo(w, lineH); + c.stroke(); + var start = 0; + var i = 0; + var s = 10; + var offset = 0; + c.begin(); + var strokeWidth = parseFloat(mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '2')); + c.setStrokeWidth(strokeWidth * 0.5); + + while (start < h + w) { + start = start + s; + + if (start > lineH) { + var startX = Math.max(0, start - h); + var startY = Math.min(start, h); + var endX = Math.min(start - lineH, w); + var endY = lineH; + var endY = Math.max(start - w, lineH); + + if (startX < w) { + c.moveTo(startX, startY); + c.lineTo(endX, endY); + } + } + } + + ; + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.manufacturing_process_shared', mxLeanSharedProcess); +mxLeanSharedProcess.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanWorkcell(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanWorkcell, mxShape); + +mxLeanWorkcell.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(w * 0.65, h); + c.lineTo(w * 0.65, h * 0.4); + c.lineTo(w * 0.35, h * 0.4); + c.lineTo(w * 0.35, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.work_cell', mxLeanWorkcell); +mxLeanWorkcell.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanInventoryBox(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanInventoryBox, mxShape); + +mxLeanInventoryBox.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.4, h * 0.45); + c.lineTo(w * 0.6, h * 0.45); + c.moveTo(w * 0.5, h * 0.45); + c.lineTo(w * 0.5, h * 0.85); + c.moveTo(w * 0.4, h * 0.85); + c.lineTo(w * 0.6, h * 0.85); + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.inventory_box', mxLeanInventoryBox); +mxLeanInventoryBox.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.375, 0.25), false), new mxConnectionConstraint(new mxPoint(0.25, 0.5), false), new mxConnectionConstraint(new mxPoint(0.125, 0.75), false), new mxConnectionConstraint(new mxPoint(0.625, 0.25), false), new mxConnectionConstraint(new mxPoint(0.75, 0.5), false), new mxConnectionConstraint(new mxPoint(0.875, 0.75), false), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanPushArrow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanPushArrow, mxShape); + +mxLeanPushArrow.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxLeanPushArrow.prototype.background = function (c, w, h) { + c.begin(); + c.moveTo(0, h * 0.17); + c.lineTo(w * 0.75, h * 0.17); + c.lineTo(w * 0.75, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.75, h); + c.lineTo(w * 0.75, h * 0.83); + c.lineTo(0, h * 0.83); + c.close(); + c.fillAndStroke(); +}; + +mxLeanPushArrow.prototype.foreground = function (c, w, h, fontSize) { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.rect(0, h * 0.17, w * 0.12, h * 0.66); + c.fill(); + c.rect(w * 0.24, h * 0.17, w * 0.12, h * 0.66); + c.fill(); + c.rect(w * 0.48, h * 0.17, w * 0.12, h * 0.66); + c.fill(); + c.begin(); + c.moveTo(w * 0.72, h * 0.17); + c.lineTo(w * 0.75, h * 0.17); + c.lineTo(w * 0.75, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.75, h); + c.lineTo(w * 0.75, h * 0.83); + c.lineTo(w * 0.72, h * 0.83); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.push_arrow', mxLeanPushArrow); +mxLeanPushArrow.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0.17), false), new mxConnectionConstraint(new mxPoint(0.5, 0.17), false), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.17), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.83), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(0.25, 0.83), false), new mxConnectionConstraint(new mxPoint(0.5, 0.83), false), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanSupermarket(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanSupermarket, mxShape); + +mxLeanSupermarket.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.moveTo(0, h * 0.33); + c.lineTo(w, h * 0.33); + c.moveTo(0, h * 0.67); + c.lineTo(w, h * 0.67); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.supermarket', mxLeanSupermarket); +mxLeanSupermarket.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanMaterialPull(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanMaterialPull, mxShape); + +mxLeanMaterialPull.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(w * 0.732, h * 0.0736); + c.arcTo(w * 0.4827, h * 0.4959, 0, 1, 0, w * 0.9553, h * 0.6191); + c.stroke(); + c.begin(); + c.moveTo(w * 0.9071, h * 0.6191); + c.lineTo(w * 0.9794, h * 0.4951); + c.lineTo(w, h * 0.6438); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.physical_pull', mxLeanMaterialPull); +mxLeanMaterialPull.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0.98, 0.5), true), new mxConnectionConstraint(new mxPoint(0.144, 0.144), false), new mxConnectionConstraint(new mxPoint(0.144, 0.845), false), new mxConnectionConstraint(new mxPoint(0.845, 0.845), false)]; + +function mxLeanFifoLane(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanFifoLane, mxShape); + +mxLeanFifoLane.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var fontSize = parseFloat(mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8')); + this.background(c, w, h, fontSize); + c.setShadow(false); +}; + +mxLeanFifoLane.prototype.background = function (c, w, h, fontSize) { + var lineH = Math.min(fontSize * 1.5, h); + c.begin(); + c.moveTo(0, lineH); + c.lineTo(w, lineH); + c.moveTo(0, h); + c.lineTo(w, h); + c.stroke(); + c.rect(w * 0.02, lineH + 4, w * 0.26, h - lineH - 8); + c.fillAndStroke(); + c.ellipse(w * 0.35, lineH + 4, w * 0.26, h - lineH - 8); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.69, lineH + 4); + c.lineTo(w * 0.98, lineH + 4); + c.lineTo(w * 0.835, h - 4); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.fifo_lane', mxLeanFifoLane); +mxLeanFifoLane.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanTruckShipment(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanTruckShipment, mxShape); + +mxLeanTruckShipment.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); +}; + +mxLeanTruckShipment.prototype.background = function (c, w, h) { + c.rect(0, 0, w * 0.6, h * 0.8); + c.fillAndStroke(); + c.rect(w * 0.6, h * 0.35, w * 0.4, h * 0.45); + c.fillAndStroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.ellipse(w * 0.15, h * 0.8, w * 0.2, h * 0.2); + c.fillAndStroke(); + c.ellipse(w * 0.65, h * 0.8, w * 0.2, h * 0.2); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.truck_shipment', mxLeanTruckShipment); +mxLeanTruckShipment.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(0.6, 0.35), false), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 0.8), false), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanProductionControl(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanProductionControl, mxShape); + +mxLeanProductionControl.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.schedule', mxLeanProductionControl); +mxLeanProductionControl.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanFifoSequence(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanFifoSequence, mxShape); + +mxLeanFifoSequence.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.moveTo(0, h); + c.lineTo(w, h); + c.moveTo(w * 0.05, h * 0.5); + c.lineTo(w * 0.15, h * 0.5); + c.moveTo(w * 0.75, h * 0.5); + c.lineTo(w * 0.88, h * 0.5); + c.stroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.88, h * 0.39); + c.lineTo(w * 0.98, h * 0.5); + c.lineTo(w * 0.88, h * 0.61); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.fifo_sequence_flow', mxLeanFifoSequence); +mxLeanFifoSequence.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanProductionKanban(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanProductionKanban, mxShape); + +mxLeanProductionKanban.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setDashed(true); + c.begin(); + c.moveTo(4, h - 10); + c.lineTo(4, 25); + c.lineTo(w, 25); + c.stroke(); + c.setDashed(false); + c.begin(); + c.moveTo(w - 75, 0); + c.lineTo(w - 30, 0); + c.lineTo(w - 15, 15); + c.lineTo(w - 15, 50); + c.lineTo(w - 75, 50); + c.close(); + c.fillAndStroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(0, h - 10); + c.lineTo(4, h); + c.lineTo(8, h - 10); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.production_kanban', mxLeanProductionKanban); + +mxLeanProductionKanban.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 4, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, 25)); + return constr; +}; + +function mxLeanWithdrawalKanban(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanWithdrawalKanban, mxShape); + +mxLeanWithdrawalKanban.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setDashed(true); + c.begin(); + c.moveTo(4, h - 10); + c.lineTo(4, 25); + c.lineTo(w, 25); + c.stroke(); + c.setDashed(false); + c.begin(); + c.moveTo(w - 75, 0); + c.lineTo(w - 30, 0); + c.lineTo(w - 15, 15); + c.lineTo(w - 15, 50); + c.lineTo(w - 75, 50); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w - 75, 45); + c.lineTo(w - 70, 50); + c.moveTo(w - 75, 35); + c.lineTo(w - 60, 50); + c.moveTo(w - 75, 25); + c.lineTo(w - 50, 50); + c.moveTo(w - 75, 15); + c.lineTo(w - 40, 50); + c.moveTo(w - 75, 5); + c.lineTo(w - 30, 50); + c.moveTo(w - 70, 0); + c.lineTo(w - 20, 50); + c.moveTo(w - 60, 0); + c.lineTo(w - 15, 45); + c.moveTo(w - 50, 0); + c.lineTo(w - 15, 35); + c.moveTo(w - 40, 0); + c.lineTo(w - 15, 25); + c.stroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(0, h - 10); + c.lineTo(4, h); + c.lineTo(8, h - 10); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.withdrawal_kanban', mxLeanWithdrawalKanban); + +mxLeanWithdrawalKanban.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 4, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, 25)); + return constr; +}; + +function mxLeanSignalKanban(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanSignalKanban, mxShape); + +mxLeanSignalKanban.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.setDashed(true); + c.begin(); + c.moveTo(4, h - 10); + c.lineTo(4, 15); + c.lineTo(w, 15); + c.stroke(); + c.setDashed(false); + c.begin(); + c.moveTo(w - 65, 0); + c.lineTo(w - 25, 0); + c.lineTo(w - 45, 45); + c.close(); + c.fillAndStroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(0, h - 10); + c.lineTo(4, h); + c.lineTo(8, h - 10); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.signal_kanban', mxLeanSignalKanban); + +mxLeanSignalKanban.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 4, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, 15)); + return constr; +}; + +function mxLeanSequencedPullBall(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanSequencedPullBall, mxShape); + +mxLeanSequencedPullBall.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.setShadow(false); + c.ellipse(w * 0.15, h * 0.15, w * 0.7, h * 0.7); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.sequenced_pull_ball', mxLeanSequencedPullBall); +mxLeanSequencedPullBall.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.144, 0.144), false), new mxConnectionConstraint(new mxPoint(0.856, 0.144), false), new mxConnectionConstraint(new mxPoint(0.856, 0.856), false), new mxConnectionConstraint(new mxPoint(0.144, 0.856), false), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true)]; + +function mxLeanRailShipment(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanRailShipment, mxShape); + +mxLeanRailShipment.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(w * 0.1, 0, w * 0.35, h * 0.8); + c.fillAndStroke(); + c.rect(w * 0.55, 0, w * 0.35, h * 0.8); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h); + c.lineTo(w, h); + c.moveTo(w * 0.45, h * 0.7); + c.lineTo(w * 0.55, h * 0.7); + c.stroke(); + c.ellipse(w * 0.15, h * 0.8, w * 0.06, h * 0.2); + c.fillAndStroke(); + c.ellipse(w * 0.34, h * 0.8, w * 0.06, h * 0.2); + c.fillAndStroke(); + c.ellipse(w * 0.6, h * 0.8, w * 0.06, h * 0.2); + c.fillAndStroke(); + c.ellipse(w * 0.79, h * 0.8, w * 0.06, h * 0.2); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.rail_shipment', mxLeanRailShipment); +mxLeanRailShipment.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0.1, 0.25), false), new mxConnectionConstraint(new mxPoint(0.1, 0.5), false), new mxConnectionConstraint(new mxPoint(0.1, 0.75), false), new mxConnectionConstraint(new mxPoint(0.9, 0.25), false), new mxConnectionConstraint(new mxPoint(0.9, 0.5), false), new mxConnectionConstraint(new mxPoint(0.9, 0.75), false), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanWarehouse(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanWarehouse, mxShape); + +mxLeanWarehouse.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.setShadow(false); + c.begin(); + c.moveTo(0, h * 0.4); + c.lineTo(w, h * 0.4); + c.moveTo(w * 0.15, h); + c.lineTo(w * 0.15, h * 0.55); + c.lineTo(w * 0.3, h * 0.55); + c.lineTo(w * 0.3, h); + c.stroke(); + c.ellipse(w * 0.27, h * 0.75, w * 0.02, w * 0.02); + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.warehouse', mxLeanWarehouse); +mxLeanWarehouse.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanTimeline(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanTimeline, mxShape); + +mxLeanTimeline.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var shapeInfo = mxUtils.getValue(this.style, 'mainText', '20,Time 1,50,Time 2,30,Time 3,40,Time 4,30,Time 5,50,Time 6,20,Time 7').toString().split(','); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '12'); + var times = new Array(); + var totalTime = 0; + + for (var i = 0; i < shapeInfo.length; i = i + 2) { + var currTime = parseFloat(shapeInfo[i]); + times.push(currTime); + totalTime = totalTime + currTime; + } + + ; + var scaleX = w / totalTime; + var names = new Array(); + + for (var i = 1; i < shapeInfo.length; i = i + 2) { + names.push(shapeInfo[i]); + } + + ; + c.begin(); + var currX = 0; + c.moveTo(0, h); + + for (var i = 0; i < names.length; i++) { + var currTime = times[i] * scaleX; + currX = currX + currTime; + + if (i % 2 === 0) { + c.lineTo(currX, h); + c.lineTo(currX, fontSize * 1.5); + c.text(currX - currTime * 0.5, h - fontSize * 0.75, 0, 0, names[i], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } else { + c.lineTo(currX, fontSize * 1.5); + c.lineTo(currX, h); + c.text(currX - currTime * 0.5, fontSize * 0.75, 0, 0, names[i], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + } + + ; + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.timeline', mxLeanTimeline); + +function mxLeanCrossDock(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanCrossDock, mxShape); + +mxLeanCrossDock.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.setShadow(false); + c.begin(); + c.moveTo(0, h * 0.25); + c.lineTo(w, h * 0.25); + c.moveTo(w * 0.1, h * 0.4); + c.lineTo(w * 0.35, h * 0.4); + c.arcTo(w * 0.15, h * 0.15, 0, 0, 1, w * 0.5, h * 0.5); + c.arcTo(w * 0.15, h * 0.15, 0, 0, 0, w * 0.65, h * 0.6); + c.lineTo(w * 0.9, h * 0.6); + c.stroke(); + c.moveTo(w * 0.1, h * 0.4); + c.lineTo(w * 0.35, h * 0.4); + c.arcTo(w * 0.15, h * 0.25, 0, 0, 1, w * 0.5, h * 0.55); + c.arcTo(w * 0.15, h * 0.25, 0, 0, 0, w * 0.65, h * 0.7); + c.lineTo(w * 0.9, h * 0.7); + c.stroke(); + c.moveTo(w * 0.1, h * 0.4); + c.lineTo(w * 0.35, h * 0.4); + c.arcTo(w * 0.15, h * 0.3, 0, 0, 1, w * 0.5, h * 0.6); + c.arcTo(w * 0.15, h * 0.3, 0, 0, 0, w * 0.65, h * 0.8); + c.lineTo(w * 0.9, h * 0.8); + c.stroke(); + c.moveTo(w * 0.1, h * 0.8); + c.lineTo(w * 0.35, h * 0.8); + c.arcTo(w * 0.15, h * 0.3, 0, 0, 0, w * 0.5, h * 0.6); + c.arcTo(w * 0.15, h * 0.3, 0, 0, 1, w * 0.65, h * 0.4); + c.lineTo(w * 0.9, h * 0.4); + c.stroke(); + c.moveTo(w * 0.1, h * 0.8); + c.lineTo(w * 0.35, h * 0.8); + c.arcTo(w * 0.15, h * 0.1, 0, 0, 0, w * 0.5, h * 0.75); + c.arcTo(w * 0.15, h * 0.1, 0, 0, 1, w * 0.65, h * 0.7); + c.lineTo(w * 0.9, h * 0.7); + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.crossDock', mxLeanCrossDock); +mxLeanCrossDock.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanOrders(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanOrders, mxShape); + +mxLeanOrders.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(0, h * 0.56, w, h * 0.44); + c.fillAndStroke(); + var strokeWidth = parseFloat(mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '2')); + c.setStrokeWidth(strokeWidth * 0.5); + c.begin(); + c.moveTo(w * 0.04, h * 0.5418); + c.lineTo(w * 0.94, h * 0.5418); + c.moveTo(w * 0.0522, h * 0.5088); + c.lineTo(w * 0.9522, h * 0.5088); + c.moveTo(w * 0.05, h * 0.4738); + c.lineTo(w * 0.95, h * 0.4738); + c.moveTo(w * 0.0456, h * 0.4427); + c.lineTo(w * 0.9456, h * 0.4427); + c.moveTo(w * 0.0422, h * 0.4135); + c.lineTo(w * 0.9422, h * 0.4135); + c.moveTo(w * 0.0533, h * 0.3804); + c.lineTo(w * 0.9533, h * 0.3804); + c.moveTo(w * 0.0556, h * 0.3454); + c.lineTo(w * 0.9556, h * 0.3454); + c.moveTo(w * 0.05, h * 0.3143); + c.lineTo(w * 0.95, h * 0.3143); + c.moveTo(w * 0.0489, h * 0.2832); + c.lineTo(w * 0.0489, h * 0.2832); + c.moveTo(w * 0.0544, h * 0.254); + c.lineTo(w * 0.9544, h * 0.254); + c.moveTo(w * 0.0489, h * 0.221); + c.lineTo(w * 0.9489, h * 0.221); + c.moveTo(w * 0.0556, h * 0.1918); + c.lineTo(w * 0.9556, h * 0.1918); + c.moveTo(w * 0.0522, h * 0.1587); + c.lineTo(w * 0.9522, h * 0.1587); + c.moveTo(w * 0.0544, h * 0.1276); + c.lineTo(w * 0.9544, h * 0.1276); + c.moveTo(w * 0.0544, h * 0.0965); + c.lineTo(w * 0.9544, h * 0.0965); + c.moveTo(w * 0.0556, h * 0.0654); + c.lineTo(w * 0.9556, h * 0.0654); + c.moveTo(w * 0.0533, h * 0.0304); + c.lineTo(w * 0.9533, h * 0.0304); + c.moveTo(w * 0.0556, 0); + c.lineTo(w * 0.9556, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.orders', mxLeanOrders); +mxLeanOrders.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.05, 0), true), new mxConnectionConstraint(new mxPoint(0.95, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.25, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.75, 0), true), new mxConnectionConstraint(new mxPoint(0.05, 0.25), false), new mxConnectionConstraint(new mxPoint(0.05, 0.5), false), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(0.95, 0.25), false), new mxConnectionConstraint(new mxPoint(0.95, 0.5), false), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanBatchedKanban(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanBatchedKanban, mxShape); + +mxLeanBatchedKanban.prototype.paintVertexShape = function (c, x, y, w, h) { + w = Math.max(110, w); + c.translate(x, y); + c.begin(); + c.moveTo(4, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + c.begin(); + c.moveTo(w * 0.5 - 20, h * 0.5 - 35); + c.lineTo(w * 0.5 + 25, h * 0.5 - 35); + c.lineTo(w * 0.5 + 40, h * 0.5 - 20); + c.lineTo(w * 0.5 + 40, h * 0.5 + 15); + c.lineTo(w * 0.5 - 20, h * 0.5 + 15); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5 - 30, h * 0.5 - 25); + c.lineTo(w * 0.5 + 15, h * 0.5 - 25); + c.lineTo(w * 0.5 + 30, h * 0.5 - 10); + c.lineTo(w * 0.5 + 30, h * 0.5 + 25); + c.lineTo(w * 0.5 - 30, h * 0.5 + 25); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5 - 40, h * 0.5 - 15); + c.lineTo(w * 0.5 + 5, h * 0.5 - 15); + c.lineTo(w * 0.5 + 20, h * 0.5); + c.lineTo(w * 0.5 + 20, h * 0.5 + 35); + c.lineTo(w * 0.5 - 40, h * 0.5 + 35); + c.close(); + c.fillAndStroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w - 10, h * 0.5 - 4); + c.lineTo(w, h * 0.5); + c.lineTo(w - 10, h * 0.5 + 4); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.batched_kanban', mxLeanBatchedKanban); +mxLeanBatchedKanban.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true)]; + +function mxLeanControlCenter(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxLeanControlCenter, mxShape); + +mxLeanControlCenter.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(w * 0.15, 0, w * 0.7, h * 0.8); + c.fillAndStroke(); + c.rect(0, h * 0.8, w, h * 0.2); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.control_center', mxLeanControlCenter); +mxLeanControlCenter.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.15, 0), true), new mxConnectionConstraint(new mxPoint(0.85, 0), true), new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.15, 0.25), false), new mxConnectionConstraint(new mxPoint(0.15, 0.5), false), new mxConnectionConstraint(new mxPoint(0, 0.75), true), new mxConnectionConstraint(new mxPoint(0.85, 0.25), false), new mxConnectionConstraint(new mxPoint(0.85, 0.5), false), new mxConnectionConstraint(new mxPoint(1, 0.75), true), new mxConnectionConstraint(new mxPoint(0.25, 1), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + +function mxLeanElectronicInfoShape() { + mxArrow.call(this); +} + +; +mxUtils.extend(mxLeanElectronicInfoShape, mxArrow); + +mxLeanElectronicInfoShape.prototype.paintEdgeShape = function (c, pts) { + var p0 = pts[0]; + var pe = pts[pts.length - 1]; + var dx = pe.x - p0.x; + var dy = pe.y - p0.y; + p0.x = p0.x + dx * 0.05; + p0.y = p0.y + dy * 0.05; + pe.x = pe.x - dx * 0.05; + pe.y = pe.y - dy * 0.05; + dx = pe.x - p0.x; + dy = pe.y - p0.y; + var dist = Math.sqrt(dx * dx + dy * dy); + var nx = dx / dist; + var ny = dy / dist; + var midX = p0.x + dx * 0.5; + var midY = p0.y + dy * 0.5; + var p1x = midX - nx * dist * 0.1 - ny / 3 * dist * 0.1; + var p1y = midY - ny * dist * 0.1 + nx / 3 * dist * 0.1; + var p4x = midX + nx * dist * 0.1 + ny / 3 * dist * 0.1; + var p4y = midY + ny * dist * 0.1 - nx / 3 * dist * 0.1; + c.begin(); + c.moveTo(p0.x, p0.y); + c.lineTo(p4x, p4y); + c.lineTo(p1x, p1y); + c.lineTo(pe.x, pe.y); + c.stroke(); + var dx = pe.x - p1x; + var dy = pe.y - p1y; + var dist = Math.sqrt(dx * dx + dy * dy); + var nx = dx / dist; + var ny = dy / dist; + c.setFillColor(mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000')); + c.begin(); + c.moveTo(pe.x - nx * 10 - ny * 5, pe.y - ny * 10 + nx * 5); + c.lineTo(pe.x, pe.y); + c.lineTo(pe.x - nx * 10 + ny * 5, pe.y - ny * 10 - nx * 5); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.electronic_info_flow_edge', mxLeanElectronicInfoShape); + +function mxLeanManualInfoShape() { + mxArrow.call(this); +} + +; +mxUtils.extend(mxLeanManualInfoShape, mxArrow); + +mxLeanManualInfoShape.prototype.paintEdgeShape = function (c, pts) { + var p0 = pts[0]; + var pe = pts[pts.length - 1]; + var dx = pe.x - p0.x; + var dy = pe.y - p0.y; + p0.x = p0.x + dx * 0.05; + p0.y = p0.y + dy * 0.05; + pe.x = pe.x - dx * 0.05; + pe.y = pe.y - dy * 0.05; + dx = pe.x - p0.x; + dy = pe.y - p0.y; + var dist = Math.sqrt(dx * dx + dy * dy); + var nx = dx / dist; + var ny = dy / dist; + c.begin(); + c.moveTo(p0.x, p0.y); + c.lineTo(pe.x, pe.y); + c.stroke(); + c.setFillColor(mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000')); + c.begin(); + c.moveTo(pe.x - nx * 10 - ny * 5, pe.y - ny * 10 + nx * 5); + c.lineTo(pe.x, pe.y); + c.lineTo(pe.x - nx * 10 + ny * 5, pe.y - ny * 10 - nx * 5); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.manual_info_flow_edge', mxLeanManualInfoShape); + +function mxShapeLeanTimeline(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeLeanTimeline, mxShape); +mxShapeLeanTimeline.prototype.cst = { + SHAPE_TIMELINE: 'mxgraph.lean_mapping.timeline2' +}; + +mxShapeLeanTimeline.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var dy1 = mxUtils.getValue(this.style, 'dy1', '0'); + var dx2 = mxUtils.getValue(this.style, 'dx2', '0'); + var dy2 = mxUtils.getValue(this.style, 'dy2', '0'); + var dx3 = mxUtils.getValue(this.style, 'dx3', '0'); + var dy3 = mxUtils.getValue(this.style, 'dy3', '0'); + var dx4 = mxUtils.getValue(this.style, 'dx4', '0'); + var dy4 = mxUtils.getValue(this.style, 'dy4', '0'); + var dx5 = mxUtils.getValue(this.style, 'dx5', '0'); + var dy5 = mxUtils.getValue(this.style, 'dy5', '0'); + var dy6 = mxUtils.getValue(this.style, 'dy6', '0'); + var lastUp = true; + c.begin(); + + if (dy1 <= 0.5) { + c.moveTo(0, 0); + lastUp = true; + } else { + c.moveTo(0, h); + lastUp = false; + } + + if (dy2 <= 0.5 && lastUp) { + c.lineTo(dx2, 0); + lastUp = true; + } else if (dy2 > 0.5 && !lastUp) { + c.lineTo(dx2, h); + lastUp = false; + } else if (dy2 <= 0.5 && !lastUp) { + c.lineTo(dx2, h); + c.lineTo(dx2, 0); + lastUp = true; + } else { + c.lineTo(dx2, 0); + c.lineTo(dx2, h); + lastUp = false; + } + + if (dy3 <= 0.5 && lastUp) { + c.lineTo(dx3, 0); + lastUp = true; + } else if (dy3 > 0.5 && !lastUp) { + c.lineTo(dx3, h); + lastUp = false; + } else if (dy3 <= 0.5 && !lastUp) { + c.lineTo(dx3, h); + c.lineTo(dx3, 0); + lastUp = true; + } else { + c.lineTo(dx3, 0); + c.lineTo(dx3, h); + lastUp = false; + } + + if (dy4 <= 0.5 && lastUp) { + c.lineTo(dx4, 0); + lastUp = true; + } else if (dy4 > 0.5 && !lastUp) { + c.lineTo(dx4, h); + lastUp = false; + } else if (dy4 <= 0.5 && !lastUp) { + c.lineTo(dx4, h); + c.lineTo(dx4, 0); + lastUp = true; + } else { + c.lineTo(dx4, 0); + c.lineTo(dx4, h); + lastUp = false; + } + + if (dy5 <= 0.5 && lastUp) { + c.lineTo(dx5, 0); + lastUp = true; + } else if (dy5 > 0.5 && !lastUp) { + c.lineTo(dx5, h); + lastUp = false; + } else if (dy5 <= 0.5 && !lastUp) { + c.lineTo(dx5, h); + c.lineTo(dx5, 0); + lastUp = true; + } else { + c.lineTo(dx5, 0); + c.lineTo(dx5, h); + lastUp = false; + } + + if (dy6 <= 0.5 && lastUp) { + c.lineTo(w, 0); + lastUp = true; + } else if (dy6 > 0.5 && !lastUp) { + c.lineTo(w, h); + lastUp = false; + } else if (dy6 <= 0.5 && !lastUp) { + c.lineTo(w, h); + c.lineTo(w, 0); + lastUp = true; + } else { + c.lineTo(w, 0); + c.lineTo(w, h); + lastUp = false; + } + + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeLeanTimeline.prototype.cst.SHAPE_TIMELINE, mxShapeLeanTimeline); + +Graph.handleFactory[mxShapeLeanTimeline.prototype.cst.SHAPE_TIMELINE] = function (state) { + var handles = [Graph.createHandle(state, ['dy1'], function (bounds) { + var dy1 = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'dy1', 0)))); + return new mxPoint(bounds.x, bounds.y + dy1 * bounds.height); + }, function (bounds, pt) { + this.state.style['dy1'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + })]; + var handle2 = Graph.createHandle(state, ['dx2', 'dy2'], function (bounds) { + var dx2 = Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dx3', 0)), parseFloat(mxUtils.getValue(this.state.style, 'dx2', 0)))); + var dy2 = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'dy2', 0)))); + return new mxPoint(bounds.x + dx2, bounds.y + dy2 * bounds.height); + }, function (bounds, pt) { + this.state.style['dx2'] = Math.round(1000 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dx3', 0)), pt.x - bounds.x))) / 1000; + this.state.style['dy2'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + }); + handles.push(handle2); + var handle3 = Graph.createHandle(state, ['dx3', 'dy3'], function (bounds) { + var dx3 = Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dx2', 0)), Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dx4', 0)), parseFloat(mxUtils.getValue(this.state.style, 'dx3', 0)))); + var dy3 = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'dy3', 0)))); + return new mxPoint(bounds.x + dx3, bounds.y + dy3 * bounds.height); + }, function (bounds, pt) { + this.state.style['dx3'] = Math.round(1000 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dx2', 0)), Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dx4', 0)), pt.x - bounds.x))) / 1000; + this.state.style['dy3'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + }); + handles.push(handle3); + var handle4 = Graph.createHandle(state, ['dx4', 'dy4'], function (bounds) { + var dx4 = Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dx3', 0)), Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dx5', 0)), parseFloat(mxUtils.getValue(this.state.style, 'dx4', 0)))); + var dy4 = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'dy4', 0)))); + return new mxPoint(bounds.x + dx4, bounds.y + dy4 * bounds.height); + }, function (bounds, pt) { + this.state.style['dx4'] = Math.round(1000 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dx3', 0)), Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dx5', 0)), pt.x - bounds.x))) / 1000; + this.state.style['dy4'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + }); + handles.push(handle4); + var handle5 = Graph.createHandle(state, ['dx5', 'dy5'], function (bounds) { + var dx5 = Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dx4', 0)), Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx5', 0)))); + var dy5 = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'dy5', 0)))); + return new mxPoint(bounds.x + dx5, bounds.y + dy5 * bounds.height); + }, function (bounds, pt) { + this.state.style['dx5'] = Math.round(1000 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dx4', 0)), Math.min(bounds.width, pt.x - bounds.x))) / 1000; + this.state.style['dy5'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + }); + handles.push(handle5); + var handle6 = Graph.createHandle(state, ['dy6'], function (bounds) { + var dy6 = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'dy6', 0)))); + return new mxPoint(bounds.x + bounds.width, bounds.y + dy6 * bounds.height); + }, function (bounds, pt) { + this.state.style['dy6'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + }); + handles.push(handle6); + return handles; +}; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxNetworks.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxNetworks.js new file mode 100644 index 0000000000000..0375dc830215b --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxNetworks.js @@ -0,0 +1,87 @@ +"use strict"; + +function mxShapeNetworksBus(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeNetworksBus, mxShape); +mxShapeNetworksBus.prototype.cst = { + SHAPE_BUS: 'mxgraph.networks.bus' +}; + +mxShapeNetworksBus.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeNetworksBus.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, 8, h * 0.5 - 10); + c.lineTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.close(); + c.fillAndStroke(); +}; + +mxShapeNetworksBus.prototype.foreground = function (c, x, y, w, h) { + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 - 10); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeNetworksBus.prototype.cst.SHAPE_BUS, mxShapeNetworksBus); + +function mxShapeNetworksCommLinkEdge() { + mxArrow.call(this); +} + +; +mxUtils.extend(mxShapeNetworksCommLinkEdge, mxArrow); + +mxShapeNetworksCommLinkEdge.prototype.paintEdgeShape = function (c, pts) { + var p0 = pts[0]; + var pe = pts[pts.length - 1]; + var dx = pe.x - p0.x; + var dy = pe.y - p0.y; + p0.x = p0.x + dx * 0.05; + p0.y = p0.y + dy * 0.05; + pe.x = pe.x - dx * 0.05; + pe.y = pe.y - dy * 0.05; + dx = pe.x - p0.x; + dy = pe.y - p0.y; + var dist = Math.sqrt(dx * dx + dy * dy); + var nx = dx / dist; + var ny = dy / dist; + var midX = p0.x + dx * 0.5; + var midY = p0.y + dy * 0.5; + var p1x = midX + nx * dist / 3 * 0.1 - ny / 3 * dist * 0.1; + var p1y = midY + ny * dist / 3 * 0.1 + nx / 3 * dist * 0.1; + var p2x = midX + nx * dist * 0.1 + ny * dist * 0.1; + var p2y = midY + ny * dist * 0.1 - nx * dist * 0.1; + var p3x = midX - nx * dist / 3 * 0.1 + ny / 3 * dist * 0.1; + var p3y = midY - ny * dist / 3 * 0.1 - nx / 3 * dist * 0.1; + var p4x = midX - nx * dist * 0.1 - ny * dist * 0.1; + var p4y = midY - ny * dist * 0.1 + nx * dist * 0.1; + c.begin(); + c.moveTo(p0.x, p0.y); + c.lineTo(p2x, p2y); + c.lineTo(p1x, p1y); + c.lineTo(pe.x, pe.y); + c.lineTo(p4x, p4y); + c.lineTo(p3x, p3y); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.networks.comm_link_edge', mxShapeNetworksCommLinkEdge); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/mxSysML.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxSysML.js new file mode 100644 index 0000000000000..bf389cfda72b9 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/mxSysML.js @@ -0,0 +1,2163 @@ +"use strict"; + +function mxShapeSysMLComposite() { + mxCylinder.call(this); +} + +; +mxUtils.extend(mxShapeSysMLComposite, mxShape); + +mxShapeSysMLComposite.prototype.isHtmlAllowed = function () { + return false; +}; + +mxShapeSysMLComposite.prototype.paintForeground = function (c, x, y, w, h) { + if (this.style != null) { + var shape = mxCellRenderer.defaultShapes[this.style['symbol0']]; + c.save(); + var tmp = new shape(); + tmp.style = this.style; + shape.prototype.paintVertexShape.call(tmp, c, x, y, w, h); + c.restore(); + c.setDashed(false); + var counter = 1; + + do { + shape = mxCellRenderer.defaultShapes[this.style['symbol' + counter]]; + + if (shape != null) { + var align = this.style['symbol' + counter + 'Align']; + var valign = this.style['symbol' + counter + 'VerticalAlign']; + var width = this.style['symbol' + counter + 'Width']; + var height = this.style['symbol' + counter + 'Height']; + var spacing = this.style['symbol' + counter + 'Spacing'] || 0; + var vspacing = this.style['symbol' + counter + 'VSpacing'] || 0; + var arcspacing = this.style['symbol' + counter + 'ArcSpacing']; + var direction = this.style['symbol' + counter + 'Direction']; + + if (arcspacing != null) { + spacing += this.getArcSize(w + this.strokewidth, h + this.strokewidth) * arcspacing; + vspacing += this.getArcSize(w + this.strokewidth, h + this.strokewidth) * arcspacing; + } + + var x2 = x; + var y2 = y; + + if (align == mxConstants.ALIGN_CENTER) { + x2 += (w - width) / 2; + } else if (align == mxConstants.ALIGN_RIGHT) { + x2 += w - width - spacing; + } else { + x2 += spacing; + } + + if (valign == mxConstants.ALIGN_MIDDLE) { + y2 += (h - height) / 2; + } else if (valign == mxConstants.ALIGN_BOTTOM) { + y2 += h - height - vspacing; + } else { + y2 += vspacing; + } + + c.save(); + var tmp = new shape(); + tmp.style = mxUtils.clone(this.style); + tmp.direction = direction; + tmp.updateTransform(c, x2, y2, width, height); + shape.prototype.paintVertexShape.call(tmp, c, x2, y2, width, height); + c.restore(); + } + + counter++; + } while (shape != null); + } +}; + +mxCellRenderer.registerShape('mxgraph.sysml.composite', mxShapeSysMLComposite); + +function mxShapeSysMLPackage(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLPackage, mxShape); +mxShapeSysMLPackage.prototype.cst = { + PACKAGE: 'mxgraph.sysml.package', + LABEL_X: 'labelX' +}; +mxShapeSysMLPackage.prototype.customProperties = [{ + name: 'labelX', + dispName: 'Header Width', + type: 'float', + min: 0, + defVal: 90 +}]; + +mxShapeSysMLPackage.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +mxShapeSysMLPackage.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeSysMLPackage.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeSysMLPackage.prototype.foreground = function (c, x, y, w, h) { + var xSize = parseInt(mxUtils.getValue(this.style, mxShapeSysMLPackage.prototype.cst.LABEL_X, '90')); + var ySize = 20; + xSize = Math.min(xSize, w); + + if (xSize > ySize) { + c.begin(); + c.moveTo(0, ySize); + c.lineTo(xSize - ySize * 0.5, ySize); + c.lineTo(xSize, ySize * 0.5); + c.lineTo(xSize, 0); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLPackage.prototype.cst.PACKAGE, mxShapeSysMLPackage); + +Graph.handleFactory[mxShapeSysMLPackage.prototype.cst.PACKAGE] = function (state) { + var handles = [Graph.createHandle(state, ['labelX'], function (bounds) { + var labelX = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'labelX', 90)))); + return new mxPoint(bounds.x + labelX, bounds.y + 10); + }, function (bounds, pt) { + this.state.style['labelX'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +function mxShapeSysMLPackage2(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLPackage2, mxShape); +mxShapeSysMLPackage2.prototype.cst = { + PACKAGE2: 'mxgraph.sysml.package2', + LABEL_X: 'labelX' +}; +mxShapeSysMLPackage2.prototype.customProperties = [{ + name: 'labelX', + dispName: 'Header Width', + type: 'float', + min: 0, + defVal: 90 +}]; + +mxShapeSysMLPackage2.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeSysMLPackage2.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.stroke(); +}; + +mxShapeSysMLPackage2.prototype.foreground = function (c, x, y, w, h) { + var xSize = parseInt(mxUtils.getValue(this.style, mxShapeSysMLPackage2.prototype.cst.LABEL_X, '90')); + var ySize = 20; + xSize = Math.min(xSize, w); + + if (xSize > ySize) { + c.begin(); + c.moveTo(0, ySize); + c.lineTo(xSize - ySize * 0.5, ySize); + c.lineTo(xSize, ySize * 0.5); + c.lineTo(xSize, 0); + c.lineTo(0, 0); + c.close(); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLPackage2.prototype.cst.PACKAGE2, mxShapeSysMLPackage2); + +Graph.handleFactory[mxShapeSysMLPackage2.prototype.cst.PACKAGE2] = function (state) { + var handles = [Graph.createHandle(state, ['labelX'], function (bounds) { + var labelX = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'labelX', 90)))); + return new mxPoint(bounds.x + labelX, bounds.y + 10); + }, function (bounds, pt) { + this.state.style['labelX'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + })]; + return handles; +}; + +function mxShapeSysMLNone(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLNone, mxShape); +mxShapeSysMLNone.prototype.cst = { + NONE: 'mxgraph.sysml.none' +}; + +mxShapeSysMLNone.prototype.paintVertexShape = function (c, x, y, w, h) {}; + +mxCellRenderer.registerShape(mxShapeSysMLNone.prototype.cst.NONE, mxShapeSysMLNone); + +function mxShapeSysMLRect(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLRect, mxShape); +mxShapeSysMLRect.prototype.cst = { + RECT: 'mxgraph.sysml.rect' +}; + +mxShapeSysMLRect.prototype.paintVertexShape = function (c, x, y, w, h) { + c.rect(x, y, w, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLRect.prototype.cst.RECT, mxShapeSysMLRect); + +function mxShapeSysMLPortOne(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLPortOne, mxShape); +mxShapeSysMLPortOne.prototype.cst = { + PORT1: 'mxgraph.sysml.port1' +}; + +mxShapeSysMLPortOne.prototype.paintVertexShape = function (c, x, y, w, h) { + c.rect(x + w * 0.05, y, w - w * 0.1, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLPortOne.prototype.cst.PORT1, mxShapeSysMLPortOne); + +mxShapeSysMLPortOne.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 0.25), false)); + return constr; +}; + +function mxShapeSysMLPortTwo(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLPortTwo, mxShape); +mxShapeSysMLPortTwo.prototype.cst = { + PORT2: 'mxgraph.sysml.port2' +}; + +mxShapeSysMLPortTwo.prototype.paintVertexShape = function (c, x, y, w, h) { + c.rect(x + w * 0.05, y, w * 0.8, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLPortTwo.prototype.cst.PORT2, mxShapeSysMLPortTwo); + +mxShapeSysMLPortTwo.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 0.25), false)); + return constr; +}; + +function mxShapeSysMLPortThree(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLPortThree, mxShape); +mxShapeSysMLPortThree.prototype.cst = { + PORT3: 'mxgraph.sysml.port3' +}; + +mxShapeSysMLPortThree.prototype.paintVertexShape = function (c, x, y, w, h) { + c.rect(x + w * 0.07, y, w * 0.86, h); + c.fillAndStroke(); + c.rect(x, y + h * 0.125, w * 0.14, h * 0.25); + c.fillAndStroke(); + c.rect(x, y + h * 0.625, w * 0.14, h * 0.25); + c.fillAndStroke(); + c.rect(x + w * 0.86, y + h * 0.375, w * 0.14, h * 0.25); + c.fillAndStroke(); + this.drawIn(c, x + w * 0.01, y + h * 0.2, w * 0.11, h * 0.10); + this.drawOut(c, x + w * 0.02, y + h * 0.7, w * 0.11, h * 0.10); + this.drawInOut(c, x + w * 0.88, y + h * 0.45, w * 0.1, h * 0.10); +}; + +mxShapeSysMLPortThree.prototype.drawIn = function (c, x, y, w, h) { + c.begin(); + c.moveTo(x, y + h * 0.5); + c.lineTo(x + w, y + h * 0.5); + c.moveTo(x + w * 0.75, y); + c.lineTo(x + w, y + h * 0.5); + c.lineTo(x + w * 0.75, y + h); + c.stroke(); +}; + +mxShapeSysMLPortThree.prototype.drawOut = function (c, x, y, w, h) { + c.begin(); + c.moveTo(x, y + h * 0.5); + c.lineTo(x + w, y + h * 0.5); + c.moveTo(x + w * 0.25, y); + c.lineTo(x, y + h * 0.5); + c.lineTo(x + w * 0.25, y + h); + c.stroke(); +}; + +mxShapeSysMLPortThree.prototype.drawInOut = function (c, x, y, w, h) { + c.begin(); + c.moveTo(x + w * 0.75, y); + c.lineTo(x + w, y + h * 0.5); + c.lineTo(x + w * 0.75, y + h); + c.moveTo(x + w * 0.25, y); + c.lineTo(x, y + h * 0.5); + c.lineTo(x + w * 0.25, y + h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLPortThree.prototype.cst.PORT3, mxShapeSysMLPortThree); + +function mxShapeSysMLPortFour(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLPortFour, mxShape); +mxShapeSysMLPortFour.prototype.cst = { + PORT4: 'mxgraph.sysml.port4' +}; + +mxShapeSysMLPortFour.prototype.paintVertexShape = function (c, x, y, w, h) { + c.rect(x + w * 0.05, y, w - w * 0.05, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLPortFour.prototype.cst.PORT4, mxShapeSysMLPortFour); +mxShapeSysMLPortFour.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true)]; + +function mxShapeSysMLItemFlow(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLItemFlow, mxShape); +mxShapeSysMLItemFlow.prototype.cst = { + ITEM_FLOW: 'mxgraph.sysml.itemFlow', + FLOW_DIR: 'flowDir', + FLOW_TYPE: 'flowType' +}; +mxShapeSysMLItemFlow.prototype.customProperties = [{ + name: 'flowDir', + dispName: 'Flow Direction', + type: 'enum', + enumList: [{ + val: 'n', + dispName: 'North' + }, { + val: 's', + dispName: 'South' + }, { + val: 'e', + dispName: 'East' + }, { + val: 'w', + dispName: 'West' + }] +}, { + name: 'flowType', + dispName: 'Flow Type', + type: 'enum', + enumList: [{ + val: 'in', + dispName: 'In' + }, { + val: 'out', + dispName: 'Out' + }] +}]; + +mxShapeSysMLItemFlow.prototype.paintVertexShape = function (c, x, y, w, h) { + var flowDir = mxUtils.getValue(this.style, mxShapeSysMLItemFlow.prototype.cst.FLOW_DIR, 'none').toLowerCase(); + var flowType = mxUtils.getValue(this.style, mxShapeSysMLItemFlow.prototype.cst.FLOW_TYPE, 'none'); + + if (flowDir === 'n') { + c.rect(x, y + 10, w, h - 10); + c.fillAndStroke(); + c.setShadow(false); + c.rect(x + w * 0.5 - 10, y, 20, 20); + c.fillAndStroke(); + + if (flowType === 'in') { + this.drawDown(c, x + w * 0.5 - 5, y + 2, 10, 16); + } else if (flowType === 'out') { + this.drawUp(c, x + w * 0.5 - 5, y + 2, 10, 16); + } + } else if (flowDir === 's') { + c.rect(x, y, w, h - 10); + c.fillAndStroke(); + c.setShadow(false); + c.rect(x + w * 0.5 - 10, y + h - 20, 20, 20); + c.fillAndStroke(); + + if (flowType === 'in') { + this.drawUp(c, x + w * 0.5 - 5, y + h - 18, 10, 16); + } else if (flowType === 'out') { + this.drawDown(c, x + w * 0.5 - 5, y + h - 18, 10, 16); + } + } else if (flowDir === 'w') { + c.rect(x + 10, y, w - 10, h); + c.fillAndStroke(); + c.setShadow(false); + c.rect(x, y + h * 0.5 - 10, 20, 20); + c.fillAndStroke(); + + if (flowType === 'in') { + this.drawRight(c, x + 2, y + h * 0.5 - 5, 16, 10); + } else if (flowType === 'out') { + this.drawLeft(c, x + 2, y + h * 0.5 - 5, 16, 10); + } + } else if (flowDir === 'e') { + c.rect(x, y, w - 10, h); + c.fillAndStroke(); + c.setShadow(false); + c.rect(x + w - 20, y + h * 0.5 - 10, 20, 20); + c.fillAndStroke(); + + if (flowType === 'in') { + this.drawLeft(c, x + w - 18, y + h * 0.5 - 5, 16, 10); + } else if (flowType === 'out') { + this.drawRight(c, x + w - 18, y + h * 0.5 - 5, 16, 10); + } + } +}; + +mxShapeSysMLItemFlow.prototype.drawRight = function (c, x, y, w, h) { + c.begin(); + c.moveTo(x, y + h * 0.5); + c.lineTo(x + w, y + h * 0.5); + c.moveTo(x + w * 0.75, y); + c.lineTo(x + w, y + h * 0.5); + c.lineTo(x + w * 0.75, y + h); + c.stroke(); +}; + +mxShapeSysMLItemFlow.prototype.drawDown = function (c, x, y, w, h) { + c.begin(); + c.moveTo(x + w * 0.5, y); + c.lineTo(x + w * 0.5, y + h); + c.moveTo(x, y + h * 0.75); + c.lineTo(x + w * 0.5, y + h); + c.lineTo(x + w, y + h * 0.75); + c.stroke(); +}; + +mxShapeSysMLItemFlow.prototype.drawLeft = function (c, x, y, w, h) { + c.begin(); + c.moveTo(x, y + h * 0.5); + c.lineTo(x + w, y + h * 0.5); + c.moveTo(x + w * 0.25, y); + c.lineTo(x, y + h * 0.5); + c.lineTo(x + w * 0.25, y + h); + c.stroke(); +}; + +mxShapeSysMLItemFlow.prototype.drawUp = function (c, x, y, w, h) { + c.begin(); + c.moveTo(x + w * 0.5, y + h); + c.lineTo(x + w * 0.5, y); + c.moveTo(x, y + h * 0.25); + c.lineTo(x + w * 0.5, y); + c.lineTo(x + w, y + h * 0.25); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLItemFlow.prototype.cst.ITEM_FLOW, mxShapeSysMLItemFlow); +mxShapeSysMLItemFlow.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true)]; + +function mxShapeSysMLItemFlowLeft(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLItemFlowLeft, mxShape); +mxShapeSysMLItemFlowLeft.prototype.cst = { + ITEM_FLOW_LEFT: 'mxgraph.sysml.itemFlowLeft' +}; + +mxShapeSysMLItemFlowLeft.prototype.paintVertexShape = function (c, x, y, w, h) { + c.rect(x + 10, y, w - 10, h); + c.fillAndStroke(); + c.rect(x, y + h * 0.25 - 10, 20, 20); + c.fillAndStroke(); + c.rect(x, y + h * 0.5 - 10, 20, 20); + c.fillAndStroke(); + c.rect(x, y + h * 0.75 - 10, 20, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLItemFlowLeft.prototype.cst.ITEM_FLOW_LEFT, mxShapeSysMLItemFlowLeft); +mxShapeSysMLItemFlowLeft.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0, 0.25), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0.75), true)]; + +function mxShapeSysMLItemFlowRight(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLItemFlowRight, mxShape); +mxShapeSysMLItemFlowRight.prototype.cst = { + ITEM_FLOW_RIGHT: 'mxgraph.sysml.itemFlowRight' +}; + +mxShapeSysMLItemFlowRight.prototype.paintVertexShape = function (c, x, y, w, h) { + c.rect(x, y, w - 10, h); + c.fillAndStroke(); + c.rect(x + w - 20, y + h * 0.25 - 10, 20, 20); + c.fillAndStroke(); + c.rect(x + w - 20, y + h * 0.5 - 10, 20, 20); + c.fillAndStroke(); + c.rect(x + w - 20, y + h * 0.75 - 10, 20, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLItemFlowRight.prototype.cst.ITEM_FLOW_RIGHT, mxShapeSysMLItemFlowRight); +mxShapeSysMLItemFlowRight.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(1, 0.25), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.75), true)]; + +function mxShapeSysMLNestedPort(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLNestedPort, mxShape); +mxShapeSysMLNestedPort.prototype.cst = { + NESTED_PORT: 'mxgraph.sysml.nestedPort' +}; + +mxShapeSysMLNestedPort.prototype.paintVertexShape = function (c, x, y, w, h) { + c.rect(x + w * 0.08, y, w * 0.92, h); + c.fillAndStroke(); + c.rect(x + w * 0.03, y + h * 0.1, w * 0.1, h * 0.8); + c.fillAndStroke(); + c.rect(x, y + h * 0.15, w * 0.06, h * 0.16); + c.fillAndStroke(); + c.rect(x, y + h * 0.42, w * 0.06, h * 0.16); + c.fillAndStroke(); + c.rect(x, y + h * 0.69, w * 0.06, h * 0.16); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLNestedPort.prototype.cst.NESTED_PORT, mxShapeSysMLNestedPort); +mxMarker.addMarker('sysMLPackCont', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + var a = size / 2; + return function () { + c.begin(); + c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2); + c.lineTo(pe.x - nx / 2 + ny / 2, pe.y - ny / 2 - nx / 2); + c.stroke(); + c.ellipse(pe.x - 0.5 * nx - a, pe.y - 0.5 * ny - a, 2 * a, 2 * a); + c.stroke(); + }; +}); +mxMarker.addMarker('sysMLReqInt', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + var a = size / 2; + return function () { + var fillColor = mxUtils.getValue(shape.style, mxConstants.STYLE_FILLCOLOR, 'none'); + c.setFillColor(fillColor); + c.ellipse(pe.x - 0.5 * nx - a, pe.y - 0.5 * ny - a, 2 * a, 2 * a); + c.fillAndStroke(); + }; +}); +mxMarker.addMarker('sysMLProvInt', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + var a = size / 2; + return function () { + var fillColor = mxUtils.getValue(shape.style, mxConstants.STYLE_FILLCOLOR, 'none'); + c.setFillColor(fillColor); + c.begin(); + c.moveTo(pe.x - ny / 2, pe.y + nx / 2); + c.arcTo(a, a, 0, 0, 1, pe.x + ny / 2, pe.y - nx / 2); + c.fillAndStroke(); + }; +}); + +function mxShapeSysMLParametricDiagram(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLParametricDiagram, mxShape); +mxShapeSysMLParametricDiagram.prototype.cst = { + PARAM_DGM: 'mxgraph.sysml.paramDgm' +}; + +mxShapeSysMLParametricDiagram.prototype.paintVertexShape = function (c, x, y, w, h) { + c.roundrect(x, y, w, h, 10, 10); + c.fillAndStroke(); + c.setShadow(false); + + if (h > 60) { + c.rect(x, y + h * 0.25 - 10, 20, 20); + c.stroke(); + c.rect(x, y + h * 0.75 - 10, 20, 20); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLParametricDiagram.prototype.cst.PARAM_DGM, mxShapeSysMLParametricDiagram); + +function mxShapeSysMLConstraintProperty(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLConstraintProperty, mxShape); +mxShapeSysMLConstraintProperty.prototype.cst = { + CONS_PROP: 'mxgraph.sysml.consProp' +}; + +mxShapeSysMLConstraintProperty.prototype.paintVertexShape = function (c, x, y, w, h) { + c.rect(x, y, w, h); + c.fillAndStroke(); + c.setShadow(false); + + if (h > 60) { + c.rect(x, y + 50, 20, 20); + c.stroke(); + c.rect(x, y + 80, 20, 20); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLConstraintProperty.prototype.cst.CONS_PROP, mxShapeSysMLConstraintProperty); + +function mxShapeSysMLCallBehaviorAction(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLCallBehaviorAction, mxShape); +mxShapeSysMLCallBehaviorAction.prototype.cst = { + CALL_BEH_ACT: 'mxgraph.sysml.callBehAct' +}; + +mxShapeSysMLCallBehaviorAction.prototype.paintVertexShape = function (c, x, y, w, h) { + c.roundrect(x, y, w, h, 10, 10); + c.fillAndStroke(); + + if (h > 30 && w > 40) { + c.setShadow(false); + this.drawSymb(c, x + w - 30, y + h - 30, 20, 20); + } +}; + +mxShapeSysMLCallBehaviorAction.prototype.drawSymb = function (c, x, y, w, h) { + c.begin(); + c.moveTo(x + w * 0.5, y); + c.lineTo(x + w * 0.5, y + h); + c.moveTo(x, y + h); + c.lineTo(x, y + h * 0.5); + c.lineTo(x + w, y + h * 0.5); + c.lineTo(x + w, y + h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLCallBehaviorAction.prototype.cst.CALL_BEH_ACT, mxShapeSysMLCallBehaviorAction); + +mxShapeSysMLCallBehaviorAction.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -2.9, -2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, 2.9, -2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + return constr; +}; + +function mxShapeSysMLAcceptEventAction(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLAcceptEventAction, mxShape); +mxShapeSysMLAcceptEventAction.prototype.cst = { + ACC_EVENT: 'mxgraph.sysml.accEvent' +}; + +mxShapeSysMLAcceptEventAction.prototype.paintVertexShape = function (c, x, y, w, h) { + c.begin(); + c.moveTo(x, y); + c.lineTo(x + w, y); + c.lineTo(x + w, y + h); + c.lineTo(x, y + h); + c.lineTo(x + h * 0.3, y + h * 0.5); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLAcceptEventAction.prototype.cst.ACC_EVENT, mxShapeSysMLAcceptEventAction); + +mxShapeSysMLAcceptEventAction.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, h * 0.3, 0)); + return constr; +}; + +function mxShapeSysMLTimeEvent(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLTimeEvent, mxShape); +mxShapeSysMLTimeEvent.prototype.cst = { + TIME_EVENT: 'mxgraph.sysml.timeEvent' +}; + +mxShapeSysMLTimeEvent.prototype.paintVertexShape = function (c, x, y, w, h) { + c.begin(); + c.moveTo(x, y); + c.lineTo(x + w, y); + c.lineTo(x, y + h); + c.lineTo(x + w, y + h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLTimeEvent.prototype.cst.TIME_EVENT, mxShapeSysMLTimeEvent); + +mxShapeSysMLTimeEvent.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.5), false)); + return constr; +}; + +function mxShapeSysMLSendSignalAction(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLSendSignalAction, mxShape); +mxShapeSysMLSendSignalAction.prototype.cst = { + SEND_SIG_ACT: 'mxgraph.sysml.sendSigAct' +}; + +mxShapeSysMLSendSignalAction.prototype.paintVertexShape = function (c, x, y, w, h) { + c.begin(); + c.moveTo(x, y); + c.lineTo(x + w - h * 0.3, y); + c.lineTo(x + w, y + h * 0.5); + c.lineTo(x + w - h * 0.3, y + h); + c.lineTo(x, y + h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLSendSignalAction.prototype.cst.SEND_SIG_ACT, mxShapeSysMLSendSignalAction); + +mxShapeSysMLSendSignalAction.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -h * 0.3, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -h * 0.3, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + return constr; +}; + +function mxShapeSysMLActivityFinal(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLActivityFinal, mxShape); +mxShapeSysMLActivityFinal.prototype.cst = { + ACT_FINAL: 'mxgraph.sysml.actFinal' +}; + +mxShapeSysMLActivityFinal.prototype.paintVertexShape = function (c, x, y, w, h) { + c.ellipse(x, y, w, h); + c.fillAndStroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.ellipse(x + 5, y + 5, w - 10, h - 10); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLActivityFinal.prototype.cst.ACT_FINAL, mxShapeSysMLActivityFinal); + +mxShapeSysMLActivityFinal.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + return constr; +}; + +function mxShapeSysMLActivityParameterNode(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLActivityParameterNode, mxShape); +mxShapeSysMLActivityParameterNode.prototype.cst = { + ACT_PARAM_NODE: 'mxgraph.sysml.actParamNode' +}; + +mxShapeSysMLActivityParameterNode.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + var minX = Math.max(w * 0.35, 70); + var maxX = Math.min(w * 0.65, w - 10); + c.begin(); + c.moveTo(minX, h); + c.lineTo(10, h); + c.lineTo(10, 0); + c.lineTo(minX, 0); + c.moveTo(maxX, h); + c.lineTo(w - 10, h); + c.lineTo(w - 10, 0); + c.lineTo(maxX, 0); + c.stroke(); + var xSize = 50; + var ySize = 20; + xSize = Math.min(xSize, w); + + if (xSize > ySize) { + c.begin(); + c.moveTo(10, ySize); + c.lineTo(xSize - ySize * 0.5, ySize); + c.lineTo(xSize, ySize * 0.5); + c.lineTo(xSize, 0); + c.lineTo(10, 0); + c.close(); + c.fillAndStroke(); + } + + c.rect(0, h * 0.35 - 10, 20, 20); + c.fillAndStroke(); + c.rect(0, h * 0.65 - 10, 20, 20); + c.fillAndStroke(); + c.rect(w - 20, h * 0.5 - 10, 20, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLActivityParameterNode.prototype.cst.ACT_PARAM_NODE, mxShapeSysMLActivityParameterNode); + +mxShapeSysMLActivityParameterNode.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.35), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.65), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + return constr; +}; + +function mxShapeSysMLControlOperator(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLControlOperator, mxShape); +mxShapeSysMLControlOperator.prototype.cst = { + CONT_OPER: 'mxgraph.sysml.contOper' +}; + +mxShapeSysMLControlOperator.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeSysMLControlOperator.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeSysMLControlOperator.prototype.foreground = function (c, x, y, w, h) { + var xSize = 130; + var ySize = 20; + xSize = Math.min(xSize, w); + + if (xSize > ySize) { + c.begin(); + c.moveTo(0, ySize); + c.lineTo(xSize - ySize * 0.5, ySize); + c.lineTo(xSize, ySize * 0.5); + c.lineTo(xSize, 0); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLControlOperator.prototype.cst.CONT_OPER, mxShapeSysMLControlOperator); + +function mxShapeSysMLFlowFinal(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLFlowFinal, mxShape); +mxShapeSysMLFlowFinal.prototype.cst = { + FLOW_FINAL: 'mxgraph.sysml.flowFinal' +}; + +mxShapeSysMLFlowFinal.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.145, h * 0.145); + c.lineTo(w * 0.855, h * 0.855); + c.moveTo(w * 0.855, h * 0.145); + c.lineTo(w * 0.145, h * 0.855); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLFlowFinal.prototype.cst.FLOW_FINAL, mxShapeSysMLFlowFinal); + +mxShapeSysMLFlowFinal.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + return constr; +}; + +function mxShapeSysMLIsControl(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLIsControl, mxShape); +mxShapeSysMLIsControl.prototype.cst = { + IS_CONTROL: 'mxgraph.sysml.isControl' +}; + +mxShapeSysMLIsControl.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(0, h * 0.5 - 10, 10, 20); + c.fillAndStroke(); + c.roundrect(10, 0, w - 20, h, 10, 10); + c.fillAndStroke(); + c.rect(w - 10, h * 0.5 - 10, 10, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLIsControl.prototype.cst.IS_CONTROL, mxShapeSysMLIsControl); + +mxShapeSysMLIsControl.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + return constr; +}; + +function mxShapeSysMLIsStream(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLIsStream, mxShape); +mxShapeSysMLIsStream.prototype.cst = { + IS_STREAM: 'mxgraph.sysml.isStream' +}; + +mxShapeSysMLIsStream.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + c.setFillColor(strokeColor); + c.rect(0, h * 0.5 - 10, 10, 20); + c.fillAndStroke(); + c.setFillColor(fillColor); + c.roundrect(10, 0, w - 20, h, 10, 10); + c.fillAndStroke(); + c.setFillColor(strokeColor); + c.rect(w - 10, h * 0.5 - 10, 10, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLIsStream.prototype.cst.IS_STREAM, mxShapeSysMLIsStream); + +mxShapeSysMLIsStream.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + return constr; +}; + +function mxShapeSysMLIsActStream(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLIsActStream, mxShape); +mxShapeSysMLIsActStream.prototype.cst = { + IS_ACT_STREAM: 'mxgraph.sysml.isActStream' +}; + +mxShapeSysMLIsActStream.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.rect(0, 0, w - 10, h); + c.fillAndStroke(); + var xSize = 40; + var ySize = 20; + xSize = Math.min(xSize, w); + + if (xSize > ySize) { + c.begin(); + c.moveTo(0, ySize); + c.lineTo(xSize - ySize * 0.5, ySize); + c.lineTo(xSize, ySize * 0.5); + c.lineTo(xSize, 0); + c.lineTo(0, 0); + c.close(); + c.fillAndStroke(); + } + + c.rect(w - 20, h * 0.5 - 10, 20, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLIsActStream.prototype.cst.IS_ACT_STREAM, mxShapeSysMLIsActStream); + +mxShapeSysMLIsActStream.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + return constr; +}; + +function mxShapeSysMLParameterSet(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLParameterSet, mxShape); +mxShapeSysMLParameterSet.prototype.cst = { + PARAM_SET: 'mxgraph.sysml.paramSet' +}; + +mxShapeSysMLParameterSet.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(0, h * 0.5 - 28, 10, 56); + c.fillAndStroke(); + c.roundrect(10, 0, w - 20, h, 10, 10); + c.fillAndStroke(); + c.rect(w - 10, h * 0.5 - 28, 10, 56); + c.fillAndStroke(); + c.setShadow(false); + c.rect(4, h * 0.5 - 24, 6, 20); + c.fillAndStroke(); + c.rect(4, h * 0.5 + 4, 6, 20); + c.fillAndStroke(); + c.rect(w - 10, h * 0.5 - 24, 6, 20); + c.fillAndStroke(); + c.rect(w - 10, h * 0.5 + 4, 6, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLParameterSet.prototype.cst.PARAM_SET, mxShapeSysMLParameterSet); + +mxShapeSysMLParameterSet.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + return constr; +}; + +function mxShapeSysMLParameterActivitySet(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLParameterActivitySet, mxShape); +mxShapeSysMLParameterActivitySet.prototype.cst = { + PARAM_ACT_SET: 'mxgraph.sysml.paramActSet' +}; + +mxShapeSysMLParameterActivitySet.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.rect(10, 0, w - 20, h); + c.fillAndStroke(); + var xSize = 50; + var ySize = 20; + xSize = Math.min(xSize, w); + + if (xSize > ySize) { + c.begin(); + c.moveTo(10, ySize); + c.lineTo(xSize - ySize * 0.5, ySize); + c.lineTo(xSize, ySize * 0.5); + c.lineTo(xSize, 0); + c.lineTo(10, 0); + c.close(); + c.fillAndStroke(); + } + + c.setShadow(false); + + if (h > 70) { + c.rect(0, h * 0.5 - 28, 15, 56); + c.fillAndStroke(); + c.rect(4, h * 0.5 - 24, 15, 20); + c.fillAndStroke(); + c.rect(4, h * 0.5 + 4, 15, 20); + c.fillAndStroke(); + c.rect(w - 15, h * 0.5 - 28, 15, 56); + c.fillAndStroke(); + c.rect(w - 19, h * 0.5 - 24, 15, 20); + c.fillAndStroke(); + c.rect(w - 19, h * 0.5 + 4, 15, 20); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLParameterActivitySet.prototype.cst.PARAM_ACT_SET, mxShapeSysMLParameterActivitySet); + +mxShapeSysMLParameterActivitySet.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + return constr; +}; + +function mxShapeSysMLProbability(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLProbability, mxShape); +mxShapeSysMLProbability.prototype.cst = { + PROBABILITY: 'mxgraph.sysml.probability' +}; + +mxShapeSysMLProbability.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.roundrect(0, 0, w - 10, h, 10, 10); + c.fillAndStroke(); + c.rect(w - 10, h * 0.25 - 28, 10, 56); + c.fillAndStroke(); + c.rect(w - 10, h * 0.75 - 28, 10, 56); + c.fillAndStroke(); + c.setShadow(false); + c.rect(w - 10, h * 0.25 - 24, 6, 20); + c.fillAndStroke(); + c.rect(w - 10, h * 0.25 + 4, 6, 20); + c.fillAndStroke(); + c.rect(w - 10, h * 0.75 - 24, 6, 20); + c.fillAndStroke(); + c.rect(w - 10, h * 0.75 + 4, 6, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLProbability.prototype.cst.PROBABILITY, mxShapeSysMLProbability); + +mxShapeSysMLProbability.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false, null, -5, 0)); + return constr; +}; + +function mxShapeSysMLActivityProbability(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLActivityProbability, mxShape); +mxShapeSysMLActivityProbability.prototype.cst = { + ACT_PROB: 'mxgraph.sysml.actProb' +}; + +mxShapeSysMLActivityProbability.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.rect(0, 0, w - 10, h); + c.fillAndStroke(); + var xSize = 40; + var ySize = 20; + xSize = Math.min(xSize, w); + + if (xSize > ySize) { + c.begin(); + c.moveTo(0, ySize); + c.lineTo(xSize - ySize * 0.5, ySize); + c.lineTo(xSize, ySize * 0.5); + c.lineTo(xSize, 0); + c.lineTo(0, 0); + c.close(); + c.fillAndStroke(); + } + + c.setShadow(false); + + if (h > 70) { + c.rect(w - 15, h * 0.25 - 28, 15, 56); + c.fillAndStroke(); + c.rect(w - 19, h * 0.25 - 24, 15, 20); + c.fillAndStroke(); + c.rect(w - 19, h * 0.25 + 4, 15, 20); + c.fillAndStroke(); + c.rect(w - 15, h * 0.75 - 28, 15, 56); + c.fillAndStroke(); + c.rect(w - 19, h * 0.75 - 24, 15, 20); + c.fillAndStroke(); + c.rect(w - 19, h * 0.75 + 4, 15, 20); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLActivityProbability.prototype.cst.ACT_PROB, mxShapeSysMLActivityProbability); + +mxShapeSysMLActivityProbability.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false, null, -5, 0)); + return constr; +}; + +function mxShapeSysMLObjectFlowRight(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLObjectFlowRight, mxShape); +mxShapeSysMLObjectFlowRight.prototype.cst = { + OBJ_FLOW_R: 'mxgraph.sysml.objFlowR' +}; + +mxShapeSysMLObjectFlowRight.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.roundrect(0, 0, w - 10, h, 10, 10); + c.fillAndStroke(); + c.rect(w - 10, h * 0.5 - 10, 10, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLObjectFlowRight.prototype.cst.OBJ_FLOW_R, mxShapeSysMLObjectFlowRight); + +mxShapeSysMLObjectFlowRight.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false, null, -5, 0)); + return constr; +}; + +function mxShapeSysMLObjectFlowLeft(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLObjectFlowLeft, mxShape); +mxShapeSysMLObjectFlowLeft.prototype.cst = { + OBJ_FLOW_L: 'mxgraph.sysml.objFlowL' +}; + +mxShapeSysMLObjectFlowLeft.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.rect(0, h * 0.5 - 10, 10, 20); + c.fillAndStroke(); + c.roundrect(10, 0, w - 10, h, 10, 10); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLObjectFlowLeft.prototype.cst.OBJ_FLOW_L, mxShapeSysMLObjectFlowLeft); + +mxShapeSysMLObjectFlowLeft.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false, null, 5, 0)); + return constr; +}; + +function mxShapeSysMLActivityPartition(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLActivityPartition, mxShape); +mxShapeSysMLActivityPartition.prototype.cst = { + ACT_PART: 'mxgraph.sysml.actPart' +}; + +mxShapeSysMLActivityPartition.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, h); + c.moveTo(w, 0); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLActivityPartition.prototype.cst.ACT_PART, mxShapeSysMLActivityPartition); + +function mxShapeSysMLContinuation(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLContinuation, mxShape); +mxShapeSysMLContinuation.prototype.cst = { + CONT: 'mxgraph.sysml.cont' +}; + +mxShapeSysMLContinuation.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + + if (w > h) { + var r = h * 0.5; + c.begin(); + c.moveTo(w - r, 0); + c.arcTo(r, r, 0, 0, 1, w - r, h); + c.lineTo(r, h); + c.arcTo(r, r, 0, 0, 1, r, 0); + c.close(); + c.fillAndStroke(); + } else { + var r = w * 0.5; + c.begin(); + c.moveTo(0, h - r); + c.arcTo(r, r, 0, 0, 0, w, h - r); + c.lineTo(w, r); + c.arcTo(r, r, 0, 0, 0, 0, r); + c.close(); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLContinuation.prototype.cst.CONT, mxShapeSysMLContinuation); + +mxShapeSysMLContinuation.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + + if (w > h) { + var r = h * 0.5; + + if (w > 2 * h) { + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + } + } else { + var r = w * 0.5; + + if (h > 2 * w) { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + } + } + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.29, r * 0.29)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.29, r * 0.29)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.29, h - r * 0.29)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.29, h - r * 0.29)); + return constr; +}; + +function mxShapeSysMLCoregion(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLCoregion, mxShape); +mxShapeSysMLCoregion.prototype.cst = { + COREGION: 'mxgraph.sysml.coregion' +}; + +mxShapeSysMLCoregion.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + var brack = 10; + brack = Math.min(brack, h); + c.begin(); + c.moveTo(0, brack); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, brack); + c.moveTo(0, h - brack); + c.lineTo(0, h); + c.lineTo(w, h); + c.lineTo(w, h - brack); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLCoregion.prototype.cst.COREGION, mxShapeSysMLCoregion); +mxMarker.addMarker('sysMLx', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + return function () { + c.begin(); + c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2); + c.lineTo(pe.x + nx / 2 + ny / 2, pe.y + ny / 2 - nx / 2); + c.moveTo(pe.x + nx / 2 - ny / 2, pe.y + ny / 2 + nx / 2); + c.lineTo(pe.x - nx / 2 + ny / 2, pe.y - ny / 2 - nx / 2); + c.stroke(); + }; +}); + +function mxShapeSysMLDimension(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLDimension, mxShape); +mxShapeSysMLDimension.prototype.cst = { + DIMENSION: 'mxgraph.sysml.dimension' +}; + +mxShapeSysMLDimension.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeSysMLDimension.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 20); + c.lineTo(w, 20); + c.moveTo(10, 15); + c.lineTo(0, 20); + c.lineTo(10, 25); + c.moveTo(w - 10, 15); + c.lineTo(w, 20); + c.lineTo(w - 10, 25); + c.moveTo(0, 15); + c.lineTo(0, h); + c.moveTo(w, 15); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLDimension.prototype.cst.DIMENSION, mxShapeSysMLDimension); +mxMarker.addMarker('sysMLLost', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + var a = size / 2; + return function () { + c.begin(); + c.moveTo(pe.x - 1.5 * nx - ny / 2, pe.y - 1.5 * ny + nx / 2); + c.lineTo(pe.x - nx / 2, pe.y - ny / 2); + c.lineTo(pe.x - 1.5 * nx + ny / 2, pe.y - 1.5 * ny - nx / 2); + c.stroke(); + c.ellipse(pe.x - 0.5 * nx - a, pe.y - 0.5 * ny - a, 2 * a, 2 * a); + var strokeColor = mxUtils.getValue(shape.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.fillAndStroke(); + }; +}); +mxMarker.addMarker('sysMLFound', function (c, shape, type, pe, unitX, unitY, size, source, sw, filled) { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + var a = size / 2; + return function () { + c.ellipse(pe.x - 0.5 * nx - a, pe.y - 0.5 * ny - a, 2 * a, 2 * a); + var strokeColor = mxUtils.getValue(shape.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.fillAndStroke(); + }; +}); + +function mxShapeSysMLCompositeState(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLCompositeState, mxShape); +mxShapeSysMLCompositeState.prototype.cst = { + COMP_STATE: 'mxgraph.sysml.compState' +}; + +mxShapeSysMLCompositeState.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeSysMLCompositeState.prototype.background = function (c, x, y, w, h) { + var tabH = 20; + var tabW = 110; + c.roundrect(0, tabH, w, h - tabH, 10, 10); + c.fillAndStroke(); + c.rect(15, 0, tabW, tabH); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLCompositeState.prototype.cst.COMP_STATE, mxShapeSysMLCompositeState); + +mxShapeSysMLCompositeState.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 22.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 2.9, 22.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - 20) * 0.25 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - 20) * 0.5 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - 20) * 0.75 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, (h - 20) * 0.25 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, (h - 20) * 0.5 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, (h - 20) * 0.75 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 15, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 70, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 125, 0)); + + if (w * 0.75 > 125) { + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, 20)); + + if (w * 0.5 > 125) { + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, 20)); + + if (w * 0.25 > 125) { + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, 20)); + } + } + } + + return constr; +}; + +function mxShapeSysMLRegion(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLRegion, mxShape); +mxShapeSysMLRegion.prototype.cst = { + REGION: 'mxgraph.sysml.region' +}; + +mxShapeSysMLRegion.prototype.paintVertexShape = function (c, x, y, w, h) { + var tabH = 20; + var tabW = 50; + c.translate(x, y); + this.background(c, x, y, w, h, tabH, tabW); + c.setShadow(false); + this.foreground(c, x, y, w, h, tabH, tabW); +}; + +mxShapeSysMLRegion.prototype.background = function (c, x, y, w, h, tabH, tabW) { + var strokeW = parseInt(mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1')); + c.roundrect(0, tabH, w, h - tabH, 10, 10); + c.fillAndStroke(); + c.setStrokeWidth(strokeW * 2); + c.rect(15, 0, tabW, tabH); + c.fillAndStroke(); + c.setStrokeWidth(strokeW); +}; + +mxShapeSysMLRegion.prototype.foreground = function (c, x, y, w, h, tabH, tabW) { + c.setDashed(true); + c.begin(); + c.moveTo(w * 0.5, tabH); + c.lineTo(w * 0.5, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLRegion.prototype.cst.REGION, mxShapeSysMLRegion); + +mxShapeSysMLRegion.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 22.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 2.9, 22.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - 20) * 0.25 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - 20) * 0.5 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - 20) * 0.75 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, (h - 20) * 0.25 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, (h - 20) * 0.5 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, (h - 20) * 0.75 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 15, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 40, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 65, 0)); + + if (w * 0.75 > 65) { + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, 20)); + + if (w * 0.5 > 65) { + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, 20)); + + if (w * 0.25 > 65) { + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, 20)); + } + } + } + + return constr; +}; + +function mxShapeSysMLSimpleState(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLSimpleState, mxShape); +mxShapeSysMLSimpleState.prototype.cst = { + SIMPLE_STATE: 'mxgraph.sysml.simpleState' +}; + +mxShapeSysMLSimpleState.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); +}; + +mxShapeSysMLSimpleState.prototype.background = function (c, x, y, w, h) { + var strokeW = parseInt(mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1')); + c.roundrect(0, 0, w, h, 10, 10); + c.fillAndStroke(); +}; + +mxShapeSysMLSimpleState.prototype.foreground = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, 20); + c.lineTo(w, 20); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLSimpleState.prototype.cst.SIMPLE_STATE, mxShapeSysMLSimpleState); + +mxShapeSysMLSimpleState.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + return constr; +}; + +function mxShapeSysMLStateMachine(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLStateMachine, mxShape); +mxShapeSysMLStateMachine.prototype.cst = { + STATE_MACHINE: 'mxgraph.sysml.stateMachine' +}; + +mxShapeSysMLStateMachine.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeSysMLStateMachine.prototype.background = function (c, x, y, w, h) { + c.roundrect(0, 0, w - 10, h, 10, 10); + c.fillAndStroke(); +}; + +mxShapeSysMLStateMachine.prototype.foreground = function (c, x, y, w, h) { + var strokeC = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeC); + c.ellipse(w - 20, h * 0.5 - 10, 20, 20); + c.stroke(); + c.ellipse(w - 17, h * 0.5 - 7, 14, 14); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLStateMachine.prototype.cst.STATE_MACHINE, mxShapeSysMLStateMachine); + +mxShapeSysMLStateMachine.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 12.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 12.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false, null, -10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false, null, -10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + return constr; +}; + +function mxShapeSysMLX(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLX, mxShape); +mxShapeSysMLX.prototype.cst = { + X: 'mxgraph.sysml.x' +}; + +mxShapeSysMLX.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, h); + c.moveTo(0, h); + c.lineTo(w, 0); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLX.prototype.cst.X, mxShapeSysMLX); + +mxShapeSysMLX.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + return constr; +}; + +function mxShapeSysMLSubmachineState(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLSubmachineState, mxShape); +mxShapeSysMLSubmachineState.prototype.cst = { + SUBMACHINE_STATE: 'mxgraph.sysml.submState' +}; + +mxShapeSysMLSubmachineState.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeSysMLSubmachineState.prototype.background = function (c, x, y, w, h) { + c.roundrect(0, 0, w - 10, h, 10, 10); + c.fillAndStroke(); +}; + +mxShapeSysMLSubmachineState.prototype.foreground = function (c, x, y, w, h) { + var strokeC = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeC); + c.ellipse(w - 20, h * 0.5 - 10, 20, 20); + c.stroke(); + c.ellipse(w - 17, h * 0.5 - 7, 14, 14); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLSubmachineState.prototype.cst.SUBMACHINE_STATE, mxShapeSysMLSubmachineState); + +mxShapeSysMLSubmachineState.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 12.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 12.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false, null, -10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false, null, -10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + return constr; +}; + +function mxShapeSysMLUseCaseExtensionPoints(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapeSysMLUseCaseExtensionPoints, mxShape); +mxShapeSysMLUseCaseExtensionPoints.prototype.cst = { + USE_CASE_EXT_PT: 'mxgraph.sysml.useCaseExtPt' +}; + +mxShapeSysMLUseCaseExtensionPoints.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeSysMLUseCaseExtensionPoints.prototype.background = function (c, x, y, w, h) { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeSysMLUseCaseExtensionPoints.prototype.foreground = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w * 0.02, h * 0.35); + c.lineTo(w * 0.98, h * 0.35); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLUseCaseExtensionPoints.prototype.cst.USE_CASE_EXT_PT, mxShapeSysMLUseCaseExtensionPoints); + +mxShapeSysMLUseCaseExtensionPoints.prototype.getConstraints = function (style, w, h) { + var constr = []; + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.145), false)); + return constr; +}; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/pid2/mxPidInstruments.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/pid2/mxPidInstruments.js new file mode 100644 index 0000000000000..f13549b056d39 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/pid2/mxPidInstruments.js @@ -0,0 +1,545 @@ +"use strict"; + +function mxShapePidDiscInst(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapePidDiscInst, mxShape); +mxShapePidDiscInst.prototype.cst = { + SHAPE_DISC_INST: 'mxgraph.pid2inst.discInst', + MOUNTING: 'mounting', + FIELD: 'field', + ROOM: 'room', + INACCESSIBLE: 'inaccessible', + LOCAL: 'local' +}; +mxShapePidDiscInst.prototype.customProperties = [{ + name: 'mounting', + dispName: 'Mounting', + type: 'enum', + defVal: 'field', + enumList: [{ + val: 'field', + dispName: 'Field' + }, { + val: 'room', + dispName: 'Room' + }, { + val: 'inaccessible', + dispName: 'Inaccessible' + }, { + val: 'local', + dispName: 'Local' + }] +}]; + +mxShapePidDiscInst.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidDiscInst.prototype.background = function (c, x, y, w, h) { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapePidDiscInst.prototype.foreground = function (c, x, y, w, h) { + var mounting = mxUtils.getValue(this.style, mxShapePidDiscInst.prototype.cst.MOUNTING, 'field'); + + if (mounting === mxShapePidDiscInst.prototype.cst.ROOM) { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } else if (mounting === mxShapePidDiscInst.prototype.cst.INACCESSIBLE) { + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } else if (mounting === mxShapePidDiscInst.prototype.cst.LOCAL) { + c.begin(); + c.moveTo(w * 0.005, h * 0.48); + c.lineTo(w * 0.995, h * 0.48); + c.moveTo(w * 0.005, h * 0.52); + c.lineTo(w * 0.995, h * 0.52); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidDiscInst.prototype.cst.SHAPE_DISC_INST, mxShapePidDiscInst); +mxShapePidDiscInst.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(0.145, 0.145), false), new mxConnectionConstraint(new mxPoint(0.145, 0.855), false), new mxConnectionConstraint(new mxPoint(0.855, 0.145), false), new mxConnectionConstraint(new mxPoint(0.855, 0.855), false)]; + +function mxShapePidSharedCont(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapePidSharedCont, mxShape); +mxShapePidSharedCont.prototype.cst = { + SHAPE_SHARED_CONT: 'mxgraph.pid2inst.sharedCont', + MOUNTING: 'mounting', + FIELD: 'field', + ROOM: 'room', + INACCESSIBLE: 'inaccessible', + LOCAL: 'local' +}; +mxShapePidSharedCont.prototype.customProperties = [{ + name: 'mounting', + dispName: 'Mounting', + type: 'enum', + defVal: 'field', + enumList: [{ + val: 'field', + dispName: 'Field' + }, { + val: 'room', + dispName: 'Room' + }, { + val: 'inaccessible', + dispName: 'Inaccessible' + }, { + val: 'local', + dispName: 'Local' + }] +}]; + +mxShapePidSharedCont.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidSharedCont.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapePidSharedCont.prototype.foreground = function (c, x, y, w, h) { + var mounting = mxUtils.getValue(this.style, mxShapePidSharedCont.prototype.cst.MOUNTING, 'field'); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + if (mounting === mxShapePidSharedCont.prototype.cst.ROOM) { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } else if (mounting === mxShapePidSharedCont.prototype.cst.INACCESSIBLE) { + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } else if (mounting === mxShapePidDiscInst.prototype.cst.LOCAL) { + c.begin(); + c.moveTo(w * 0.005, h * 0.48); + c.lineTo(w * 0.995, h * 0.48); + c.moveTo(w * 0.005, h * 0.52); + c.lineTo(w * 0.995, h * 0.52); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidSharedCont.prototype.cst.SHAPE_SHARED_CONT, mxShapePidSharedCont); +mxShapePidSharedCont.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0), false), new mxConnectionConstraint(new mxPoint(0, 1), false), new mxConnectionConstraint(new mxPoint(1, 0), false), new mxConnectionConstraint(new mxPoint(1, 1), false)]; + +function mxShapePidCompFunc(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapePidCompFunc, mxShape); +mxShapePidCompFunc.prototype.cst = { + SHAPE_COMP_FUNC: 'mxgraph.pid2inst.compFunc', + MOUNTING: 'mounting', + FIELD: 'field', + ROOM: 'room', + INACCESSIBLE: 'inaccessible', + LOCAL: 'local' +}; +mxShapePidCompFunc.prototype.customProperties = [{ + name: 'mounting', + dispName: 'Mounting', + type: 'enum', + defVal: 'field', + enumList: [{ + val: 'field', + dispName: 'Field' + }, { + val: 'room', + dispName: 'Room' + }, { + val: 'inaccessible', + dispName: 'Inaccessible' + }, { + val: 'local', + dispName: 'Local' + }] +}]; + +mxShapePidCompFunc.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidCompFunc.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.25, 0); + c.lineTo(w * 0.75, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.75, h); + c.lineTo(w * 0.25, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapePidCompFunc.prototype.foreground = function (c, x, y, w, h) { + var mounting = mxUtils.getValue(this.style, mxShapePidCompFunc.prototype.cst.MOUNTING, 'field'); + + if (mounting === mxShapePidCompFunc.prototype.cst.ROOM) { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } else if (mounting === mxShapePidCompFunc.prototype.cst.INACCESSIBLE) { + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } else if (mounting === mxShapePidDiscInst.prototype.cst.LOCAL) { + c.begin(); + c.moveTo(w * 0.01, h * 0.48); + c.lineTo(w * 0.99, h * 0.48); + c.moveTo(w * 0.01, h * 0.52); + c.lineTo(w * 0.99, h * 0.52); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidCompFunc.prototype.cst.SHAPE_COMP_FUNC, mxShapePidCompFunc); +mxShapePidCompFunc.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(0.25, 0), false), new mxConnectionConstraint(new mxPoint(0.75, 0), false), new mxConnectionConstraint(new mxPoint(0.25, 1), false), new mxConnectionConstraint(new mxPoint(0.75, 1), false)]; + +function mxShapePidProgLogCont(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapePidProgLogCont, mxShape); +mxShapePidProgLogCont.prototype.cst = { + SHAPE_PROG_LOG_CONT: 'mxgraph.pid2inst.progLogCont', + MOUNTING: 'mounting', + FIELD: 'field', + ROOM: 'room', + INACCESSIBLE: 'inaccessible', + LOCAL: 'local' +}; +mxShapePidProgLogCont.prototype.customProperties = [{ + name: 'mounting', + dispName: 'Mounting', + type: 'enum', + defVal: 'field', + enumList: [{ + val: 'field', + dispName: 'Field' + }, { + val: 'room', + dispName: 'Room' + }, { + val: 'inaccessible', + dispName: 'Inaccessible' + }, { + val: 'local', + dispName: 'Local' + }] +}]; + +mxShapePidProgLogCont.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidProgLogCont.prototype.background = function (c, x, y, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapePidProgLogCont.prototype.foreground = function (c, x, y, w, h) { + var mounting = mxUtils.getValue(this.style, mxShapePidProgLogCont.prototype.cst.MOUNTING, 'field'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + + if (mounting === mxShapePidProgLogCont.prototype.cst.ROOM) { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } else if (mounting === mxShapePidProgLogCont.prototype.cst.INACCESSIBLE) { + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } else if (mounting === mxShapePidDiscInst.prototype.cst.LOCAL) { + c.begin(); + c.moveTo(w * 0.02, h * 0.48); + c.lineTo(w * 0.98, h * 0.48); + c.moveTo(w * 0.02, h * 0.52); + c.lineTo(w * 0.98, h * 0.52); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidProgLogCont.prototype.cst.SHAPE_PROG_LOG_CONT, mxShapePidProgLogCont); +mxShapePidProgLogCont.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(0, 0), false), new mxConnectionConstraint(new mxPoint(0, 1), false), new mxConnectionConstraint(new mxPoint(1, 0), false), new mxConnectionConstraint(new mxPoint(1, 1), false)]; + +function mxShapePidIndicator(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapePidIndicator, mxShape); +mxShapePidIndicator.prototype.cst = { + SHAPE_INDICATOR: 'mxgraph.pid2inst.indicator', + MOUNTING: 'mounting', + FIELD: 'field', + ROOM: 'room', + INACCESSIBLE: 'inaccessible', + LOCAL: 'local', + IND_TYPE: 'indType', + INSTRUMENT: 'inst', + CONTROL: 'ctrl', + FUNCTION: 'func', + PLC: 'plc' +}; +mxShapePidIndicator.prototype.customProperties = [{ + name: 'mounting', + dispName: 'Mounting', + type: 'enum', + defVal: 'field', + enumList: [{ + val: 'field', + dispName: 'Field' + }, { + val: 'room', + dispName: 'Room' + }, { + val: 'inaccessible', + dispName: 'Inaccessible' + }, { + val: 'local', + dispName: 'Local' + }] +}, { + name: 'indType', + dispName: 'Type', + type: 'enum', + defVal: 'inst', + enumList: [{ + val: 'inst', + dispName: 'Instrument' + }, { + val: 'ctrl', + dispName: 'Control' + }, { + val: 'func', + dispName: 'Function' + }, { + val: 'plc', + dispName: 'PLC' + }] +}]; + +mxShapePidIndicator.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidIndicator.prototype.background = function (c, x, y, w, h) { + var type = mxUtils.getValue(this.style, mxShapePidIndicator.prototype.cst.IND_TYPE, 'inst'); + c.begin(); + c.moveTo(w * 0.5, w); + c.lineTo(w * 0.5, h); + c.stroke(); + + if (type === mxShapePidIndicator.prototype.cst.INSTRUMENT) { + c.ellipse(0, 0, w, w); + c.fillAndStroke(); + } else if (type === mxShapePidIndicator.prototype.cst.CONTROL) { + c.rect(0, 0, w, w); + c.fillAndStroke(); + } else if (type === mxShapePidIndicator.prototype.cst.FUNCTION) { + c.begin(); + c.moveTo(0, w * 0.5); + c.lineTo(w * 0.25, 0); + c.lineTo(w * 0.75, 0); + c.lineTo(w, w * 0.5); + c.lineTo(w * 0.75, w); + c.lineTo(w * 0.25, w); + c.close(); + c.fillAndStroke(); + } else if (type === mxShapePidIndicator.prototype.cst.PLC) { + c.rect(0, 0, w, w); + c.fillAndStroke(); + } +}; + +mxShapePidIndicator.prototype.foreground = function (c, x, y, w, h) { + var mounting = mxUtils.getValue(this.style, mxShapePidIndicator.prototype.cst.MOUNTING, 'field'); + var type = mxUtils.getValue(this.style, mxShapePidIndicator.prototype.cst.IND_TYPE, 'inst'); + + if (type === mxShapePidIndicator.prototype.cst.CONTROL) { + c.ellipse(0, 0, w, w); + c.stroke(); + } else if (type === mxShapePidIndicator.prototype.cst.PLC) { + c.begin(); + c.moveTo(0, w * 0.5); + c.lineTo(w * 0.5, 0); + c.lineTo(w, w * 0.5); + c.lineTo(w * 0.5, w); + c.close(); + c.stroke(); + } + + if (mounting === mxShapePidIndicator.prototype.cst.ROOM) { + c.begin(); + c.moveTo(0, w * 0.5); + c.lineTo(w, w * 0.5); + c.stroke(); + } else if (mounting === mxShapePidIndicator.prototype.cst.INACCESSIBLE) { + c.setDashed(true); + c.begin(); + c.moveTo(0, w * 0.5); + c.lineTo(w, w * 0.5); + c.stroke(); + } else if (mounting === mxShapePidIndicator.prototype.cst.LOCAL) { + c.begin(); + c.moveTo(w * 0.005, w * 0.48); + c.lineTo(w * 0.995, w * 0.48); + c.moveTo(w * 0.005, w * 0.52); + c.lineTo(w * 0.995, w * 0.52); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidIndicator.prototype.cst.SHAPE_INDICATOR, mxShapePidIndicator); +mxShapePidIndicator.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 1), true)]; + +function mxShapePidLogic(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapePidLogic, mxShape); +mxShapePidLogic.prototype.cst = { + SHAPE_LOGIC: 'mxgraph.pid2inst.logic', + MOUNTING: 'mounting', + FIELD: 'field', + ROOM: 'room', + INACCESSIBLE: 'inaccessible', + LOCAL: 'local' +}; +mxShapePidLogic.prototype.customProperties = [{ + name: 'mounting', + dispName: 'Mounting', + type: 'enum', + defVal: 'field', + enumList: [{ + val: 'field', + dispName: 'Field' + }, { + val: 'room', + dispName: 'Room' + }, { + val: 'inaccessible', + dispName: 'Inaccessible' + }, { + val: 'local', + dispName: 'Local' + }] +}]; + +mxShapePidLogic.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidLogic.prototype.background = function (c, x, y, w, h) { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapePidLogic.prototype.foreground = function (c, x, y, w, h) { + var mounting = mxUtils.getValue(this.style, mxShapePidLogic.prototype.cst.MOUNTING, 'field'); + + if (mounting === mxShapePidLogic.prototype.cst.ROOM) { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } else if (mounting === mxShapePidLogic.prototype.cst.INACCESSIBLE) { + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } else if (mounting === mxShapePidLogic.prototype.cst.LOCAL) { + c.begin(); + c.moveTo(w * 0.02, h * 0.48); + c.lineTo(w * 0.98, h * 0.48); + c.moveTo(w * 0.02, h * 0.52); + c.lineTo(w * 0.98, h * 0.52); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidLogic.prototype.cst.SHAPE_LOGIC, mxShapePidLogic); +mxShapePidLogic.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5), true), new mxConnectionConstraint(new mxPoint(0.25, 0.25), false), new mxConnectionConstraint(new mxPoint(0.25, 0.75), false), new mxConnectionConstraint(new mxPoint(0.75, 0.25), false), new mxConnectionConstraint(new mxPoint(0.75, 0.75), false)]; diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/pid2/mxPidMisc.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/pid2/mxPidMisc.js new file mode 100644 index 0000000000000..955b186683cb6 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/pid2/mxPidMisc.js @@ -0,0 +1,405 @@ +"use strict"; + +function mxShapePidFan(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapePidFan, mxShape); +mxShapePidFan.prototype.cst = { + SHAPE_FAN: 'mxgraph.pid2misc.fan', + FAN_TYPE: 'fanType', + COMMON: 'common', + AXIAL: 'axial', + RADIAL: 'radial' +}; +mxShapePidFan.prototype.customProperties = [{ + name: 'fanType', + dispName: 'Type', + type: 'enum', + defVal: 'field', + enumList: [{ + val: 'common', + dispName: 'Common' + }, { + val: 'axial', + dispName: 'Axial' + }, { + val: 'radial', + dispName: 'Radial' + }] +}]; + +mxShapePidFan.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidFan.prototype.background = function (c, x, y, w, h) { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapePidFan.prototype.foreground = function (c, x, y, w, h) { + c.begin(); + c.moveTo(w * 0.3, h * 0.045); + c.lineTo(w * 0.97, h * 0.33); + c.moveTo(w * 0.3, h * 0.955); + c.lineTo(w * 0.97, h * 0.67); + c.moveTo(w * 0.4228, h * 0.3655); + c.arcTo(w * 0.15, h * 0.03, 50, 0, 1, w * 0.5, h * 0.5); + c.arcTo(w * 0, 15, h * 0.03, 50, 0, 1, w * 0.3772, h * 0.4045); + c.arcTo(w * 0.15, h * 0.03, 50, 0, 1, w * 0.3025, h * 0.271); + c.arcTo(w * 0.15, h * 0.03, 50, 0, 1, w * 0.4228, h * 0.3655); + c.close(); + c.moveTo(w * 0.377, h * 0.5973); + c.arcTo(w * 0.15, h * 0.03, -50, 0, 1, w * 0.4966, h * 0.5019); + c.arcTo(w * 0, 15, h * 0.03, -50, 0, 1, w * 0.423, h * 0.636); + c.arcTo(w * 0.15, h * 0.03, -50, 0, 1, w * 0.3034, h * 0.7314); + c.arcTo(w * 0.15, h * 0.03, -50, 0, 1, w * 0.377, h * 0.5973); + c.close(); + c.stroke(); + c.ellipse(w * 0.5, h * 0.47, w * 0.3, h * 0.06); + c.stroke(); + var type = mxUtils.getValue(this.style, mxShapePidFan.prototype.cst.FAN_TYPE, 'common'); + + if (type === mxShapePidFan.prototype.cst.AXIAL) { + c.begin(); + c.moveTo(w * 0.1, h * 0.5); + c.lineTo(w * 0.3, h * 0.5); + c.stroke(); + } else if (type === mxShapePidFan.prototype.cst.RADIAL) { + c.begin(); + c.moveTo(w * 0.2, h * 0.4); + c.lineTo(w * 0.2, h * 0.6); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidFan.prototype.cst.SHAPE_FAN, mxShapePidFan); + +function mxShapePidColumn(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapePidColumn, mxShape); +mxShapePidColumn.prototype.cst = { + SHAPE_COLUMN: 'mxgraph.pid2misc.column', + COLUMN_TYPE: 'columnType', + COMMON: 'common', + FIXED: 'fixed', + FLUIDIZED: 'fluid', + BAFFLE: 'baffle', + VALVE: 'valve', + BUBBLE: 'bubble', + NOZZLE: 'nozzle', + TRAY: 'tray' +}; +mxShapePidColumn.prototype.customProperties = [{ + name: 'columnType', + dispName: 'Type', + type: 'enum', + defVal: 'field', + enumList: [{ + val: 'common', + dispName: 'Common' + }, { + val: 'fixed', + dispName: 'Fixed' + }, { + val: 'fluid', + dispName: 'Fluid' + }, { + val: 'baffle', + dispName: 'Baffle' + }, { + val: 'valve', + dispName: 'Valve' + }, { + val: 'bubble', + dispName: 'Bubble' + }, { + val: 'nozzle', + dispName: 'Nozzle' + }, { + val: 'tray', + dispName: 'Tray' + }] +}]; + +mxShapePidColumn.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidColumn.prototype.background = function (c, x, y, w, h) { + h = Math.max(h, 30); + c.begin(); + c.moveTo(0, 15); + c.arcTo(w * 0.5, 15, 0, 0, 1, w, 15); + c.lineTo(w, h - 15); + c.arcTo(w * 0.5, 15, 0, 0, 1, 0, h - 15); + c.close(); + c.fillAndStroke(); +}; + +mxShapePidColumn.prototype.foreground = function (c, x, y, w, h) { + var type = mxUtils.getValue(this.style, mxShapePidColumn.prototype.cst.COLUMN_TYPE, 'common'); + + if (type === mxShapePidColumn.prototype.cst.FIXED) { + var step = w * 1.2; + var range = h - 50; + var rem = range % step; + var off = rem * 0.5 + 25; + c.begin(); + + for (var i = 0; i <= range - step; i += step) { + c.moveTo(0, i + off + step * 0.1); + c.lineTo(w, i + off + step * 0.1); + c.moveTo(0, i + off + step * 0.9); + c.lineTo(w, i + off + step * 0.9); + c.moveTo(0, i + off + step * 0.1); + c.lineTo(w, i + off + step * 0.9); + c.moveTo(0, i + off + step * 0.9); + c.lineTo(w, i + off + step * 0.1); + } + + c.stroke(); + } else if (type === mxShapePidColumn.prototype.cst.TRAY) { + var step = w * 0.2; + var range = h - 50; + var rem = range % step; + var off = rem * 0.5 + 25; + c.setDashed(true); + c.begin(); + + for (var i = 0; i <= range; i += step) { + c.moveTo(0, i + off); + c.lineTo(w, i + off); + } + + c.stroke(); + } else if (type === mxShapePidColumn.prototype.cst.FLUIDIZED) { + var stepY = w * 0.1; + var stepX = w * 0.1; + var range = h - 50; + var rem = range % stepY; + var off = 25; + var dot = Math.min(w, h) * 0.02; + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var dashed = mxUtils.getValue(this.style, mxConstants.STYLE_DASHED, '0'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var odd = 0; + c.setFillColor(strokeColor); + c.setDashed(true); + c.begin(); + c.moveTo(0, 25); + c.lineTo(w, 25); + c.moveTo(0, h - 25); + c.lineTo(w, h - 25); + c.stroke(); + + if (dashed === '0') { + c.setDashed(false); + } else { + c.setDashed(true); + } + + var counter = 0; + + for (var i = off + stepY * 0.5; i < range + off - dot; i += stepY) { + var startJ = stepX; + odd = counter % 2; + + if (odd === 0) { + startJ = stepX * 0.5; + } + + for (var j = startJ; j < w; j += stepX) { + c.ellipse(j, i, dot, dot); + c.fillAndStroke(); + } + + counter++; + } + } else if (type === mxShapePidColumn.prototype.cst.BAFFLE) { + var stepY = w * 0.2; + var range = h - 50 - stepY; + var rem = range % stepY; + var off = 25 + stepY * 0.5; + var odd = 0; + c.setDashed(true); + c.begin(); + c.moveTo(0, 25); + c.lineTo(w, 25); + c.moveTo(0, h - 25); + c.lineTo(w, h - 25); + c.stroke(); + var counter = 0; + c.begin(); + + for (var i = off + stepY * 0.5; i < range + off; i += stepY) { + odd = counter % 2; + + if (odd === 0) { + c.moveTo(0, i); + c.lineTo(w * 0.9, i); + c.lineTo(w * 0.9, i - stepY * 0.3); + } else { + c.moveTo(w * 0.1, i - stepY * 0.5); + c.lineTo(w * 0.1, i); + c.lineTo(w, i); + } + + counter++; + } + + c.stroke(); + } else if (type === mxShapePidColumn.prototype.cst.VALVE || type === mxShapePidColumn.prototype.cst.BUBBLE) { + var stepY = w * 0.2; + var range = h - 50 - stepY; + var rem = range % stepY; + var off = 25 + stepY * 0.5; + var dashed = mxUtils.getValue(this.style, mxConstants.STYLE_DASHED, '0'); + var odd = 0; + c.setFillColor(strokeColor); + c.setDashed(true); + c.begin(); + c.moveTo(0, 25); + c.lineTo(w, 25); + c.moveTo(0, h - 25); + c.lineTo(w, h - 25); + c.stroke(); + + if (dashed === '0') { + c.setDashed(false); + } else { + c.setDashed(true); + } + + c.begin(); + + for (var i = off + stepY * 0.5; i < range + off; i += stepY) { + c.moveTo(0, i); + c.lineTo(w * 0.4, i); + + if (type === mxShapePidColumn.prototype.cst.VALVE) { + c.moveTo(w * 0.4, i - stepY * 0.2); + c.lineTo(w * 0.6, i - stepY * 0.2); + } else if (type === mxShapePidColumn.prototype.cst.BUBBLE) { + c.moveTo(w * 0.25, i - stepY * 0.2); + c.arcTo(stepY * 3, stepY * 3, 0, 0, 1, w * 0.75, i - stepY * 0.2); + } + + c.moveTo(w * 0.6, i); + c.lineTo(w, i); + } + + c.stroke(); + } else if (type === mxShapePidColumn.prototype.cst.NOZZLE) { + var step = w * 1.2; + var range = h - 50; + var rem = range % step; + var off = rem * 0.5 + 25; + var dashed = mxUtils.getValue(this.style, mxConstants.STYLE_DASHED, 0); + + for (var i = 0; i <= range - step; i += step) { + c.setDashed(true); + c.begin(); + c.moveTo(0, i + off + step * 0.2); + c.lineTo(w, i + off + step * 0.2); + c.moveTo(0, i + off + step * 0.8); + c.lineTo(w, i + off + step * 0.8); + c.stroke(); + + if (dashed === 0) { + c.setDashed(false); + } else { + c.setDashed(true); + } + + c.begin(); + c.moveTo(0, i + off + step * 0.2); + c.lineTo(w, i + off + step * 0.8); + c.moveTo(0, i + off + step * 0.8); + c.lineTo(w, i + off + step * 0.2); + + if (i !== 0) { + c.moveTo(0, i + off); + c.lineTo(w * 0.5, i + off); + c.moveTo(w * 0.5 - step * 0.08, i + off + step * 0.08); + c.lineTo(w * 0.5, i + off); + c.lineTo(w * 0.5 + step * 0.08, i + off + step * 0.08); + c.moveTo(w * 0.5, i + off); + c.lineTo(w * 0.5, i + off + step * 0.08); + } + + c.stroke(); + } + + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidColumn.prototype.cst.SHAPE_COLUMN, mxShapePidColumn); + +function mxShapePidConveyor(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapePidConveyor, mxShape); +mxShapePidConveyor.prototype.cst = { + SHAPE_CONVEYOR: 'mxgraph.pid2misc.conveyor' +}; + +mxShapePidConveyor.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); +}; + +mxShapePidConveyor.prototype.background = function (c, x, y, w, h) { + var wheelSize = Math.min(h, w * 0.5); + c.begin(); + c.moveTo(wheelSize * 0.5, 0); + c.lineTo(w - wheelSize * 0.5, 0); + c.stroke(); + c.ellipse(0, 0, wheelSize, wheelSize); + c.fillAndStroke(); + c.ellipse(w - wheelSize, 0, wheelSize, wheelSize); + c.fillAndStroke(); + c.begin(); + c.moveTo(wheelSize * 0.5, wheelSize); + c.lineTo(w - wheelSize * 0.5, wheelSize); + c.stroke(); + var dist = w - wheelSize * 1.8; + var startX = wheelSize * 0.9; + var step = wheelSize * 0.7; + + for (var i = 0; i < dist; i = i + step) { + c.rect(startX + i, 0, wheelSize * 0.2, wheelSize * 0.1); + c.fillAndStroke(); + c.rect(startX + i, wheelSize * 0.9, wheelSize * 0.2, wheelSize * 0.1); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidConveyor.prototype.cst.SHAPE_CONVEYOR, mxShapePidConveyor); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/pid2/mxPidValves.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/pid2/mxPidValves.js new file mode 100644 index 0000000000000..a53b693dadecf --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/pid2/mxPidValves.js @@ -0,0 +1,925 @@ +"use strict"; + +function mxShapePidValve(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapePidValve, mxShape); +mxShapePidValve.prototype.cst = { + SHAPE_VALVE: 'mxgraph.pid2valves.valve', + DEFAULT_STATE: 'defState', + CLOSED: 'closed', + OPEN: 'open', + ACTUATOR: 'actuator', + MANUAL: 'man', + DIAPHRAGM: 'diaph', + BALANCED_DIAPHRAGM: 'balDiaph', + MOTOR: 'motor', + NONE: 'none', + SPRING: 'spring', + PILOT: 'pilot', + POWERED: 'powered', + SOLENOID: 'solenoid', + SOLENOID_MANUAL_RESET: 'solenoidManRes', + SINGLE_ACTING: 'singActing', + DOUBLE_ACTING: 'dblActing', + PILOT_CYLINDER: 'pilotCyl', + DIGITAL: 'digital', + WEIGHT: 'weight', + KEY: 'key', + ELECTRO_HYDRAULIC: 'elHyd', + VALVE_TYPE: 'valveType', + BUTTERFLY: 'butterfly', + CHECK: 'check', + GATE: 'gate', + GLOBE: 'globe', + NEEDLE: 'needle', + PLUG: 'plug', + SELF_DRAINING: 'selfDrain', + ANGLE: 'angle', + ANGLE_GLOBE: 'angleGlobe', + THREE_WAY: 'threeWay', + ANGLE_BLOWDOWN: 'angBlow', + BALL: 'ball' +}; +mxShapePidValve.prototype.customProperties = [{ + name: 'defState', + dispName: 'Default State', + type: 'enum', + defVal: 'open', + enumList: [{ + val: 'closed', + dispName: 'Closed' + }, { + val: 'open', + dispName: 'Open' + }] +}, { + name: 'actuator', + dispName: 'Actuator', + type: 'enum', + defVal: 'man', + enumList: [{ + val: 'man', + dispName: 'Manual' + }, { + val: 'diaph', + dispName: 'Diphragm' + }, { + val: 'balDiaph', + dispName: 'Balanced Diaphragm' + }, { + val: 'motor', + dispName: 'Motor' + }, { + val: 'none', + dispName: 'None' + }, { + val: 'spring', + dispName: 'Spring' + }, { + val: 'pilot', + dispName: 'Pilot' + }, { + val: 'powered', + dispName: 'Powered' + }, { + val: 'solenoid', + dispName: 'Solenoid' + }, { + val: 'solenoidManRes', + dispName: 'Solenoid w/ Manual Reset' + }, { + val: 'singActing', + dispName: 'Single Acting' + }, { + val: 'dblActing', + dispName: 'Double Acting' + }, { + val: 'pilotCyl', + dispName: 'Pilot Cylinder' + }, { + val: 'digital', + dispName: 'Digital' + }, { + val: 'weight', + dispName: 'Weight' + }, { + val: 'key', + dispName: 'Key' + }, { + val: 'elHyd', + dispName: 'Electro-Hidraulic' + }] +}, { + name: 'valveType', + dispName: 'Type', + type: 'enum', + defVal: 'gate', + enumList: [{ + val: 'butterfly', + dispName: 'Butterfly' + }, { + val: 'check', + dispName: 'check' + }, { + val: 'gate', + dispName: 'Gate' + }, { + val: 'globe', + dispName: 'Globe' + }, { + val: 'needle', + dispName: 'Needle' + }, { + val: 'plug', + dispName: 'Plug' + }, { + val: 'selfDrain', + dispName: 'Self Draining' + }, { + val: 'angle', + dispName: 'Angle' + }, { + val: 'angleGlobe', + dispName: 'Angle Globe' + }, { + val: 'threeWay', + dispName: 'Three Way' + }, { + val: 'ball', + dispName: 'Ball' + }] +}]; + +mxShapePidValve.prototype.paintVertexShape = function (c, x, y, w, h) { + var valveType = mxUtils.getValue(this.style, mxShapePidValve.prototype.cst.VALVE_TYPE, 'gate'); + var actuator = mxUtils.getValue(this.style, mxShapePidValve.prototype.cst.ACTUATOR, mxShapePidValve.prototype.cst.NONE); + var actH = 0; + + if (actuator !== 'none') { + if (this.isAngleVariant(valveType)) { + actH = h * 0.3333; + } else { + actH = h * 0.4; + } + } + + c.translate(x, y); + c.setLineJoin('round'); + this.background(c, x, y, w, h, valveType, actuator, actH); + c.setShadow(false); + this.foreground(c, x, y, w, h, valveType, actuator, actH); +}; + +mxShapePidValve.prototype.background = function (c, x, y, w, h, valveType, actuator, actH) { + if (actuator !== mxShapePidValve.prototype.cst.NONE) { + if (this.isAngleVariant(valveType)) { + this.drawActuatorBg(c, x, y, w, h / 1.2, actuator, actH); + } else { + this.drawActuatorBg(c, x, y, w, h, actuator, actH); + } + } + + if (this.isGateVariant(valveType)) { + this.drawGateVariantBg(c, 0, 0, w, h, valveType, actuator, actH); + } else if (this.isAngleVariant(valveType)) { + this.drawAngleVariantBg(c, 0, 0, w, h, valveType, actuator, actH); + } else if (valveType === mxShapePidValve.prototype.cst.BUTTERFLY) { + this.drawButterflyValve(c, 0, 0, w, h, actuator, actH); + } else if (valveType === mxShapePidValve.prototype.cst.CHECK) { + this.drawCheckValve(c, 0, 0, w, h, actuator, actH); + } +}; + +mxShapePidValve.prototype.foreground = function (c, x, y, w, h, valveType, actuator, actH) { + var valveType = mxUtils.getValue(this.style, mxShapePidValve.prototype.cst.VALVE_TYPE, 'gate'); + + if (actuator !== mxShapePidValve.prototype.cst.NONE) { + if (this.isAngleVariant(valveType)) { + this.drawActuatorFg(c, x, y, w, h / 1.2, actuator, actH); + } else { + this.drawActuatorFg(c, x, y, w, h, actuator, actH); + } + } + + if (this.isGateVariant(valveType)) { + this.drawGateVariantFg(c, 0, 0, w, h, valveType, actuator, actH); + } + + if (this.isAngleVariant(valveType)) { + this.drawAngleVariantFg(c, 0, 0, w, h, valveType, actuator, actH); + } +}; + +mxShapePidValve.prototype.drawActuatorBg = function (c, x, y, w, h, actuator) { + if (this.isSquareVariant(actuator)) { + c.translate(w * 0.325, 0); + this.drawSquareAct(c, w * 0.35, h * 0.7, actuator); + c.translate(-w * 0.325, 0); + } else if (actuator === mxShapePidValve.prototype.cst.MANUAL) { + c.translate(w * 0.25, h * 0.15); + this.drawManAct(c, w * 0.5, h * 0.55); + c.translate(-w * 0.25, -h * 0.15); + } else if (actuator === mxShapePidValve.prototype.cst.DIAPHRAGM) { + c.translate(w * 0.25, h * 0.1); + this.drawDiaphAct(c, w * 0.5, h * 0.6); + c.translate(-w * 0.25, -h * 0.1); + } else if (actuator === mxShapePidValve.prototype.cst.BALANCED_DIAPHRAGM) { + c.translate(w * 0.25, h * 0.1); + this.drawBalDiaphActBg(c, w * 0.5, h * 0.6); + c.translate(-w * 0.25, -h * 0.1); + } else if (actuator === mxShapePidValve.prototype.cst.MOTOR || actuator === mxShapePidValve.prototype.cst.ELECTRO_HYDRAULIC) { + c.translate(w * 0.325, 0); + this.drawCircleAct(c, w * 0.35, h * 0.7, actuator); + c.translate(-w * 0.325, 0); + } else if (actuator === mxShapePidValve.prototype.cst.SPRING) { + c.translate(w * 0.36, 0); + this.drawSpringAct(c, w * 0.28, h * 0.7); + c.translate(-w * 0.36, 0); + } else if (actuator === mxShapePidValve.prototype.cst.SOLENOID_MANUAL_RESET) { + c.translate(w * 0.325, 0); + this.drawSolenoidManResetAct(c, w * 0.575, h * 0.7); + c.translate(-w * 0.325, 0); + } else if (actuator === mxShapePidValve.prototype.cst.SINGLE_ACTING) { + c.translate(w * 0.35, 0); + this.drawSingActingActBg(c, w * 0.65, h * 0.7); + c.translate(-w * 0.35, 0); + } else if (actuator === mxShapePidValve.prototype.cst.DOUBLE_ACTING) { + c.translate(w * 0.35, 0); + this.drawDblActingActBg(c, w * 0.65, h * 0.7); + c.translate(-w * 0.35, 0); + } else if (actuator === mxShapePidValve.prototype.cst.PILOT_CYLINDER) { + c.translate(w * 0.35, 0); + this.drawPilotCylinderActBg(c, w * 0.65, h * 0.7); + c.translate(-w * 0.35, 0); + } else if (actuator === mxShapePidValve.prototype.cst.ANGLE_BLOWDOWN) { + c.translate(w * 0.5, h * 0.2); + this.drawAngleBlowdownAct(c, w * 0.4, h * 0.5); + c.translate(-w * 0.5, -h * 0.2); + } +}; + +mxShapePidValve.prototype.drawActuatorFg = function (c, x, y, w, h, actuator) { + if (actuator === mxShapePidValve.prototype.cst.BALANCED_DIAPHRAGM) { + c.translate(w * 0.25, h * 0.1); + this.drawBalDiaphActFg(c, w * 0.5, h * 0.6); + c.translate(-w * 0.25, -h * 0.1); + } else if (actuator === mxShapePidValve.prototype.cst.SINGLE_ACTING || actuator === mxShapePidValve.prototype.cst.DOUBLE_ACTING || actuator === mxShapePidValve.prototype.cst.PILOT_CYLINDER) { + c.translate(w * 0.35, 0); + this.drawActingActFg(c, w * 0.65, h * 0.7); + c.translate(-w * 0.35, 0); + } +}; + +mxShapePidValve.prototype.drawManAct = function (c, w, h) { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.stroke(); +}; + +mxShapePidValve.prototype.drawDiaphAct = function (c, w, h) { + c.begin(); + c.moveTo(w * 0.5, h * 0.2); + c.lineTo(w * 0.5, h); + c.stroke(); + c.begin(); + c.moveTo(0, h * 0.2); + c.arcTo(w * 0.6, h * 0.4, 0, 0, 1, w, h * 0.2); + c.close(); + c.fillAndStroke(); +}; + +mxShapePidValve.prototype.drawBalDiaphActBg = function (c, w, h) { + c.ellipse(0, 0, w, h * 0.3); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5, h * 0.3); + c.lineTo(w * 0.5, h); + c.stroke(); +}; + +mxShapePidValve.prototype.drawBalDiaphActFg = function (c, w, h) { + c.begin(); + c.moveTo(0, h * 0.15); + c.lineTo(w, h * 0.15); + c.stroke(); +}; + +mxShapePidValve.prototype.drawCircleAct = function (c, w, h, actuator) { + c.ellipse(0, 0, w, h * 0.5); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.stroke(); + var m = ''; + + if (actuator === mxShapePidValve.prototype.cst.MOTOR) { + m = 'M'; + } else if (actuator === mxShapePidValve.prototype.cst.ELECTRO_HYDRAULIC) { + m = 'E/H'; + } + + c.setFontStyle(1); + c.setFontFamily('Helvetica'); + c.setFontSize(Math.min(w, h) * 0.4); + c.text(w * 0.5, h * 0.25, 0, 0, m, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxShapePidValve.prototype.drawSpringAct = function (c, w, h) { + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.moveTo(w * 0.32, h * 0.16); + c.lineTo(w * 0.68, h * 0.08); + c.moveTo(w * 0.21, h * 0.32); + c.lineTo(w * 0.79, h * 0.20); + c.moveTo(w * 0.1, h * 0.52); + c.lineTo(w * 0.9, h * 0.36); + c.moveTo(0, h * 0.72); + c.lineTo(w, h * 0.5); + c.stroke(); +}; + +mxShapePidValve.prototype.drawSolenoidManResetAct = function (c, w, h) { + c.rect(0, 0, w * 0.61, h * 0.46); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.56, h * 0.6); + c.lineTo(w * 0.78, h * 0.5); + c.lineTo(w, h * 0.6); + c.lineTo(w * 0.78, h * 0.7); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.305, h * 0.46); + c.lineTo(w * 0.305, h); + c.moveTo(w * 0.305, h * 0.6); + c.lineTo(w * 0.56, h * 0.6); + c.stroke(); + c.setFontStyle(1); + c.setFontFamily('Helvetica'); + c.setFontSize(Math.min(w, h) * 0.4); + c.text(w * 0.305, h * 0.23, 0, 0, 'S', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontStyle(0); + c.setFontSize(Math.min(w, h) * 0.15); + c.text(w * 0.78, h * 0.6, 0, 0, 'R', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxShapePidValve.prototype.drawSingActingActBg = function (c, w, h) { + c.rect(0, 0, w * 0.46, h * 0.46); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.23, h * 0.46); + c.lineTo(w * 0.23, h); + c.moveTo(w * 0.46, h * 0.23); + c.lineTo(w, h * 0.23); + c.moveTo(w * 0.77, h * 0.15); + c.lineTo(w * 0.69, h * 0.31); + c.moveTo(w * 0.82, h * 0.15); + c.lineTo(w * 0.74, h * 0.31); + c.stroke(); +}; + +mxShapePidValve.prototype.drawActingActFg = function (c, w, h) { + c.begin(); + c.moveTo(w * 0.23, h * 0.23); + c.lineTo(w * 0.23, h * 0.46); + c.moveTo(0, h * 0.23); + c.lineTo(w * 0.46, h * 0.23); + c.stroke(); +}; + +mxShapePidValve.prototype.drawDblActingActBg = function (c, w, h) { + c.rect(0, 0, w * 0.46, h * 0.46); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.23, h * 0.46); + c.lineTo(w * 0.23, h); + c.moveTo(w * 0.46, h * 0.115); + c.lineTo(w, h * 0.115); + c.moveTo(w * 0.77, h * 0.035); + c.lineTo(w * 0.69, h * 0.195); + c.moveTo(w * 0.82, h * 0.035); + c.lineTo(w * 0.74, h * 0.195); + c.moveTo(w * 0.46, h * 0.345); + c.lineTo(w, h * 0.345); + c.moveTo(w * 0.77, h * 0.265); + c.lineTo(w * 0.69, h * 0.425); + c.moveTo(w * 0.82, h * 0.265); + c.lineTo(w * 0.74, h * 0.425); + c.stroke(); +}; + +mxShapePidValve.prototype.drawPilotCylinderActBg = function (c, w, h) { + c.rect(0, 0, w * 0.46, h * 0.46); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.23, h * 0.46); + c.lineTo(w * 0.23, h); + c.moveTo(w * 0.46, h * 0.23); + c.lineTo(w * 0.77, h * 0.23); + c.stroke(); + c.rect(w * 0.77, h * 0.115, w * 0.23, h * 0.23); + c.fillAndStroke(); + c.setFontStyle(0); + c.setFontFamily('Helvetica'); + c.setFontSize(Math.min(w, h) * 0.15); + c.text(w * 0.885, h * 0.23, 0, 0, 'P', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxShapePidValve.prototype.drawAngleBlowdownAct = function (c, w, h) { + c.begin(); + c.moveTo(w * 0.34, 0); + c.lineTo(w, h * 0.405); + c.moveTo(0, h); + c.lineTo(w * 0.665, h * 0.205); + c.stroke(); +}; + +mxShapePidValve.prototype.drawSquareAct = function (c, w, h, actuator) { + c.rect(0, 0, w, h * 0.5); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.stroke(); + var m = ''; + + if (actuator === mxShapePidValve.prototype.cst.PILOT) { + m = 'P'; + } else if (actuator === mxShapePidValve.prototype.cst.SOLENOID) { + m = 'S'; + } else if (actuator === mxShapePidValve.prototype.cst.DIGITAL) { + m = 'D'; + } else if (actuator === mxShapePidValve.prototype.cst.WEIGHT) { + m = 'W'; + } else if (actuator === mxShapePidValve.prototype.cst.KEY) { + m = 'K'; + } + + c.setFontStyle(1); + c.setFontFamily('Helvetica'); + c.setFontSize(Math.min(w, h) * 0.4); + c.text(w * 0.5, h * 0.25, 0, 0, m, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxShapePidValve.prototype.drawGateVariantFg = function (c, x, y, w, h, valveType, actuator, actH) { + var defState = mxUtils.getValue(this.style, mxShapePidValve.prototype.cst.DEFAULT_STATE, 'open'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + + if (valveType === mxShapePidValve.prototype.cst.BALL) { + c.ellipse(x + w * 0.3, y + actH + (h - actH) * 0.18, w * 0.4, (h - actH) * 0.64); + c.fillAndStroke(); + } else if (valveType === mxShapePidValve.prototype.cst.GLOBE) { + c.ellipse(x + w * 0.3, y + actH + (h - actH) * 0.18, w * 0.4, (h - actH) * 0.64); + c.setFillColor(strokeColor); + c.fillAndStroke(); + c.setFillColor(fillColor); + } else if (valveType === mxShapePidValve.prototype.cst.PLUG) { + this.drawPlug(c, x + w * 0.4, y + actH + (h - actH) * 0.25, w * 0.2, (h - actH) * 0.5); + } else if (valveType === mxShapePidValve.prototype.cst.NEEDLE) { + this.drawNeedle(c, x + w * 0.45, y + actH + (h - actH) * 0.1, w * 0.1, (h - actH) * 0.9); + } else if (valveType === mxShapePidValve.prototype.cst.SELF_DRAINING) { + this.drawDrain(c, x + w * 0.48, y + actH + (h - actH) * 0.5, w * 0.04, (h - actH) * 0.49); + } +}; + +mxShapePidValve.prototype.drawAngleVariantFg = function (c, x, y, w, h, valveType, actuator, actH) { + var defState = mxUtils.getValue(this.style, mxShapePidValve.prototype.cst.DEFAULT_STATE, 'open'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + + if (valveType === mxShapePidValve.prototype.cst.ANGLE_GLOBE) { + if (actuator === 'none') { + c.ellipse(w * 0.34, h * 0.175, w * 0.32, h * 0.4); + } else { + c.ellipse(w * 0.34, h * 0.45, w * 0.32, h * 0.2667); + } + + c.setFillColor(strokeColor); + c.fillAndStroke(); + c.setFillColor(fillColor); + } +}; + +mxShapePidValve.prototype.drawGateVariantBg = function (c, x, y, w, h, valveType, actuator, actH) { + if (valveType === mxShapePidValve.prototype.cst.GATE) { + this.drawGateValve(c, x, y + actH, w, h - actH); + } else if (valveType === mxShapePidValve.prototype.cst.BALL || valveType === mxShapePidValve.prototype.cst.GLOBE) { + c.ellipse(x + w * 0.3, y + actH + (h - actH) * 0.18, w * 0.4, (h - actH) * 0.64); + c.fillAndStroke(); + this.drawGateValve(c, x, y + actH, w, h - actH); + } else if (valveType === mxShapePidValve.prototype.cst.PLUG) { + this.drawPlug(c, x + w * 0.4, y + actH + (h - actH) * 0.25, w * 0.2, (h - actH) * 0.5); + this.drawGateValve(c, x, y + actH, w, h - actH); + } else if (valveType === mxShapePidValve.prototype.cst.NEEDLE) { + this.drawNeedle(c, x + w * 0.45, y + actH + (h - actH) * 0.1, w * 0.1, (h - actH) * 0.9); + this.drawGateValve(c, x, y + actH, w, h - actH); + } else if (valveType === mxShapePidValve.prototype.cst.SELF_DRAINING) { + this.drawDrain(c, x + w * 0.48, y + actH + (h - actH) * 0.5, w * 0.04, (h - actH) * 0.49); + this.drawGateValve(c, x, y + actH, w, h - actH); + } +}; + +mxShapePidValve.prototype.drawAngleVariantBg = function (c, x, y, w, h, valveType, actuator, actH) { + if (valveType === mxShapePidValve.prototype.cst.ANGLE) { + this.drawAngleValve(c, w * 0.2, y + actH, w * 0.8, h - actH); + } else if (valveType === mxShapePidValve.prototype.cst.ANGLE_GLOBE) { + this.drawAngleGlobeValveBg(c, w * 0.2, y + actH, w * 0.8, h - actH); + } else if (valveType === mxShapePidValve.prototype.cst.THREE_WAY) { + this.drawThreeWayValve(c, 0, y + actH, w, h - actH); + } else if (valveType === mxShapePidValve.prototype.cst.ANGLE_BLOWDOWN) { + this.drawAngleBlowdownValve(c, x, y + actH, w, h - actH); + } +}; + +mxShapePidValve.prototype.drawPlug = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawNeedle = function (c, x, y, w, h) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w * 0.5, h); + c.close(); + c.setFillColor(strokeColor); + c.fillAndStroke(); + c.setFillColor(fillColor); + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawDrain = function (c, x, y, w, h) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.translate(x, y); + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h * 0.96); + c.stroke(); + c.begin(); + c.moveTo(0, h * 0.9); + c.lineTo(w, h * 0.9); + c.lineTo(w * 0.5, h); + c.close(); + c.setFillColor(strokeColor); + c.fillAndStroke(); + c.setFillColor(fillColor); + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawGateValve = function (c, x, y, w, h) { + var defState = mxUtils.getValue(this.style, mxShapePidValve.prototype.cst.DEFAULT_STATE, 'open'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(0, h); + c.close(); + c.moveTo(w, 0); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w, h); + c.close(); + + if (defState === mxShapePidValve.prototype.cst.CLOSED) { + c.setFillColor(strokeColor); + c.fillAndStroke(); + c.setFillColor(fillColor); + } else { + c.fillAndStroke(); + } + + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawAngleValve = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(w * 0.375, h * 0.375); + c.lineTo(w, 0); + c.lineTo(w, h * 0.75); + c.close(); + c.moveTo(w * 0.375, h * 0.375); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawAngleGlobeValveBg = function (c, x, y, w, h) { + c.translate(x, y); + c.ellipse(w * 0.175, h * 0.175, w * 0.4, h * 0.4); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.375, h * 0.375); + c.lineTo(w, 0); + c.lineTo(w, h * 0.75); + c.close(); + c.moveTo(w * 0.375, h * 0.375); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawAngleGlobeValveFg = function (c, x, y, w, h) { + c.translate(x, y); + c.ellipse(w * 0.275, h * 0.275, w * 0.2, h * 0.2); + c.fillAndStroke(); + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawThreeWayValve = function (c, x, y, w, h) { + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.5, h * 0.375); + c.lineTo(0, h * 0.75); + c.close(); + c.moveTo(w, 0); + c.lineTo(w * 0.5, h * 0.375); + c.lineTo(w, h * 0.75); + c.close(); + c.moveTo(w * 0.5, h * 0.375); + c.lineTo(w * 0.8, h); + c.lineTo(w * 0.2, h); + c.close(); + c.fillAndStroke(); + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawAngleBlowdownValve = function (c, x, y, w, h) {}; + +mxShapePidValve.prototype.drawButterflyValve = function (c, x, y, w, h, actuator, actH) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var yv = y + actH; + var hv = h - actH; + c.translate(x, yv); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, hv); + c.moveTo(w, 0); + c.lineTo(w, hv); + c.moveTo(w * 0.05, hv * 0.05); + c.lineTo(w * 0.95, hv * 0.95); + c.fillAndStroke(); + c.ellipse(w * 0.4, hv * 0.33, w * 0.2, hv * 0.33); + c.fillAndStroke(); + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawCheckValve = function (c, x, y, w, h, actuator, actH) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var yv = y + actH; + var hv = h - actH; + c.translate(x, yv); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, hv); + c.moveTo(w, 0); + c.lineTo(w, hv); + c.moveTo(w * 0.05, hv * 0.05); + c.lineTo(w * 0.95, hv * 0.95); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.8925, hv * 0.815); + c.lineTo(w * 0.957, hv * 0.955); + c.lineTo(w * 0.85, hv * 0.928); + c.close(); + c.setFillColor(strokeColor); + c.fillAndStroke(); + c.setFillColor(fillColor); + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.isGateVariant = function (valveType) { + if (valveType === mxShapePidValve.prototype.cst.GATE || valveType === mxShapePidValve.prototype.cst.BALL || valveType === mxShapePidValve.prototype.cst.PLUG || valveType === mxShapePidValve.prototype.cst.NEEDLE || valveType === mxShapePidValve.prototype.cst.SELF_DRAINING || valveType === mxShapePidValve.prototype.cst.GLOBE) { + return true; + } else { + return false; + } +}; + +mxShapePidValve.prototype.isAngleVariant = function (valveType) { + if (valveType === mxShapePidValve.prototype.cst.ANGLE || valveType === mxShapePidValve.prototype.cst.ANGLE_GLOBE || valveType === mxShapePidValve.prototype.cst.THREE_WAY || valveType === mxShapePidValve.prototype.cst.ANGLE_BLOWDOWN) { + return true; + } else { + return false; + } +}; + +mxShapePidValve.prototype.isSquareVariant = function (actType) { + if (actType === mxShapePidValve.prototype.cst.PILOT || actType === mxShapePidValve.prototype.cst.SOLENOID || actType === mxShapePidValve.prototype.cst.POWERED || actType === mxShapePidValve.prototype.cst.DIGITAL || actType === mxShapePidValve.prototype.cst.WEIGHT || actType === mxShapePidValve.prototype.cst.KEY) { + return true; + } else { + return false; + } +}; + +mxCellRenderer.registerShape(mxShapePidValve.prototype.cst.SHAPE_VALVE, mxShapePidValve); + +function mxShapePidIntBlockBleedValve(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapePidIntBlockBleedValve, mxShapePidValve); + +mxShapePidIntBlockBleedValve.prototype.paintVertexShape = function (c, x, y, w, h) { + var actuator = mxUtils.getValue(this.style, mxShapePidIntBlockBleedValve.prototype.cst.ACTUATOR, mxShapePidIntBlockBleedValve.prototype.cst.NONE); + var actH = 0; + + if (actuator !== 'none') { + actH = h * 0.2353; + } + + c.translate(x, y); + c.setLineJoin('round'); + this.background(c, x, y, w, h, actuator, actH); + c.setShadow(false); + this.foreground(c, x, y, w, h, actuator, actH); +}; + +mxShapePidIntBlockBleedValve.prototype.background = function (c, x, y, w, h, actuator, actH) { + if (actuator !== mxShapePidIntBlockBleedValve.prototype.cst.NONE) { + this.drawActuatorBg(c, x, y, w, h, actuator); + } + + this.drawValveBg(c, 0, actH, w, h - actH); +}; + +mxShapePidIntBlockBleedValve.prototype.foreground = function (c, x, y, w, h, actuator, actH) { + if (actuator !== mxShapePidIntBlockBleedValve.prototype.cst.NONE) { + this.drawActuatorFg(c, x, y, w, h, actuator); + } +}; + +mxShapePidIntBlockBleedValve.prototype.drawValveBg = function (c, x, y, w, h) { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.5, h * 0.23); + c.lineTo(0, h * 0.46); + c.close(); + c.moveTo(w * 0.5, h * 0.23); + c.lineTo(w, 0); + c.lineTo(w, h * 0.46); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.5, h * 0.23); + c.lineTo(w * 0.5, h * 0.5); + c.stroke(); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.3, h * 0.5); + c.lineTo(w * 0.7, h * 0.5); + c.lineTo(w * 0.5, h * 0.75); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.3, h); + c.lineTo(w * 0.5, h * 0.75); + c.lineTo(w * 0.7, h); + c.fillAndStroke(); + c.setFillColor(fillColor); + c.translate(-x, -y); +}; + +mxShapePidIntBlockBleedValve.prototype.drawActuatorBg = function (c, x, y, w, h, actuator) { + if (this.isSquareVariant(actuator)) { + c.translate(w * 0.325, 0); + this.drawSquareAct(c, w * 0.35, h * 0.4112, actuator); + c.translate(-w * 0.325, 0); + } else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.MANUAL) { + c.translate(w * 0.25, h * 0.0882); + this.drawManAct(c, w * 0.5, h * 0.323); + c.translate(-w * 0.25, -h * 0.0882); + } else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.DIAPHRAGM) { + c.translate(w * 0.25, h * 0.0588); + this.drawDiaphAct(c, w * 0.5, h * 0.3524); + c.translate(-w * 0.25, -h * 0.0588); + } else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.BALANCED_DIAPHRAGM) { + c.translate(w * 0.25, h * 0.0588); + this.drawBalDiaphActBg(c, w * 0.5, h * 0.3524); + c.translate(-w * 0.25, -h * 0.0588); + } else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.MOTOR || actuator === mxShapePidIntBlockBleedValve.prototype.cst.ELECTRO_HYDRAULIC) { + c.translate(w * 0.325, 0); + this.drawCircleAct(c, w * 0.35, h * 0.4112, actuator); + c.translate(-w * 0.325, 0); + } else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.SPRING) { + c.translate(w * 0.36, 0); + this.drawSpringAct(c, w * 0.28, h * 0.4112); + c.translate(-w * 0.36, 0); + } else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.SOLENOID_MANUAL_RESET) { + c.translate(w * 0.325, 0); + this.drawSolenoidManResetAct(c, w * 0.575, h * 0.4112); + c.translate(-w * 0.325, 0); + } else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.SINGLE_ACTING) { + c.translate(w * 0.35, 0); + this.drawSingActingActBg(c, w * 0.65, h * 0.4112); + c.translate(-w * 0.35, 0); + } else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.DOUBLE_ACTING) { + c.translate(w * 0.35, 0); + this.drawDblActingActBg(c, w * 0.65, h * 0.4112); + c.translate(-w * 0.35, 0); + } else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.PILOT_CYLINDER) { + c.translate(w * 0.35, 0); + this.drawPilotCylinderActBg(c, w * 0.65, h * 0.4112); + c.translate(-w * 0.35, 0); + } +}; + +mxShapePidIntBlockBleedValve.prototype.drawActuatorFg = function (c, x, y, w, h, actuator) { + if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.BALANCED_DIAPHRAGM) { + c.translate(w * 0.25, h * 0.0588); + this.drawBalDiaphActFg(c, w * 0.5, h * 0.3524); + c.translate(-w * 0.25, -h * 0.0588); + } else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.SINGLE_ACTING || actuator === mxShapePidIntBlockBleedValve.prototype.cst.DOUBLE_ACTING || actuator === mxShapePidIntBlockBleedValve.prototype.cst.PILOT_CYLINDER) { + c.translate(w * 0.35, 0); + this.drawActingActFg(c, w * 0.65, h * 0.4112); + c.translate(-w * 0.35, 0); + } +}; + +mxCellRenderer.registerShape('mxgraph.pid2valves.blockBleedValve', mxShapePidIntBlockBleedValve); + +function mxShapePidAutoRecircValve(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxShapePidAutoRecircValve, mxShape); + +mxShapePidAutoRecircValve.prototype.paintVertexShape = function (c, x, y, w, h) { + c.setLineJoin('round'); + c.translate(x, y); + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.08, h * 0.08); + c.lineTo(w * 0.08, h * 0.92); + c.moveTo(w * 0.92, h * 0.08); + c.lineTo(w * 0.92, h * 0.92); + c.moveTo(w * 0.12, h * 0.122); + c.lineTo(w * 0.8738, h * 0.8837); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.55, h * 0.05); + c.lineTo(w * 0.45, h * 0.15); + c.lineTo(w * 0.55, h * 0.25); + c.lineTo(w * 0.45, h * 0.35); + c.lineTo(w * 0.55, h * 0.45); + c.lineTo(w * 0.49, h * 0.5); + c.stroke(); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.begin(); + c.moveTo(w * 0.8257, h * 0.7695); + c.lineTo(w * 0.8797, h * 0.888); + c.lineTo(w * 0.79, h * 0.8651); + c.close(); + c.setFillColor(strokeColor); + c.fillAndStroke(); + c.setFillColor(fillColor); +}; + +mxCellRenderer.registerShape('mxgraph.pid2valves.autoRecircValve', mxShapePidAutoRecircValve); diff --git a/data/plugins/grafana-flowcharting/dist/libs/shapes/rack/mxRack.js b/data/plugins/grafana-flowcharting/dist/libs/shapes/rack/mxRack.js new file mode 100644 index 0000000000000..cfbccd03f7bf7 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/libs/shapes/rack/mxRack.js @@ -0,0 +1,918 @@ +"use strict"; + +function mxRackContainer(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackContainer, mxShape); +mxRackContainer.unitSize = 20; +mxRackContainer.prototype.cst = { + SHAPE_RACK_CONTAINER: 'mxgraph.rackGeneral.container', + TEXT_COLOR: 'textColor', + NUMBER_DISPLAY: 'numDisp', + OFF: 'off', + DIR_ASC: 'ascend', + DIR_DESC: 'descend' +}; +mxRackContainer.prototype.customProperties = [{ + name: 'fillColor2', + dispName: 'Cabinet Color', + type: 'color' +}, { + name: 'textColor', + dispName: 'Numbers Color', + type: 'color' +}, { + name: 'numDisp', + dispName: 'Display Numbers', + type: 'enum', + enumList: [{ + val: 'off', + dispName: 'Off' + }, { + val: 'ascend', + dispName: 'Ascending' + }, { + val: 'descend', + dispName: 'Descending' + }], + onChange: function onChange(graph, newValue) { + graph.setCellStyles('marginLeft', newValue == 'off' ? 9 : 33, graph.getSelectionCells()); + } +}]; + +mxRackContainer.prototype.paintVertexShape = function (c, x, y, w, h) { + var fontSize = 12; + var displayNumbers = mxUtils.getValue(this.style, mxRackContainer.prototype.cst.NUMBER_DISPLAY, mxRackContainer.prototype.cst.DIR_ASC); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var fillColor2 = mxUtils.getValue(this.style, 'fillColor2', '#f4f4f4'); + + if (displayNumbers !== mxRackContainer.prototype.cst.OFF) { + c.translate(x + fontSize * 2, y); + w = Math.max(w - fontSize * 2, 0); + } else { + c.translate(x, y); + } + + ; + c.setFillColor(fillColor); + this.background(c, w, h, fontSize); + c.setShadow(false); + c.setFillColor(fillColor2); + this.foreground(c, w, h, fontSize); + + if (displayNumbers !== mxRackContainer.prototype.cst.OFF && w > 18 + fontSize * 2) { + this.sideText(c, w, h, fontSize); + } + + ; +}; + +mxRackContainer.prototype.background = function (c, w, h, fontSize) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxRackContainer.prototype.foreground = function (c, w, h, fontSize) { + if (w > 18 + fontSize * 2 && h > 42) { + c.rect(0, 0, w, 21); + c.fillAndStroke(); + c.rect(0, h - 21, w, 21); + c.fillAndStroke(); + c.rect(0, 21, 9, h - 42); + c.fillAndStroke(); + c.rect(w - 9, 21, 9, h - 42); + c.fillAndStroke(); + c.ellipse(2.5, 7.5, 6, 6); + c.stroke(); + c.ellipse(w - 8.5, 7.5, 6, 6); + c.stroke(); + c.ellipse(2.5, h - 13.5, 6, 6); + c.stroke(); + c.ellipse(w - 8.5, h - 13.5, 6, 6); + c.stroke(); + } +}; + +mxRackContainer.prototype.sideText = function (c, w, h, fontSize) { + var fontColor = mxUtils.getValue(this.style, mxRackContainer.prototype.cst.TEXT_COLOR, '#666666'); + var displayNumbers = mxUtils.getValue(this.style, mxRackContainer.prototype.cst.NUMBER_DISPLAY, mxRackContainer.prototype.cst.DIR_ASC); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + var units = Math.floor((Math.abs(h) - 42) / mxRackContainer.unitSize); + + for (var i = 0; i < units; i++) { + var displayNumber = displayNumbers === mxRackContainer.prototype.cst.DIR_DESC ? (i + 1).toString() : (units - i).toString(); + c.text(-fontSize, 21 + mxRackContainer.unitSize * 0.5 + i * mxRackContainer.unitSize, 0, 0, displayNumber, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + c.begin(); + + for (var i = 0; i < units + 1; i++) { + c.moveTo(-2 * fontSize, 21 + i * mxRackContainer.unitSize); + c.lineTo(0, 21 + i * mxRackContainer.unitSize); + } + + ; + c.stroke(); +}; + +function mxRackPlate(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = 1; +} + +; +mxUtils.extend(mxRackPlate, mxShape); +mxRackPlate.prototype.cst = { + SHAPE_RACK_PLATE: 'mxgraph.rackGeneral.plate' +}; + +mxRackPlate.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackPlate.prototype.background = function (c, w, h) { + c.begin(); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxRackPlate.prototype.foreground = function (c, w, h) { + var bufferSize = 9; + + if (w > bufferSize * 2) { + c.save(); + c.setFillColor('#000000'); + c.setAlpha(0.23); + c.rect(0, 0, bufferSize, h); + c.fill(); + c.rect(w - bufferSize, 0, bufferSize, h); + c.fill(); + c.restore(); + c.rect(0, 0, w, h); + c.stroke(); + c.rect(bufferSize, 0, w - bufferSize * 2, h); + c.stroke(); + } +}; + +function mxRackHorCableDuct(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackHorCableDuct, mxShape); +mxRackHorCableDuct.prototype.cst = { + SHAPE_RACK_HOR_CABLE_DUCT: 'mxgraph.rackGeneral.horCableDuct' +}; + +mxRackHorCableDuct.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackHorCableDuct.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxRackHorCableDuct.prototype.foreground = function (c, w, h) { + var spaceBuffer = 20; + var unitSpacing = 33; + var unitsAcross = Math.floor((w - spaceBuffer) / unitSpacing); + var buffer = spaceBuffer / 2 + Math.floor((w - spaceBuffer - unitsAcross * unitSpacing) / 2); + + if (unitsAcross > 0) { + for (var i = 0; i <= unitsAcross; i++) { + c.rect(buffer, 0, 3, 7); + c.stroke(); + c.rect(buffer, 7, 3, 7.8); + c.stroke(); + buffer += unitSpacing; + } + } +}; + +function mxRackHorRoutingBank(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackHorRoutingBank, mxShape); +mxRackHorRoutingBank.prototype.cst = { + SHAPE_RACK_HOR_ROUTING_BANK: 'mxgraph.rackGeneral.horRoutingBank' +}; + +mxRackHorRoutingBank.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackHorRoutingBank.prototype.background = function (c, w, h) { + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxRackHorRoutingBank.prototype.foreground = function (c, w, h) { + var spaceBuffer = 20; + var unitSpacing = 22; + var rectWidth = 16; + var unitsAcross = Math.floor((w - spaceBuffer - rectWidth) / unitSpacing); + var unitsDown = Math.floor(h / mxRackContainer.unitSize); + + if (unitsAcross > 0 && unitsDown > 0) { + for (var i = 0; i < unitsDown; i++) { + var buffer = (spaceBuffer + rectWidth) / 2 + Math.floor((w - spaceBuffer - rectWidth - unitsAcross * unitSpacing) / 2) - rectWidth / 2; + + for (var j = 0; j <= unitsAcross; j++) { + c.rect(buffer, 4 + i * mxRackContainer.unitSize, rectWidth, 6.8); + c.stroke(); + buffer += unitSpacing; + } + } + } +}; + +function mxRackNeatPatch(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackNeatPatch, mxShape); +mxRackNeatPatch.prototype.cst = { + SHAPE_RACK_NEAT_PATCH: 'mxgraph.rackGeneral.neatPatch' +}; + +mxRackNeatPatch.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.mainText(c, w, h); +}; + +mxRackNeatPatch.prototype.background = function (c, w, h) { + c.setFillColor('#666666'); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxRackNeatPatch.prototype.mainText = function (c, w, h) { + c.setFontSize('12'); + c.setFontColor('#ffffff'); + c.setFontStyle(mxConstants.FONT_BOLD); + c.text(w / 2, h - 6, 0, 0, 'NEAT-PATCH', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +function mxRackShelf(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackShelf, mxShape); +mxRackShelf.prototype.cst = { + SHAPE_RACK_SHELF: 'mxgraph.rackGeneral.shelf' +}; + +mxRackShelf.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); +}; + +mxRackShelf.prototype.background = function (c, w, h) { + c.setStrokeWidth(2); + c.begin(); + c.moveTo(1, 0); + c.lineTo(1, h - 1); + c.lineTo(w - 1, h - 1); + c.lineTo(w - 1, 1); + c.fillAndStroke(); +}; + +function mxRackRackNumbering(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackRackNumbering, mxShape); +mxRackRackNumbering.prototype.cst = { + SHAPE_RACK_RACK_NUMBERING: 'mxgraph.rackGeneral.rackNumbering', + UNIT_NUM: 'unitNum', + UNIT_HEIGHT: 'unitHeight', + TEXT_COLOR: 'textColor', + NUM_DIR: 'numDir', + DIR_ASC: 'ascend', + DIR_DESC: 'descend', + TEXT_SIZE: 'textSize' +}; + +mxRackRackNumbering.prototype.paintVertexShape = function (c, x, y, w, h) { + var unitNum = parseFloat(mxUtils.getValue(this.style, mxRackRackNumbering.prototype.cst.UNIT_NUM, '42')); + var unitH = parseFloat(mxUtils.getValue(this.style, mxRackRackNumbering.prototype.cst.UNIT_HEIGHT, '14.8')); + var fontSize = parseFloat(mxUtils.getValue(this.style, mxRackRackNumbering.prototype.cst.TEXT_SIZE, '12')); + c.translate(x, y); + var h = unitNum * unitH; + this.background(c, w, h, fontSize); + c.setShadow(false); + this.sideText(c, w, h, unitNum, unitH, fontSize); +}; + +mxRackRackNumbering.prototype.background = function (c, w, h, fontSize) { + c.rect(fontSize * 3, 0, 160.9, h); + c.fillAndStroke(); +}; + +mxRackRackNumbering.prototype.sideText = function (c, w, h, unitNum, unitH, fontSize) { + var fontColor = mxUtils.getValue(this.style, mxRackRackNumbering.prototype.cst.TEXT_COLOR, '#666666'); + var numDir = mxUtils.getValue(this.style, mxRackRackNumbering.prototype.cst.NUM_DIR, mxRackRackNumbering.prototype.cst.DIR_DESC); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + + if (numDir === mxRackRackNumbering.prototype.cst.DIR_ASC) { + for (var i = 0; i < unitNum; i++) { + c.text(fontSize, unitH * 0.5 + i * unitH, 0, 0, (i + 1).toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + ; + } else { + for (var i = 0; i < unitNum; i++) { + c.text(fontSize, h - unitH * 0.5 - i * unitH, 0, 0, (i + 1).toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + ; + } + + ; + c.setStrokeColor('#dddddd'); + c.begin(); + + for (var i = 0; i < unitNum + 1; i++) { + c.moveTo(0, i * unitH); + c.lineTo(fontSize * 3, i * unitH); + } + + ; + c.stroke(); +}; + +function mxRackRackCabinet(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackRackCabinet, mxShape); +mxRackRackCabinet.prototype.cst = { + SHAPE_RACK_RACK_CABINET: 'mxgraph.rackGeneral.rackCabinet', + UNIT_NUM: 'unitNum', + UNIT_HEIGHT: 'unitHeight', + TEXT_COLOR: 'textColor', + NUM_DIR: 'numDir', + NUMBER_DISPLAY: 'numDisp', + ON: 'on', + OFF: 'off', + DIR_ASC: 'ascend', + DIR_DESC: 'descend', + TEXT_SIZE: 'textSize' +}; + +mxRackRackCabinet.prototype.paintVertexShape = function (c, x, y, w, h) { + var unitNum = parseFloat(mxUtils.getValue(this.style, mxRackRackCabinet.prototype.cst.UNIT_NUM, '12')); + var unitH = parseFloat(mxUtils.getValue(this.style, mxRackRackCabinet.prototype.cst.UNIT_HEIGHT, '14.8')); + var fontSize = parseFloat(mxUtils.getValue(this.style, mxRackRackCabinet.prototype.cst.TEXT_SIZE, '12')); + var numDis = mxUtils.getValue(this.style, mxRackRackCabinet.prototype.cst.NUMBER_DISPLAY, mxRackRackCabinet.prototype.cst.ON); + + if (numDis === mxRackRackCabinet.prototype.cst.ON) { + c.translate(x + fontSize * 2, y); + } else { + c.translate(x, y); + } + + ; + var h = unitNum * unitH + 42; + this.background(c, w, h, fontSize); + c.setShadow(false); + this.foreground(c, w, h, fontSize); + + if (numDis === mxRackRackCabinet.prototype.cst.ON) { + this.sideText(c, w, h, unitNum, unitH, fontSize); + } + + ; +}; + +mxRackRackCabinet.prototype.background = function (c, w, h, fontSize) { + c.setFillColor('#ffffff'); + c.rect(0, 0, 180, h); + c.fillAndStroke(); +}; + +mxRackRackCabinet.prototype.foreground = function (c, w, h, fontSize) { + c.setFillColor('#f4f4f4'); + c.rect(0, 0, 180, 21); + c.fillAndStroke(); + c.rect(0, h - 21, 180, 21); + c.fillAndStroke(); + c.rect(0, 21, 9, h - 42); + c.fillAndStroke(); + c.rect(171, 21, 9, h - 42); + c.fillAndStroke(); + c.ellipse(2.5, 7.5, 6, 6); + c.stroke(); + c.ellipse(171.5, 7.5, 6, 6); + c.stroke(); + c.ellipse(2.5, h - 13.5, 6, 6); + c.stroke(); + c.ellipse(171.5, h - 13.5, 6, 6); + c.stroke(); +}; + +mxRackRackCabinet.prototype.sideText = function (c, w, h, unitNum, unitH, fontSize) { + var fontColor = mxUtils.getValue(this.style, mxRackRackCabinet.prototype.cst.TEXT_COLOR, '#666666'); + var numDir = mxUtils.getValue(this.style, mxRackRackCabinet.prototype.cst.NUM_DIR, mxRackRackCabinet.prototype.cst.DIR_DESC); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + + if (numDir === mxRackRackCabinet.prototype.cst.DIR_ASC) { + for (var i = 0; i < unitNum; i++) { + c.text(-fontSize, 21 + unitH * 0.5 + i * unitH, 0, 0, (i + 1).toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + ; + } else { + for (var i = 0; i < unitNum; i++) { + c.text(-fontSize, h - 21 - unitH * 0.5 - i * unitH, 0, 0, (i + 1).toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + ; + } + + ; + c.setStrokeColor('#dddddd'); + c.begin(); + + for (var i = 0; i < unitNum + 1; i++) { + c.moveTo(-2 * fontSize, 21 + i * unitH); + c.lineTo(0, 21 + i * unitH); + } + + ; + c.stroke(); +}; + +function mxRackHorCableDuct1U(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackHorCableDuct1U, mxShape); +mxRackHorCableDuct1U.prototype.cst = { + SHAPE_RACK_HOR_CABLE_DUCT_1U: 'mxgraph.rackGeneral.horCableDuct1U' +}; + +mxRackHorCableDuct1U.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackHorCableDuct1U.prototype.background = function (c, w, h) { + c.rect(0, 0, 160.9, 14.8); + c.fillAndStroke(); +}; + +mxRackHorCableDuct1U.prototype.foreground = function (c, w, h) { + c.rect(12, 0, 3, 7); + c.stroke(); + c.rect(12, 7, 3, 7.8); + c.stroke(); + c.rect(45.5, 0, 3, 7); + c.stroke(); + c.rect(45.5, 7, 3, 7.8); + c.stroke(); + c.rect(79, 0, 3, 7); + c.stroke(); + c.rect(79, 7, 3, 7.8); + c.stroke(); + c.rect(112.5, 0, 3, 7); + c.stroke(); + c.rect(112.5, 7, 3, 7.8); + c.stroke(); + c.rect(146, 0, 3, 7); + c.stroke(); + c.rect(146, 7, 3, 7.8); + c.stroke(); +}; + +function mxRackHorCableDuct2U(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackHorCableDuct2U, mxShape); +mxRackHorCableDuct2U.prototype.cst = { + SHAPE_RACK_HOR_CABLE_DUCT_2U: 'mxgraph.rackGeneral.horCableDuct2U' +}; + +mxRackHorCableDuct2U.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackHorCableDuct2U.prototype.background = function (c, w, h) { + c.rect(0, 0, 160.9, 29.6); + c.fillAndStroke(); +}; + +mxRackHorCableDuct2U.prototype.foreground = function (c, w, h) { + c.rect(12, 0, 3, 7); + c.stroke(); + c.rect(12, 7, 3, 22.6); + c.stroke(); + c.rect(45.5, 0, 3, 7); + c.stroke(); + c.rect(45.5, 7, 3, 22.6); + c.stroke(); + c.rect(79, 0, 3, 7); + c.stroke(); + c.rect(79, 7, 3, 22.6); + c.stroke(); + c.rect(112.5, 0, 3, 7); + c.stroke(); + c.rect(112.5, 7, 3, 22.6); + c.stroke(); + c.rect(146, 0, 3, 7); + c.stroke(); + c.rect(146, 7, 3, 22.6); + c.stroke(); +}; + +function mxRackHorRoutingBank1U(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackHorRoutingBank1U, mxShape); +mxRackHorRoutingBank1U.prototype.cst = { + SHAPE_RACK_HOR_ROUTING_BANK_1U: 'mxgraph.rackGeneral.horRoutingBank1U' +}; + +mxRackHorRoutingBank1U.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackHorRoutingBank1U.prototype.background = function (c, w, h) { + c.rect(0, 0, 160.9, 14.8); + c.fillAndStroke(); +}; + +mxRackHorRoutingBank1U.prototype.foreground = function (c, w, h) { + c.rect(10, 4, 17, 6.8); + c.stroke(); + c.rect(31, 4, 17, 6.8); + c.stroke(); + c.rect(52, 4, 17, 6.8); + c.stroke(); + c.rect(73, 4, 17, 6.8); + c.stroke(); + c.rect(94, 4, 17, 6.8); + c.stroke(); + c.rect(115, 4, 17, 6.8); + c.stroke(); + c.rect(136, 4, 17, 6.8); + c.stroke(); +}; + +function mxRackHorRoutingBank2U(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackHorRoutingBank2U, mxShape); +mxRackHorRoutingBank2U.prototype.cst = { + SHAPE_RACK_HOR_ROUTING_BANK_2U: 'mxgraph.rackGeneral.horRoutingBank2U' +}; + +mxRackHorRoutingBank2U.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackHorRoutingBank2U.prototype.background = function (c, w, h) { + c.rect(0, 0, 160.9, 29.6); + c.fillAndStroke(); +}; + +mxRackHorRoutingBank2U.prototype.foreground = function (c, w, h) { + c.rect(10, 4, 17, 6.8); + c.stroke(); + c.rect(31, 4, 17, 6.8); + c.stroke(); + c.rect(52, 4, 17, 6.8); + c.stroke(); + c.rect(73, 4, 17, 6.8); + c.stroke(); + c.rect(94, 4, 17, 6.8); + c.stroke(); + c.rect(115, 4, 17, 6.8); + c.stroke(); + c.rect(136, 4, 17, 6.8); + c.stroke(); + c.rect(10, 18.8, 17, 6.8); + c.stroke(); + c.rect(31, 18.8, 17, 6.8); + c.stroke(); + c.rect(52, 18.8, 17, 6.8); + c.stroke(); + c.rect(73, 18.8, 17, 6.8); + c.stroke(); + c.rect(94, 18.8, 17, 6.8); + c.stroke(); + c.rect(115, 18.8, 17, 6.8); + c.stroke(); + c.rect(136, 18.8, 17, 6.8); + c.stroke(); +}; + +function mxRackNeatPatch2U(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackNeatPatch2U, mxShape); +mxRackNeatPatch2U.prototype.cst = { + SHAPE_RACK_NEAT_PATCH_2U: 'mxgraph.rackGeneral.neatPatch2U' +}; + +mxRackNeatPatch2U.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.mainText(c, w, h); +}; + +mxRackNeatPatch2U.prototype.background = function (c, w, h) { + c.setFillColor('#666666'); + c.rect(0, 0, 160.9, 29.6); + c.fillAndStroke(); +}; + +mxRackNeatPatch2U.prototype.mainText = function (c, w, h) { + c.setFontSize('12'); + c.setFontColor('#ffffff'); + c.setFontStyle(mxConstants.FONT_BOLD); + c.text(80.45, 24, 0, 0, 'NEAT-PATCH', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +function mxRackShelf1U(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackShelf1U, mxShape); +mxRackShelf1U.prototype.cst = { + SHAPE_RACK_SHELF_1U: 'mxgraph.rackGeneral.shelf1U' +}; + +mxRackShelf1U.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); +}; + +mxRackShelf1U.prototype.background = function (c, w, h) { + c.setStrokeWidth(2); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, 14.8); + c.lineTo(160.9, 14.8); + c.lineTo(160.9, 0); + c.fillAndStroke(); +}; + +function mxRackShelf2U(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackShelf2U, mxShape); +mxRackShelf2U.prototype.cst = { + SHAPE_RACK_SHELF_2U: 'mxgraph.rackGeneral.shelf2U' +}; + +mxRackShelf2U.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); +}; + +mxRackShelf2U.prototype.background = function (c, w, h) { + c.setStrokeWidth(2); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, 29.6); + c.lineTo(160.9, 29.6); + c.lineTo(160.9, 0); + c.fillAndStroke(); +}; + +function mxRackShelf4U(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackShelf4U, mxShape); +mxRackShelf4U.prototype.cst = { + SHAPE_RACK_SHELF_4U: 'mxgraph.rackGeneral.shelf4U' +}; + +mxRackShelf4U.prototype.paintVertexShape = function (c, x, y, w, h) { + c.translate(x, y); + this.background(c, w, h); +}; + +mxRackShelf4U.prototype.background = function (c, w, h) { + c.setStrokeWidth(2); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, 59.2); + c.lineTo(160.9, 59.2); + c.lineTo(160.9, 0); + c.fillAndStroke(); +}; + +function mxRackChannelBase(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackChannelBase, mxShape); +mxRackChannelBase.prototype.cst = { + SHAPE_RACK_CHANNEL_BASE: 'mxgraph.rackGeneral.channelBase' +}; + +mxRackChannelBase.prototype.paintVertexShape = function (c, x, y, w, h) { + w = Math.max(w, 20); + h = Math.max(h, 20); + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackChannelBase.prototype.background = function (c, w, h) { + c.rect(10, h - 15, 5, 15); + c.fillAndStroke(); + c.rect(w - 15, h - 15, 5, 15); + c.fillAndStroke(); + c.rect(0, 0, w, h - 5); + c.fillAndStroke(); +}; + +mxRackChannelBase.prototype.foreground = function (c, w, h) { + c.setFillColor('#000000'); + c.rect(10, h - 15, 5, 15); + c.fillAndStroke(); + c.rect(w - 15, h - 15, 5, 15); + c.fillAndStroke(); +}; + +function mxRackCabinetLeg(bounds, fill, stroke, strokewidth) { + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = strokewidth != null ? strokewidth : 1; +} + +; +mxUtils.extend(mxRackCabinetLeg, mxShape); +mxRackCabinetLeg.prototype.cst = { + SHAPE_RACK_CABINET_LEG: 'mxgraph.rackGeneral.cabinetLeg' +}; + +mxRackCabinetLeg.prototype.paintVertexShape = function (c, x, y, w, h) { + w = Math.max(w, 20); + h = Math.max(h, 20); + c.translate(x, y); + this.background(c, w, h); +}; + +mxRackCabinetLeg.prototype.background = function (c, w, h) { + c.begin(); + c.moveTo(0, h - 10); + c.lineTo(5, h - 10); + c.lineTo(5, h - 12); + c.lineTo(9, h - 12); + c.lineTo(9, h - 10); + c.lineTo(w - 10, h - 10); + c.lineTo(w - 10, 9); + c.lineTo(w - 12, 9); + c.lineTo(w - 12, 5); + c.lineTo(w - 10, 5); + c.lineTo(w - 10, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxRackContainer.prototype.cst.SHAPE_RACK_CONTAINER, mxRackContainer); +mxCellRenderer.registerShape(mxRackHorCableDuct.prototype.cst.SHAPE_RACK_HOR_CABLE_DUCT, mxRackHorCableDuct); +mxCellRenderer.registerShape(mxRackHorRoutingBank.prototype.cst.SHAPE_RACK_HOR_ROUTING_BANK, mxRackHorRoutingBank); +mxCellRenderer.registerShape(mxRackNeatPatch.prototype.cst.SHAPE_RACK_NEAT_PATCH, mxRackNeatPatch); +mxCellRenderer.registerShape(mxRackShelf.prototype.cst.SHAPE_RACK_SHELF, mxRackShelf); +mxCellRenderer.registerShape(mxRackPlate.prototype.cst.SHAPE_RACK_PLATE, mxRackPlate); +mxCellRenderer.registerShape(mxRackRackNumbering.prototype.cst.SHAPE_RACK_RACK_NUMBERING, mxRackRackNumbering); +mxCellRenderer.registerShape(mxRackRackCabinet.prototype.cst.SHAPE_RACK_RACK_CABINET, mxRackRackCabinet); +mxCellRenderer.registerShape(mxRackHorCableDuct1U.prototype.cst.SHAPE_RACK_HOR_CABLE_DUCT_1U, mxRackHorCableDuct1U); +mxCellRenderer.registerShape(mxRackHorCableDuct2U.prototype.cst.SHAPE_RACK_HOR_CABLE_DUCT_2U, mxRackHorCableDuct2U); +mxCellRenderer.registerShape(mxRackHorRoutingBank1U.prototype.cst.SHAPE_RACK_HOR_ROUTING_BANK_1U, mxRackHorRoutingBank1U); +mxCellRenderer.registerShape(mxRackHorRoutingBank2U.prototype.cst.SHAPE_RACK_HOR_ROUTING_BANK_2U, mxRackHorRoutingBank2U); +mxCellRenderer.registerShape(mxRackNeatPatch2U.prototype.cst.SHAPE_RACK_NEAT_PATCH_2U, mxRackNeatPatch2U); +mxCellRenderer.registerShape(mxRackShelf1U.prototype.cst.SHAPE_RACK_SHELF_1U, mxRackShelf1U); +mxCellRenderer.registerShape(mxRackShelf2U.prototype.cst.SHAPE_RACK_SHELF_2U, mxRackShelf2U); +mxCellRenderer.registerShape(mxRackShelf4U.prototype.cst.SHAPE_RACK_SHELF_4U, mxRackShelf4U); +mxCellRenderer.registerShape(mxRackChannelBase.prototype.cst.SHAPE_RACK_CHANNEL_BASE, mxRackChannelBase); +mxCellRenderer.registerShape(mxRackCabinetLeg.prototype.cst.SHAPE_RACK_CABINET_LEG, mxRackCabinetLeg); diff --git a/data/plugins/grafana-flowcharting/dist/mapping_options.js b/data/plugins/grafana-flowcharting/dist/mapping_options.js new file mode 100644 index 0000000000000..4bba5aa93b802 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/mapping_options.js @@ -0,0 +1,320 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.mappingOptionsTab = mappingOptionsTab; +exports.MappingOptionsCtrl = void 0; + +var _kbn = _interopRequireDefault(require("app/core/utils/kbn")); + +var _plugin = require("./plugin"); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +var MappingOptionsCtrl = function () { + function MappingOptionsCtrl($scope) { + var _this = this; + + _classCallCheck(this, MappingOptionsCtrl); + + $scope.editor = this; + $scope.GF_PLUGIN = window.GF_PLUGIN; + this.$scope = $scope; + this.panelCtrl = $scope.ctrl; + this.panel = this.panelCtrl.panel; + $scope.rulesHandler = this.panelCtrl.rulesHandler; + $scope.flowchartHandler = this.panelCtrl.flowchartHandler; + this.flowchartHandler = $scope.ctrl.flowchartHandler; + this.rulesHandler = this.panelCtrl.rulesHandler; + this.unitFormats = _kbn["default"].getUnitFormats(); + this.style = [{ + text: 'Disabled', + value: 'disabled' + }, { + text: 'Stroke', + value: 'strokeColor' + }, { + text: 'Fill', + value: 'fillColor' + }, { + text: 'Text', + value: 'fontColor' + }, { + text: 'Background (image)', + value: 'imageBackground' + }, { + text: 'Border (image)', + value: 'imageBorder' + }]; + this.colorOn = [{ + text: 'Never', + value: 'n' + }, { + text: 'Warning / Critical', + value: 'wc' + }, { + text: 'Always', + value: 'a' + }]; + this.linkOn = [{ + text: 'Warning / Critical', + value: 'wc' + }, { + text: 'Always', + value: 'a' + }]; + this.tooltipOn = [{ + text: 'Warning / Critical', + value: 'wc' + }, { + text: 'Always', + value: 'a' + }]; + this.tpDirection = [{ + text: 'Vertical', + value: 'v' + }, { + text: 'Horizontal ', + value: 'h' + }]; + this.textOn = [{ + text: 'Never', + value: 'n' + }, { + text: 'When Metric Displayed', + value: 'wmd' + }, { + text: 'Warning / Critical', + value: 'wc' + }, { + text: 'Critical Only', + value: 'co' + }]; + this.textReplace = [{ + text: 'All content', + value: 'content' + }, { + text: 'Substring', + value: 'pattern' + }, { + text: 'Append (Space) ', + value: 'as' + }, { + text: 'Append (New line) ', + value: 'anl' + }]; + this.propTypes = [{ + text: 'Id', + value: 'id' + }]; + this.textPattern = '/.*/'; + this.metricTypes = [{ + text: 'Number', + value: 'number' + }, { + text: 'String', + value: 'string' + }, { + text: 'Date', + value: 'date' + }]; + this.dateFormats = [{ + text: 'YYYY-MM-DD HH:mm:ss', + value: 'YYYY-MM-DD HH:mm:ss' + }, { + text: 'YYYY-MM-DD HH:mm:ss.SSS', + value: 'YYYY-MM-DD HH:mm:ss.SSS' + }, { + text: 'MM/DD/YY h:mm:ss a', + value: 'MM/DD/YY h:mm:ss a' + }, { + text: 'MMMM D, YYYY LT', + value: 'MMMM D, YYYY LT' + }, { + text: 'YYYY-MM-DD', + value: 'YYYY-MM-DD' + }]; + this.aggregationTypes = [{ + text: 'First', + value: 'first' + }, { + text: 'Last', + value: 'current' + }, { + text: 'Min', + value: 'min' + }, { + text: 'Max', + value: 'max' + }, { + text: 'Sum', + value: 'total' + }, { + text: 'Avg', + value: 'avg' + }, { + text: 'Count', + value: 'count' + }, { + text: 'Delta', + value: 'delta' + }, { + text: 'Range', + value: 'range' + }, { + text: 'Diff', + value: 'diff' + }]; + this.mappingTypes = [{ + text: 'Value to text', + value: 1 + }, { + text: 'Range to text', + value: 2 + }]; + this.tpGraphType = [{ + text: 'Line', + value: 'line' + }]; + this.tpGraphSize = [{ + text: 'Adjustable', + value: '100%' + }, { + text: 'Small', + value: '100px' + }, { + text: 'Medium', + value: '200px' + }, { + text: 'Large', + value: '400px' + }]; + + this.getMetricNames = function () { + if (!_this.panelCtrl.series) { + return []; + } + + return _.map(_this.panelCtrl.series, function (t) { + return t.alias; + }); + }; + + this.getCellNamesForShape = function () { + u.log(1, 'MappingOptionsCtrl.getCellNamesForShape()'); + + var flowchart = _this.flowchartHandler.getFlowchart(0); + + var cells = flowchart.getNamesByProp('id'); + return _.map(cells, function (t) { + return t; + }); + }; + + this.getCellNamesForText = function () { + u.log(1, 'MappingOptionsCtrl.getCellNamesForText()'); + + var flowchart = _this.flowchartHandler.getFlowchart(0); + + var cells = flowchart.getNamesByProp('id'); + return _.map(cells, function (t) { + return t; + }); + }; + + this.getCellNamesForLink = function () { + u.log(1, 'MappingOptionsCtrl.getCellNamesForLink()'); + + var flowchart = _this.flowchartHandler.getFlowchart(0); + + var cells = flowchart.getNamesByProp('id'); + return _.map(cells, function (t) { + return t; + }); + }; + + this.getVariables = function () { + u.log('MappingOptionsCtrl.getVariables'); + return _this.panelCtrl.getVariables(); + }; + } + + _createClass(MappingOptionsCtrl, [{ + key: "render", + value: function render() { + this.panelCtrl.render(); + } + }, { + key: "setUnitFormat", + value: function setUnitFormat(rule, subItem) { + rule.unit = subItem.value; + this.onRulesChange(); + } + }, { + key: "onRulesChange", + value: function onRulesChange() { + u.log(1, 'MappingOptionsCtrl.onRulesChange()'); + this.flowchartHandler.ruleChanged(); + this.render(); + } + }, { + key: "onColorChange", + value: function onColorChange(ruleIndex, colorIndex) { + var _this2 = this; + + return function (newColor) { + var rule = _this2.rulesHandler.getRule(ruleIndex); + + rule.data.colors[colorIndex] = newColor; + + _this2.onRulesChange(); + }; + } + }, { + key: "selectCell", + value: function selectCell(prop, value) { + var flowchart = this.flowchartHandler.getFlowchart(0); + var xgraph = flowchart.getXGraph(); + xgraph.selectMxCells(prop, value); + } + }, { + key: "unselectCell", + value: function unselectCell(prop, value) { + var flowchart = this.flowchartHandler.getFlowchart(0); + var xgraph = flowchart.getXGraph(); + xgraph.unselectMxCells(prop, value); + } + }, { + key: "highlightCells", + value: function highlightCells(rule) { + rule.highlightCells(); + } + }, { + key: "unhighlightCells", + value: function unhighlightCells(rule) { + rule.unhighlightCells(); + } + }]); + + return MappingOptionsCtrl; +}(); + +exports.MappingOptionsCtrl = MappingOptionsCtrl; + +function mappingOptionsTab($q, uiSegmentSrv) { + 'use strict'; + + return { + restrict: 'E', + scope: true, + templateUrl: "".concat(GF_PLUGIN.getPartialPath(), "/mapping_options.html"), + controller: MappingOptionsCtrl + }; +} diff --git a/data/plugins/grafana-flowcharting/dist/module.js b/data/plugins/grafana-flowcharting/dist/module.js new file mode 100644 index 0000000000000..4e166cdc94df5 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/module.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +Object.defineProperty(exports, "PanelCtrl", { + enumerable: true, + get: function get() { + return _flowchart_ctrl.FlowchartCtrl; + } +}); + +var _sdk = require("app/plugins/sdk"); + +var _flowchart_ctrl = require("./flowchart_ctrl"); + +(0, _sdk.loadPluginCss)({ + dark: 'plugins/agenty-flowcharting-panel/css/flowchart.dark.css', + light: 'plugins/agenty-flowcharting-panel/css/flowchart.light.css' +}); diff --git a/data/plugins/grafana-flowcharting/dist/partials/flowchart_options.html b/data/plugins/grafana-flowcharting/dist/partials/flowchart_options.html new file mode 100644 index 0000000000000..e79e9c801db02 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/partials/flowchart_options.html @@ -0,0 +1,278 @@ +
+
+
+
+ mxGraph Edition + +
+ +
+
+ Definition + +
+ +
+ + +
+
+ + +
+ +
+
+
+ + Source Type + + + +
+ +
+
+ +
+
+ + URL + + This service should respond with a xml/plain response containing mxgraph syntax + + + +
+
+ +
+ + Source Content + + + + +
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
Advanced
+
+
+ Display + + +
+ + + + + + +
+ + + + + +
+ +
+ + Zoom + + + + +
+
+
+
+ Others options + + +
+ + + + + + + + + +
+
+
+
diff --git a/data/plugins/grafana-flowcharting/dist/partials/inspect_options.html b/data/plugins/grafana-flowcharting/dist/partials/inspect_options.html new file mode 100644 index 0000000000000..4a2c02f72ebb4 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/partials/inspect_options.html @@ -0,0 +1,191 @@ +
+
+
+
Inspector
+
+
+ +
+
Graph inspect + Id + + + + +
+ + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+
+ Id + + + + +
+
+
+ Text
+
+
+ Level +
+
+
+ Font Col. +
+
+
+ Fill Col. +
+
+
+ Stoke Col. +
+
+
+ Match +
+
+
+
{{state.cellId}}
+
{{state.cellId}}
+
+ +
+
+
+
+ {{state.getCellProp('value')}} +
+
+
+ {{state.getTextLevel()}} +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+ + + + + +
+
Debug Mode
+
+
+ Display + +
+
+ Level + +
+
+
+
\ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/partials/mapping_options copy.html b/data/plugins/grafana-flowcharting/dist/partials/mapping_options copy.html new file mode 100644 index 0000000000000..d6464372ea933 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/partials/mapping_options copy.html @@ -0,0 +1,616 @@ +
+
+
+ +
+
+ + + + {{ rule.data.order }} : Rule + + [{{ rule.data.alias }}] + +
+
+ +
+ + +
+
+
+ + +
+ +
+
+ Options + + +
+
+ + +
+
+ + +
+
+ +
+ +
+
+
+ + +
+
Type + + + + +
+
+ +
+ +
+
+
+ + + +
+ +
+ +
+
+ + +
+ +
+
+ +
+
+
+ + +
+
+
+ + +
+
+ Thresholds (Ok > Warn > Critical) + + +
+
+ Thresholds (Critical > Warn > Ok) + + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ +
+
+
+ + + + + + + + + + +
+ Invert +
+
+ + +
+ + +
+
Display + + + + +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ + +
+
+ + +
+
Tooltips + + + + +
+ +
+ + +
+
+ +
+ +
+
+ + +
+ + + +
+
Link + + + + +
+ +
+ +
+ +
+
+
+ + +
+ + + +
+ + +
+ +
+
Color Mappings + + + + +
+
+ + Props + + +
+ +
+
+
+ + + + + + +
+
+ +
+
+ + +
+
Text Mappings + + + + +
+
+ + Props + +
+ +
+
+
+ + + + + + + +
+ +
+ +
+
+ + +
+
Link Mappings
+
+ + Props + +
+ +
+
+
+ + + + + + + +
+ +
+ +
+
+ + +
+
Value Mappings
+
+
+ + Type + +
+ +
+
+ +
+
+ + + + + + +
+
+ +
+
+ +
+
+ + + + From + + To + + Text + +
+
+ +
+
+
+
+
+ +
+ + +
+
+ +
+
+ +
+
+
+
+
+ +
+
+ +
+
+
\ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/partials/mapping_options.html b/data/plugins/grafana-flowcharting/dist/partials/mapping_options.html new file mode 100644 index 0000000000000..b7a1ea842e47d --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/partials/mapping_options.html @@ -0,0 +1,1085 @@ +
+
+
+ +
+ + + + + {{ rule.data.order }} : Rule [{{ rule.data.alias }}] + + + + +
+ + +
+ +
+
+ Options + + +
+
+ + +
+
+ + +
+
+ +
+ +
+
+
+ + +
+
+ Type + + + + +
+
+ +
+ +
+
+
+ + + +
+ +
+ +
+
+ + +
+ +
+
+ +
+
+
+ + +
+
+
+ + +
+
+ Thresholds (Ok > Warn > Critical) + + +
+
+ Thresholds (Critical > Warn > Ok) + + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ +
+
+
+ + + + + + + + + + +
+ Invert +
+
+ + +
+ + +
+
+ Display + + + + +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ + +
+
+ + +
+
+ Tooltips + + + + +
+ + +
+ + +
+
+ +
+ +
+
+
+ +
+ +
+
+ + +
+ + +
+
+ Graph Tooltips + + + + +
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ + +
+
+ Link + + + + +
+ +
+ +
+ +
+
+
+ + +
+ + + +
+ + +
+ +
+
+ Color Mappings + + + + +
+
+ + Props + + +
+ +
+
+
+ + + + + + +
+
+ +
+
+ + +
+
+ Text Mappings + + + + +
+
+ + Props + +
+ +
+
+
+ + + + + + + +
+ +
+ +
+
+ + +
+
Link Mappings
+
+ + Props + +
+ +
+
+
+ + + + + + + +
+ +
+ +
+
+ + +
+
Value Mappings
+
+
+ + Type + +
+ +
+
+ +
+
+ + + + + + +
+
+ +
+
+ +
+
+ + + + From + + To + + Text + +
+
+ +
+
+
+
+
+ +
+ + +
+
+ +
+
+ +
+
+
+
+
+ +
+
+ +
+
+
diff --git a/data/plugins/grafana-flowcharting/dist/partials/module.html b/data/plugins/grafana-flowcharting/dist/partials/module.html new file mode 100644 index 0000000000000..63e6e2f365678 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/partials/module.html @@ -0,0 +1,14 @@ +
+
+ +
+
+
+ Select Object to map + +
+
+ \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/plugin.js b/data/plugins/grafana-flowcharting/dist/plugin.js new file mode 100644 index 0000000000000..c78f443e91da4 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/plugin.js @@ -0,0 +1,72 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _jquery = _interopRequireDefault(require("jquery")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +var plugin = {}; +plugin.dirname = "".concat(__dirname, "/"); +plugin.repository = 'https://algenty.github.io/flowcharting-repository/'; +plugin.mxBasePath = "".concat(plugin.dirname, "libs/mxgraph/javascript/dist/"); +plugin.mxImagePath = "".concat(plugin.mxBasePath, "images/"); +plugin.partialPath = "".concat(plugin.dirname, "/partials/"); +plugin.data = {}; + +_jquery["default"].ajaxSetup({ + async: false +}); + +_jquery["default"].getJSON("".concat(plugin.dirname, "/plugin.json"), function (data) { + plugin.data = data; +}); + +plugin.getRootPath = function () { + return this.dirname; +}; + +plugin.getLibsPath = function () { + return "".concat(this.dirname, "/libs"); +}; + +plugin.getShapesPath = function () { + return "".concat(this.dirname, "libs/shapes"); +}; + +plugin.getMxBasePath = function () { + return this.mxBasePath; +}; + +plugin.getMxImagePath = function () { + return this.mxImagePath; +}; + +plugin.getName = function () { + return this.data.id; +}; + +plugin.getPartialPath = function () { + return this.partialPath; +}; + +plugin.popover = function (text, tagBook, tagImage) { + var url = this.repository; + var images = "".concat(this.repository, "images/"); + var textEncoded = String(text).replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"'); + var desc = "".concat(textEncoded); + var book = ''; + var image = ''; + if (tagBook) book = "Help"); + if (tagImage) image = "Example"); + return "\n
\n
".concat(desc, "
\n
").concat(book, "
\n
").concat(image, "
\n
"); +}; + +plugin.logLevel = 1; +plugin.logDisplay = false; +window.GF_PLUGIN = window.GF_PLUGIN || plugin; +var _default = plugin; +exports["default"] = _default; diff --git a/data/plugins/grafana-flowcharting/dist/plugin.json b/data/plugins/grafana-flowcharting/dist/plugin.json new file mode 100644 index 0000000000000..641da7ed91e11 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/plugin.json @@ -0,0 +1,48 @@ +{ + "type": "panel", + "name": "FlowCharting", + "id": "agenty-flowcharting-panel", + "info": { + "description": "Flowcharting is a plugin for grafana. It aims to display complexe diagram draws with draw.io like Visio", + "author": { + "name": "Arnaud GENTY", + "url": "https://github.com/algenty/grafana-flowcharting" + }, + "keywords": [ + "flowchart", + "panel", + "diagram", + "workflow", + "floorplan", + "map", + "organigram", + "draw.io", + "visio", + "mxgraph" + ], + "links": [ + { + "name": "Project site", + "url": "https://github.com/algenty/grafana-flowcharting" + }, + { + "name": "Apache License", + "url": "https://github.com/algenty/grafana-flowcharting/blob/master/LICENSE" + }, + { + "name": "Documentation", + "url": "https://algenty.github.io/flowcharting-repository/" + } + ], + "version": "0.5.0", + "updated": "2019-09-26", + "logos": { + "small": "img/agenty-flowcharting.svg", + "large": "img/agenty-flowcharting.svg" + } + }, + "dependencies": { + "grafanaVersion": "5.x.x", + "plugins": [] + } +} \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/rule_class.js b/data/plugins/grafana-flowcharting/dist/rule_class.js new file mode 100644 index 0000000000000..b28a7613c7652 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/rule_class.js @@ -0,0 +1,965 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _kbn = _interopRequireDefault(require("app/core/utils/kbn")); + +var _moment = _interopRequireDefault(require("moment")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } + +function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } + +function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } + +function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +var Rule = function () { + function Rule(pattern, data) { + _classCallCheck(this, Rule); + + this.data = data; + this.data.pattern = pattern; + this.shapeMaps = []; + this.textMaps = []; + this.linkMaps = []; + this.valueMaps = []; + this.rangeMaps = []; + this.id = u.uniqueID(); + this["import"](data); + var LEVEL_OK = 0; + var LEVEL_WARN = 1; + var LEVEL_ERROR = 2; + } + + _createClass(Rule, [{ + key: "getData", + value: function getData() { + return this.data; + } + }, { + key: "import", + value: function _import(obj) { + var _this = this; + + this.data.unit = obj.unit || 'short'; + this.data.type = obj.type || 'number'; + this.data.alias = obj.alias || 'No name'; + this.data.aggregation = obj.aggregation || 'current'; + this.data.decimals = obj.decimals !== undefined ? obj.decimals : 2; + this.data.colors = obj.colors ? _toConsumableArray(obj.colors) : ['rgba(245, 54, 54, 0.9)', 'rgba(237, 129, 40, 0.89)', 'rgba(50, 172, 45, 0.97)']; + this.data.reduce = true; + this.data.style = obj.style || obj.colorMode || 'fillColor'; + this.data.colorOn = obj.colorOn || 'a'; + this.data.link = obj.link !== undefined ? obj.link : false; + this.data.linkOn = obj.colorOn || 'a'; + this.data.linkUrl = obj.linkUrl || ''; + this.data.linkParams = obj.linkParams !== undefined ? obj.linkParams : false; + this.data.textOn = obj.textOn || 'wmd'; + this.data.textReplace = obj.textReplace || 'content'; + this.data.textPattern = obj.textPattern || '/.*/'; + this.data.pattern = obj.pattern || this.data.pattern; + this.data.dateFormat = obj.dateFormat || 'YYYY-MM-DD HH:mm:ss'; + this.data.thresholds = obj.thresholds !== undefined ? _toConsumableArray(obj.thresholds) : []; + this.data.stringWarning = obj.stringWarning || ''; + this.data.stringCritical = obj.stringCritical || ''; + this.data.invert = obj.invert !== undefined ? obj.invert : false; + this.data.overlayIcon = obj.overlayIcon !== undefined ? obj.overlayIcon : false; + this.data.tooltip = obj.tooltip !== undefined ? obj.tooltip : false; + this.data.tooltipLabel = obj.tooltipLabel !== undefined ? obj.tooltipLabel : this.data.alias; + this.data.tooltipColors = obj.tooltipColors !== undefined ? obj.tooltipColors : false; + this.data.tooltipOn = obj.tooltipOn !== undefined ? obj.tooltipOn : 'a'; + this.data.tpDirection = obj.tpDirection !== undefined ? obj.tpDirection : 'v'; + this.data.tpGraph = obj.tpGraph !== undefined ? obj.tpGraph : false; + this.data.tpGraphSize = obj.tpGraphSize !== undefined ? obj.tpGraphSize : '100%'; + this.data.tpGraphType = obj.tpGraphType !== undefined ? obj.tpGraphType : 'line'; + var maps = []; + this.data.shapeProp = obj.shapeProp || 'id'; + this.data.shapeData = []; + maps = []; + if (obj.shapeMaps !== undefined && obj.shapeMaps !== null && obj.shapeMaps.length > 0) maps = obj.shapeMaps;else maps = obj.shapeData; + + if (maps !== undefined && maps !== null && maps.length > 0) { + maps.forEach(function (map) { + var newData = {}; + var sm = new ShapeMap(map.pattern, newData); + sm["import"](map); + + _this.shapeMaps.push(sm); + + _this.data.shapeData.push(newData); + }); + } + + this.data.textProp = obj.textProp || 'id'; + this.data.textData = []; + maps = []; + if (obj.shapeMaps !== undefined && obj.shapeMaps !== null && obj.shapeMaps.length > 0) maps = obj.textMaps;else maps = obj.textData; + + if (maps !== undefined && maps != null && maps.length > 0) { + maps.forEach(function (map) { + var newData = {}; + var tm = new TextMap(map.pattern, newData); + tm["import"](map); + + _this.textMaps.push(tm); + + _this.data.textData.push(newData); + }); + } + + this.data.linkProp = obj.linkProp || 'id'; + this.data.linkData = []; + + if (obj.linkData !== undefined && obj.linkData != null && obj.linkData.length > 0) { + obj.linkData.forEach(function (map) { + var newData = {}; + var lm = new LinkMap(map.pattern, newData); + lm["import"](map); + + _this.linkMaps.push(lm); + + _this.data.linkData.push(newData); + }); + } + + this.data.mappingType = obj.mappingType || 1; + this.data.valueData = []; + + if (obj.valueData !== undefined && obj.valueData != null && obj.valueData.length > 0) { + obj.valueData.forEach(function (map) { + var newData = {}; + var vm = new ValueMap(map.value, map.text, newData); + vm["import"](map); + + _this.valueMaps.push(vm); + + _this.data.valueData.push(newData); + }); + } + + this.data.rangeData = []; + + if (obj.rangeData !== undefined && obj.rangeData != null && obj.rangeData.length > 0) { + obj.rangeData.forEach(function (map) { + var newData = {}; + var rm = new RangeMap(map.from, map.to, map.text, newData); + + _this.rangeMaps.push(rm); + + _this.data.rangeData.push(newData); + }); + } + + this.data.sanitize = obj.sanitize || false; + } + }, { + key: "getId", + value: function getId() { + return this.id; + } + }, { + key: "highlightCells", + value: function highlightCells() { + if (this.states) { + this.states.forEach(function (state) { + state.highlightCell(); + }); + } + } + }, { + key: "unhighlightCells", + value: function unhighlightCells() { + if (this.states) { + this.states.forEach(function (state) { + state.unhighlightCell(); + }); + } + } + }, { + key: "setOrder", + value: function setOrder(order) { + this.data.order = order; + } + }, { + key: "getOrder", + value: function getOrder() { + return this.data.order; + } + }, { + key: "invertColorOrder", + value: function invertColorOrder() { + var ref = this.data.colors; + var copy = ref[0]; + ref[0] = ref[2]; + ref[2] = copy; + if (this.data.invert) this.data.invert = false;else this.data.invert = true; + } + }, { + key: "toColorize", + value: function toColorize(level) { + if (level === -1) return false; + if (this.data.colorMode === "disabled") return false; + if (this.data.colorOn === 'n') return false; + if (this.data.colorOn === 'a') return true; + if (this.data.colorOn === 'wc' && level >= 1) return true; + return false; + } + }, { + key: "toLabelize", + value: function toLabelize(level) { + if (this.data.textOn === 'wmd') return true; + if (this.data.textOn === 'n') return false; + if (this.data.textOn === 'wc' && level >= 1) return true; + if (this.data.textOn === 'co' && level >= 2) return true; + return false; + } + }, { + key: "toIconize", + value: function toIconize(level) { + if (this.data.overlayIcon === false) return false; + if (this.data.overlayIcon === true && level >= 1) return true; + return false; + } + }, { + key: "toLinkable", + value: function toLinkable(level) { + if (this.data.link === false) return false; + if (this.data.linkOn === 'n') return false; + if (this.data.linkOn === 'a') return true; + if (this.data.linkOn === 'wc' && level >= 1) return true; + return false; + } + }, { + key: "toTooltipize", + value: function toTooltipize(level) { + if (this.data.tooltip === false) return false; + if (this.data.tooltipOn === 'n') return false; + if (this.data.tooltipOn === 'a') return true; + if (this.data.tooltipOn === 'wc' && level >= 1) return true; + return false; + } + }, { + key: "matchSerie", + value: function matchSerie(serie) { + return u.matchString(serie.alias, this.data.pattern); + } + }, { + key: "addShapeMap", + value: function addShapeMap(pattern) { + var data = {}; + var m = new ShapeMap(pattern, data); + m["import"](data); + this.shapeMaps.push(m); + this.data.shapeData.push(data); + } + }, { + key: "removeShapeMap", + value: function removeShapeMap(index) { + this.data.shapeData.splice(index, 1); + this.shapeMaps.splice(index, 1); + } + }, { + key: "getShapeMap", + value: function getShapeMap(index) { + return this.shapeMaps[index]; + } + }, { + key: "getShapeMaps", + value: function getShapeMaps() { + return this.shapeMaps; + } + }, { + key: "matchShape", + value: function matchShape(pattern) { + var found = false; + this.shapeMaps.forEach(function (element) { + if (element.match(pattern)) found = true; + }); + return found; + } + }, { + key: "addTextMap", + value: function addTextMap(pattern) { + var data = {}; + var m = new TextMap(pattern, data); + m["import"](data); + this.textMaps.push(m); + this.data.textData.push(data); + } + }, { + key: "removeTextMap", + value: function removeTextMap(index) { + this.data.textData.splice(index, 1); + this.textMaps.splice(index, 1); + } + }, { + key: "getTextMap", + value: function getTextMap(index) { + return this.textMaps[index]; + } + }, { + key: "getTextMaps", + value: function getTextMaps() { + return this.textMaps; + } + }, { + key: "matchText", + value: function matchText(pattern) { + var found = false; + this.textMaps.forEach(function (element) { + if (element.match(pattern)) found = true; + }); + return found; + } + }, { + key: "addLinkMap", + value: function addLinkMap(pattern) { + u.log(1, 'Rule.addLinkMap()'); + var data = {}; + var m = new LinkMap(pattern, data); + m["import"](data); + this.linkMaps.push(m); + this.data.linkData.push(data); + } + }, { + key: "removeLinkMap", + value: function removeLinkMap(index) { + this.data.linkData.splice(index, 1); + this.linkMaps.splice(index, 1); + } + }, { + key: "getLinkMap", + value: function getLinkMap(index) { + return this.linkMaps[index]; + } + }, { + key: "getLinkMaps", + value: function getLinkMaps() { + return this.linkMaps; + } + }, { + key: "matchLink", + value: function matchLink(pattern) { + var found = false; + this.linkMaps.forEach(function (element) { + if (element.match(pattern)) found = true; + }); + return found; + } + }, { + key: "addValueMap", + value: function addValueMap(value, text) { + var data = {}; + var m = new ValueMap(value, text, data); + m["import"](data); + this.valueMaps.push(m); + this.data.valueData.push(data); + } + }, { + key: "removeValueMap", + value: function removeValueMap(index) { + this.data.valueData.splice(index, 1); + this.valueMaps.splice(index, 1); + } + }, { + key: "getValueMap", + value: function getValueMap(index) { + return this.valueMaps[index]; + } + }, { + key: "getValueMaps", + value: function getValueMaps() { + return this.valueMaps; + } + }, { + key: "addRangeMap", + value: function addRangeMap(from, to, text) { + var data = {}; + var m = new RangeMap(from, to, text, data); + this.rangeMaps.push(m); + this.data.rangeData.push(data); + } + }, { + key: "removeRangeMap", + value: function removeRangeMap(index) { + this.data.rangeData.splice(index, 1); + this.rangeMaps.splice(index, 1); + } + }, { + key: "getRangeMap", + value: function getRangeMap(index) { + return this.rangeMaps[index]; + } + }, { + key: "getRangeMaps", + value: function getRangeMaps() { + return this.rangeMaps; + } + }, { + key: "hideRangeMap", + value: function hideRangeMap(index) { + this.rangeMaps[index].hide(); + } + }, { + key: "showRangeMap", + value: function showRangeMap(index) { + this.rangeMaps[index].show(); + } + }, { + key: "getColorForValue", + value: function getColorForValue(value) { + if (!this.data.thresholds || this.data.thresholds.length === 0) { + return null; + } + + for (var i = this.data.thresholds.length; i > 0; i -= 1) { + if (value >= this.data.thresholds[i - 1]) { + return this.data.colors[i]; + } + } + + return _.first(this.data.colors); + } + }, { + key: "getColorForLevel", + value: function getColorForLevel(level) { + var colors = _toConsumableArray(this.data.colors); + + if (!this.data.invert) colors = colors.reverse(); + if (level <= 0) return colors[0];else if (colors[level] !== undefined) return colors[level]; + return _.first(colors); + } + }, { + key: "getThresholdLevel", + value: function getThresholdLevel(value) { + if (this.data.type === 'number') { + var thresholdLevel = 0; + var thresholds = this.data.thresholds; + if (thresholds === undefined || thresholds.length === 0) return -1; + if (thresholds.length !== 2) return -1; + + if (!this.data.invert) { + thresholdLevel = 2; + if (value >= thresholds[0]) thresholdLevel = 1; + if (value >= thresholds[1]) thresholdLevel = 0; + } else { + thresholdLevel = 0; + if (value >= thresholds[0]) thresholdLevel = 1; + if (value >= thresholds[1]) thresholdLevel = 2; + } + + return thresholdLevel; + } else if (this.data.type === 'string') { + if (value === this.data.stringWarning) return 1; + if (value === this.data.stringCritical) return 2; + var formatedValue = this.getFormattedValue(value); + if (formatedValue === this.data.stringWarning) return 1; + if (formatedValue === this.data.stringCritical) return 2; + return 0; + } + + return 0; + } + }, { + key: "getValueForSerie", + value: function getValueForSerie(serie) { + if (this.matchSerie(serie)) { + var value = _.get(serie.stats, this.data.aggregation); + + if (value === undefined || value === null) { + value = serie.datapoints[serie.datapoints.length - 1][0]; + } + + return value; + } + + return '-'; + } + }, { + key: "getFormattedValueForSerie", + value: function getFormattedValueForSerie(serie) { + var formattedValue = this.getValueForSerie(serie); + return this.getFormattedValue(formattedValue); + } + }, { + key: "getLink", + value: function getLink() { + if (this.data.linkParams) return this.data.linkUrl + window.location.search; + return this.data.linkUrl; + } + }, { + key: "getFormattedValue", + value: function getFormattedValue(value) { + if (this.data.type === 'number') { + if (!_.isFinite(value)) return 'Invalid Number'; + + if (value === null || value === void 0) { + return '-'; + } + + var decimals = this.decimalPlaces(value); + decimals = typeof this.data.decimals === 'number' ? Math.min(this.data.decimals, decimals) : decimals; + return formatValue(value, this.data.unit, this.data.decimals); + } + + if (this.data.type === 'string') { + if (_.isArray(value)) { + value = value.join(', '); + } + + var mappingType = this.data.mappingType || 0; + + if (mappingType === 1 && this.valueMaps) { + for (var i = 0; i < this.valueMaps.length; i += 1) { + var map = this.valueMaps[i]; + if (map.match(value)) return map.getFormattedText(value); + } + + return value.toString(); + } + + if (mappingType === 2 && this.rangeMaps) { + for (var _i = 0; _i < this.rangeMaps.length; _i += 1) { + var _map = this.rangeMaps[_i]; + if (_map.match(value)) return _map.getFormattedText(value); + } + + return value.toString(); + } + + if (value === null || value === void 0) { + return '-'; + } + } + + if (this.data.type === 'date') { + if (value === undefined || value === null) { + return '-'; + } + + if (_.isArray(value)) { + value = value[0]; + } + + var date = (0, _moment["default"])(value); + return date.format(this.data.dateFormat); + } + + return value; + } + }, { + key: "getReplaceText", + value: function getReplaceText(text, FormattedValue) { + if (this.data.textReplace === 'content') return FormattedValue; + + if (this.data.textReplace === 'pattern') { + var regexVal = u.stringToJsRegex(this.data.textPattern); + if (text.toString().match(regexVal)) return text.toString().replace(regexVal, FormattedValue); + return text; + } + + if (this.data.textReplace === 'as') { + return "".concat(text, " ").concat(FormattedValue); + } + + if (this.data.textReplace === 'anl') { + return "".concat(text, "\n").concat(FormattedValue); + } + } + }, { + key: "defaultValueFormatter", + value: function defaultValueFormatter(value) { + if (value === null || value === void 0 || value === undefined) { + return ''; + } + + if (_.isArray(value)) { + value = value.join(', '); + } + + if (this.sanitize) { + return this.$sanitize(value); + } + + return _.escape(value); + } + }, { + key: "decimalPlaces", + value: function decimalPlaces(num) { + var match = ('' + num).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/); + + if (!match) { + return 0; + } + + return Math.max(0, (match[1] ? match[1].length : 0) - (match[2] ? +match[2] : 0)); + } + }]); + + return Rule; +}(); + +exports["default"] = Rule; + +var ShapeMap = function () { + function ShapeMap(pattern, data) { + _classCallCheck(this, ShapeMap); + + this.data = data; + this.id = u.uniqueID(); + this.data.pattern = undefined; + this.data.pattern = pattern; + this["import"](data); + } + + _createClass(ShapeMap, [{ + key: "import", + value: function _import(obj) { + this.data.pattern = obj.pattern || ''; + this.data.hidden = obj.hidden || false; + } + }, { + key: "match", + value: function match(text) { + if (text === undefined || text === null || text.length === 0) return false; + return u.matchString(text, this.data.pattern); + } + }, { + key: "getId", + value: function getId() { + return this.id; + } + }, { + key: "show", + value: function show() { + this.data.hidden = false; + } + }, { + key: "hide", + value: function hide() { + this.data.hidden = true; + } + }, { + key: "isHidden", + value: function isHidden() { + return this.data.hidden; + } + }, { + key: "export", + value: function _export() { + return { + pattern: this.data.pattern, + hidden: this.data.hidden + }; + } + }, { + key: "toVisible", + value: function toVisible() { + if (this.data.hidden) return false; + return true; + } + }]); + + return ShapeMap; +}(); + +var TextMap = function () { + function TextMap(pattern, data) { + _classCallCheck(this, TextMap); + + this.data = data; + this.id = u.uniqueID(); + this.data.pattern = pattern; + this["import"](data); + } + + _createClass(TextMap, [{ + key: "import", + value: function _import(obj) { + this.data.pattern = obj.pattern || this.data.pattern; + this.data.hidden = obj.hidden || false; + } + }, { + key: "match", + value: function match(text) { + if (text === undefined || text === null || text.length === 0) return false; + return u.matchString(text, this.data.pattern); + } + }, { + key: "getId", + value: function getId() { + return this.id; + } + }, { + key: "show", + value: function show() { + this.data.hidden = false; + } + }, { + key: "hide", + value: function hide() { + this.data.hidden = true; + } + }, { + key: "isHidden", + value: function isHidden() { + return this.data.hidden; + } + }, { + key: "export", + value: function _export() { + return { + pattern: this.data.pattern, + hidden: this.data.hidden + }; + } + }]); + + return TextMap; +}(); + +var LinkMap = function () { + function LinkMap(pattern, data) { + _classCallCheck(this, LinkMap); + + this.data = data; + this.id = u.uniqueID(); + this.data.pattern = pattern; + this["import"](data); + } + + _createClass(LinkMap, [{ + key: "import", + value: function _import(obj) { + this.data.pattern = obj.pattern || this.data.pattern || ''; + this.data.hidden = obj.hidden || false; + } + }, { + key: "match", + value: function match(text) { + if (text === undefined || text === null || text.length === 0) return false; + return u.matchString(text, this.data.pattern); + } + }, { + key: "getId", + value: function getId() { + return this.id; + } + }, { + key: "show", + value: function show() { + this.data.hidden = false; + } + }, { + key: "hide", + value: function hide() { + this.data.hidden = true; + } + }, { + key: "isHidden", + value: function isHidden() { + return this.data.hidden; + } + }, { + key: "export", + value: function _export() { + return { + pattern: this.data.pattern, + hidden: this.data.hidden + }; + } + }]); + + return LinkMap; +}(); + +var RangeMap = function () { + function RangeMap(from, to, text, data) { + _classCallCheck(this, RangeMap); + + this.data = data; + this.id = u.uniqueID(); + this.data.from = from; + this.data.to = to; + this.data.text = text; + this.data.hidden = false; + this["import"](data); + } + + _createClass(RangeMap, [{ + key: "import", + value: function _import(obj) { + this.data.from = obj.from || this.data.from || ''; + this.data.to = obj.to || this.data.to || ''; + this.data.text = obj.text || this.data.text || ''; + this.data.hidden = obj.hidden || this.data.hidden || false; + } + }, { + key: "match", + value: function match(value) { + if (this.data.from === 'null' && this.data.to === 'null') { + return true; + } + + if (value === null) { + if (this.data.from === 'null' && this.data.to === 'null') { + return true; + } + } + + if (Number(this.data.from) <= Number(value) && Number(this.data.to) >= Number(value)) { + return true; + } + + return false; + } + }, { + key: "getId", + value: function getId() { + return this.id; + } + }, { + key: "getFormattedText", + value: function getFormattedText(value) { + if (value === null) { + if (this.data.from === 'null' && this.data.to === 'null') { + return this.data.text; + } + } + + if (this.match(value)) { + return this.data.text; + } + + return value; + } + }, { + key: "show", + value: function show() { + this.data.hidden = false; + } + }, { + key: "hide", + value: function hide() { + this.data.hidden = true; + } + }, { + key: "isHidden", + value: function isHidden() { + return this.data.hidden; + } + }, { + key: "export", + value: function _export() { + return { + from: this.data.from, + to: this.data.to, + text: this.data.text, + hidden: this.data.hidden + }; + } + }]); + + return RangeMap; +}(); + +var ValueMap = function () { + function ValueMap(value, text, data) { + _classCallCheck(this, ValueMap); + + this.data = data; + this.id = u.uniqueID(); + this.data.value = value; + this.data.text = text; + this.data.hidden = false; + this["import"](data); + } + + _createClass(ValueMap, [{ + key: "import", + value: function _import(obj) { + this.data.value = obj.value || this.data.value || ''; + this.data.text = obj.text || this.data.text || ''; + this.data.hidden = obj.hidden || this.data.hidden || false; + } + }, { + key: "match", + value: function match(value) { + if (value === null || value === undefined) { + if (this.data.value === 'null') { + return true; + } + + return false; + } + + if (!_.isString(value) && Number(this.data.value) === Number(value)) { + return true; + } + + return u.matchString(value.toString(), this.data.value); + } + }, { + key: "getId", + value: function getId() { + return this.id; + } + }, { + key: "getFormattedText", + value: function getFormattedText(value) { + if (value === null) { + if (this.data.value === 'null') { + return this.data.text; + } + } + + if (this.match(value)) { + return this.data.text; + } + + return value; + } + }, { + key: "show", + value: function show() { + this.data.hidden = false; + } + }, { + key: "hide", + value: function hide() { + this.data.hidden = true; + } + }, { + key: "isHidden", + value: function isHidden() { + return this.data.hidden; + } + }, { + key: "export", + value: function _export() { + return { + value: this.data.value, + text: this.data.text, + hidden: this.data.hidden + }; + } + }]); + + return ValueMap; +}(); + +function formatValue(value, unit, decimals) { + return _kbn["default"].valueFormats[unit](value, decimals, null).toString(); +} diff --git a/data/plugins/grafana-flowcharting/dist/rulesHandler.js b/data/plugins/grafana-flowcharting/dist/rulesHandler.js new file mode 100644 index 0000000000000..b4af296de024e --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/rulesHandler.js @@ -0,0 +1,164 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _rule_class = _interopRequireDefault(require("./rule_class")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +var RulesHandler = function () { + function RulesHandler($scope, data) { + _classCallCheck(this, RulesHandler); + + u.log(1, 'RulesHandler.constructor()'); + this.$scope = $scope || null; + this.rules = []; + this.data = data; + this["import"](this.data); + } + + _createClass(RulesHandler, [{ + key: "import", + value: function _import(obj) { + var _this = this; + + u.log(1, 'RuleHandler.import()'); + u.log(0, 'RuleHandler.import() obj', obj); + this.rules = []; + var index = 1; + + if (obj !== undefined && obj !== null && obj.length > 0) { + if (obj[0].order != undefined) obj = _.sortBy(_.sortBy(obj, function (o) { + return o.order; + })); + obj.forEach(function (map) { + var newData = {}; + var rule = new _rule_class["default"](map.pattern, newData); + rule["import"](map); + rule.setOrder(index); + index += 1; + + _this.rules.push(rule); + + _this.data.push(newData); + }); + } + } + }, { + key: "getRules", + value: function getRules() { + return this.rules; + } + }, { + key: "getRule", + value: function getRule(index) { + return this.rules[index]; + } + }, { + key: "addRule", + value: function addRule(pattern) { + var data = {}; + var newRule = new _rule_class["default"](pattern, data); + this.rules.push(newRule); + this.data.push(data); + newRule.setOrder(this.countRules()); + return newRule; + } + }, { + key: "countRules", + value: function countRules() { + if (this.rules !== undefined && Array.isArray(this.rules)) return this.rules.length; + return 0; + } + }, { + key: "setOrder", + value: function setOrder() { + for (var index = 0; index < this.rules.length; index++) { + var rule = this.rules[index]; + rule.setOrder(index + 1); + } + } + }, { + key: "removeRule", + value: function removeRule(index) { + this.rules.splice(index, 1); + this.data.splice(index, 1); + this.setOrder(); + } + }, { + key: "cloneRule", + value: function cloneRule(index) { + var rule = this.getRule(index); + var data = rule.getData(); + var newData = {}; + this.reduce(); + var newRule = new _rule_class["default"](newData.pattern, newData); + newRule["import"](data); + newData.alias = "Copy of ".concat(newData.alias); + this.rules.splice(index, 0, newRule); + this.data.splice(index, 0, newData); + newRule.data.reduce = false; + this.activeRuleIndex = index; + this.setOrder(); + var elt = document.getElementById(newRule.getId()); + + if (elt) { + setTimeout(function () { + elt.focus(); + }, 100); + } + } + }, { + key: "reduce", + value: function reduce() { + this.getRules().forEach(function (rule) { + rule.data.reduce = true; + }); + } + }, { + key: "moveRuleToUp", + value: function moveRuleToUp(index) { + var first = 0; + var rules = this.rules; + var last = rules.length - 1; + + if (index !== first && last !== first) { + var curr = rules[index]; + curr.setOrder(index); + var before = rules[index - 1]; + before.setOrder(index + 1); + rules[index - 1] = curr; + rules[index] = before; + } + } + }, { + key: "moveRuleToDown", + value: function moveRuleToDown(index) { + var first = 0; + var rules = this.rules; + var last = rules.length - 1; + + if (index !== last && last !== first) { + var curr = rules[index]; + curr.setOrder(index + 2); + var after = rules[index + 1]; + after.setOrder(index + 1); + rules[index + 1] = curr; + rules[index] = after; + } + } + }]); + + return RulesHandler; +}(); + +exports["default"] = RulesHandler; diff --git a/data/plugins/grafana-flowcharting/dist/state_class.js b/data/plugins/grafana-flowcharting/dist/state_class.js new file mode 100644 index 0000000000000..b46bf9c873eef --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/state_class.js @@ -0,0 +1,516 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _tooltipHandler = _interopRequireDefault(require("./tooltipHandler")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +var State = function () { + function State(mxcell, xgraph, ctrl) { + var _this = this; + + _classCallCheck(this, State); + + u.log(1, 'State.constructor()'); + this.mxcell = mxcell; + this.cellId = mxcell.id; + this.xgraph = xgraph; + this.ctrl = ctrl; + this.templateSrv = this.ctrl.templateSrv; + this.changed = false; + this.changedShape = false; + this.changedStyle = { + fillColor: false, + strokeColor: false, + fontColor: false, + imageBorder: false, + imageBackground: false + }; + this.changedText = false; + this.changedLink = false; + this.matched = false; + this.matchedShape = false; + this.matchedStyle = { + fillColor: false, + strokeColor: false, + fontColor: false, + imageBorder: false, + imageBackground: false + }; + this.matchedText = false; + this.matchedLink = false; + this.globalLevel = -1; + this.styleKeys = ['fillColor', 'strokeColor', 'fontColor', 'imageBorder', 'imageBackground']; + this.level = { + fillColor: -1, + strokeColor: -1, + fontColor: -1, + imageBorder: -1, + imageBackground: -1 + }; + this.tooltipHandler = null; + this.mxcell.GF_tooltipHandler = null; + this.currentColors = {}; + this.originalColors = {}; + this.originalStyle = mxcell.getStyle(); + this.originalText = this.xgraph.getLabel(mxcell); + this.currentText = this.originalText; + var link = this.xgraph.getLink(mxcell); + if (link === undefined) link = null; + this.originalLink = link; + this.currentLink = link; + this.styleKeys.forEach(function (style) { + var color = _this.xgraph.getStyleCell(mxcell, style); + + _this.currentColors[style] = color; + _this.originalColors[style] = color; + }); + } + + _createClass(State, [{ + key: "async_applyState", + value: function () { + var _async_applyState = _asyncToGenerator(regeneratorRuntime.mark(function _callee() { + return regeneratorRuntime.wrap(function _callee$(_context) { + while (1) { + switch (_context.prev = _context.next) { + case 0: + this.applyState(); + + case 1: + case "end": + return _context.stop(); + } + } + }, _callee, this); + })); + + function async_applyState() { + return _async_applyState.apply(this, arguments); + } + + return async_applyState; + }() + }, { + key: "setState", + value: function setState(rule, serie) { + var _this2 = this; + + u.log(1, 'State.setState()'); + u.log(0, 'State.setState() Rule', rule); + u.log(0, 'State.setState() Serie', serie); + + if (rule.matchSerie(serie)) { + var shapeMaps = rule.getShapeMaps(); + var textMaps = rule.getTextMaps(); + var linkMaps = rule.getLinkMaps(); + var value = rule.getValueForSerie(serie); + var FormattedValue = rule.getFormattedValue(value); + var level = rule.getThresholdLevel(value); + var color = rule.getColorForLevel(level); + var tooltipName = rule.data.alias + "_" + serie.alias; + var cellProp = this.getCellProp(rule.data.shapeProp); + shapeMaps.forEach(function (shape) { + if (!shape.isHidden() && shape.match(cellProp)) { + _this2.matchedShape = true; + _this2.matched = true; + _this2.mxcell.serie = serie; + + if (rule.toTooltipize(level)) { + var tpColor = null; + var label = rule.data.tooltipLabel == null || rule.data.tooltipLabel.length === 0 ? serie.alias : rule.data.tooltipLabel; + if (rule.data.tooltipColors) tpColor = color; + + _this2.addTooltip(tooltipName, label, FormattedValue, tpColor, rule.data.tpDirection); + + if (rule.data.tpGraph) _this2.addTooltipGraph(tooltipName, rule.data.tpGraphType, rule.data.tpGraphSize, serie); + + _this2.updateTooltipDate(); + } + + if (_this2.globalLevel <= level) { + _this2.setLevelStyle(rule.data.style, level); + + if (rule.toColorize(level)) { + _this2.setColorStyle(rule.data.style, color); + + _this2.matchedStyle[rule.data.style] = true; + } else if (_this2.changedShape) { + if (_this2.changedStyle[rule.data.style]) _this2.unsetColorStyle(rule.data.style); + } + + _this2.overlayIcon = rule.toIconize(level); + } + } + }); + cellProp = this.getCellProp(rule.data.textProp); + textMaps.forEach(function (text) { + if (!text.isHidden() && text.match(cellProp)) { + _this2.matchedText = true; + _this2.matched = true; + + if (rule.toLabelize(level)) { + var textScoped = _this2.templateSrv.replaceWithText(FormattedValue); + + _this2.setText(rule.getReplaceText(_this2.currentText, textScoped)); + } else { + _this2.setText(rule.getReplaceText(_this2.currentText, '')); + } + } + }); + cellProp = this.getCellProp(rule.data.linkProp); + linkMaps.forEach(function (link) { + if (!link.isHidden() && link.match(cellProp)) { + _this2.matchedLink = true; + _this2.matched = true; + + if (_this2.globalLevel <= level) { + if (rule.toLinkable(level)) { + var linkScoped = _this2.templateSrv.replaceWithText(rule.getLink()); + + _this2.setLink(linkScoped); + } + } + } + }); + } + + u.log(0, 'State.setState() state', this); + } + }, { + key: "unsetState", + value: function unsetState() { + var _this3 = this; + + u.log(1, 'State.unsetState()'); + this.unsetLevel(); + this.resetStyle(); + this.unsetText(); + this.unsetLink(); + this.unsetTooltip(); + this.matched = false; + this.matchedShape = false; + this.styleKeys.forEach(function (key) { + _this3.matchedStyle[key] = false; + }); + this.matchedText = false; + this.matchedLink = false; + } + }, { + key: "isMatched", + value: function isMatched() { + return this.matched; + } + }, { + key: "isChanged", + value: function isChanged() { + return this.changed; + } + }, { + key: "getCellProp", + value: function getCellProp(prop) { + if (prop === 'id') return this.cellId; + if (prop === 'value') return this.originalText; + return '/!\\ Not found'; + } + }, { + key: "setColorStyle", + value: function setColorStyle(style, color) { + u.log(1, 'State.setColorStyle()'); + this.currentColors[style] = color; + } + }, { + key: "unsetColorStyle", + value: function unsetColorStyle(style) { + this.currentColors[style] = this.originalColors[style]; + } + }, { + key: "unsetColor", + value: function unsetColor() { + var _this4 = this; + + this.styleKeys.forEach(function (style) { + _this4.unsetColorStyle(style); + }); + } + }, { + key: "unsetLevelStyle", + value: function unsetLevelStyle(style) { + this.level[style] = -1; + } + }, { + key: "unsetTooltip", + value: function unsetTooltip() { + if (this.tooltipHandler != null) this.tooltipHandler.destroy(); + this.tooltipHandler = null; + } + }, { + key: "unsetLevel", + value: function unsetLevel() { + var _this5 = this; + + this.styleKeys.forEach(function (key) { + _this5.unsetLevelStyle(key); + }); + this.globalLevel = -1; + } + }, { + key: "setLevelStyle", + value: function setLevelStyle(style, level) { + u.log(1, 'State.setLevelStyle()'); + this.level[style] = level; + if (this.globalLevel < level) this.globalLevel = level; + } + }, { + key: "getLevelStyle", + value: function getLevelStyle(style) { + return this.level[style]; + } + }, { + key: "getLevel", + value: function getLevel() { + return this.globalLevel; + } + }, { + key: "getTextLevel", + value: function getTextLevel() { + var level = this.getLevel(); + + switch (level) { + case -1: + return 'NO DATA'; + + case 0: + return 'OK'; + + case 1: + return 'WARN'; + + case 2: + return 'ERROR'; + + default: + return 'NULL'; + } + } + }, { + key: "setText", + value: function setText(text) { + this.currentText = text; + } + }, { + key: "unsetText", + value: function unsetText() { + this.currentText = this.originalText; + } + }, { + key: "setLink", + value: function setLink(url) { + this.currentLink = url; + } + }, { + key: "unsetLink", + value: function unsetLink() { + this.currentLink = this.originalLink; + } + }, { + key: "addTooltip", + value: function addTooltip(name, label, value, color, direction) { + u.log(1, 'State.addTooltipValue()'); + u.log(0, 'State.addTooltipValue() label', label); + u.log(0, 'State.addTooltipValue() value', value); + if (this.tooltipHandler == null) this.tooltipHandler = new _tooltipHandler["default"](this.mxcell); + this.tooltipHandler.addMetric(name, label, value, color, direction); + } + }, { + key: "addTooltipGraph", + value: function addTooltipGraph(name, type, size, serie) { + this.tooltipHandler.addGraph(name, type, size, serie); + } + }, { + key: "updateTooltipDate", + value: function updateTooltipDate() { + this.tooltipHandler.updateDate(); + } + }, { + key: "isGradient", + value: function isGradient() {} + }, { + key: "isShape", + value: function isShape() { + return this.mxcell.isVertex(); + } + }, { + key: "isConnector", + value: function isConnector() { + return this.mxcell.isEdge(); + } + }, { + key: "applyShape", + value: function applyShape() { + this.changedShape = true; + this.applyStyle(); + this.applyIcon(); + } + }, { + key: "applyStyle", + value: function applyStyle() { + var _this6 = this; + + this.styleKeys.forEach(function (key) { + if (_this6.matchedStyle[key]) { + var color = _this6.currentColors[key]; + + _this6.xgraph.setStyleCell(_this6.mxcell, key, color); + + if (color !== _this6.originalColors[key]) _this6.changedStyle[key] = true; + } + }); + } + }, { + key: "applyIcon", + value: function applyIcon() { + if (this.overlayIcon) { + this.changedIcon = true; + this.xgraph.addOverlay(this.getTextLevel(), this.mxcell); + } else { + this.xgraph.removeOverlay(this.mxcell); + } + } + }, { + key: "resetShape", + value: function resetShape() { + this.changedShape = false; + this.resetStyle(); + this.resetIcon(); + } + }, { + key: "resetIcon", + value: function resetIcon() { + this.changedIcon = false; + this.xgraph.removeOverlay(this.mxcell); + } + }, { + key: "resetStyle", + value: function resetStyle() { + var _this7 = this; + + this.unsetColor(); + this.mxcell.setStyle(this.originalStyle); + this.styleKeys.forEach(function (key) { + _this7.changedStyle[key] = false; + }); + } + }, { + key: "applyText", + value: function applyText() { + this.changedText = true; + this.xgraph.setLabelCell(this.mxcell, this.currentText); + } + }, { + key: "resetText", + value: function resetText() { + this.changedText = false; + this.unsetText(); + this.xgraph.setLabelCell(this.mxcell, this.originalText); + } + }, { + key: "applyLink", + value: function applyLink() { + this.changedLink = true; + this.xgraph.addLink(this.mxcell, this.currentLink); + } + }, { + key: "resetLink", + value: function resetLink() { + this.changedLink = false; + this.unsetLink(); + this.xgraph.addLink(this.mxcell, this.originalLink); + } + }, { + key: "applyTooltip", + value: function applyTooltip() { + if (this.tooltipHandler != null && this.tooltipHandler.isChecked()) { + this.mxcell.GF_tooltipHandler = this.tooltipHandler; + } + } + }, { + key: "applyState", + value: function applyState() { + u.log(1, 'State.applyState()'); + + if (this.matched) { + this.changed = true; + this.applyTooltip(); + + if (this.matchedShape) { + this.applyShape(); + } else if (this.changedShape) { + this.resetShape(); + } + + if (this.matchedText) { + this.applyText(); + } else if (this.changedText) { + this.resetText(); + } + + if (this.matchedLink) { + this.applyLink(); + } else if (this.changedLink) { + this.resetLink(); + } + } else if (this.changed) this.reset(); + } + }, { + key: "reset", + value: function reset() { + this.resetShape(); + this.resetText(); + this.resetLink(); + this.changed = false; + } + }, { + key: "prepare", + value: function prepare() { + if (this.changed) { + this.lastChange = null; + this.unsetLevel(); + this.unsetTooltip(); + this.unsetText(); + this.matched = false; + this.matchedShape = false; + this.matchedText = false; + this.matchedLink = false; + } + } + }, { + key: "highlightCell", + value: function highlightCell() { + this.xgraph.highlightCell(this.mxcell); + } + }, { + key: "unhighlightCell", + value: function unhighlightCell() { + this.xgraph.unhighlightCell(this.mxcell); + } + }]); + + return State; +}(); + +exports["default"] = State; diff --git a/data/plugins/grafana-flowcharting/dist/statesHandler.js b/data/plugins/grafana-flowcharting/dist/statesHandler.js new file mode 100644 index 0000000000000..4154a05688d6f --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/statesHandler.js @@ -0,0 +1,182 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; + +var _state_class = _interopRequireDefault(require("./state_class")); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +var StateHandler = function () { + function StateHandler(xgraph, ctrl) { + _classCallCheck(this, StateHandler); + + u.log(1, 'StateHandler.constructor()'); + this.states = []; + this.ctrl = ctrl; + this.templateSrv = this.ctrl.templateSrv; + this.xgraph = xgraph; + this.initStates(this.xgraph, ctrl.rulesHandler.getRules()); + } + + _createClass(StateHandler, [{ + key: "initStates", + value: function initStates(xgraph, rules) { + var _this = this; + + u.log(1, 'StateHandler.initStates()'); + this.xgraph = xgraph; + this.states = []; + var mxcells = xgraph.getMxCells(); + + _.each(mxcells, function (mxcell) { + _this.addState(mxcell); + }); + } + }, { + key: "getStatesForRule", + value: function getStatesForRule(rule) { + u.log(1, 'StateHandler.getStatesForRule()'); + var result = []; + var name = null; + var xgraph = this.xgraph; + this.states.forEach(function (state) { + var mxcell = state.mxcell; + var found = false; + name = xgraph.getValuePropOfMxCell(rule.data.shapeProp, mxcell); + + if (rule.matchShape(name)) { + result.push(state); + found = true; + } + + if (!found) { + name = xgraph.getValuePropOfMxCell(rule.data.textProp, mxcell); + + if (rule.matchText(name)) { + result.push(state); + found = true; + } + } + + if (!found) { + name = xgraph.getValuePropOfMxCell(rule.data.linkProp, mxcell); + + if (rule.matchLink(name)) { + result.push(state); + found = true; + } + } + }); + return result; + } + }, { + key: "updateStates", + value: function updateStates(rules) { + var _this2 = this; + + u.log(1, 'StateHandler.updateStates()'); + rules.forEach(function (rule) { + rule.states = _this2.getStatesForRule(rule); + }); + } + }, { + key: "getStates", + value: function getStates() { + return this.states; + } + }, { + key: "getState", + value: function getState(cellId) { + var foundState = null; + + for (var index = 0; index < this.states.length; index++) { + var state = this.states[index]; + + if (cellId == state.cellId) { + foundState = state; + break; + } + } + + return foundState; + } + }, { + key: "addState", + value: function addState(mxcell) { + var state = this.getState(mxcell.id); + + if (state === null) { + state = new _state_class["default"](mxcell, this.xgraph, this.ctrl); + this.states.push(state); + } + + return state; + } + }, { + key: "countStates", + value: function countStates() { + return this.states.length; + } + }, { + key: "countStatesWithLevel", + value: function countStatesWithLevel(level) { + var count = 0; + this.states.forEach(function (state) { + if (state.getLevel() === level) count += 1; + }); + return count; + } + }, { + key: "prepare", + value: function prepare() { + this.states.forEach(function (state) { + state.prepare(); + }); + } + }, { + key: "setStates", + value: function setStates(rules, series) { + var _this3 = this; + + u.log(1, 'StateHandler.setStates()'); + u.log(0, 'StatesHandler.setStates() Rules', rules); + u.log(0, 'StatesHandler.setStates() Series', series); + u.log(0, 'StatesHandler.setStates() States', this.states); + this.prepare(); + rules.forEach(function (rule) { + if (rule.states === undefined || rule.states.length === 0) rule.states = _this3.getStatesForRule(rule); + rule.states.forEach(function (state) { + series.forEach(function (serie) { + state.setState(rule, serie); + }); + }); + }); + } + }, { + key: "applyStates", + value: function applyStates() { + u.log(1, 'StateHandler.applyStates()'); + this.states.forEach(function (state) { + state.applyState(); + }); + } + }, { + key: "async_applyStates", + value: function async_applyStates() { + this.applyStates(); + } + }]); + + return StateHandler; +}(); + +exports["default"] = StateHandler; diff --git a/data/plugins/grafana-flowcharting/dist/tooltipHandler.js b/data/plugins/grafana-flowcharting/dist/tooltipHandler.js new file mode 100644 index 0000000000000..74fad9fd1c9ba --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/tooltipHandler.js @@ -0,0 +1,134 @@ +(function webpackUniversalModuleDefinition(root, factory) { + if(typeof exports === 'object' && typeof module === 'object') + module.exports = factory(); + else if(typeof define === 'function' && define.amd) + define([], factory); + else if(typeof exports === 'object') + exports["tooltipHandler"] = factory(); + else + root["tooltipHandler"] = factory(); +})(window, function() { +return /******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/tooltipHandler.js"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./node_modules/chartist/dist/chartist.js": +/*!************************************************!*\ + !*** ./node_modules/chartist/dist/chartist.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("/* WEBPACK VAR INJECTION */(function(global) {var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;(function (root, factory) {\n if (true) {\n // AMD. Register as an anonymous module unless amdModuleId is set\n !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n return (root['Chartist'] = factory());\n }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n } else {}\n}(this, function () {\n\n/* Chartist.js 0.11.4\n * Copyright © 2019 Gion Kunz\n * Free to use under either the WTFPL license or the MIT license.\n * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-WTFPL\n * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-MIT\n */\n/**\n * The core module of Chartist that is mainly providing static functions and higher level functions for chart modules.\n *\n * @module Chartist.Core\n */\nvar Chartist = {\n version: '0.11.4'\n};\n\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * This object contains all namespaces used within Chartist.\n *\n * @memberof Chartist.Core\n * @type {{svg: string, xmlns: string, xhtml: string, xlink: string, ct: string}}\n */\n Chartist.namespaces = {\n svg: 'http://www.w3.org/2000/svg',\n xmlns: 'http://www.w3.org/2000/xmlns/',\n xhtml: 'http://www.w3.org/1999/xhtml',\n xlink: 'http://www.w3.org/1999/xlink',\n ct: 'http://gionkunz.github.com/chartist-js/ct'\n };\n\n /**\n * Helps to simplify functional style code\n *\n * @memberof Chartist.Core\n * @param {*} n This exact value will be returned by the noop function\n * @return {*} The same value that was provided to the n parameter\n */\n Chartist.noop = function (n) {\n return n;\n };\n\n /**\n * Generates a-z from a number 0 to 26\n *\n * @memberof Chartist.Core\n * @param {Number} n A number from 0 to 26 that will result in a letter a-z\n * @return {String} A character from a-z based on the input number n\n */\n Chartist.alphaNumerate = function (n) {\n // Limit to a-z\n return String.fromCharCode(97 + n % 26);\n };\n\n /**\n * Simple recursive object extend\n *\n * @memberof Chartist.Core\n * @param {Object} target Target object where the source will be merged into\n * @param {Object...} sources This object (objects) will be merged into target and then target is returned\n * @return {Object} An object that has the same reference as target but is extended and merged with the properties of source\n */\n Chartist.extend = function (target) {\n var i, source, sourceProp;\n target = target || {};\n\n for (i = 1; i < arguments.length; i++) {\n source = arguments[i];\n for (var prop in source) {\n sourceProp = source[prop];\n if (typeof sourceProp === 'object' && sourceProp !== null && !(sourceProp instanceof Array)) {\n target[prop] = Chartist.extend(target[prop], sourceProp);\n } else {\n target[prop] = sourceProp;\n }\n }\n }\n\n return target;\n };\n\n /**\n * Replaces all occurrences of subStr in str with newSubStr and returns a new string.\n *\n * @memberof Chartist.Core\n * @param {String} str\n * @param {String} subStr\n * @param {String} newSubStr\n * @return {String}\n */\n Chartist.replaceAll = function(str, subStr, newSubStr) {\n return str.replace(new RegExp(subStr, 'g'), newSubStr);\n };\n\n /**\n * Converts a number to a string with a unit. If a string is passed then this will be returned unmodified.\n *\n * @memberof Chartist.Core\n * @param {Number} value\n * @param {String} unit\n * @return {String} Returns the passed number value with unit.\n */\n Chartist.ensureUnit = function(value, unit) {\n if(typeof value === 'number') {\n value = value + unit;\n }\n\n return value;\n };\n\n /**\n * Converts a number or string to a quantity object.\n *\n * @memberof Chartist.Core\n * @param {String|Number} input\n * @return {Object} Returns an object containing the value as number and the unit as string.\n */\n Chartist.quantity = function(input) {\n if (typeof input === 'string') {\n var match = (/^(\\d+)\\s*(.*)$/g).exec(input);\n return {\n value : +match[1],\n unit: match[2] || undefined\n };\n }\n return { value: input };\n };\n\n /**\n * This is a wrapper around document.querySelector that will return the query if it's already of type Node\n *\n * @memberof Chartist.Core\n * @param {String|Node} query The query to use for selecting a Node or a DOM node that will be returned directly\n * @return {Node}\n */\n Chartist.querySelector = function(query) {\n return query instanceof Node ? query : document.querySelector(query);\n };\n\n /**\n * Functional style helper to produce array with given length initialized with undefined values\n *\n * @memberof Chartist.Core\n * @param length\n * @return {Array}\n */\n Chartist.times = function(length) {\n return Array.apply(null, new Array(length));\n };\n\n /**\n * Sum helper to be used in reduce functions\n *\n * @memberof Chartist.Core\n * @param previous\n * @param current\n * @return {*}\n */\n Chartist.sum = function(previous, current) {\n return previous + (current ? current : 0);\n };\n\n /**\n * Multiply helper to be used in `Array.map` for multiplying each value of an array with a factor.\n *\n * @memberof Chartist.Core\n * @param {Number} factor\n * @returns {Function} Function that can be used in `Array.map` to multiply each value in an array\n */\n Chartist.mapMultiply = function(factor) {\n return function(num) {\n return num * factor;\n };\n };\n\n /**\n * Add helper to be used in `Array.map` for adding a addend to each value of an array.\n *\n * @memberof Chartist.Core\n * @param {Number} addend\n * @returns {Function} Function that can be used in `Array.map` to add a addend to each value in an array\n */\n Chartist.mapAdd = function(addend) {\n return function(num) {\n return num + addend;\n };\n };\n\n /**\n * Map for multi dimensional arrays where their nested arrays will be mapped in serial. The output array will have the length of the largest nested array. The callback function is called with variable arguments where each argument is the nested array value (or undefined if there are no more values).\n *\n * @memberof Chartist.Core\n * @param arr\n * @param cb\n * @return {Array}\n */\n Chartist.serialMap = function(arr, cb) {\n var result = [],\n length = Math.max.apply(null, arr.map(function(e) {\n return e.length;\n }));\n\n Chartist.times(length).forEach(function(e, index) {\n var args = arr.map(function(e) {\n return e[index];\n });\n\n result[index] = cb.apply(null, args);\n });\n\n return result;\n };\n\n /**\n * This helper function can be used to round values with certain precision level after decimal. This is used to prevent rounding errors near float point precision limit.\n *\n * @memberof Chartist.Core\n * @param {Number} value The value that should be rounded with precision\n * @param {Number} [digits] The number of digits after decimal used to do the rounding\n * @returns {number} Rounded value\n */\n Chartist.roundWithPrecision = function(value, digits) {\n var precision = Math.pow(10, digits || Chartist.precision);\n return Math.round(value * precision) / precision;\n };\n\n /**\n * Precision level used internally in Chartist for rounding. If you require more decimal places you can increase this number.\n *\n * @memberof Chartist.Core\n * @type {number}\n */\n Chartist.precision = 8;\n\n /**\n * A map with characters to escape for strings to be safely used as attribute values.\n *\n * @memberof Chartist.Core\n * @type {Object}\n */\n Chartist.escapingMap = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n '\\'': '''\n };\n\n /**\n * This function serializes arbitrary data to a string. In case of data that can't be easily converted to a string, this function will create a wrapper object and serialize the data using JSON.stringify. The outcoming string will always be escaped using Chartist.escapingMap.\n * If called with null or undefined the function will return immediately with null or undefined.\n *\n * @memberof Chartist.Core\n * @param {Number|String|Object} data\n * @return {String}\n */\n Chartist.serialize = function(data) {\n if(data === null || data === undefined) {\n return data;\n } else if(typeof data === 'number') {\n data = ''+data;\n } else if(typeof data === 'object') {\n data = JSON.stringify({data: data});\n }\n\n return Object.keys(Chartist.escapingMap).reduce(function(result, key) {\n return Chartist.replaceAll(result, key, Chartist.escapingMap[key]);\n }, data);\n };\n\n /**\n * This function de-serializes a string previously serialized with Chartist.serialize. The string will always be unescaped using Chartist.escapingMap before it's returned. Based on the input value the return type can be Number, String or Object. JSON.parse is used with try / catch to see if the unescaped string can be parsed into an Object and this Object will be returned on success.\n *\n * @memberof Chartist.Core\n * @param {String} data\n * @return {String|Number|Object}\n */\n Chartist.deserialize = function(data) {\n if(typeof data !== 'string') {\n return data;\n }\n\n data = Object.keys(Chartist.escapingMap).reduce(function(result, key) {\n return Chartist.replaceAll(result, Chartist.escapingMap[key], key);\n }, data);\n\n try {\n data = JSON.parse(data);\n data = data.data !== undefined ? data.data : data;\n } catch(e) {}\n\n return data;\n };\n\n /**\n * Create or reinitialize the SVG element for the chart\n *\n * @memberof Chartist.Core\n * @param {Node} container The containing DOM Node object that will be used to plant the SVG element\n * @param {String} width Set the width of the SVG element. Default is 100%\n * @param {String} height Set the height of the SVG element. Default is 100%\n * @param {String} className Specify a class to be added to the SVG element\n * @return {Object} The created/reinitialized SVG element\n */\n Chartist.createSvg = function (container, width, height, className) {\n var svg;\n\n width = width || '100%';\n height = height || '100%';\n\n // Check if there is a previous SVG element in the container that contains the Chartist XML namespace and remove it\n // Since the DOM API does not support namespaces we need to manually search the returned list http://www.w3.org/TR/selectors-api/\n Array.prototype.slice.call(container.querySelectorAll('svg')).filter(function filterChartistSvgObjects(svg) {\n return svg.getAttributeNS(Chartist.namespaces.xmlns, 'ct');\n }).forEach(function removePreviousElement(svg) {\n container.removeChild(svg);\n });\n\n // Create svg object with width and height or use 100% as default\n svg = new Chartist.Svg('svg').attr({\n width: width,\n height: height\n }).addClass(className);\n\n svg._node.style.width = width;\n svg._node.style.height = height;\n\n // Add the DOM node to our container\n container.appendChild(svg._node);\n\n return svg;\n };\n\n /**\n * Ensures that the data object passed as second argument to the charts is present and correctly initialized.\n *\n * @param {Object} data The data object that is passed as second argument to the charts\n * @return {Object} The normalized data object\n */\n Chartist.normalizeData = function(data, reverse, multi) {\n var labelCount;\n var output = {\n raw: data,\n normalized: {}\n };\n\n // Check if we should generate some labels based on existing series data\n output.normalized.series = Chartist.getDataArray({\n series: data.series || []\n }, reverse, multi);\n\n // If all elements of the normalized data array are arrays we're dealing with\n // multi series data and we need to find the largest series if they are un-even\n if (output.normalized.series.every(function(value) {\n return value instanceof Array;\n })) {\n // Getting the series with the the most elements\n labelCount = Math.max.apply(null, output.normalized.series.map(function(series) {\n return series.length;\n }));\n } else {\n // We're dealing with Pie data so we just take the normalized array length\n labelCount = output.normalized.series.length;\n }\n\n output.normalized.labels = (data.labels || []).slice();\n // Padding the labels to labelCount with empty strings\n Array.prototype.push.apply(\n output.normalized.labels,\n Chartist.times(Math.max(0, labelCount - output.normalized.labels.length)).map(function() {\n return '';\n })\n );\n\n if(reverse) {\n Chartist.reverseData(output.normalized);\n }\n\n return output;\n };\n\n /**\n * This function safely checks if an objects has an owned property.\n *\n * @param {Object} object The object where to check for a property\n * @param {string} property The property name\n * @returns {boolean} Returns true if the object owns the specified property\n */\n Chartist.safeHasProperty = function(object, property) {\n return object !== null &&\n typeof object === 'object' &&\n object.hasOwnProperty(property);\n };\n\n /**\n * Checks if a value is considered a hole in the data series.\n *\n * @param {*} value\n * @returns {boolean} True if the value is considered a data hole\n */\n Chartist.isDataHoleValue = function(value) {\n return value === null ||\n value === undefined ||\n (typeof value === 'number' && isNaN(value));\n };\n\n /**\n * Reverses the series, labels and series data arrays.\n *\n * @memberof Chartist.Core\n * @param data\n */\n Chartist.reverseData = function(data) {\n data.labels.reverse();\n data.series.reverse();\n for (var i = 0; i < data.series.length; i++) {\n if(typeof(data.series[i]) === 'object' && data.series[i].data !== undefined) {\n data.series[i].data.reverse();\n } else if(data.series[i] instanceof Array) {\n data.series[i].reverse();\n }\n }\n };\n\n /**\n * Convert data series into plain array\n *\n * @memberof Chartist.Core\n * @param {Object} data The series object that contains the data to be visualized in the chart\n * @param {Boolean} [reverse] If true the whole data is reversed by the getDataArray call. This will modify the data object passed as first parameter. The labels as well as the series order is reversed. The whole series data arrays are reversed too.\n * @param {Boolean} [multi] Create a multi dimensional array from a series data array where a value object with `x` and `y` values will be created.\n * @return {Array} A plain array that contains the data to be visualized in the chart\n */\n Chartist.getDataArray = function(data, reverse, multi) {\n // Recursively walks through nested arrays and convert string values to numbers and objects with value properties\n // to values. Check the tests in data core -> data normalization for a detailed specification of expected values\n function recursiveConvert(value) {\n if(Chartist.safeHasProperty(value, 'value')) {\n // We are dealing with value object notation so we need to recurse on value property\n return recursiveConvert(value.value);\n } else if(Chartist.safeHasProperty(value, 'data')) {\n // We are dealing with series object notation so we need to recurse on data property\n return recursiveConvert(value.data);\n } else if(value instanceof Array) {\n // Data is of type array so we need to recurse on the series\n return value.map(recursiveConvert);\n } else if(Chartist.isDataHoleValue(value)) {\n // We're dealing with a hole in the data and therefore need to return undefined\n // We're also returning undefined for multi value output\n return undefined;\n } else {\n // We need to prepare multi value output (x and y data)\n if(multi) {\n var multiValue = {};\n\n // Single series value arrays are assumed to specify the Y-Axis value\n // For example: [1, 2] => [{x: undefined, y: 1}, {x: undefined, y: 2}]\n // If multi is a string then it's assumed that it specified which dimension should be filled as default\n if(typeof multi === 'string') {\n multiValue[multi] = Chartist.getNumberOrUndefined(value);\n } else {\n multiValue.y = Chartist.getNumberOrUndefined(value);\n }\n\n multiValue.x = value.hasOwnProperty('x') ? Chartist.getNumberOrUndefined(value.x) : multiValue.x;\n multiValue.y = value.hasOwnProperty('y') ? Chartist.getNumberOrUndefined(value.y) : multiValue.y;\n\n return multiValue;\n\n } else {\n // We can return simple data\n return Chartist.getNumberOrUndefined(value);\n }\n }\n }\n\n return data.series.map(recursiveConvert);\n };\n\n /**\n * Converts a number into a padding object.\n *\n * @memberof Chartist.Core\n * @param {Object|Number} padding\n * @param {Number} [fallback] This value is used to fill missing values if a incomplete padding object was passed\n * @returns {Object} Returns a padding object containing top, right, bottom, left properties filled with the padding number passed in as argument. If the argument is something else than a number (presumably already a correct padding object) then this argument is directly returned.\n */\n Chartist.normalizePadding = function(padding, fallback) {\n fallback = fallback || 0;\n\n return typeof padding === 'number' ? {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n } : {\n top: typeof padding.top === 'number' ? padding.top : fallback,\n right: typeof padding.right === 'number' ? padding.right : fallback,\n bottom: typeof padding.bottom === 'number' ? padding.bottom : fallback,\n left: typeof padding.left === 'number' ? padding.left : fallback\n };\n };\n\n Chartist.getMetaData = function(series, index) {\n var value = series.data ? series.data[index] : series[index];\n return value ? value.meta : undefined;\n };\n\n /**\n * Calculate the order of magnitude for the chart scale\n *\n * @memberof Chartist.Core\n * @param {Number} value The value Range of the chart\n * @return {Number} The order of magnitude\n */\n Chartist.orderOfMagnitude = function (value) {\n return Math.floor(Math.log(Math.abs(value)) / Math.LN10);\n };\n\n /**\n * Project a data length into screen coordinates (pixels)\n *\n * @memberof Chartist.Core\n * @param {Object} axisLength The svg element for the chart\n * @param {Number} length Single data value from a series array\n * @param {Object} bounds All the values to set the bounds of the chart\n * @return {Number} The projected data length in pixels\n */\n Chartist.projectLength = function (axisLength, length, bounds) {\n return length / bounds.range * axisLength;\n };\n\n /**\n * Get the height of the area in the chart for the data series\n *\n * @memberof Chartist.Core\n * @param {Object} svg The svg element for the chart\n * @param {Object} options The Object that contains all the optional values for the chart\n * @return {Number} The height of the area in the chart for the data series\n */\n Chartist.getAvailableHeight = function (svg, options) {\n return Math.max((Chartist.quantity(options.height).value || svg.height()) - (options.chartPadding.top + options.chartPadding.bottom) - options.axisX.offset, 0);\n };\n\n /**\n * Get highest and lowest value of data array. This Array contains the data that will be visualized in the chart.\n *\n * @memberof Chartist.Core\n * @param {Array} data The array that contains the data to be visualized in the chart\n * @param {Object} options The Object that contains the chart options\n * @param {String} dimension Axis dimension 'x' or 'y' used to access the correct value and high / low configuration\n * @return {Object} An object that contains the highest and lowest value that will be visualized on the chart.\n */\n Chartist.getHighLow = function (data, options, dimension) {\n // TODO: Remove workaround for deprecated global high / low config. Axis high / low configuration is preferred\n options = Chartist.extend({}, options, dimension ? options['axis' + dimension.toUpperCase()] : {});\n\n var highLow = {\n high: options.high === undefined ? -Number.MAX_VALUE : +options.high,\n low: options.low === undefined ? Number.MAX_VALUE : +options.low\n };\n var findHigh = options.high === undefined;\n var findLow = options.low === undefined;\n\n // Function to recursively walk through arrays and find highest and lowest number\n function recursiveHighLow(data) {\n if(data === undefined) {\n return undefined;\n } else if(data instanceof Array) {\n for (var i = 0; i < data.length; i++) {\n recursiveHighLow(data[i]);\n }\n } else {\n var value = dimension ? +data[dimension] : +data;\n\n if (findHigh && value > highLow.high) {\n highLow.high = value;\n }\n\n if (findLow && value < highLow.low) {\n highLow.low = value;\n }\n }\n }\n\n // Start to find highest and lowest number recursively\n if(findHigh || findLow) {\n recursiveHighLow(data);\n }\n\n // Overrides of high / low based on reference value, it will make sure that the invisible reference value is\n // used to generate the chart. This is useful when the chart always needs to contain the position of the\n // invisible reference value in the view i.e. for bipolar scales.\n if (options.referenceValue || options.referenceValue === 0) {\n highLow.high = Math.max(options.referenceValue, highLow.high);\n highLow.low = Math.min(options.referenceValue, highLow.low);\n }\n\n // If high and low are the same because of misconfiguration or flat data (only the same value) we need\n // to set the high or low to 0 depending on the polarity\n if (highLow.high <= highLow.low) {\n // If both values are 0 we set high to 1\n if (highLow.low === 0) {\n highLow.high = 1;\n } else if (highLow.low < 0) {\n // If we have the same negative value for the bounds we set bounds.high to 0\n highLow.high = 0;\n } else if (highLow.high > 0) {\n // If we have the same positive value for the bounds we set bounds.low to 0\n highLow.low = 0;\n } else {\n // If data array was empty, values are Number.MAX_VALUE and -Number.MAX_VALUE. Set bounds to prevent errors\n highLow.high = 1;\n highLow.low = 0;\n }\n }\n\n return highLow;\n };\n\n /**\n * Checks if a value can be safely coerced to a number. This includes all values except null which result in finite numbers when coerced. This excludes NaN, since it's not finite.\n *\n * @memberof Chartist.Core\n * @param value\n * @returns {Boolean}\n */\n Chartist.isNumeric = function(value) {\n return value === null ? false : isFinite(value);\n };\n\n /**\n * Returns true on all falsey values except the numeric value 0.\n *\n * @memberof Chartist.Core\n * @param value\n * @returns {boolean}\n */\n Chartist.isFalseyButZero = function(value) {\n return !value && value !== 0;\n };\n\n /**\n * Returns a number if the passed parameter is a valid number or the function will return undefined. On all other values than a valid number, this function will return undefined.\n *\n * @memberof Chartist.Core\n * @param value\n * @returns {*}\n */\n Chartist.getNumberOrUndefined = function(value) {\n return Chartist.isNumeric(value) ? +value : undefined;\n };\n\n /**\n * Checks if provided value object is multi value (contains x or y properties)\n *\n * @memberof Chartist.Core\n * @param value\n */\n Chartist.isMultiValue = function(value) {\n return typeof value === 'object' && ('x' in value || 'y' in value);\n };\n\n /**\n * Gets a value from a dimension `value.x` or `value.y` while returning value directly if it's a valid numeric value. If the value is not numeric and it's falsey this function will return `defaultValue`.\n *\n * @memberof Chartist.Core\n * @param value\n * @param dimension\n * @param defaultValue\n * @returns {*}\n */\n Chartist.getMultiValue = function(value, dimension) {\n if(Chartist.isMultiValue(value)) {\n return Chartist.getNumberOrUndefined(value[dimension || 'y']);\n } else {\n return Chartist.getNumberOrUndefined(value);\n }\n };\n\n /**\n * Pollard Rho Algorithm to find smallest factor of an integer value. There are more efficient algorithms for factorization, but this one is quite efficient and not so complex.\n *\n * @memberof Chartist.Core\n * @param {Number} num An integer number where the smallest factor should be searched for\n * @returns {Number} The smallest integer factor of the parameter num.\n */\n Chartist.rho = function(num) {\n if(num === 1) {\n return num;\n }\n\n function gcd(p, q) {\n if (p % q === 0) {\n return q;\n } else {\n return gcd(q, p % q);\n }\n }\n\n function f(x) {\n return x * x + 1;\n }\n\n var x1 = 2, x2 = 2, divisor;\n if (num % 2 === 0) {\n return 2;\n }\n\n do {\n x1 = f(x1) % num;\n x2 = f(f(x2)) % num;\n divisor = gcd(Math.abs(x1 - x2), num);\n } while (divisor === 1);\n\n return divisor;\n };\n\n /**\n * Calculate and retrieve all the bounds for the chart and return them in one array\n *\n * @memberof Chartist.Core\n * @param {Number} axisLength The length of the Axis used for\n * @param {Object} highLow An object containing a high and low property indicating the value range of the chart.\n * @param {Number} scaleMinSpace The minimum projected length a step should result in\n * @param {Boolean} onlyInteger\n * @return {Object} All the values to set the bounds of the chart\n */\n Chartist.getBounds = function (axisLength, highLow, scaleMinSpace, onlyInteger) {\n var i,\n optimizationCounter = 0,\n newMin,\n newMax,\n bounds = {\n high: highLow.high,\n low: highLow.low\n };\n\n bounds.valueRange = bounds.high - bounds.low;\n bounds.oom = Chartist.orderOfMagnitude(bounds.valueRange);\n bounds.step = Math.pow(10, bounds.oom);\n bounds.min = Math.floor(bounds.low / bounds.step) * bounds.step;\n bounds.max = Math.ceil(bounds.high / bounds.step) * bounds.step;\n bounds.range = bounds.max - bounds.min;\n bounds.numberOfSteps = Math.round(bounds.range / bounds.step);\n\n // Optimize scale step by checking if subdivision is possible based on horizontalGridMinSpace\n // If we are already below the scaleMinSpace value we will scale up\n var length = Chartist.projectLength(axisLength, bounds.step, bounds);\n var scaleUp = length < scaleMinSpace;\n var smallestFactor = onlyInteger ? Chartist.rho(bounds.range) : 0;\n\n // First check if we should only use integer steps and if step 1 is still larger than scaleMinSpace so we can use 1\n if(onlyInteger && Chartist.projectLength(axisLength, 1, bounds) >= scaleMinSpace) {\n bounds.step = 1;\n } else if(onlyInteger && smallestFactor < bounds.step && Chartist.projectLength(axisLength, smallestFactor, bounds) >= scaleMinSpace) {\n // If step 1 was too small, we can try the smallest factor of range\n // If the smallest factor is smaller than the current bounds.step and the projected length of smallest factor\n // is larger than the scaleMinSpace we should go for it.\n bounds.step = smallestFactor;\n } else {\n // Trying to divide or multiply by 2 and find the best step value\n while (true) {\n if (scaleUp && Chartist.projectLength(axisLength, bounds.step, bounds) <= scaleMinSpace) {\n bounds.step *= 2;\n } else if (!scaleUp && Chartist.projectLength(axisLength, bounds.step / 2, bounds) >= scaleMinSpace) {\n bounds.step /= 2;\n if(onlyInteger && bounds.step % 1 !== 0) {\n bounds.step *= 2;\n break;\n }\n } else {\n break;\n }\n\n if(optimizationCounter++ > 1000) {\n throw new Error('Exceeded maximum number of iterations while optimizing scale step!');\n }\n }\n }\n\n var EPSILON = 2.221E-16;\n bounds.step = Math.max(bounds.step, EPSILON);\n function safeIncrement(value, increment) {\n // If increment is too small use *= (1+EPSILON) as a simple nextafter\n if (value === (value += increment)) {\n \tvalue *= (1 + (increment > 0 ? EPSILON : -EPSILON));\n }\n return value;\n }\n\n // Narrow min and max based on new step\n newMin = bounds.min;\n newMax = bounds.max;\n while (newMin + bounds.step <= bounds.low) {\n \tnewMin = safeIncrement(newMin, bounds.step);\n }\n while (newMax - bounds.step >= bounds.high) {\n \tnewMax = safeIncrement(newMax, -bounds.step);\n }\n bounds.min = newMin;\n bounds.max = newMax;\n bounds.range = bounds.max - bounds.min;\n\n var values = [];\n for (i = bounds.min; i <= bounds.max; i = safeIncrement(i, bounds.step)) {\n var value = Chartist.roundWithPrecision(i);\n if (value !== values[values.length - 1]) {\n values.push(value);\n }\n }\n bounds.values = values;\n return bounds;\n };\n\n /**\n * Calculate cartesian coordinates of polar coordinates\n *\n * @memberof Chartist.Core\n * @param {Number} centerX X-axis coordinates of center point of circle segment\n * @param {Number} centerY X-axis coordinates of center point of circle segment\n * @param {Number} radius Radius of circle segment\n * @param {Number} angleInDegrees Angle of circle segment in degrees\n * @return {{x:Number, y:Number}} Coordinates of point on circumference\n */\n Chartist.polarToCartesian = function (centerX, centerY, radius, angleInDegrees) {\n var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0;\n\n return {\n x: centerX + (radius * Math.cos(angleInRadians)),\n y: centerY + (radius * Math.sin(angleInRadians))\n };\n };\n\n /**\n * Initialize chart drawing rectangle (area where chart is drawn) x1,y1 = bottom left / x2,y2 = top right\n *\n * @memberof Chartist.Core\n * @param {Object} svg The svg element for the chart\n * @param {Object} options The Object that contains all the optional values for the chart\n * @param {Number} [fallbackPadding] The fallback padding if partial padding objects are used\n * @return {Object} The chart rectangles coordinates inside the svg element plus the rectangles measurements\n */\n Chartist.createChartRect = function (svg, options, fallbackPadding) {\n var hasAxis = !!(options.axisX || options.axisY);\n var yAxisOffset = hasAxis ? options.axisY.offset : 0;\n var xAxisOffset = hasAxis ? options.axisX.offset : 0;\n // If width or height results in invalid value (including 0) we fallback to the unitless settings or even 0\n var width = svg.width() || Chartist.quantity(options.width).value || 0;\n var height = svg.height() || Chartist.quantity(options.height).value || 0;\n var normalizedPadding = Chartist.normalizePadding(options.chartPadding, fallbackPadding);\n\n // If settings were to small to cope with offset (legacy) and padding, we'll adjust\n width = Math.max(width, yAxisOffset + normalizedPadding.left + normalizedPadding.right);\n height = Math.max(height, xAxisOffset + normalizedPadding.top + normalizedPadding.bottom);\n\n var chartRect = {\n padding: normalizedPadding,\n width: function () {\n return this.x2 - this.x1;\n },\n height: function () {\n return this.y1 - this.y2;\n }\n };\n\n if(hasAxis) {\n if (options.axisX.position === 'start') {\n chartRect.y2 = normalizedPadding.top + xAxisOffset;\n chartRect.y1 = Math.max(height - normalizedPadding.bottom, chartRect.y2 + 1);\n } else {\n chartRect.y2 = normalizedPadding.top;\n chartRect.y1 = Math.max(height - normalizedPadding.bottom - xAxisOffset, chartRect.y2 + 1);\n }\n\n if (options.axisY.position === 'start') {\n chartRect.x1 = normalizedPadding.left + yAxisOffset;\n chartRect.x2 = Math.max(width - normalizedPadding.right, chartRect.x1 + 1);\n } else {\n chartRect.x1 = normalizedPadding.left;\n chartRect.x2 = Math.max(width - normalizedPadding.right - yAxisOffset, chartRect.x1 + 1);\n }\n } else {\n chartRect.x1 = normalizedPadding.left;\n chartRect.x2 = Math.max(width - normalizedPadding.right, chartRect.x1 + 1);\n chartRect.y2 = normalizedPadding.top;\n chartRect.y1 = Math.max(height - normalizedPadding.bottom, chartRect.y2 + 1);\n }\n\n return chartRect;\n };\n\n /**\n * Creates a grid line based on a projected value.\n *\n * @memberof Chartist.Core\n * @param position\n * @param index\n * @param axis\n * @param offset\n * @param length\n * @param group\n * @param classes\n * @param eventEmitter\n */\n Chartist.createGrid = function(position, index, axis, offset, length, group, classes, eventEmitter) {\n var positionalData = {};\n positionalData[axis.units.pos + '1'] = position;\n positionalData[axis.units.pos + '2'] = position;\n positionalData[axis.counterUnits.pos + '1'] = offset;\n positionalData[axis.counterUnits.pos + '2'] = offset + length;\n\n var gridElement = group.elem('line', positionalData, classes.join(' '));\n\n // Event for grid draw\n eventEmitter.emit('draw',\n Chartist.extend({\n type: 'grid',\n axis: axis,\n index: index,\n group: group,\n element: gridElement\n }, positionalData)\n );\n };\n\n /**\n * Creates a grid background rect and emits the draw event.\n *\n * @memberof Chartist.Core\n * @param gridGroup\n * @param chartRect\n * @param className\n * @param eventEmitter\n */\n Chartist.createGridBackground = function (gridGroup, chartRect, className, eventEmitter) {\n var gridBackground = gridGroup.elem('rect', {\n x: chartRect.x1,\n y: chartRect.y2,\n width: chartRect.width(),\n height: chartRect.height(),\n }, className, true);\n\n // Event for grid background draw\n eventEmitter.emit('draw', {\n type: 'gridBackground',\n group: gridGroup,\n element: gridBackground\n });\n };\n\n /**\n * Creates a label based on a projected value and an axis.\n *\n * @memberof Chartist.Core\n * @param position\n * @param length\n * @param index\n * @param labels\n * @param axis\n * @param axisOffset\n * @param labelOffset\n * @param group\n * @param classes\n * @param useForeignObject\n * @param eventEmitter\n */\n Chartist.createLabel = function(position, length, index, labels, axis, axisOffset, labelOffset, group, classes, useForeignObject, eventEmitter) {\n var labelElement;\n var positionalData = {};\n\n positionalData[axis.units.pos] = position + labelOffset[axis.units.pos];\n positionalData[axis.counterUnits.pos] = labelOffset[axis.counterUnits.pos];\n positionalData[axis.units.len] = length;\n positionalData[axis.counterUnits.len] = Math.max(0, axisOffset - 10);\n\n if(useForeignObject) {\n // We need to set width and height explicitly to px as span will not expand with width and height being\n // 100% in all browsers\n var content = document.createElement('span');\n content.className = classes.join(' ');\n content.setAttribute('xmlns', Chartist.namespaces.xhtml);\n content.innerText = labels[index];\n content.style[axis.units.len] = Math.round(positionalData[axis.units.len]) + 'px';\n content.style[axis.counterUnits.len] = Math.round(positionalData[axis.counterUnits.len]) + 'px';\n\n labelElement = group.foreignObject(content, Chartist.extend({\n style: 'overflow: visible;'\n }, positionalData));\n } else {\n labelElement = group.elem('text', positionalData, classes.join(' ')).text(labels[index]);\n }\n\n eventEmitter.emit('draw', Chartist.extend({\n type: 'label',\n axis: axis,\n index: index,\n group: group,\n element: labelElement,\n text: labels[index]\n }, positionalData));\n };\n\n /**\n * Helper to read series specific options from options object. It automatically falls back to the global option if\n * there is no option in the series options.\n *\n * @param {Object} series Series object\n * @param {Object} options Chartist options object\n * @param {string} key The options key that should be used to obtain the options\n * @returns {*}\n */\n Chartist.getSeriesOption = function(series, options, key) {\n if(series.name && options.series && options.series[series.name]) {\n var seriesOptions = options.series[series.name];\n return seriesOptions.hasOwnProperty(key) ? seriesOptions[key] : options[key];\n } else {\n return options[key];\n }\n };\n\n /**\n * Provides options handling functionality with callback for options changes triggered by responsive options and media query matches\n *\n * @memberof Chartist.Core\n * @param {Object} options Options set by user\n * @param {Array} responsiveOptions Optional functions to add responsive behavior to chart\n * @param {Object} eventEmitter The event emitter that will be used to emit the options changed events\n * @return {Object} The consolidated options object from the defaults, base and matching responsive options\n */\n Chartist.optionsProvider = function (options, responsiveOptions, eventEmitter) {\n var baseOptions = Chartist.extend({}, options),\n currentOptions,\n mediaQueryListeners = [],\n i;\n\n function updateCurrentOptions(mediaEvent) {\n var previousOptions = currentOptions;\n currentOptions = Chartist.extend({}, baseOptions);\n\n if (responsiveOptions) {\n for (i = 0; i < responsiveOptions.length; i++) {\n var mql = window.matchMedia(responsiveOptions[i][0]);\n if (mql.matches) {\n currentOptions = Chartist.extend(currentOptions, responsiveOptions[i][1]);\n }\n }\n }\n\n if(eventEmitter && mediaEvent) {\n eventEmitter.emit('optionsChanged', {\n previousOptions: previousOptions,\n currentOptions: currentOptions\n });\n }\n }\n\n function removeMediaQueryListeners() {\n mediaQueryListeners.forEach(function(mql) {\n mql.removeListener(updateCurrentOptions);\n });\n }\n\n if (!window.matchMedia) {\n throw 'window.matchMedia not found! Make sure you\\'re using a polyfill.';\n } else if (responsiveOptions) {\n\n for (i = 0; i < responsiveOptions.length; i++) {\n var mql = window.matchMedia(responsiveOptions[i][0]);\n mql.addListener(updateCurrentOptions);\n mediaQueryListeners.push(mql);\n }\n }\n // Execute initially without an event argument so we get the correct options\n updateCurrentOptions();\n\n return {\n removeMediaQueryListeners: removeMediaQueryListeners,\n getCurrentOptions: function getCurrentOptions() {\n return Chartist.extend({}, currentOptions);\n }\n };\n };\n\n\n /**\n * Splits a list of coordinates and associated values into segments. Each returned segment contains a pathCoordinates\n * valueData property describing the segment.\n *\n * With the default options, segments consist of contiguous sets of points that do not have an undefined value. Any\n * points with undefined values are discarded.\n *\n * **Options**\n * The following options are used to determine how segments are formed\n * ```javascript\n * var options = {\n * // If fillHoles is true, undefined values are simply discarded without creating a new segment. Assuming other options are default, this returns single segment.\n * fillHoles: false,\n * // If increasingX is true, the coordinates in all segments have strictly increasing x-values.\n * increasingX: false\n * };\n * ```\n *\n * @memberof Chartist.Core\n * @param {Array} pathCoordinates List of point coordinates to be split in the form [x1, y1, x2, y2 ... xn, yn]\n * @param {Array} values List of associated point values in the form [v1, v2 .. vn]\n * @param {Object} options Options set by user\n * @return {Array} List of segments, each containing a pathCoordinates and valueData property.\n */\n Chartist.splitIntoSegments = function(pathCoordinates, valueData, options) {\n var defaultOptions = {\n increasingX: false,\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n var segments = [];\n var hole = true;\n\n for(var i = 0; i < pathCoordinates.length; i += 2) {\n // If this value is a \"hole\" we set the hole flag\n if(Chartist.getMultiValue(valueData[i / 2].value) === undefined) {\n // if(valueData[i / 2].value === undefined) {\n if(!options.fillHoles) {\n hole = true;\n }\n } else {\n if(options.increasingX && i >= 2 && pathCoordinates[i] <= pathCoordinates[i-2]) {\n // X is not increasing, so we need to make sure we start a new segment\n hole = true;\n }\n\n\n // If it's a valid value we need to check if we're coming out of a hole and create a new empty segment\n if(hole) {\n segments.push({\n pathCoordinates: [],\n valueData: []\n });\n // As we have a valid value now, we are not in a \"hole\" anymore\n hole = false;\n }\n\n // Add to the segment pathCoordinates and valueData\n segments[segments.length - 1].pathCoordinates.push(pathCoordinates[i], pathCoordinates[i + 1]);\n segments[segments.length - 1].valueData.push(valueData[i / 2]);\n }\n }\n\n return segments;\n };\n}(this || global, Chartist));\n;/**\n * Chartist path interpolation functions.\n *\n * @module Chartist.Interpolation\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n Chartist.Interpolation = {};\n\n /**\n * This interpolation function does not smooth the path and the result is only containing lines and no curves.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.none({\n * fillHoles: false\n * })\n * });\n *\n *\n * @memberof Chartist.Interpolation\n * @return {Function}\n */\n Chartist.Interpolation.none = function(options) {\n var defaultOptions = {\n fillHoles: false\n };\n options = Chartist.extend({}, defaultOptions, options);\n return function none(pathCoordinates, valueData) {\n var path = new Chartist.Svg.Path();\n var hole = true;\n\n for(var i = 0; i < pathCoordinates.length; i += 2) {\n var currX = pathCoordinates[i];\n var currY = pathCoordinates[i + 1];\n var currData = valueData[i / 2];\n\n if(Chartist.getMultiValue(currData.value) !== undefined) {\n\n if(hole) {\n path.move(currX, currY, false, currData);\n } else {\n path.line(currX, currY, false, currData);\n }\n\n hole = false;\n } else if(!options.fillHoles) {\n hole = true;\n }\n }\n\n return path;\n };\n };\n\n /**\n * Simple smoothing creates horizontal handles that are positioned with a fraction of the length between two data points. You can use the divisor option to specify the amount of smoothing.\n *\n * Simple smoothing can be used instead of `Chartist.Smoothing.cardinal` if you'd like to get rid of the artifacts it produces sometimes. Simple smoothing produces less flowing lines but is accurate by hitting the points and it also doesn't swing below or above the given data point.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter. The simple interpolation function accepts one configuration parameter `divisor`, between 1 and ∞, which controls the smoothing characteristics.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.simple({\n * divisor: 2,\n * fillHoles: false\n * })\n * });\n *\n *\n * @memberof Chartist.Interpolation\n * @param {Object} options The options of the simple interpolation factory function.\n * @return {Function}\n */\n Chartist.Interpolation.simple = function(options) {\n var defaultOptions = {\n divisor: 2,\n fillHoles: false\n };\n options = Chartist.extend({}, defaultOptions, options);\n\n var d = 1 / Math.max(1, options.divisor);\n\n return function simple(pathCoordinates, valueData) {\n var path = new Chartist.Svg.Path();\n var prevX, prevY, prevData;\n\n for(var i = 0; i < pathCoordinates.length; i += 2) {\n var currX = pathCoordinates[i];\n var currY = pathCoordinates[i + 1];\n var length = (currX - prevX) * d;\n var currData = valueData[i / 2];\n\n if(currData.value !== undefined) {\n\n if(prevData === undefined) {\n path.move(currX, currY, false, currData);\n } else {\n path.curve(\n prevX + length,\n prevY,\n currX - length,\n currY,\n currX,\n currY,\n false,\n currData\n );\n }\n\n prevX = currX;\n prevY = currY;\n prevData = currData;\n } else if(!options.fillHoles) {\n prevX = currX = prevData = undefined;\n }\n }\n\n return path;\n };\n };\n\n /**\n * Cardinal / Catmull-Rome spline interpolation is the default smoothing function in Chartist. It produces nice results where the splines will always meet the points. It produces some artifacts though when data values are increased or decreased rapidly. The line may not follow a very accurate path and if the line should be accurate this smoothing function does not produce the best results.\n *\n * Cardinal splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter. The cardinal interpolation function accepts one configuration parameter `tension`, between 0 and 1, which controls the smoothing intensity.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.cardinal({\n * tension: 1,\n * fillHoles: false\n * })\n * });\n *\n * @memberof Chartist.Interpolation\n * @param {Object} options The options of the cardinal factory function.\n * @return {Function}\n */\n Chartist.Interpolation.cardinal = function(options) {\n var defaultOptions = {\n tension: 1,\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n var t = Math.min(1, Math.max(0, options.tension)),\n c = 1 - t;\n\n return function cardinal(pathCoordinates, valueData) {\n // First we try to split the coordinates into segments\n // This is necessary to treat \"holes\" in line charts\n var segments = Chartist.splitIntoSegments(pathCoordinates, valueData, {\n fillHoles: options.fillHoles\n });\n\n if(!segments.length) {\n // If there were no segments return 'Chartist.Interpolation.none'\n return Chartist.Interpolation.none()([]);\n } else if(segments.length > 1) {\n // If the split resulted in more that one segment we need to interpolate each segment individually and join them\n // afterwards together into a single path.\n var paths = [];\n // For each segment we will recurse the cardinal function\n segments.forEach(function(segment) {\n paths.push(cardinal(segment.pathCoordinates, segment.valueData));\n });\n // Join the segment path data into a single path and return\n return Chartist.Svg.Path.join(paths);\n } else {\n // If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first\n // segment\n pathCoordinates = segments[0].pathCoordinates;\n valueData = segments[0].valueData;\n\n // If less than two points we need to fallback to no smoothing\n if(pathCoordinates.length <= 4) {\n return Chartist.Interpolation.none()(pathCoordinates, valueData);\n }\n\n var path = new Chartist.Svg.Path().move(pathCoordinates[0], pathCoordinates[1], false, valueData[0]),\n z;\n\n for (var i = 0, iLen = pathCoordinates.length; iLen - 2 * !z > i; i += 2) {\n var p = [\n {x: +pathCoordinates[i - 2], y: +pathCoordinates[i - 1]},\n {x: +pathCoordinates[i], y: +pathCoordinates[i + 1]},\n {x: +pathCoordinates[i + 2], y: +pathCoordinates[i + 3]},\n {x: +pathCoordinates[i + 4], y: +pathCoordinates[i + 5]}\n ];\n if (z) {\n if (!i) {\n p[0] = {x: +pathCoordinates[iLen - 2], y: +pathCoordinates[iLen - 1]};\n } else if (iLen - 4 === i) {\n p[3] = {x: +pathCoordinates[0], y: +pathCoordinates[1]};\n } else if (iLen - 2 === i) {\n p[2] = {x: +pathCoordinates[0], y: +pathCoordinates[1]};\n p[3] = {x: +pathCoordinates[2], y: +pathCoordinates[3]};\n }\n } else {\n if (iLen - 4 === i) {\n p[3] = p[2];\n } else if (!i) {\n p[0] = {x: +pathCoordinates[i], y: +pathCoordinates[i + 1]};\n }\n }\n\n path.curve(\n (t * (-p[0].x + 6 * p[1].x + p[2].x) / 6) + (c * p[2].x),\n (t * (-p[0].y + 6 * p[1].y + p[2].y) / 6) + (c * p[2].y),\n (t * (p[1].x + 6 * p[2].x - p[3].x) / 6) + (c * p[2].x),\n (t * (p[1].y + 6 * p[2].y - p[3].y) / 6) + (c * p[2].y),\n p[2].x,\n p[2].y,\n false,\n valueData[(i + 2) / 2]\n );\n }\n\n return path;\n }\n };\n };\n\n /**\n * Monotone Cubic spline interpolation produces a smooth curve which preserves monotonicity. Unlike cardinal splines, the curve will not extend beyond the range of y-values of the original data points.\n *\n * Monotone Cubic splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`.\n *\n * The x-values of subsequent points must be increasing to fit a Monotone Cubic spline. If this condition is not met for a pair of adjacent points, then there will be a break in the curve between those data points.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.monotoneCubic({\n * fillHoles: false\n * })\n * });\n *\n * @memberof Chartist.Interpolation\n * @param {Object} options The options of the monotoneCubic factory function.\n * @return {Function}\n */\n Chartist.Interpolation.monotoneCubic = function(options) {\n var defaultOptions = {\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n return function monotoneCubic(pathCoordinates, valueData) {\n // First we try to split the coordinates into segments\n // This is necessary to treat \"holes\" in line charts\n var segments = Chartist.splitIntoSegments(pathCoordinates, valueData, {\n fillHoles: options.fillHoles,\n increasingX: true\n });\n\n if(!segments.length) {\n // If there were no segments return 'Chartist.Interpolation.none'\n return Chartist.Interpolation.none()([]);\n } else if(segments.length > 1) {\n // If the split resulted in more that one segment we need to interpolate each segment individually and join them\n // afterwards together into a single path.\n var paths = [];\n // For each segment we will recurse the monotoneCubic fn function\n segments.forEach(function(segment) {\n paths.push(monotoneCubic(segment.pathCoordinates, segment.valueData));\n });\n // Join the segment path data into a single path and return\n return Chartist.Svg.Path.join(paths);\n } else {\n // If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first\n // segment\n pathCoordinates = segments[0].pathCoordinates;\n valueData = segments[0].valueData;\n\n // If less than three points we need to fallback to no smoothing\n if(pathCoordinates.length <= 4) {\n return Chartist.Interpolation.none()(pathCoordinates, valueData);\n }\n\n var xs = [],\n ys = [],\n i,\n n = pathCoordinates.length / 2,\n ms = [],\n ds = [], dys = [], dxs = [],\n path;\n\n // Populate x and y coordinates into separate arrays, for readability\n\n for(i = 0; i < n; i++) {\n xs[i] = pathCoordinates[i * 2];\n ys[i] = pathCoordinates[i * 2 + 1];\n }\n\n // Calculate deltas and derivative\n\n for(i = 0; i < n - 1; i++) {\n dys[i] = ys[i + 1] - ys[i];\n dxs[i] = xs[i + 1] - xs[i];\n ds[i] = dys[i] / dxs[i];\n }\n\n // Determine desired slope (m) at each point using Fritsch-Carlson method\n // See: http://math.stackexchange.com/questions/45218/implementation-of-monotone-cubic-interpolation\n\n ms[0] = ds[0];\n ms[n - 1] = ds[n - 2];\n\n for(i = 1; i < n - 1; i++) {\n if(ds[i] === 0 || ds[i - 1] === 0 || (ds[i - 1] > 0) !== (ds[i] > 0)) {\n ms[i] = 0;\n } else {\n ms[i] = 3 * (dxs[i - 1] + dxs[i]) / (\n (2 * dxs[i] + dxs[i - 1]) / ds[i - 1] +\n (dxs[i] + 2 * dxs[i - 1]) / ds[i]);\n\n if(!isFinite(ms[i])) {\n ms[i] = 0;\n }\n }\n }\n\n // Now build a path from the slopes\n\n path = new Chartist.Svg.Path().move(xs[0], ys[0], false, valueData[0]);\n\n for(i = 0; i < n - 1; i++) {\n path.curve(\n // First control point\n xs[i] + dxs[i] / 3,\n ys[i] + ms[i] * dxs[i] / 3,\n // Second control point\n xs[i + 1] - dxs[i] / 3,\n ys[i + 1] - ms[i + 1] * dxs[i] / 3,\n // End point\n xs[i + 1],\n ys[i + 1],\n\n false,\n valueData[i + 1]\n );\n }\n\n return path;\n }\n };\n };\n\n /**\n * Step interpolation will cause the line chart to move in steps rather than diagonal or smoothed lines. This interpolation will create additional points that will also be drawn when the `showPoint` option is enabled.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter. The step interpolation function accepts one configuration parameter `postpone`, that can be `true` or `false`. The default value is `true` and will cause the step to occur where the value actually changes. If a different behaviour is needed where the step is shifted to the left and happens before the actual value, this option can be set to `false`.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.step({\n * postpone: true,\n * fillHoles: false\n * })\n * });\n *\n * @memberof Chartist.Interpolation\n * @param options\n * @returns {Function}\n */\n Chartist.Interpolation.step = function(options) {\n var defaultOptions = {\n postpone: true,\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n return function step(pathCoordinates, valueData) {\n var path = new Chartist.Svg.Path();\n\n var prevX, prevY, prevData;\n\n for (var i = 0; i < pathCoordinates.length; i += 2) {\n var currX = pathCoordinates[i];\n var currY = pathCoordinates[i + 1];\n var currData = valueData[i / 2];\n\n // If the current point is also not a hole we can draw the step lines\n if(currData.value !== undefined) {\n if(prevData === undefined) {\n path.move(currX, currY, false, currData);\n } else {\n if(options.postpone) {\n // If postponed we should draw the step line with the value of the previous value\n path.line(currX, prevY, false, prevData);\n } else {\n // If not postponed we should draw the step line with the value of the current value\n path.line(prevX, currY, false, currData);\n }\n // Line to the actual point (this should only be a Y-Axis movement\n path.line(currX, currY, false, currData);\n }\n\n prevX = currX;\n prevY = currY;\n prevData = currData;\n } else if(!options.fillHoles) {\n prevX = prevY = prevData = undefined;\n }\n }\n\n return path;\n };\n };\n\n}(this || global, Chartist));\n;/**\n * A very basic event module that helps to generate and catch events.\n *\n * @module Chartist.Event\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n Chartist.EventEmitter = function () {\n var handlers = [];\n\n /**\n * Add an event handler for a specific event\n *\n * @memberof Chartist.Event\n * @param {String} event The event name\n * @param {Function} handler A event handler function\n */\n function addEventHandler(event, handler) {\n handlers[event] = handlers[event] || [];\n handlers[event].push(handler);\n }\n\n /**\n * Remove an event handler of a specific event name or remove all event handlers for a specific event.\n *\n * @memberof Chartist.Event\n * @param {String} event The event name where a specific or all handlers should be removed\n * @param {Function} [handler] An optional event handler function. If specified only this specific handler will be removed and otherwise all handlers are removed.\n */\n function removeEventHandler(event, handler) {\n // Only do something if there are event handlers with this name existing\n if(handlers[event]) {\n // If handler is set we will look for a specific handler and only remove this\n if(handler) {\n handlers[event].splice(handlers[event].indexOf(handler), 1);\n if(handlers[event].length === 0) {\n delete handlers[event];\n }\n } else {\n // If no handler is specified we remove all handlers for this event\n delete handlers[event];\n }\n }\n }\n\n /**\n * Use this function to emit an event. All handlers that are listening for this event will be triggered with the data parameter.\n *\n * @memberof Chartist.Event\n * @param {String} event The event name that should be triggered\n * @param {*} data Arbitrary data that will be passed to the event handler callback functions\n */\n function emit(event, data) {\n // Only do something if there are event handlers with this name existing\n if(handlers[event]) {\n handlers[event].forEach(function(handler) {\n handler(data);\n });\n }\n\n // Emit event to star event handlers\n if(handlers['*']) {\n handlers['*'].forEach(function(starHandler) {\n starHandler(event, data);\n });\n }\n }\n\n return {\n addEventHandler: addEventHandler,\n removeEventHandler: removeEventHandler,\n emit: emit\n };\n };\n\n}(this || global, Chartist));\n;/**\n * This module provides some basic prototype inheritance utilities.\n *\n * @module Chartist.Class\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n function listToArray(list) {\n var arr = [];\n if (list.length) {\n for (var i = 0; i < list.length; i++) {\n arr.push(list[i]);\n }\n }\n return arr;\n }\n\n /**\n * Method to extend from current prototype.\n *\n * @memberof Chartist.Class\n * @param {Object} properties The object that serves as definition for the prototype that gets created for the new class. This object should always contain a constructor property that is the desired constructor for the newly created class.\n * @param {Object} [superProtoOverride] By default extens will use the current class prototype or Chartist.class. With this parameter you can specify any super prototype that will be used.\n * @return {Function} Constructor function of the new class\n *\n * @example\n * var Fruit = Class.extend({\n * color: undefined,\n * sugar: undefined,\n *\n * constructor: function(color, sugar) {\n * this.color = color;\n * this.sugar = sugar;\n * },\n *\n * eat: function() {\n * this.sugar = 0;\n * return this;\n * }\n * });\n *\n * var Banana = Fruit.extend({\n * length: undefined,\n *\n * constructor: function(length, sugar) {\n * Banana.super.constructor.call(this, 'Yellow', sugar);\n * this.length = length;\n * }\n * });\n *\n * var banana = new Banana(20, 40);\n * console.log('banana instanceof Fruit', banana instanceof Fruit);\n * console.log('Fruit is prototype of banana', Fruit.prototype.isPrototypeOf(banana));\n * console.log('bananas prototype is Fruit', Object.getPrototypeOf(banana) === Fruit.prototype);\n * console.log(banana.sugar);\n * console.log(banana.eat().sugar);\n * console.log(banana.color);\n */\n function extend(properties, superProtoOverride) {\n var superProto = superProtoOverride || this.prototype || Chartist.Class;\n var proto = Object.create(superProto);\n\n Chartist.Class.cloneDefinitions(proto, properties);\n\n var constr = function() {\n var fn = proto.constructor || function () {},\n instance;\n\n // If this is linked to the Chartist namespace the constructor was not called with new\n // To provide a fallback we will instantiate here and return the instance\n instance = this === Chartist ? Object.create(proto) : this;\n fn.apply(instance, Array.prototype.slice.call(arguments, 0));\n\n // If this constructor was not called with new we need to return the instance\n // This will not harm when the constructor has been called with new as the returned value is ignored\n return instance;\n };\n\n constr.prototype = proto;\n constr.super = superProto;\n constr.extend = this.extend;\n\n return constr;\n }\n\n // Variable argument list clones args > 0 into args[0] and retruns modified args[0]\n function cloneDefinitions() {\n var args = listToArray(arguments);\n var target = args[0];\n\n args.splice(1, args.length - 1).forEach(function (source) {\n Object.getOwnPropertyNames(source).forEach(function (propName) {\n // If this property already exist in target we delete it first\n delete target[propName];\n // Define the property with the descriptor from source\n Object.defineProperty(target, propName,\n Object.getOwnPropertyDescriptor(source, propName));\n });\n });\n\n return target;\n }\n\n Chartist.Class = {\n extend: extend,\n cloneDefinitions: cloneDefinitions\n };\n\n}(this || global, Chartist));\n;/**\n * Base for all chart types. The methods in Chartist.Base are inherited to all chart types.\n *\n * @module Chartist.Base\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n\n // TODO: Currently we need to re-draw the chart on window resize. This is usually very bad and will affect performance.\n // This is done because we can't work with relative coordinates when drawing the chart because SVG Path does not\n // work with relative positions yet. We need to check if we can do a viewBox hack to switch to percentage.\n // See http://mozilla.6506.n7.nabble.com/Specyfing-paths-with-percentages-unit-td247474.html\n // Update: can be done using the above method tested here: http://codepen.io/gionkunz/pen/KDvLj\n // The problem is with the label offsets that can't be converted into percentage and affecting the chart container\n /**\n * Updates the chart which currently does a full reconstruction of the SVG DOM\n *\n * @param {Object} [data] Optional data you'd like to set for the chart before it will update. If not specified the update method will use the data that is already configured with the chart.\n * @param {Object} [options] Optional options you'd like to add to the previous options for the chart before it will update. If not specified the update method will use the options that have been already configured with the chart.\n * @param {Boolean} [override] If set to true, the passed options will be used to extend the options that have been configured already. Otherwise the chart default options will be used as the base\n * @memberof Chartist.Base\n */\n function update(data, options, override) {\n if(data) {\n this.data = data || {};\n this.data.labels = this.data.labels || [];\n this.data.series = this.data.series || [];\n // Event for data transformation that allows to manipulate the data before it gets rendered in the charts\n this.eventEmitter.emit('data', {\n type: 'update',\n data: this.data\n });\n }\n\n if(options) {\n this.options = Chartist.extend({}, override ? this.options : this.defaultOptions, options);\n\n // If chartist was not initialized yet, we just set the options and leave the rest to the initialization\n // Otherwise we re-create the optionsProvider at this point\n if(!this.initializeTimeoutId) {\n this.optionsProvider.removeMediaQueryListeners();\n this.optionsProvider = Chartist.optionsProvider(this.options, this.responsiveOptions, this.eventEmitter);\n }\n }\n\n // Only re-created the chart if it has been initialized yet\n if(!this.initializeTimeoutId) {\n this.createChart(this.optionsProvider.getCurrentOptions());\n }\n\n // Return a reference to the chart object to chain up calls\n return this;\n }\n\n /**\n * This method can be called on the API object of each chart and will un-register all event listeners that were added to other components. This currently includes a window.resize listener as well as media query listeners if any responsive options have been provided. Use this function if you need to destroy and recreate Chartist charts dynamically.\n *\n * @memberof Chartist.Base\n */\n function detach() {\n // Only detach if initialization already occurred on this chart. If this chart still hasn't initialized (therefore\n // the initializationTimeoutId is still a valid timeout reference, we will clear the timeout\n if(!this.initializeTimeoutId) {\n window.removeEventListener('resize', this.resizeListener);\n this.optionsProvider.removeMediaQueryListeners();\n } else {\n window.clearTimeout(this.initializeTimeoutId);\n }\n\n return this;\n }\n\n /**\n * Use this function to register event handlers. The handler callbacks are synchronous and will run in the main thread rather than the event loop.\n *\n * @memberof Chartist.Base\n * @param {String} event Name of the event. Check the examples for supported events.\n * @param {Function} handler The handler function that will be called when an event with the given name was emitted. This function will receive a data argument which contains event data. See the example for more details.\n */\n function on(event, handler) {\n this.eventEmitter.addEventHandler(event, handler);\n return this;\n }\n\n /**\n * Use this function to un-register event handlers. If the handler function parameter is omitted all handlers for the given event will be un-registered.\n *\n * @memberof Chartist.Base\n * @param {String} event Name of the event for which a handler should be removed\n * @param {Function} [handler] The handler function that that was previously used to register a new event handler. This handler will be removed from the event handler list. If this parameter is omitted then all event handlers for the given event are removed from the list.\n */\n function off(event, handler) {\n this.eventEmitter.removeEventHandler(event, handler);\n return this;\n }\n\n function initialize() {\n // Add window resize listener that re-creates the chart\n window.addEventListener('resize', this.resizeListener);\n\n // Obtain current options based on matching media queries (if responsive options are given)\n // This will also register a listener that is re-creating the chart based on media changes\n this.optionsProvider = Chartist.optionsProvider(this.options, this.responsiveOptions, this.eventEmitter);\n // Register options change listener that will trigger a chart update\n this.eventEmitter.addEventHandler('optionsChanged', function() {\n this.update();\n }.bind(this));\n\n // Before the first chart creation we need to register us with all plugins that are configured\n // Initialize all relevant plugins with our chart object and the plugin options specified in the config\n if(this.options.plugins) {\n this.options.plugins.forEach(function(plugin) {\n if(plugin instanceof Array) {\n plugin[0](this, plugin[1]);\n } else {\n plugin(this);\n }\n }.bind(this));\n }\n\n // Event for data transformation that allows to manipulate the data before it gets rendered in the charts\n this.eventEmitter.emit('data', {\n type: 'initial',\n data: this.data\n });\n\n // Create the first chart\n this.createChart(this.optionsProvider.getCurrentOptions());\n\n // As chart is initialized from the event loop now we can reset our timeout reference\n // This is important if the chart gets initialized on the same element twice\n this.initializeTimeoutId = undefined;\n }\n\n /**\n * Constructor of chart base class.\n *\n * @param query\n * @param data\n * @param defaultOptions\n * @param options\n * @param responsiveOptions\n * @constructor\n */\n function Base(query, data, defaultOptions, options, responsiveOptions) {\n this.container = Chartist.querySelector(query);\n this.data = data || {};\n this.data.labels = this.data.labels || [];\n this.data.series = this.data.series || [];\n this.defaultOptions = defaultOptions;\n this.options = options;\n this.responsiveOptions = responsiveOptions;\n this.eventEmitter = Chartist.EventEmitter();\n this.supportsForeignObject = Chartist.Svg.isSupported('Extensibility');\n this.supportsAnimations = Chartist.Svg.isSupported('AnimationEventsAttribute');\n this.resizeListener = function resizeListener(){\n this.update();\n }.bind(this);\n\n if(this.container) {\n // If chartist was already initialized in this container we are detaching all event listeners first\n if(this.container.__chartist__) {\n this.container.__chartist__.detach();\n }\n\n this.container.__chartist__ = this;\n }\n\n // Using event loop for first draw to make it possible to register event listeners in the same call stack where\n // the chart was created.\n this.initializeTimeoutId = setTimeout(initialize.bind(this), 0);\n }\n\n // Creating the chart base class\n Chartist.Base = Chartist.Class.extend({\n constructor: Base,\n optionsProvider: undefined,\n container: undefined,\n svg: undefined,\n eventEmitter: undefined,\n createChart: function() {\n throw new Error('Base chart type can\\'t be instantiated!');\n },\n update: update,\n detach: detach,\n on: on,\n off: off,\n version: Chartist.version,\n supportsForeignObject: false\n });\n\n}(this || global, Chartist));\n;/**\n * Chartist SVG module for simple SVG DOM abstraction\n *\n * @module Chartist.Svg\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n var document = globalRoot.document;\n\n /**\n * Chartist.Svg creates a new SVG object wrapper with a starting element. You can use the wrapper to fluently create sub-elements and modify them.\n *\n * @memberof Chartist.Svg\n * @constructor\n * @param {String|Element} name The name of the SVG element to create or an SVG dom element which should be wrapped into Chartist.Svg\n * @param {Object} attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added.\n * @param {String} className This class or class list will be added to the SVG element\n * @param {Object} parent The parent SVG wrapper object where this newly created wrapper and it's element will be attached to as child\n * @param {Boolean} insertFirst If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element\n */\n function Svg(name, attributes, className, parent, insertFirst) {\n // If Svg is getting called with an SVG element we just return the wrapper\n if(name instanceof Element) {\n this._node = name;\n } else {\n this._node = document.createElementNS(Chartist.namespaces.svg, name);\n\n // If this is an SVG element created then custom namespace\n if(name === 'svg') {\n this.attr({\n 'xmlns:ct': Chartist.namespaces.ct\n });\n }\n }\n\n if(attributes) {\n this.attr(attributes);\n }\n\n if(className) {\n this.addClass(className);\n }\n\n if(parent) {\n if (insertFirst && parent._node.firstChild) {\n parent._node.insertBefore(this._node, parent._node.firstChild);\n } else {\n parent._node.appendChild(this._node);\n }\n }\n }\n\n /**\n * Set attributes on the current SVG element of the wrapper you're currently working on.\n *\n * @memberof Chartist.Svg\n * @param {Object|String} attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added. If this parameter is a String then the function is used as a getter and will return the attribute value.\n * @param {String} [ns] If specified, the attribute will be obtained using getAttributeNs. In order to write namepsaced attributes you can use the namespace:attribute notation within the attributes object.\n * @return {Object|String} The current wrapper object will be returned so it can be used for chaining or the attribute value if used as getter function.\n */\n function attr(attributes, ns) {\n if(typeof attributes === 'string') {\n if(ns) {\n return this._node.getAttributeNS(ns, attributes);\n } else {\n return this._node.getAttribute(attributes);\n }\n }\n\n Object.keys(attributes).forEach(function(key) {\n // If the attribute value is undefined we can skip this one\n if(attributes[key] === undefined) {\n return;\n }\n\n if (key.indexOf(':') !== -1) {\n var namespacedAttribute = key.split(':');\n this._node.setAttributeNS(Chartist.namespaces[namespacedAttribute[0]], key, attributes[key]);\n } else {\n this._node.setAttribute(key, attributes[key]);\n }\n }.bind(this));\n\n return this;\n }\n\n /**\n * Create a new SVG element whose wrapper object will be selected for further operations. This way you can also create nested groups easily.\n *\n * @memberof Chartist.Svg\n * @param {String} name The name of the SVG element that should be created as child element of the currently selected element wrapper\n * @param {Object} [attributes] An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added.\n * @param {String} [className] This class or class list will be added to the SVG element\n * @param {Boolean} [insertFirst] If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element\n * @return {Chartist.Svg} Returns a Chartist.Svg wrapper object that can be used to modify the containing SVG data\n */\n function elem(name, attributes, className, insertFirst) {\n return new Chartist.Svg(name, attributes, className, this, insertFirst);\n }\n\n /**\n * Returns the parent Chartist.SVG wrapper object\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} Returns a Chartist.Svg wrapper around the parent node of the current node. If the parent node is not existing or it's not an SVG node then this function will return null.\n */\n function parent() {\n return this._node.parentNode instanceof SVGElement ? new Chartist.Svg(this._node.parentNode) : null;\n }\n\n /**\n * This method returns a Chartist.Svg wrapper around the root SVG element of the current tree.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The root SVG element wrapped in a Chartist.Svg element\n */\n function root() {\n var node = this._node;\n while(node.nodeName !== 'svg') {\n node = node.parentNode;\n }\n return new Chartist.Svg(node);\n }\n\n /**\n * Find the first child SVG element of the current element that matches a CSS selector. The returned object is a Chartist.Svg wrapper.\n *\n * @memberof Chartist.Svg\n * @param {String} selector A CSS selector that is used to query for child SVG elements\n * @return {Chartist.Svg} The SVG wrapper for the element found or null if no element was found\n */\n function querySelector(selector) {\n var foundNode = this._node.querySelector(selector);\n return foundNode ? new Chartist.Svg(foundNode) : null;\n }\n\n /**\n * Find the all child SVG elements of the current element that match a CSS selector. The returned object is a Chartist.Svg.List wrapper.\n *\n * @memberof Chartist.Svg\n * @param {String} selector A CSS selector that is used to query for child SVG elements\n * @return {Chartist.Svg.List} The SVG wrapper list for the element found or null if no element was found\n */\n function querySelectorAll(selector) {\n var foundNodes = this._node.querySelectorAll(selector);\n return foundNodes.length ? new Chartist.Svg.List(foundNodes) : null;\n }\n\n /**\n * Returns the underlying SVG node for the current element.\n *\n * @memberof Chartist.Svg\n * @returns {Node}\n */\n function getNode() {\n return this._node;\n }\n\n /**\n * This method creates a foreignObject (see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject) that allows to embed HTML content into a SVG graphic. With the help of foreignObjects you can enable the usage of regular HTML elements inside of SVG where they are subject for SVG positioning and transformation but the Browser will use the HTML rendering capabilities for the containing DOM.\n *\n * @memberof Chartist.Svg\n * @param {Node|String} content The DOM Node, or HTML string that will be converted to a DOM Node, that is then placed into and wrapped by the foreignObject\n * @param {String} [attributes] An object with properties that will be added as attributes to the foreignObject element that is created. Attributes with undefined values will not be added.\n * @param {String} [className] This class or class list will be added to the SVG element\n * @param {Boolean} [insertFirst] Specifies if the foreignObject should be inserted as first child\n * @return {Chartist.Svg} New wrapper object that wraps the foreignObject element\n */\n function foreignObject(content, attributes, className, insertFirst) {\n // If content is string then we convert it to DOM\n // TODO: Handle case where content is not a string nor a DOM Node\n if(typeof content === 'string') {\n var container = document.createElement('div');\n container.innerHTML = content;\n content = container.firstChild;\n }\n\n // Adding namespace to content element\n content.setAttribute('xmlns', Chartist.namespaces.xmlns);\n\n // Creating the foreignObject without required extension attribute (as described here\n // http://www.w3.org/TR/SVG/extend.html#ForeignObjectElement)\n var fnObj = this.elem('foreignObject', attributes, className, insertFirst);\n\n // Add content to foreignObjectElement\n fnObj._node.appendChild(content);\n\n return fnObj;\n }\n\n /**\n * This method adds a new text element to the current Chartist.Svg wrapper.\n *\n * @memberof Chartist.Svg\n * @param {String} t The text that should be added to the text element that is created\n * @return {Chartist.Svg} The same wrapper object that was used to add the newly created element\n */\n function text(t) {\n this._node.appendChild(document.createTextNode(t));\n return this;\n }\n\n /**\n * This method will clear all child nodes of the current wrapper object.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The same wrapper object that got emptied\n */\n function empty() {\n while (this._node.firstChild) {\n this._node.removeChild(this._node.firstChild);\n }\n\n return this;\n }\n\n /**\n * This method will cause the current wrapper to remove itself from its parent wrapper. Use this method if you'd like to get rid of an element in a given DOM structure.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The parent wrapper object of the element that got removed\n */\n function remove() {\n this._node.parentNode.removeChild(this._node);\n return this.parent();\n }\n\n /**\n * This method will replace the element with a new element that can be created outside of the current DOM.\n *\n * @memberof Chartist.Svg\n * @param {Chartist.Svg} newElement The new Chartist.Svg object that will be used to replace the current wrapper object\n * @return {Chartist.Svg} The wrapper of the new element\n */\n function replace(newElement) {\n this._node.parentNode.replaceChild(newElement._node, this._node);\n return newElement;\n }\n\n /**\n * This method will append an element to the current element as a child.\n *\n * @memberof Chartist.Svg\n * @param {Chartist.Svg} element The Chartist.Svg element that should be added as a child\n * @param {Boolean} [insertFirst] Specifies if the element should be inserted as first child\n * @return {Chartist.Svg} The wrapper of the appended object\n */\n function append(element, insertFirst) {\n if(insertFirst && this._node.firstChild) {\n this._node.insertBefore(element._node, this._node.firstChild);\n } else {\n this._node.appendChild(element._node);\n }\n\n return this;\n }\n\n /**\n * Returns an array of class names that are attached to the current wrapper element. This method can not be chained further.\n *\n * @memberof Chartist.Svg\n * @return {Array} A list of classes or an empty array if there are no classes on the current element\n */\n function classes() {\n return this._node.getAttribute('class') ? this._node.getAttribute('class').trim().split(/\\s+/) : [];\n }\n\n /**\n * Adds one or a space separated list of classes to the current element and ensures the classes are only existing once.\n *\n * @memberof Chartist.Svg\n * @param {String} names A white space separated list of class names\n * @return {Chartist.Svg} The wrapper of the current element\n */\n function addClass(names) {\n this._node.setAttribute('class',\n this.classes(this._node)\n .concat(names.trim().split(/\\s+/))\n .filter(function(elem, pos, self) {\n return self.indexOf(elem) === pos;\n }).join(' ')\n );\n\n return this;\n }\n\n /**\n * Removes one or a space separated list of classes from the current element.\n *\n * @memberof Chartist.Svg\n * @param {String} names A white space separated list of class names\n * @return {Chartist.Svg} The wrapper of the current element\n */\n function removeClass(names) {\n var removedClasses = names.trim().split(/\\s+/);\n\n this._node.setAttribute('class', this.classes(this._node).filter(function(name) {\n return removedClasses.indexOf(name) === -1;\n }).join(' '));\n\n return this;\n }\n\n /**\n * Removes all classes from the current element.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The wrapper of the current element\n */\n function removeAllClasses() {\n this._node.setAttribute('class', '');\n\n return this;\n }\n\n /**\n * Get element height using `getBoundingClientRect`\n *\n * @memberof Chartist.Svg\n * @return {Number} The elements height in pixels\n */\n function height() {\n return this._node.getBoundingClientRect().height;\n }\n\n /**\n * Get element width using `getBoundingClientRect`\n *\n * @memberof Chartist.Core\n * @return {Number} The elements width in pixels\n */\n function width() {\n return this._node.getBoundingClientRect().width;\n }\n\n /**\n * The animate function lets you animate the current element with SMIL animations. You can add animations for multiple attributes at the same time by using an animation definition object. This object should contain SMIL animation attributes. Please refer to http://www.w3.org/TR/SVG/animate.html for a detailed specification about the available animation attributes. Additionally an easing property can be passed in the animation definition object. This can be a string with a name of an easing function in `Chartist.Svg.Easing` or an array with four numbers specifying a cubic Bézier curve.\n * **An animations object could look like this:**\n * ```javascript\n * element.animate({\n * opacity: {\n * dur: 1000,\n * from: 0,\n * to: 1\n * },\n * x1: {\n * dur: '1000ms',\n * from: 100,\n * to: 200,\n * easing: 'easeOutQuart'\n * },\n * y1: {\n * dur: '2s',\n * from: 0,\n * to: 100\n * }\n * });\n * ```\n * **Automatic unit conversion**\n * For the `dur` and the `begin` animate attribute you can also omit a unit by passing a number. The number will automatically be converted to milli seconds.\n * **Guided mode**\n * The default behavior of SMIL animations with offset using the `begin` attribute is that the attribute will keep it's original value until the animation starts. Mostly this behavior is not desired as you'd like to have your element attributes already initialized with the animation `from` value even before the animation starts. Also if you don't specify `fill=\"freeze\"` on an animate element or if you delete the animation after it's done (which is done in guided mode) the attribute will switch back to the initial value. This behavior is also not desired when performing simple one-time animations. For one-time animations you'd want to trigger animations immediately instead of relative to the document begin time. That's why in guided mode Chartist.Svg will also use the `begin` property to schedule a timeout and manually start the animation after the timeout. If you're using multiple SMIL definition objects for an attribute (in an array), guided mode will be disabled for this attribute, even if you explicitly enabled it.\n * If guided mode is enabled the following behavior is added:\n * - Before the animation starts (even when delayed with `begin`) the animated attribute will be set already to the `from` value of the animation\n * - `begin` is explicitly set to `indefinite` so it can be started manually without relying on document begin time (creation)\n * - The animate element will be forced to use `fill=\"freeze\"`\n * - The animation will be triggered with `beginElement()` in a timeout where `begin` of the definition object is interpreted in milli seconds. If no `begin` was specified the timeout is triggered immediately.\n * - After the animation the element attribute value will be set to the `to` value of the animation\n * - The animate element is deleted from the DOM\n *\n * @memberof Chartist.Svg\n * @param {Object} animations An animations object where the property keys are the attributes you'd like to animate. The properties should be objects again that contain the SMIL animation attributes (usually begin, dur, from, and to). The property begin and dur is auto converted (see Automatic unit conversion). You can also schedule multiple animations for the same attribute by passing an Array of SMIL definition objects. Attributes that contain an array of SMIL definition objects will not be executed in guided mode.\n * @param {Boolean} guided Specify if guided mode should be activated for this animation (see Guided mode). If not otherwise specified, guided mode will be activated.\n * @param {Object} eventEmitter If specified, this event emitter will be notified when an animation starts or ends.\n * @return {Chartist.Svg} The current element where the animation was added\n */\n function animate(animations, guided, eventEmitter) {\n if(guided === undefined) {\n guided = true;\n }\n\n Object.keys(animations).forEach(function createAnimateForAttributes(attribute) {\n\n function createAnimate(animationDefinition, guided) {\n var attributeProperties = {},\n animate,\n timeout,\n easing;\n\n // Check if an easing is specified in the definition object and delete it from the object as it will not\n // be part of the animate element attributes.\n if(animationDefinition.easing) {\n // If already an easing Bézier curve array we take it or we lookup a easing array in the Easing object\n easing = animationDefinition.easing instanceof Array ?\n animationDefinition.easing :\n Chartist.Svg.Easing[animationDefinition.easing];\n delete animationDefinition.easing;\n }\n\n // If numeric dur or begin was provided we assume milli seconds\n animationDefinition.begin = Chartist.ensureUnit(animationDefinition.begin, 'ms');\n animationDefinition.dur = Chartist.ensureUnit(animationDefinition.dur, 'ms');\n\n if(easing) {\n animationDefinition.calcMode = 'spline';\n animationDefinition.keySplines = easing.join(' ');\n animationDefinition.keyTimes = '0;1';\n }\n\n // Adding \"fill: freeze\" if we are in guided mode and set initial attribute values\n if(guided) {\n animationDefinition.fill = 'freeze';\n // Animated property on our element should already be set to the animation from value in guided mode\n attributeProperties[attribute] = animationDefinition.from;\n this.attr(attributeProperties);\n\n // In guided mode we also set begin to indefinite so we can trigger the start manually and put the begin\n // which needs to be in ms aside\n timeout = Chartist.quantity(animationDefinition.begin || 0).value;\n animationDefinition.begin = 'indefinite';\n }\n\n animate = this.elem('animate', Chartist.extend({\n attributeName: attribute\n }, animationDefinition));\n\n if(guided) {\n // If guided we take the value that was put aside in timeout and trigger the animation manually with a timeout\n setTimeout(function() {\n // If beginElement fails we set the animated attribute to the end position and remove the animate element\n // This happens if the SMIL ElementTimeControl interface is not supported or any other problems occured in\n // the browser. (Currently FF 34 does not support animate elements in foreignObjects)\n try {\n animate._node.beginElement();\n } catch(err) {\n // Set animated attribute to current animated value\n attributeProperties[attribute] = animationDefinition.to;\n this.attr(attributeProperties);\n // Remove the animate element as it's no longer required\n animate.remove();\n }\n }.bind(this), timeout);\n }\n\n if(eventEmitter) {\n animate._node.addEventListener('beginEvent', function handleBeginEvent() {\n eventEmitter.emit('animationBegin', {\n element: this,\n animate: animate._node,\n params: animationDefinition\n });\n }.bind(this));\n }\n\n animate._node.addEventListener('endEvent', function handleEndEvent() {\n if(eventEmitter) {\n eventEmitter.emit('animationEnd', {\n element: this,\n animate: animate._node,\n params: animationDefinition\n });\n }\n\n if(guided) {\n // Set animated attribute to current animated value\n attributeProperties[attribute] = animationDefinition.to;\n this.attr(attributeProperties);\n // Remove the animate element as it's no longer required\n animate.remove();\n }\n }.bind(this));\n }\n\n // If current attribute is an array of definition objects we create an animate for each and disable guided mode\n if(animations[attribute] instanceof Array) {\n animations[attribute].forEach(function(animationDefinition) {\n createAnimate.bind(this)(animationDefinition, false);\n }.bind(this));\n } else {\n createAnimate.bind(this)(animations[attribute], guided);\n }\n\n }.bind(this));\n\n return this;\n }\n\n Chartist.Svg = Chartist.Class.extend({\n constructor: Svg,\n attr: attr,\n elem: elem,\n parent: parent,\n root: root,\n querySelector: querySelector,\n querySelectorAll: querySelectorAll,\n getNode: getNode,\n foreignObject: foreignObject,\n text: text,\n empty: empty,\n remove: remove,\n replace: replace,\n append: append,\n classes: classes,\n addClass: addClass,\n removeClass: removeClass,\n removeAllClasses: removeAllClasses,\n height: height,\n width: width,\n animate: animate\n });\n\n /**\n * This method checks for support of a given SVG feature like Extensibility, SVG-animation or the like. Check http://www.w3.org/TR/SVG11/feature for a detailed list.\n *\n * @memberof Chartist.Svg\n * @param {String} feature The SVG 1.1 feature that should be checked for support.\n * @return {Boolean} True of false if the feature is supported or not\n */\n Chartist.Svg.isSupported = function(feature) {\n return document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#' + feature, '1.1');\n };\n\n /**\n * This Object contains some standard easing cubic bezier curves. Then can be used with their name in the `Chartist.Svg.animate`. You can also extend the list and use your own name in the `animate` function. Click the show code button to see the available bezier functions.\n *\n * @memberof Chartist.Svg\n */\n var easingCubicBeziers = {\n easeInSine: [0.47, 0, 0.745, 0.715],\n easeOutSine: [0.39, 0.575, 0.565, 1],\n easeInOutSine: [0.445, 0.05, 0.55, 0.95],\n easeInQuad: [0.55, 0.085, 0.68, 0.53],\n easeOutQuad: [0.25, 0.46, 0.45, 0.94],\n easeInOutQuad: [0.455, 0.03, 0.515, 0.955],\n easeInCubic: [0.55, 0.055, 0.675, 0.19],\n easeOutCubic: [0.215, 0.61, 0.355, 1],\n easeInOutCubic: [0.645, 0.045, 0.355, 1],\n easeInQuart: [0.895, 0.03, 0.685, 0.22],\n easeOutQuart: [0.165, 0.84, 0.44, 1],\n easeInOutQuart: [0.77, 0, 0.175, 1],\n easeInQuint: [0.755, 0.05, 0.855, 0.06],\n easeOutQuint: [0.23, 1, 0.32, 1],\n easeInOutQuint: [0.86, 0, 0.07, 1],\n easeInExpo: [0.95, 0.05, 0.795, 0.035],\n easeOutExpo: [0.19, 1, 0.22, 1],\n easeInOutExpo: [1, 0, 0, 1],\n easeInCirc: [0.6, 0.04, 0.98, 0.335],\n easeOutCirc: [0.075, 0.82, 0.165, 1],\n easeInOutCirc: [0.785, 0.135, 0.15, 0.86],\n easeInBack: [0.6, -0.28, 0.735, 0.045],\n easeOutBack: [0.175, 0.885, 0.32, 1.275],\n easeInOutBack: [0.68, -0.55, 0.265, 1.55]\n };\n\n Chartist.Svg.Easing = easingCubicBeziers;\n\n /**\n * This helper class is to wrap multiple `Chartist.Svg` elements into a list where you can call the `Chartist.Svg` functions on all elements in the list with one call. This is helpful when you'd like to perform calls with `Chartist.Svg` on multiple elements.\n * An instance of this class is also returned by `Chartist.Svg.querySelectorAll`.\n *\n * @memberof Chartist.Svg\n * @param {Array|NodeList} nodeList An Array of SVG DOM nodes or a SVG DOM NodeList (as returned by document.querySelectorAll)\n * @constructor\n */\n function SvgList(nodeList) {\n var list = this;\n\n this.svgElements = [];\n for(var i = 0; i < nodeList.length; i++) {\n this.svgElements.push(new Chartist.Svg(nodeList[i]));\n }\n\n // Add delegation methods for Chartist.Svg\n Object.keys(Chartist.Svg.prototype).filter(function(prototypeProperty) {\n return ['constructor',\n 'parent',\n 'querySelector',\n 'querySelectorAll',\n 'replace',\n 'append',\n 'classes',\n 'height',\n 'width'].indexOf(prototypeProperty) === -1;\n }).forEach(function(prototypeProperty) {\n list[prototypeProperty] = function() {\n var args = Array.prototype.slice.call(arguments, 0);\n list.svgElements.forEach(function(element) {\n Chartist.Svg.prototype[prototypeProperty].apply(element, args);\n });\n return list;\n };\n });\n }\n\n Chartist.Svg.List = Chartist.Class.extend({\n constructor: SvgList\n });\n}(this || global, Chartist));\n;/**\n * Chartist SVG path module for SVG path description creation and modification.\n *\n * @module Chartist.Svg.Path\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n /**\n * Contains the descriptors of supported element types in a SVG path. Currently only move, line and curve are supported.\n *\n * @memberof Chartist.Svg.Path\n * @type {Object}\n */\n var elementDescriptions = {\n m: ['x', 'y'],\n l: ['x', 'y'],\n c: ['x1', 'y1', 'x2', 'y2', 'x', 'y'],\n a: ['rx', 'ry', 'xAr', 'lAf', 'sf', 'x', 'y']\n };\n\n /**\n * Default options for newly created SVG path objects.\n *\n * @memberof Chartist.Svg.Path\n * @type {Object}\n */\n var defaultOptions = {\n // The accuracy in digit count after the decimal point. This will be used to round numbers in the SVG path. If this option is set to false then no rounding will be performed.\n accuracy: 3\n };\n\n function element(command, params, pathElements, pos, relative, data) {\n var pathElement = Chartist.extend({\n command: relative ? command.toLowerCase() : command.toUpperCase()\n }, params, data ? { data: data } : {} );\n\n pathElements.splice(pos, 0, pathElement);\n }\n\n function forEachParam(pathElements, cb) {\n pathElements.forEach(function(pathElement, pathElementIndex) {\n elementDescriptions[pathElement.command.toLowerCase()].forEach(function(paramName, paramIndex) {\n cb(pathElement, paramName, pathElementIndex, paramIndex, pathElements);\n });\n });\n }\n\n /**\n * Used to construct a new path object.\n *\n * @memberof Chartist.Svg.Path\n * @param {Boolean} close If set to true then this path will be closed when stringified (with a Z at the end)\n * @param {Object} options Options object that overrides the default objects. See default options for more details.\n * @constructor\n */\n function SvgPath(close, options) {\n this.pathElements = [];\n this.pos = 0;\n this.close = close;\n this.options = Chartist.extend({}, defaultOptions, options);\n }\n\n /**\n * Gets or sets the current position (cursor) inside of the path. You can move around the cursor freely but limited to 0 or the count of existing elements. All modifications with element functions will insert new elements at the position of this cursor.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} [pos] If a number is passed then the cursor is set to this position in the path element array.\n * @return {Chartist.Svg.Path|Number} If the position parameter was passed then the return value will be the path object for easy call chaining. If no position parameter was passed then the current position is returned.\n */\n function position(pos) {\n if(pos !== undefined) {\n this.pos = Math.max(0, Math.min(this.pathElements.length, pos));\n return this;\n } else {\n return this.pos;\n }\n }\n\n /**\n * Removes elements from the path starting at the current position.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} count Number of path elements that should be removed from the current position.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function remove(count) {\n this.pathElements.splice(this.pos, count);\n return this;\n }\n\n /**\n * Use this function to add a new move SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The x coordinate for the move element.\n * @param {Number} y The y coordinate for the move element.\n * @param {Boolean} [relative] If set to true the move element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function move(x, y, relative, data) {\n element('M', {\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Use this function to add a new line SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The x coordinate for the line element.\n * @param {Number} y The y coordinate for the line element.\n * @param {Boolean} [relative] If set to true the line element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function line(x, y, relative, data) {\n element('L', {\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Use this function to add a new curve SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x1 The x coordinate for the first control point of the bezier curve.\n * @param {Number} y1 The y coordinate for the first control point of the bezier curve.\n * @param {Number} x2 The x coordinate for the second control point of the bezier curve.\n * @param {Number} y2 The y coordinate for the second control point of the bezier curve.\n * @param {Number} x The x coordinate for the target point of the curve element.\n * @param {Number} y The y coordinate for the target point of the curve element.\n * @param {Boolean} [relative] If set to true the curve element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function curve(x1, y1, x2, y2, x, y, relative, data) {\n element('C', {\n x1: +x1,\n y1: +y1,\n x2: +x2,\n y2: +y2,\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Use this function to add a new non-bezier curve SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} rx The radius to be used for the x-axis of the arc.\n * @param {Number} ry The radius to be used for the y-axis of the arc.\n * @param {Number} xAr Defines the orientation of the arc\n * @param {Number} lAf Large arc flag\n * @param {Number} sf Sweep flag\n * @param {Number} x The x coordinate for the target point of the curve element.\n * @param {Number} y The y coordinate for the target point of the curve element.\n * @param {Boolean} [relative] If set to true the curve element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function arc(rx, ry, xAr, lAf, sf, x, y, relative, data) {\n element('A', {\n rx: +rx,\n ry: +ry,\n xAr: +xAr,\n lAf: +lAf,\n sf: +sf,\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Parses an SVG path seen in the d attribute of path elements, and inserts the parsed elements into the existing path object at the current cursor position. Any closing path indicators (Z at the end of the path) will be ignored by the parser as this is provided by the close option in the options of the path object.\n *\n * @memberof Chartist.Svg.Path\n * @param {String} path Any SVG path that contains move (m), line (l) or curve (c) components.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function parse(path) {\n // Parsing the SVG path string into an array of arrays [['M', '10', '10'], ['L', '100', '100']]\n var chunks = path.replace(/([A-Za-z])([0-9])/g, '$1 $2')\n .replace(/([0-9])([A-Za-z])/g, '$1 $2')\n .split(/[\\s,]+/)\n .reduce(function(result, element) {\n if(element.match(/[A-Za-z]/)) {\n result.push([]);\n }\n\n result[result.length - 1].push(element);\n return result;\n }, []);\n\n // If this is a closed path we remove the Z at the end because this is determined by the close option\n if(chunks[chunks.length - 1][0].toUpperCase() === 'Z') {\n chunks.pop();\n }\n\n // Using svgPathElementDescriptions to map raw path arrays into objects that contain the command and the parameters\n // For example {command: 'M', x: '10', y: '10'}\n var elements = chunks.map(function(chunk) {\n var command = chunk.shift(),\n description = elementDescriptions[command.toLowerCase()];\n\n return Chartist.extend({\n command: command\n }, description.reduce(function(result, paramName, index) {\n result[paramName] = +chunk[index];\n return result;\n }, {}));\n });\n\n // Preparing a splice call with the elements array as var arg params and insert the parsed elements at the current position\n var spliceArgs = [this.pos, 0];\n Array.prototype.push.apply(spliceArgs, elements);\n Array.prototype.splice.apply(this.pathElements, spliceArgs);\n // Increase the internal position by the element count\n this.pos += elements.length;\n\n return this;\n }\n\n /**\n * This function renders to current SVG path object into a final SVG string that can be used in the d attribute of SVG path elements. It uses the accuracy option to round big decimals. If the close parameter was set in the constructor of this path object then a path closing Z will be appended to the output string.\n *\n * @memberof Chartist.Svg.Path\n * @return {String}\n */\n function stringify() {\n var accuracyMultiplier = Math.pow(10, this.options.accuracy);\n\n return this.pathElements.reduce(function(path, pathElement) {\n var params = elementDescriptions[pathElement.command.toLowerCase()].map(function(paramName) {\n return this.options.accuracy ?\n (Math.round(pathElement[paramName] * accuracyMultiplier) / accuracyMultiplier) :\n pathElement[paramName];\n }.bind(this));\n\n return path + pathElement.command + params.join(',');\n }.bind(this), '') + (this.close ? 'Z' : '');\n }\n\n /**\n * Scales all elements in the current SVG path object. There is an individual parameter for each coordinate. Scaling will also be done for control points of curves, affecting the given coordinate.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The number which will be used to scale the x, x1 and x2 of all path elements.\n * @param {Number} y The number which will be used to scale the y, y1 and y2 of all path elements.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function scale(x, y) {\n forEachParam(this.pathElements, function(pathElement, paramName) {\n pathElement[paramName] *= paramName[0] === 'x' ? x : y;\n });\n return this;\n }\n\n /**\n * Translates all elements in the current SVG path object. The translation is relative and there is an individual parameter for each coordinate. Translation will also be done for control points of curves, affecting the given coordinate.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The number which will be used to translate the x, x1 and x2 of all path elements.\n * @param {Number} y The number which will be used to translate the y, y1 and y2 of all path elements.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function translate(x, y) {\n forEachParam(this.pathElements, function(pathElement, paramName) {\n pathElement[paramName] += paramName[0] === 'x' ? x : y;\n });\n return this;\n }\n\n /**\n * This function will run over all existing path elements and then loop over their attributes. The callback function will be called for every path element attribute that exists in the current path.\n * The method signature of the callback function looks like this:\n * ```javascript\n * function(pathElement, paramName, pathElementIndex, paramIndex, pathElements)\n * ```\n * If something else than undefined is returned by the callback function, this value will be used to replace the old value. This allows you to build custom transformations of path objects that can't be achieved using the basic transformation functions scale and translate.\n *\n * @memberof Chartist.Svg.Path\n * @param {Function} transformFnc The callback function for the transformation. Check the signature in the function description.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function transform(transformFnc) {\n forEachParam(this.pathElements, function(pathElement, paramName, pathElementIndex, paramIndex, pathElements) {\n var transformed = transformFnc(pathElement, paramName, pathElementIndex, paramIndex, pathElements);\n if(transformed || transformed === 0) {\n pathElement[paramName] = transformed;\n }\n });\n return this;\n }\n\n /**\n * This function clones a whole path object with all its properties. This is a deep clone and path element objects will also be cloned.\n *\n * @memberof Chartist.Svg.Path\n * @param {Boolean} [close] Optional option to set the new cloned path to closed. If not specified or false, the original path close option will be used.\n * @return {Chartist.Svg.Path}\n */\n function clone(close) {\n var c = new Chartist.Svg.Path(close || this.close);\n c.pos = this.pos;\n c.pathElements = this.pathElements.slice().map(function cloneElements(pathElement) {\n return Chartist.extend({}, pathElement);\n });\n c.options = Chartist.extend({}, this.options);\n return c;\n }\n\n /**\n * Split a Svg.Path object by a specific command in the path chain. The path chain will be split and an array of newly created paths objects will be returned. This is useful if you'd like to split an SVG path by it's move commands, for example, in order to isolate chunks of drawings.\n *\n * @memberof Chartist.Svg.Path\n * @param {String} command The command you'd like to use to split the path\n * @return {Array}\n */\n function splitByCommand(command) {\n var split = [\n new Chartist.Svg.Path()\n ];\n\n this.pathElements.forEach(function(pathElement) {\n if(pathElement.command === command.toUpperCase() && split[split.length - 1].pathElements.length !== 0) {\n split.push(new Chartist.Svg.Path());\n }\n\n split[split.length - 1].pathElements.push(pathElement);\n });\n\n return split;\n }\n\n /**\n * This static function on `Chartist.Svg.Path` is joining multiple paths together into one paths.\n *\n * @memberof Chartist.Svg.Path\n * @param {Array} paths A list of paths to be joined together. The order is important.\n * @param {boolean} close If the newly created path should be a closed path\n * @param {Object} options Path options for the newly created path.\n * @return {Chartist.Svg.Path}\n */\n\n function join(paths, close, options) {\n var joinedPath = new Chartist.Svg.Path(close, options);\n for(var i = 0; i < paths.length; i++) {\n var path = paths[i];\n for(var j = 0; j < path.pathElements.length; j++) {\n joinedPath.pathElements.push(path.pathElements[j]);\n }\n }\n return joinedPath;\n }\n\n Chartist.Svg.Path = Chartist.Class.extend({\n constructor: SvgPath,\n position: position,\n remove: remove,\n move: move,\n line: line,\n curve: curve,\n arc: arc,\n scale: scale,\n translate: translate,\n transform: transform,\n parse: parse,\n stringify: stringify,\n clone: clone,\n splitByCommand: splitByCommand\n });\n\n Chartist.Svg.Path.elementDescriptions = elementDescriptions;\n Chartist.Svg.Path.join = join;\n}(this || global, Chartist));\n;/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n var axisUnits = {\n x: {\n pos: 'x',\n len: 'width',\n dir: 'horizontal',\n rectStart: 'x1',\n rectEnd: 'x2',\n rectOffset: 'y2'\n },\n y: {\n pos: 'y',\n len: 'height',\n dir: 'vertical',\n rectStart: 'y2',\n rectEnd: 'y1',\n rectOffset: 'x1'\n }\n };\n\n function Axis(units, chartRect, ticks, options) {\n this.units = units;\n this.counterUnits = units === axisUnits.x ? axisUnits.y : axisUnits.x;\n this.chartRect = chartRect;\n this.axisLength = chartRect[units.rectEnd] - chartRect[units.rectStart];\n this.gridOffset = chartRect[units.rectOffset];\n this.ticks = ticks;\n this.options = options;\n }\n\n function createGridAndLabels(gridGroup, labelGroup, useForeignObject, chartOptions, eventEmitter) {\n var axisOptions = chartOptions['axis' + this.units.pos.toUpperCase()];\n var projectedValues = this.ticks.map(this.projectValue.bind(this));\n var labelValues = this.ticks.map(axisOptions.labelInterpolationFnc);\n\n projectedValues.forEach(function(projectedValue, index) {\n var labelOffset = {\n x: 0,\n y: 0\n };\n\n // TODO: Find better solution for solving this problem\n // Calculate how much space we have available for the label\n var labelLength;\n if(projectedValues[index + 1]) {\n // If we still have one label ahead, we can calculate the distance to the next tick / label\n labelLength = projectedValues[index + 1] - projectedValue;\n } else {\n // If we don't have a label ahead and we have only two labels in total, we just take the remaining distance to\n // on the whole axis length. We limit that to a minimum of 30 pixel, so that labels close to the border will\n // still be visible inside of the chart padding.\n labelLength = Math.max(this.axisLength - projectedValue, 30);\n }\n\n // Skip grid lines and labels where interpolated label values are falsey (execpt for 0)\n if(Chartist.isFalseyButZero(labelValues[index]) && labelValues[index] !== '') {\n return;\n }\n\n // Transform to global coordinates using the chartRect\n // We also need to set the label offset for the createLabel function\n if(this.units.pos === 'x') {\n projectedValue = this.chartRect.x1 + projectedValue;\n labelOffset.x = chartOptions.axisX.labelOffset.x;\n\n // If the labels should be positioned in start position (top side for vertical axis) we need to set a\n // different offset as for positioned with end (bottom)\n if(chartOptions.axisX.position === 'start') {\n labelOffset.y = this.chartRect.padding.top + chartOptions.axisX.labelOffset.y + (useForeignObject ? 5 : 20);\n } else {\n labelOffset.y = this.chartRect.y1 + chartOptions.axisX.labelOffset.y + (useForeignObject ? 5 : 20);\n }\n } else {\n projectedValue = this.chartRect.y1 - projectedValue;\n labelOffset.y = chartOptions.axisY.labelOffset.y - (useForeignObject ? labelLength : 0);\n\n // If the labels should be positioned in start position (left side for horizontal axis) we need to set a\n // different offset as for positioned with end (right side)\n if(chartOptions.axisY.position === 'start') {\n labelOffset.x = useForeignObject ? this.chartRect.padding.left + chartOptions.axisY.labelOffset.x : this.chartRect.x1 - 10;\n } else {\n labelOffset.x = this.chartRect.x2 + chartOptions.axisY.labelOffset.x + 10;\n }\n }\n\n if(axisOptions.showGrid) {\n Chartist.createGrid(projectedValue, index, this, this.gridOffset, this.chartRect[this.counterUnits.len](), gridGroup, [\n chartOptions.classNames.grid,\n chartOptions.classNames[this.units.dir]\n ], eventEmitter);\n }\n\n if(axisOptions.showLabel) {\n Chartist.createLabel(projectedValue, labelLength, index, labelValues, this, axisOptions.offset, labelOffset, labelGroup, [\n chartOptions.classNames.label,\n chartOptions.classNames[this.units.dir],\n (axisOptions.position === 'start' ? chartOptions.classNames[axisOptions.position] : chartOptions.classNames['end'])\n ], useForeignObject, eventEmitter);\n }\n }.bind(this));\n }\n\n Chartist.Axis = Chartist.Class.extend({\n constructor: Axis,\n createGridAndLabels: createGridAndLabels,\n projectValue: function(value, index, data) {\n throw new Error('Base axis can\\'t be instantiated!');\n }\n });\n\n Chartist.Axis.units = axisUnits;\n\n}(this || global, Chartist));\n;/**\n * The auto scale axis uses standard linear scale projection of values along an axis. It uses order of magnitude to find a scale automatically and evaluates the available space in order to find the perfect amount of ticks for your chart.\n * **Options**\n * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings.\n * ```javascript\n * var options = {\n * // If high is specified then the axis will display values explicitly up to this value and the computed maximum from the data is ignored\n * high: 100,\n * // If low is specified then the axis will display values explicitly down to this value and the computed minimum from the data is ignored\n * low: 0,\n * // This option will be used when finding the right scale division settings. The amount of ticks on the scale will be determined so that as many ticks as possible will be displayed, while not violating this minimum required space (in pixel).\n * scaleMinSpace: 20,\n * // Can be set to true or false. If set to true, the scale will be generated with whole numbers only.\n * onlyInteger: true,\n * // The reference value can be used to make sure that this value will always be on the chart. This is especially useful on bipolar charts where the bipolar center always needs to be part of the chart.\n * referenceValue: 5\n * };\n * ```\n *\n * @module Chartist.AutoScaleAxis\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n function AutoScaleAxis(axisUnit, data, chartRect, options) {\n // Usually we calculate highLow based on the data but this can be overriden by a highLow object in the options\n var highLow = options.highLow || Chartist.getHighLow(data, options, axisUnit.pos);\n this.bounds = Chartist.getBounds(chartRect[axisUnit.rectEnd] - chartRect[axisUnit.rectStart], highLow, options.scaleMinSpace || 20, options.onlyInteger);\n this.range = {\n min: this.bounds.min,\n max: this.bounds.max\n };\n\n Chartist.AutoScaleAxis.super.constructor.call(this,\n axisUnit,\n chartRect,\n this.bounds.values,\n options);\n }\n\n function projectValue(value) {\n return this.axisLength * (+Chartist.getMultiValue(value, this.units.pos) - this.bounds.min) / this.bounds.range;\n }\n\n Chartist.AutoScaleAxis = Chartist.Axis.extend({\n constructor: AutoScaleAxis,\n projectValue: projectValue\n });\n\n}(this || global, Chartist));\n;/**\n * The fixed scale axis uses standard linear projection of values along an axis. It makes use of a divisor option to divide the range provided from the minimum and maximum value or the options high and low that will override the computed minimum and maximum.\n * **Options**\n * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings.\n * ```javascript\n * var options = {\n * // If high is specified then the axis will display values explicitly up to this value and the computed maximum from the data is ignored\n * high: 100,\n * // If low is specified then the axis will display values explicitly down to this value and the computed minimum from the data is ignored\n * low: 0,\n * // If specified then the value range determined from minimum to maximum (or low and high) will be divided by this number and ticks will be generated at those division points. The default divisor is 1.\n * divisor: 4,\n * // If ticks is explicitly set, then the axis will not compute the ticks with the divisor, but directly use the data in ticks to determine at what points on the axis a tick need to be generated.\n * ticks: [1, 10, 20, 30]\n * };\n * ```\n *\n * @module Chartist.FixedScaleAxis\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n function FixedScaleAxis(axisUnit, data, chartRect, options) {\n var highLow = options.highLow || Chartist.getHighLow(data, options, axisUnit.pos);\n this.divisor = options.divisor || 1;\n this.ticks = options.ticks || Chartist.times(this.divisor).map(function(value, index) {\n return highLow.low + (highLow.high - highLow.low) / this.divisor * index;\n }.bind(this));\n this.ticks.sort(function(a, b) {\n return a - b;\n });\n this.range = {\n min: highLow.low,\n max: highLow.high\n };\n\n Chartist.FixedScaleAxis.super.constructor.call(this,\n axisUnit,\n chartRect,\n this.ticks,\n options);\n\n this.stepLength = this.axisLength / this.divisor;\n }\n\n function projectValue(value) {\n return this.axisLength * (+Chartist.getMultiValue(value, this.units.pos) - this.range.min) / (this.range.max - this.range.min);\n }\n\n Chartist.FixedScaleAxis = Chartist.Axis.extend({\n constructor: FixedScaleAxis,\n projectValue: projectValue\n });\n\n}(this || global, Chartist));\n;/**\n * The step axis for step based charts like bar chart or step based line charts. It uses a fixed amount of ticks that will be equally distributed across the whole axis length. The projection is done using the index of the data value rather than the value itself and therefore it's only useful for distribution purpose.\n * **Options**\n * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings.\n * ```javascript\n * var options = {\n * // Ticks to be used to distribute across the axis length. As this axis type relies on the index of the value rather than the value, arbitrary data that can be converted to a string can be used as ticks.\n * ticks: ['One', 'Two', 'Three'],\n * // If set to true the full width will be used to distribute the values where the last value will be at the maximum of the axis length. If false the spaces between the ticks will be evenly distributed instead.\n * stretch: true\n * };\n * ```\n *\n * @module Chartist.StepAxis\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n function StepAxis(axisUnit, data, chartRect, options) {\n Chartist.StepAxis.super.constructor.call(this,\n axisUnit,\n chartRect,\n options.ticks,\n options);\n\n var calc = Math.max(1, options.ticks.length - (options.stretch ? 1 : 0));\n this.stepLength = this.axisLength / calc;\n }\n\n function projectValue(value, index) {\n return this.stepLength * index;\n }\n\n Chartist.StepAxis = Chartist.Axis.extend({\n constructor: StepAxis,\n projectValue: projectValue\n });\n\n}(this || global, Chartist));\n;/**\n * The Chartist line chart can be used to draw Line or Scatter charts. If used in the browser you can access the global `Chartist` namespace where you find the `Line` function as a main entry point.\n *\n * For examples on how to use the line chart please check the examples of the `Chartist.Line` method.\n *\n * @module Chartist.Line\n */\n/* global Chartist */\n(function(globalRoot, Chartist){\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * Default options in line charts. Expand the code view to see a detailed list of options with comments.\n *\n * @memberof Chartist.Line\n */\n var defaultOptions = {\n // Options for X-Axis\n axisX: {\n // The offset of the labels to the chart area\n offset: 30,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'end',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // Set the axis type to be used to project values on this axis. If not defined, Chartist.StepAxis will be used for the X-Axis, where the ticks option will be set to the labels in the data and the stretch option will be set to the global fullWidth option. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here.\n type: undefined\n },\n // Options for Y-Axis\n axisY: {\n // The offset of the labels to the chart area\n offset: 40,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'start',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // Set the axis type to be used to project values on this axis. If not defined, Chartist.AutoScaleAxis will be used for the Y-Axis, where the high and low options will be set to the global high and low options. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here.\n type: undefined,\n // This value specifies the minimum height in pixel of the scale steps\n scaleMinSpace: 20,\n // Use only integer values (whole numbers) for the scale steps\n onlyInteger: false\n },\n // Specify a fixed width for the chart as a string (i.e. '100px' or '50%')\n width: undefined,\n // Specify a fixed height for the chart as a string (i.e. '100px' or '50%')\n height: undefined,\n // If the line should be drawn or not\n showLine: true,\n // If dots should be drawn or not\n showPoint: true,\n // If the line chart should draw an area\n showArea: false,\n // The base for the area chart that will be used to close the area shape (is normally 0)\n areaBase: 0,\n // Specify if the lines should be smoothed. This value can be true or false where true will result in smoothing using the default smoothing interpolation function Chartist.Interpolation.cardinal and false results in Chartist.Interpolation.none. You can also choose other smoothing / interpolation functions available in the Chartist.Interpolation module, or write your own interpolation function. Check the examples for a brief description.\n lineSmooth: true,\n // If the line chart should add a background fill to the .ct-grids group.\n showGridBackground: false,\n // Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value\n low: undefined,\n // Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value\n high: undefined,\n // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5}\n chartPadding: {\n top: 15,\n right: 15,\n bottom: 5,\n left: 10\n },\n // When set to true, the last grid line on the x-axis is not drawn and the chart elements will expand to the full available width of the chart. For the last label to be drawn correctly you might need to add chart padding or offset the last label with a draw event handler.\n fullWidth: false,\n // If true the whole data is reversed including labels, the series order as well as the whole series data arrays.\n reverseData: false,\n // Override the class names that get used to generate the SVG structure of the chart\n classNames: {\n chart: 'ct-chart-line',\n label: 'ct-label',\n labelGroup: 'ct-labels',\n series: 'ct-series',\n line: 'ct-line',\n point: 'ct-point',\n area: 'ct-area',\n grid: 'ct-grid',\n gridGroup: 'ct-grids',\n gridBackground: 'ct-grid-background',\n vertical: 'ct-vertical',\n horizontal: 'ct-horizontal',\n start: 'ct-start',\n end: 'ct-end'\n }\n };\n\n /**\n * Creates a new chart\n *\n */\n function createChart(options) {\n var data = Chartist.normalizeData(this.data, options.reverseData, true);\n\n // Create new svg object\n this.svg = Chartist.createSvg(this.container, options.width, options.height, options.classNames.chart);\n // Create groups for labels, grid and series\n var gridGroup = this.svg.elem('g').addClass(options.classNames.gridGroup);\n var seriesGroup = this.svg.elem('g');\n var labelGroup = this.svg.elem('g').addClass(options.classNames.labelGroup);\n\n var chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding);\n var axisX, axisY;\n\n if(options.axisX.type === undefined) {\n axisX = new Chartist.StepAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, {\n ticks: data.normalized.labels,\n stretch: options.fullWidth\n }));\n } else {\n axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, options.axisX);\n }\n\n if(options.axisY.type === undefined) {\n axisY = new Chartist.AutoScaleAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, {\n high: Chartist.isNumeric(options.high) ? options.high : options.axisY.high,\n low: Chartist.isNumeric(options.low) ? options.low : options.axisY.low\n }));\n } else {\n axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, options.axisY);\n }\n\n axisX.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n axisY.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n\n if (options.showGridBackground) {\n Chartist.createGridBackground(gridGroup, chartRect, options.classNames.gridBackground, this.eventEmitter);\n }\n\n // Draw the series\n data.raw.series.forEach(function(series, seriesIndex) {\n var seriesElement = seriesGroup.elem('g');\n\n // Write attributes to series group element. If series name or meta is undefined the attributes will not be written\n seriesElement.attr({\n 'ct:series-name': series.name,\n 'ct:meta': Chartist.serialize(series.meta)\n });\n\n // Use series class from series data or if not set generate one\n seriesElement.addClass([\n options.classNames.series,\n (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(seriesIndex))\n ].join(' '));\n\n var pathCoordinates = [],\n pathData = [];\n\n data.normalized.series[seriesIndex].forEach(function(value, valueIndex) {\n var p = {\n x: chartRect.x1 + axisX.projectValue(value, valueIndex, data.normalized.series[seriesIndex]),\n y: chartRect.y1 - axisY.projectValue(value, valueIndex, data.normalized.series[seriesIndex])\n };\n pathCoordinates.push(p.x, p.y);\n pathData.push({\n value: value,\n valueIndex: valueIndex,\n meta: Chartist.getMetaData(series, valueIndex)\n });\n }.bind(this));\n\n var seriesOptions = {\n lineSmooth: Chartist.getSeriesOption(series, options, 'lineSmooth'),\n showPoint: Chartist.getSeriesOption(series, options, 'showPoint'),\n showLine: Chartist.getSeriesOption(series, options, 'showLine'),\n showArea: Chartist.getSeriesOption(series, options, 'showArea'),\n areaBase: Chartist.getSeriesOption(series, options, 'areaBase')\n };\n\n var smoothing = typeof seriesOptions.lineSmooth === 'function' ?\n seriesOptions.lineSmooth : (seriesOptions.lineSmooth ? Chartist.Interpolation.monotoneCubic() : Chartist.Interpolation.none());\n // Interpolating path where pathData will be used to annotate each path element so we can trace back the original\n // index, value and meta data\n var path = smoothing(pathCoordinates, pathData);\n\n // If we should show points we need to create them now to avoid secondary loop\n // Points are drawn from the pathElements returned by the interpolation function\n // Small offset for Firefox to render squares correctly\n if (seriesOptions.showPoint) {\n\n path.pathElements.forEach(function(pathElement) {\n var point = seriesElement.elem('line', {\n x1: pathElement.x,\n y1: pathElement.y,\n x2: pathElement.x + 0.01,\n y2: pathElement.y\n }, options.classNames.point).attr({\n 'ct:value': [pathElement.data.value.x, pathElement.data.value.y].filter(Chartist.isNumeric).join(','),\n 'ct:meta': Chartist.serialize(pathElement.data.meta)\n });\n\n this.eventEmitter.emit('draw', {\n type: 'point',\n value: pathElement.data.value,\n index: pathElement.data.valueIndex,\n meta: pathElement.data.meta,\n series: series,\n seriesIndex: seriesIndex,\n axisX: axisX,\n axisY: axisY,\n group: seriesElement,\n element: point,\n x: pathElement.x,\n y: pathElement.y\n });\n }.bind(this));\n }\n\n if(seriesOptions.showLine) {\n var line = seriesElement.elem('path', {\n d: path.stringify()\n }, options.classNames.line, true);\n\n this.eventEmitter.emit('draw', {\n type: 'line',\n values: data.normalized.series[seriesIndex],\n path: path.clone(),\n chartRect: chartRect,\n index: seriesIndex,\n series: series,\n seriesIndex: seriesIndex,\n seriesMeta: series.meta,\n axisX: axisX,\n axisY: axisY,\n group: seriesElement,\n element: line\n });\n }\n\n // Area currently only works with axes that support a range!\n if(seriesOptions.showArea && axisY.range) {\n // If areaBase is outside the chart area (< min or > max) we need to set it respectively so that\n // the area is not drawn outside the chart area.\n var areaBase = Math.max(Math.min(seriesOptions.areaBase, axisY.range.max), axisY.range.min);\n\n // We project the areaBase value into screen coordinates\n var areaBaseProjected = chartRect.y1 - axisY.projectValue(areaBase);\n\n // In order to form the area we'll first split the path by move commands so we can chunk it up into segments\n path.splitByCommand('M').filter(function onlySolidSegments(pathSegment) {\n // We filter only \"solid\" segments that contain more than one point. Otherwise there's no need for an area\n return pathSegment.pathElements.length > 1;\n }).map(function convertToArea(solidPathSegments) {\n // Receiving the filtered solid path segments we can now convert those segments into fill areas\n var firstElement = solidPathSegments.pathElements[0];\n var lastElement = solidPathSegments.pathElements[solidPathSegments.pathElements.length - 1];\n\n // Cloning the solid path segment with closing option and removing the first move command from the clone\n // We then insert a new move that should start at the area base and draw a straight line up or down\n // at the end of the path we add an additional straight line to the projected area base value\n // As the closing option is set our path will be automatically closed\n return solidPathSegments.clone(true)\n .position(0)\n .remove(1)\n .move(firstElement.x, areaBaseProjected)\n .line(firstElement.x, firstElement.y)\n .position(solidPathSegments.pathElements.length + 1)\n .line(lastElement.x, areaBaseProjected);\n\n }).forEach(function createArea(areaPath) {\n // For each of our newly created area paths, we'll now create path elements by stringifying our path objects\n // and adding the created DOM elements to the correct series group\n var area = seriesElement.elem('path', {\n d: areaPath.stringify()\n }, options.classNames.area, true);\n\n // Emit an event for each area that was drawn\n this.eventEmitter.emit('draw', {\n type: 'area',\n values: data.normalized.series[seriesIndex],\n path: areaPath.clone(),\n series: series,\n seriesIndex: seriesIndex,\n axisX: axisX,\n axisY: axisY,\n chartRect: chartRect,\n index: seriesIndex,\n group: seriesElement,\n element: area\n });\n }.bind(this));\n }\n }.bind(this));\n\n this.eventEmitter.emit('created', {\n bounds: axisY.bounds,\n chartRect: chartRect,\n axisX: axisX,\n axisY: axisY,\n svg: this.svg,\n options: options\n });\n }\n\n /**\n * This method creates a new line chart.\n *\n * @memberof Chartist.Line\n * @param {String|Node} query A selector query string or directly a DOM element\n * @param {Object} data The data object that needs to consist of a labels and a series array\n * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list.\n * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]\n * @return {Object} An object which exposes the API for the created chart\n *\n * @example\n * // Create a simple line chart\n * var data = {\n * // A labels array that can contain any sort of values\n * labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],\n * // Our series array that contains series objects or in this case series data arrays\n * series: [\n * [5, 2, 4, 2, 0]\n * ]\n * };\n *\n * // As options we currently only set a static size of 300x200 px\n * var options = {\n * width: '300px',\n * height: '200px'\n * };\n *\n * // In the global name space Chartist we call the Line function to initialize a line chart. As a first parameter we pass in a selector where we would like to get our chart created. Second parameter is the actual data object and as a third parameter we pass in our options\n * new Chartist.Line('.ct-chart', data, options);\n *\n * @example\n * // Use specific interpolation function with configuration from the Chartist.Interpolation module\n *\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [\n * [1, 1, 8, 1, 7]\n * ]\n * }, {\n * lineSmooth: Chartist.Interpolation.cardinal({\n * tension: 0.2\n * })\n * });\n *\n * @example\n * // Create a line chart with responsive options\n *\n * var data = {\n * // A labels array that can contain any sort of values\n * labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],\n * // Our series array that contains series objects or in this case series data arrays\n * series: [\n * [5, 2, 4, 2, 0]\n * ]\n * };\n *\n * // In addition to the regular options we specify responsive option overrides that will override the default configutation based on the matching media queries.\n * var responsiveOptions = [\n * ['screen and (min-width: 641px) and (max-width: 1024px)', {\n * showPoint: false,\n * axisX: {\n * labelInterpolationFnc: function(value) {\n * // Will return Mon, Tue, Wed etc. on medium screens\n * return value.slice(0, 3);\n * }\n * }\n * }],\n * ['screen and (max-width: 640px)', {\n * showLine: false,\n * axisX: {\n * labelInterpolationFnc: function(value) {\n * // Will return M, T, W etc. on small screens\n * return value[0];\n * }\n * }\n * }]\n * ];\n *\n * new Chartist.Line('.ct-chart', data, null, responsiveOptions);\n *\n */\n function Line(query, data, options, responsiveOptions) {\n Chartist.Line.super.constructor.call(this,\n query,\n data,\n defaultOptions,\n Chartist.extend({}, defaultOptions, options),\n responsiveOptions);\n }\n\n // Creating line chart type in Chartist namespace\n Chartist.Line = Chartist.Base.extend({\n constructor: Line,\n createChart: createChart\n });\n\n}(this || global, Chartist));\n;/**\n * The bar chart module of Chartist that can be used to draw unipolar or bipolar bar and grouped bar charts.\n *\n * @module Chartist.Bar\n */\n/* global Chartist */\n(function(globalRoot, Chartist){\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * Default options in bar charts. Expand the code view to see a detailed list of options with comments.\n *\n * @memberof Chartist.Bar\n */\n var defaultOptions = {\n // Options for X-Axis\n axisX: {\n // The offset of the chart drawing area to the border of the container\n offset: 30,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'end',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // This value specifies the minimum width in pixel of the scale steps\n scaleMinSpace: 30,\n // Use only integer values (whole numbers) for the scale steps\n onlyInteger: false\n },\n // Options for Y-Axis\n axisY: {\n // The offset of the chart drawing area to the border of the container\n offset: 40,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'start',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // This value specifies the minimum height in pixel of the scale steps\n scaleMinSpace: 20,\n // Use only integer values (whole numbers) for the scale steps\n onlyInteger: false\n },\n // Specify a fixed width for the chart as a string (i.e. '100px' or '50%')\n width: undefined,\n // Specify a fixed height for the chart as a string (i.e. '100px' or '50%')\n height: undefined,\n // Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value\n high: undefined,\n // Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value\n low: undefined,\n // Unless low/high are explicitly set, bar chart will be centered at zero by default. Set referenceValue to null to auto scale.\n referenceValue: 0,\n // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5}\n chartPadding: {\n top: 15,\n right: 15,\n bottom: 5,\n left: 10\n },\n // Specify the distance in pixel of bars in a group\n seriesBarDistance: 15,\n // If set to true this property will cause the series bars to be stacked. Check the `stackMode` option for further stacking options.\n stackBars: false,\n // If set to 'overlap' this property will force the stacked bars to draw from the zero line.\n // If set to 'accumulate' this property will form a total for each series point. This will also influence the y-axis and the overall bounds of the chart. In stacked mode the seriesBarDistance property will have no effect.\n stackMode: 'accumulate',\n // Inverts the axes of the bar chart in order to draw a horizontal bar chart. Be aware that you also need to invert your axis settings as the Y Axis will now display the labels and the X Axis the values.\n horizontalBars: false,\n // If set to true then each bar will represent a series and the data array is expected to be a one dimensional array of data values rather than a series array of series. This is useful if the bar chart should represent a profile rather than some data over time.\n distributeSeries: false,\n // If true the whole data is reversed including labels, the series order as well as the whole series data arrays.\n reverseData: false,\n // If the bar chart should add a background fill to the .ct-grids group.\n showGridBackground: false,\n // Override the class names that get used to generate the SVG structure of the chart\n classNames: {\n chart: 'ct-chart-bar',\n horizontalBars: 'ct-horizontal-bars',\n label: 'ct-label',\n labelGroup: 'ct-labels',\n series: 'ct-series',\n bar: 'ct-bar',\n grid: 'ct-grid',\n gridGroup: 'ct-grids',\n gridBackground: 'ct-grid-background',\n vertical: 'ct-vertical',\n horizontal: 'ct-horizontal',\n start: 'ct-start',\n end: 'ct-end'\n }\n };\n\n /**\n * Creates a new chart\n *\n */\n function createChart(options) {\n var data;\n var highLow;\n\n if(options.distributeSeries) {\n data = Chartist.normalizeData(this.data, options.reverseData, options.horizontalBars ? 'x' : 'y');\n data.normalized.series = data.normalized.series.map(function(value) {\n return [value];\n });\n } else {\n data = Chartist.normalizeData(this.data, options.reverseData, options.horizontalBars ? 'x' : 'y');\n }\n\n // Create new svg element\n this.svg = Chartist.createSvg(\n this.container,\n options.width,\n options.height,\n options.classNames.chart + (options.horizontalBars ? ' ' + options.classNames.horizontalBars : '')\n );\n\n // Drawing groups in correct order\n var gridGroup = this.svg.elem('g').addClass(options.classNames.gridGroup);\n var seriesGroup = this.svg.elem('g');\n var labelGroup = this.svg.elem('g').addClass(options.classNames.labelGroup);\n\n if(options.stackBars && data.normalized.series.length !== 0) {\n\n // If stacked bars we need to calculate the high low from stacked values from each series\n var serialSums = Chartist.serialMap(data.normalized.series, function serialSums() {\n return Array.prototype.slice.call(arguments).map(function(value) {\n return value;\n }).reduce(function(prev, curr) {\n return {\n x: prev.x + (curr && curr.x) || 0,\n y: prev.y + (curr && curr.y) || 0\n };\n }, {x: 0, y: 0});\n });\n\n highLow = Chartist.getHighLow([serialSums], options, options.horizontalBars ? 'x' : 'y');\n\n } else {\n\n highLow = Chartist.getHighLow(data.normalized.series, options, options.horizontalBars ? 'x' : 'y');\n }\n\n // Overrides of high / low from settings\n highLow.high = +options.high || (options.high === 0 ? 0 : highLow.high);\n highLow.low = +options.low || (options.low === 0 ? 0 : highLow.low);\n\n var chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding);\n\n var valueAxis,\n labelAxisTicks,\n labelAxis,\n axisX,\n axisY;\n\n // We need to set step count based on some options combinations\n if(options.distributeSeries && options.stackBars) {\n // If distributed series are enabled and bars need to be stacked, we'll only have one bar and therefore should\n // use only the first label for the step axis\n labelAxisTicks = data.normalized.labels.slice(0, 1);\n } else {\n // If distributed series are enabled but stacked bars aren't, we should use the series labels\n // If we are drawing a regular bar chart with two dimensional series data, we just use the labels array\n // as the bars are normalized\n labelAxisTicks = data.normalized.labels;\n }\n\n // Set labelAxis and valueAxis based on the horizontalBars setting. This setting will flip the axes if necessary.\n if(options.horizontalBars) {\n if(options.axisX.type === undefined) {\n valueAxis = axisX = new Chartist.AutoScaleAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, {\n highLow: highLow,\n referenceValue: 0\n }));\n } else {\n valueAxis = axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, {\n highLow: highLow,\n referenceValue: 0\n }));\n }\n\n if(options.axisY.type === undefined) {\n labelAxis = axisY = new Chartist.StepAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, {\n ticks: labelAxisTicks\n });\n } else {\n labelAxis = axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, options.axisY);\n }\n } else {\n if(options.axisX.type === undefined) {\n labelAxis = axisX = new Chartist.StepAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, {\n ticks: labelAxisTicks\n });\n } else {\n labelAxis = axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, options.axisX);\n }\n\n if(options.axisY.type === undefined) {\n valueAxis = axisY = new Chartist.AutoScaleAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, {\n highLow: highLow,\n referenceValue: 0\n }));\n } else {\n valueAxis = axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, {\n highLow: highLow,\n referenceValue: 0\n }));\n }\n }\n\n // Projected 0 point\n var zeroPoint = options.horizontalBars ? (chartRect.x1 + valueAxis.projectValue(0)) : (chartRect.y1 - valueAxis.projectValue(0));\n // Used to track the screen coordinates of stacked bars\n var stackedBarValues = [];\n\n labelAxis.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n valueAxis.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n\n if (options.showGridBackground) {\n Chartist.createGridBackground(gridGroup, chartRect, options.classNames.gridBackground, this.eventEmitter);\n }\n\n // Draw the series\n data.raw.series.forEach(function(series, seriesIndex) {\n // Calculating bi-polar value of index for seriesOffset. For i = 0..4 biPol will be -1.5, -0.5, 0.5, 1.5 etc.\n var biPol = seriesIndex - (data.raw.series.length - 1) / 2;\n // Half of the period width between vertical grid lines used to position bars\n var periodHalfLength;\n // Current series SVG element\n var seriesElement;\n\n // We need to set periodHalfLength based on some options combinations\n if(options.distributeSeries && !options.stackBars) {\n // If distributed series are enabled but stacked bars aren't, we need to use the length of the normaizedData array\n // which is the series count and divide by 2\n periodHalfLength = labelAxis.axisLength / data.normalized.series.length / 2;\n } else if(options.distributeSeries && options.stackBars) {\n // If distributed series and stacked bars are enabled we'll only get one bar so we should just divide the axis\n // length by 2\n periodHalfLength = labelAxis.axisLength / 2;\n } else {\n // On regular bar charts we should just use the series length\n periodHalfLength = labelAxis.axisLength / data.normalized.series[seriesIndex].length / 2;\n }\n\n // Adding the series group to the series element\n seriesElement = seriesGroup.elem('g');\n\n // Write attributes to series group element. If series name or meta is undefined the attributes will not be written\n seriesElement.attr({\n 'ct:series-name': series.name,\n 'ct:meta': Chartist.serialize(series.meta)\n });\n\n // Use series class from series data or if not set generate one\n seriesElement.addClass([\n options.classNames.series,\n (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(seriesIndex))\n ].join(' '));\n\n data.normalized.series[seriesIndex].forEach(function(value, valueIndex) {\n var projected,\n bar,\n previousStack,\n labelAxisValueIndex;\n\n // We need to set labelAxisValueIndex based on some options combinations\n if(options.distributeSeries && !options.stackBars) {\n // If distributed series are enabled but stacked bars aren't, we can use the seriesIndex for later projection\n // on the step axis for label positioning\n labelAxisValueIndex = seriesIndex;\n } else if(options.distributeSeries && options.stackBars) {\n // If distributed series and stacked bars are enabled, we will only get one bar and therefore always use\n // 0 for projection on the label step axis\n labelAxisValueIndex = 0;\n } else {\n // On regular bar charts we just use the value index to project on the label step axis\n labelAxisValueIndex = valueIndex;\n }\n\n // We need to transform coordinates differently based on the chart layout\n if(options.horizontalBars) {\n projected = {\n x: chartRect.x1 + valueAxis.projectValue(value && value.x ? value.x : 0, valueIndex, data.normalized.series[seriesIndex]),\n y: chartRect.y1 - labelAxis.projectValue(value && value.y ? value.y : 0, labelAxisValueIndex, data.normalized.series[seriesIndex])\n };\n } else {\n projected = {\n x: chartRect.x1 + labelAxis.projectValue(value && value.x ? value.x : 0, labelAxisValueIndex, data.normalized.series[seriesIndex]),\n y: chartRect.y1 - valueAxis.projectValue(value && value.y ? value.y : 0, valueIndex, data.normalized.series[seriesIndex])\n }\n }\n\n // If the label axis is a step based axis we will offset the bar into the middle of between two steps using\n // the periodHalfLength value. Also we do arrange the different series so that they align up to each other using\n // the seriesBarDistance. If we don't have a step axis, the bar positions can be chosen freely so we should not\n // add any automated positioning.\n if(labelAxis instanceof Chartist.StepAxis) {\n // Offset to center bar between grid lines, but only if the step axis is not stretched\n if(!labelAxis.options.stretch) {\n projected[labelAxis.units.pos] += periodHalfLength * (options.horizontalBars ? -1 : 1);\n }\n // Using bi-polar offset for multiple series if no stacked bars or series distribution is used\n projected[labelAxis.units.pos] += (options.stackBars || options.distributeSeries) ? 0 : biPol * options.seriesBarDistance * (options.horizontalBars ? -1 : 1);\n }\n\n // Enter value in stacked bar values used to remember previous screen value for stacking up bars\n previousStack = stackedBarValues[valueIndex] || zeroPoint;\n stackedBarValues[valueIndex] = previousStack - (zeroPoint - projected[labelAxis.counterUnits.pos]);\n\n // Skip if value is undefined\n if(value === undefined) {\n return;\n }\n\n var positions = {};\n positions[labelAxis.units.pos + '1'] = projected[labelAxis.units.pos];\n positions[labelAxis.units.pos + '2'] = projected[labelAxis.units.pos];\n\n if(options.stackBars && (options.stackMode === 'accumulate' || !options.stackMode)) {\n // Stack mode: accumulate (default)\n // If bars are stacked we use the stackedBarValues reference and otherwise base all bars off the zero line\n // We want backwards compatibility, so the expected fallback without the 'stackMode' option\n // to be the original behaviour (accumulate)\n positions[labelAxis.counterUnits.pos + '1'] = previousStack;\n positions[labelAxis.counterUnits.pos + '2'] = stackedBarValues[valueIndex];\n } else {\n // Draw from the zero line normally\n // This is also the same code for Stack mode: overlap\n positions[labelAxis.counterUnits.pos + '1'] = zeroPoint;\n positions[labelAxis.counterUnits.pos + '2'] = projected[labelAxis.counterUnits.pos];\n }\n\n // Limit x and y so that they are within the chart rect\n positions.x1 = Math.min(Math.max(positions.x1, chartRect.x1), chartRect.x2);\n positions.x2 = Math.min(Math.max(positions.x2, chartRect.x1), chartRect.x2);\n positions.y1 = Math.min(Math.max(positions.y1, chartRect.y2), chartRect.y1);\n positions.y2 = Math.min(Math.max(positions.y2, chartRect.y2), chartRect.y1);\n\n var metaData = Chartist.getMetaData(series, valueIndex);\n\n // Create bar element\n bar = seriesElement.elem('line', positions, options.classNames.bar).attr({\n 'ct:value': [value.x, value.y].filter(Chartist.isNumeric).join(','),\n 'ct:meta': Chartist.serialize(metaData)\n });\n\n this.eventEmitter.emit('draw', Chartist.extend({\n type: 'bar',\n value: value,\n index: valueIndex,\n meta: metaData,\n series: series,\n seriesIndex: seriesIndex,\n axisX: axisX,\n axisY: axisY,\n chartRect: chartRect,\n group: seriesElement,\n element: bar\n }, positions));\n }.bind(this));\n }.bind(this));\n\n this.eventEmitter.emit('created', {\n bounds: valueAxis.bounds,\n chartRect: chartRect,\n axisX: axisX,\n axisY: axisY,\n svg: this.svg,\n options: options\n });\n }\n\n /**\n * This method creates a new bar chart and returns API object that you can use for later changes.\n *\n * @memberof Chartist.Bar\n * @param {String|Node} query A selector query string or directly a DOM element\n * @param {Object} data The data object that needs to consist of a labels and a series array\n * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list.\n * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]\n * @return {Object} An object which exposes the API for the created chart\n *\n * @example\n * // Create a simple bar chart\n * var data = {\n * labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],\n * series: [\n * [5, 2, 4, 2, 0]\n * ]\n * };\n *\n * // In the global name space Chartist we call the Bar function to initialize a bar chart. As a first parameter we pass in a selector where we would like to get our chart created and as a second parameter we pass our data object.\n * new Chartist.Bar('.ct-chart', data);\n *\n * @example\n * // This example creates a bipolar grouped bar chart where the boundaries are limitted to -10 and 10\n * new Chartist.Bar('.ct-chart', {\n * labels: [1, 2, 3, 4, 5, 6, 7],\n * series: [\n * [1, 3, 2, -5, -3, 1, -6],\n * [-5, -2, -4, -1, 2, -3, 1]\n * ]\n * }, {\n * seriesBarDistance: 12,\n * low: -10,\n * high: 10\n * });\n *\n */\n function Bar(query, data, options, responsiveOptions) {\n Chartist.Bar.super.constructor.call(this,\n query,\n data,\n defaultOptions,\n Chartist.extend({}, defaultOptions, options),\n responsiveOptions);\n }\n\n // Creating bar chart type in Chartist namespace\n Chartist.Bar = Chartist.Base.extend({\n constructor: Bar,\n createChart: createChart\n });\n\n}(this || global, Chartist));\n;/**\n * The pie chart module of Chartist that can be used to draw pie, donut or gauge charts\n *\n * @module Chartist.Pie\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * Default options in line charts. Expand the code view to see a detailed list of options with comments.\n *\n * @memberof Chartist.Pie\n */\n var defaultOptions = {\n // Specify a fixed width for the chart as a string (i.e. '100px' or '50%')\n width: undefined,\n // Specify a fixed height for the chart as a string (i.e. '100px' or '50%')\n height: undefined,\n // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5}\n chartPadding: 5,\n // Override the class names that are used to generate the SVG structure of the chart\n classNames: {\n chartPie: 'ct-chart-pie',\n chartDonut: 'ct-chart-donut',\n series: 'ct-series',\n slicePie: 'ct-slice-pie',\n sliceDonut: 'ct-slice-donut',\n sliceDonutSolid: 'ct-slice-donut-solid',\n label: 'ct-label'\n },\n // The start angle of the pie chart in degrees where 0 points north. A higher value offsets the start angle clockwise.\n startAngle: 0,\n // An optional total you can specify. By specifying a total value, the sum of the values in the series must be this total in order to draw a full pie. You can use this parameter to draw only parts of a pie or gauge charts.\n total: undefined,\n // If specified the donut CSS classes will be used and strokes will be drawn instead of pie slices.\n donut: false,\n // If specified the donut segments will be drawn as shapes instead of strokes.\n donutSolid: false,\n // Specify the donut stroke width, currently done in javascript for convenience. May move to CSS styles in the future.\n // This option can be set as number or string to specify a relative width (i.e. 100 or '30%').\n donutWidth: 60,\n // If a label should be shown or not\n showLabel: true,\n // Label position offset from the standard position which is half distance of the radius. This value can be either positive or negative. Positive values will position the label away from the center.\n labelOffset: 0,\n // This option can be set to 'inside', 'outside' or 'center'. Positioned with 'inside' the labels will be placed on half the distance of the radius to the border of the Pie by respecting the 'labelOffset'. The 'outside' option will place the labels at the border of the pie and 'center' will place the labels in the absolute center point of the chart. The 'center' option only makes sense in conjunction with the 'labelOffset' option.\n labelPosition: 'inside',\n // An interpolation function for the label value\n labelInterpolationFnc: Chartist.noop,\n // Label direction can be 'neutral', 'explode' or 'implode'. The labels anchor will be positioned based on those settings as well as the fact if the labels are on the right or left side of the center of the chart. Usually explode is useful when labels are positioned far away from the center.\n labelDirection: 'neutral',\n // If true the whole data is reversed including labels, the series order as well as the whole series data arrays.\n reverseData: false,\n // If true empty values will be ignored to avoid drawing unncessary slices and labels\n ignoreEmptyValues: false\n };\n\n /**\n * Determines SVG anchor position based on direction and center parameter\n *\n * @param center\n * @param label\n * @param direction\n * @return {string}\n */\n function determineAnchorPosition(center, label, direction) {\n var toTheRight = label.x > center.x;\n\n if(toTheRight && direction === 'explode' ||\n !toTheRight && direction === 'implode') {\n return 'start';\n } else if(toTheRight && direction === 'implode' ||\n !toTheRight && direction === 'explode') {\n return 'end';\n } else {\n return 'middle';\n }\n }\n\n /**\n * Creates the pie chart\n *\n * @param options\n */\n function createChart(options) {\n var data = Chartist.normalizeData(this.data);\n var seriesGroups = [],\n labelsGroup,\n chartRect,\n radius,\n labelRadius,\n totalDataSum,\n startAngle = options.startAngle;\n\n // Create SVG.js draw\n this.svg = Chartist.createSvg(this.container, options.width, options.height,options.donut ? options.classNames.chartDonut : options.classNames.chartPie);\n // Calculate charting rect\n chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding);\n // Get biggest circle radius possible within chartRect\n radius = Math.min(chartRect.width() / 2, chartRect.height() / 2);\n // Calculate total of all series to get reference value or use total reference from optional options\n totalDataSum = options.total || data.normalized.series.reduce(function(previousValue, currentValue) {\n return previousValue + currentValue;\n }, 0);\n\n var donutWidth = Chartist.quantity(options.donutWidth);\n if (donutWidth.unit === '%') {\n donutWidth.value *= radius / 100;\n }\n\n // If this is a donut chart we need to adjust our radius to enable strokes to be drawn inside\n // Unfortunately this is not possible with the current SVG Spec\n // See this proposal for more details: http://lists.w3.org/Archives/Public/www-svg/2003Oct/0000.html\n radius -= options.donut && !options.donutSolid ? donutWidth.value / 2 : 0;\n\n // If labelPosition is set to `outside` or a donut chart is drawn then the label position is at the radius,\n // if regular pie chart it's half of the radius\n if(options.labelPosition === 'outside' || options.donut && !options.donutSolid) {\n labelRadius = radius;\n } else if(options.labelPosition === 'center') {\n // If labelPosition is center we start with 0 and will later wait for the labelOffset\n labelRadius = 0;\n } else if(options.donutSolid) {\n labelRadius = radius - donutWidth.value / 2;\n } else {\n // Default option is 'inside' where we use half the radius so the label will be placed in the center of the pie\n // slice\n labelRadius = radius / 2;\n }\n // Add the offset to the labelRadius where a negative offset means closed to the center of the chart\n labelRadius += options.labelOffset;\n\n // Calculate end angle based on total sum and current data value and offset with padding\n var center = {\n x: chartRect.x1 + chartRect.width() / 2,\n y: chartRect.y2 + chartRect.height() / 2\n };\n\n // Check if there is only one non-zero value in the series array.\n var hasSingleValInSeries = data.raw.series.filter(function(val) {\n return val.hasOwnProperty('value') ? val.value !== 0 : val !== 0;\n }).length === 1;\n\n // Creating the series groups\n data.raw.series.forEach(function(series, index) {\n seriesGroups[index] = this.svg.elem('g', null, null);\n }.bind(this));\n //if we need to show labels we create the label group now\n if(options.showLabel) {\n labelsGroup = this.svg.elem('g', null, null);\n }\n\n // Draw the series\n // initialize series groups\n data.raw.series.forEach(function(series, index) {\n // If current value is zero and we are ignoring empty values then skip to next value\n if (data.normalized.series[index] === 0 && options.ignoreEmptyValues) return;\n\n // If the series is an object and contains a name or meta data we add a custom attribute\n seriesGroups[index].attr({\n 'ct:series-name': series.name\n });\n\n // Use series class from series data or if not set generate one\n seriesGroups[index].addClass([\n options.classNames.series,\n (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(index))\n ].join(' '));\n\n // If the whole dataset is 0 endAngle should be zero. Can't divide by 0.\n var endAngle = (totalDataSum > 0 ? startAngle + data.normalized.series[index] / totalDataSum * 360 : 0);\n\n // Use slight offset so there are no transparent hairline issues\n var overlappigStartAngle = Math.max(0, startAngle - (index === 0 || hasSingleValInSeries ? 0 : 0.2));\n\n // If we need to draw the arc for all 360 degrees we need to add a hack where we close the circle\n // with Z and use 359.99 degrees\n if(endAngle - overlappigStartAngle >= 359.99) {\n endAngle = overlappigStartAngle + 359.99;\n }\n\n var start = Chartist.polarToCartesian(center.x, center.y, radius, overlappigStartAngle),\n end = Chartist.polarToCartesian(center.x, center.y, radius, endAngle);\n\n var innerStart,\n innerEnd,\n donutSolidRadius;\n\n // Create a new path element for the pie chart. If this isn't a donut chart we should close the path for a correct stroke\n var path = new Chartist.Svg.Path(!options.donut || options.donutSolid)\n .move(end.x, end.y)\n .arc(radius, radius, 0, endAngle - startAngle > 180, 0, start.x, start.y);\n\n // If regular pie chart (no donut) we add a line to the center of the circle for completing the pie\n if(!options.donut) {\n path.line(center.x, center.y);\n } else if (options.donutSolid) {\n donutSolidRadius = radius - donutWidth.value;\n innerStart = Chartist.polarToCartesian(center.x, center.y, donutSolidRadius, startAngle - (index === 0 || hasSingleValInSeries ? 0 : 0.2));\n innerEnd = Chartist.polarToCartesian(center.x, center.y, donutSolidRadius, endAngle);\n path.line(innerStart.x, innerStart.y);\n path.arc(donutSolidRadius, donutSolidRadius, 0, endAngle - startAngle > 180, 1, innerEnd.x, innerEnd.y);\n }\n\n // Create the SVG path\n // If this is a donut chart we add the donut class, otherwise just a regular slice\n var pathClassName = options.classNames.slicePie;\n if (options.donut) {\n pathClassName = options.classNames.sliceDonut;\n if (options.donutSolid) {\n pathClassName = options.classNames.sliceDonutSolid;\n }\n }\n var pathElement = seriesGroups[index].elem('path', {\n d: path.stringify()\n }, pathClassName);\n\n // Adding the pie series value to the path\n pathElement.attr({\n 'ct:value': data.normalized.series[index],\n 'ct:meta': Chartist.serialize(series.meta)\n });\n\n // If this is a donut, we add the stroke-width as style attribute\n if(options.donut && !options.donutSolid) {\n pathElement._node.style.strokeWidth = donutWidth.value + 'px';\n }\n\n // Fire off draw event\n this.eventEmitter.emit('draw', {\n type: 'slice',\n value: data.normalized.series[index],\n totalDataSum: totalDataSum,\n index: index,\n meta: series.meta,\n series: series,\n group: seriesGroups[index],\n element: pathElement,\n path: path.clone(),\n center: center,\n radius: radius,\n startAngle: startAngle,\n endAngle: endAngle\n });\n\n // If we need to show labels we need to add the label for this slice now\n if(options.showLabel) {\n var labelPosition;\n if(data.raw.series.length === 1) {\n // If we have only 1 series, we can position the label in the center of the pie\n labelPosition = {\n x: center.x,\n y: center.y\n };\n } else {\n // Position at the labelRadius distance from center and between start and end angle\n labelPosition = Chartist.polarToCartesian(\n center.x,\n center.y,\n labelRadius,\n startAngle + (endAngle - startAngle) / 2\n );\n }\n\n var rawValue;\n if(data.normalized.labels && !Chartist.isFalseyButZero(data.normalized.labels[index])) {\n rawValue = data.normalized.labels[index];\n } else {\n rawValue = data.normalized.series[index];\n }\n\n var interpolatedValue = options.labelInterpolationFnc(rawValue, index);\n\n if(interpolatedValue || interpolatedValue === 0) {\n var labelElement = labelsGroup.elem('text', {\n dx: labelPosition.x,\n dy: labelPosition.y,\n 'text-anchor': determineAnchorPosition(center, labelPosition, options.labelDirection)\n }, options.classNames.label).text('' + interpolatedValue);\n\n // Fire off draw event\n this.eventEmitter.emit('draw', {\n type: 'label',\n index: index,\n group: labelsGroup,\n element: labelElement,\n text: '' + interpolatedValue,\n x: labelPosition.x,\n y: labelPosition.y\n });\n }\n }\n\n // Set next startAngle to current endAngle.\n // (except for last slice)\n startAngle = endAngle;\n }.bind(this));\n\n this.eventEmitter.emit('created', {\n chartRect: chartRect,\n svg: this.svg,\n options: options\n });\n }\n\n /**\n * This method creates a new pie chart and returns an object that can be used to redraw the chart.\n *\n * @memberof Chartist.Pie\n * @param {String|Node} query A selector query string or directly a DOM element\n * @param {Object} data The data object in the pie chart needs to have a series property with a one dimensional data array. The values will be normalized against each other and don't necessarily need to be in percentage. The series property can also be an array of value objects that contain a value property and a className property to override the CSS class name for the series group.\n * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list.\n * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]\n * @return {Object} An object with a version and an update method to manually redraw the chart\n *\n * @example\n * // Simple pie chart example with four series\n * new Chartist.Pie('.ct-chart', {\n * series: [10, 2, 4, 3]\n * });\n *\n * @example\n * // Drawing a donut chart\n * new Chartist.Pie('.ct-chart', {\n * series: [10, 2, 4, 3]\n * }, {\n * donut: true\n * });\n *\n * @example\n * // Using donut, startAngle and total to draw a gauge chart\n * new Chartist.Pie('.ct-chart', {\n * series: [20, 10, 30, 40]\n * }, {\n * donut: true,\n * donutWidth: 20,\n * startAngle: 270,\n * total: 200\n * });\n *\n * @example\n * // Drawing a pie chart with padding and labels that are outside the pie\n * new Chartist.Pie('.ct-chart', {\n * series: [20, 10, 30, 40]\n * }, {\n * chartPadding: 30,\n * labelOffset: 50,\n * labelDirection: 'explode'\n * });\n *\n * @example\n * // Overriding the class names for individual series as well as a name and meta data.\n * // The name will be written as ct:series-name attribute and the meta data will be serialized and written\n * // to a ct:meta attribute.\n * new Chartist.Pie('.ct-chart', {\n * series: [{\n * value: 20,\n * name: 'Series 1',\n * className: 'my-custom-class-one',\n * meta: 'Meta One'\n * }, {\n * value: 10,\n * name: 'Series 2',\n * className: 'my-custom-class-two',\n * meta: 'Meta Two'\n * }, {\n * value: 70,\n * name: 'Series 3',\n * className: 'my-custom-class-three',\n * meta: 'Meta Three'\n * }]\n * });\n */\n function Pie(query, data, options, responsiveOptions) {\n Chartist.Pie.super.constructor.call(this,\n query,\n data,\n defaultOptions,\n Chartist.extend({}, defaultOptions, options),\n responsiveOptions);\n }\n\n // Creating pie chart type in Chartist namespace\n Chartist.Pie = Chartist.Base.extend({\n constructor: Pie,\n createChart: createChart,\n determineAnchorPosition: determineAnchorPosition\n });\n\n}(this || global, Chartist));\n\nreturn Chartist;\n\n}));\n\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ \"./node_modules/webpack/buildin/global.js\")))\n\n//# sourceURL=webpack://tooltipHandler/./node_modules/chartist/dist/chartist.js?"); + +/***/ }), + +/***/ "./node_modules/webpack/buildin/global.js": +/*!***********************************!*\ + !*** (webpack)/buildin/global.js ***! + \***********************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +eval("var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n\n\n//# sourceURL=webpack://tooltipHandler/(webpack)/buildin/global.js?"); + +/***/ }), + +/***/ "./src/tooltipHandler.js": +/*!*******************************!*\ + !*** ./src/tooltipHandler.js ***! + \*******************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return TooltipHandler; });\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar Chartist = __webpack_require__(/*! chartist */ \"./node_modules/chartist/dist/chartist.js\");\n\nvar TooltipHandler = function () {\n function TooltipHandler(mxcell) {\n _classCallCheck(this, TooltipHandler);\n\n this.defaultColor = '#8c8980';\n this.timeFormat = 'YYYY-MM-DD HH:mm:ss';\n this.mxcell = mxcell;\n this.checked = false;\n this.metrics = [];\n this.lineOptions = {\n showPoint: false,\n showLine: true,\n showArea: true,\n fullWidth: true,\n showLabel: false,\n axisX: {\n showGrid: false,\n showLabel: false,\n offset: 0\n },\n axisY: {\n showGrid: false,\n showLabel: false,\n offset: 0\n },\n chartPadding: 0\n };\n }\n\n _createClass(TooltipHandler, [{\n key: \"isChecked\",\n value: function isChecked() {\n return this.checked;\n }\n }, {\n key: \"addMetric\",\n value: function addMetric(name, label, value, color, direction) {\n var metric = this.findTooltipValue(name);\n this.checked = true;\n var found = metric != null ? true : false;\n\n if (!found) {\n metric = {\n graphOptions: {}\n };\n }\n\n metric.name = name;\n metric.label = label;\n metric.value = value;\n metric.color = color != null ? color : this.defaultColor;\n metric.direction = direction;\n if (!found) this.metrics.push(metric);\n }\n }, {\n key: \"addGraph\",\n value: function addGraph(name, type, size, serie) {\n var metric = this.findTooltipValue(name);\n var found = metric != null ? true : false;\n\n if (!found) {\n metric = {\n graphOptions: {}\n };\n }\n\n metric.name = name;\n metric.graph = true;\n metric.graphOptions.type = type;\n metric.graphOptions.size = size;\n metric.graphOptions.serie = serie;\n if (!found) this.metrics.push(metric);\n }\n }, {\n key: \"updateDate\",\n value: function updateDate() {\n var current_datetime = new Date();\n this.lastChange = current_datetime.getFullYear() + '-' + (current_datetime.getMonth() + 1) + '-' + current_datetime.getDate() + ' ' + current_datetime.getHours() + ':' + current_datetime.getMinutes() + ':' + current_datetime.getSeconds();\n }\n }, {\n key: \"findTooltipValue\",\n value: function findTooltipValue(name) {\n for (var index = 0; index < this.metrics.length; index += 1) {\n var metric = this.metrics[index];\n if (metric.name === name) return metric;\n }\n\n return null;\n }\n }, {\n key: \"destroy\",\n value: function destroy() {\n if (this.mxcell.GF_tooltipHandler) delete this.mxcell.GF_tooltipHandler;\n }\n }, {\n key: \"getTooltipDiv\",\n value: function getTooltipDiv(parentDiv) {\n if (!this.checked) return null;\n this.div = document.createElement('div');\n var div = this.div;\n div.id = this.mxcell.mxObjectId + '_GLOBAL';\n if (parentDiv != undefined) parentDiv.appendChild(div);\n\n if (this.metrics.length > 0) {\n this.getDateDiv(div);\n var metricsDiv = document.createElement('div');\n div.appendChild(metricsDiv);\n\n for (var index = 0; index < this.metrics.length; index++) {\n var metric = this.metrics[index];\n\n if (metric.div) {\n metricsDiv.appendChild(metric.div);\n return metric.div;\n }\n\n var metricDiv = document.createElement('div');\n metricDiv.className = 'tooltip-metric';\n metric.div = metricsDiv;\n metricsDiv.appendChild(metricDiv);\n if (metric.direction != null && metric.direction === 'h') metricDiv.style = 'display:inline-block;*display:inline;*zoom:1';\n this.getMetricDiv(metric, metricDiv);\n this.getChartDiv(metric, metricDiv);\n }\n }\n\n return div;\n }\n }, {\n key: \"getDateDiv\",\n value: function getDateDiv(parentDiv) {\n var div = document.createElement('div');\n div.id = this.mxcell.mxObjectId + '_DATE';\n if (parentDiv != undefined) parentDiv.appendChild(div);\n div.className = 'graph-tooltip-time tooltip-date';\n div.innerHTML = \"\".concat(this.lastChange);\n return div;\n }\n }, {\n key: \"getMetricDiv\",\n value: function getMetricDiv(metric, parentDiv) {\n u.log(1, \"TooltipHandler[\".concat(this.mxcell.mxObjectId, \"].getMetricDiv()\"));\n u.log(0, \"TooltipHandler[\".concat(this.mxcell.mxObjectId, \"].getMetricDiv() metric\"), metric);\n var div = document.createElement('div');\n div.id = this.mxcell.mxObjectId + '_METRIC_' + metric.name;\n var string = '';\n if (parentDiv != undefined) parentDiv.appendChild(div);\n\n if (metric !== undefined) {\n string += \"\".concat(metric.label, \" : \");\n string += \"\").concat(metric.value, \"\");\n }\n\n div.innerHTML = string;\n return div;\n }\n }, {\n key: \"getChartDiv\",\n value: function getChartDiv(metric, parentDiv) {\n var div = document.createElement('div');\n div.className = 'tooltip-graph';\n if (parentDiv != undefined) parentDiv.appendChild(div);\n\n if (metric.graph) {\n if (metric.graphOptions.type === 'line') this.getLineChartDiv(metric, div);\n }\n\n return div;\n }\n }, {\n key: \"getLineChartDiv\",\n value: function getLineChartDiv(metric, parentDiv) {\n var serie = metric.graphOptions.serie;\n var coor = TooltipHandler.array2Coor(serie.flotpairs);\n var div = document.createElement('div');\n if (parentDiv != undefined) parentDiv.appendChild(div);\n var color = metric.color;\n div.className = 'ct-chart ct-golden-section';\n if (metric.graphOptions.size != null) div.style = \"width:\".concat(metric.graphOptions.size, \";\");\n var data = {\n series: [coor]\n };\n var chart = new Chartist.Line(div, data, this.lineOptions);\n metric.graphOptions.chart = chart;\n chart.on('draw', function (data) {\n u.log(0, 'Chartis.on() data ', data);\n\n if (data.type === 'line' || data.type === 'area') {\n if (data.type === 'line') data.element.attr({\n style: \"stroke: \".concat(color)\n });\n if (data.type === 'area') data.element.attr({\n style: \"fill: \".concat(color)\n });\n data.element.animate({\n d: {\n begin: 1000 * data.index,\n dur: 1000,\n from: data.path.clone().scale(1, 0).translate(0, data.chartRect.height()).stringify(),\n to: data.path.clone().stringify(),\n easing: Chartist.Svg.Easing.easeOutQuint\n }\n });\n }\n });\n return div;\n }\n }], [{\n key: \"array2Coor\",\n value: function array2Coor(arr) {\n var result = [];\n\n for (var index = 0; index < arr.length; index++) {\n result.push({\n x: arr[index][0],\n y: arr[index][1]\n });\n }\n\n return result;\n }\n }]);\n\n return TooltipHandler;\n}();\n\n\n\n//# sourceURL=webpack://tooltipHandler/./src/tooltipHandler.js?"); + +/***/ }) + +/******/ }); +}); \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/dist/utils.js b/data/plugins/grafana-flowcharting/dist/utils.js new file mode 100644 index 0000000000000..f57cc231fc734 --- /dev/null +++ b/data/plugins/grafana-flowcharting/dist/utils.js @@ -0,0 +1,314 @@ +(function webpackUniversalModuleDefinition(root, factory) { + if(typeof exports === 'object' && typeof module === 'object') + module.exports = factory(); + else if(typeof define === 'function' && define.amd) + define([], factory); + else if(typeof exports === 'object') + exports["utils"] = factory(); + else + root["utils"] = factory(); +})(window, function() { +return /******/ (function(modules) { // webpackBootstrap +/******/ // The module cache +/******/ var installedModules = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ +/******/ // Check if module is in cache +/******/ if(installedModules[moduleId]) { +/******/ return installedModules[moduleId].exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = installedModules[moduleId] = { +/******/ i: moduleId, +/******/ l: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Flag the module as loaded +/******/ module.l = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/******/ +/******/ // expose the modules object (__webpack_modules__) +/******/ __webpack_require__.m = modules; +/******/ +/******/ // expose the module cache +/******/ __webpack_require__.c = installedModules; +/******/ +/******/ // define getter function for harmony exports +/******/ __webpack_require__.d = function(exports, name, getter) { +/******/ if(!__webpack_require__.o(exports, name)) { +/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); +/******/ } +/******/ }; +/******/ +/******/ // define __esModule on exports +/******/ __webpack_require__.r = function(exports) { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ +/******/ // create a fake namespace object +/******/ // mode & 1: value is a module id, require it +/******/ // mode & 2: merge all properties of value into the ns +/******/ // mode & 4: return value when already ns object +/******/ // mode & 8|1: behave like require +/******/ __webpack_require__.t = function(value, mode) { +/******/ if(mode & 1) value = __webpack_require__(value); +/******/ if(mode & 8) return value; +/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; +/******/ var ns = Object.create(null); +/******/ __webpack_require__.r(ns); +/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); +/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); +/******/ return ns; +/******/ }; +/******/ +/******/ // getDefaultExport function for compatibility with non-harmony modules +/******/ __webpack_require__.n = function(module) { +/******/ var getter = module && module.__esModule ? +/******/ function getDefault() { return module['default']; } : +/******/ function getModuleExports() { return module; }; +/******/ __webpack_require__.d(getter, 'a', getter); +/******/ return getter; +/******/ }; +/******/ +/******/ // Object.prototype.hasOwnProperty.call +/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; +/******/ +/******/ // __webpack_public_path__ +/******/ __webpack_require__.p = ""; +/******/ +/******/ +/******/ // Load entry module and return exports +/******/ return __webpack_require__(__webpack_require__.s = "./src/utils.js"); +/******/ }) +/************************************************************************/ +/******/ ({ + +/***/ "./node_modules/pako/index.js": +/*!************************************!*\ + !*** ./node_modules/pako/index.js ***! + \************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("// Top level file is just a mixin of submodules & constants\n\n\nvar assign = __webpack_require__(/*! ./lib/utils/common */ \"./node_modules/pako/lib/utils/common.js\").assign;\n\nvar deflate = __webpack_require__(/*! ./lib/deflate */ \"./node_modules/pako/lib/deflate.js\");\nvar inflate = __webpack_require__(/*! ./lib/inflate */ \"./node_modules/pako/lib/inflate.js\");\nvar constants = __webpack_require__(/*! ./lib/zlib/constants */ \"./node_modules/pako/lib/zlib/constants.js\");\n\nvar pako = {};\n\nassign(pako, deflate, inflate, constants);\n\nmodule.exports = pako;\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/index.js?"); + +/***/ }), + +/***/ "./node_modules/pako/lib/deflate.js": +/*!******************************************!*\ + !*** ./node_modules/pako/lib/deflate.js ***! + \******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\n\nvar zlib_deflate = __webpack_require__(/*! ./zlib/deflate */ \"./node_modules/pako/lib/zlib/deflate.js\");\nvar utils = __webpack_require__(/*! ./utils/common */ \"./node_modules/pako/lib/utils/common.js\");\nvar strings = __webpack_require__(/*! ./utils/strings */ \"./node_modules/pako/lib/utils/strings.js\");\nvar msg = __webpack_require__(/*! ./zlib/messages */ \"./node_modules/pako/lib/zlib/messages.js\");\nvar ZStream = __webpack_require__(/*! ./zlib/zstream */ \"./node_modules/pako/lib/zlib/zstream.js\");\n\nvar toString = Object.prototype.toString;\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\nvar Z_NO_FLUSH = 0;\nvar Z_FINISH = 4;\n\nvar Z_OK = 0;\nvar Z_STREAM_END = 1;\nvar Z_SYNC_FLUSH = 2;\n\nvar Z_DEFAULT_COMPRESSION = -1;\n\nvar Z_DEFAULT_STRATEGY = 0;\n\nvar Z_DEFLATED = 8;\n\n/* ===========================================================================*/\n\n\n/**\n * class Deflate\n *\n * Generic JS-style wrapper for zlib calls. If you don't need\n * streaming behaviour - use more simple functions: [[deflate]],\n * [[deflateRaw]] and [[gzip]].\n **/\n\n/* internal\n * Deflate.chunks -> Array\n *\n * Chunks of output data, if [[Deflate#onData]] not overridden.\n **/\n\n/**\n * Deflate.result -> Uint8Array|Array\n *\n * Compressed result, generated by default [[Deflate#onData]]\n * and [[Deflate#onEnd]] handlers. Filled after you push last chunk\n * (call [[Deflate#push]] with `Z_FINISH` / `true` param) or if you\n * push a chunk with explicit flush (call [[Deflate#push]] with\n * `Z_SYNC_FLUSH` param).\n **/\n\n/**\n * Deflate.err -> Number\n *\n * Error code after deflate finished. 0 (Z_OK) on success.\n * You will not need it in real life, because deflate errors\n * are possible only on wrong options or bad `onData` / `onEnd`\n * custom handlers.\n **/\n\n/**\n * Deflate.msg -> String\n *\n * Error message, if [[Deflate.err]] != 0\n **/\n\n\n/**\n * new Deflate(options)\n * - options (Object): zlib deflate options.\n *\n * Creates new deflator instance with specified params. Throws exception\n * on bad params. Supported options:\n *\n * - `level`\n * - `windowBits`\n * - `memLevel`\n * - `strategy`\n * - `dictionary`\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information on these.\n *\n * Additional options, for internal needs:\n *\n * - `chunkSize` - size of generated data chunks (16K by default)\n * - `raw` (Boolean) - do raw deflate\n * - `gzip` (Boolean) - create gzip wrapper\n * - `to` (String) - if equal to 'string', then result will be \"binary string\"\n * (each char code [0..255])\n * - `header` (Object) - custom header for gzip\n * - `text` (Boolean) - true if compressed data believed to be text\n * - `time` (Number) - modification time, unix timestamp\n * - `os` (Number) - operation system code\n * - `extra` (Array) - array of bytes with extra data (max 65536)\n * - `name` (String) - file name (binary string)\n * - `comment` (String) - comment (binary string)\n * - `hcrc` (Boolean) - true if header crc should be added\n *\n * ##### Example:\n *\n * ```javascript\n * var pako = require('pako')\n * , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])\n * , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);\n *\n * var deflate = new pako.Deflate({ level: 3});\n *\n * deflate.push(chunk1, false);\n * deflate.push(chunk2, true); // true -> last chunk\n *\n * if (deflate.err) { throw new Error(deflate.err); }\n *\n * console.log(deflate.result);\n * ```\n **/\nfunction Deflate(options) {\n if (!(this instanceof Deflate)) return new Deflate(options);\n\n this.options = utils.assign({\n level: Z_DEFAULT_COMPRESSION,\n method: Z_DEFLATED,\n chunkSize: 16384,\n windowBits: 15,\n memLevel: 8,\n strategy: Z_DEFAULT_STRATEGY,\n to: ''\n }, options || {});\n\n var opt = this.options;\n\n if (opt.raw && (opt.windowBits > 0)) {\n opt.windowBits = -opt.windowBits;\n }\n\n else if (opt.gzip && (opt.windowBits > 0) && (opt.windowBits < 16)) {\n opt.windowBits += 16;\n }\n\n this.err = 0; // error code, if happens (0 = Z_OK)\n this.msg = ''; // error message\n this.ended = false; // used to avoid multiple onEnd() calls\n this.chunks = []; // chunks of compressed data\n\n this.strm = new ZStream();\n this.strm.avail_out = 0;\n\n var status = zlib_deflate.deflateInit2(\n this.strm,\n opt.level,\n opt.method,\n opt.windowBits,\n opt.memLevel,\n opt.strategy\n );\n\n if (status !== Z_OK) {\n throw new Error(msg[status]);\n }\n\n if (opt.header) {\n zlib_deflate.deflateSetHeader(this.strm, opt.header);\n }\n\n if (opt.dictionary) {\n var dict;\n // Convert data if needed\n if (typeof opt.dictionary === 'string') {\n // If we need to compress text, change encoding to utf8.\n dict = strings.string2buf(opt.dictionary);\n } else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') {\n dict = new Uint8Array(opt.dictionary);\n } else {\n dict = opt.dictionary;\n }\n\n status = zlib_deflate.deflateSetDictionary(this.strm, dict);\n\n if (status !== Z_OK) {\n throw new Error(msg[status]);\n }\n\n this._dict_set = true;\n }\n}\n\n/**\n * Deflate#push(data[, mode]) -> Boolean\n * - data (Uint8Array|Array|ArrayBuffer|String): input data. Strings will be\n * converted to utf8 byte sequence.\n * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.\n * See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH.\n *\n * Sends input data to deflate pipe, generating [[Deflate#onData]] calls with\n * new compressed chunks. Returns `true` on success. The last data block must have\n * mode Z_FINISH (or `true`). That will flush internal pending buffers and call\n * [[Deflate#onEnd]]. For interim explicit flushes (without ending the stream) you\n * can use mode Z_SYNC_FLUSH, keeping the compression context.\n *\n * On fail call [[Deflate#onEnd]] with error code and return false.\n *\n * We strongly recommend to use `Uint8Array` on input for best speed (output\n * array format is detected automatically). Also, don't skip last param and always\n * use the same type in your code (boolean or number). That will improve JS speed.\n *\n * For regular `Array`-s make sure all elements are [0..255].\n *\n * ##### Example\n *\n * ```javascript\n * push(chunk, false); // push one of data chunks\n * ...\n * push(chunk, true); // push last chunk\n * ```\n **/\nDeflate.prototype.push = function (data, mode) {\n var strm = this.strm;\n var chunkSize = this.options.chunkSize;\n var status, _mode;\n\n if (this.ended) { return false; }\n\n _mode = (mode === ~~mode) ? mode : ((mode === true) ? Z_FINISH : Z_NO_FLUSH);\n\n // Convert data if needed\n if (typeof data === 'string') {\n // If we need to compress text, change encoding to utf8.\n strm.input = strings.string2buf(data);\n } else if (toString.call(data) === '[object ArrayBuffer]') {\n strm.input = new Uint8Array(data);\n } else {\n strm.input = data;\n }\n\n strm.next_in = 0;\n strm.avail_in = strm.input.length;\n\n do {\n if (strm.avail_out === 0) {\n strm.output = new utils.Buf8(chunkSize);\n strm.next_out = 0;\n strm.avail_out = chunkSize;\n }\n status = zlib_deflate.deflate(strm, _mode); /* no bad return value */\n\n if (status !== Z_STREAM_END && status !== Z_OK) {\n this.onEnd(status);\n this.ended = true;\n return false;\n }\n if (strm.avail_out === 0 || (strm.avail_in === 0 && (_mode === Z_FINISH || _mode === Z_SYNC_FLUSH))) {\n if (this.options.to === 'string') {\n this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output, strm.next_out)));\n } else {\n this.onData(utils.shrinkBuf(strm.output, strm.next_out));\n }\n }\n } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== Z_STREAM_END);\n\n // Finalize on the last chunk.\n if (_mode === Z_FINISH) {\n status = zlib_deflate.deflateEnd(this.strm);\n this.onEnd(status);\n this.ended = true;\n return status === Z_OK;\n }\n\n // callback interim results if Z_SYNC_FLUSH.\n if (_mode === Z_SYNC_FLUSH) {\n this.onEnd(Z_OK);\n strm.avail_out = 0;\n return true;\n }\n\n return true;\n};\n\n\n/**\n * Deflate#onData(chunk) -> Void\n * - chunk (Uint8Array|Array|String): output data. Type of array depends\n * on js engine support. When string output requested, each chunk\n * will be string.\n *\n * By default, stores data blocks in `chunks[]` property and glue\n * those in `onEnd`. Override this handler, if you need another behaviour.\n **/\nDeflate.prototype.onData = function (chunk) {\n this.chunks.push(chunk);\n};\n\n\n/**\n * Deflate#onEnd(status) -> Void\n * - status (Number): deflate status. 0 (Z_OK) on success,\n * other if not.\n *\n * Called once after you tell deflate that the input stream is\n * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)\n * or if an error happened. By default - join collected chunks,\n * free memory and fill `results` / `err` properties.\n **/\nDeflate.prototype.onEnd = function (status) {\n // On success - join\n if (status === Z_OK) {\n if (this.options.to === 'string') {\n this.result = this.chunks.join('');\n } else {\n this.result = utils.flattenChunks(this.chunks);\n }\n }\n this.chunks = [];\n this.err = status;\n this.msg = this.strm.msg;\n};\n\n\n/**\n * deflate(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to compress.\n * - options (Object): zlib deflate options.\n *\n * Compress `data` with deflate algorithm and `options`.\n *\n * Supported options are:\n *\n * - level\n * - windowBits\n * - memLevel\n * - strategy\n * - dictionary\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information on these.\n *\n * Sugar (options):\n *\n * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify\n * negative windowBits implicitly.\n * - `to` (String) - if equal to 'string', then result will be \"binary string\"\n * (each char code [0..255])\n *\n * ##### Example:\n *\n * ```javascript\n * var pako = require('pako')\n * , data = Uint8Array([1,2,3,4,5,6,7,8,9]);\n *\n * console.log(pako.deflate(data));\n * ```\n **/\nfunction deflate(input, options) {\n var deflator = new Deflate(options);\n\n deflator.push(input, true);\n\n // That will never happens, if you don't cheat with options :)\n if (deflator.err) { throw deflator.msg || msg[deflator.err]; }\n\n return deflator.result;\n}\n\n\n/**\n * deflateRaw(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to compress.\n * - options (Object): zlib deflate options.\n *\n * The same as [[deflate]], but creates raw data, without wrapper\n * (header and adler32 crc).\n **/\nfunction deflateRaw(input, options) {\n options = options || {};\n options.raw = true;\n return deflate(input, options);\n}\n\n\n/**\n * gzip(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to compress.\n * - options (Object): zlib deflate options.\n *\n * The same as [[deflate]], but create gzip wrapper instead of\n * deflate one.\n **/\nfunction gzip(input, options) {\n options = options || {};\n options.gzip = true;\n return deflate(input, options);\n}\n\n\nexports.Deflate = Deflate;\nexports.deflate = deflate;\nexports.deflateRaw = deflateRaw;\nexports.gzip = gzip;\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/lib/deflate.js?"); + +/***/ }), + +/***/ "./node_modules/pako/lib/inflate.js": +/*!******************************************!*\ + !*** ./node_modules/pako/lib/inflate.js ***! + \******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\n\nvar zlib_inflate = __webpack_require__(/*! ./zlib/inflate */ \"./node_modules/pako/lib/zlib/inflate.js\");\nvar utils = __webpack_require__(/*! ./utils/common */ \"./node_modules/pako/lib/utils/common.js\");\nvar strings = __webpack_require__(/*! ./utils/strings */ \"./node_modules/pako/lib/utils/strings.js\");\nvar c = __webpack_require__(/*! ./zlib/constants */ \"./node_modules/pako/lib/zlib/constants.js\");\nvar msg = __webpack_require__(/*! ./zlib/messages */ \"./node_modules/pako/lib/zlib/messages.js\");\nvar ZStream = __webpack_require__(/*! ./zlib/zstream */ \"./node_modules/pako/lib/zlib/zstream.js\");\nvar GZheader = __webpack_require__(/*! ./zlib/gzheader */ \"./node_modules/pako/lib/zlib/gzheader.js\");\n\nvar toString = Object.prototype.toString;\n\n/**\n * class Inflate\n *\n * Generic JS-style wrapper for zlib calls. If you don't need\n * streaming behaviour - use more simple functions: [[inflate]]\n * and [[inflateRaw]].\n **/\n\n/* internal\n * inflate.chunks -> Array\n *\n * Chunks of output data, if [[Inflate#onData]] not overridden.\n **/\n\n/**\n * Inflate.result -> Uint8Array|Array|String\n *\n * Uncompressed result, generated by default [[Inflate#onData]]\n * and [[Inflate#onEnd]] handlers. Filled after you push last chunk\n * (call [[Inflate#push]] with `Z_FINISH` / `true` param) or if you\n * push a chunk with explicit flush (call [[Inflate#push]] with\n * `Z_SYNC_FLUSH` param).\n **/\n\n/**\n * Inflate.err -> Number\n *\n * Error code after inflate finished. 0 (Z_OK) on success.\n * Should be checked if broken data possible.\n **/\n\n/**\n * Inflate.msg -> String\n *\n * Error message, if [[Inflate.err]] != 0\n **/\n\n\n/**\n * new Inflate(options)\n * - options (Object): zlib inflate options.\n *\n * Creates new inflator instance with specified params. Throws exception\n * on bad params. Supported options:\n *\n * - `windowBits`\n * - `dictionary`\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information on these.\n *\n * Additional options, for internal needs:\n *\n * - `chunkSize` - size of generated data chunks (16K by default)\n * - `raw` (Boolean) - do raw inflate\n * - `to` (String) - if equal to 'string', then result will be converted\n * from utf8 to utf16 (javascript) string. When string output requested,\n * chunk length can differ from `chunkSize`, depending on content.\n *\n * By default, when no options set, autodetect deflate/gzip data format via\n * wrapper header.\n *\n * ##### Example:\n *\n * ```javascript\n * var pako = require('pako')\n * , chunk1 = Uint8Array([1,2,3,4,5,6,7,8,9])\n * , chunk2 = Uint8Array([10,11,12,13,14,15,16,17,18,19]);\n *\n * var inflate = new pako.Inflate({ level: 3});\n *\n * inflate.push(chunk1, false);\n * inflate.push(chunk2, true); // true -> last chunk\n *\n * if (inflate.err) { throw new Error(inflate.err); }\n *\n * console.log(inflate.result);\n * ```\n **/\nfunction Inflate(options) {\n if (!(this instanceof Inflate)) return new Inflate(options);\n\n this.options = utils.assign({\n chunkSize: 16384,\n windowBits: 0,\n to: ''\n }, options || {});\n\n var opt = this.options;\n\n // Force window size for `raw` data, if not set directly,\n // because we have no header for autodetect.\n if (opt.raw && (opt.windowBits >= 0) && (opt.windowBits < 16)) {\n opt.windowBits = -opt.windowBits;\n if (opt.windowBits === 0) { opt.windowBits = -15; }\n }\n\n // If `windowBits` not defined (and mode not raw) - set autodetect flag for gzip/deflate\n if ((opt.windowBits >= 0) && (opt.windowBits < 16) &&\n !(options && options.windowBits)) {\n opt.windowBits += 32;\n }\n\n // Gzip header has no info about windows size, we can do autodetect only\n // for deflate. So, if window size not set, force it to max when gzip possible\n if ((opt.windowBits > 15) && (opt.windowBits < 48)) {\n // bit 3 (16) -> gzipped data\n // bit 4 (32) -> autodetect gzip/deflate\n if ((opt.windowBits & 15) === 0) {\n opt.windowBits |= 15;\n }\n }\n\n this.err = 0; // error code, if happens (0 = Z_OK)\n this.msg = ''; // error message\n this.ended = false; // used to avoid multiple onEnd() calls\n this.chunks = []; // chunks of compressed data\n\n this.strm = new ZStream();\n this.strm.avail_out = 0;\n\n var status = zlib_inflate.inflateInit2(\n this.strm,\n opt.windowBits\n );\n\n if (status !== c.Z_OK) {\n throw new Error(msg[status]);\n }\n\n this.header = new GZheader();\n\n zlib_inflate.inflateGetHeader(this.strm, this.header);\n\n // Setup dictionary\n if (opt.dictionary) {\n // Convert data if needed\n if (typeof opt.dictionary === 'string') {\n opt.dictionary = strings.string2buf(opt.dictionary);\n } else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') {\n opt.dictionary = new Uint8Array(opt.dictionary);\n }\n if (opt.raw) { //In raw mode we need to set the dictionary early\n status = zlib_inflate.inflateSetDictionary(this.strm, opt.dictionary);\n if (status !== c.Z_OK) {\n throw new Error(msg[status]);\n }\n }\n }\n}\n\n/**\n * Inflate#push(data[, mode]) -> Boolean\n * - data (Uint8Array|Array|ArrayBuffer|String): input data\n * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.\n * See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH.\n *\n * Sends input data to inflate pipe, generating [[Inflate#onData]] calls with\n * new output chunks. Returns `true` on success. The last data block must have\n * mode Z_FINISH (or `true`). That will flush internal pending buffers and call\n * [[Inflate#onEnd]]. For interim explicit flushes (without ending the stream) you\n * can use mode Z_SYNC_FLUSH, keeping the decompression context.\n *\n * On fail call [[Inflate#onEnd]] with error code and return false.\n *\n * We strongly recommend to use `Uint8Array` on input for best speed (output\n * format is detected automatically). Also, don't skip last param and always\n * use the same type in your code (boolean or number). That will improve JS speed.\n *\n * For regular `Array`-s make sure all elements are [0..255].\n *\n * ##### Example\n *\n * ```javascript\n * push(chunk, false); // push one of data chunks\n * ...\n * push(chunk, true); // push last chunk\n * ```\n **/\nInflate.prototype.push = function (data, mode) {\n var strm = this.strm;\n var chunkSize = this.options.chunkSize;\n var dictionary = this.options.dictionary;\n var status, _mode;\n var next_out_utf8, tail, utf8str;\n\n // Flag to properly process Z_BUF_ERROR on testing inflate call\n // when we check that all output data was flushed.\n var allowBufError = false;\n\n if (this.ended) { return false; }\n _mode = (mode === ~~mode) ? mode : ((mode === true) ? c.Z_FINISH : c.Z_NO_FLUSH);\n\n // Convert data if needed\n if (typeof data === 'string') {\n // Only binary strings can be decompressed on practice\n strm.input = strings.binstring2buf(data);\n } else if (toString.call(data) === '[object ArrayBuffer]') {\n strm.input = new Uint8Array(data);\n } else {\n strm.input = data;\n }\n\n strm.next_in = 0;\n strm.avail_in = strm.input.length;\n\n do {\n if (strm.avail_out === 0) {\n strm.output = new utils.Buf8(chunkSize);\n strm.next_out = 0;\n strm.avail_out = chunkSize;\n }\n\n status = zlib_inflate.inflate(strm, c.Z_NO_FLUSH); /* no bad return value */\n\n if (status === c.Z_NEED_DICT && dictionary) {\n status = zlib_inflate.inflateSetDictionary(this.strm, dictionary);\n }\n\n if (status === c.Z_BUF_ERROR && allowBufError === true) {\n status = c.Z_OK;\n allowBufError = false;\n }\n\n if (status !== c.Z_STREAM_END && status !== c.Z_OK) {\n this.onEnd(status);\n this.ended = true;\n return false;\n }\n\n if (strm.next_out) {\n if (strm.avail_out === 0 || status === c.Z_STREAM_END || (strm.avail_in === 0 && (_mode === c.Z_FINISH || _mode === c.Z_SYNC_FLUSH))) {\n\n if (this.options.to === 'string') {\n\n next_out_utf8 = strings.utf8border(strm.output, strm.next_out);\n\n tail = strm.next_out - next_out_utf8;\n utf8str = strings.buf2string(strm.output, next_out_utf8);\n\n // move tail\n strm.next_out = tail;\n strm.avail_out = chunkSize - tail;\n if (tail) { utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0); }\n\n this.onData(utf8str);\n\n } else {\n this.onData(utils.shrinkBuf(strm.output, strm.next_out));\n }\n }\n }\n\n // When no more input data, we should check that internal inflate buffers\n // are flushed. The only way to do it when avail_out = 0 - run one more\n // inflate pass. But if output data not exists, inflate return Z_BUF_ERROR.\n // Here we set flag to process this error properly.\n //\n // NOTE. Deflate does not return error in this case and does not needs such\n // logic.\n if (strm.avail_in === 0 && strm.avail_out === 0) {\n allowBufError = true;\n }\n\n } while ((strm.avail_in > 0 || strm.avail_out === 0) && status !== c.Z_STREAM_END);\n\n if (status === c.Z_STREAM_END) {\n _mode = c.Z_FINISH;\n }\n\n // Finalize on the last chunk.\n if (_mode === c.Z_FINISH) {\n status = zlib_inflate.inflateEnd(this.strm);\n this.onEnd(status);\n this.ended = true;\n return status === c.Z_OK;\n }\n\n // callback interim results if Z_SYNC_FLUSH.\n if (_mode === c.Z_SYNC_FLUSH) {\n this.onEnd(c.Z_OK);\n strm.avail_out = 0;\n return true;\n }\n\n return true;\n};\n\n\n/**\n * Inflate#onData(chunk) -> Void\n * - chunk (Uint8Array|Array|String): output data. Type of array depends\n * on js engine support. When string output requested, each chunk\n * will be string.\n *\n * By default, stores data blocks in `chunks[]` property and glue\n * those in `onEnd`. Override this handler, if you need another behaviour.\n **/\nInflate.prototype.onData = function (chunk) {\n this.chunks.push(chunk);\n};\n\n\n/**\n * Inflate#onEnd(status) -> Void\n * - status (Number): inflate status. 0 (Z_OK) on success,\n * other if not.\n *\n * Called either after you tell inflate that the input stream is\n * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)\n * or if an error happened. By default - join collected chunks,\n * free memory and fill `results` / `err` properties.\n **/\nInflate.prototype.onEnd = function (status) {\n // On success - join\n if (status === c.Z_OK) {\n if (this.options.to === 'string') {\n // Glue & convert here, until we teach pako to send\n // utf8 aligned strings to onData\n this.result = this.chunks.join('');\n } else {\n this.result = utils.flattenChunks(this.chunks);\n }\n }\n this.chunks = [];\n this.err = status;\n this.msg = this.strm.msg;\n};\n\n\n/**\n * inflate(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to decompress.\n * - options (Object): zlib inflate options.\n *\n * Decompress `data` with inflate/ungzip and `options`. Autodetect\n * format via wrapper header by default. That's why we don't provide\n * separate `ungzip` method.\n *\n * Supported options are:\n *\n * - windowBits\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information.\n *\n * Sugar (options):\n *\n * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify\n * negative windowBits implicitly.\n * - `to` (String) - if equal to 'string', then result will be converted\n * from utf8 to utf16 (javascript) string. When string output requested,\n * chunk length can differ from `chunkSize`, depending on content.\n *\n *\n * ##### Example:\n *\n * ```javascript\n * var pako = require('pako')\n * , input = pako.deflate([1,2,3,4,5,6,7,8,9])\n * , output;\n *\n * try {\n * output = pako.inflate(input);\n * } catch (err)\n * console.log(err);\n * }\n * ```\n **/\nfunction inflate(input, options) {\n var inflator = new Inflate(options);\n\n inflator.push(input, true);\n\n // That will never happens, if you don't cheat with options :)\n if (inflator.err) { throw inflator.msg || msg[inflator.err]; }\n\n return inflator.result;\n}\n\n\n/**\n * inflateRaw(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to decompress.\n * - options (Object): zlib inflate options.\n *\n * The same as [[inflate]], but creates raw data, without wrapper\n * (header and adler32 crc).\n **/\nfunction inflateRaw(input, options) {\n options = options || {};\n options.raw = true;\n return inflate(input, options);\n}\n\n\n/**\n * ungzip(data[, options]) -> Uint8Array|Array|String\n * - data (Uint8Array|Array|String): input data to decompress.\n * - options (Object): zlib inflate options.\n *\n * Just shortcut to [[inflate]], because it autodetects format\n * by header.content. Done for convenience.\n **/\n\n\nexports.Inflate = Inflate;\nexports.inflate = inflate;\nexports.inflateRaw = inflateRaw;\nexports.ungzip = inflate;\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/lib/inflate.js?"); + +/***/ }), + +/***/ "./node_modules/pako/lib/utils/common.js": +/*!***********************************************!*\ + !*** ./node_modules/pako/lib/utils/common.js ***! + \***********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\n\nvar TYPED_OK = (typeof Uint8Array !== 'undefined') &&\n (typeof Uint16Array !== 'undefined') &&\n (typeof Int32Array !== 'undefined');\n\nfunction _has(obj, key) {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\nexports.assign = function (obj /*from1, from2, from3, ...*/) {\n var sources = Array.prototype.slice.call(arguments, 1);\n while (sources.length) {\n var source = sources.shift();\n if (!source) { continue; }\n\n if (typeof source !== 'object') {\n throw new TypeError(source + 'must be non-object');\n }\n\n for (var p in source) {\n if (_has(source, p)) {\n obj[p] = source[p];\n }\n }\n }\n\n return obj;\n};\n\n\n// reduce buffer size, avoiding mem copy\nexports.shrinkBuf = function (buf, size) {\n if (buf.length === size) { return buf; }\n if (buf.subarray) { return buf.subarray(0, size); }\n buf.length = size;\n return buf;\n};\n\n\nvar fnTyped = {\n arraySet: function (dest, src, src_offs, len, dest_offs) {\n if (src.subarray && dest.subarray) {\n dest.set(src.subarray(src_offs, src_offs + len), dest_offs);\n return;\n }\n // Fallback to ordinary array\n for (var i = 0; i < len; i++) {\n dest[dest_offs + i] = src[src_offs + i];\n }\n },\n // Join array of chunks to single array.\n flattenChunks: function (chunks) {\n var i, l, len, pos, chunk, result;\n\n // calculate data length\n len = 0;\n for (i = 0, l = chunks.length; i < l; i++) {\n len += chunks[i].length;\n }\n\n // join chunks\n result = new Uint8Array(len);\n pos = 0;\n for (i = 0, l = chunks.length; i < l; i++) {\n chunk = chunks[i];\n result.set(chunk, pos);\n pos += chunk.length;\n }\n\n return result;\n }\n};\n\nvar fnUntyped = {\n arraySet: function (dest, src, src_offs, len, dest_offs) {\n for (var i = 0; i < len; i++) {\n dest[dest_offs + i] = src[src_offs + i];\n }\n },\n // Join array of chunks to single array.\n flattenChunks: function (chunks) {\n return [].concat.apply([], chunks);\n }\n};\n\n\n// Enable/Disable typed arrays use, for testing\n//\nexports.setTyped = function (on) {\n if (on) {\n exports.Buf8 = Uint8Array;\n exports.Buf16 = Uint16Array;\n exports.Buf32 = Int32Array;\n exports.assign(exports, fnTyped);\n } else {\n exports.Buf8 = Array;\n exports.Buf16 = Array;\n exports.Buf32 = Array;\n exports.assign(exports, fnUntyped);\n }\n};\n\nexports.setTyped(TYPED_OK);\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/lib/utils/common.js?"); + +/***/ }), + +/***/ "./node_modules/pako/lib/utils/strings.js": +/*!************************************************!*\ + !*** ./node_modules/pako/lib/utils/strings.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("// String encode/decode helpers\n\n\n\nvar utils = __webpack_require__(/*! ./common */ \"./node_modules/pako/lib/utils/common.js\");\n\n\n// Quick check if we can use fast array to bin string conversion\n//\n// - apply(Array) can fail on Android 2.2\n// - apply(Uint8Array) can fail on iOS 5.1 Safari\n//\nvar STR_APPLY_OK = true;\nvar STR_APPLY_UIA_OK = true;\n\ntry { String.fromCharCode.apply(null, [ 0 ]); } catch (__) { STR_APPLY_OK = false; }\ntry { String.fromCharCode.apply(null, new Uint8Array(1)); } catch (__) { STR_APPLY_UIA_OK = false; }\n\n\n// Table with utf8 lengths (calculated by first byte of sequence)\n// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS,\n// because max possible codepoint is 0x10ffff\nvar _utf8len = new utils.Buf8(256);\nfor (var q = 0; q < 256; q++) {\n _utf8len[q] = (q >= 252 ? 6 : q >= 248 ? 5 : q >= 240 ? 4 : q >= 224 ? 3 : q >= 192 ? 2 : 1);\n}\n_utf8len[254] = _utf8len[254] = 1; // Invalid sequence start\n\n\n// convert string to array (typed, when possible)\nexports.string2buf = function (str) {\n var buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0;\n\n // count binary size\n for (m_pos = 0; m_pos < str_len; m_pos++) {\n c = str.charCodeAt(m_pos);\n if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {\n c2 = str.charCodeAt(m_pos + 1);\n if ((c2 & 0xfc00) === 0xdc00) {\n c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\n m_pos++;\n }\n }\n buf_len += c < 0x80 ? 1 : c < 0x800 ? 2 : c < 0x10000 ? 3 : 4;\n }\n\n // allocate buffer\n buf = new utils.Buf8(buf_len);\n\n // convert\n for (i = 0, m_pos = 0; i < buf_len; m_pos++) {\n c = str.charCodeAt(m_pos);\n if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {\n c2 = str.charCodeAt(m_pos + 1);\n if ((c2 & 0xfc00) === 0xdc00) {\n c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\n m_pos++;\n }\n }\n if (c < 0x80) {\n /* one byte */\n buf[i++] = c;\n } else if (c < 0x800) {\n /* two bytes */\n buf[i++] = 0xC0 | (c >>> 6);\n buf[i++] = 0x80 | (c & 0x3f);\n } else if (c < 0x10000) {\n /* three bytes */\n buf[i++] = 0xE0 | (c >>> 12);\n buf[i++] = 0x80 | (c >>> 6 & 0x3f);\n buf[i++] = 0x80 | (c & 0x3f);\n } else {\n /* four bytes */\n buf[i++] = 0xf0 | (c >>> 18);\n buf[i++] = 0x80 | (c >>> 12 & 0x3f);\n buf[i++] = 0x80 | (c >>> 6 & 0x3f);\n buf[i++] = 0x80 | (c & 0x3f);\n }\n }\n\n return buf;\n};\n\n// Helper (used in 2 places)\nfunction buf2binstring(buf, len) {\n // On Chrome, the arguments in a function call that are allowed is `65534`.\n // If the length of the buffer is smaller than that, we can use this optimization,\n // otherwise we will take a slower path.\n if (len < 65534) {\n if ((buf.subarray && STR_APPLY_UIA_OK) || (!buf.subarray && STR_APPLY_OK)) {\n return String.fromCharCode.apply(null, utils.shrinkBuf(buf, len));\n }\n }\n\n var result = '';\n for (var i = 0; i < len; i++) {\n result += String.fromCharCode(buf[i]);\n }\n return result;\n}\n\n\n// Convert byte array to binary string\nexports.buf2binstring = function (buf) {\n return buf2binstring(buf, buf.length);\n};\n\n\n// Convert binary string (typed, when possible)\nexports.binstring2buf = function (str) {\n var buf = new utils.Buf8(str.length);\n for (var i = 0, len = buf.length; i < len; i++) {\n buf[i] = str.charCodeAt(i);\n }\n return buf;\n};\n\n\n// convert array to string\nexports.buf2string = function (buf, max) {\n var i, out, c, c_len;\n var len = max || buf.length;\n\n // Reserve max possible length (2 words per char)\n // NB: by unknown reasons, Array is significantly faster for\n // String.fromCharCode.apply than Uint16Array.\n var utf16buf = new Array(len * 2);\n\n for (out = 0, i = 0; i < len;) {\n c = buf[i++];\n // quick process ascii\n if (c < 0x80) { utf16buf[out++] = c; continue; }\n\n c_len = _utf8len[c];\n // skip 5 & 6 byte codes\n if (c_len > 4) { utf16buf[out++] = 0xfffd; i += c_len - 1; continue; }\n\n // apply mask on first byte\n c &= c_len === 2 ? 0x1f : c_len === 3 ? 0x0f : 0x07;\n // join the rest\n while (c_len > 1 && i < len) {\n c = (c << 6) | (buf[i++] & 0x3f);\n c_len--;\n }\n\n // terminated by end of string?\n if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; }\n\n if (c < 0x10000) {\n utf16buf[out++] = c;\n } else {\n c -= 0x10000;\n utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff);\n utf16buf[out++] = 0xdc00 | (c & 0x3ff);\n }\n }\n\n return buf2binstring(utf16buf, out);\n};\n\n\n// Calculate max possible position in utf8 buffer,\n// that will not break sequence. If that's not possible\n// - (very small limits) return max size as is.\n//\n// buf[] - utf8 bytes array\n// max - length limit (mandatory);\nexports.utf8border = function (buf, max) {\n var pos;\n\n max = max || buf.length;\n if (max > buf.length) { max = buf.length; }\n\n // go back from last position, until start of sequence found\n pos = max - 1;\n while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; }\n\n // Very small and broken sequence,\n // return max, because we should return something anyway.\n if (pos < 0) { return max; }\n\n // If we came to start of buffer - that means buffer is too small,\n // return max too.\n if (pos === 0) { return max; }\n\n return (pos + _utf8len[buf[pos]] > max) ? pos : max;\n};\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/lib/utils/strings.js?"); + +/***/ }), + +/***/ "./node_modules/pako/lib/zlib/adler32.js": +/*!***********************************************!*\ + !*** ./node_modules/pako/lib/zlib/adler32.js ***! + \***********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\n// Note: adler32 takes 12% for level 0 and 2% for level 6.\n// It isn't worth it to make additional optimizations as in original.\n// Small size is preferable.\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nfunction adler32(adler, buf, len, pos) {\n var s1 = (adler & 0xffff) |0,\n s2 = ((adler >>> 16) & 0xffff) |0,\n n = 0;\n\n while (len !== 0) {\n // Set limit ~ twice less than 5552, to keep\n // s2 in 31-bits, because we force signed ints.\n // in other case %= will fail.\n n = len > 2000 ? 2000 : len;\n len -= n;\n\n do {\n s1 = (s1 + buf[pos++]) |0;\n s2 = (s2 + s1) |0;\n } while (--n);\n\n s1 %= 65521;\n s2 %= 65521;\n }\n\n return (s1 | (s2 << 16)) |0;\n}\n\n\nmodule.exports = adler32;\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/lib/zlib/adler32.js?"); + +/***/ }), + +/***/ "./node_modules/pako/lib/zlib/constants.js": +/*!*************************************************!*\ + !*** ./node_modules/pako/lib/zlib/constants.js ***! + \*************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nmodule.exports = {\n\n /* Allowed flush values; see deflate() and inflate() below for details */\n Z_NO_FLUSH: 0,\n Z_PARTIAL_FLUSH: 1,\n Z_SYNC_FLUSH: 2,\n Z_FULL_FLUSH: 3,\n Z_FINISH: 4,\n Z_BLOCK: 5,\n Z_TREES: 6,\n\n /* Return codes for the compression/decompression functions. Negative values\n * are errors, positive values are used for special but normal events.\n */\n Z_OK: 0,\n Z_STREAM_END: 1,\n Z_NEED_DICT: 2,\n Z_ERRNO: -1,\n Z_STREAM_ERROR: -2,\n Z_DATA_ERROR: -3,\n //Z_MEM_ERROR: -4,\n Z_BUF_ERROR: -5,\n //Z_VERSION_ERROR: -6,\n\n /* compression levels */\n Z_NO_COMPRESSION: 0,\n Z_BEST_SPEED: 1,\n Z_BEST_COMPRESSION: 9,\n Z_DEFAULT_COMPRESSION: -1,\n\n\n Z_FILTERED: 1,\n Z_HUFFMAN_ONLY: 2,\n Z_RLE: 3,\n Z_FIXED: 4,\n Z_DEFAULT_STRATEGY: 0,\n\n /* Possible values of the data_type field (though see inflate()) */\n Z_BINARY: 0,\n Z_TEXT: 1,\n //Z_ASCII: 1, // = Z_TEXT (deprecated)\n Z_UNKNOWN: 2,\n\n /* The deflate compression method */\n Z_DEFLATED: 8\n //Z_NULL: null // Use -1 or null inline, depending on var type\n};\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/lib/zlib/constants.js?"); + +/***/ }), + +/***/ "./node_modules/pako/lib/zlib/crc32.js": +/*!*********************************************!*\ + !*** ./node_modules/pako/lib/zlib/crc32.js ***! + \*********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\n// Note: we can't get significant speed boost here.\n// So write code to minimize size - no pregenerated tables\n// and array tools dependencies.\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\n// Use ordinary array, since untyped makes no boost here\nfunction makeTable() {\n var c, table = [];\n\n for (var n = 0; n < 256; n++) {\n c = n;\n for (var k = 0; k < 8; k++) {\n c = ((c & 1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1));\n }\n table[n] = c;\n }\n\n return table;\n}\n\n// Create table on load. Just 255 signed longs. Not a problem.\nvar crcTable = makeTable();\n\n\nfunction crc32(crc, buf, len, pos) {\n var t = crcTable,\n end = pos + len;\n\n crc ^= -1;\n\n for (var i = pos; i < end; i++) {\n crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF];\n }\n\n return (crc ^ (-1)); // >>> 0;\n}\n\n\nmodule.exports = crc32;\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/lib/zlib/crc32.js?"); + +/***/ }), + +/***/ "./node_modules/pako/lib/zlib/deflate.js": +/*!***********************************************!*\ + !*** ./node_modules/pako/lib/zlib/deflate.js ***! + \***********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nvar utils = __webpack_require__(/*! ../utils/common */ \"./node_modules/pako/lib/utils/common.js\");\nvar trees = __webpack_require__(/*! ./trees */ \"./node_modules/pako/lib/zlib/trees.js\");\nvar adler32 = __webpack_require__(/*! ./adler32 */ \"./node_modules/pako/lib/zlib/adler32.js\");\nvar crc32 = __webpack_require__(/*! ./crc32 */ \"./node_modules/pako/lib/zlib/crc32.js\");\nvar msg = __webpack_require__(/*! ./messages */ \"./node_modules/pako/lib/zlib/messages.js\");\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\n\n/* Allowed flush values; see deflate() and inflate() below for details */\nvar Z_NO_FLUSH = 0;\nvar Z_PARTIAL_FLUSH = 1;\n//var Z_SYNC_FLUSH = 2;\nvar Z_FULL_FLUSH = 3;\nvar Z_FINISH = 4;\nvar Z_BLOCK = 5;\n//var Z_TREES = 6;\n\n\n/* Return codes for the compression/decompression functions. Negative values\n * are errors, positive values are used for special but normal events.\n */\nvar Z_OK = 0;\nvar Z_STREAM_END = 1;\n//var Z_NEED_DICT = 2;\n//var Z_ERRNO = -1;\nvar Z_STREAM_ERROR = -2;\nvar Z_DATA_ERROR = -3;\n//var Z_MEM_ERROR = -4;\nvar Z_BUF_ERROR = -5;\n//var Z_VERSION_ERROR = -6;\n\n\n/* compression levels */\n//var Z_NO_COMPRESSION = 0;\n//var Z_BEST_SPEED = 1;\n//var Z_BEST_COMPRESSION = 9;\nvar Z_DEFAULT_COMPRESSION = -1;\n\n\nvar Z_FILTERED = 1;\nvar Z_HUFFMAN_ONLY = 2;\nvar Z_RLE = 3;\nvar Z_FIXED = 4;\nvar Z_DEFAULT_STRATEGY = 0;\n\n/* Possible values of the data_type field (though see inflate()) */\n//var Z_BINARY = 0;\n//var Z_TEXT = 1;\n//var Z_ASCII = 1; // = Z_TEXT\nvar Z_UNKNOWN = 2;\n\n\n/* The deflate compression method */\nvar Z_DEFLATED = 8;\n\n/*============================================================================*/\n\n\nvar MAX_MEM_LEVEL = 9;\n/* Maximum value for memLevel in deflateInit2 */\nvar MAX_WBITS = 15;\n/* 32K LZ77 window */\nvar DEF_MEM_LEVEL = 8;\n\n\nvar LENGTH_CODES = 29;\n/* number of length codes, not counting the special END_BLOCK code */\nvar LITERALS = 256;\n/* number of literal bytes 0..255 */\nvar L_CODES = LITERALS + 1 + LENGTH_CODES;\n/* number of Literal or Length codes, including the END_BLOCK code */\nvar D_CODES = 30;\n/* number of distance codes */\nvar BL_CODES = 19;\n/* number of codes used to transfer the bit lengths */\nvar HEAP_SIZE = 2 * L_CODES + 1;\n/* maximum heap size */\nvar MAX_BITS = 15;\n/* All codes must not exceed MAX_BITS bits */\n\nvar MIN_MATCH = 3;\nvar MAX_MATCH = 258;\nvar MIN_LOOKAHEAD = (MAX_MATCH + MIN_MATCH + 1);\n\nvar PRESET_DICT = 0x20;\n\nvar INIT_STATE = 42;\nvar EXTRA_STATE = 69;\nvar NAME_STATE = 73;\nvar COMMENT_STATE = 91;\nvar HCRC_STATE = 103;\nvar BUSY_STATE = 113;\nvar FINISH_STATE = 666;\n\nvar BS_NEED_MORE = 1; /* block not completed, need more input or more output */\nvar BS_BLOCK_DONE = 2; /* block flush performed */\nvar BS_FINISH_STARTED = 3; /* finish started, need only more output at next deflate */\nvar BS_FINISH_DONE = 4; /* finish done, accept no more input or output */\n\nvar OS_CODE = 0x03; // Unix :) . Don't detect, use this default.\n\nfunction err(strm, errorCode) {\n strm.msg = msg[errorCode];\n return errorCode;\n}\n\nfunction rank(f) {\n return ((f) << 1) - ((f) > 4 ? 9 : 0);\n}\n\nfunction zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }\n\n\n/* =========================================================================\n * Flush as much pending output as possible. All deflate() output goes\n * through this function so some applications may wish to modify it\n * to avoid allocating a large strm->output buffer and copying into it.\n * (See also read_buf()).\n */\nfunction flush_pending(strm) {\n var s = strm.state;\n\n //_tr_flush_bits(s);\n var len = s.pending;\n if (len > strm.avail_out) {\n len = strm.avail_out;\n }\n if (len === 0) { return; }\n\n utils.arraySet(strm.output, s.pending_buf, s.pending_out, len, strm.next_out);\n strm.next_out += len;\n s.pending_out += len;\n strm.total_out += len;\n strm.avail_out -= len;\n s.pending -= len;\n if (s.pending === 0) {\n s.pending_out = 0;\n }\n}\n\n\nfunction flush_block_only(s, last) {\n trees._tr_flush_block(s, (s.block_start >= 0 ? s.block_start : -1), s.strstart - s.block_start, last);\n s.block_start = s.strstart;\n flush_pending(s.strm);\n}\n\n\nfunction put_byte(s, b) {\n s.pending_buf[s.pending++] = b;\n}\n\n\n/* =========================================================================\n * Put a short in the pending buffer. The 16-bit value is put in MSB order.\n * IN assertion: the stream state is correct and there is enough room in\n * pending_buf.\n */\nfunction putShortMSB(s, b) {\n// put_byte(s, (Byte)(b >> 8));\n// put_byte(s, (Byte)(b & 0xff));\n s.pending_buf[s.pending++] = (b >>> 8) & 0xff;\n s.pending_buf[s.pending++] = b & 0xff;\n}\n\n\n/* ===========================================================================\n * Read a new buffer from the current input stream, update the adler32\n * and total number of bytes read. All deflate() input goes through\n * this function so some applications may wish to modify it to avoid\n * allocating a large strm->input buffer and copying from it.\n * (See also flush_pending()).\n */\nfunction read_buf(strm, buf, start, size) {\n var len = strm.avail_in;\n\n if (len > size) { len = size; }\n if (len === 0) { return 0; }\n\n strm.avail_in -= len;\n\n // zmemcpy(buf, strm->next_in, len);\n utils.arraySet(buf, strm.input, strm.next_in, len, start);\n if (strm.state.wrap === 1) {\n strm.adler = adler32(strm.adler, buf, len, start);\n }\n\n else if (strm.state.wrap === 2) {\n strm.adler = crc32(strm.adler, buf, len, start);\n }\n\n strm.next_in += len;\n strm.total_in += len;\n\n return len;\n}\n\n\n/* ===========================================================================\n * Set match_start to the longest match starting at the given string and\n * return its length. Matches shorter or equal to prev_length are discarded,\n * in which case the result is equal to prev_length and match_start is\n * garbage.\n * IN assertions: cur_match is the head of the hash chain for the current\n * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1\n * OUT assertion: the match length is not greater than s->lookahead.\n */\nfunction longest_match(s, cur_match) {\n var chain_length = s.max_chain_length; /* max hash chain length */\n var scan = s.strstart; /* current string */\n var match; /* matched string */\n var len; /* length of current match */\n var best_len = s.prev_length; /* best match length so far */\n var nice_match = s.nice_match; /* stop if match long enough */\n var limit = (s.strstart > (s.w_size - MIN_LOOKAHEAD)) ?\n s.strstart - (s.w_size - MIN_LOOKAHEAD) : 0/*NIL*/;\n\n var _win = s.window; // shortcut\n\n var wmask = s.w_mask;\n var prev = s.prev;\n\n /* Stop when cur_match becomes <= limit. To simplify the code,\n * we prevent matches with the string of window index 0.\n */\n\n var strend = s.strstart + MAX_MATCH;\n var scan_end1 = _win[scan + best_len - 1];\n var scan_end = _win[scan + best_len];\n\n /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.\n * It is easy to get rid of this optimization if necessary.\n */\n // Assert(s->hash_bits >= 8 && MAX_MATCH == 258, \"Code too clever\");\n\n /* Do not waste too much time if we already have a good match: */\n if (s.prev_length >= s.good_match) {\n chain_length >>= 2;\n }\n /* Do not look for matches beyond the end of the input. This is necessary\n * to make deflate deterministic.\n */\n if (nice_match > s.lookahead) { nice_match = s.lookahead; }\n\n // Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, \"need lookahead\");\n\n do {\n // Assert(cur_match < s->strstart, \"no future\");\n match = cur_match;\n\n /* Skip to next match if the match length cannot increase\n * or if the match length is less than 2. Note that the checks below\n * for insufficient lookahead only occur occasionally for performance\n * reasons. Therefore uninitialized memory will be accessed, and\n * conditional jumps will be made that depend on those values.\n * However the length of the match is limited to the lookahead, so\n * the output of deflate is not affected by the uninitialized values.\n */\n\n if (_win[match + best_len] !== scan_end ||\n _win[match + best_len - 1] !== scan_end1 ||\n _win[match] !== _win[scan] ||\n _win[++match] !== _win[scan + 1]) {\n continue;\n }\n\n /* The check at best_len-1 can be removed because it will be made\n * again later. (This heuristic is not always a win.)\n * It is not necessary to compare scan[2] and match[2] since they\n * are always equal when the other bytes match, given that\n * the hash keys are equal and that HASH_BITS >= 8.\n */\n scan += 2;\n match++;\n // Assert(*scan == *match, \"match[2]?\");\n\n /* We check for insufficient lookahead only every 8th comparison;\n * the 256th check will be made at strstart+258.\n */\n do {\n /*jshint noempty:false*/\n } while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n scan < strend);\n\n // Assert(scan <= s->window+(unsigned)(s->window_size-1), \"wild scan\");\n\n len = MAX_MATCH - (strend - scan);\n scan = strend - MAX_MATCH;\n\n if (len > best_len) {\n s.match_start = cur_match;\n best_len = len;\n if (len >= nice_match) {\n break;\n }\n scan_end1 = _win[scan + best_len - 1];\n scan_end = _win[scan + best_len];\n }\n } while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0);\n\n if (best_len <= s.lookahead) {\n return best_len;\n }\n return s.lookahead;\n}\n\n\n/* ===========================================================================\n * Fill the window when the lookahead becomes insufficient.\n * Updates strstart and lookahead.\n *\n * IN assertion: lookahead < MIN_LOOKAHEAD\n * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD\n * At least one byte has been read, or avail_in == 0; reads are\n * performed for at least two bytes (required for the zip translate_eol\n * option -- not supported here).\n */\nfunction fill_window(s) {\n var _w_size = s.w_size;\n var p, n, m, more, str;\n\n //Assert(s->lookahead < MIN_LOOKAHEAD, \"already enough lookahead\");\n\n do {\n more = s.window_size - s.lookahead - s.strstart;\n\n // JS ints have 32 bit, block below not needed\n /* Deal with !@#$% 64K limit: */\n //if (sizeof(int) <= 2) {\n // if (more == 0 && s->strstart == 0 && s->lookahead == 0) {\n // more = wsize;\n //\n // } else if (more == (unsigned)(-1)) {\n // /* Very unlikely, but possible on 16 bit machine if\n // * strstart == 0 && lookahead == 1 (input done a byte at time)\n // */\n // more--;\n // }\n //}\n\n\n /* If the window is almost full and there is insufficient lookahead,\n * move the upper half to the lower one to make room in the upper half.\n */\n if (s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) {\n\n utils.arraySet(s.window, s.window, _w_size, _w_size, 0);\n s.match_start -= _w_size;\n s.strstart -= _w_size;\n /* we now have strstart >= MAX_DIST */\n s.block_start -= _w_size;\n\n /* Slide the hash table (could be avoided with 32 bit values\n at the expense of memory usage). We slide even when level == 0\n to keep the hash table consistent if we switch back to level > 0\n later. (Using level 0 permanently is not an optimal usage of\n zlib, so we don't care about this pathological case.)\n */\n\n n = s.hash_size;\n p = n;\n do {\n m = s.head[--p];\n s.head[p] = (m >= _w_size ? m - _w_size : 0);\n } while (--n);\n\n n = _w_size;\n p = n;\n do {\n m = s.prev[--p];\n s.prev[p] = (m >= _w_size ? m - _w_size : 0);\n /* If n is not on any hash chain, prev[n] is garbage but\n * its value will never be used.\n */\n } while (--n);\n\n more += _w_size;\n }\n if (s.strm.avail_in === 0) {\n break;\n }\n\n /* If there was no sliding:\n * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&\n * more == window_size - lookahead - strstart\n * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)\n * => more >= window_size - 2*WSIZE + 2\n * In the BIG_MEM or MMAP case (not yet supported),\n * window_size == input_size + MIN_LOOKAHEAD &&\n * strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.\n * Otherwise, window_size == 2*WSIZE so more >= 2.\n * If there was sliding, more >= WSIZE. So in all cases, more >= 2.\n */\n //Assert(more >= 2, \"more < 2\");\n n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more);\n s.lookahead += n;\n\n /* Initialize the hash value now that we have some input: */\n if (s.lookahead + s.insert >= MIN_MATCH) {\n str = s.strstart - s.insert;\n s.ins_h = s.window[str];\n\n /* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + 1]) & s.hash_mask;\n//#if MIN_MATCH != 3\n// Call update_hash() MIN_MATCH-3 more times\n//#endif\n while (s.insert) {\n /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask;\n\n s.prev[str & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = str;\n str++;\n s.insert--;\n if (s.lookahead + s.insert < MIN_MATCH) {\n break;\n }\n }\n }\n /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,\n * but this is not important since only literal bytes will be emitted.\n */\n\n } while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0);\n\n /* If the WIN_INIT bytes after the end of the current data have never been\n * written, then zero those bytes in order to avoid memory check reports of\n * the use of uninitialized (or uninitialised as Julian writes) bytes by\n * the longest match routines. Update the high water mark for the next\n * time through here. WIN_INIT is set to MAX_MATCH since the longest match\n * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.\n */\n// if (s.high_water < s.window_size) {\n// var curr = s.strstart + s.lookahead;\n// var init = 0;\n//\n// if (s.high_water < curr) {\n// /* Previous high water mark below current data -- zero WIN_INIT\n// * bytes or up to end of window, whichever is less.\n// */\n// init = s.window_size - curr;\n// if (init > WIN_INIT)\n// init = WIN_INIT;\n// zmemzero(s->window + curr, (unsigned)init);\n// s->high_water = curr + init;\n// }\n// else if (s->high_water < (ulg)curr + WIN_INIT) {\n// /* High water mark at or above current data, but below current data\n// * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up\n// * to end of window, whichever is less.\n// */\n// init = (ulg)curr + WIN_INIT - s->high_water;\n// if (init > s->window_size - s->high_water)\n// init = s->window_size - s->high_water;\n// zmemzero(s->window + s->high_water, (unsigned)init);\n// s->high_water += init;\n// }\n// }\n//\n// Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,\n// \"not enough room for search\");\n}\n\n/* ===========================================================================\n * Copy without compression as much as possible from the input stream, return\n * the current block state.\n * This function does not insert new strings in the dictionary since\n * uncompressible data is probably not useful. This function is used\n * only for the level=0 compression option.\n * NOTE: this function should be optimized to avoid extra copying from\n * window to pending_buf.\n */\nfunction deflate_stored(s, flush) {\n /* Stored blocks are limited to 0xffff bytes, pending_buf is limited\n * to pending_buf_size, and each stored block has a 5 byte header:\n */\n var max_block_size = 0xffff;\n\n if (max_block_size > s.pending_buf_size - 5) {\n max_block_size = s.pending_buf_size - 5;\n }\n\n /* Copy as much as possible from input to output: */\n for (;;) {\n /* Fill the window as much as possible: */\n if (s.lookahead <= 1) {\n\n //Assert(s->strstart < s->w_size+MAX_DIST(s) ||\n // s->block_start >= (long)s->w_size, \"slide too late\");\n// if (!(s.strstart < s.w_size + (s.w_size - MIN_LOOKAHEAD) ||\n// s.block_start >= s.w_size)) {\n// throw new Error(\"slide too late\");\n// }\n\n fill_window(s);\n if (s.lookahead === 0 && flush === Z_NO_FLUSH) {\n return BS_NEED_MORE;\n }\n\n if (s.lookahead === 0) {\n break;\n }\n /* flush the current block */\n }\n //Assert(s->block_start >= 0L, \"block gone\");\n// if (s.block_start < 0) throw new Error(\"block gone\");\n\n s.strstart += s.lookahead;\n s.lookahead = 0;\n\n /* Emit a stored block if pending_buf will be full: */\n var max_start = s.block_start + max_block_size;\n\n if (s.strstart === 0 || s.strstart >= max_start) {\n /* strstart == 0 is possible when wraparound on 16-bit machine */\n s.lookahead = s.strstart - max_start;\n s.strstart = max_start;\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n\n\n }\n /* Flush if we may have to slide, otherwise block_start may become\n * negative and the data will be gone:\n */\n if (s.strstart - s.block_start >= (s.w_size - MIN_LOOKAHEAD)) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n\n s.insert = 0;\n\n if (flush === Z_FINISH) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n\n if (s.strstart > s.block_start) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n\n return BS_NEED_MORE;\n}\n\n/* ===========================================================================\n * Compress as much as possible from the input stream, return the current\n * block state.\n * This function does not perform lazy evaluation of matches and inserts\n * new strings in the dictionary only for unmatched strings or for short\n * matches. It is used only for the fast compression options.\n */\nfunction deflate_fast(s, flush) {\n var hash_head; /* head of the hash chain */\n var bflush; /* set if current block must be flushed */\n\n for (;;) {\n /* Make sure that we always have enough lookahead, except\n * at the end of the input file. We need MAX_MATCH bytes\n * for the next match, plus MIN_MATCH bytes to insert the\n * string following the next match.\n */\n if (s.lookahead < MIN_LOOKAHEAD) {\n fill_window(s);\n if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {\n return BS_NEED_MORE;\n }\n if (s.lookahead === 0) {\n break; /* flush the current block */\n }\n }\n\n /* Insert the string window[strstart .. strstart+2] in the\n * dictionary, and set hash_head to the head of the hash chain:\n */\n hash_head = 0/*NIL*/;\n if (s.lookahead >= MIN_MATCH) {\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n }\n\n /* Find the longest match, discarding those <= prev_length.\n * At this point we have always match_length < MIN_MATCH\n */\n if (hash_head !== 0/*NIL*/ && ((s.strstart - hash_head) <= (s.w_size - MIN_LOOKAHEAD))) {\n /* To simplify the code, we prevent matches with the string\n * of window index 0 (in particular we have to avoid a match\n * of the string with itself at the start of the input file).\n */\n s.match_length = longest_match(s, hash_head);\n /* longest_match() sets match_start */\n }\n if (s.match_length >= MIN_MATCH) {\n // check_match(s, s.strstart, s.match_start, s.match_length); // for debug only\n\n /*** _tr_tally_dist(s, s.strstart - s.match_start,\n s.match_length - MIN_MATCH, bflush); ***/\n bflush = trees._tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH);\n\n s.lookahead -= s.match_length;\n\n /* Insert new strings in the hash table only if the match length\n * is not too large. This saves time but degrades compression.\n */\n if (s.match_length <= s.max_lazy_match/*max_insert_length*/ && s.lookahead >= MIN_MATCH) {\n s.match_length--; /* string at strstart already in table */\n do {\n s.strstart++;\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n /* strstart never exceeds WSIZE-MAX_MATCH, so there are\n * always MIN_MATCH bytes ahead.\n */\n } while (--s.match_length !== 0);\n s.strstart++;\n } else\n {\n s.strstart += s.match_length;\n s.match_length = 0;\n s.ins_h = s.window[s.strstart];\n /* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + 1]) & s.hash_mask;\n\n//#if MIN_MATCH != 3\n// Call UPDATE_HASH() MIN_MATCH-3 more times\n//#endif\n /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not\n * matter since it will be recomputed at next deflate call.\n */\n }\n } else {\n /* No match, output a literal byte */\n //Tracevv((stderr,\"%c\", s.window[s.strstart]));\n /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\n bflush = trees._tr_tally(s, 0, s.window[s.strstart]);\n\n s.lookahead--;\n s.strstart++;\n }\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n s.insert = ((s.strstart < (MIN_MATCH - 1)) ? s.strstart : MIN_MATCH - 1);\n if (flush === Z_FINISH) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n return BS_BLOCK_DONE;\n}\n\n/* ===========================================================================\n * Same as above, but achieves better compression. We use a lazy\n * evaluation for matches: a match is finally adopted only if there is\n * no better match at the next window position.\n */\nfunction deflate_slow(s, flush) {\n var hash_head; /* head of hash chain */\n var bflush; /* set if current block must be flushed */\n\n var max_insert;\n\n /* Process the input block. */\n for (;;) {\n /* Make sure that we always have enough lookahead, except\n * at the end of the input file. We need MAX_MATCH bytes\n * for the next match, plus MIN_MATCH bytes to insert the\n * string following the next match.\n */\n if (s.lookahead < MIN_LOOKAHEAD) {\n fill_window(s);\n if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH) {\n return BS_NEED_MORE;\n }\n if (s.lookahead === 0) { break; } /* flush the current block */\n }\n\n /* Insert the string window[strstart .. strstart+2] in the\n * dictionary, and set hash_head to the head of the hash chain:\n */\n hash_head = 0/*NIL*/;\n if (s.lookahead >= MIN_MATCH) {\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n }\n\n /* Find the longest match, discarding those <= prev_length.\n */\n s.prev_length = s.match_length;\n s.prev_match = s.match_start;\n s.match_length = MIN_MATCH - 1;\n\n if (hash_head !== 0/*NIL*/ && s.prev_length < s.max_lazy_match &&\n s.strstart - hash_head <= (s.w_size - MIN_LOOKAHEAD)/*MAX_DIST(s)*/) {\n /* To simplify the code, we prevent matches with the string\n * of window index 0 (in particular we have to avoid a match\n * of the string with itself at the start of the input file).\n */\n s.match_length = longest_match(s, hash_head);\n /* longest_match() sets match_start */\n\n if (s.match_length <= 5 &&\n (s.strategy === Z_FILTERED || (s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096/*TOO_FAR*/))) {\n\n /* If prev_match is also MIN_MATCH, match_start is garbage\n * but we will ignore the current match anyway.\n */\n s.match_length = MIN_MATCH - 1;\n }\n }\n /* If there was a match at the previous step and the current\n * match is not better, output the previous match:\n */\n if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) {\n max_insert = s.strstart + s.lookahead - MIN_MATCH;\n /* Do not insert strings in hash table beyond this. */\n\n //check_match(s, s.strstart-1, s.prev_match, s.prev_length);\n\n /***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,\n s.prev_length - MIN_MATCH, bflush);***/\n bflush = trees._tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH);\n /* Insert in hash table all strings up to the end of the match.\n * strstart-1 and strstart are already inserted. If there is not\n * enough lookahead, the last two strings are not inserted in\n * the hash table.\n */\n s.lookahead -= s.prev_length - 1;\n s.prev_length -= 2;\n do {\n if (++s.strstart <= max_insert) {\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[s.strstart + MIN_MATCH - 1]) & s.hash_mask;\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n }\n } while (--s.prev_length !== 0);\n s.match_available = 0;\n s.match_length = MIN_MATCH - 1;\n s.strstart++;\n\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n\n } else if (s.match_available) {\n /* If there was no match at the previous position, output a\n * single literal. If there was a match but the current match\n * is longer, truncate the previous match to a single literal.\n */\n //Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\n /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/\n bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]);\n\n if (bflush) {\n /*** FLUSH_BLOCK_ONLY(s, 0) ***/\n flush_block_only(s, false);\n /***/\n }\n s.strstart++;\n s.lookahead--;\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n } else {\n /* There is no previous match to compare with, wait for\n * the next step to decide.\n */\n s.match_available = 1;\n s.strstart++;\n s.lookahead--;\n }\n }\n //Assert (flush != Z_NO_FLUSH, \"no flush?\");\n if (s.match_available) {\n //Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\n /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/\n bflush = trees._tr_tally(s, 0, s.window[s.strstart - 1]);\n\n s.match_available = 0;\n }\n s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1;\n if (flush === Z_FINISH) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n\n return BS_BLOCK_DONE;\n}\n\n\n/* ===========================================================================\n * For Z_RLE, simply look for runs of bytes, generate matches only of distance\n * one. Do not maintain a hash table. (It will be regenerated if this run of\n * deflate switches away from Z_RLE.)\n */\nfunction deflate_rle(s, flush) {\n var bflush; /* set if current block must be flushed */\n var prev; /* byte at distance one to match */\n var scan, strend; /* scan goes up to strend for length of run */\n\n var _win = s.window;\n\n for (;;) {\n /* Make sure that we always have enough lookahead, except\n * at the end of the input file. We need MAX_MATCH bytes\n * for the longest run, plus one for the unrolled loop.\n */\n if (s.lookahead <= MAX_MATCH) {\n fill_window(s);\n if (s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH) {\n return BS_NEED_MORE;\n }\n if (s.lookahead === 0) { break; } /* flush the current block */\n }\n\n /* See how many times the previous byte repeats */\n s.match_length = 0;\n if (s.lookahead >= MIN_MATCH && s.strstart > 0) {\n scan = s.strstart - 1;\n prev = _win[scan];\n if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {\n strend = s.strstart + MAX_MATCH;\n do {\n /*jshint noempty:false*/\n } while (prev === _win[++scan] && prev === _win[++scan] &&\n prev === _win[++scan] && prev === _win[++scan] &&\n prev === _win[++scan] && prev === _win[++scan] &&\n prev === _win[++scan] && prev === _win[++scan] &&\n scan < strend);\n s.match_length = MAX_MATCH - (strend - scan);\n if (s.match_length > s.lookahead) {\n s.match_length = s.lookahead;\n }\n }\n //Assert(scan <= s->window+(uInt)(s->window_size-1), \"wild scan\");\n }\n\n /* Emit match if have run of MIN_MATCH or longer, else emit literal */\n if (s.match_length >= MIN_MATCH) {\n //check_match(s, s.strstart, s.strstart - 1, s.match_length);\n\n /*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/\n bflush = trees._tr_tally(s, 1, s.match_length - MIN_MATCH);\n\n s.lookahead -= s.match_length;\n s.strstart += s.match_length;\n s.match_length = 0;\n } else {\n /* No match, output a literal byte */\n //Tracevv((stderr,\"%c\", s->window[s->strstart]));\n /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\n bflush = trees._tr_tally(s, 0, s.window[s.strstart]);\n\n s.lookahead--;\n s.strstart++;\n }\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n s.insert = 0;\n if (flush === Z_FINISH) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n return BS_BLOCK_DONE;\n}\n\n/* ===========================================================================\n * For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table.\n * (It will be regenerated if this run of deflate switches away from Huffman.)\n */\nfunction deflate_huff(s, flush) {\n var bflush; /* set if current block must be flushed */\n\n for (;;) {\n /* Make sure that we have a literal to write. */\n if (s.lookahead === 0) {\n fill_window(s);\n if (s.lookahead === 0) {\n if (flush === Z_NO_FLUSH) {\n return BS_NEED_MORE;\n }\n break; /* flush the current block */\n }\n }\n\n /* Output a literal byte */\n s.match_length = 0;\n //Tracevv((stderr,\"%c\", s->window[s->strstart]));\n /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\n bflush = trees._tr_tally(s, 0, s.window[s.strstart]);\n s.lookahead--;\n s.strstart++;\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n s.insert = 0;\n if (flush === Z_FINISH) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.last_lit) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n return BS_BLOCK_DONE;\n}\n\n/* Values for max_lazy_match, good_match and max_chain_length, depending on\n * the desired pack level (0..9). The values given below have been tuned to\n * exclude worst case performance for pathological files. Better values may be\n * found for specific files.\n */\nfunction Config(good_length, max_lazy, nice_length, max_chain, func) {\n this.good_length = good_length;\n this.max_lazy = max_lazy;\n this.nice_length = nice_length;\n this.max_chain = max_chain;\n this.func = func;\n}\n\nvar configuration_table;\n\nconfiguration_table = [\n /* good lazy nice chain */\n new Config(0, 0, 0, 0, deflate_stored), /* 0 store only */\n new Config(4, 4, 8, 4, deflate_fast), /* 1 max speed, no lazy matches */\n new Config(4, 5, 16, 8, deflate_fast), /* 2 */\n new Config(4, 6, 32, 32, deflate_fast), /* 3 */\n\n new Config(4, 4, 16, 16, deflate_slow), /* 4 lazy matches */\n new Config(8, 16, 32, 32, deflate_slow), /* 5 */\n new Config(8, 16, 128, 128, deflate_slow), /* 6 */\n new Config(8, 32, 128, 256, deflate_slow), /* 7 */\n new Config(32, 128, 258, 1024, deflate_slow), /* 8 */\n new Config(32, 258, 258, 4096, deflate_slow) /* 9 max compression */\n];\n\n\n/* ===========================================================================\n * Initialize the \"longest match\" routines for a new zlib stream\n */\nfunction lm_init(s) {\n s.window_size = 2 * s.w_size;\n\n /*** CLEAR_HASH(s); ***/\n zero(s.head); // Fill with NIL (= 0);\n\n /* Set the default configuration parameters:\n */\n s.max_lazy_match = configuration_table[s.level].max_lazy;\n s.good_match = configuration_table[s.level].good_length;\n s.nice_match = configuration_table[s.level].nice_length;\n s.max_chain_length = configuration_table[s.level].max_chain;\n\n s.strstart = 0;\n s.block_start = 0;\n s.lookahead = 0;\n s.insert = 0;\n s.match_length = s.prev_length = MIN_MATCH - 1;\n s.match_available = 0;\n s.ins_h = 0;\n}\n\n\nfunction DeflateState() {\n this.strm = null; /* pointer back to this zlib stream */\n this.status = 0; /* as the name implies */\n this.pending_buf = null; /* output still pending */\n this.pending_buf_size = 0; /* size of pending_buf */\n this.pending_out = 0; /* next pending byte to output to the stream */\n this.pending = 0; /* nb of bytes in the pending buffer */\n this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */\n this.gzhead = null; /* gzip header information to write */\n this.gzindex = 0; /* where in extra, name, or comment */\n this.method = Z_DEFLATED; /* can only be DEFLATED */\n this.last_flush = -1; /* value of flush param for previous deflate call */\n\n this.w_size = 0; /* LZ77 window size (32K by default) */\n this.w_bits = 0; /* log2(w_size) (8..16) */\n this.w_mask = 0; /* w_size - 1 */\n\n this.window = null;\n /* Sliding window. Input bytes are read into the second half of the window,\n * and move to the first half later to keep a dictionary of at least wSize\n * bytes. With this organization, matches are limited to a distance of\n * wSize-MAX_MATCH bytes, but this ensures that IO is always\n * performed with a length multiple of the block size.\n */\n\n this.window_size = 0;\n /* Actual size of window: 2*wSize, except when the user input buffer\n * is directly used as sliding window.\n */\n\n this.prev = null;\n /* Link to older string with same hash index. To limit the size of this\n * array to 64K, this link is maintained only for the last 32K strings.\n * An index in this array is thus a window index modulo 32K.\n */\n\n this.head = null; /* Heads of the hash chains or NIL. */\n\n this.ins_h = 0; /* hash index of string to be inserted */\n this.hash_size = 0; /* number of elements in hash table */\n this.hash_bits = 0; /* log2(hash_size) */\n this.hash_mask = 0; /* hash_size-1 */\n\n this.hash_shift = 0;\n /* Number of bits by which ins_h must be shifted at each input\n * step. It must be such that after MIN_MATCH steps, the oldest\n * byte no longer takes part in the hash key, that is:\n * hash_shift * MIN_MATCH >= hash_bits\n */\n\n this.block_start = 0;\n /* Window position at the beginning of the current output block. Gets\n * negative when the window is moved backwards.\n */\n\n this.match_length = 0; /* length of best match */\n this.prev_match = 0; /* previous match */\n this.match_available = 0; /* set if previous match exists */\n this.strstart = 0; /* start of string to insert */\n this.match_start = 0; /* start of matching string */\n this.lookahead = 0; /* number of valid bytes ahead in window */\n\n this.prev_length = 0;\n /* Length of the best match at previous step. Matches not greater than this\n * are discarded. This is used in the lazy match evaluation.\n */\n\n this.max_chain_length = 0;\n /* To speed up deflation, hash chains are never searched beyond this\n * length. A higher limit improves compression ratio but degrades the\n * speed.\n */\n\n this.max_lazy_match = 0;\n /* Attempt to find a better match only when the current match is strictly\n * smaller than this value. This mechanism is used only for compression\n * levels >= 4.\n */\n // That's alias to max_lazy_match, don't use directly\n //this.max_insert_length = 0;\n /* Insert new strings in the hash table only if the match length is not\n * greater than this length. This saves time but degrades compression.\n * max_insert_length is used only for compression levels <= 3.\n */\n\n this.level = 0; /* compression level (1..9) */\n this.strategy = 0; /* favor or force Huffman coding*/\n\n this.good_match = 0;\n /* Use a faster search when the previous match is longer than this */\n\n this.nice_match = 0; /* Stop searching when current match exceeds this */\n\n /* used by trees.c: */\n\n /* Didn't use ct_data typedef below to suppress compiler warning */\n\n // struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */\n // struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */\n // struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */\n\n // Use flat array of DOUBLE size, with interleaved fata,\n // because JS does not support effective\n this.dyn_ltree = new utils.Buf16(HEAP_SIZE * 2);\n this.dyn_dtree = new utils.Buf16((2 * D_CODES + 1) * 2);\n this.bl_tree = new utils.Buf16((2 * BL_CODES + 1) * 2);\n zero(this.dyn_ltree);\n zero(this.dyn_dtree);\n zero(this.bl_tree);\n\n this.l_desc = null; /* desc. for literal tree */\n this.d_desc = null; /* desc. for distance tree */\n this.bl_desc = null; /* desc. for bit length tree */\n\n //ush bl_count[MAX_BITS+1];\n this.bl_count = new utils.Buf16(MAX_BITS + 1);\n /* number of codes at each bit length for an optimal tree */\n\n //int heap[2*L_CODES+1]; /* heap used to build the Huffman trees */\n this.heap = new utils.Buf16(2 * L_CODES + 1); /* heap used to build the Huffman trees */\n zero(this.heap);\n\n this.heap_len = 0; /* number of elements in the heap */\n this.heap_max = 0; /* element of largest frequency */\n /* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.\n * The same heap array is used to build all trees.\n */\n\n this.depth = new utils.Buf16(2 * L_CODES + 1); //uch depth[2*L_CODES+1];\n zero(this.depth);\n /* Depth of each subtree used as tie breaker for trees of equal frequency\n */\n\n this.l_buf = 0; /* buffer index for literals or lengths */\n\n this.lit_bufsize = 0;\n /* Size of match buffer for literals/lengths. There are 4 reasons for\n * limiting lit_bufsize to 64K:\n * - frequencies can be kept in 16 bit counters\n * - if compression is not successful for the first block, all input\n * data is still in the window so we can still emit a stored block even\n * when input comes from standard input. (This can also be done for\n * all blocks if lit_bufsize is not greater than 32K.)\n * - if compression is not successful for a file smaller than 64K, we can\n * even emit a stored file instead of a stored block (saving 5 bytes).\n * This is applicable only for zip (not gzip or zlib).\n * - creating new Huffman trees less frequently may not provide fast\n * adaptation to changes in the input data statistics. (Take for\n * example a binary file with poorly compressible code followed by\n * a highly compressible string table.) Smaller buffer sizes give\n * fast adaptation but have of course the overhead of transmitting\n * trees more frequently.\n * - I can't count above 4\n */\n\n this.last_lit = 0; /* running index in l_buf */\n\n this.d_buf = 0;\n /* Buffer index for distances. To simplify the code, d_buf and l_buf have\n * the same number of elements. To use different lengths, an extra flag\n * array would be necessary.\n */\n\n this.opt_len = 0; /* bit length of current block with optimal trees */\n this.static_len = 0; /* bit length of current block with static trees */\n this.matches = 0; /* number of string matches in current block */\n this.insert = 0; /* bytes at end of window left to insert */\n\n\n this.bi_buf = 0;\n /* Output buffer. bits are inserted starting at the bottom (least\n * significant bits).\n */\n this.bi_valid = 0;\n /* Number of valid bits in bi_buf. All bits above the last valid bit\n * are always zero.\n */\n\n // Used for window memory init. We safely ignore it for JS. That makes\n // sense only for pointers and memory check tools.\n //this.high_water = 0;\n /* High water mark offset in window for initialized bytes -- bytes above\n * this are set to zero in order to avoid memory check warnings when\n * longest match routines access bytes past the input. This is then\n * updated to the new high water mark.\n */\n}\n\n\nfunction deflateResetKeep(strm) {\n var s;\n\n if (!strm || !strm.state) {\n return err(strm, Z_STREAM_ERROR);\n }\n\n strm.total_in = strm.total_out = 0;\n strm.data_type = Z_UNKNOWN;\n\n s = strm.state;\n s.pending = 0;\n s.pending_out = 0;\n\n if (s.wrap < 0) {\n s.wrap = -s.wrap;\n /* was made negative by deflate(..., Z_FINISH); */\n }\n s.status = (s.wrap ? INIT_STATE : BUSY_STATE);\n strm.adler = (s.wrap === 2) ?\n 0 // crc32(0, Z_NULL, 0)\n :\n 1; // adler32(0, Z_NULL, 0)\n s.last_flush = Z_NO_FLUSH;\n trees._tr_init(s);\n return Z_OK;\n}\n\n\nfunction deflateReset(strm) {\n var ret = deflateResetKeep(strm);\n if (ret === Z_OK) {\n lm_init(strm.state);\n }\n return ret;\n}\n\n\nfunction deflateSetHeader(strm, head) {\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n if (strm.state.wrap !== 2) { return Z_STREAM_ERROR; }\n strm.state.gzhead = head;\n return Z_OK;\n}\n\n\nfunction deflateInit2(strm, level, method, windowBits, memLevel, strategy) {\n if (!strm) { // === Z_NULL\n return Z_STREAM_ERROR;\n }\n var wrap = 1;\n\n if (level === Z_DEFAULT_COMPRESSION) {\n level = 6;\n }\n\n if (windowBits < 0) { /* suppress zlib wrapper */\n wrap = 0;\n windowBits = -windowBits;\n }\n\n else if (windowBits > 15) {\n wrap = 2; /* write gzip wrapper instead */\n windowBits -= 16;\n }\n\n\n if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED ||\n windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||\n strategy < 0 || strategy > Z_FIXED) {\n return err(strm, Z_STREAM_ERROR);\n }\n\n\n if (windowBits === 8) {\n windowBits = 9;\n }\n /* until 256-byte window bug fixed */\n\n var s = new DeflateState();\n\n strm.state = s;\n s.strm = strm;\n\n s.wrap = wrap;\n s.gzhead = null;\n s.w_bits = windowBits;\n s.w_size = 1 << s.w_bits;\n s.w_mask = s.w_size - 1;\n\n s.hash_bits = memLevel + 7;\n s.hash_size = 1 << s.hash_bits;\n s.hash_mask = s.hash_size - 1;\n s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH);\n\n s.window = new utils.Buf8(s.w_size * 2);\n s.head = new utils.Buf16(s.hash_size);\n s.prev = new utils.Buf16(s.w_size);\n\n // Don't need mem init magic for JS.\n //s.high_water = 0; /* nothing written to s->window yet */\n\n s.lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */\n\n s.pending_buf_size = s.lit_bufsize * 4;\n\n //overlay = (ushf *) ZALLOC(strm, s->lit_bufsize, sizeof(ush)+2);\n //s->pending_buf = (uchf *) overlay;\n s.pending_buf = new utils.Buf8(s.pending_buf_size);\n\n // It is offset from `s.pending_buf` (size is `s.lit_bufsize * 2`)\n //s->d_buf = overlay + s->lit_bufsize/sizeof(ush);\n s.d_buf = 1 * s.lit_bufsize;\n\n //s->l_buf = s->pending_buf + (1+sizeof(ush))*s->lit_bufsize;\n s.l_buf = (1 + 2) * s.lit_bufsize;\n\n s.level = level;\n s.strategy = strategy;\n s.method = method;\n\n return deflateReset(strm);\n}\n\nfunction deflateInit(strm, level) {\n return deflateInit2(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY);\n}\n\n\nfunction deflate(strm, flush) {\n var old_flush, s;\n var beg, val; // for gzip header write only\n\n if (!strm || !strm.state ||\n flush > Z_BLOCK || flush < 0) {\n return strm ? err(strm, Z_STREAM_ERROR) : Z_STREAM_ERROR;\n }\n\n s = strm.state;\n\n if (!strm.output ||\n (!strm.input && strm.avail_in !== 0) ||\n (s.status === FINISH_STATE && flush !== Z_FINISH)) {\n return err(strm, (strm.avail_out === 0) ? Z_BUF_ERROR : Z_STREAM_ERROR);\n }\n\n s.strm = strm; /* just in case */\n old_flush = s.last_flush;\n s.last_flush = flush;\n\n /* Write the header */\n if (s.status === INIT_STATE) {\n\n if (s.wrap === 2) { // GZIP header\n strm.adler = 0; //crc32(0L, Z_NULL, 0);\n put_byte(s, 31);\n put_byte(s, 139);\n put_byte(s, 8);\n if (!s.gzhead) { // s->gzhead == Z_NULL\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, s.level === 9 ? 2 :\n (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?\n 4 : 0));\n put_byte(s, OS_CODE);\n s.status = BUSY_STATE;\n }\n else {\n put_byte(s, (s.gzhead.text ? 1 : 0) +\n (s.gzhead.hcrc ? 2 : 0) +\n (!s.gzhead.extra ? 0 : 4) +\n (!s.gzhead.name ? 0 : 8) +\n (!s.gzhead.comment ? 0 : 16)\n );\n put_byte(s, s.gzhead.time & 0xff);\n put_byte(s, (s.gzhead.time >> 8) & 0xff);\n put_byte(s, (s.gzhead.time >> 16) & 0xff);\n put_byte(s, (s.gzhead.time >> 24) & 0xff);\n put_byte(s, s.level === 9 ? 2 :\n (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?\n 4 : 0));\n put_byte(s, s.gzhead.os & 0xff);\n if (s.gzhead.extra && s.gzhead.extra.length) {\n put_byte(s, s.gzhead.extra.length & 0xff);\n put_byte(s, (s.gzhead.extra.length >> 8) & 0xff);\n }\n if (s.gzhead.hcrc) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);\n }\n s.gzindex = 0;\n s.status = EXTRA_STATE;\n }\n }\n else // DEFLATE header\n {\n var header = (Z_DEFLATED + ((s.w_bits - 8) << 4)) << 8;\n var level_flags = -1;\n\n if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) {\n level_flags = 0;\n } else if (s.level < 6) {\n level_flags = 1;\n } else if (s.level === 6) {\n level_flags = 2;\n } else {\n level_flags = 3;\n }\n header |= (level_flags << 6);\n if (s.strstart !== 0) { header |= PRESET_DICT; }\n header += 31 - (header % 31);\n\n s.status = BUSY_STATE;\n putShortMSB(s, header);\n\n /* Save the adler32 of the preset dictionary: */\n if (s.strstart !== 0) {\n putShortMSB(s, strm.adler >>> 16);\n putShortMSB(s, strm.adler & 0xffff);\n }\n strm.adler = 1; // adler32(0L, Z_NULL, 0);\n }\n }\n\n//#ifdef GZIP\n if (s.status === EXTRA_STATE) {\n if (s.gzhead.extra/* != Z_NULL*/) {\n beg = s.pending; /* start of bytes to update crc */\n\n while (s.gzindex < (s.gzhead.extra.length & 0xffff)) {\n if (s.pending === s.pending_buf_size) {\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n flush_pending(strm);\n beg = s.pending;\n if (s.pending === s.pending_buf_size) {\n break;\n }\n }\n put_byte(s, s.gzhead.extra[s.gzindex] & 0xff);\n s.gzindex++;\n }\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n if (s.gzindex === s.gzhead.extra.length) {\n s.gzindex = 0;\n s.status = NAME_STATE;\n }\n }\n else {\n s.status = NAME_STATE;\n }\n }\n if (s.status === NAME_STATE) {\n if (s.gzhead.name/* != Z_NULL*/) {\n beg = s.pending; /* start of bytes to update crc */\n //int val;\n\n do {\n if (s.pending === s.pending_buf_size) {\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n flush_pending(strm);\n beg = s.pending;\n if (s.pending === s.pending_buf_size) {\n val = 1;\n break;\n }\n }\n // JS specific: little magic to add zero terminator to end of string\n if (s.gzindex < s.gzhead.name.length) {\n val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff;\n } else {\n val = 0;\n }\n put_byte(s, val);\n } while (val !== 0);\n\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n if (val === 0) {\n s.gzindex = 0;\n s.status = COMMENT_STATE;\n }\n }\n else {\n s.status = COMMENT_STATE;\n }\n }\n if (s.status === COMMENT_STATE) {\n if (s.gzhead.comment/* != Z_NULL*/) {\n beg = s.pending; /* start of bytes to update crc */\n //int val;\n\n do {\n if (s.pending === s.pending_buf_size) {\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n flush_pending(strm);\n beg = s.pending;\n if (s.pending === s.pending_buf_size) {\n val = 1;\n break;\n }\n }\n // JS specific: little magic to add zero terminator to end of string\n if (s.gzindex < s.gzhead.comment.length) {\n val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff;\n } else {\n val = 0;\n }\n put_byte(s, val);\n } while (val !== 0);\n\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n if (val === 0) {\n s.status = HCRC_STATE;\n }\n }\n else {\n s.status = HCRC_STATE;\n }\n }\n if (s.status === HCRC_STATE) {\n if (s.gzhead.hcrc) {\n if (s.pending + 2 > s.pending_buf_size) {\n flush_pending(strm);\n }\n if (s.pending + 2 <= s.pending_buf_size) {\n put_byte(s, strm.adler & 0xff);\n put_byte(s, (strm.adler >> 8) & 0xff);\n strm.adler = 0; //crc32(0L, Z_NULL, 0);\n s.status = BUSY_STATE;\n }\n }\n else {\n s.status = BUSY_STATE;\n }\n }\n//#endif\n\n /* Flush as much pending output as possible */\n if (s.pending !== 0) {\n flush_pending(strm);\n if (strm.avail_out === 0) {\n /* Since avail_out is 0, deflate will be called again with\n * more output space, but possibly with both pending and\n * avail_in equal to zero. There won't be anything to do,\n * but this is not an error situation so make sure we\n * return OK instead of BUF_ERROR at next call of deflate:\n */\n s.last_flush = -1;\n return Z_OK;\n }\n\n /* Make sure there is something to do and avoid duplicate consecutive\n * flushes. For repeated and useless calls with Z_FINISH, we keep\n * returning Z_STREAM_END instead of Z_BUF_ERROR.\n */\n } else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) &&\n flush !== Z_FINISH) {\n return err(strm, Z_BUF_ERROR);\n }\n\n /* User must not provide more input after the first FINISH: */\n if (s.status === FINISH_STATE && strm.avail_in !== 0) {\n return err(strm, Z_BUF_ERROR);\n }\n\n /* Start a new block or continue the current one.\n */\n if (strm.avail_in !== 0 || s.lookahead !== 0 ||\n (flush !== Z_NO_FLUSH && s.status !== FINISH_STATE)) {\n var bstate = (s.strategy === Z_HUFFMAN_ONLY) ? deflate_huff(s, flush) :\n (s.strategy === Z_RLE ? deflate_rle(s, flush) :\n configuration_table[s.level].func(s, flush));\n\n if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE) {\n s.status = FINISH_STATE;\n }\n if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) {\n if (strm.avail_out === 0) {\n s.last_flush = -1;\n /* avoid BUF_ERROR next call, see above */\n }\n return Z_OK;\n /* If flush != Z_NO_FLUSH && avail_out == 0, the next call\n * of deflate should use the same flush parameter to make sure\n * that the flush is complete. So we don't have to output an\n * empty block here, this will be done at next call. This also\n * ensures that for a very small output buffer, we emit at most\n * one empty block.\n */\n }\n if (bstate === BS_BLOCK_DONE) {\n if (flush === Z_PARTIAL_FLUSH) {\n trees._tr_align(s);\n }\n else if (flush !== Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */\n\n trees._tr_stored_block(s, 0, 0, false);\n /* For a full flush, this empty block will be recognized\n * as a special marker by inflate_sync().\n */\n if (flush === Z_FULL_FLUSH) {\n /*** CLEAR_HASH(s); ***/ /* forget history */\n zero(s.head); // Fill with NIL (= 0);\n\n if (s.lookahead === 0) {\n s.strstart = 0;\n s.block_start = 0;\n s.insert = 0;\n }\n }\n }\n flush_pending(strm);\n if (strm.avail_out === 0) {\n s.last_flush = -1; /* avoid BUF_ERROR at next call, see above */\n return Z_OK;\n }\n }\n }\n //Assert(strm->avail_out > 0, \"bug2\");\n //if (strm.avail_out <= 0) { throw new Error(\"bug2\");}\n\n if (flush !== Z_FINISH) { return Z_OK; }\n if (s.wrap <= 0) { return Z_STREAM_END; }\n\n /* Write the trailer */\n if (s.wrap === 2) {\n put_byte(s, strm.adler & 0xff);\n put_byte(s, (strm.adler >> 8) & 0xff);\n put_byte(s, (strm.adler >> 16) & 0xff);\n put_byte(s, (strm.adler >> 24) & 0xff);\n put_byte(s, strm.total_in & 0xff);\n put_byte(s, (strm.total_in >> 8) & 0xff);\n put_byte(s, (strm.total_in >> 16) & 0xff);\n put_byte(s, (strm.total_in >> 24) & 0xff);\n }\n else\n {\n putShortMSB(s, strm.adler >>> 16);\n putShortMSB(s, strm.adler & 0xffff);\n }\n\n flush_pending(strm);\n /* If avail_out is zero, the application will call deflate again\n * to flush the rest.\n */\n if (s.wrap > 0) { s.wrap = -s.wrap; }\n /* write the trailer only once! */\n return s.pending !== 0 ? Z_OK : Z_STREAM_END;\n}\n\nfunction deflateEnd(strm) {\n var status;\n\n if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) {\n return Z_STREAM_ERROR;\n }\n\n status = strm.state.status;\n if (status !== INIT_STATE &&\n status !== EXTRA_STATE &&\n status !== NAME_STATE &&\n status !== COMMENT_STATE &&\n status !== HCRC_STATE &&\n status !== BUSY_STATE &&\n status !== FINISH_STATE\n ) {\n return err(strm, Z_STREAM_ERROR);\n }\n\n strm.state = null;\n\n return status === BUSY_STATE ? err(strm, Z_DATA_ERROR) : Z_OK;\n}\n\n\n/* =========================================================================\n * Initializes the compression dictionary from the given byte\n * sequence without producing any compressed output.\n */\nfunction deflateSetDictionary(strm, dictionary) {\n var dictLength = dictionary.length;\n\n var s;\n var str, n;\n var wrap;\n var avail;\n var next;\n var input;\n var tmpDict;\n\n if (!strm/*== Z_NULL*/ || !strm.state/*== Z_NULL*/) {\n return Z_STREAM_ERROR;\n }\n\n s = strm.state;\n wrap = s.wrap;\n\n if (wrap === 2 || (wrap === 1 && s.status !== INIT_STATE) || s.lookahead) {\n return Z_STREAM_ERROR;\n }\n\n /* when using zlib wrappers, compute Adler-32 for provided dictionary */\n if (wrap === 1) {\n /* adler32(strm->adler, dictionary, dictLength); */\n strm.adler = adler32(strm.adler, dictionary, dictLength, 0);\n }\n\n s.wrap = 0; /* avoid computing Adler-32 in read_buf */\n\n /* if dictionary would fill window, just replace the history */\n if (dictLength >= s.w_size) {\n if (wrap === 0) { /* already empty otherwise */\n /*** CLEAR_HASH(s); ***/\n zero(s.head); // Fill with NIL (= 0);\n s.strstart = 0;\n s.block_start = 0;\n s.insert = 0;\n }\n /* use the tail */\n // dictionary = dictionary.slice(dictLength - s.w_size);\n tmpDict = new utils.Buf8(s.w_size);\n utils.arraySet(tmpDict, dictionary, dictLength - s.w_size, s.w_size, 0);\n dictionary = tmpDict;\n dictLength = s.w_size;\n }\n /* insert dictionary into window and hash */\n avail = strm.avail_in;\n next = strm.next_in;\n input = strm.input;\n strm.avail_in = dictLength;\n strm.next_in = 0;\n strm.input = dictionary;\n fill_window(s);\n while (s.lookahead >= MIN_MATCH) {\n str = s.strstart;\n n = s.lookahead - (MIN_MATCH - 1);\n do {\n /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */\n s.ins_h = ((s.ins_h << s.hash_shift) ^ s.window[str + MIN_MATCH - 1]) & s.hash_mask;\n\n s.prev[str & s.w_mask] = s.head[s.ins_h];\n\n s.head[s.ins_h] = str;\n str++;\n } while (--n);\n s.strstart = str;\n s.lookahead = MIN_MATCH - 1;\n fill_window(s);\n }\n s.strstart += s.lookahead;\n s.block_start = s.strstart;\n s.insert = s.lookahead;\n s.lookahead = 0;\n s.match_length = s.prev_length = MIN_MATCH - 1;\n s.match_available = 0;\n strm.next_in = next;\n strm.input = input;\n strm.avail_in = avail;\n s.wrap = wrap;\n return Z_OK;\n}\n\n\nexports.deflateInit = deflateInit;\nexports.deflateInit2 = deflateInit2;\nexports.deflateReset = deflateReset;\nexports.deflateResetKeep = deflateResetKeep;\nexports.deflateSetHeader = deflateSetHeader;\nexports.deflate = deflate;\nexports.deflateEnd = deflateEnd;\nexports.deflateSetDictionary = deflateSetDictionary;\nexports.deflateInfo = 'pako deflate (from Nodeca project)';\n\n/* Not implemented\nexports.deflateBound = deflateBound;\nexports.deflateCopy = deflateCopy;\nexports.deflateParams = deflateParams;\nexports.deflatePending = deflatePending;\nexports.deflatePrime = deflatePrime;\nexports.deflateTune = deflateTune;\n*/\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/lib/zlib/deflate.js?"); + +/***/ }), + +/***/ "./node_modules/pako/lib/zlib/gzheader.js": +/*!************************************************!*\ + !*** ./node_modules/pako/lib/zlib/gzheader.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nfunction GZheader() {\n /* true if compressed data believed to be text */\n this.text = 0;\n /* modification time */\n this.time = 0;\n /* extra flags (not used when writing a gzip file) */\n this.xflags = 0;\n /* operating system */\n this.os = 0;\n /* pointer to extra field or Z_NULL if none */\n this.extra = null;\n /* extra field length (valid if extra != Z_NULL) */\n this.extra_len = 0; // Actually, we don't need it in JS,\n // but leave for few code modifications\n\n //\n // Setup limits is not necessary because in js we should not preallocate memory\n // for inflate use constant limit in 65536 bytes\n //\n\n /* space at extra (only when reading header) */\n // this.extra_max = 0;\n /* pointer to zero-terminated file name or Z_NULL */\n this.name = '';\n /* space at name (only when reading header) */\n // this.name_max = 0;\n /* pointer to zero-terminated comment or Z_NULL */\n this.comment = '';\n /* space at comment (only when reading header) */\n // this.comm_max = 0;\n /* true if there was or will be a header crc */\n this.hcrc = 0;\n /* true when done reading gzip header (not used when writing a gzip file) */\n this.done = false;\n}\n\nmodule.exports = GZheader;\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/lib/zlib/gzheader.js?"); + +/***/ }), + +/***/ "./node_modules/pako/lib/zlib/inffast.js": +/*!***********************************************!*\ + !*** ./node_modules/pako/lib/zlib/inffast.js ***! + \***********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\n// See state defs from inflate.js\nvar BAD = 30; /* got a data error -- remain here until reset */\nvar TYPE = 12; /* i: waiting for type bits, including last-flag bit */\n\n/*\n Decode literal, length, and distance codes and write out the resulting\n literal and match bytes until either not enough input or output is\n available, an end-of-block is encountered, or a data error is encountered.\n When large enough input and output buffers are supplied to inflate(), for\n example, a 16K input buffer and a 64K output buffer, more than 95% of the\n inflate execution time is spent in this routine.\n\n Entry assumptions:\n\n state.mode === LEN\n strm.avail_in >= 6\n strm.avail_out >= 258\n start >= strm.avail_out\n state.bits < 8\n\n On return, state.mode is one of:\n\n LEN -- ran out of enough output space or enough available input\n TYPE -- reached end of block code, inflate() to interpret next block\n BAD -- error in block data\n\n Notes:\n\n - The maximum input bits used by a length/distance pair is 15 bits for the\n length code, 5 bits for the length extra, 15 bits for the distance code,\n and 13 bits for the distance extra. This totals 48 bits, or six bytes.\n Therefore if strm.avail_in >= 6, then there is enough input to avoid\n checking for available input while decoding.\n\n - The maximum bytes that a single length/distance pair can output is 258\n bytes, which is the maximum length that can be coded. inflate_fast()\n requires strm.avail_out >= 258 for each loop to avoid checking for\n output space.\n */\nmodule.exports = function inflate_fast(strm, start) {\n var state;\n var _in; /* local strm.input */\n var last; /* have enough input while in < last */\n var _out; /* local strm.output */\n var beg; /* inflate()'s initial strm.output */\n var end; /* while out < end, enough space available */\n//#ifdef INFLATE_STRICT\n var dmax; /* maximum distance from zlib header */\n//#endif\n var wsize; /* window size or zero if not using window */\n var whave; /* valid bytes in the window */\n var wnext; /* window write index */\n // Use `s_window` instead `window`, avoid conflict with instrumentation tools\n var s_window; /* allocated sliding window, if wsize != 0 */\n var hold; /* local strm.hold */\n var bits; /* local strm.bits */\n var lcode; /* local strm.lencode */\n var dcode; /* local strm.distcode */\n var lmask; /* mask for first level of length codes */\n var dmask; /* mask for first level of distance codes */\n var here; /* retrieved table entry */\n var op; /* code bits, operation, extra bits, or */\n /* window position, window bytes to copy */\n var len; /* match length, unused bytes */\n var dist; /* match distance */\n var from; /* where to copy match from */\n var from_source;\n\n\n var input, output; // JS specific, because we have no pointers\n\n /* copy state to local variables */\n state = strm.state;\n //here = state.here;\n _in = strm.next_in;\n input = strm.input;\n last = _in + (strm.avail_in - 5);\n _out = strm.next_out;\n output = strm.output;\n beg = _out - (start - strm.avail_out);\n end = _out + (strm.avail_out - 257);\n//#ifdef INFLATE_STRICT\n dmax = state.dmax;\n//#endif\n wsize = state.wsize;\n whave = state.whave;\n wnext = state.wnext;\n s_window = state.window;\n hold = state.hold;\n bits = state.bits;\n lcode = state.lencode;\n dcode = state.distcode;\n lmask = (1 << state.lenbits) - 1;\n dmask = (1 << state.distbits) - 1;\n\n\n /* decode literals and length/distances until end-of-block or not enough\n input data or output space */\n\n top:\n do {\n if (bits < 15) {\n hold += input[_in++] << bits;\n bits += 8;\n hold += input[_in++] << bits;\n bits += 8;\n }\n\n here = lcode[hold & lmask];\n\n dolen:\n for (;;) { // Goto emulation\n op = here >>> 24/*here.bits*/;\n hold >>>= op;\n bits -= op;\n op = (here >>> 16) & 0xff/*here.op*/;\n if (op === 0) { /* literal */\n //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n // \"inflate: literal '%c'\\n\" :\n // \"inflate: literal 0x%02x\\n\", here.val));\n output[_out++] = here & 0xffff/*here.val*/;\n }\n else if (op & 16) { /* length base */\n len = here & 0xffff/*here.val*/;\n op &= 15; /* number of extra bits */\n if (op) {\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n }\n len += hold & ((1 << op) - 1);\n hold >>>= op;\n bits -= op;\n }\n //Tracevv((stderr, \"inflate: length %u\\n\", len));\n if (bits < 15) {\n hold += input[_in++] << bits;\n bits += 8;\n hold += input[_in++] << bits;\n bits += 8;\n }\n here = dcode[hold & dmask];\n\n dodist:\n for (;;) { // goto emulation\n op = here >>> 24/*here.bits*/;\n hold >>>= op;\n bits -= op;\n op = (here >>> 16) & 0xff/*here.op*/;\n\n if (op & 16) { /* distance base */\n dist = here & 0xffff/*here.val*/;\n op &= 15; /* number of extra bits */\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n }\n }\n dist += hold & ((1 << op) - 1);\n//#ifdef INFLATE_STRICT\n if (dist > dmax) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break top;\n }\n//#endif\n hold >>>= op;\n bits -= op;\n //Tracevv((stderr, \"inflate: distance %u\\n\", dist));\n op = _out - beg; /* max distance in output */\n if (dist > op) { /* see if copy from window */\n op = dist - op; /* distance back in window */\n if (op > whave) {\n if (state.sane) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break top;\n }\n\n// (!) This block is disabled in zlib defaults,\n// don't enable it for binary compatibility\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n// if (len <= op - whave) {\n// do {\n// output[_out++] = 0;\n// } while (--len);\n// continue top;\n// }\n// len -= op - whave;\n// do {\n// output[_out++] = 0;\n// } while (--op > whave);\n// if (op === 0) {\n// from = _out - dist;\n// do {\n// output[_out++] = output[from++];\n// } while (--len);\n// continue top;\n// }\n//#endif\n }\n from = 0; // window index\n from_source = s_window;\n if (wnext === 0) { /* very common case */\n from += wsize - op;\n if (op < len) { /* some from window */\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n else if (wnext < op) { /* wrap around window */\n from += wsize + wnext - op;\n op -= wnext;\n if (op < len) { /* some from end of window */\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = 0;\n if (wnext < len) { /* some from start of window */\n op = wnext;\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n }\n else { /* contiguous in window */\n from += wnext - op;\n if (op < len) { /* some from window */\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n while (len > 2) {\n output[_out++] = from_source[from++];\n output[_out++] = from_source[from++];\n output[_out++] = from_source[from++];\n len -= 3;\n }\n if (len) {\n output[_out++] = from_source[from++];\n if (len > 1) {\n output[_out++] = from_source[from++];\n }\n }\n }\n else {\n from = _out - dist; /* copy direct from output */\n do { /* minimum length is three */\n output[_out++] = output[from++];\n output[_out++] = output[from++];\n output[_out++] = output[from++];\n len -= 3;\n } while (len > 2);\n if (len) {\n output[_out++] = output[from++];\n if (len > 1) {\n output[_out++] = output[from++];\n }\n }\n }\n }\n else if ((op & 64) === 0) { /* 2nd level distance code */\n here = dcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\n continue dodist;\n }\n else {\n strm.msg = 'invalid distance code';\n state.mode = BAD;\n break top;\n }\n\n break; // need to emulate goto via \"continue\"\n }\n }\n else if ((op & 64) === 0) { /* 2nd level length code */\n here = lcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\n continue dolen;\n }\n else if (op & 32) { /* end-of-block */\n //Tracevv((stderr, \"inflate: end of block\\n\"));\n state.mode = TYPE;\n break top;\n }\n else {\n strm.msg = 'invalid literal/length code';\n state.mode = BAD;\n break top;\n }\n\n break; // need to emulate goto via \"continue\"\n }\n } while (_in < last && _out < end);\n\n /* return unused bytes (on entry, bits < 8, so in won't go too far back) */\n len = bits >> 3;\n _in -= len;\n bits -= len << 3;\n hold &= (1 << bits) - 1;\n\n /* update state and return */\n strm.next_in = _in;\n strm.next_out = _out;\n strm.avail_in = (_in < last ? 5 + (last - _in) : 5 - (_in - last));\n strm.avail_out = (_out < end ? 257 + (end - _out) : 257 - (_out - end));\n state.hold = hold;\n state.bits = bits;\n return;\n};\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/lib/zlib/inffast.js?"); + +/***/ }), + +/***/ "./node_modules/pako/lib/zlib/inflate.js": +/*!***********************************************!*\ + !*** ./node_modules/pako/lib/zlib/inflate.js ***! + \***********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nvar utils = __webpack_require__(/*! ../utils/common */ \"./node_modules/pako/lib/utils/common.js\");\nvar adler32 = __webpack_require__(/*! ./adler32 */ \"./node_modules/pako/lib/zlib/adler32.js\");\nvar crc32 = __webpack_require__(/*! ./crc32 */ \"./node_modules/pako/lib/zlib/crc32.js\");\nvar inflate_fast = __webpack_require__(/*! ./inffast */ \"./node_modules/pako/lib/zlib/inffast.js\");\nvar inflate_table = __webpack_require__(/*! ./inftrees */ \"./node_modules/pako/lib/zlib/inftrees.js\");\n\nvar CODES = 0;\nvar LENS = 1;\nvar DISTS = 2;\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\n\n/* Allowed flush values; see deflate() and inflate() below for details */\n//var Z_NO_FLUSH = 0;\n//var Z_PARTIAL_FLUSH = 1;\n//var Z_SYNC_FLUSH = 2;\n//var Z_FULL_FLUSH = 3;\nvar Z_FINISH = 4;\nvar Z_BLOCK = 5;\nvar Z_TREES = 6;\n\n\n/* Return codes for the compression/decompression functions. Negative values\n * are errors, positive values are used for special but normal events.\n */\nvar Z_OK = 0;\nvar Z_STREAM_END = 1;\nvar Z_NEED_DICT = 2;\n//var Z_ERRNO = -1;\nvar Z_STREAM_ERROR = -2;\nvar Z_DATA_ERROR = -3;\nvar Z_MEM_ERROR = -4;\nvar Z_BUF_ERROR = -5;\n//var Z_VERSION_ERROR = -6;\n\n/* The deflate compression method */\nvar Z_DEFLATED = 8;\n\n\n/* STATES ====================================================================*/\n/* ===========================================================================*/\n\n\nvar HEAD = 1; /* i: waiting for magic header */\nvar FLAGS = 2; /* i: waiting for method and flags (gzip) */\nvar TIME = 3; /* i: waiting for modification time (gzip) */\nvar OS = 4; /* i: waiting for extra flags and operating system (gzip) */\nvar EXLEN = 5; /* i: waiting for extra length (gzip) */\nvar EXTRA = 6; /* i: waiting for extra bytes (gzip) */\nvar NAME = 7; /* i: waiting for end of file name (gzip) */\nvar COMMENT = 8; /* i: waiting for end of comment (gzip) */\nvar HCRC = 9; /* i: waiting for header crc (gzip) */\nvar DICTID = 10; /* i: waiting for dictionary check value */\nvar DICT = 11; /* waiting for inflateSetDictionary() call */\nvar TYPE = 12; /* i: waiting for type bits, including last-flag bit */\nvar TYPEDO = 13; /* i: same, but skip check to exit inflate on new block */\nvar STORED = 14; /* i: waiting for stored size (length and complement) */\nvar COPY_ = 15; /* i/o: same as COPY below, but only first time in */\nvar COPY = 16; /* i/o: waiting for input or output to copy stored block */\nvar TABLE = 17; /* i: waiting for dynamic block table lengths */\nvar LENLENS = 18; /* i: waiting for code length code lengths */\nvar CODELENS = 19; /* i: waiting for length/lit and distance code lengths */\nvar LEN_ = 20; /* i: same as LEN below, but only first time in */\nvar LEN = 21; /* i: waiting for length/lit/eob code */\nvar LENEXT = 22; /* i: waiting for length extra bits */\nvar DIST = 23; /* i: waiting for distance code */\nvar DISTEXT = 24; /* i: waiting for distance extra bits */\nvar MATCH = 25; /* o: waiting for output space to copy string */\nvar LIT = 26; /* o: waiting for output space to write literal */\nvar CHECK = 27; /* i: waiting for 32-bit check value */\nvar LENGTH = 28; /* i: waiting for 32-bit length (gzip) */\nvar DONE = 29; /* finished check, done -- remain here until reset */\nvar BAD = 30; /* got a data error -- remain here until reset */\nvar MEM = 31; /* got an inflate() memory error -- remain here until reset */\nvar SYNC = 32; /* looking for synchronization bytes to restart inflate() */\n\n/* ===========================================================================*/\n\n\n\nvar ENOUGH_LENS = 852;\nvar ENOUGH_DISTS = 592;\n//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\n\nvar MAX_WBITS = 15;\n/* 32K LZ77 window */\nvar DEF_WBITS = MAX_WBITS;\n\n\nfunction zswap32(q) {\n return (((q >>> 24) & 0xff) +\n ((q >>> 8) & 0xff00) +\n ((q & 0xff00) << 8) +\n ((q & 0xff) << 24));\n}\n\n\nfunction InflateState() {\n this.mode = 0; /* current inflate mode */\n this.last = false; /* true if processing last block */\n this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */\n this.havedict = false; /* true if dictionary provided */\n this.flags = 0; /* gzip header method and flags (0 if zlib) */\n this.dmax = 0; /* zlib header max distance (INFLATE_STRICT) */\n this.check = 0; /* protected copy of check value */\n this.total = 0; /* protected copy of output count */\n // TODO: may be {}\n this.head = null; /* where to save gzip header information */\n\n /* sliding window */\n this.wbits = 0; /* log base 2 of requested window size */\n this.wsize = 0; /* window size or zero if not using window */\n this.whave = 0; /* valid bytes in the window */\n this.wnext = 0; /* window write index */\n this.window = null; /* allocated sliding window, if needed */\n\n /* bit accumulator */\n this.hold = 0; /* input bit accumulator */\n this.bits = 0; /* number of bits in \"in\" */\n\n /* for string and stored block copying */\n this.length = 0; /* literal or length of data to copy */\n this.offset = 0; /* distance back to copy string from */\n\n /* for table and code decoding */\n this.extra = 0; /* extra bits needed */\n\n /* fixed and dynamic code tables */\n this.lencode = null; /* starting table for length/literal codes */\n this.distcode = null; /* starting table for distance codes */\n this.lenbits = 0; /* index bits for lencode */\n this.distbits = 0; /* index bits for distcode */\n\n /* dynamic table building */\n this.ncode = 0; /* number of code length code lengths */\n this.nlen = 0; /* number of length code lengths */\n this.ndist = 0; /* number of distance code lengths */\n this.have = 0; /* number of code lengths in lens[] */\n this.next = null; /* next available space in codes[] */\n\n this.lens = new utils.Buf16(320); /* temporary storage for code lengths */\n this.work = new utils.Buf16(288); /* work area for code table building */\n\n /*\n because we don't have pointers in js, we use lencode and distcode directly\n as buffers so we don't need codes\n */\n //this.codes = new utils.Buf32(ENOUGH); /* space for code tables */\n this.lendyn = null; /* dynamic table for length/literal codes (JS specific) */\n this.distdyn = null; /* dynamic table for distance codes (JS specific) */\n this.sane = 0; /* if false, allow invalid distance too far */\n this.back = 0; /* bits back of last unprocessed length/lit */\n this.was = 0; /* initial length of match */\n}\n\nfunction inflateResetKeep(strm) {\n var state;\n\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n strm.total_in = strm.total_out = state.total = 0;\n strm.msg = ''; /*Z_NULL*/\n if (state.wrap) { /* to support ill-conceived Java test suite */\n strm.adler = state.wrap & 1;\n }\n state.mode = HEAD;\n state.last = 0;\n state.havedict = 0;\n state.dmax = 32768;\n state.head = null/*Z_NULL*/;\n state.hold = 0;\n state.bits = 0;\n //state.lencode = state.distcode = state.next = state.codes;\n state.lencode = state.lendyn = new utils.Buf32(ENOUGH_LENS);\n state.distcode = state.distdyn = new utils.Buf32(ENOUGH_DISTS);\n\n state.sane = 1;\n state.back = -1;\n //Tracev((stderr, \"inflate: reset\\n\"));\n return Z_OK;\n}\n\nfunction inflateReset(strm) {\n var state;\n\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n state.wsize = 0;\n state.whave = 0;\n state.wnext = 0;\n return inflateResetKeep(strm);\n\n}\n\nfunction inflateReset2(strm, windowBits) {\n var wrap;\n var state;\n\n /* get the state */\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n\n /* extract wrap request from windowBits parameter */\n if (windowBits < 0) {\n wrap = 0;\n windowBits = -windowBits;\n }\n else {\n wrap = (windowBits >> 4) + 1;\n if (windowBits < 48) {\n windowBits &= 15;\n }\n }\n\n /* set number of window bits, free window if different */\n if (windowBits && (windowBits < 8 || windowBits > 15)) {\n return Z_STREAM_ERROR;\n }\n if (state.window !== null && state.wbits !== windowBits) {\n state.window = null;\n }\n\n /* update state and reset the rest of it */\n state.wrap = wrap;\n state.wbits = windowBits;\n return inflateReset(strm);\n}\n\nfunction inflateInit2(strm, windowBits) {\n var ret;\n var state;\n\n if (!strm) { return Z_STREAM_ERROR; }\n //strm.msg = Z_NULL; /* in case we return an error */\n\n state = new InflateState();\n\n //if (state === Z_NULL) return Z_MEM_ERROR;\n //Tracev((stderr, \"inflate: allocated\\n\"));\n strm.state = state;\n state.window = null/*Z_NULL*/;\n ret = inflateReset2(strm, windowBits);\n if (ret !== Z_OK) {\n strm.state = null/*Z_NULL*/;\n }\n return ret;\n}\n\nfunction inflateInit(strm) {\n return inflateInit2(strm, DEF_WBITS);\n}\n\n\n/*\n Return state with length and distance decoding tables and index sizes set to\n fixed code decoding. Normally this returns fixed tables from inffixed.h.\n If BUILDFIXED is defined, then instead this routine builds the tables the\n first time it's called, and returns those tables the first time and\n thereafter. This reduces the size of the code by about 2K bytes, in\n exchange for a little execution time. However, BUILDFIXED should not be\n used for threaded applications, since the rewriting of the tables and virgin\n may not be thread-safe.\n */\nvar virgin = true;\n\nvar lenfix, distfix; // We have no pointers in JS, so keep tables separate\n\nfunction fixedtables(state) {\n /* build fixed huffman tables if first call (may not be thread safe) */\n if (virgin) {\n var sym;\n\n lenfix = new utils.Buf32(512);\n distfix = new utils.Buf32(32);\n\n /* literal/length table */\n sym = 0;\n while (sym < 144) { state.lens[sym++] = 8; }\n while (sym < 256) { state.lens[sym++] = 9; }\n while (sym < 280) { state.lens[sym++] = 7; }\n while (sym < 288) { state.lens[sym++] = 8; }\n\n inflate_table(LENS, state.lens, 0, 288, lenfix, 0, state.work, { bits: 9 });\n\n /* distance table */\n sym = 0;\n while (sym < 32) { state.lens[sym++] = 5; }\n\n inflate_table(DISTS, state.lens, 0, 32, distfix, 0, state.work, { bits: 5 });\n\n /* do this just once */\n virgin = false;\n }\n\n state.lencode = lenfix;\n state.lenbits = 9;\n state.distcode = distfix;\n state.distbits = 5;\n}\n\n\n/*\n Update the window with the last wsize (normally 32K) bytes written before\n returning. If window does not exist yet, create it. This is only called\n when a window is already in use, or when output has been written during this\n inflate call, but the end of the deflate stream has not been reached yet.\n It is also called to create a window for dictionary data when a dictionary\n is loaded.\n\n Providing output buffers larger than 32K to inflate() should provide a speed\n advantage, since only the last 32K of output is copied to the sliding window\n upon return from inflate(), and since all distances after the first 32K of\n output will fall in the output data, making match copies simpler and faster.\n The advantage may be dependent on the size of the processor's data caches.\n */\nfunction updatewindow(strm, src, end, copy) {\n var dist;\n var state = strm.state;\n\n /* if it hasn't been done already, allocate space for the window */\n if (state.window === null) {\n state.wsize = 1 << state.wbits;\n state.wnext = 0;\n state.whave = 0;\n\n state.window = new utils.Buf8(state.wsize);\n }\n\n /* copy state->wsize or less output bytes into the circular window */\n if (copy >= state.wsize) {\n utils.arraySet(state.window, src, end - state.wsize, state.wsize, 0);\n state.wnext = 0;\n state.whave = state.wsize;\n }\n else {\n dist = state.wsize - state.wnext;\n if (dist > copy) {\n dist = copy;\n }\n //zmemcpy(state->window + state->wnext, end - copy, dist);\n utils.arraySet(state.window, src, end - copy, dist, state.wnext);\n copy -= dist;\n if (copy) {\n //zmemcpy(state->window, end - copy, copy);\n utils.arraySet(state.window, src, end - copy, copy, 0);\n state.wnext = copy;\n state.whave = state.wsize;\n }\n else {\n state.wnext += dist;\n if (state.wnext === state.wsize) { state.wnext = 0; }\n if (state.whave < state.wsize) { state.whave += dist; }\n }\n }\n return 0;\n}\n\nfunction inflate(strm, flush) {\n var state;\n var input, output; // input/output buffers\n var next; /* next input INDEX */\n var put; /* next output INDEX */\n var have, left; /* available input and output */\n var hold; /* bit buffer */\n var bits; /* bits in bit buffer */\n var _in, _out; /* save starting available input and output */\n var copy; /* number of stored or match bytes to copy */\n var from; /* where to copy match bytes from */\n var from_source;\n var here = 0; /* current decoding table entry */\n var here_bits, here_op, here_val; // paked \"here\" denormalized (JS specific)\n //var last; /* parent table entry */\n var last_bits, last_op, last_val; // paked \"last\" denormalized (JS specific)\n var len; /* length to copy for repeats, bits to drop */\n var ret; /* return code */\n var hbuf = new utils.Buf8(4); /* buffer for gzip header crc calculation */\n var opts;\n\n var n; // temporary var for NEED_BITS\n\n var order = /* permutation of code lengths */\n [ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ];\n\n\n if (!strm || !strm.state || !strm.output ||\n (!strm.input && strm.avail_in !== 0)) {\n return Z_STREAM_ERROR;\n }\n\n state = strm.state;\n if (state.mode === TYPE) { state.mode = TYPEDO; } /* skip check */\n\n\n //--- LOAD() ---\n put = strm.next_out;\n output = strm.output;\n left = strm.avail_out;\n next = strm.next_in;\n input = strm.input;\n have = strm.avail_in;\n hold = state.hold;\n bits = state.bits;\n //---\n\n _in = have;\n _out = left;\n ret = Z_OK;\n\n inf_leave: // goto emulation\n for (;;) {\n switch (state.mode) {\n case HEAD:\n if (state.wrap === 0) {\n state.mode = TYPEDO;\n break;\n }\n //=== NEEDBITS(16);\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if ((state.wrap & 2) && hold === 0x8b1f) { /* gzip header */\n state.check = 0/*crc32(0L, Z_NULL, 0)*/;\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = FLAGS;\n break;\n }\n state.flags = 0; /* expect zlib header */\n if (state.head) {\n state.head.done = false;\n }\n if (!(state.wrap & 1) || /* check if zlib header allowed */\n (((hold & 0xff)/*BITS(8)*/ << 8) + (hold >> 8)) % 31) {\n strm.msg = 'incorrect header check';\n state.mode = BAD;\n break;\n }\n if ((hold & 0x0f)/*BITS(4)*/ !== Z_DEFLATED) {\n strm.msg = 'unknown compression method';\n state.mode = BAD;\n break;\n }\n //--- DROPBITS(4) ---//\n hold >>>= 4;\n bits -= 4;\n //---//\n len = (hold & 0x0f)/*BITS(4)*/ + 8;\n if (state.wbits === 0) {\n state.wbits = len;\n }\n else if (len > state.wbits) {\n strm.msg = 'invalid window size';\n state.mode = BAD;\n break;\n }\n state.dmax = 1 << len;\n //Tracev((stderr, \"inflate: zlib header ok\\n\"));\n strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;\n state.mode = hold & 0x200 ? DICTID : TYPE;\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n break;\n case FLAGS:\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.flags = hold;\n if ((state.flags & 0xff) !== Z_DEFLATED) {\n strm.msg = 'unknown compression method';\n state.mode = BAD;\n break;\n }\n if (state.flags & 0xe000) {\n strm.msg = 'unknown header flags set';\n state.mode = BAD;\n break;\n }\n if (state.head) {\n state.head.text = ((hold >> 8) & 1);\n }\n if (state.flags & 0x0200) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = TIME;\n /* falls through */\n case TIME:\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (state.head) {\n state.head.time = hold;\n }\n if (state.flags & 0x0200) {\n //=== CRC4(state.check, hold)\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n hbuf[2] = (hold >>> 16) & 0xff;\n hbuf[3] = (hold >>> 24) & 0xff;\n state.check = crc32(state.check, hbuf, 4, 0);\n //===\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = OS;\n /* falls through */\n case OS:\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (state.head) {\n state.head.xflags = (hold & 0xff);\n state.head.os = (hold >> 8);\n }\n if (state.flags & 0x0200) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = EXLEN;\n /* falls through */\n case EXLEN:\n if (state.flags & 0x0400) {\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.length = hold;\n if (state.head) {\n state.head.extra_len = hold;\n }\n if (state.flags & 0x0200) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n }\n else if (state.head) {\n state.head.extra = null/*Z_NULL*/;\n }\n state.mode = EXTRA;\n /* falls through */\n case EXTRA:\n if (state.flags & 0x0400) {\n copy = state.length;\n if (copy > have) { copy = have; }\n if (copy) {\n if (state.head) {\n len = state.head.extra_len - state.length;\n if (!state.head.extra) {\n // Use untyped array for more convenient processing later\n state.head.extra = new Array(state.head.extra_len);\n }\n utils.arraySet(\n state.head.extra,\n input,\n next,\n // extra field is limited to 65536 bytes\n // - no need for additional size check\n copy,\n /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/\n len\n );\n //zmemcpy(state.head.extra + len, next,\n // len + copy > state.head.extra_max ?\n // state.head.extra_max - len : copy);\n }\n if (state.flags & 0x0200) {\n state.check = crc32(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n state.length -= copy;\n }\n if (state.length) { break inf_leave; }\n }\n state.length = 0;\n state.mode = NAME;\n /* falls through */\n case NAME:\n if (state.flags & 0x0800) {\n if (have === 0) { break inf_leave; }\n copy = 0;\n do {\n // TODO: 2 or 1 bytes?\n len = input[next + copy++];\n /* use constant limit because in js we should not preallocate memory */\n if (state.head && len &&\n (state.length < 65536 /*state.head.name_max*/)) {\n state.head.name += String.fromCharCode(len);\n }\n } while (len && copy < have);\n\n if (state.flags & 0x0200) {\n state.check = crc32(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n if (len) { break inf_leave; }\n }\n else if (state.head) {\n state.head.name = null;\n }\n state.length = 0;\n state.mode = COMMENT;\n /* falls through */\n case COMMENT:\n if (state.flags & 0x1000) {\n if (have === 0) { break inf_leave; }\n copy = 0;\n do {\n len = input[next + copy++];\n /* use constant limit because in js we should not preallocate memory */\n if (state.head && len &&\n (state.length < 65536 /*state.head.comm_max*/)) {\n state.head.comment += String.fromCharCode(len);\n }\n } while (len && copy < have);\n if (state.flags & 0x0200) {\n state.check = crc32(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n if (len) { break inf_leave; }\n }\n else if (state.head) {\n state.head.comment = null;\n }\n state.mode = HCRC;\n /* falls through */\n case HCRC:\n if (state.flags & 0x0200) {\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (hold !== (state.check & 0xffff)) {\n strm.msg = 'header crc mismatch';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n }\n if (state.head) {\n state.head.hcrc = ((state.flags >> 9) & 1);\n state.head.done = true;\n }\n strm.adler = state.check = 0;\n state.mode = TYPE;\n break;\n case DICTID:\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n strm.adler = state.check = zswap32(hold);\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = DICT;\n /* falls through */\n case DICT:\n if (state.havedict === 0) {\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n return Z_NEED_DICT;\n }\n strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;\n state.mode = TYPE;\n /* falls through */\n case TYPE:\n if (flush === Z_BLOCK || flush === Z_TREES) { break inf_leave; }\n /* falls through */\n case TYPEDO:\n if (state.last) {\n //--- BYTEBITS() ---//\n hold >>>= bits & 7;\n bits -= bits & 7;\n //---//\n state.mode = CHECK;\n break;\n }\n //=== NEEDBITS(3); */\n while (bits < 3) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.last = (hold & 0x01)/*BITS(1)*/;\n //--- DROPBITS(1) ---//\n hold >>>= 1;\n bits -= 1;\n //---//\n\n switch ((hold & 0x03)/*BITS(2)*/) {\n case 0: /* stored block */\n //Tracev((stderr, \"inflate: stored block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = STORED;\n break;\n case 1: /* fixed block */\n fixedtables(state);\n //Tracev((stderr, \"inflate: fixed codes block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = LEN_; /* decode codes */\n if (flush === Z_TREES) {\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n break inf_leave;\n }\n break;\n case 2: /* dynamic block */\n //Tracev((stderr, \"inflate: dynamic codes block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = TABLE;\n break;\n case 3:\n strm.msg = 'invalid block type';\n state.mode = BAD;\n }\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n break;\n case STORED:\n //--- BYTEBITS() ---// /* go to byte boundary */\n hold >>>= bits & 7;\n bits -= bits & 7;\n //---//\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if ((hold & 0xffff) !== ((hold >>> 16) ^ 0xffff)) {\n strm.msg = 'invalid stored block lengths';\n state.mode = BAD;\n break;\n }\n state.length = hold & 0xffff;\n //Tracev((stderr, \"inflate: stored length %u\\n\",\n // state.length));\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = COPY_;\n if (flush === Z_TREES) { break inf_leave; }\n /* falls through */\n case COPY_:\n state.mode = COPY;\n /* falls through */\n case COPY:\n copy = state.length;\n if (copy) {\n if (copy > have) { copy = have; }\n if (copy > left) { copy = left; }\n if (copy === 0) { break inf_leave; }\n //--- zmemcpy(put, next, copy); ---\n utils.arraySet(output, input, next, copy, put);\n //---//\n have -= copy;\n next += copy;\n left -= copy;\n put += copy;\n state.length -= copy;\n break;\n }\n //Tracev((stderr, \"inflate: stored end\\n\"));\n state.mode = TYPE;\n break;\n case TABLE:\n //=== NEEDBITS(14); */\n while (bits < 14) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.nlen = (hold & 0x1f)/*BITS(5)*/ + 257;\n //--- DROPBITS(5) ---//\n hold >>>= 5;\n bits -= 5;\n //---//\n state.ndist = (hold & 0x1f)/*BITS(5)*/ + 1;\n //--- DROPBITS(5) ---//\n hold >>>= 5;\n bits -= 5;\n //---//\n state.ncode = (hold & 0x0f)/*BITS(4)*/ + 4;\n //--- DROPBITS(4) ---//\n hold >>>= 4;\n bits -= 4;\n //---//\n//#ifndef PKZIP_BUG_WORKAROUND\n if (state.nlen > 286 || state.ndist > 30) {\n strm.msg = 'too many length or distance symbols';\n state.mode = BAD;\n break;\n }\n//#endif\n //Tracev((stderr, \"inflate: table sizes ok\\n\"));\n state.have = 0;\n state.mode = LENLENS;\n /* falls through */\n case LENLENS:\n while (state.have < state.ncode) {\n //=== NEEDBITS(3);\n while (bits < 3) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.lens[order[state.have++]] = (hold & 0x07);//BITS(3);\n //--- DROPBITS(3) ---//\n hold >>>= 3;\n bits -= 3;\n //---//\n }\n while (state.have < 19) {\n state.lens[order[state.have++]] = 0;\n }\n // We have separate tables & no pointers. 2 commented lines below not needed.\n //state.next = state.codes;\n //state.lencode = state.next;\n // Switch to use dynamic table\n state.lencode = state.lendyn;\n state.lenbits = 7;\n\n opts = { bits: state.lenbits };\n ret = inflate_table(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts);\n state.lenbits = opts.bits;\n\n if (ret) {\n strm.msg = 'invalid code lengths set';\n state.mode = BAD;\n break;\n }\n //Tracev((stderr, \"inflate: code lengths ok\\n\"));\n state.have = 0;\n state.mode = CODELENS;\n /* falls through */\n case CODELENS:\n while (state.have < state.nlen + state.ndist) {\n for (;;) {\n here = state.lencode[hold & ((1 << state.lenbits) - 1)];/*BITS(state.lenbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if (here_val < 16) {\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.lens[state.have++] = here_val;\n }\n else {\n if (here_val === 16) {\n //=== NEEDBITS(here.bits + 2);\n n = here_bits + 2;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n if (state.have === 0) {\n strm.msg = 'invalid bit length repeat';\n state.mode = BAD;\n break;\n }\n len = state.lens[state.have - 1];\n copy = 3 + (hold & 0x03);//BITS(2);\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n }\n else if (here_val === 17) {\n //=== NEEDBITS(here.bits + 3);\n n = here_bits + 3;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n len = 0;\n copy = 3 + (hold & 0x07);//BITS(3);\n //--- DROPBITS(3) ---//\n hold >>>= 3;\n bits -= 3;\n //---//\n }\n else {\n //=== NEEDBITS(here.bits + 7);\n n = here_bits + 7;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n len = 0;\n copy = 11 + (hold & 0x7f);//BITS(7);\n //--- DROPBITS(7) ---//\n hold >>>= 7;\n bits -= 7;\n //---//\n }\n if (state.have + copy > state.nlen + state.ndist) {\n strm.msg = 'invalid bit length repeat';\n state.mode = BAD;\n break;\n }\n while (copy--) {\n state.lens[state.have++] = len;\n }\n }\n }\n\n /* handle error breaks in while */\n if (state.mode === BAD) { break; }\n\n /* check for end-of-block code (better have one) */\n if (state.lens[256] === 0) {\n strm.msg = 'invalid code -- missing end-of-block';\n state.mode = BAD;\n break;\n }\n\n /* build code tables -- note: do not change the lenbits or distbits\n values here (9 and 6) without reading the comments in inftrees.h\n concerning the ENOUGH constants, which depend on those values */\n state.lenbits = 9;\n\n opts = { bits: state.lenbits };\n ret = inflate_table(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts);\n // We have separate tables & no pointers. 2 commented lines below not needed.\n // state.next_index = opts.table_index;\n state.lenbits = opts.bits;\n // state.lencode = state.next;\n\n if (ret) {\n strm.msg = 'invalid literal/lengths set';\n state.mode = BAD;\n break;\n }\n\n state.distbits = 6;\n //state.distcode.copy(state.codes);\n // Switch to use dynamic table\n state.distcode = state.distdyn;\n opts = { bits: state.distbits };\n ret = inflate_table(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts);\n // We have separate tables & no pointers. 2 commented lines below not needed.\n // state.next_index = opts.table_index;\n state.distbits = opts.bits;\n // state.distcode = state.next;\n\n if (ret) {\n strm.msg = 'invalid distances set';\n state.mode = BAD;\n break;\n }\n //Tracev((stderr, 'inflate: codes ok\\n'));\n state.mode = LEN_;\n if (flush === Z_TREES) { break inf_leave; }\n /* falls through */\n case LEN_:\n state.mode = LEN;\n /* falls through */\n case LEN:\n if (have >= 6 && left >= 258) {\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n inflate_fast(strm, _out);\n //--- LOAD() ---\n put = strm.next_out;\n output = strm.output;\n left = strm.avail_out;\n next = strm.next_in;\n input = strm.input;\n have = strm.avail_in;\n hold = state.hold;\n bits = state.bits;\n //---\n\n if (state.mode === TYPE) {\n state.back = -1;\n }\n break;\n }\n state.back = 0;\n for (;;) {\n here = state.lencode[hold & ((1 << state.lenbits) - 1)]; /*BITS(state.lenbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if (here_bits <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if (here_op && (here_op & 0xf0) === 0) {\n last_bits = here_bits;\n last_op = here_op;\n last_val = here_val;\n for (;;) {\n here = state.lencode[last_val +\n ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((last_bits + here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n //--- DROPBITS(last.bits) ---//\n hold >>>= last_bits;\n bits -= last_bits;\n //---//\n state.back += last_bits;\n }\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.back += here_bits;\n state.length = here_val;\n if (here_op === 0) {\n //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n // \"inflate: literal '%c'\\n\" :\n // \"inflate: literal 0x%02x\\n\", here.val));\n state.mode = LIT;\n break;\n }\n if (here_op & 32) {\n //Tracevv((stderr, \"inflate: end of block\\n\"));\n state.back = -1;\n state.mode = TYPE;\n break;\n }\n if (here_op & 64) {\n strm.msg = 'invalid literal/length code';\n state.mode = BAD;\n break;\n }\n state.extra = here_op & 15;\n state.mode = LENEXT;\n /* falls through */\n case LENEXT:\n if (state.extra) {\n //=== NEEDBITS(state.extra);\n n = state.extra;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.length += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;\n //--- DROPBITS(state.extra) ---//\n hold >>>= state.extra;\n bits -= state.extra;\n //---//\n state.back += state.extra;\n }\n //Tracevv((stderr, \"inflate: length %u\\n\", state.length));\n state.was = state.length;\n state.mode = DIST;\n /* falls through */\n case DIST:\n for (;;) {\n here = state.distcode[hold & ((1 << state.distbits) - 1)];/*BITS(state.distbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if ((here_op & 0xf0) === 0) {\n last_bits = here_bits;\n last_op = here_op;\n last_val = here_val;\n for (;;) {\n here = state.distcode[last_val +\n ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((last_bits + here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n //--- DROPBITS(last.bits) ---//\n hold >>>= last_bits;\n bits -= last_bits;\n //---//\n state.back += last_bits;\n }\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.back += here_bits;\n if (here_op & 64) {\n strm.msg = 'invalid distance code';\n state.mode = BAD;\n break;\n }\n state.offset = here_val;\n state.extra = (here_op) & 15;\n state.mode = DISTEXT;\n /* falls through */\n case DISTEXT:\n if (state.extra) {\n //=== NEEDBITS(state.extra);\n n = state.extra;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.offset += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;\n //--- DROPBITS(state.extra) ---//\n hold >>>= state.extra;\n bits -= state.extra;\n //---//\n state.back += state.extra;\n }\n//#ifdef INFLATE_STRICT\n if (state.offset > state.dmax) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break;\n }\n//#endif\n //Tracevv((stderr, \"inflate: distance %u\\n\", state.offset));\n state.mode = MATCH;\n /* falls through */\n case MATCH:\n if (left === 0) { break inf_leave; }\n copy = _out - left;\n if (state.offset > copy) { /* copy from window */\n copy = state.offset - copy;\n if (copy > state.whave) {\n if (state.sane) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break;\n }\n// (!) This block is disabled in zlib defaults,\n// don't enable it for binary compatibility\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n// Trace((stderr, \"inflate.c too far\\n\"));\n// copy -= state.whave;\n// if (copy > state.length) { copy = state.length; }\n// if (copy > left) { copy = left; }\n// left -= copy;\n// state.length -= copy;\n// do {\n// output[put++] = 0;\n// } while (--copy);\n// if (state.length === 0) { state.mode = LEN; }\n// break;\n//#endif\n }\n if (copy > state.wnext) {\n copy -= state.wnext;\n from = state.wsize - copy;\n }\n else {\n from = state.wnext - copy;\n }\n if (copy > state.length) { copy = state.length; }\n from_source = state.window;\n }\n else { /* copy from output */\n from_source = output;\n from = put - state.offset;\n copy = state.length;\n }\n if (copy > left) { copy = left; }\n left -= copy;\n state.length -= copy;\n do {\n output[put++] = from_source[from++];\n } while (--copy);\n if (state.length === 0) { state.mode = LEN; }\n break;\n case LIT:\n if (left === 0) { break inf_leave; }\n output[put++] = state.length;\n left--;\n state.mode = LEN;\n break;\n case CHECK:\n if (state.wrap) {\n //=== NEEDBITS(32);\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n // Use '|' instead of '+' to make sure that result is signed\n hold |= input[next++] << bits;\n bits += 8;\n }\n //===//\n _out -= left;\n strm.total_out += _out;\n state.total += _out;\n if (_out) {\n strm.adler = state.check =\n /*UPDATE(state.check, put - _out, _out);*/\n (state.flags ? crc32(state.check, output, _out, put - _out) : adler32(state.check, output, _out, put - _out));\n\n }\n _out = left;\n // NB: crc32 stored as signed 32-bit int, zswap32 returns signed too\n if ((state.flags ? hold : zswap32(hold)) !== state.check) {\n strm.msg = 'incorrect data check';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n //Tracev((stderr, \"inflate: check matches trailer\\n\"));\n }\n state.mode = LENGTH;\n /* falls through */\n case LENGTH:\n if (state.wrap && state.flags) {\n //=== NEEDBITS(32);\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (hold !== (state.total & 0xffffffff)) {\n strm.msg = 'incorrect length check';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n //Tracev((stderr, \"inflate: length matches trailer\\n\"));\n }\n state.mode = DONE;\n /* falls through */\n case DONE:\n ret = Z_STREAM_END;\n break inf_leave;\n case BAD:\n ret = Z_DATA_ERROR;\n break inf_leave;\n case MEM:\n return Z_MEM_ERROR;\n case SYNC:\n /* falls through */\n default:\n return Z_STREAM_ERROR;\n }\n }\n\n // inf_leave <- here is real place for \"goto inf_leave\", emulated via \"break inf_leave\"\n\n /*\n Return from inflate(), updating the total counts and the check value.\n If there was no progress during the inflate() call, return a buffer\n error. Call updatewindow() to create and/or update the window state.\n Note: a memory error from inflate() is non-recoverable.\n */\n\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n\n if (state.wsize || (_out !== strm.avail_out && state.mode < BAD &&\n (state.mode < CHECK || flush !== Z_FINISH))) {\n if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) {\n state.mode = MEM;\n return Z_MEM_ERROR;\n }\n }\n _in -= strm.avail_in;\n _out -= strm.avail_out;\n strm.total_in += _in;\n strm.total_out += _out;\n state.total += _out;\n if (state.wrap && _out) {\n strm.adler = state.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/\n (state.flags ? crc32(state.check, output, _out, strm.next_out - _out) : adler32(state.check, output, _out, strm.next_out - _out));\n }\n strm.data_type = state.bits + (state.last ? 64 : 0) +\n (state.mode === TYPE ? 128 : 0) +\n (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);\n if (((_in === 0 && _out === 0) || flush === Z_FINISH) && ret === Z_OK) {\n ret = Z_BUF_ERROR;\n }\n return ret;\n}\n\nfunction inflateEnd(strm) {\n\n if (!strm || !strm.state /*|| strm->zfree == (free_func)0*/) {\n return Z_STREAM_ERROR;\n }\n\n var state = strm.state;\n if (state.window) {\n state.window = null;\n }\n strm.state = null;\n return Z_OK;\n}\n\nfunction inflateGetHeader(strm, head) {\n var state;\n\n /* check state */\n if (!strm || !strm.state) { return Z_STREAM_ERROR; }\n state = strm.state;\n if ((state.wrap & 2) === 0) { return Z_STREAM_ERROR; }\n\n /* save header structure */\n state.head = head;\n head.done = false;\n return Z_OK;\n}\n\nfunction inflateSetDictionary(strm, dictionary) {\n var dictLength = dictionary.length;\n\n var state;\n var dictid;\n var ret;\n\n /* check state */\n if (!strm /* == Z_NULL */ || !strm.state /* == Z_NULL */) { return Z_STREAM_ERROR; }\n state = strm.state;\n\n if (state.wrap !== 0 && state.mode !== DICT) {\n return Z_STREAM_ERROR;\n }\n\n /* check for correct dictionary identifier */\n if (state.mode === DICT) {\n dictid = 1; /* adler32(0, null, 0)*/\n /* dictid = adler32(dictid, dictionary, dictLength); */\n dictid = adler32(dictid, dictionary, dictLength, 0);\n if (dictid !== state.check) {\n return Z_DATA_ERROR;\n }\n }\n /* copy dictionary to window using updatewindow(), which will amend the\n existing dictionary if appropriate */\n ret = updatewindow(strm, dictionary, dictLength, dictLength);\n if (ret) {\n state.mode = MEM;\n return Z_MEM_ERROR;\n }\n state.havedict = 1;\n // Tracev((stderr, \"inflate: dictionary set\\n\"));\n return Z_OK;\n}\n\nexports.inflateReset = inflateReset;\nexports.inflateReset2 = inflateReset2;\nexports.inflateResetKeep = inflateResetKeep;\nexports.inflateInit = inflateInit;\nexports.inflateInit2 = inflateInit2;\nexports.inflate = inflate;\nexports.inflateEnd = inflateEnd;\nexports.inflateGetHeader = inflateGetHeader;\nexports.inflateSetDictionary = inflateSetDictionary;\nexports.inflateInfo = 'pako inflate (from Nodeca project)';\n\n/* Not implemented\nexports.inflateCopy = inflateCopy;\nexports.inflateGetDictionary = inflateGetDictionary;\nexports.inflateMark = inflateMark;\nexports.inflatePrime = inflatePrime;\nexports.inflateSync = inflateSync;\nexports.inflateSyncPoint = inflateSyncPoint;\nexports.inflateUndermine = inflateUndermine;\n*/\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/lib/zlib/inflate.js?"); + +/***/ }), + +/***/ "./node_modules/pako/lib/zlib/inftrees.js": +/*!************************************************!*\ + !*** ./node_modules/pako/lib/zlib/inftrees.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nvar utils = __webpack_require__(/*! ../utils/common */ \"./node_modules/pako/lib/utils/common.js\");\n\nvar MAXBITS = 15;\nvar ENOUGH_LENS = 852;\nvar ENOUGH_DISTS = 592;\n//var ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\n\nvar CODES = 0;\nvar LENS = 1;\nvar DISTS = 2;\n\nvar lbase = [ /* Length codes 257..285 base */\n 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,\n 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0\n];\n\nvar lext = [ /* Length codes 257..285 extra */\n 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,\n 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78\n];\n\nvar dbase = [ /* Distance codes 0..29 base */\n 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,\n 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,\n 8193, 12289, 16385, 24577, 0, 0\n];\n\nvar dext = [ /* Distance codes 0..29 extra */\n 16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22,\n 23, 23, 24, 24, 25, 25, 26, 26, 27, 27,\n 28, 28, 29, 29, 64, 64\n];\n\nmodule.exports = function inflate_table(type, lens, lens_index, codes, table, table_index, work, opts)\n{\n var bits = opts.bits;\n //here = opts.here; /* table entry for duplication */\n\n var len = 0; /* a code's length in bits */\n var sym = 0; /* index of code symbols */\n var min = 0, max = 0; /* minimum and maximum code lengths */\n var root = 0; /* number of index bits for root table */\n var curr = 0; /* number of index bits for current table */\n var drop = 0; /* code bits to drop for sub-table */\n var left = 0; /* number of prefix codes available */\n var used = 0; /* code entries in table used */\n var huff = 0; /* Huffman code */\n var incr; /* for incrementing code, index */\n var fill; /* index for replicating entries */\n var low; /* low bits for current root entry */\n var mask; /* mask for low root bits */\n var next; /* next available space in table */\n var base = null; /* base value table to use */\n var base_index = 0;\n// var shoextra; /* extra bits table to use */\n var end; /* use base and extra for symbol > end */\n var count = new utils.Buf16(MAXBITS + 1); //[MAXBITS+1]; /* number of codes of each length */\n var offs = new utils.Buf16(MAXBITS + 1); //[MAXBITS+1]; /* offsets in table for each length */\n var extra = null;\n var extra_index = 0;\n\n var here_bits, here_op, here_val;\n\n /*\n Process a set of code lengths to create a canonical Huffman code. The\n code lengths are lens[0..codes-1]. Each length corresponds to the\n symbols 0..codes-1. The Huffman code is generated by first sorting the\n symbols by length from short to long, and retaining the symbol order\n for codes with equal lengths. Then the code starts with all zero bits\n for the first code of the shortest length, and the codes are integer\n increments for the same length, and zeros are appended as the length\n increases. For the deflate format, these bits are stored backwards\n from their more natural integer increment ordering, and so when the\n decoding tables are built in the large loop below, the integer codes\n are incremented backwards.\n\n This routine assumes, but does not check, that all of the entries in\n lens[] are in the range 0..MAXBITS. The caller must assure this.\n 1..MAXBITS is interpreted as that code length. zero means that that\n symbol does not occur in this code.\n\n The codes are sorted by computing a count of codes for each length,\n creating from that a table of starting indices for each length in the\n sorted table, and then entering the symbols in order in the sorted\n table. The sorted table is work[], with that space being provided by\n the caller.\n\n The length counts are used for other purposes as well, i.e. finding\n the minimum and maximum length codes, determining if there are any\n codes at all, checking for a valid set of lengths, and looking ahead\n at length counts to determine sub-table sizes when building the\n decoding tables.\n */\n\n /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */\n for (len = 0; len <= MAXBITS; len++) {\n count[len] = 0;\n }\n for (sym = 0; sym < codes; sym++) {\n count[lens[lens_index + sym]]++;\n }\n\n /* bound code lengths, force root to be within code lengths */\n root = bits;\n for (max = MAXBITS; max >= 1; max--) {\n if (count[max] !== 0) { break; }\n }\n if (root > max) {\n root = max;\n }\n if (max === 0) { /* no symbols to code at all */\n //table.op[opts.table_index] = 64; //here.op = (var char)64; /* invalid code marker */\n //table.bits[opts.table_index] = 1; //here.bits = (var char)1;\n //table.val[opts.table_index++] = 0; //here.val = (var short)0;\n table[table_index++] = (1 << 24) | (64 << 16) | 0;\n\n\n //table.op[opts.table_index] = 64;\n //table.bits[opts.table_index] = 1;\n //table.val[opts.table_index++] = 0;\n table[table_index++] = (1 << 24) | (64 << 16) | 0;\n\n opts.bits = 1;\n return 0; /* no symbols, but wait for decoding to report error */\n }\n for (min = 1; min < max; min++) {\n if (count[min] !== 0) { break; }\n }\n if (root < min) {\n root = min;\n }\n\n /* check for an over-subscribed or incomplete set of lengths */\n left = 1;\n for (len = 1; len <= MAXBITS; len++) {\n left <<= 1;\n left -= count[len];\n if (left < 0) {\n return -1;\n } /* over-subscribed */\n }\n if (left > 0 && (type === CODES || max !== 1)) {\n return -1; /* incomplete set */\n }\n\n /* generate offsets into symbol table for each length for sorting */\n offs[1] = 0;\n for (len = 1; len < MAXBITS; len++) {\n offs[len + 1] = offs[len] + count[len];\n }\n\n /* sort symbols by length, by symbol order within each length */\n for (sym = 0; sym < codes; sym++) {\n if (lens[lens_index + sym] !== 0) {\n work[offs[lens[lens_index + sym]]++] = sym;\n }\n }\n\n /*\n Create and fill in decoding tables. In this loop, the table being\n filled is at next and has curr index bits. The code being used is huff\n with length len. That code is converted to an index by dropping drop\n bits off of the bottom. For codes where len is less than drop + curr,\n those top drop + curr - len bits are incremented through all values to\n fill the table with replicated entries.\n\n root is the number of index bits for the root table. When len exceeds\n root, sub-tables are created pointed to by the root entry with an index\n of the low root bits of huff. This is saved in low to check for when a\n new sub-table should be started. drop is zero when the root table is\n being filled, and drop is root when sub-tables are being filled.\n\n When a new sub-table is needed, it is necessary to look ahead in the\n code lengths to determine what size sub-table is needed. The length\n counts are used for this, and so count[] is decremented as codes are\n entered in the tables.\n\n used keeps track of how many table entries have been allocated from the\n provided *table space. It is checked for LENS and DIST tables against\n the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in\n the initial root table size constants. See the comments in inftrees.h\n for more information.\n\n sym increments through all symbols, and the loop terminates when\n all codes of length max, i.e. all codes, have been processed. This\n routine permits incomplete codes, so another loop after this one fills\n in the rest of the decoding tables with invalid code markers.\n */\n\n /* set up for code type */\n // poor man optimization - use if-else instead of switch,\n // to avoid deopts in old v8\n if (type === CODES) {\n base = extra = work; /* dummy value--not used */\n end = 19;\n\n } else if (type === LENS) {\n base = lbase;\n base_index -= 257;\n extra = lext;\n extra_index -= 257;\n end = 256;\n\n } else { /* DISTS */\n base = dbase;\n extra = dext;\n end = -1;\n }\n\n /* initialize opts for loop */\n huff = 0; /* starting code */\n sym = 0; /* starting code symbol */\n len = min; /* starting code length */\n next = table_index; /* current table to fill in */\n curr = root; /* current table index bits */\n drop = 0; /* current bits to drop from code for index */\n low = -1; /* trigger new sub-table when len > root */\n used = 1 << root; /* use root table entries */\n mask = used - 1; /* mask for comparing low */\n\n /* check available table space */\n if ((type === LENS && used > ENOUGH_LENS) ||\n (type === DISTS && used > ENOUGH_DISTS)) {\n return 1;\n }\n\n /* process all codes and make table entries */\n for (;;) {\n /* create table entry */\n here_bits = len - drop;\n if (work[sym] < end) {\n here_op = 0;\n here_val = work[sym];\n }\n else if (work[sym] > end) {\n here_op = extra[extra_index + work[sym]];\n here_val = base[base_index + work[sym]];\n }\n else {\n here_op = 32 + 64; /* end of block */\n here_val = 0;\n }\n\n /* replicate for those indices with low len bits equal to huff */\n incr = 1 << (len - drop);\n fill = 1 << curr;\n min = fill; /* save offset to next table */\n do {\n fill -= incr;\n table[next + (huff >> drop) + fill] = (here_bits << 24) | (here_op << 16) | here_val |0;\n } while (fill !== 0);\n\n /* backwards increment the len-bit code huff */\n incr = 1 << (len - 1);\n while (huff & incr) {\n incr >>= 1;\n }\n if (incr !== 0) {\n huff &= incr - 1;\n huff += incr;\n } else {\n huff = 0;\n }\n\n /* go to next symbol, update count, len */\n sym++;\n if (--count[len] === 0) {\n if (len === max) { break; }\n len = lens[lens_index + work[sym]];\n }\n\n /* create new sub-table if needed */\n if (len > root && (huff & mask) !== low) {\n /* if first time, transition to sub-tables */\n if (drop === 0) {\n drop = root;\n }\n\n /* increment past last table */\n next += min; /* here min is 1 << curr */\n\n /* determine length of next table */\n curr = len - drop;\n left = 1 << curr;\n while (curr + drop < max) {\n left -= count[curr + drop];\n if (left <= 0) { break; }\n curr++;\n left <<= 1;\n }\n\n /* check for enough space */\n used += 1 << curr;\n if ((type === LENS && used > ENOUGH_LENS) ||\n (type === DISTS && used > ENOUGH_DISTS)) {\n return 1;\n }\n\n /* point entry in root table to sub-table */\n low = huff & mask;\n /*table.op[low] = curr;\n table.bits[low] = root;\n table.val[low] = next - opts.table_index;*/\n table[low] = (root << 24) | (curr << 16) | (next - table_index) |0;\n }\n }\n\n /* fill in remaining table entry if code is incomplete (guaranteed to have\n at most one remaining entry, since if the code is incomplete, the\n maximum code length that was allowed to get this far is one bit) */\n if (huff !== 0) {\n //table.op[next + huff] = 64; /* invalid code marker */\n //table.bits[next + huff] = len - drop;\n //table.val[next + huff] = 0;\n table[next + huff] = ((len - drop) << 24) | (64 << 16) |0;\n }\n\n /* set return parameters */\n //opts.table_index += used;\n opts.bits = root;\n return 0;\n};\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/lib/zlib/inftrees.js?"); + +/***/ }), + +/***/ "./node_modules/pako/lib/zlib/messages.js": +/*!************************************************!*\ + !*** ./node_modules/pako/lib/zlib/messages.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nmodule.exports = {\n 2: 'need dictionary', /* Z_NEED_DICT 2 */\n 1: 'stream end', /* Z_STREAM_END 1 */\n 0: '', /* Z_OK 0 */\n '-1': 'file error', /* Z_ERRNO (-1) */\n '-2': 'stream error', /* Z_STREAM_ERROR (-2) */\n '-3': 'data error', /* Z_DATA_ERROR (-3) */\n '-4': 'insufficient memory', /* Z_MEM_ERROR (-4) */\n '-5': 'buffer error', /* Z_BUF_ERROR (-5) */\n '-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */\n};\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/lib/zlib/messages.js?"); + +/***/ }), + +/***/ "./node_modules/pako/lib/zlib/trees.js": +/*!*********************************************!*\ + !*** ./node_modules/pako/lib/zlib/trees.js ***! + \*********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\n/* eslint-disable space-unary-ops */\n\nvar utils = __webpack_require__(/*! ../utils/common */ \"./node_modules/pako/lib/utils/common.js\");\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\n\n//var Z_FILTERED = 1;\n//var Z_HUFFMAN_ONLY = 2;\n//var Z_RLE = 3;\nvar Z_FIXED = 4;\n//var Z_DEFAULT_STRATEGY = 0;\n\n/* Possible values of the data_type field (though see inflate()) */\nvar Z_BINARY = 0;\nvar Z_TEXT = 1;\n//var Z_ASCII = 1; // = Z_TEXT\nvar Z_UNKNOWN = 2;\n\n/*============================================================================*/\n\n\nfunction zero(buf) { var len = buf.length; while (--len >= 0) { buf[len] = 0; } }\n\n// From zutil.h\n\nvar STORED_BLOCK = 0;\nvar STATIC_TREES = 1;\nvar DYN_TREES = 2;\n/* The three kinds of block type */\n\nvar MIN_MATCH = 3;\nvar MAX_MATCH = 258;\n/* The minimum and maximum match lengths */\n\n// From deflate.h\n/* ===========================================================================\n * Internal compression state.\n */\n\nvar LENGTH_CODES = 29;\n/* number of length codes, not counting the special END_BLOCK code */\n\nvar LITERALS = 256;\n/* number of literal bytes 0..255 */\n\nvar L_CODES = LITERALS + 1 + LENGTH_CODES;\n/* number of Literal or Length codes, including the END_BLOCK code */\n\nvar D_CODES = 30;\n/* number of distance codes */\n\nvar BL_CODES = 19;\n/* number of codes used to transfer the bit lengths */\n\nvar HEAP_SIZE = 2 * L_CODES + 1;\n/* maximum heap size */\n\nvar MAX_BITS = 15;\n/* All codes must not exceed MAX_BITS bits */\n\nvar Buf_size = 16;\n/* size of bit buffer in bi_buf */\n\n\n/* ===========================================================================\n * Constants\n */\n\nvar MAX_BL_BITS = 7;\n/* Bit length codes must not exceed MAX_BL_BITS bits */\n\nvar END_BLOCK = 256;\n/* end of block literal code */\n\nvar REP_3_6 = 16;\n/* repeat previous bit length 3-6 times (2 bits of repeat count) */\n\nvar REPZ_3_10 = 17;\n/* repeat a zero length 3-10 times (3 bits of repeat count) */\n\nvar REPZ_11_138 = 18;\n/* repeat a zero length 11-138 times (7 bits of repeat count) */\n\n/* eslint-disable comma-spacing,array-bracket-spacing */\nvar extra_lbits = /* extra bits for each length code */\n [0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];\n\nvar extra_dbits = /* extra bits for each distance code */\n [0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];\n\nvar extra_blbits = /* extra bits for each bit length code */\n [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];\n\nvar bl_order =\n [16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];\n/* eslint-enable comma-spacing,array-bracket-spacing */\n\n/* The lengths of the bit length codes are sent in order of decreasing\n * probability, to avoid transmitting the lengths for unused bit length codes.\n */\n\n/* ===========================================================================\n * Local data. These are initialized only once.\n */\n\n// We pre-fill arrays with 0 to avoid uninitialized gaps\n\nvar DIST_CODE_LEN = 512; /* see definition of array dist_code below */\n\n// !!!! Use flat array instead of structure, Freq = i*2, Len = i*2+1\nvar static_ltree = new Array((L_CODES + 2) * 2);\nzero(static_ltree);\n/* The static literal tree. Since the bit lengths are imposed, there is no\n * need for the L_CODES extra codes used during heap construction. However\n * The codes 286 and 287 are needed to build a canonical tree (see _tr_init\n * below).\n */\n\nvar static_dtree = new Array(D_CODES * 2);\nzero(static_dtree);\n/* The static distance tree. (Actually a trivial tree since all codes use\n * 5 bits.)\n */\n\nvar _dist_code = new Array(DIST_CODE_LEN);\nzero(_dist_code);\n/* Distance codes. The first 256 values correspond to the distances\n * 3 .. 258, the last 256 values correspond to the top 8 bits of\n * the 15 bit distances.\n */\n\nvar _length_code = new Array(MAX_MATCH - MIN_MATCH + 1);\nzero(_length_code);\n/* length code for each normalized match length (0 == MIN_MATCH) */\n\nvar base_length = new Array(LENGTH_CODES);\nzero(base_length);\n/* First normalized length for each code (0 = MIN_MATCH) */\n\nvar base_dist = new Array(D_CODES);\nzero(base_dist);\n/* First normalized distance for each code (0 = distance of 1) */\n\n\nfunction StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) {\n\n this.static_tree = static_tree; /* static tree or NULL */\n this.extra_bits = extra_bits; /* extra bits for each code or NULL */\n this.extra_base = extra_base; /* base index for extra_bits */\n this.elems = elems; /* max number of elements in the tree */\n this.max_length = max_length; /* max bit length for the codes */\n\n // show if `static_tree` has data or dummy - needed for monomorphic objects\n this.has_stree = static_tree && static_tree.length;\n}\n\n\nvar static_l_desc;\nvar static_d_desc;\nvar static_bl_desc;\n\n\nfunction TreeDesc(dyn_tree, stat_desc) {\n this.dyn_tree = dyn_tree; /* the dynamic tree */\n this.max_code = 0; /* largest code with non zero frequency */\n this.stat_desc = stat_desc; /* the corresponding static tree */\n}\n\n\n\nfunction d_code(dist) {\n return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)];\n}\n\n\n/* ===========================================================================\n * Output a short LSB first on the stream.\n * IN assertion: there is enough room in pendingBuf.\n */\nfunction put_short(s, w) {\n// put_byte(s, (uch)((w) & 0xff));\n// put_byte(s, (uch)((ush)(w) >> 8));\n s.pending_buf[s.pending++] = (w) & 0xff;\n s.pending_buf[s.pending++] = (w >>> 8) & 0xff;\n}\n\n\n/* ===========================================================================\n * Send a value on a given number of bits.\n * IN assertion: length <= 16 and value fits in length bits.\n */\nfunction send_bits(s, value, length) {\n if (s.bi_valid > (Buf_size - length)) {\n s.bi_buf |= (value << s.bi_valid) & 0xffff;\n put_short(s, s.bi_buf);\n s.bi_buf = value >> (Buf_size - s.bi_valid);\n s.bi_valid += length - Buf_size;\n } else {\n s.bi_buf |= (value << s.bi_valid) & 0xffff;\n s.bi_valid += length;\n }\n}\n\n\nfunction send_code(s, c, tree) {\n send_bits(s, tree[c * 2]/*.Code*/, tree[c * 2 + 1]/*.Len*/);\n}\n\n\n/* ===========================================================================\n * Reverse the first len bits of a code, using straightforward code (a faster\n * method would use a table)\n * IN assertion: 1 <= len <= 15\n */\nfunction bi_reverse(code, len) {\n var res = 0;\n do {\n res |= code & 1;\n code >>>= 1;\n res <<= 1;\n } while (--len > 0);\n return res >>> 1;\n}\n\n\n/* ===========================================================================\n * Flush the bit buffer, keeping at most 7 bits in it.\n */\nfunction bi_flush(s) {\n if (s.bi_valid === 16) {\n put_short(s, s.bi_buf);\n s.bi_buf = 0;\n s.bi_valid = 0;\n\n } else if (s.bi_valid >= 8) {\n s.pending_buf[s.pending++] = s.bi_buf & 0xff;\n s.bi_buf >>= 8;\n s.bi_valid -= 8;\n }\n}\n\n\n/* ===========================================================================\n * Compute the optimal bit lengths for a tree and update the total bit length\n * for the current block.\n * IN assertion: the fields freq and dad are set, heap[heap_max] and\n * above are the tree nodes sorted by increasing frequency.\n * OUT assertions: the field len is set to the optimal bit length, the\n * array bl_count contains the frequencies for each bit length.\n * The length opt_len is updated; static_len is also updated if stree is\n * not null.\n */\nfunction gen_bitlen(s, desc)\n// deflate_state *s;\n// tree_desc *desc; /* the tree descriptor */\n{\n var tree = desc.dyn_tree;\n var max_code = desc.max_code;\n var stree = desc.stat_desc.static_tree;\n var has_stree = desc.stat_desc.has_stree;\n var extra = desc.stat_desc.extra_bits;\n var base = desc.stat_desc.extra_base;\n var max_length = desc.stat_desc.max_length;\n var h; /* heap index */\n var n, m; /* iterate over the tree elements */\n var bits; /* bit length */\n var xbits; /* extra bits */\n var f; /* frequency */\n var overflow = 0; /* number of elements with bit length too large */\n\n for (bits = 0; bits <= MAX_BITS; bits++) {\n s.bl_count[bits] = 0;\n }\n\n /* In a first pass, compute the optimal bit lengths (which may\n * overflow in the case of the bit length tree).\n */\n tree[s.heap[s.heap_max] * 2 + 1]/*.Len*/ = 0; /* root of the heap */\n\n for (h = s.heap_max + 1; h < HEAP_SIZE; h++) {\n n = s.heap[h];\n bits = tree[tree[n * 2 + 1]/*.Dad*/ * 2 + 1]/*.Len*/ + 1;\n if (bits > max_length) {\n bits = max_length;\n overflow++;\n }\n tree[n * 2 + 1]/*.Len*/ = bits;\n /* We overwrite tree[n].Dad which is no longer needed */\n\n if (n > max_code) { continue; } /* not a leaf node */\n\n s.bl_count[bits]++;\n xbits = 0;\n if (n >= base) {\n xbits = extra[n - base];\n }\n f = tree[n * 2]/*.Freq*/;\n s.opt_len += f * (bits + xbits);\n if (has_stree) {\n s.static_len += f * (stree[n * 2 + 1]/*.Len*/ + xbits);\n }\n }\n if (overflow === 0) { return; }\n\n // Trace((stderr,\"\\nbit length overflow\\n\"));\n /* This happens for example on obj2 and pic of the Calgary corpus */\n\n /* Find the first bit length which could increase: */\n do {\n bits = max_length - 1;\n while (s.bl_count[bits] === 0) { bits--; }\n s.bl_count[bits]--; /* move one leaf down the tree */\n s.bl_count[bits + 1] += 2; /* move one overflow item as its brother */\n s.bl_count[max_length]--;\n /* The brother of the overflow item also moves one step up,\n * but this does not affect bl_count[max_length]\n */\n overflow -= 2;\n } while (overflow > 0);\n\n /* Now recompute all bit lengths, scanning in increasing frequency.\n * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all\n * lengths instead of fixing only the wrong ones. This idea is taken\n * from 'ar' written by Haruhiko Okumura.)\n */\n for (bits = max_length; bits !== 0; bits--) {\n n = s.bl_count[bits];\n while (n !== 0) {\n m = s.heap[--h];\n if (m > max_code) { continue; }\n if (tree[m * 2 + 1]/*.Len*/ !== bits) {\n // Trace((stderr,\"code %d bits %d->%d\\n\", m, tree[m].Len, bits));\n s.opt_len += (bits - tree[m * 2 + 1]/*.Len*/) * tree[m * 2]/*.Freq*/;\n tree[m * 2 + 1]/*.Len*/ = bits;\n }\n n--;\n }\n }\n}\n\n\n/* ===========================================================================\n * Generate the codes for a given tree and bit counts (which need not be\n * optimal).\n * IN assertion: the array bl_count contains the bit length statistics for\n * the given tree and the field len is set for all tree elements.\n * OUT assertion: the field code is set for all tree elements of non\n * zero code length.\n */\nfunction gen_codes(tree, max_code, bl_count)\n// ct_data *tree; /* the tree to decorate */\n// int max_code; /* largest code with non zero frequency */\n// ushf *bl_count; /* number of codes at each bit length */\n{\n var next_code = new Array(MAX_BITS + 1); /* next code value for each bit length */\n var code = 0; /* running code value */\n var bits; /* bit index */\n var n; /* code index */\n\n /* The distribution counts are first used to generate the code values\n * without bit reversal.\n */\n for (bits = 1; bits <= MAX_BITS; bits++) {\n next_code[bits] = code = (code + bl_count[bits - 1]) << 1;\n }\n /* Check that the bit counts in bl_count are consistent. The last code\n * must be all ones.\n */\n //Assert (code + bl_count[MAX_BITS]-1 == (1< length code (0..28) */\n length = 0;\n for (code = 0; code < LENGTH_CODES - 1; code++) {\n base_length[code] = length;\n for (n = 0; n < (1 << extra_lbits[code]); n++) {\n _length_code[length++] = code;\n }\n }\n //Assert (length == 256, \"tr_static_init: length != 256\");\n /* Note that the length 255 (match length 258) can be represented\n * in two different ways: code 284 + 5 bits or code 285, so we\n * overwrite length_code[255] to use the best encoding:\n */\n _length_code[length - 1] = code;\n\n /* Initialize the mapping dist (0..32K) -> dist code (0..29) */\n dist = 0;\n for (code = 0; code < 16; code++) {\n base_dist[code] = dist;\n for (n = 0; n < (1 << extra_dbits[code]); n++) {\n _dist_code[dist++] = code;\n }\n }\n //Assert (dist == 256, \"tr_static_init: dist != 256\");\n dist >>= 7; /* from now on, all distances are divided by 128 */\n for (; code < D_CODES; code++) {\n base_dist[code] = dist << 7;\n for (n = 0; n < (1 << (extra_dbits[code] - 7)); n++) {\n _dist_code[256 + dist++] = code;\n }\n }\n //Assert (dist == 256, \"tr_static_init: 256+dist != 512\");\n\n /* Construct the codes of the static literal tree */\n for (bits = 0; bits <= MAX_BITS; bits++) {\n bl_count[bits] = 0;\n }\n\n n = 0;\n while (n <= 143) {\n static_ltree[n * 2 + 1]/*.Len*/ = 8;\n n++;\n bl_count[8]++;\n }\n while (n <= 255) {\n static_ltree[n * 2 + 1]/*.Len*/ = 9;\n n++;\n bl_count[9]++;\n }\n while (n <= 279) {\n static_ltree[n * 2 + 1]/*.Len*/ = 7;\n n++;\n bl_count[7]++;\n }\n while (n <= 287) {\n static_ltree[n * 2 + 1]/*.Len*/ = 8;\n n++;\n bl_count[8]++;\n }\n /* Codes 286 and 287 do not exist, but we must include them in the\n * tree construction to get a canonical Huffman tree (longest code\n * all ones)\n */\n gen_codes(static_ltree, L_CODES + 1, bl_count);\n\n /* The static distance tree is trivial: */\n for (n = 0; n < D_CODES; n++) {\n static_dtree[n * 2 + 1]/*.Len*/ = 5;\n static_dtree[n * 2]/*.Code*/ = bi_reverse(n, 5);\n }\n\n // Now data ready and we can init static trees\n static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS + 1, L_CODES, MAX_BITS);\n static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0, D_CODES, MAX_BITS);\n static_bl_desc = new StaticTreeDesc(new Array(0), extra_blbits, 0, BL_CODES, MAX_BL_BITS);\n\n //static_init_done = true;\n}\n\n\n/* ===========================================================================\n * Initialize a new block.\n */\nfunction init_block(s) {\n var n; /* iterates over tree elements */\n\n /* Initialize the trees. */\n for (n = 0; n < L_CODES; n++) { s.dyn_ltree[n * 2]/*.Freq*/ = 0; }\n for (n = 0; n < D_CODES; n++) { s.dyn_dtree[n * 2]/*.Freq*/ = 0; }\n for (n = 0; n < BL_CODES; n++) { s.bl_tree[n * 2]/*.Freq*/ = 0; }\n\n s.dyn_ltree[END_BLOCK * 2]/*.Freq*/ = 1;\n s.opt_len = s.static_len = 0;\n s.last_lit = s.matches = 0;\n}\n\n\n/* ===========================================================================\n * Flush the bit buffer and align the output on a byte boundary\n */\nfunction bi_windup(s)\n{\n if (s.bi_valid > 8) {\n put_short(s, s.bi_buf);\n } else if (s.bi_valid > 0) {\n //put_byte(s, (Byte)s->bi_buf);\n s.pending_buf[s.pending++] = s.bi_buf;\n }\n s.bi_buf = 0;\n s.bi_valid = 0;\n}\n\n/* ===========================================================================\n * Copy a stored block, storing first the length and its\n * one's complement if requested.\n */\nfunction copy_block(s, buf, len, header)\n//DeflateState *s;\n//charf *buf; /* the input data */\n//unsigned len; /* its length */\n//int header; /* true if block header must be written */\n{\n bi_windup(s); /* align on byte boundary */\n\n if (header) {\n put_short(s, len);\n put_short(s, ~len);\n }\n// while (len--) {\n// put_byte(s, *buf++);\n// }\n utils.arraySet(s.pending_buf, s.window, buf, len, s.pending);\n s.pending += len;\n}\n\n/* ===========================================================================\n * Compares to subtrees, using the tree depth as tie breaker when\n * the subtrees have equal frequency. This minimizes the worst case length.\n */\nfunction smaller(tree, n, m, depth) {\n var _n2 = n * 2;\n var _m2 = m * 2;\n return (tree[_n2]/*.Freq*/ < tree[_m2]/*.Freq*/ ||\n (tree[_n2]/*.Freq*/ === tree[_m2]/*.Freq*/ && depth[n] <= depth[m]));\n}\n\n/* ===========================================================================\n * Restore the heap property by moving down the tree starting at node k,\n * exchanging a node with the smallest of its two sons if necessary, stopping\n * when the heap property is re-established (each father smaller than its\n * two sons).\n */\nfunction pqdownheap(s, tree, k)\n// deflate_state *s;\n// ct_data *tree; /* the tree to restore */\n// int k; /* node to move down */\n{\n var v = s.heap[k];\n var j = k << 1; /* left son of k */\n while (j <= s.heap_len) {\n /* Set j to the smallest of the two sons: */\n if (j < s.heap_len &&\n smaller(tree, s.heap[j + 1], s.heap[j], s.depth)) {\n j++;\n }\n /* Exit if v is smaller than both sons */\n if (smaller(tree, v, s.heap[j], s.depth)) { break; }\n\n /* Exchange v with the smallest son */\n s.heap[k] = s.heap[j];\n k = j;\n\n /* And continue down the tree, setting j to the left son of k */\n j <<= 1;\n }\n s.heap[k] = v;\n}\n\n\n// inlined manually\n// var SMALLEST = 1;\n\n/* ===========================================================================\n * Send the block data compressed using the given Huffman trees\n */\nfunction compress_block(s, ltree, dtree)\n// deflate_state *s;\n// const ct_data *ltree; /* literal tree */\n// const ct_data *dtree; /* distance tree */\n{\n var dist; /* distance of matched string */\n var lc; /* match length or unmatched char (if dist == 0) */\n var lx = 0; /* running index in l_buf */\n var code; /* the code to send */\n var extra; /* number of extra bits to send */\n\n if (s.last_lit !== 0) {\n do {\n dist = (s.pending_buf[s.d_buf + lx * 2] << 8) | (s.pending_buf[s.d_buf + lx * 2 + 1]);\n lc = s.pending_buf[s.l_buf + lx];\n lx++;\n\n if (dist === 0) {\n send_code(s, lc, ltree); /* send a literal byte */\n //Tracecv(isgraph(lc), (stderr,\" '%c' \", lc));\n } else {\n /* Here, lc is the match length - MIN_MATCH */\n code = _length_code[lc];\n send_code(s, code + LITERALS + 1, ltree); /* send the length code */\n extra = extra_lbits[code];\n if (extra !== 0) {\n lc -= base_length[code];\n send_bits(s, lc, extra); /* send the extra length bits */\n }\n dist--; /* dist is now the match distance - 1 */\n code = d_code(dist);\n //Assert (code < D_CODES, \"bad d_code\");\n\n send_code(s, code, dtree); /* send the distance code */\n extra = extra_dbits[code];\n if (extra !== 0) {\n dist -= base_dist[code];\n send_bits(s, dist, extra); /* send the extra distance bits */\n }\n } /* literal or match pair ? */\n\n /* Check that the overlay between pending_buf and d_buf+l_buf is ok: */\n //Assert((uInt)(s->pending) < s->lit_bufsize + 2*lx,\n // \"pendingBuf overflow\");\n\n } while (lx < s.last_lit);\n }\n\n send_code(s, END_BLOCK, ltree);\n}\n\n\n/* ===========================================================================\n * Construct one Huffman tree and assigns the code bit strings and lengths.\n * Update the total bit length for the current block.\n * IN assertion: the field freq is set for all tree elements.\n * OUT assertions: the fields len and code are set to the optimal bit length\n * and corresponding code. The length opt_len is updated; static_len is\n * also updated if stree is not null. The field max_code is set.\n */\nfunction build_tree(s, desc)\n// deflate_state *s;\n// tree_desc *desc; /* the tree descriptor */\n{\n var tree = desc.dyn_tree;\n var stree = desc.stat_desc.static_tree;\n var has_stree = desc.stat_desc.has_stree;\n var elems = desc.stat_desc.elems;\n var n, m; /* iterate over heap elements */\n var max_code = -1; /* largest code with non zero frequency */\n var node; /* new node being created */\n\n /* Construct the initial heap, with least frequent element in\n * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1].\n * heap[0] is not used.\n */\n s.heap_len = 0;\n s.heap_max = HEAP_SIZE;\n\n for (n = 0; n < elems; n++) {\n if (tree[n * 2]/*.Freq*/ !== 0) {\n s.heap[++s.heap_len] = max_code = n;\n s.depth[n] = 0;\n\n } else {\n tree[n * 2 + 1]/*.Len*/ = 0;\n }\n }\n\n /* The pkzip format requires that at least one distance code exists,\n * and that at least one bit should be sent even if there is only one\n * possible code. So to avoid special checks later on we force at least\n * two codes of non zero frequency.\n */\n while (s.heap_len < 2) {\n node = s.heap[++s.heap_len] = (max_code < 2 ? ++max_code : 0);\n tree[node * 2]/*.Freq*/ = 1;\n s.depth[node] = 0;\n s.opt_len--;\n\n if (has_stree) {\n s.static_len -= stree[node * 2 + 1]/*.Len*/;\n }\n /* node is 0 or 1 so it does not have extra bits */\n }\n desc.max_code = max_code;\n\n /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,\n * establish sub-heaps of increasing lengths:\n */\n for (n = (s.heap_len >> 1/*int /2*/); n >= 1; n--) { pqdownheap(s, tree, n); }\n\n /* Construct the Huffman tree by repeatedly combining the least two\n * frequent nodes.\n */\n node = elems; /* next internal node of the tree */\n do {\n //pqremove(s, tree, n); /* n = node of least frequency */\n /*** pqremove ***/\n n = s.heap[1/*SMALLEST*/];\n s.heap[1/*SMALLEST*/] = s.heap[s.heap_len--];\n pqdownheap(s, tree, 1/*SMALLEST*/);\n /***/\n\n m = s.heap[1/*SMALLEST*/]; /* m = node of next least frequency */\n\n s.heap[--s.heap_max] = n; /* keep the nodes sorted by frequency */\n s.heap[--s.heap_max] = m;\n\n /* Create a new node father of n and m */\n tree[node * 2]/*.Freq*/ = tree[n * 2]/*.Freq*/ + tree[m * 2]/*.Freq*/;\n s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1;\n tree[n * 2 + 1]/*.Dad*/ = tree[m * 2 + 1]/*.Dad*/ = node;\n\n /* and insert the new node in the heap */\n s.heap[1/*SMALLEST*/] = node++;\n pqdownheap(s, tree, 1/*SMALLEST*/);\n\n } while (s.heap_len >= 2);\n\n s.heap[--s.heap_max] = s.heap[1/*SMALLEST*/];\n\n /* At this point, the fields freq and dad are set. We can now\n * generate the bit lengths.\n */\n gen_bitlen(s, desc);\n\n /* The field len is now set, we can generate the bit codes */\n gen_codes(tree, max_code, s.bl_count);\n}\n\n\n/* ===========================================================================\n * Scan a literal or distance tree to determine the frequencies of the codes\n * in the bit length tree.\n */\nfunction scan_tree(s, tree, max_code)\n// deflate_state *s;\n// ct_data *tree; /* the tree to be scanned */\n// int max_code; /* and its largest code of non zero frequency */\n{\n var n; /* iterates over all tree elements */\n var prevlen = -1; /* last emitted length */\n var curlen; /* length of current code */\n\n var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */\n\n var count = 0; /* repeat count of the current code */\n var max_count = 7; /* max repeat count */\n var min_count = 4; /* min repeat count */\n\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n }\n tree[(max_code + 1) * 2 + 1]/*.Len*/ = 0xffff; /* guard */\n\n for (n = 0; n <= max_code; n++) {\n curlen = nextlen;\n nextlen = tree[(n + 1) * 2 + 1]/*.Len*/;\n\n if (++count < max_count && curlen === nextlen) {\n continue;\n\n } else if (count < min_count) {\n s.bl_tree[curlen * 2]/*.Freq*/ += count;\n\n } else if (curlen !== 0) {\n\n if (curlen !== prevlen) { s.bl_tree[curlen * 2]/*.Freq*/++; }\n s.bl_tree[REP_3_6 * 2]/*.Freq*/++;\n\n } else if (count <= 10) {\n s.bl_tree[REPZ_3_10 * 2]/*.Freq*/++;\n\n } else {\n s.bl_tree[REPZ_11_138 * 2]/*.Freq*/++;\n }\n\n count = 0;\n prevlen = curlen;\n\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n\n } else if (curlen === nextlen) {\n max_count = 6;\n min_count = 3;\n\n } else {\n max_count = 7;\n min_count = 4;\n }\n }\n}\n\n\n/* ===========================================================================\n * Send a literal or distance tree in compressed form, using the codes in\n * bl_tree.\n */\nfunction send_tree(s, tree, max_code)\n// deflate_state *s;\n// ct_data *tree; /* the tree to be scanned */\n// int max_code; /* and its largest code of non zero frequency */\n{\n var n; /* iterates over all tree elements */\n var prevlen = -1; /* last emitted length */\n var curlen; /* length of current code */\n\n var nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */\n\n var count = 0; /* repeat count of the current code */\n var max_count = 7; /* max repeat count */\n var min_count = 4; /* min repeat count */\n\n /* tree[max_code+1].Len = -1; */ /* guard already set */\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n }\n\n for (n = 0; n <= max_code; n++) {\n curlen = nextlen;\n nextlen = tree[(n + 1) * 2 + 1]/*.Len*/;\n\n if (++count < max_count && curlen === nextlen) {\n continue;\n\n } else if (count < min_count) {\n do { send_code(s, curlen, s.bl_tree); } while (--count !== 0);\n\n } else if (curlen !== 0) {\n if (curlen !== prevlen) {\n send_code(s, curlen, s.bl_tree);\n count--;\n }\n //Assert(count >= 3 && count <= 6, \" 3_6?\");\n send_code(s, REP_3_6, s.bl_tree);\n send_bits(s, count - 3, 2);\n\n } else if (count <= 10) {\n send_code(s, REPZ_3_10, s.bl_tree);\n send_bits(s, count - 3, 3);\n\n } else {\n send_code(s, REPZ_11_138, s.bl_tree);\n send_bits(s, count - 11, 7);\n }\n\n count = 0;\n prevlen = curlen;\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n\n } else if (curlen === nextlen) {\n max_count = 6;\n min_count = 3;\n\n } else {\n max_count = 7;\n min_count = 4;\n }\n }\n}\n\n\n/* ===========================================================================\n * Construct the Huffman tree for the bit lengths and return the index in\n * bl_order of the last bit length code to send.\n */\nfunction build_bl_tree(s) {\n var max_blindex; /* index of last bit length code of non zero freq */\n\n /* Determine the bit length frequencies for literal and distance trees */\n scan_tree(s, s.dyn_ltree, s.l_desc.max_code);\n scan_tree(s, s.dyn_dtree, s.d_desc.max_code);\n\n /* Build the bit length tree: */\n build_tree(s, s.bl_desc);\n /* opt_len now includes the length of the tree representations, except\n * the lengths of the bit lengths codes and the 5+5+4 bits for the counts.\n */\n\n /* Determine the number of bit length codes to send. The pkzip format\n * requires that at least 4 bit length codes be sent. (appnote.txt says\n * 3 but the actual value used is 4.)\n */\n for (max_blindex = BL_CODES - 1; max_blindex >= 3; max_blindex--) {\n if (s.bl_tree[bl_order[max_blindex] * 2 + 1]/*.Len*/ !== 0) {\n break;\n }\n }\n /* Update opt_len to include the bit length tree and counts */\n s.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4;\n //Tracev((stderr, \"\\ndyn trees: dyn %ld, stat %ld\",\n // s->opt_len, s->static_len));\n\n return max_blindex;\n}\n\n\n/* ===========================================================================\n * Send the header for a block using dynamic Huffman trees: the counts, the\n * lengths of the bit length codes, the literal tree and the distance tree.\n * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.\n */\nfunction send_all_trees(s, lcodes, dcodes, blcodes)\n// deflate_state *s;\n// int lcodes, dcodes, blcodes; /* number of codes for each tree */\n{\n var rank; /* index in bl_order */\n\n //Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, \"not enough codes\");\n //Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES,\n // \"too many codes\");\n //Tracev((stderr, \"\\nbl counts: \"));\n send_bits(s, lcodes - 257, 5); /* not +255 as stated in appnote.txt */\n send_bits(s, dcodes - 1, 5);\n send_bits(s, blcodes - 4, 4); /* not -3 as stated in appnote.txt */\n for (rank = 0; rank < blcodes; rank++) {\n //Tracev((stderr, \"\\nbl code %2d \", bl_order[rank]));\n send_bits(s, s.bl_tree[bl_order[rank] * 2 + 1]/*.Len*/, 3);\n }\n //Tracev((stderr, \"\\nbl tree: sent %ld\", s->bits_sent));\n\n send_tree(s, s.dyn_ltree, lcodes - 1); /* literal tree */\n //Tracev((stderr, \"\\nlit tree: sent %ld\", s->bits_sent));\n\n send_tree(s, s.dyn_dtree, dcodes - 1); /* distance tree */\n //Tracev((stderr, \"\\ndist tree: sent %ld\", s->bits_sent));\n}\n\n\n/* ===========================================================================\n * Check if the data type is TEXT or BINARY, using the following algorithm:\n * - TEXT if the two conditions below are satisfied:\n * a) There are no non-portable control characters belonging to the\n * \"black list\" (0..6, 14..25, 28..31).\n * b) There is at least one printable character belonging to the\n * \"white list\" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).\n * - BINARY otherwise.\n * - The following partially-portable control characters form a\n * \"gray list\" that is ignored in this detection algorithm:\n * (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).\n * IN assertion: the fields Freq of dyn_ltree are set.\n */\nfunction detect_data_type(s) {\n /* black_mask is the bit mask of black-listed bytes\n * set bits 0..6, 14..25, and 28..31\n * 0xf3ffc07f = binary 11110011111111111100000001111111\n */\n var black_mask = 0xf3ffc07f;\n var n;\n\n /* Check for non-textual (\"black-listed\") bytes. */\n for (n = 0; n <= 31; n++, black_mask >>>= 1) {\n if ((black_mask & 1) && (s.dyn_ltree[n * 2]/*.Freq*/ !== 0)) {\n return Z_BINARY;\n }\n }\n\n /* Check for textual (\"white-listed\") bytes. */\n if (s.dyn_ltree[9 * 2]/*.Freq*/ !== 0 || s.dyn_ltree[10 * 2]/*.Freq*/ !== 0 ||\n s.dyn_ltree[13 * 2]/*.Freq*/ !== 0) {\n return Z_TEXT;\n }\n for (n = 32; n < LITERALS; n++) {\n if (s.dyn_ltree[n * 2]/*.Freq*/ !== 0) {\n return Z_TEXT;\n }\n }\n\n /* There are no \"black-listed\" or \"white-listed\" bytes:\n * this stream either is empty or has tolerated (\"gray-listed\") bytes only.\n */\n return Z_BINARY;\n}\n\n\nvar static_init_done = false;\n\n/* ===========================================================================\n * Initialize the tree data structures for a new zlib stream.\n */\nfunction _tr_init(s)\n{\n\n if (!static_init_done) {\n tr_static_init();\n static_init_done = true;\n }\n\n s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc);\n s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc);\n s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc);\n\n s.bi_buf = 0;\n s.bi_valid = 0;\n\n /* Initialize the first block of the first file: */\n init_block(s);\n}\n\n\n/* ===========================================================================\n * Send a stored block\n */\nfunction _tr_stored_block(s, buf, stored_len, last)\n//DeflateState *s;\n//charf *buf; /* input block */\n//ulg stored_len; /* length of input block */\n//int last; /* one if this is the last block for a file */\n{\n send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3); /* send block type */\n copy_block(s, buf, stored_len, true); /* with header */\n}\n\n\n/* ===========================================================================\n * Send one empty static block to give enough lookahead for inflate.\n * This takes 10 bits, of which 7 may remain in the bit buffer.\n */\nfunction _tr_align(s) {\n send_bits(s, STATIC_TREES << 1, 3);\n send_code(s, END_BLOCK, static_ltree);\n bi_flush(s);\n}\n\n\n/* ===========================================================================\n * Determine the best encoding for the current block: dynamic trees, static\n * trees or store, and output the encoded block to the zip file.\n */\nfunction _tr_flush_block(s, buf, stored_len, last)\n//DeflateState *s;\n//charf *buf; /* input block, or NULL if too old */\n//ulg stored_len; /* length of input block */\n//int last; /* one if this is the last block for a file */\n{\n var opt_lenb, static_lenb; /* opt_len and static_len in bytes */\n var max_blindex = 0; /* index of last bit length code of non zero freq */\n\n /* Build the Huffman trees unless a stored block is forced */\n if (s.level > 0) {\n\n /* Check if the file is binary or text */\n if (s.strm.data_type === Z_UNKNOWN) {\n s.strm.data_type = detect_data_type(s);\n }\n\n /* Construct the literal and distance trees */\n build_tree(s, s.l_desc);\n // Tracev((stderr, \"\\nlit data: dyn %ld, stat %ld\", s->opt_len,\n // s->static_len));\n\n build_tree(s, s.d_desc);\n // Tracev((stderr, \"\\ndist data: dyn %ld, stat %ld\", s->opt_len,\n // s->static_len));\n /* At this point, opt_len and static_len are the total bit lengths of\n * the compressed block data, excluding the tree representations.\n */\n\n /* Build the bit length tree for the above two trees, and get the index\n * in bl_order of the last bit length code to send.\n */\n max_blindex = build_bl_tree(s);\n\n /* Determine the best encoding. Compute the block lengths in bytes. */\n opt_lenb = (s.opt_len + 3 + 7) >>> 3;\n static_lenb = (s.static_len + 3 + 7) >>> 3;\n\n // Tracev((stderr, \"\\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u \",\n // opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,\n // s->last_lit));\n\n if (static_lenb <= opt_lenb) { opt_lenb = static_lenb; }\n\n } else {\n // Assert(buf != (char*)0, \"lost buf\");\n opt_lenb = static_lenb = stored_len + 5; /* force a stored block */\n }\n\n if ((stored_len + 4 <= opt_lenb) && (buf !== -1)) {\n /* 4: two words for the lengths */\n\n /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.\n * Otherwise we can't have processed more than WSIZE input bytes since\n * the last block flush, because compression would have been\n * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to\n * transform a block into a stored block.\n */\n _tr_stored_block(s, buf, stored_len, last);\n\n } else if (s.strategy === Z_FIXED || static_lenb === opt_lenb) {\n\n send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3);\n compress_block(s, static_ltree, static_dtree);\n\n } else {\n send_bits(s, (DYN_TREES << 1) + (last ? 1 : 0), 3);\n send_all_trees(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, max_blindex + 1);\n compress_block(s, s.dyn_ltree, s.dyn_dtree);\n }\n // Assert (s->compressed_len == s->bits_sent, \"bad compressed size\");\n /* The above check is made mod 2^32, for files larger than 512 MB\n * and uLong implemented on 32 bits.\n */\n init_block(s);\n\n if (last) {\n bi_windup(s);\n }\n // Tracev((stderr,\"\\ncomprlen %lu(%lu) \", s->compressed_len>>3,\n // s->compressed_len-7*last));\n}\n\n/* ===========================================================================\n * Save the match info and tally the frequency counts. Return true if\n * the current block must be flushed.\n */\nfunction _tr_tally(s, dist, lc)\n// deflate_state *s;\n// unsigned dist; /* distance of matched string */\n// unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */\n{\n //var out_length, in_length, dcode;\n\n s.pending_buf[s.d_buf + s.last_lit * 2] = (dist >>> 8) & 0xff;\n s.pending_buf[s.d_buf + s.last_lit * 2 + 1] = dist & 0xff;\n\n s.pending_buf[s.l_buf + s.last_lit] = lc & 0xff;\n s.last_lit++;\n\n if (dist === 0) {\n /* lc is the unmatched char */\n s.dyn_ltree[lc * 2]/*.Freq*/++;\n } else {\n s.matches++;\n /* Here, lc is the match length - MIN_MATCH */\n dist--; /* dist = match distance - 1 */\n //Assert((ush)dist < (ush)MAX_DIST(s) &&\n // (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&\n // (ush)d_code(dist) < (ush)D_CODES, \"_tr_tally: bad match\");\n\n s.dyn_ltree[(_length_code[lc] + LITERALS + 1) * 2]/*.Freq*/++;\n s.dyn_dtree[d_code(dist) * 2]/*.Freq*/++;\n }\n\n// (!) This block is disabled in zlib defaults,\n// don't enable it for binary compatibility\n\n//#ifdef TRUNCATE_BLOCK\n// /* Try to guess if it is profitable to stop the current block here */\n// if ((s.last_lit & 0x1fff) === 0 && s.level > 2) {\n// /* Compute an upper bound for the compressed length */\n// out_length = s.last_lit*8;\n// in_length = s.strstart - s.block_start;\n//\n// for (dcode = 0; dcode < D_CODES; dcode++) {\n// out_length += s.dyn_dtree[dcode*2]/*.Freq*/ * (5 + extra_dbits[dcode]);\n// }\n// out_length >>>= 3;\n// //Tracev((stderr,\"\\nlast_lit %u, in %ld, out ~%ld(%ld%%) \",\n// // s->last_lit, in_length, out_length,\n// // 100L - out_length*100L/in_length));\n// if (s.matches < (s.last_lit>>1)/*int /2*/ && out_length < (in_length>>1)/*int /2*/) {\n// return true;\n// }\n// }\n//#endif\n\n return (s.last_lit === s.lit_bufsize - 1);\n /* We avoid equality with lit_bufsize because of wraparound at 64K\n * on 16 bit machines and because stored blocks are restricted to\n * 64K-1 bytes.\n */\n}\n\nexports._tr_init = _tr_init;\nexports._tr_stored_block = _tr_stored_block;\nexports._tr_flush_block = _tr_flush_block;\nexports._tr_tally = _tr_tally;\nexports._tr_align = _tr_align;\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/lib/zlib/trees.js?"); + +/***/ }), + +/***/ "./node_modules/pako/lib/zlib/zstream.js": +/*!***********************************************!*\ + !*** ./node_modules/pako/lib/zlib/zstream.js ***! + \***********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +eval("\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nfunction ZStream() {\n /* next input byte */\n this.input = null; // JS specific, because we have no pointers\n this.next_in = 0;\n /* number of bytes available at input */\n this.avail_in = 0;\n /* total number of input bytes read so far */\n this.total_in = 0;\n /* next output byte should be put there */\n this.output = null; // JS specific, because we have no pointers\n this.next_out = 0;\n /* remaining free space at output */\n this.avail_out = 0;\n /* total number of bytes output so far */\n this.total_out = 0;\n /* last error message, NULL if no error */\n this.msg = ''/*Z_NULL*/;\n /* not visible by applications */\n this.state = null;\n /* best guess about the data type: binary or text */\n this.data_type = 2/*Z_UNKNOWN*/;\n /* adler32 value of the uncompressed data */\n this.adler = 0;\n}\n\nmodule.exports = ZStream;\n\n\n//# sourceURL=webpack://utils/./node_modules/pako/lib/zlib/zstream.js?"); + +/***/ }), + +/***/ "./node_modules/vkbeautify/index.js": +/*!******************************************!*\ + !*** ./node_modules/vkbeautify/index.js ***! + \******************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { + +eval("/**\r\n* vkBeautify - javascript plugin to pretty-print or minify text in XML, JSON, CSS and SQL formats.\r\n*\r\n* Copyright (c) 2012 Vadim Kiryukhin\r\n* vkiryukhin @ gmail.com\r\n* http://www.eslinstructor.net/vkbeautify/\r\n*\r\n* Dual licensed under the MIT and GPL licenses:\r\n* http://www.opensource.org/licenses/mit-license.php\r\n* http://www.gnu.org/licenses/gpl.html\r\n*\r\n* Pretty print\r\n*\r\n* vkbeautify.xml(text [,indent_pattern]);\r\n* vkbeautify.json(text [,indent_pattern]);\r\n* vkbeautify.css(text [,indent_pattern]);\r\n* vkbeautify.sql(text [,indent_pattern]);\r\n*\r\n* @text - String; text to beatufy;\r\n* @indent_pattern - Integer | String;\r\n* Integer: number of white spaces;\r\n* String: character string to visualize indentation ( can also be a set of white spaces )\r\n* Minify\r\n*\r\n* vkbeautify.xmlmin(text [,preserve_comments]);\r\n* vkbeautify.jsonmin(text);\r\n* vkbeautify.cssmin(text [,preserve_comments]);\r\n* vkbeautify.sqlmin(text);\r\n*\r\n* @text - String; text to minify;\r\n* @preserve_comments - Bool; [optional];\r\n* Set this flag to true to prevent removing comments from @text ( minxml and mincss functions only. )\r\n*\r\n* Examples:\r\n* vkbeautify.xml(text); // pretty print XML\r\n* vkbeautify.json(text, 4 ); // pretty print JSON\r\n* vkbeautify.css(text, '. . . .'); // pretty print CSS\r\n* vkbeautify.sql(text, '----'); // pretty print SQL\r\n*\r\n* vkbeautify.xmlmin(text, true);// minify XML, preserve comments\r\n* vkbeautify.jsonmin(text);// minify JSON\r\n* vkbeautify.cssmin(text);// minify CSS, remove comments ( default )\r\n* vkbeautify.sqlmin(text);// minify SQL\r\n*\r\n*/\r\nfunction createShiftArr(step) {\r\n\r\n\tvar space = ' ';\r\n\r\n\tif ( isNaN(parseInt(step)) ) { // argument is string\r\n\t\tspace = step;\r\n\t} else { // argument is integer\r\n\t\tswitch(step) {\r\n\t\t\tcase 1: space = ' '; break;\r\n\t\t\tcase 2: space = ' '; break;\r\n\t\t\tcase 3: space = ' '; break;\r\n\t\t\tcase 4: space = ' '; break;\r\n\t\t\tcase 5: space = ' '; break;\r\n\t\t\tcase 6: space = ' '; break;\r\n\t\t\tcase 7: space = ' '; break;\r\n\t\t\tcase 8: space = ' '; break;\r\n\t\t\tcase 9: space = ' '; break;\r\n\t\t\tcase 10: space = ' '; break;\r\n\t\t\tcase 11: space = ' '; break;\r\n\t\t\tcase 12: space = ' '; break;\r\n\t\t}\r\n\t}\r\n\r\n\tvar shift = ['\\n']; // array of shifts\r\n\tfor(var ix=0;ix<100;ix++) {\r\n\t\tshift.push(shift[ix]+space);\r\n\t}\r\n\treturn shift;\r\n}\r\n\r\nfunction vkbeautify(){\r\n\tthis.step = ' '; // 4 spaces\r\n\tthis.shift = createShiftArr(this.step);\r\n};\r\n\r\nvkbeautify.prototype.xml = function(text,step) {\r\n\r\n\tvar ar = text.replace(/>\\s{0,}<\")\r\n\t\t\t\t .replace(/ or -1) {\r\n\t\t\t\tstr += shift[deep]+ar[ix];\r\n\t\t\t\tinComment = true;\r\n\t\t\t\t// end comment or //\r\n\t\t\t\tif(ar[ix].search(/-->/) > -1 || ar[ix].search(/\\]>/) > -1 || ar[ix].search(/!DOCTYPE/) > -1 ) {\r\n\t\t\t\t\tinComment = false;\r\n\t\t\t\t}\r\n\t\t\t} else\r\n\t\t\t// end comment or //\r\n\t\t\tif(ar[ix].search(/-->/) > -1 || ar[ix].search(/\\]>/) > -1) {\r\n\t\t\t\tstr += ar[ix];\r\n\t\t\t\tinComment = false;\r\n\t\t\t} else\r\n\t\t\t// //\r\n\t\t\tif( /^<\\w/.exec(ar[ix-1]) && /^<\\/\\w/.exec(ar[ix]) &&\r\n\t\t\t\t/^<[\\w:\\-\\.\\,]+/.exec(ar[ix-1]) == /^<\\/[\\w:\\-\\.\\,]+/.exec(ar[ix])[0].replace('/','')) {\r\n\t\t\t\tstr += ar[ix];\r\n\t\t\t\tif(!inComment) deep--;\r\n\t\t\t} else\r\n\t\t\t // //\r\n\t\t\tif(ar[ix].search(/<\\w/) > -1 && ar[ix].search(/<\\//) == -1 && ar[ix].search(/\\/>/) == -1 ) {\r\n\t\t\t\tstr = !inComment ? str += shift[deep++]+ar[ix] : str += ar[ix];\r\n\t\t\t} else\r\n\t\t\t // ... //\r\n\t\t\tif(ar[ix].search(/<\\w/) > -1 && ar[ix].search(/<\\//) > -1) {\r\n\t\t\t\tstr = !inComment ? str += shift[deep]+ar[ix] : str += ar[ix];\r\n\t\t\t} else\r\n\t\t\t// //\r\n\t\t\tif(ar[ix].search(/<\\//) > -1) {\r\n\t\t\t\tstr = !inComment ? str += shift[--deep]+ar[ix] : str += ar[ix];\r\n\t\t\t} else\r\n\t\t\t// //\r\n\t\t\tif(ar[ix].search(/\\/>/) > -1 ) {\r\n\t\t\t\tstr = !inComment ? str += shift[deep]+ar[ix] : str += ar[ix];\r\n\t\t\t} else\r\n\t\t\t// //\r\n\t\t\tif(ar[ix].search(/<\\?/) > -1) {\r\n\t\t\t\tstr += shift[deep]+ar[ix];\r\n\t\t\t} else\r\n\t\t\t// xmlns //\r\n\t\t\tif( ar[ix].search(/xmlns\\:/) > -1 || ar[ix].search(/xmlns\\=/) > -1) {\r\n\t\t\t\tstr += shift[deep]+ar[ix];\r\n\t\t\t}\r\n\r\n\t\t\telse {\r\n\t\t\t\tstr += ar[ix];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\treturn (str[0] == '\\n') ? str.slice(1) : str;\r\n}\r\n\r\nvkbeautify.prototype.json = function(text,step) {\r\n\r\n\tvar step = step ? step : this.step;\r\n\r\n\tif (typeof JSON === 'undefined' ) return text;\r\n\r\n\tif ( typeof text === \"string\" ) return JSON.stringify(JSON.parse(text), null, step);\r\n\tif ( typeof text === \"object\" ) return JSON.stringify(text, null, step);\r\n\r\n\treturn text; // text is not string nor object\r\n}\r\n\r\nvkbeautify.prototype.css = function(text, step) {\r\n\r\n\tvar ar = text.replace(/\\s{1,}/g,' ')\r\n\t\t\t\t.replace(/\\{/g,\"{~::~\")\r\n\t\t\t\t.replace(/\\}/g,\"~::~}~::~\")\r\n\t\t\t\t.replace(/\\;/g,\";~::~\")\r\n\t\t\t\t.replace(/\\/\\*/g,\"~::~/*\")\r\n\t\t\t\t.replace(/\\*\\//g,\"*/~::~\")\r\n\t\t\t\t.replace(/~::~\\s{0,}~::~/g,\"~::~\")\r\n\t\t\t\t.split('~::~'),\r\n\t\tlen = ar.length,\r\n\t\tdeep = 0,\r\n\t\tstr = '',\r\n\t\tix = 0,\r\n\t\tshift = step ? createShiftArr(step) : this.shift;\r\n\r\n\t\tfor(ix=0;ix/g,\"\")\r\n\t\t\t\t\t\t\t\t\t .replace(/[ \\r\\n\\t]{1,}xmlns/g, ' xmlns');\r\n\treturn str.replace(/>\\s{0,}<\");\r\n}\r\n\r\nvkbeautify.prototype.jsonmin = function(text) {\r\n\r\n\tif (typeof JSON === 'undefined' ) return text;\r\n\r\n\treturn JSON.stringify(JSON.parse(text), null, 0);\r\n\r\n}\r\n\r\nvkbeautify.prototype.cssmin = function(text, preserveComments) {\r\n\r\n\tvar str = preserveComments ? text\r\n\t\t\t\t\t\t\t : text.replace(/\\/\\*([^*]|[\\r\\n]|(\\*+([^*/]|[\\r\\n])))*\\*+\\//g,\"\") ;\r\n\r\n\treturn str.replace(/\\s{1,}/g,' ')\r\n\t\t\t .replace(/\\{\\s{1,}/g,\"{\")\r\n\t\t\t .replace(/\\}\\s{1,}/g,\"}\")\r\n\t\t\t .replace(/\\;\\s{1,}/g,\";\")\r\n\t\t\t .replace(/\\/\\*\\s{1,}/g,\"/*\")\r\n\t\t\t .replace(/\\*\\/\\s{1,}/g,\"*/\");\r\n}\r\n\r\nvkbeautify.prototype.sqlmin = function(text) {\r\n\treturn text.replace(/\\s{1,}/g,\" \").replace(/\\s{1,}\\(/,\"(\").replace(/\\s{1,}\\)/,\")\");\r\n}\r\n\r\nmodule.exports = new vkbeautify();\r\n\n\n//# sourceURL=webpack://utils/./node_modules/vkbeautify/index.js?"); + +/***/ }), + +/***/ "./src/utils.js": +/*!**********************!*\ + !*** ./src/utils.js ***! + \**********************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +eval("var pako = __webpack_require__(/*! pako */ \"./node_modules/pako/index.js\");\n\nvar vkbeautify = __webpack_require__(/*! vkbeautify */ \"./node_modules/vkbeautify/index.js\");\n\nmodule.exports = {\n stringToBytes: function stringToBytes(str) {\n var arr = new Array(str.length);\n\n for (var i = 0; i < str.length; i += 1) {\n arr[i] = str.charCodeAt(i);\n }\n\n return arr;\n },\n bytesToString: function bytesToString(arr) {\n var str = '';\n\n for (var i = 0; i < arr.length; i += 1) {\n str += String.fromCharCode(arr[i]);\n }\n\n return str;\n },\n encode: function encode(data, _encode, deflate, base64) {\n var result = data;\n\n if (_encode) {\n try {\n result = encodeURIComponent(result);\n } catch (e) {\n console.error(e);\n return;\n }\n }\n\n if (deflate && result.length > 0) {\n try {\n result = this.bytesToString(pako.deflateRaw(result));\n } catch (e) {\n console.error(e);\n return;\n }\n }\n\n if (base64) {\n try {\n result = btoa(result);\n } catch (e) {\n console.error(e);\n return;\n }\n }\n\n return result;\n },\n removeLinebreaks: function removeLinebreaks(data) {\n return data.replace(/(\\r\\n|\\n|\\r)/gm, '');\n },\n isencoded: function isencoded(data) {\n try {\n var node = this.parseXml(data).documentElement;\n\n if (node != null && node.nodeName == 'mxfile') {\n var diagrams = node.getElementsByTagName('diagram');\n\n if (diagrams.length > 0) {\n return true;\n }\n } else return data.indexOf('mxGraphModel') == -1;\n } catch (error) {\n return true;\n }\n\n return false;\n },\n decode: function decode(data, encode, deflate, base64) {\n try {\n var node = this.parseXml(data).documentElement;\n\n if (node != null && node.nodeName == 'mxfile') {\n var diagrams = node.getElementsByTagName('diagram');\n\n if (diagrams.length > 0) {\n data = this.getTextContent(diagrams[0]);\n }\n }\n } catch (e) {}\n\n if (base64) {\n try {\n data = atob(data);\n } catch (e) {\n console.error(e);\n return;\n }\n }\n\n if (deflate && data.length > 0) {\n try {\n data = this.bytesToString(pako.inflateRaw(data));\n } catch (e) {\n console.error(e);\n return;\n }\n }\n\n if (encode) {\n try {\n data = decodeURIComponent(data);\n } catch (e) {\n console.error(e);\n return;\n }\n }\n\n return data;\n },\n parseXml: function parseXml(xml) {\n if (window.DOMParser) {\n var parser = new DOMParser();\n return parser.parseFromString(xml, 'text/xml');\n }\n\n var result = this.createXmlDocument();\n result.async = 'false';\n result.loadXML(xml);\n return result;\n },\n createXmlDocument: function createXmlDocument() {\n var doc = null;\n\n if (document.implementation && document.implementation.createDocument) {\n doc = document.implementation.createDocument('', '', null);\n } else if (window.ActiveXObject) {\n doc = new ActiveXObject('Microsoft.XMLDOM');\n }\n\n return doc;\n },\n decodeFromUri: function decodeFromUri(data) {\n try {\n data = decodeURIComponent(data);\n } catch (e) {\n console.error(e);\n return;\n }\n\n return data;\n },\n getTextContent: function getTextContent(node) {\n return node != null ? node[node.textContent === undefined ? 'text' : 'textContent'] : '';\n },\n normalizeXml: function normalizeXml(data) {\n try {\n var str = data;\n str = str.replace(/>\\s*/g, '>');\n str = str.replace(/\\s*= GF_PLUGIN.logLevel) {\n if (level === 0) {\n console.debug(\"DEBUG : \".concat(title), obj);\n return;\n }\n\n if (level === 1) {\n console.info(\" INFO : \".concat(title), obj);\n return;\n }\n\n if (level === 2) {\n console.warn(\" WARN : \".concat(title), obj);\n return;\n }\n\n if (level === 3) {\n console.error(\"ERROR : \".concat(title), obj);\n }\n }\n }\n }\n};\n\n//# sourceURL=webpack://utils/./src/utils.js?"); + +/***/ }) + +/******/ }); +}); \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/jest.config.js b/data/plugins/grafana-flowcharting/jest.config.js new file mode 100644 index 0000000000000..c82925d870ed6 --- /dev/null +++ b/data/plugins/grafana-flowcharting/jest.config.js @@ -0,0 +1,20 @@ +module.exports = { + verbose: true, + roots: ['./spec'], + moduleDirectories: ['node_modules', 'public', 'src'], + modulePaths: ['./node_modules', './public', './src'], + globalSetup: '/spec/globalSetup.js', + globalTeardown: '/spec/globalTeardown.js', + setupFiles: ['/spec/setup-jest.js'], + transform: { + '^.+\\.jsx?$': 'babel-jest', + '^.+\\.tsx?$': 'ts-jest', + }, + moduleNameMapper: { + underscore$: 'lodash', + }, + // transformIgnorePatterns: ['./public/.*', './node_modules/.*', './dist/.*'], + testRegex: '(\\.|/)(test)\\.(jsx?|tsx?)$', + transformIgnorePatterns: ['/node_modules/(?!vue-awesome)'], + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'], +}; diff --git a/data/plugins/grafana-flowcharting/lws.config.js b/data/plugins/grafana-flowcharting/lws.config.js new file mode 100644 index 0000000000000..93dca2798d38e --- /dev/null +++ b/data/plugins/grafana-flowcharting/lws.config.js @@ -0,0 +1,3 @@ +module.exports = { + port: 80 +} \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/package-lock.json b/data/plugins/grafana-flowcharting/package-lock.json new file mode 100644 index 0000000000000..12c9f698ed3da --- /dev/null +++ b/data/plugins/grafana-flowcharting/package-lock.json @@ -0,0 +1,14490 @@ +{ + "name": "flowcharting", + "version": "0.4.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@angular/common": { + "version": "7.2.15", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-7.2.15.tgz", + "integrity": "sha512-2b5JY2HWVHCf3D1GZjmde7jdAXSTXkYtmjLtA9tQkjOOTr80eHpNSujQqnzb97dk9VT9OjfjqTQd7K3pxZz8jw==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "@angular/compiler": { + "version": "7.2.15", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-7.2.15.tgz", + "integrity": "sha512-5yb4NcLk8GuXkYf7Dcor4XkGueYp4dgihzDmMjYDUrV0NPhubKlr+SwGtLOtzgRBWJ1I2bO0S3zwa0q0OgIPOw==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "@angular/core": { + "version": "7.2.15", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-7.2.15.tgz", + "integrity": "sha512-XsuYm0jEU/mOqwDOk2utThv8J9kESkAerfuCHClE9rB2TtHUOGCfekF7lJWqjjypu6/J9ygoPFo7hdAE058ZGg==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "@angular/platform-browser": { + "version": "7.2.15", + "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-7.2.15.tgz", + "integrity": "sha512-aYgmPsbC9Tvp9vmKWD8voeAp4crwCay7/D6lM3ClEe2EeK934LuEXq3/uczMrFVbnIX7BBIo8fh03Tl7wbiGPw==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "@angular/platform-browser-dynamic": { + "version": "7.2.15", + "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-7.2.15.tgz", + "integrity": "sha512-UL2PqhzXMD769NQ6Lh6pxlBDKvN9Qol3XLRFil80lwJ1GRW16ITeYbCamcafIH2GOyd88IhmYcbMfUQ/6q4MMQ==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "@babel/cli": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.2.3.tgz", + "integrity": "sha512-bfna97nmJV6nDJhXNPeEfxyMjWnt6+IjUAaDPiYRTBlm8L41n8nvw6UAqUCbvpFfU246gHPxW7sfWwqtF4FcYA==", + "dev": true, + "requires": { + "chokidar": "^2.0.3", + "commander": "^2.8.1", + "convert-source-map": "^1.1.0", + "fs-readdir-recursive": "^1.1.0", + "glob": "^7.0.0", + "lodash": "^4.17.10", + "mkdirp": "^0.5.1", + "output-file-sync": "^2.0.0", + "slash": "^2.0.0", + "source-map": "^0.5.0" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "@babel/code-frame": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", + "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", + "dev": true, + "requires": { + "@babel/highlight": "^7.0.0" + } + }, + "@babel/core": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.4.0.tgz", + "integrity": "sha512-Dzl7U0/T69DFOTwqz/FJdnOSWS57NpjNfCwMKHABr589Lg8uX1RrlBIJ7L5Dubt/xkLsx0xH5EBFzlBVes1ayA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/generator": "^7.4.0", + "@babel/helpers": "^7.4.0", + "@babel/parser": "^7.4.0", + "@babel/template": "^7.4.0", + "@babel/traverse": "^7.4.0", + "@babel/types": "^7.4.0", + "convert-source-map": "^1.1.0", + "debug": "^4.1.0", + "json5": "^2.1.0", + "lodash": "^4.17.11", + "resolve": "^1.3.2", + "semver": "^5.4.1", + "source-map": "^0.5.0" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "@babel/generator": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.4.0.tgz", + "integrity": "sha512-/v5I+a1jhGSKLgZDcmAUZ4K/VePi43eRkUs3yePW1HB1iANOD5tqJXwGSG4BZhSksP8J9ejSlwGeTiiOFZOrXQ==", + "dev": true, + "requires": { + "@babel/types": "^7.4.0", + "jsesc": "^2.5.1", + "lodash": "^4.17.11", + "source-map": "^0.5.0", + "trim-right": "^1.0.1" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "@babel/helper-annotate-as-pure": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0.tgz", + "integrity": "sha512-3UYcJUj9kvSLbLbUIfQTqzcy5VX7GRZ/CCDrnOaZorFFM01aXp1+GJwuFGV4NDDoAS+mOUyHcO6UD/RfqOks3Q==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.1.0.tgz", + "integrity": "sha512-qNSR4jrmJ8M1VMM9tibvyRAHXQs2PmaksQF7c1CGJNipfe3D8p+wgNwgso/P2A2r2mdgBWAXljNWR0QRZAMW8w==", + "dev": true, + "requires": { + "@babel/helper-explode-assignable-expression": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-builder-react-jsx": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.3.0.tgz", + "integrity": "sha512-MjA9KgwCuPEkQd9ncSXvSyJ5y+j2sICHyrI0M3L+6fnS4wMSNDc1ARXsbTfbb2cXHn17VisSnU/sHFTCxVxSMw==", + "dev": true, + "requires": { + "@babel/types": "^7.3.0", + "esutils": "^2.0.0" + } + }, + "@babel/helper-call-delegate": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/helper-call-delegate/-/helper-call-delegate-7.4.0.tgz", + "integrity": "sha512-SdqDfbVdNQCBp3WhK2mNdDvHd3BD6qbmIc43CAyjnsfCmgHMeqgDcM3BzY2lchi7HBJGJ2CVdynLWbezaE4mmQ==", + "dev": true, + "requires": { + "@babel/helper-hoist-variables": "^7.4.0", + "@babel/traverse": "^7.4.0", + "@babel/types": "^7.4.0" + } + }, + "@babel/helper-create-class-features-plugin": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.4.0.tgz", + "integrity": "sha512-2K8NohdOT7P6Vyp23QH4w2IleP8yG3UJsbRKwA4YP6H8fErcLkFuuEEqbF2/BYBKSNci/FWJiqm6R3VhM/QHgw==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.1.0", + "@babel/helper-member-expression-to-functions": "^7.0.0", + "@babel/helper-optimise-call-expression": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-replace-supers": "^7.4.0", + "@babel/helper-split-export-declaration": "^7.4.0" + } + }, + "@babel/helper-define-map": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.4.0.tgz", + "integrity": "sha512-wAhQ9HdnLIywERVcSvX40CEJwKdAa1ID4neI9NXQPDOHwwA+57DqwLiPEVy2AIyWzAk0CQ8qx4awO0VUURwLtA==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.1.0", + "@babel/types": "^7.4.0", + "lodash": "^4.17.11" + } + }, + "@babel/helper-explode-assignable-expression": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.1.0.tgz", + "integrity": "sha512-NRQpfHrJ1msCHtKjbzs9YcMmJZOg6mQMmGRB+hbamEdG5PNpaSm95275VD92DvJKuyl0s2sFiDmMZ+EnnvufqA==", + "dev": true, + "requires": { + "@babel/traverse": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-function-name": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz", + "integrity": "sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw==", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "^7.0.0", + "@babel/template": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz", + "integrity": "sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-hoist-variables": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.4.0.tgz", + "integrity": "sha512-/NErCuoe/et17IlAQFKWM24qtyYYie7sFIrW/tIQXpck6vAu2hhtYYsKLBWQV+BQZMbcIYPU/QMYuTufrY4aQw==", + "dev": true, + "requires": { + "@babel/types": "^7.4.0" + } + }, + "@babel/helper-member-expression-to-functions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0.tgz", + "integrity": "sha512-avo+lm/QmZlv27Zsi0xEor2fKcqWG56D5ae9dzklpIaY7cQMK5N8VSpaNVPPagiqmy7LrEjK1IWdGMOqPu5csg==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-module-imports": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.0.0.tgz", + "integrity": "sha512-aP/hlLq01DWNEiDg4Jn23i+CXxW/owM4WpDLFUbpjxe4NS3BhLVZQ5i7E0ZrxuQ/vwekIeciyamgB1UIYxxM6A==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-module-transforms": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.2.2.tgz", + "integrity": "sha512-YRD7I6Wsv+IHuTPkAmAS4HhY0dkPobgLftHp0cRGZSdrRvmZY8rFvae/GVu3bD00qscuvK3WPHB3YdNpBXUqrA==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.0.0", + "@babel/helper-simple-access": "^7.1.0", + "@babel/helper-split-export-declaration": "^7.0.0", + "@babel/template": "^7.2.2", + "@babel/types": "^7.2.2", + "lodash": "^4.17.10" + } + }, + "@babel/helper-optimise-call-expression": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0.tgz", + "integrity": "sha512-u8nd9NQePYNQV8iPWu/pLLYBqZBa4ZaY1YWRFMuxrid94wKI1QNt67NEZ7GAe5Kc/0LLScbim05xZFWkAdrj9g==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz", + "integrity": "sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==", + "dev": true + }, + "@babel/helper-regex": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.0.0.tgz", + "integrity": "sha512-TR0/N0NDCcUIUEbqV6dCO+LptmmSQFQ7q70lfcEB4URsjD0E1HzicrwUH+ap6BAQ2jhCX9Q4UqZy4wilujWlkg==", + "dev": true, + "requires": { + "lodash": "^4.17.10" + } + }, + "@babel/helper-remap-async-to-generator": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.1.0.tgz", + "integrity": "sha512-3fOK0L+Fdlg8S5al8u/hWE6vhufGSn0bN09xm2LXMy//REAF8kDCrYoOBKYmA8m5Nom+sV9LyLCwrFynA8/slg==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.0.0", + "@babel/helper-wrap-function": "^7.1.0", + "@babel/template": "^7.1.0", + "@babel/traverse": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-replace-supers": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.4.0.tgz", + "integrity": "sha512-PVwCVnWWAgnal+kJ+ZSAphzyl58XrFeSKSAJRiqg5QToTsjL+Xu1f9+RJ+d+Q0aPhPfBGaYfkox66k86thxNSg==", + "dev": true, + "requires": { + "@babel/helper-member-expression-to-functions": "^7.0.0", + "@babel/helper-optimise-call-expression": "^7.0.0", + "@babel/traverse": "^7.4.0", + "@babel/types": "^7.4.0" + } + }, + "@babel/helper-simple-access": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.1.0.tgz", + "integrity": "sha512-Vk+78hNjRbsiu49zAPALxTb+JUQCz1aolpd8osOF16BGnLtseD21nbHgLPGUwrXEurZgiCOUmvs3ExTu4F5x6w==", + "dev": true, + "requires": { + "@babel/template": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.4.0.tgz", + "integrity": "sha512-7Cuc6JZiYShaZnybDmfwhY4UYHzI6rlqhWjaIqbsJGsIqPimEYy5uh3akSRLMg65LSdSEnJ8a8/bWQN6u2oMGw==", + "dev": true, + "requires": { + "@babel/types": "^7.4.0" + } + }, + "@babel/helper-wrap-function": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.2.0.tgz", + "integrity": "sha512-o9fP1BZLLSrYlxYEYyl2aS+Flun5gtjTIG8iln+XuEzQTs0PLagAGSXUcqruJwD5fM48jzIEggCKpIfWTcR7pQ==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.1.0", + "@babel/template": "^7.1.0", + "@babel/traverse": "^7.1.0", + "@babel/types": "^7.2.0" + } + }, + "@babel/helpers": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.4.2.tgz", + "integrity": "sha512-gQR1eQeroDzFBikhrCccm5Gs2xBjZ57DNjGbqTaHo911IpmSxflOQWMAHPw/TXk8L3isv7s9lYzUkexOeTQUYg==", + "dev": true, + "requires": { + "@babel/template": "^7.4.0", + "@babel/traverse": "^7.4.0", + "@babel/types": "^7.4.0" + } + }, + "@babel/highlight": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", + "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^4.0.0" + } + }, + "@babel/parser": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.4.2.tgz", + "integrity": "sha512-9fJTDipQFvlfSVdD/JBtkiY0br9BtfvW2R8wo6CX/Ej2eMuV0gWPk1M67Mt3eggQvBqYW1FCEk8BN7WvGm/g5g==", + "dev": true + }, + "@babel/plugin-proposal-async-generator-functions": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.2.0.tgz", + "integrity": "sha512-+Dfo/SCQqrwx48ptLVGLdE39YtWRuKc/Y9I5Fy0P1DDBB9lsAHpjcEJQt+4IifuSOSTLBKJObJqMvaO1pIE8LQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-remap-async-to-generator": "^7.1.0", + "@babel/plugin-syntax-async-generators": "^7.2.0" + } + }, + "@babel/plugin-proposal-class-properties": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.4.0.tgz", + "integrity": "sha512-t2ECPNOXsIeK1JxJNKmgbzQtoG27KIlVE61vTqX0DKR9E9sZlVVxWUtEW9D5FlZ8b8j7SBNCHY47GgPKCKlpPg==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.4.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-proposal-decorators": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.3.0.tgz", + "integrity": "sha512-3W/oCUmsO43FmZIqermmq6TKaRSYhmh/vybPfVFwQWdSb8xwki38uAIvknCRzuyHRuYfCYmJzL9or1v0AffPjg==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.3.0", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-decorators": "^7.2.0" + } + }, + "@babel/plugin-proposal-json-strings": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.2.0.tgz", + "integrity": "sha512-MAFV1CA/YVmYwZG0fBQyXhmj0BHCB5egZHCKWIFVv/XCxAeVGIHfos3SwDck4LvCllENIAg7xMKOG5kH0dzyUg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-json-strings": "^7.2.0" + } + }, + "@babel/plugin-proposal-object-rest-spread": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.4.0.tgz", + "integrity": "sha512-uTNi8pPYyUH2eWHyYWWSYJKwKg34hhgl4/dbejEjL+64OhbHjTX7wEVWMQl82tEmdDsGeu77+s8HHLS627h6OQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-object-rest-spread": "^7.2.0" + } + }, + "@babel/plugin-proposal-optional-catch-binding": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.2.0.tgz", + "integrity": "sha512-mgYj3jCcxug6KUcX4OBoOJz3CMrwRfQELPQ5560F70YQUBZB7uac9fqaWamKR1iWUzGiK2t0ygzjTScZnVz75g==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-optional-catch-binding": "^7.2.0" + } + }, + "@babel/plugin-proposal-unicode-property-regex": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.4.0.tgz", + "integrity": "sha512-h/KjEZ3nK9wv1P1FSNb9G079jXrNYR0Ko+7XkOx85+gM24iZbPn0rh4vCftk+5QKY7y1uByFataBTmX7irEF1w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-regex": "^7.0.0", + "regexpu-core": "^4.5.4" + } + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.2.0.tgz", + "integrity": "sha512-1ZrIRBv2t0GSlcwVoQ6VgSLpLgiN/FVQUzt9znxo7v2Ov4jJrs8RY8tv0wvDmFN3qIdMKWrmMMW6yZ0G19MfGg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-decorators": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.2.0.tgz", + "integrity": "sha512-38QdqVoXdHUQfTpZo3rQwqQdWtCn5tMv4uV6r2RMfTqNBuv4ZBhz79SfaQWKTVmxHjeFv/DnXVC/+agHCklYWA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-dynamic-import": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.2.0.tgz", + "integrity": "sha512-mVxuJ0YroI/h/tbFTPGZR8cv6ai+STMKNBq0f8hFxsxWjl94qqhsb+wXbpNMDPU3cfR1TIsVFzU3nXyZMqyK4w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-flow": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.2.0.tgz", + "integrity": "sha512-r6YMuZDWLtLlu0kqIim5o/3TNRAlWb073HwT3e2nKf9I8IIvOggPrnILYPsrrKilmn/mYEMCf/Z07w3yQJF6dg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-json-strings": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.2.0.tgz", + "integrity": "sha512-5UGYnMSLRE1dqqZwug+1LISpA403HzlSfsg6P9VXU6TBjcSHeNlw4DxDx7LgpF+iKZoOG/+uzqoRHTdcUpiZNg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-jsx": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.2.0.tgz", + "integrity": "sha512-VyN4QANJkRW6lDBmENzRszvZf3/4AXaj9YR7GwrWeeN9tEBPuXbmDYVU9bYBN0D70zCWVwUy0HWq2553VCb6Hw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.2.0.tgz", + "integrity": "sha512-t0JKGgqk2We+9may3t0xDdmneaXmyxq0xieYcKHxIsrJO64n1OiMWNUtc5gQK1PA0NpdCRrtZp4z+IUaKugrSA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.2.0.tgz", + "integrity": "sha512-bDe4xKNhb0LI7IvZHiA13kff0KEfaGX/Hv4lMA9+7TEc63hMNvfKo6ZFpXhKuEp+II/q35Gc4NoMeDZyaUbj9w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-syntax-typescript": { + "version": "7.3.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.3.3.tgz", + "integrity": "sha512-dGwbSMA1YhVS8+31CnPR7LB4pcbrzcV99wQzby4uAfrkZPYZlQ7ImwdpzLqi6Z6IL02b8IAL379CaMwo0x5Lag==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-arrow-functions": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.2.0.tgz", + "integrity": "sha512-ER77Cax1+8/8jCB9fo4Ud161OZzWN5qawi4GusDuRLcDbDG+bIGYY20zb2dfAFdTRGzrfq2xZPvF0R64EHnimg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-async-to-generator": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.4.0.tgz", + "integrity": "sha512-EeaFdCeUULM+GPFEsf7pFcNSxM7hYjoj5fiYbyuiXobW4JhFnjAv9OWzNwHyHcKoPNpAfeRDuW6VyaXEDUBa7g==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-remap-async-to-generator": "^7.1.0" + } + }, + "@babel/plugin-transform-block-scoped-functions": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.2.0.tgz", + "integrity": "sha512-ntQPR6q1/NKuphly49+QiQiTN0O63uOwjdD6dhIjSWBI5xlrbUFh720TIpzBhpnrLfv2tNH/BXvLIab1+BAI0w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-block-scoping": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.4.0.tgz", + "integrity": "sha512-AWyt3k+fBXQqt2qb9r97tn3iBwFpiv9xdAiG+Gr2HpAZpuayvbL55yWrsV3MyHvXk/4vmSiedhDRl1YI2Iy5nQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "lodash": "^4.17.11" + } + }, + "@babel/plugin-transform-classes": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.4.0.tgz", + "integrity": "sha512-XGg1Mhbw4LDmrO9rSTNe+uI79tQPdGs0YASlxgweYRLZqo/EQktjaOV4tchL/UZbM0F+/94uOipmdNGoaGOEYg==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.0.0", + "@babel/helper-define-map": "^7.4.0", + "@babel/helper-function-name": "^7.1.0", + "@babel/helper-optimise-call-expression": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-replace-supers": "^7.4.0", + "@babel/helper-split-export-declaration": "^7.4.0", + "globals": "^11.1.0" + } + }, + "@babel/plugin-transform-computed-properties": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.2.0.tgz", + "integrity": "sha512-kP/drqTxY6Xt3NNpKiMomfgkNn4o7+vKxK2DDKcBG9sHj51vHqMBGy8wbDS/J4lMxnqs153/T3+DmCEAkC5cpA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-destructuring": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.4.0.tgz", + "integrity": "sha512-HySkoatyYTY3ZwLI8GGvkRWCFrjAGXUHur5sMecmCIdIharnlcWWivOqDJI76vvmVZfzwb6G08NREsrY96RhGQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-dotall-regex": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.2.0.tgz", + "integrity": "sha512-sKxnyHfizweTgKZf7XsXu/CNupKhzijptfTM+bozonIuyVrLWVUvYjE2bhuSBML8VQeMxq4Mm63Q9qvcvUcciQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-regex": "^7.0.0", + "regexpu-core": "^4.1.3" + } + }, + "@babel/plugin-transform-duplicate-keys": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.2.0.tgz", + "integrity": "sha512-q+yuxW4DsTjNceUiTzK0L+AfQ0zD9rWaTLiUqHA8p0gxx7lu1EylenfzjeIWNkPy6e/0VG/Wjw9uf9LueQwLOw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-exponentiation-operator": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.2.0.tgz", + "integrity": "sha512-umh4hR6N7mu4Elq9GG8TOu9M0bakvlsREEC+ialrQN6ABS4oDQ69qJv1VtR3uxlKMCQMCvzk7vr17RHKcjx68A==", + "dev": true, + "requires": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.1.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-flow-strip-types": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.2.3.tgz", + "integrity": "sha512-xnt7UIk9GYZRitqCnsVMjQK1O2eKZwFB3CvvHjf5SGx6K6vr/MScCKQDnf1DxRaj501e3pXjti+inbSXX2ZUoQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-flow": "^7.2.0" + } + }, + "@babel/plugin-transform-for-of": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.4.0.tgz", + "integrity": "sha512-vWdfCEYLlYSxbsKj5lGtzA49K3KANtb8qCPQ1em07txJzsBwY+cKJzBHizj5fl3CCx7vt+WPdgDLTHmydkbQSQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-function-name": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.2.0.tgz", + "integrity": "sha512-kWgksow9lHdvBC2Z4mxTsvc7YdY7w/V6B2vy9cTIPtLEE9NhwoWivaxdNM/S37elu5bqlLP/qOY906LukO9lkQ==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.1.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-literals": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.2.0.tgz", + "integrity": "sha512-2ThDhm4lI4oV7fVQ6pNNK+sx+c/GM5/SaML0w/r4ZB7sAneD/piDJtwdKlNckXeyGK7wlwg2E2w33C/Hh+VFCg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-modules-amd": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.2.0.tgz", + "integrity": "sha512-mK2A8ucqz1qhrdqjS9VMIDfIvvT2thrEsIQzbaTdc5QFzhDjQv2CkJJ5f6BXIkgbmaoax3zBr2RyvV/8zeoUZw==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.1.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-modules-commonjs": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.4.0.tgz", + "integrity": "sha512-iWKAooAkipG7g1IY0eah7SumzfnIT3WNhT4uYB2kIsvHnNSB6MDYVa5qyICSwaTBDBY2c4SnJ3JtEa6ltJd6Jw==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.1.0", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-simple-access": "^7.1.0" + } + }, + "@babel/plugin-transform-modules-systemjs": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.4.0.tgz", + "integrity": "sha512-gjPdHmqiNhVoBqus5qK60mWPp1CmYWp/tkh11mvb0rrys01HycEGD7NvvSoKXlWEfSM9TcL36CpsK8ElsADptQ==", + "dev": true, + "requires": { + "@babel/helper-hoist-variables": "^7.4.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-modules-umd": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.2.0.tgz", + "integrity": "sha512-BV3bw6MyUH1iIsGhXlOK6sXhmSarZjtJ/vMiD9dNmpY8QXFFQTj+6v92pcfy1iqa8DeAfJFwoxcrS/TUZda6sw==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.1.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.4.2.tgz", + "integrity": "sha512-NsAuliSwkL3WO2dzWTOL1oZJHm0TM8ZY8ZSxk2ANyKkt5SQlToGA4pzctmq1BEjoacurdwZ3xp2dCQWJkME0gQ==", + "dev": true, + "requires": { + "regexp-tree": "^0.1.0" + } + }, + "@babel/plugin-transform-new-target": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.4.0.tgz", + "integrity": "sha512-6ZKNgMQmQmrEX/ncuCwnnw1yVGoaOW5KpxNhoWI7pCQdA0uZ0HqHGqenCUIENAnxRjy2WwNQ30gfGdIgqJXXqw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-object-super": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.2.0.tgz", + "integrity": "sha512-VMyhPYZISFZAqAPVkiYb7dUe2AsVi2/wCT5+wZdsNO31FojQJa9ns40hzZ6U9f50Jlq4w6qwzdBB2uwqZ00ebg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-replace-supers": "^7.1.0" + } + }, + "@babel/plugin-transform-parameters": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.4.0.tgz", + "integrity": "sha512-Xqv6d1X+doyiuCGDoVJFtlZx0onAX0tnc3dY8w71pv/O0dODAbusVv2Ale3cGOwfiyi895ivOBhYa9DhAM8dUA==", + "dev": true, + "requires": { + "@babel/helper-call-delegate": "^7.4.0", + "@babel/helper-get-function-arity": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-react-constant-elements": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.2.0.tgz", + "integrity": "sha512-YYQFg6giRFMsZPKUM9v+VcHOdfSQdz9jHCx3akAi3UYgyjndmdYGSXylQ/V+HswQt4fL8IklchD9HTsaOCrWQQ==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-react-display-name": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.2.0.tgz", + "integrity": "sha512-Htf/tPa5haZvRMiNSQSFifK12gtr/8vwfr+A9y69uF0QcU77AVu4K7MiHEkTxF7lQoHOL0F9ErqgfNEAKgXj7A==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-react-jsx": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.3.0.tgz", + "integrity": "sha512-a/+aRb7R06WcKvQLOu4/TpjKOdvVEKRLWFpKcNuHhiREPgGRB4TQJxq07+EZLS8LFVYpfq1a5lDUnuMdcCpBKg==", + "dev": true, + "requires": { + "@babel/helper-builder-react-jsx": "^7.3.0", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-jsx": "^7.2.0" + } + }, + "@babel/plugin-transform-react-jsx-self": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.2.0.tgz", + "integrity": "sha512-v6S5L/myicZEy+jr6ielB0OR8h+EH/1QFx/YJ7c7Ua+7lqsjj/vW6fD5FR9hB/6y7mGbfT4vAURn3xqBxsUcdg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-jsx": "^7.2.0" + } + }, + "@babel/plugin-transform-react-jsx-source": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.2.0.tgz", + "integrity": "sha512-A32OkKTp4i5U6aE88GwwcuV4HAprUgHcTq0sSafLxjr6AW0QahrCRCjxogkbbcdtpbXkuTOlgpjophCxb6sh5g==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-jsx": "^7.2.0" + } + }, + "@babel/plugin-transform-regenerator": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.4.0.tgz", + "integrity": "sha512-SZ+CgL4F0wm4npojPU6swo/cK4FcbLgxLd4cWpHaNXY/NJ2dpahODCqBbAwb2rDmVszVb3SSjnk9/vik3AYdBw==", + "dev": true, + "requires": { + "regenerator-transform": "^0.13.4" + } + }, + "@babel/plugin-transform-runtime": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.2.0.tgz", + "integrity": "sha512-jIgkljDdq4RYDnJyQsiWbdvGeei/0MOTtSHKO/rfbd/mXBxNpdlulMx49L0HQ4pug1fXannxoqCI+fYSle9eSw==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0", + "resolve": "^1.8.1", + "semver": "^5.5.1" + } + }, + "@babel/plugin-transform-shorthand-properties": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.2.0.tgz", + "integrity": "sha512-QP4eUM83ha9zmYtpbnyjTLAGKQritA5XW/iG9cjtuOI8s1RuL/3V6a3DeSHfKutJQ+ayUfeZJPcnCYEQzaPQqg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-spread": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.2.2.tgz", + "integrity": "sha512-KWfky/58vubwtS0hLqEnrWJjsMGaOeSBn90Ezn5Jeg9Z8KKHmELbP1yGylMlm5N6TPKeY9A2+UaSYLdxahg01w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-sticky-regex": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.2.0.tgz", + "integrity": "sha512-KKYCoGaRAf+ckH8gEL3JHUaFVyNHKe3ASNsZ+AlktgHevvxGigoIttrEJb8iKN03Q7Eazlv1s6cx2B2cQ3Jabw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-regex": "^7.0.0" + } + }, + "@babel/plugin-transform-template-literals": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.2.0.tgz", + "integrity": "sha512-FkPix00J9A/XWXv4VoKJBMeSkyY9x/TqIh76wzcdfl57RJJcf8CehQ08uwfhCDNtRQYtHQKBTwKZDEyjE13Lwg==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-typeof-symbol": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.2.0.tgz", + "integrity": "sha512-2LNhETWYxiYysBtrBTqL8+La0jIoQQnIScUJc74OYvUGRmkskNY4EzLCnjHBzdmb38wqtTaixpo1NctEcvMDZw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-transform-typescript": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.4.0.tgz", + "integrity": "sha512-U7/+zKnRZg04ggM/Bm+xmu2B/PrwyDQTT/V89FXWYWNMxBDwSx56u6jtk9SEbfLFbZaEI72L+5LPvQjeZgFCrQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-typescript": "^7.2.0" + } + }, + "@babel/plugin-transform-unicode-regex": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.2.0.tgz", + "integrity": "sha512-m48Y0lMhrbXEJnVUaYly29jRXbQ3ksxPrS1Tg8t+MHqzXhtBYAvI51euOBaoAlZLPHsieY9XPVMf80a5x0cPcA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-regex": "^7.0.0", + "regexpu-core": "^4.1.3" + } + }, + "@babel/preset-env": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.4.2.tgz", + "integrity": "sha512-OEz6VOZaI9LW08CWVS3d9g/0jZA6YCn1gsKIy/fut7yZCJti5Lm1/Hi+uo/U+ODm7g4I6gULrCP+/+laT8xAsA==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-async-generator-functions": "^7.2.0", + "@babel/plugin-proposal-json-strings": "^7.2.0", + "@babel/plugin-proposal-object-rest-spread": "^7.4.0", + "@babel/plugin-proposal-optional-catch-binding": "^7.2.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.0", + "@babel/plugin-syntax-async-generators": "^7.2.0", + "@babel/plugin-syntax-json-strings": "^7.2.0", + "@babel/plugin-syntax-object-rest-spread": "^7.2.0", + "@babel/plugin-syntax-optional-catch-binding": "^7.2.0", + "@babel/plugin-transform-arrow-functions": "^7.2.0", + "@babel/plugin-transform-async-to-generator": "^7.4.0", + "@babel/plugin-transform-block-scoped-functions": "^7.2.0", + "@babel/plugin-transform-block-scoping": "^7.4.0", + "@babel/plugin-transform-classes": "^7.4.0", + "@babel/plugin-transform-computed-properties": "^7.2.0", + "@babel/plugin-transform-destructuring": "^7.4.0", + "@babel/plugin-transform-dotall-regex": "^7.2.0", + "@babel/plugin-transform-duplicate-keys": "^7.2.0", + "@babel/plugin-transform-exponentiation-operator": "^7.2.0", + "@babel/plugin-transform-for-of": "^7.4.0", + "@babel/plugin-transform-function-name": "^7.2.0", + "@babel/plugin-transform-literals": "^7.2.0", + "@babel/plugin-transform-modules-amd": "^7.2.0", + "@babel/plugin-transform-modules-commonjs": "^7.4.0", + "@babel/plugin-transform-modules-systemjs": "^7.4.0", + "@babel/plugin-transform-modules-umd": "^7.2.0", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.4.2", + "@babel/plugin-transform-new-target": "^7.4.0", + "@babel/plugin-transform-object-super": "^7.2.0", + "@babel/plugin-transform-parameters": "^7.4.0", + "@babel/plugin-transform-regenerator": "^7.4.0", + "@babel/plugin-transform-shorthand-properties": "^7.2.0", + "@babel/plugin-transform-spread": "^7.2.0", + "@babel/plugin-transform-sticky-regex": "^7.2.0", + "@babel/plugin-transform-template-literals": "^7.2.0", + "@babel/plugin-transform-typeof-symbol": "^7.2.0", + "@babel/plugin-transform-unicode-regex": "^7.2.0", + "@babel/types": "^7.4.0", + "browserslist": "^4.4.2", + "core-js-compat": "^3.0.0", + "invariant": "^2.2.2", + "js-levenshtein": "^1.1.3", + "semver": "^5.3.0" + } + }, + "@babel/preset-react": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.0.0.tgz", + "integrity": "sha512-oayxyPS4Zj+hF6Et11BwuBkmpgT/zMxyuZgFrMeZID6Hdh3dGlk4sHCAhdBCpuCKW2ppBfl2uCCetlrUIJRY3w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-transform-react-display-name": "^7.0.0", + "@babel/plugin-transform-react-jsx": "^7.0.0", + "@babel/plugin-transform-react-jsx-self": "^7.0.0", + "@babel/plugin-transform-react-jsx-source": "^7.0.0" + } + }, + "@babel/preset-typescript": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.1.0.tgz", + "integrity": "sha512-LYveByuF9AOM8WrsNne5+N79k1YxjNB6gmpCQsnuSBAcV8QUeB+ZUxQzL7Rz7HksPbahymKkq2qBR+o36ggFZA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-transform-typescript": "^7.1.0" + } + }, + "@babel/runtime": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.3.1.tgz", + "integrity": "sha512-7jGW8ppV0ant637pIqAcFfQDDH1orEPGJb8aXfUozuCU3QqX7rX4DA8iwrbPrR1hcH0FTTHz47yQnk+bl5xHQA==", + "dev": true, + "requires": { + "regenerator-runtime": "^0.12.0" + } + }, + "@babel/template": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.4.0.tgz", + "integrity": "sha512-SOWwxxClTTh5NdbbYZ0BmaBVzxzTh2tO/TeLTbF6MO6EzVhHTnff8CdBXx3mEtazFBoysmEM6GU/wF+SuSx4Fw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/parser": "^7.4.0", + "@babel/types": "^7.4.0" + } + }, + "@babel/traverse": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.4.0.tgz", + "integrity": "sha512-/DtIHKfyg2bBKnIN+BItaIlEg5pjAnzHOIQe5w+rHAw/rg9g0V7T4rqPX8BJPfW11kt3koyjAnTNwCzb28Y1PA==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/generator": "^7.4.0", + "@babel/helper-function-name": "^7.1.0", + "@babel/helper-split-export-declaration": "^7.4.0", + "@babel/parser": "^7.4.0", + "@babel/types": "^7.4.0", + "debug": "^4.1.0", + "globals": "^11.1.0", + "lodash": "^4.17.11" + } + }, + "@babel/types": { + "version": "7.4.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.4.0.tgz", + "integrity": "sha512-aPvkXyU2SPOnztlgo8n9cEiXW755mgyvueUPcpStqdzoSPm0fjO0vQBjLkt3JKJW7ufikfcnMTTPsN1xaTsBPA==", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.11", + "to-fast-properties": "^2.0.0" + } + }, + "@cnakazawa/watch": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.3.tgz", + "integrity": "sha512-r5160ogAvGyHsal38Kux7YYtodEKOj89RGb28ht1jh3SJb08VwRwAKKJL0bGb04Zd/3r9FL3BFIc3bBidYffCA==", + "dev": true, + "requires": { + "exec-sh": "^0.3.2", + "minimist": "^1.2.0" + } + }, + "@jest/console": { + "version": "24.3.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-24.3.0.tgz", + "integrity": "sha512-NaCty/OOei6rSDcbPdMiCbYCI0KGFGPgGO6B09lwWt5QTxnkuhKYET9El5u5z1GAcSxkQmSMtM63e24YabCWqA==", + "dev": true, + "requires": { + "@jest/source-map": "^24.3.0", + "@types/node": "*", + "chalk": "^2.0.1", + "slash": "^2.0.0" + } + }, + "@jest/core": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-24.5.0.tgz", + "integrity": "sha512-RDZArRzAs51YS7dXG1pbXbWGxK53rvUu8mCDYsgqqqQ6uSOaTjcVyBl2Jce0exT2rSLk38ca7az7t2f3b0/oYQ==", + "dev": true, + "requires": { + "@jest/console": "^24.3.0", + "@jest/reporters": "^24.5.0", + "@jest/test-result": "^24.5.0", + "@jest/transform": "^24.5.0", + "@jest/types": "^24.5.0", + "ansi-escapes": "^3.0.0", + "chalk": "^2.0.1", + "exit": "^0.1.2", + "graceful-fs": "^4.1.15", + "jest-changed-files": "^24.5.0", + "jest-config": "^24.5.0", + "jest-haste-map": "^24.5.0", + "jest-message-util": "^24.5.0", + "jest-regex-util": "^24.3.0", + "jest-resolve-dependencies": "^24.5.0", + "jest-runner": "^24.5.0", + "jest-runtime": "^24.5.0", + "jest-snapshot": "^24.5.0", + "jest-util": "^24.5.0", + "jest-validate": "^24.5.0", + "jest-watcher": "^24.5.0", + "micromatch": "^3.1.10", + "p-each-series": "^1.0.0", + "pirates": "^4.0.1", + "realpath-native": "^1.1.0", + "rimraf": "^2.5.4", + "strip-ansi": "^5.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + } + } + }, + "@jest/environment": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-24.5.0.tgz", + "integrity": "sha512-tzUHR9SHjMXwM8QmfHb/EJNbF0fjbH4ieefJBvtwO8YErLTrecc1ROj0uo2VnIT6SlpEGZnvdCK6VgKYBo8LsA==", + "dev": true, + "requires": { + "@jest/fake-timers": "^24.5.0", + "@jest/transform": "^24.5.0", + "@jest/types": "^24.5.0", + "@types/node": "*", + "jest-mock": "^24.5.0" + } + }, + "@jest/fake-timers": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-24.5.0.tgz", + "integrity": "sha512-i59KVt3QBz9d+4Qr4QxsKgsIg+NjfuCjSOWj3RQhjF5JNy+eVJDhANQ4WzulzNCHd72srMAykwtRn5NYDGVraw==", + "dev": true, + "requires": { + "@jest/types": "^24.5.0", + "@types/node": "*", + "jest-message-util": "^24.5.0", + "jest-mock": "^24.5.0" + } + }, + "@jest/reporters": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-24.5.0.tgz", + "integrity": "sha512-vfpceiaKtGgnuC3ss5czWOihKOUSyjJA4M4udm6nH8xgqsuQYcyDCi4nMMcBKsHXWgz9/V5G7iisnZGfOh1w6Q==", + "dev": true, + "requires": { + "@jest/environment": "^24.5.0", + "@jest/test-result": "^24.5.0", + "@jest/transform": "^24.5.0", + "@jest/types": "^24.5.0", + "chalk": "^2.0.1", + "exit": "^0.1.2", + "glob": "^7.1.2", + "istanbul-api": "^2.1.1", + "istanbul-lib-coverage": "^2.0.2", + "istanbul-lib-instrument": "^3.0.1", + "istanbul-lib-source-maps": "^3.0.1", + "jest-haste-map": "^24.5.0", + "jest-resolve": "^24.5.0", + "jest-runtime": "^24.5.0", + "jest-util": "^24.5.0", + "jest-worker": "^24.4.0", + "node-notifier": "^5.2.1", + "slash": "^2.0.0", + "source-map": "^0.6.0", + "string-length": "^2.0.0" + } + }, + "@jest/source-map": { + "version": "24.3.0", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-24.3.0.tgz", + "integrity": "sha512-zALZt1t2ou8le/crCeeiRYzvdnTzaIlpOWaet45lNSqNJUnXbppUUFR4ZUAlzgDmKee4Q5P/tKXypI1RiHwgag==", + "dev": true, + "requires": { + "callsites": "^3.0.0", + "graceful-fs": "^4.1.15", + "source-map": "^0.6.0" + } + }, + "@jest/test-result": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-24.5.0.tgz", + "integrity": "sha512-u66j2vBfa8Bli1+o3rCaVnVYa9O8CAFZeqiqLVhnarXtreSXG33YQ6vNYBogT7+nYiFNOohTU21BKiHlgmxD5A==", + "dev": true, + "requires": { + "@jest/console": "^24.3.0", + "@jest/types": "^24.5.0", + "@types/istanbul-lib-coverage": "^1.1.0" + } + }, + "@jest/test-sequencer": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-24.8.0.tgz", + "integrity": "sha512-OzL/2yHyPdCHXEzhoBuq37CE99nkme15eHkAzXRVqthreWZamEMA0WoetwstsQBCXABhczpK03JNbc4L01vvLg==", + "dev": true, + "requires": { + "@jest/test-result": "^24.8.0", + "jest-haste-map": "^24.8.0", + "jest-runner": "^24.8.0", + "jest-runtime": "^24.8.0" + }, + "dependencies": { + "@jest/console": { + "version": "24.7.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-24.7.1.tgz", + "integrity": "sha512-iNhtIy2M8bXlAOULWVTUxmnelTLFneTNEkHCgPmgd+zNwy9zVddJ6oS5rZ9iwoscNdT5mMwUd0C51v/fSlzItg==", + "dev": true, + "requires": { + "@jest/source-map": "^24.3.0", + "chalk": "^2.0.1", + "slash": "^2.0.0" + } + }, + "@jest/environment": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-24.8.0.tgz", + "integrity": "sha512-vlGt2HLg7qM+vtBrSkjDxk9K0YtRBi7HfRFaDxoRtyi+DyVChzhF20duvpdAnKVBV6W5tym8jm0U9EfXbDk1tw==", + "dev": true, + "requires": { + "@jest/fake-timers": "^24.8.0", + "@jest/transform": "^24.8.0", + "@jest/types": "^24.8.0", + "jest-mock": "^24.8.0" + } + }, + "@jest/fake-timers": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-24.8.0.tgz", + "integrity": "sha512-2M4d5MufVXwi6VzZhJ9f5S/wU4ud2ck0kxPof1Iz3zWx6Y+V2eJrES9jEktB6O3o/oEyk+il/uNu9PvASjWXQw==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0", + "jest-message-util": "^24.8.0", + "jest-mock": "^24.8.0" + } + }, + "@jest/test-result": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-24.8.0.tgz", + "integrity": "sha512-+YdLlxwizlfqkFDh7Mc7ONPQAhA4YylU1s529vVM1rsf67vGZH/2GGm5uO8QzPeVyaVMobCQ7FTxl38QrKRlng==", + "dev": true, + "requires": { + "@jest/console": "^24.7.1", + "@jest/types": "^24.8.0", + "@types/istanbul-lib-coverage": "^2.0.0" + } + }, + "@jest/transform": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-24.8.0.tgz", + "integrity": "sha512-xBMfFUP7TortCs0O+Xtez2W7Zu1PLH9bvJgtraN1CDST6LBM/eTOZ9SfwS/lvV8yOfcDpFmwf9bq5cYbXvqsvA==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/types": "^24.8.0", + "babel-plugin-istanbul": "^5.1.0", + "chalk": "^2.0.1", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.1.15", + "jest-haste-map": "^24.8.0", + "jest-regex-util": "^24.3.0", + "jest-util": "^24.8.0", + "micromatch": "^3.1.10", + "realpath-native": "^1.1.0", + "slash": "^2.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "2.4.1" + } + }, + "@jest/types": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.8.0.tgz", + "integrity": "sha512-g17UxVr2YfBtaMUxn9u/4+siG1ptg9IGYAYwvpwn61nBg779RXnjE/m7CxYcIzEt0AbHZZAHSEZNhkE2WxURVg==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^1.1.1", + "@types/yargs": "^12.0.9" + } + }, + "@types/istanbul-lib-coverage": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz", + "integrity": "sha512-hRJD2ahnnpLgsj6KWMYSrmXkM3rm2Dl1qkx6IOFD5FnuNPXJIG5L0dhgKXCYTRMGzU4n0wImQ/xfmRc4POUFlg==", + "dev": true + }, + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "babel-jest": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-24.8.0.tgz", + "integrity": "sha512-+5/kaZt4I9efoXzPlZASyK/lN9qdRKmmUav9smVc0ruPQD7IsfucQ87gpOE8mn2jbDuS6M/YOW6n3v9ZoIfgnw==", + "dev": true, + "requires": { + "@jest/transform": "^24.8.0", + "@jest/types": "^24.8.0", + "@types/babel__core": "^7.1.0", + "babel-plugin-istanbul": "^5.1.0", + "babel-preset-jest": "^24.6.0", + "chalk": "^2.4.2", + "slash": "^2.0.0" + } + }, + "babel-plugin-jest-hoist": { + "version": "24.6.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-24.6.0.tgz", + "integrity": "sha512-3pKNH6hMt9SbOv0F3WVmy5CWQ4uogS3k0GY5XLyQHJ9EGpAT9XWkFd2ZiXXtkwFHdAHa5j7w7kfxSP5lAIwu7w==", + "dev": true, + "requires": { + "@types/babel__traverse": "^7.0.6" + } + }, + "babel-preset-jest": { + "version": "24.6.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-24.6.0.tgz", + "integrity": "sha512-pdZqLEdmy1ZK5kyRUfvBb2IfTPb2BUvIJczlPspS8fWmBQslNNDBqVfh7BW5leOVJMDZKzjD8XEyABTk6gQ5yw==", + "dev": true, + "requires": { + "@babel/plugin-syntax-object-rest-spread": "^7.0.0", + "babel-plugin-jest-hoist": "^24.6.0" + } + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "expect": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-24.8.0.tgz", + "integrity": "sha512-/zYvP8iMDrzaaxHVa724eJBCKqSHmO0FA7EDkBiRHxg6OipmMn1fN+C8T9L9K8yr7UONkOifu6+LLH+z76CnaA==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0", + "ansi-styles": "^3.2.0", + "jest-get-type": "^24.8.0", + "jest-matcher-utils": "^24.8.0", + "jest-message-util": "^24.8.0", + "jest-regex-util": "^24.3.0" + } + }, + "jest-config": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-24.8.0.tgz", + "integrity": "sha512-Czl3Nn2uEzVGsOeaewGWoDPD8GStxCpAe0zOYs2x2l0fZAgPbCr3uwUkgNKV3LwE13VXythM946cd5rdGkkBZw==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^24.8.0", + "@jest/types": "^24.8.0", + "babel-jest": "^24.8.0", + "chalk": "^2.0.1", + "glob": "^7.1.1", + "jest-environment-jsdom": "^24.8.0", + "jest-environment-node": "^24.8.0", + "jest-get-type": "^24.8.0", + "jest-jasmine2": "^24.8.0", + "jest-regex-util": "^24.3.0", + "jest-resolve": "^24.8.0", + "jest-util": "^24.8.0", + "jest-validate": "^24.8.0", + "micromatch": "^3.1.10", + "pretty-format": "^24.8.0", + "realpath-native": "^1.1.0" + } + }, + "jest-diff": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-24.8.0.tgz", + "integrity": "sha512-wxetCEl49zUpJ/bvUmIFjd/o52J+yWcoc5ZyPq4/W1LUKGEhRYDIbP1KcF6t+PvqNrGAFk4/JhtxDq/Nnzs66g==", + "dev": true, + "requires": { + "chalk": "^2.0.1", + "diff-sequences": "^24.3.0", + "jest-get-type": "^24.8.0", + "pretty-format": "^24.8.0" + } + }, + "jest-each": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-24.8.0.tgz", + "integrity": "sha512-NrwK9gaL5+XgrgoCsd9svsoWdVkK4gnvyhcpzd6m487tXHqIdYeykgq3MKI1u4I+5Zf0tofr70at9dWJDeb+BA==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0", + "chalk": "^2.0.1", + "jest-get-type": "^24.8.0", + "jest-util": "^24.8.0", + "pretty-format": "^24.8.0" + } + }, + "jest-environment-jsdom": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-24.8.0.tgz", + "integrity": "sha512-qbvgLmR7PpwjoFjM/sbuqHJt/NCkviuq9vus9NBn/76hhSidO+Z6Bn9tU8friecegbJL8gzZQEMZBQlFWDCwAQ==", + "dev": true, + "requires": { + "@jest/environment": "^24.8.0", + "@jest/fake-timers": "^24.8.0", + "@jest/types": "^24.8.0", + "jest-mock": "^24.8.0", + "jest-util": "^24.8.0", + "jsdom": "^11.5.1" + } + }, + "jest-environment-node": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-24.8.0.tgz", + "integrity": "sha512-vIGUEScd1cdDgR6sqn2M08sJTRLQp6Dk/eIkCeO4PFHxZMOgy+uYLPMC4ix3PEfM5Au/x3uQ/5Tl0DpXXZsJ/Q==", + "dev": true, + "requires": { + "@jest/environment": "^24.8.0", + "@jest/fake-timers": "^24.8.0", + "@jest/types": "^24.8.0", + "jest-mock": "^24.8.0", + "jest-util": "^24.8.0" + } + }, + "jest-get-type": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-24.8.0.tgz", + "integrity": "sha512-RR4fo8jEmMD9zSz2nLbs2j0zvPpk/KCEz3a62jJWbd2ayNo0cb+KFRxPHVhE4ZmgGJEQp0fosmNz84IfqM8cMQ==", + "dev": true + }, + "jest-jasmine2": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-24.8.0.tgz", + "integrity": "sha512-cEky88npEE5LKd5jPpTdDCLvKkdyklnaRycBXL6GNmpxe41F0WN44+i7lpQKa/hcbXaQ+rc9RMaM4dsebrYong==", + "dev": true, + "requires": { + "@babel/traverse": "^7.1.0", + "@jest/environment": "^24.8.0", + "@jest/test-result": "^24.8.0", + "@jest/types": "^24.8.0", + "chalk": "^2.0.1", + "co": "^4.6.0", + "expect": "^24.8.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^24.8.0", + "jest-matcher-utils": "^24.8.0", + "jest-message-util": "^24.8.0", + "jest-runtime": "^24.8.0", + "jest-snapshot": "^24.8.0", + "jest-util": "^24.8.0", + "pretty-format": "^24.8.0", + "throat": "^4.0.0" + } + }, + "jest-leak-detector": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-24.8.0.tgz", + "integrity": "sha512-cG0yRSK8A831LN8lIHxI3AblB40uhv0z+SsQdW3GoMMVcK+sJwrIIyax5tu3eHHNJ8Fu6IMDpnLda2jhn2pD/g==", + "dev": true, + "requires": { + "pretty-format": "^24.8.0" + } + }, + "jest-matcher-utils": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-24.8.0.tgz", + "integrity": "sha512-lex1yASY51FvUuHgm0GOVj7DCYEouWSlIYmCW7APSqB9v8mXmKSn5+sWVF0MhuASG0bnYY106/49JU1FZNl5hw==", + "dev": true, + "requires": { + "chalk": "^2.0.1", + "jest-diff": "^24.8.0", + "jest-get-type": "^24.8.0", + "pretty-format": "^24.8.0" + } + }, + "jest-message-util": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-24.8.0.tgz", + "integrity": "sha512-p2k71rf/b6ns8btdB0uVdljWo9h0ovpnEe05ZKWceQGfXYr4KkzgKo3PBi8wdnd9OtNh46VpNIJynUn/3MKm1g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@jest/test-result": "^24.8.0", + "@jest/types": "^24.8.0", + "@types/stack-utils": "^1.0.1", + "chalk": "^2.0.1", + "micromatch": "^3.1.10", + "slash": "^2.0.0", + "stack-utils": "^1.0.1" + } + }, + "jest-mock": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-24.8.0.tgz", + "integrity": "sha512-6kWugwjGjJw+ZkK4mDa0Df3sDlUTsV47MSrT0nGQ0RBWJbpODDQ8MHDVtGtUYBne3IwZUhtB7elxHspU79WH3A==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0" + } + }, + "jest-runner": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-24.8.0.tgz", + "integrity": "sha512-utFqC5BaA3JmznbissSs95X1ZF+d+4WuOWwpM9+Ak356YtMhHE/GXUondZdcyAAOTBEsRGAgH/0TwLzfI9h7ow==", + "dev": true, + "requires": { + "@jest/console": "^24.7.1", + "@jest/environment": "^24.8.0", + "@jest/test-result": "^24.8.0", + "@jest/types": "^24.8.0", + "chalk": "^2.4.2", + "exit": "^0.1.2", + "graceful-fs": "^4.1.15", + "jest-config": "^24.8.0", + "jest-docblock": "^24.3.0", + "jest-haste-map": "^24.8.0", + "jest-jasmine2": "^24.8.0", + "jest-leak-detector": "^24.8.0", + "jest-message-util": "^24.8.0", + "jest-resolve": "^24.8.0", + "jest-runtime": "^24.8.0", + "jest-util": "^24.8.0", + "jest-worker": "^24.6.0", + "source-map-support": "^0.5.6", + "throat": "^4.0.0" + } + }, + "jest-runtime": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-24.8.0.tgz", + "integrity": "sha512-Mq0aIXhvO/3bX44ccT+czU1/57IgOMyy80oM0XR/nyD5zgBcesF84BPabZi39pJVA6UXw+fY2Q1N+4BiVUBWOA==", + "dev": true, + "requires": { + "@jest/console": "^24.7.1", + "@jest/environment": "^24.8.0", + "@jest/source-map": "^24.3.0", + "@jest/transform": "^24.8.0", + "@jest/types": "^24.8.0", + "@types/yargs": "^12.0.2", + "chalk": "^2.0.1", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.1.15", + "jest-config": "^24.8.0", + "jest-haste-map": "^24.8.0", + "jest-message-util": "^24.8.0", + "jest-mock": "^24.8.0", + "jest-regex-util": "^24.3.0", + "jest-resolve": "^24.8.0", + "jest-snapshot": "^24.8.0", + "jest-util": "^24.8.0", + "jest-validate": "^24.8.0", + "realpath-native": "^1.1.0", + "slash": "^2.0.0", + "strip-bom": "^3.0.0", + "yargs": "^12.0.2" + } + }, + "jest-snapshot": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-24.8.0.tgz", + "integrity": "sha512-5ehtWoc8oU9/cAPe6fez6QofVJLBKyqkY2+TlKTOf0VllBB/mqUNdARdcjlZrs9F1Cv+/HKoCS/BknT0+tmfPg==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0", + "@jest/types": "^24.8.0", + "chalk": "^2.0.1", + "expect": "^24.8.0", + "jest-diff": "^24.8.0", + "jest-matcher-utils": "^24.8.0", + "jest-message-util": "^24.8.0", + "jest-resolve": "^24.8.0", + "mkdirp": "^0.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^24.8.0", + "semver": "^5.5.0" + } + }, + "jest-util": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-24.8.0.tgz", + "integrity": "sha512-DYZeE+XyAnbNt0BG1OQqKy/4GVLPtzwGx5tsnDrFcax36rVE3lTA5fbvgmbVPUZf9w77AJ8otqR4VBbfFJkUZA==", + "dev": true, + "requires": { + "@jest/console": "^24.7.1", + "@jest/fake-timers": "^24.8.0", + "@jest/source-map": "^24.3.0", + "@jest/test-result": "^24.8.0", + "@jest/types": "^24.8.0", + "callsites": "^3.0.0", + "chalk": "^2.0.1", + "graceful-fs": "^4.1.15", + "is-ci": "^2.0.0", + "mkdirp": "^0.5.1", + "slash": "^2.0.0", + "source-map": "^0.6.0" + } + }, + "jest-validate": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-24.8.0.tgz", + "integrity": "sha512-+/N7VOEMW1Vzsrk3UWBDYTExTPwf68tavEPKDnJzrC6UlHtUDU/fuEdXqFoHzv9XnQ+zW6X3qMZhJ3YexfeLDA==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0", + "camelcase": "^5.0.0", + "chalk": "^2.0.1", + "jest-get-type": "^24.8.0", + "leven": "^2.1.0", + "pretty-format": "^24.8.0" + } + }, + "jest-worker": { + "version": "24.6.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-24.6.0.tgz", + "integrity": "sha512-jDwgW5W9qGNvpI1tNnvajh0a5IE/PuGLFmHk6aR/BZFz8tSgGw17GsDPXAJ6p91IvYDjOw8GpFbvvZGAK+DPQQ==", + "dev": true, + "requires": { + "merge-stream": "^1.0.1", + "supports-color": "^6.1.0" + } + }, + "jsdom": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-11.12.0.tgz", + "integrity": "sha512-y8Px43oyiBM13Zc1z780FrfNLJCXTL40EWlty/LXUtcjykRBNgLlCjWXpfSPBl2iv+N7koQN+dvqszHZgT/Fjw==", + "dev": true, + "requires": { + "abab": "^2.0.0", + "acorn": "^5.5.3", + "acorn-globals": "^4.1.0", + "array-equal": "^1.0.0", + "cssom": ">= 0.3.2 < 0.4.0", + "cssstyle": "^1.0.0", + "data-urls": "^1.0.0", + "domexception": "^1.0.1", + "escodegen": "^1.9.1", + "html-encoding-sniffer": "^1.0.2", + "left-pad": "^1.3.0", + "nwsapi": "^2.0.7", + "parse5": "4.0.0", + "pn": "^1.1.0", + "request": "^2.87.0", + "request-promise-native": "^1.0.5", + "sax": "^1.2.4", + "symbol-tree": "^3.2.2", + "tough-cookie": "^2.3.4", + "w3c-hr-time": "^1.0.1", + "webidl-conversions": "^4.0.2", + "whatwg-encoding": "^1.0.3", + "whatwg-mimetype": "^2.1.0", + "whatwg-url": "^6.4.1", + "ws": "^5.2.0", + "xml-name-validator": "^3.0.0" + } + }, + "parse5": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-4.0.0.tgz", + "integrity": "sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA==", + "dev": true + }, + "pretty-format": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-24.8.0.tgz", + "integrity": "sha512-P952T7dkrDEplsR+TuY7q3VXDae5Sr7zmQb12JU/NDQa/3CH7/QW0yvqLcGN6jL+zQFKaoJcPc+yJxMTGmosqw==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0", + "ansi-regex": "^4.0.0", + "ansi-styles": "^3.2.0", + "react-is": "^16.8.4" + } + }, + "ws": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.2.tgz", + "integrity": "sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA==", + "dev": true, + "requires": { + "async-limiter": "~1.0.0" + } + } + } + }, + "@jest/transform": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-24.5.0.tgz", + "integrity": "sha512-XSsDz1gdR/QMmB8UCKlweAReQsZrD/DK7FuDlNo/pE8EcKMrfi2kqLRk8h8Gy/PDzgqJj64jNEzOce9pR8oj1w==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/types": "^24.5.0", + "babel-plugin-istanbul": "^5.1.0", + "chalk": "^2.0.1", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.1.15", + "jest-haste-map": "^24.5.0", + "jest-regex-util": "^24.3.0", + "jest-util": "^24.5.0", + "micromatch": "^3.1.10", + "realpath-native": "^1.1.0", + "slash": "^2.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "2.4.1" + } + }, + "@jest/types": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.5.0.tgz", + "integrity": "sha512-kN7RFzNMf2R8UDadPOl6ReyI+MT8xfqRuAnuVL+i4gwjv/zubdDK+EDeLHYwq1j0CSSR2W/MmgaRlMZJzXdmVA==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^1.1.0", + "@types/yargs": "^12.0.9" + } + }, + "@types/babel__core": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.0.tgz", + "integrity": "sha512-wJTeJRt7BToFx3USrCDs2BhEi4ijBInTQjOIukj6a/5tEkwpFMVZ+1ppgmE+Q/FQyc5P/VWUbx7I9NELrKruHA==", + "dev": true, + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "@types/babel__generator": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.0.2.tgz", + "integrity": "sha512-NHcOfab3Zw4q5sEE2COkpfXjoE7o+PmqD9DQW4koUT3roNxwziUdXGnRndMat/LJNUtePwn1TlP4do3uoe3KZQ==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@types/babel__template": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.0.2.tgz", + "integrity": "sha512-/K6zCpeW7Imzgab2bLkLEbz0+1JlFSrUMdw7KoIIu+IUdu51GWaBZpd3y1VXGVXzynvGa4DaIaxNZHiON3GXUg==", + "dev": true, + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@types/babel__traverse": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.0.6.tgz", + "integrity": "sha512-XYVgHF2sQ0YblLRMLNPB3CkFMewzFmlDsH/TneZFHUXDlABQgh88uOxuez7ZcXxayLFrqLwtDH1t+FmlFwNZxw==", + "dev": true, + "requires": { + "@babel/types": "^7.3.0" + } + }, + "@types/istanbul-lib-coverage": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-1.1.0.tgz", + "integrity": "sha512-ohkhb9LehJy+PA40rDtGAji61NCgdtKLAlFoYp4cnuuQEswwdK3vz9SOIkkyc3wrk8dzjphQApNs56yyXLStaQ==", + "dev": true + }, + "@types/istanbul-lib-report": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-1.1.1.tgz", + "integrity": "sha512-3BUTyMzbZa2DtDI2BkERNC6jJw2Mr2Y0oGI7mRxYNBPxppbtEK1F66u3bKwU2g+wxwWI7PAoRpJnOY1grJqzHg==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "*" + } + }, + "@types/istanbul-reports": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.1.tgz", + "integrity": "sha512-UpYjBi8xefVChsCoBpKShdxTllC9pwISirfoZsUa2AAdQg/Jd2KQGtSbw+ya7GPo7x/wAPlH6JBhKhAsXUEZNA==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "*", + "@types/istanbul-lib-report": "*" + } + }, + "@types/jest": { + "version": "24.0.11", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.0.11.tgz", + "integrity": "sha512-2kLuPC5FDnWIDvaJBzsGTBQaBbnDweznicvK7UGYzlIJP4RJR2a4A/ByLUXEyEgag6jz8eHdlWExGDtH3EYUXQ==", + "dev": true, + "requires": { + "@types/jest-diff": "*" + } + }, + "@types/jest-diff": { + "version": "20.0.1", + "resolved": "https://registry.npmjs.org/@types/jest-diff/-/jest-diff-20.0.1.tgz", + "integrity": "sha512-yALhelO3i0hqZwhjtcr6dYyaLoCHbAMshwtj6cGxTvHZAKXHsYGdff6E8EPw3xLKY0ELUTQ69Q1rQiJENnccMA==", + "dev": true + }, + "@types/node": { + "version": "11.11.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-11.11.6.tgz", + "integrity": "sha512-Exw4yUWMBXM3X+8oqzJNRqZSwUAaS4+7NdvHqQuFi/d+synz++xmX3QIf+BFqneW8N31R8Ky+sikfZUXq07ggQ==", + "dev": true + }, + "@types/stack-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-1.0.1.tgz", + "integrity": "sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==", + "dev": true + }, + "@types/yargs": { + "version": "12.0.10", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-12.0.10.tgz", + "integrity": "sha512-WsVzTPshvCSbHThUduGGxbmnwcpkgSctHGHTqzWyFg4lYAuV5qXlyFPOsP3OWqCINfmg/8VXP+zJaa4OxEsBQQ==", + "dev": true + }, + "@webassemblyjs/ast": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.5.tgz", + "integrity": "sha512-aJMfngIZ65+t71C3y2nBBg5FFG0Okt9m0XEgWZ7Ywgn1oMAT8cNwx00Uv1cQyHtidq0Xn94R4TAywO+LCQ+ZAQ==", + "dev": true, + "requires": { + "@webassemblyjs/helper-module-context": "1.8.5", + "@webassemblyjs/helper-wasm-bytecode": "1.8.5", + "@webassemblyjs/wast-parser": "1.8.5" + } + }, + "@webassemblyjs/floating-point-hex-parser": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.8.5.tgz", + "integrity": "sha512-9p+79WHru1oqBh9ewP9zW95E3XAo+90oth7S5Re3eQnECGq59ly1Ri5tsIipKGpiStHsUYmY3zMLqtk3gTcOtQ==", + "dev": true + }, + "@webassemblyjs/helper-api-error": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.8.5.tgz", + "integrity": "sha512-Za/tnzsvnqdaSPOUXHyKJ2XI7PDX64kWtURyGiJJZKVEdFOsdKUCPTNEVFZq3zJ2R0G5wc2PZ5gvdTRFgm81zA==", + "dev": true + }, + "@webassemblyjs/helper-buffer": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.8.5.tgz", + "integrity": "sha512-Ri2R8nOS0U6G49Q86goFIPNgjyl6+oE1abW1pS84BuhP1Qcr5JqMwRFT3Ah3ADDDYGEgGs1iyb1DGX+kAi/c/Q==", + "dev": true + }, + "@webassemblyjs/helper-code-frame": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.8.5.tgz", + "integrity": "sha512-VQAadSubZIhNpH46IR3yWO4kZZjMxN1opDrzePLdVKAZ+DFjkGD/rf4v1jap744uPVU6yjL/smZbRIIJTOUnKQ==", + "dev": true, + "requires": { + "@webassemblyjs/wast-printer": "1.8.5" + } + }, + "@webassemblyjs/helper-fsm": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.8.5.tgz", + "integrity": "sha512-kRuX/saORcg8se/ft6Q2UbRpZwP4y7YrWsLXPbbmtepKr22i8Z4O3V5QE9DbZK908dh5Xya4Un57SDIKwB9eow==", + "dev": true + }, + "@webassemblyjs/helper-module-context": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.8.5.tgz", + "integrity": "sha512-/O1B236mN7UNEU4t9X7Pj38i4VoU8CcMHyy3l2cV/kIF4U5KoHXDVqcDuOs1ltkac90IM4vZdHc52t1x8Yfs3g==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.8.5", + "mamacro": "^0.0.3" + } + }, + "@webassemblyjs/helper-wasm-bytecode": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.8.5.tgz", + "integrity": "sha512-Cu4YMYG3Ddl72CbmpjU/wbP6SACcOPVbHN1dI4VJNJVgFwaKf1ppeFJrwydOG3NDHxVGuCfPlLZNyEdIYlQ6QQ==", + "dev": true + }, + "@webassemblyjs/helper-wasm-section": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.8.5.tgz", + "integrity": "sha512-VV083zwR+VTrIWWtgIUpqfvVdK4ff38loRmrdDBgBT8ADXYsEZ5mPQ4Nde90N3UYatHdYoDIFb7oHzMncI02tA==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.8.5", + "@webassemblyjs/helper-buffer": "1.8.5", + "@webassemblyjs/helper-wasm-bytecode": "1.8.5", + "@webassemblyjs/wasm-gen": "1.8.5" + } + }, + "@webassemblyjs/ieee754": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.8.5.tgz", + "integrity": "sha512-aaCvQYrvKbY/n6wKHb/ylAJr27GglahUO89CcGXMItrOBqRarUMxWLJgxm9PJNuKULwN5n1csT9bYoMeZOGF3g==", + "dev": true, + "requires": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "@webassemblyjs/leb128": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.8.5.tgz", + "integrity": "sha512-plYUuUwleLIziknvlP8VpTgO4kqNaH57Y3JnNa6DLpu/sGcP6hbVdfdX5aHAV716pQBKrfuU26BJK29qY37J7A==", + "dev": true, + "requires": { + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/utf8": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.8.5.tgz", + "integrity": "sha512-U7zgftmQriw37tfD934UNInokz6yTmn29inT2cAetAsaU9YeVCveWEwhKL1Mg4yS7q//NGdzy79nlXh3bT8Kjw==", + "dev": true + }, + "@webassemblyjs/wasm-edit": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.8.5.tgz", + "integrity": "sha512-A41EMy8MWw5yvqj7MQzkDjU29K7UJq1VrX2vWLzfpRHt3ISftOXqrtojn7nlPsZ9Ijhp5NwuODuycSvfAO/26Q==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.8.5", + "@webassemblyjs/helper-buffer": "1.8.5", + "@webassemblyjs/helper-wasm-bytecode": "1.8.5", + "@webassemblyjs/helper-wasm-section": "1.8.5", + "@webassemblyjs/wasm-gen": "1.8.5", + "@webassemblyjs/wasm-opt": "1.8.5", + "@webassemblyjs/wasm-parser": "1.8.5", + "@webassemblyjs/wast-printer": "1.8.5" + } + }, + "@webassemblyjs/wasm-gen": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.8.5.tgz", + "integrity": "sha512-BCZBT0LURC0CXDzj5FXSc2FPTsxwp3nWcqXQdOZE4U7h7i8FqtFK5Egia6f9raQLpEKT1VL7zr4r3+QX6zArWg==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.8.5", + "@webassemblyjs/helper-wasm-bytecode": "1.8.5", + "@webassemblyjs/ieee754": "1.8.5", + "@webassemblyjs/leb128": "1.8.5", + "@webassemblyjs/utf8": "1.8.5" + } + }, + "@webassemblyjs/wasm-opt": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.8.5.tgz", + "integrity": "sha512-HKo2mO/Uh9A6ojzu7cjslGaHaUU14LdLbGEKqTR7PBKwT6LdPtLLh9fPY33rmr5wcOMrsWDbbdCHq4hQUdd37Q==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.8.5", + "@webassemblyjs/helper-buffer": "1.8.5", + "@webassemblyjs/wasm-gen": "1.8.5", + "@webassemblyjs/wasm-parser": "1.8.5" + } + }, + "@webassemblyjs/wasm-parser": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.8.5.tgz", + "integrity": "sha512-pi0SYE9T6tfcMkthwcgCpL0cM9nRYr6/6fjgDtL6q/ZqKHdMWvxitRi5JcZ7RI4SNJJYnYNaWy5UUrHQy998lw==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.8.5", + "@webassemblyjs/helper-api-error": "1.8.5", + "@webassemblyjs/helper-wasm-bytecode": "1.8.5", + "@webassemblyjs/ieee754": "1.8.5", + "@webassemblyjs/leb128": "1.8.5", + "@webassemblyjs/utf8": "1.8.5" + } + }, + "@webassemblyjs/wast-parser": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.8.5.tgz", + "integrity": "sha512-daXC1FyKWHF1i11obK086QRlsMsY4+tIOKgBqI1lxAnkp9xe9YMcgOxm9kLe+ttjs5aWV2KKE1TWJCN57/Btsg==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.8.5", + "@webassemblyjs/floating-point-hex-parser": "1.8.5", + "@webassemblyjs/helper-api-error": "1.8.5", + "@webassemblyjs/helper-code-frame": "1.8.5", + "@webassemblyjs/helper-fsm": "1.8.5", + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/wast-printer": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.8.5.tgz", + "integrity": "sha512-w0U0pD4EhlnvRyeJzBqaVSJAo9w/ce7/WPogeXLzGkO6hzhr4GnQIZ4W4uUt5b9ooAaXPtnXlj0gzsXEOUNYMg==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.8.5", + "@webassemblyjs/wast-parser": "1.8.5", + "@xtuc/long": "4.2.2" + } + }, + "@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true + }, + "@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true + }, + "abab": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.0.tgz", + "integrity": "sha512-sY5AXXVZv4Y1VACTtR11UJCPHHudgY5i26Qj5TypE6DKlIApbwb5uqhXcJ5UUGbvZNRh7EeIoW+LrJumBsKp7w==", + "dev": true + }, + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "accepts": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", + "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "dev": true, + "requires": { + "mime-types": "~2.1.24", + "negotiator": "0.6.2" + }, + "dependencies": { + "mime-db": { + "version": "1.40.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", + "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", + "dev": true + }, + "mime-types": { + "version": "2.1.24", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", + "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", + "dev": true, + "requires": { + "mime-db": "1.40.0" + } + } + } + }, + "acorn": { + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", + "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", + "dev": true + }, + "acorn-dynamic-import": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-4.0.0.tgz", + "integrity": "sha512-d3OEjQV4ROpoflsnUA8HozoIR504TFxNivYEUi6uwz0IYhBkTDXGuWlNdMtybRt3nqVx/L6XqMt0FxkXuWKZhw==", + "dev": true + }, + "acorn-globals": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-4.3.0.tgz", + "integrity": "sha512-hMtHj3s5RnuhvHPowpBYvJVj3rAar82JiDQHvGs1zO0l10ocX/xEdBShNHTJaboucJUsScghp74pH3s7EnHHQw==", + "dev": true, + "requires": { + "acorn": "^6.0.1", + "acorn-walk": "^6.0.1" + }, + "dependencies": { + "acorn": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.1.1.tgz", + "integrity": "sha512-jPTiwtOxaHNaAPg/dmrJ/beuzLRnXtB0kQPQ8JpotKJgTB6rX6c8mlf315941pyjBSaPg8NHXS9fhP4u17DpGA==", + "dev": true + } + } + }, + "acorn-jsx": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.0.1.tgz", + "integrity": "sha512-HJ7CfNHrfJLlNTzIEUTj43LNWGkqpRLxm3YjAlcD0ACydk9XynzYsCBHxut+iqt+1aBXkx9UP/w/ZqMr13XIzg==", + "dev": true + }, + "acorn-walk": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-6.1.1.tgz", + "integrity": "sha512-OtUw6JUTgxA2QoqqmrmQ7F2NYqiBPi/L2jqHyFtllhOUvXYQXf0Z1CYUinIfyT4bTCGmrA7gX9FvHA81uzCoVw==", + "dev": true + }, + "ajv": { + "version": "6.10.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", + "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", + "dev": true, + "requires": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ajv-errors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ajv-errors/-/ajv-errors-1.0.1.tgz", + "integrity": "sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ==", + "dev": true + }, + "ajv-keywords": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.4.0.tgz", + "integrity": "sha512-aUjdRFISbuFOl0EIZc+9e4FfZp0bDZgAdOOf30bJmw8VM9v84SHyVyxDfbWxpGYbdZD/9XoKxfHVNmxPkhwyGw==", + "dev": true + }, + "amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", + "dev": true + }, + "angular": { + "version": "1.7.8", + "resolved": "https://registry.npmjs.org/angular/-/angular-1.7.8.tgz", + "integrity": "sha512-wtef/y4COxM7ZVhddd7JtAAhyYObq9YXKar9tsW7558BImeVYteJiTxCKeJOL45lJ/+7B4wrAC49j8gTFYEthg==", + "dev": true + }, + "angular-mock": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/angular-mock/-/angular-mock-1.0.0.tgz", + "integrity": "sha1-Z0MYSb8K3SJbHUngp3Flmks2C6U=", + "dev": true + }, + "ansi-escapes": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", + "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", + "dev": true + }, + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "anymatch": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", + "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", + "dev": true, + "requires": { + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" + } + }, + "append-transform": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-1.0.0.tgz", + "integrity": "sha512-P009oYkeHyU742iSZJzZZywj4QRJdnTWffaKuJQLablCZ1uz6/cW4yaRgcDaoQ+uwOxxnt0gRUcwfsNP2ri0gw==", + "dev": true, + "requires": { + "default-require-extensions": "^2.0.0" + } + }, + "aproba": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", + "dev": true + }, + "archiver": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/archiver/-/archiver-1.3.0.tgz", + "integrity": "sha1-TyGU1tj5nfP1MeaIHxTxXVX6ryI=", + "dev": true, + "requires": { + "archiver-utils": "^1.3.0", + "async": "^2.0.0", + "buffer-crc32": "^0.2.1", + "glob": "^7.0.0", + "lodash": "^4.8.0", + "readable-stream": "^2.0.0", + "tar-stream": "^1.5.0", + "walkdir": "^0.0.11", + "zip-stream": "^1.1.0" + } + }, + "archiver-utils": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-1.3.0.tgz", + "integrity": "sha1-5QtMCccL89aA4y/xt5lOn52JUXQ=", + "dev": true, + "requires": { + "glob": "^7.0.0", + "graceful-fs": "^4.1.0", + "lazystream": "^1.0.0", + "lodash": "^4.8.0", + "normalize-path": "^2.0.0", + "readable-stream": "^2.0.0" + } + }, + "are-we-there-yet": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", + "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", + "dev": true, + "requires": { + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + }, + "dependencies": { + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + } + } + }, + "aria-query": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-3.0.0.tgz", + "integrity": "sha1-ZbP8wcoRVajJrmTW7uKX8V1RM8w=", + "dev": true, + "requires": { + "ast-types-flow": "0.0.7", + "commander": "^2.11.0" + } + }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "dev": true + }, + "arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true + }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "dev": true + }, + "array-differ": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", + "integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=", + "dev": true + }, + "array-each": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", + "integrity": "sha1-p5SvDAWrF1KEbudTofIRoFugxE8=", + "dev": true + }, + "array-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-equal/-/array-equal-1.0.0.tgz", + "integrity": "sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM=", + "dev": true + }, + "array-filter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-1.0.0.tgz", + "integrity": "sha1-uveeYubvTCpMC4MSMtr/7CUfnYM=", + "dev": true + }, + "array-find-index": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", + "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", + "dev": true + }, + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=", + "dev": true + }, + "array-includes": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.0.3.tgz", + "integrity": "sha1-GEtI9i2S10UrsxsyMWXH+L0CJm0=", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "es-abstract": "^1.7.0" + } + }, + "array-slice": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.1.0.tgz", + "integrity": "sha512-B1qMD3RBP7O8o0H2KbrXDyB0IccejMF15+87Lvlor12ONPRHP6gTjXMNkt/d3ZuOGbAe66hFmaCfECI24Ufp6w==", + "dev": true + }, + "array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "dev": true, + "requires": { + "array-uniq": "^1.0.1" + } + }, + "array-uniq": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", + "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "dev": true + }, + "array.prototype.flat": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.1.tgz", + "integrity": "sha512-rVqIs330nLJvfC7JqYvEWwqVr5QjYF1ib02i3YJtR/fICO6527Tjpc/e4Mvmxh3GIePPreRXMdaGyC99YphWEw==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "es-abstract": "^1.10.0", + "function-bind": "^1.1.1" + } + }, + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true + }, + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "dev": true, + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "asn1.js": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", + "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", + "dev": true, + "requires": { + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" + } + }, + "assert": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz", + "integrity": "sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE=", + "dev": true, + "requires": { + "util": "0.10.3" + }, + "dependencies": { + "inherits": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", + "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", + "dev": true + }, + "util": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", + "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "dev": true, + "requires": { + "inherits": "2.0.1" + } + } + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true + }, + "assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "dev": true + }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", + "dev": true + }, + "ast-types-flow": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", + "integrity": "sha1-9wtzXGvKGlycItmCw+Oef+ujva0=", + "dev": true + }, + "astral-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", + "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==", + "dev": true + }, + "async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.2.tgz", + "integrity": "sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLHksBNUVWZDAjfS+Ccx0Bbg==", + "dev": true, + "requires": { + "lodash": "^4.17.11" + } + }, + "async-each": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.2.tgz", + "integrity": "sha512-6xrbvN0MOBKSJDdonmSSz2OwFSgxRaVtBDes26mj9KIGtDo+g9xosFRSC+i1gQh2oAN/tQ62AI/pGZGQjVOiRg==", + "dev": true + }, + "async-foreach": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz", + "integrity": "sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI=", + "dev": true + }, + "async-limiter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", + "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==", + "dev": true + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true + }, + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", + "dev": true + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "dev": true + }, + "aws4": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", + "dev": true + }, + "axobject-query": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-2.0.2.tgz", + "integrity": "sha512-MCeek8ZH7hKyO1rWUbKNQBbl4l2eY0ntk7OGi+q0RlafrCnfPxC06WZA+uebCfmYp4mNU9jRBP1AhGyf8+W3ww==", + "dev": true, + "requires": { + "ast-types-flow": "0.0.7" + } + }, + "babel-code-frame": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", + "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "dev": true, + "requires": { + "chalk": "^1.1.3", + "esutils": "^2.0.2", + "js-tokens": "^3.0.2" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "dev": true + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "babel-core": { + "version": "6.26.3", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", + "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", + "dev": true, + "requires": { + "babel-code-frame": "^6.26.0", + "babel-generator": "^6.26.0", + "babel-helpers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "convert-source-map": "^1.5.1", + "debug": "^2.6.9", + "json5": "^0.5.1", + "lodash": "^4.17.4", + "minimatch": "^3.0.4", + "path-is-absolute": "^1.0.1", + "private": "^0.1.8", + "slash": "^1.0.0", + "source-map": "^0.5.7" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "json5": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "slash": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", + "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "babel-generator": { + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", + "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "dev": true, + "requires": { + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "detect-indent": "^4.0.0", + "jsesc": "^1.3.0", + "lodash": "^4.17.4", + "source-map": "^0.5.7", + "trim-right": "^1.0.1" + }, + "dependencies": { + "jsesc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", + "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "babel-helper-bindify-decorators": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.24.1.tgz", + "integrity": "sha1-FMGeXxQte0fxmlJDHlKxzLxAozA=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-helper-builder-binary-assignment-operator-visitor": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz", + "integrity": "sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=", + "dev": true, + "requires": { + "babel-helper-explode-assignable-expression": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-helper-call-delegate": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz", + "integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=", + "dev": true, + "requires": { + "babel-helper-hoist-variables": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-helper-define-map": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz", + "integrity": "sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8=", + "dev": true, + "requires": { + "babel-helper-function-name": "^6.24.1", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "lodash": "^4.17.4" + } + }, + "babel-helper-explode-assignable-expression": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz", + "integrity": "sha1-8luCz33BBDPFX3BZLVdGQArCLKo=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-helper-explode-class": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-explode-class/-/babel-helper-explode-class-6.24.1.tgz", + "integrity": "sha1-fcKjkQ3uAHBW4eMdZAztPVTqqes=", + "dev": true, + "requires": { + "babel-helper-bindify-decorators": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-helper-function-name": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz", + "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=", + "dev": true, + "requires": { + "babel-helper-get-function-arity": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-helper-get-function-arity": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz", + "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-helper-hoist-variables": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz", + "integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-helper-optimise-call-expression": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz", + "integrity": "sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-helper-regex": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz", + "integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=", + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "lodash": "^4.17.4" + } + }, + "babel-helper-remap-async-to-generator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz", + "integrity": "sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=", + "dev": true, + "requires": { + "babel-helper-function-name": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-helper-replace-supers": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz", + "integrity": "sha1-v22/5Dk40XNpohPKiov3S2qQqxo=", + "dev": true, + "requires": { + "babel-helper-optimise-call-expression": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-helpers": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", + "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-jest": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-24.5.0.tgz", + "integrity": "sha512-0fKCXyRwxFTJL0UXDJiT2xYxO9Lu2vBd9n+cC+eDjESzcVG3s2DRGAxbzJX21fceB1WYoBjAh8pQ83dKcl003g==", + "dev": true, + "requires": { + "@jest/transform": "^24.5.0", + "@jest/types": "^24.5.0", + "@types/babel__core": "^7.1.0", + "babel-plugin-istanbul": "^5.1.0", + "babel-preset-jest": "^24.3.0", + "chalk": "^2.4.2", + "slash": "^2.0.0" + } + }, + "babel-loader": { + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.0.5.tgz", + "integrity": "sha512-NTnHnVRd2JnRqPC0vW+iOQWU5pchDbYXsG2E6DMXEpMfUcQKclF9gmf3G3ZMhzG7IG9ji4coL0cm+FxeWxDpnw==", + "dev": true, + "requires": { + "find-cache-dir": "^2.0.0", + "loader-utils": "^1.0.2", + "mkdirp": "^0.5.1", + "util.promisify": "^1.0.0" + } + }, + "babel-messages": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", + "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-check-es2015-constants": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz", + "integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-dynamic-import-node": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.2.0.tgz", + "integrity": "sha512-fP899ELUnTaBcIzmrW7nniyqqdYWrWuJUyPWHxFa/c7r7hS6KC8FscNfLlBNIoPSc55kYMGEEKjPjJGCLbE1qA==", + "dev": true, + "requires": { + "object.assign": "^4.1.0" + } + }, + "babel-plugin-istanbul": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-5.1.1.tgz", + "integrity": "sha512-RNNVv2lsHAXJQsEJ5jonQwrJVWK8AcZpG1oxhnjCUaAjL7xahYLANhPUZbzEQHjKy1NMYUwn+0NPKQc8iSY4xQ==", + "dev": true, + "requires": { + "find-up": "^3.0.0", + "istanbul-lib-instrument": "^3.0.0", + "test-exclude": "^5.0.0" + } + }, + "babel-plugin-jest-hoist": { + "version": "24.3.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-24.3.0.tgz", + "integrity": "sha512-nWh4N1mVH55Tzhx2isvUN5ebM5CDUvIpXPZYMRazQughie/EqGnbR+czzoQlhUmJG9pPJmYDRhvocotb2THl1w==", + "dev": true, + "requires": { + "@types/babel__traverse": "^7.0.6" + } + }, + "babel-plugin-macros": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-2.5.0.tgz", + "integrity": "sha512-BWw0lD0kVZAXRD3Od1kMrdmfudqzDzYv2qrN3l2ISR1HVp1EgLKfbOrYV9xmY5k3qx3RIu5uPAUZZZHpo0o5Iw==", + "dev": true, + "requires": { + "cosmiconfig": "^5.0.5", + "resolve": "^1.8.1" + } + }, + "babel-plugin-syntax-async-functions": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz", + "integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=", + "dev": true + }, + "babel-plugin-syntax-async-generators": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz", + "integrity": "sha1-a8lj67FuzLrmuStZbrfzXDQqi5o=", + "dev": true + }, + "babel-plugin-syntax-class-constructor-call": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-constructor-call/-/babel-plugin-syntax-class-constructor-call-6.18.0.tgz", + "integrity": "sha1-nLnTn+Q8hgC+yBRkVt3L1OGnZBY=", + "dev": true + }, + "babel-plugin-syntax-class-properties": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz", + "integrity": "sha1-1+sjt5oxf4VDlixQW4J8fWysJ94=", + "dev": true + }, + "babel-plugin-syntax-decorators": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz", + "integrity": "sha1-MSVjtNvePMgGzuPkFszurd0RrAs=", + "dev": true + }, + "babel-plugin-syntax-do-expressions": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-do-expressions/-/babel-plugin-syntax-do-expressions-6.13.0.tgz", + "integrity": "sha1-V0d1YTmqJtOQ0JQQsDdEugfkeW0=", + "dev": true + }, + "babel-plugin-syntax-dynamic-import": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz", + "integrity": "sha1-jWomIpyDdFqZgqRBBRVyyqF5sdo=", + "dev": true + }, + "babel-plugin-syntax-exponentiation-operator": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz", + "integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=", + "dev": true + }, + "babel-plugin-syntax-export-extensions": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-export-extensions/-/babel-plugin-syntax-export-extensions-6.13.0.tgz", + "integrity": "sha1-cKFITw+QiaToStRLrDU8lbmxJyE=", + "dev": true + }, + "babel-plugin-syntax-function-bind": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-function-bind/-/babel-plugin-syntax-function-bind-6.13.0.tgz", + "integrity": "sha1-SMSV8Xe98xqYHnMvVa3AvdJgH0Y=", + "dev": true + }, + "babel-plugin-syntax-object-rest-spread": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", + "integrity": "sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=", + "dev": true + }, + "babel-plugin-syntax-trailing-function-commas": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz", + "integrity": "sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM=", + "dev": true + }, + "babel-plugin-transform-async-generator-functions": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz", + "integrity": "sha1-8FiQAUX9PpkHpt3yjaWfIVJYpds=", + "dev": true, + "requires": { + "babel-helper-remap-async-to-generator": "^6.24.1", + "babel-plugin-syntax-async-generators": "^6.5.0", + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-async-to-generator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz", + "integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=", + "dev": true, + "requires": { + "babel-helper-remap-async-to-generator": "^6.24.1", + "babel-plugin-syntax-async-functions": "^6.8.0", + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-class-constructor-call": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.24.1.tgz", + "integrity": "sha1-gNwoVQWsBn3LjWxl4vbxGrd2Xvk=", + "dev": true, + "requires": { + "babel-plugin-syntax-class-constructor-call": "^6.18.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-plugin-transform-class-properties": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz", + "integrity": "sha1-anl2PqYdM9NvN7YRqp3vgagbRqw=", + "dev": true, + "requires": { + "babel-helper-function-name": "^6.24.1", + "babel-plugin-syntax-class-properties": "^6.8.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-plugin-transform-decorators": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.24.1.tgz", + "integrity": "sha1-eIAT2PjGtSIr33s0Q5Df13Vp4k0=", + "dev": true, + "requires": { + "babel-helper-explode-class": "^6.24.1", + "babel-plugin-syntax-decorators": "^6.13.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-plugin-transform-do-expressions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-do-expressions/-/babel-plugin-transform-do-expressions-6.22.0.tgz", + "integrity": "sha1-KMyvkoEtlJws0SgfaQyP3EaK6bs=", + "dev": true, + "requires": { + "babel-plugin-syntax-do-expressions": "^6.8.0", + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-arrow-functions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz", + "integrity": "sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-block-scoped-functions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz", + "integrity": "sha1-u8UbSflk1wy42OC5ToICRs46YUE=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-block-scoping": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz", + "integrity": "sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=", + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "lodash": "^4.17.4" + } + }, + "babel-plugin-transform-es2015-classes": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz", + "integrity": "sha1-WkxYpQyclGHlZLSyo7+ryXolhNs=", + "dev": true, + "requires": { + "babel-helper-define-map": "^6.24.1", + "babel-helper-function-name": "^6.24.1", + "babel-helper-optimise-call-expression": "^6.24.1", + "babel-helper-replace-supers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-computed-properties": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz", + "integrity": "sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-destructuring": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz", + "integrity": "sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-duplicate-keys": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz", + "integrity": "sha1-c+s9MQypaePvnskcU3QabxV2Qj4=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-for-of": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz", + "integrity": "sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-function-name": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz", + "integrity": "sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=", + "dev": true, + "requires": { + "babel-helper-function-name": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-literals": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz", + "integrity": "sha1-T1SgLWzWbPkVKAAZox0xklN3yi4=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-modules-amd": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz", + "integrity": "sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ=", + "dev": true, + "requires": { + "babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-modules-commonjs": { + "version": "6.26.2", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz", + "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", + "dev": true, + "requires": { + "babel-plugin-transform-strict-mode": "^6.24.1", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-types": "^6.26.0" + } + }, + "babel-plugin-transform-es2015-modules-systemjs": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz", + "integrity": "sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM=", + "dev": true, + "requires": { + "babel-helper-hoist-variables": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-modules-umd": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz", + "integrity": "sha1-rJl+YoXNGO1hdq22B9YCNErThGg=", + "dev": true, + "requires": { + "babel-plugin-transform-es2015-modules-amd": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-object-super": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz", + "integrity": "sha1-JM72muIcuDp/hgPa0CH1cusnj40=", + "dev": true, + "requires": { + "babel-helper-replace-supers": "^6.24.1", + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-parameters": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz", + "integrity": "sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=", + "dev": true, + "requires": { + "babel-helper-call-delegate": "^6.24.1", + "babel-helper-get-function-arity": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-shorthand-properties": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz", + "integrity": "sha1-JPh11nIch2YbvZmkYi5R8U3jiqA=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-spread": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz", + "integrity": "sha1-1taKmfia7cRTbIGlQujdnxdG+NE=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-sticky-regex": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz", + "integrity": "sha1-AMHNsaynERLN8M9hJsLta0V8zbw=", + "dev": true, + "requires": { + "babel-helper-regex": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-plugin-transform-es2015-template-literals": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz", + "integrity": "sha1-qEs0UPfp+PH2g51taH2oS7EjbY0=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-typeof-symbol": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz", + "integrity": "sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-unicode-regex": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz", + "integrity": "sha1-04sS9C6nMj9yk4fxinxa4frrNek=", + "dev": true, + "requires": { + "babel-helper-regex": "^6.24.1", + "babel-runtime": "^6.22.0", + "regexpu-core": "^2.0.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true + }, + "regexpu-core": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-2.0.0.tgz", + "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", + "dev": true, + "requires": { + "regenerate": "^1.2.1", + "regjsgen": "^0.2.0", + "regjsparser": "^0.1.4" + } + }, + "regjsgen": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", + "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=", + "dev": true + }, + "regjsparser": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz", + "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", + "dev": true, + "requires": { + "jsesc": "~0.5.0" + } + } + } + }, + "babel-plugin-transform-exponentiation-operator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz", + "integrity": "sha1-KrDJx/MJj6SJB3cruBP+QejeOg4=", + "dev": true, + "requires": { + "babel-helper-builder-binary-assignment-operator-visitor": "^6.24.1", + "babel-plugin-syntax-exponentiation-operator": "^6.8.0", + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-export-extensions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-export-extensions/-/babel-plugin-transform-export-extensions-6.22.0.tgz", + "integrity": "sha1-U3OLR+deghhYnuqUbLvTkQm75lM=", + "dev": true, + "requires": { + "babel-plugin-syntax-export-extensions": "^6.8.0", + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-function-bind": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-function-bind/-/babel-plugin-transform-function-bind-6.22.0.tgz", + "integrity": "sha1-xvuOlqwpajELjPjqQBRiQH3fapc=", + "dev": true, + "requires": { + "babel-plugin-syntax-function-bind": "^6.8.0", + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-object-rest-spread": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz", + "integrity": "sha1-DzZpLVD+9rfi1LOsFHgTepY7ewY=", + "dev": true, + "requires": { + "babel-plugin-syntax-object-rest-spread": "^6.8.0", + "babel-runtime": "^6.26.0" + } + }, + "babel-plugin-transform-react-remove-prop-types": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz", + "integrity": "sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA==", + "dev": true + }, + "babel-plugin-transform-regenerator": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz", + "integrity": "sha1-4HA2lvveJ/Cj78rPi03KL3s6jy8=", + "dev": true, + "requires": { + "regenerator-transform": "^0.10.0" + }, + "dependencies": { + "regenerator-transform": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.10.1.tgz", + "integrity": "sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q==", + "dev": true, + "requires": { + "babel-runtime": "^6.18.0", + "babel-types": "^6.19.0", + "private": "^0.1.6" + } + } + } + }, + "babel-plugin-transform-strict-mode": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz", + "integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, + "babel-polyfill": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", + "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "core-js": "^2.5.0", + "regenerator-runtime": "^0.10.5" + }, + "dependencies": { + "core-js": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.9.tgz", + "integrity": "sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A==", + "dev": true + }, + "regenerator-runtime": { + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", + "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", + "dev": true + } + } + }, + "babel-preset-es2015": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz", + "integrity": "sha1-1EBQ1rwsn+6nAqrzjXJ6AhBTiTk=", + "dev": true, + "requires": { + "babel-plugin-check-es2015-constants": "^6.22.0", + "babel-plugin-transform-es2015-arrow-functions": "^6.22.0", + "babel-plugin-transform-es2015-block-scoped-functions": "^6.22.0", + "babel-plugin-transform-es2015-block-scoping": "^6.24.1", + "babel-plugin-transform-es2015-classes": "^6.24.1", + "babel-plugin-transform-es2015-computed-properties": "^6.24.1", + "babel-plugin-transform-es2015-destructuring": "^6.22.0", + "babel-plugin-transform-es2015-duplicate-keys": "^6.24.1", + "babel-plugin-transform-es2015-for-of": "^6.22.0", + "babel-plugin-transform-es2015-function-name": "^6.24.1", + "babel-plugin-transform-es2015-literals": "^6.22.0", + "babel-plugin-transform-es2015-modules-amd": "^6.24.1", + "babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", + "babel-plugin-transform-es2015-modules-systemjs": "^6.24.1", + "babel-plugin-transform-es2015-modules-umd": "^6.24.1", + "babel-plugin-transform-es2015-object-super": "^6.24.1", + "babel-plugin-transform-es2015-parameters": "^6.24.1", + "babel-plugin-transform-es2015-shorthand-properties": "^6.24.1", + "babel-plugin-transform-es2015-spread": "^6.22.0", + "babel-plugin-transform-es2015-sticky-regex": "^6.24.1", + "babel-plugin-transform-es2015-template-literals": "^6.22.0", + "babel-plugin-transform-es2015-typeof-symbol": "^6.22.0", + "babel-plugin-transform-es2015-unicode-regex": "^6.24.1", + "babel-plugin-transform-regenerator": "^6.24.1" + } + }, + "babel-preset-jest": { + "version": "24.3.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-24.3.0.tgz", + "integrity": "sha512-VGTV2QYBa/Kn3WCOKdfS31j9qomaXSgJqi65B6o05/1GsJyj9LVhSljM9ro4S+IBGj/ENhNBuH9bpqzztKAQSw==", + "dev": true, + "requires": { + "@babel/plugin-syntax-object-rest-spread": "^7.0.0", + "babel-plugin-jest-hoist": "^24.3.0" + } + }, + "babel-preset-react-app": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/babel-preset-react-app/-/babel-preset-react-app-7.0.2.tgz", + "integrity": "sha512-mwCk/u2wuiO8qQqblN5PlDa44taY0acq7hw6W+a70W522P7a9mIcdggL1fe5/LgAT7tqCq46q9wwhqaMoYKslQ==", + "dev": true, + "requires": { + "@babel/core": "7.2.2", + "@babel/plugin-proposal-class-properties": "7.3.0", + "@babel/plugin-proposal-decorators": "7.3.0", + "@babel/plugin-proposal-object-rest-spread": "7.3.2", + "@babel/plugin-syntax-dynamic-import": "7.2.0", + "@babel/plugin-transform-classes": "7.2.2", + "@babel/plugin-transform-destructuring": "7.3.2", + "@babel/plugin-transform-flow-strip-types": "7.2.3", + "@babel/plugin-transform-react-constant-elements": "7.2.0", + "@babel/plugin-transform-react-display-name": "7.2.0", + "@babel/plugin-transform-runtime": "7.2.0", + "@babel/preset-env": "7.3.1", + "@babel/preset-react": "7.0.0", + "@babel/preset-typescript": "7.1.0", + "@babel/runtime": "7.3.1", + "babel-loader": "8.0.5", + "babel-plugin-dynamic-import-node": "2.2.0", + "babel-plugin-macros": "2.5.0", + "babel-plugin-transform-react-remove-prop-types": "0.4.24" + }, + "dependencies": { + "@babel/core": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.2.2.tgz", + "integrity": "sha512-59vB0RWt09cAct5EIe58+NzGP4TFSD3Bz//2/ELy3ZeTeKF6VTD1AXlH8BGGbCX0PuobZBsIzO7IAI9PH67eKw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@babel/generator": "^7.2.2", + "@babel/helpers": "^7.2.0", + "@babel/parser": "^7.2.2", + "@babel/template": "^7.2.2", + "@babel/traverse": "^7.2.2", + "@babel/types": "^7.2.2", + "convert-source-map": "^1.1.0", + "debug": "^4.1.0", + "json5": "^2.1.0", + "lodash": "^4.17.10", + "resolve": "^1.3.2", + "semver": "^5.4.1", + "source-map": "^0.5.0" + } + }, + "@babel/plugin-proposal-class-properties": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.3.0.tgz", + "integrity": "sha512-wNHxLkEKTQ2ay0tnsam2z7fGZUi+05ziDJflEt3AZTP3oXLKHJp9HqhfroB/vdMvt3sda9fAbq7FsG8QPDrZBg==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.3.0", + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/plugin-proposal-object-rest-spread": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.3.2.tgz", + "integrity": "sha512-DjeMS+J2+lpANkYLLO+m6GjoTMygYglKmRe6cDTbFv3L9i6mmiE8fe6B8MtCSLZpVXscD5kn7s6SgtHrDoBWoA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-syntax-object-rest-spread": "^7.2.0" + } + }, + "@babel/plugin-transform-classes": { + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.2.2.tgz", + "integrity": "sha512-gEZvgTy1VtcDOaQty1l10T3jQmJKlNVxLDCs+3rCVPr6nMkODLELxViq5X9l+rfxbie3XrfrMCYYY6eX3aOcOQ==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.0.0", + "@babel/helper-define-map": "^7.1.0", + "@babel/helper-function-name": "^7.1.0", + "@babel/helper-optimise-call-expression": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/helper-replace-supers": "^7.1.0", + "@babel/helper-split-export-declaration": "^7.0.0", + "globals": "^11.1.0" + } + }, + "@babel/plugin-transform-destructuring": { + "version": "7.3.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.3.2.tgz", + "integrity": "sha512-Lrj/u53Ufqxl/sGxyjsJ2XNtNuEjDyjpqdhMNh5aZ+XFOdThL46KBj27Uem4ggoezSYBxKWAil6Hu8HtwqesYw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, + "@babel/preset-env": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.3.1.tgz", + "integrity": "sha512-FHKrD6Dxf30e8xgHQO0zJZpUPfVZg+Xwgz5/RdSWCbza9QLNk4Qbp40ctRoqDxml3O8RMzB1DU55SXeDG6PqHQ==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.0.0", + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-async-generator-functions": "^7.2.0", + "@babel/plugin-proposal-json-strings": "^7.2.0", + "@babel/plugin-proposal-object-rest-spread": "^7.3.1", + "@babel/plugin-proposal-optional-catch-binding": "^7.2.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.2.0", + "@babel/plugin-syntax-async-generators": "^7.2.0", + "@babel/plugin-syntax-json-strings": "^7.2.0", + "@babel/plugin-syntax-object-rest-spread": "^7.2.0", + "@babel/plugin-syntax-optional-catch-binding": "^7.2.0", + "@babel/plugin-transform-arrow-functions": "^7.2.0", + "@babel/plugin-transform-async-to-generator": "^7.2.0", + "@babel/plugin-transform-block-scoped-functions": "^7.2.0", + "@babel/plugin-transform-block-scoping": "^7.2.0", + "@babel/plugin-transform-classes": "^7.2.0", + "@babel/plugin-transform-computed-properties": "^7.2.0", + "@babel/plugin-transform-destructuring": "^7.2.0", + "@babel/plugin-transform-dotall-regex": "^7.2.0", + "@babel/plugin-transform-duplicate-keys": "^7.2.0", + "@babel/plugin-transform-exponentiation-operator": "^7.2.0", + "@babel/plugin-transform-for-of": "^7.2.0", + "@babel/plugin-transform-function-name": "^7.2.0", + "@babel/plugin-transform-literals": "^7.2.0", + "@babel/plugin-transform-modules-amd": "^7.2.0", + "@babel/plugin-transform-modules-commonjs": "^7.2.0", + "@babel/plugin-transform-modules-systemjs": "^7.2.0", + "@babel/plugin-transform-modules-umd": "^7.2.0", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.3.0", + "@babel/plugin-transform-new-target": "^7.0.0", + "@babel/plugin-transform-object-super": "^7.2.0", + "@babel/plugin-transform-parameters": "^7.2.0", + "@babel/plugin-transform-regenerator": "^7.0.0", + "@babel/plugin-transform-shorthand-properties": "^7.2.0", + "@babel/plugin-transform-spread": "^7.2.0", + "@babel/plugin-transform-sticky-regex": "^7.2.0", + "@babel/plugin-transform-template-literals": "^7.2.0", + "@babel/plugin-transform-typeof-symbol": "^7.2.0", + "@babel/plugin-transform-unicode-regex": "^7.2.0", + "browserslist": "^4.3.4", + "invariant": "^2.2.2", + "js-levenshtein": "^1.1.3", + "semver": "^5.3.0" + } + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "babel-preset-stage-0": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-stage-0/-/babel-preset-stage-0-6.24.1.tgz", + "integrity": "sha1-VkLRUEL5E4TX5a+LyIsduVsDnmo=", + "dev": true, + "requires": { + "babel-plugin-transform-do-expressions": "^6.22.0", + "babel-plugin-transform-function-bind": "^6.22.0", + "babel-preset-stage-1": "^6.24.1" + } + }, + "babel-preset-stage-1": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-stage-1/-/babel-preset-stage-1-6.24.1.tgz", + "integrity": "sha1-dpLNfc1oSZB+auSgqFWJz7niv7A=", + "dev": true, + "requires": { + "babel-plugin-transform-class-constructor-call": "^6.24.1", + "babel-plugin-transform-export-extensions": "^6.22.0", + "babel-preset-stage-2": "^6.24.1" + } + }, + "babel-preset-stage-2": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-stage-2/-/babel-preset-stage-2-6.24.1.tgz", + "integrity": "sha1-2eKWD7PXEYfw5k7sYrwHdnIZvcE=", + "dev": true, + "requires": { + "babel-plugin-syntax-dynamic-import": "^6.18.0", + "babel-plugin-transform-class-properties": "^6.24.1", + "babel-plugin-transform-decorators": "^6.24.1", + "babel-preset-stage-3": "^6.24.1" + } + }, + "babel-preset-stage-3": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-stage-3/-/babel-preset-stage-3-6.24.1.tgz", + "integrity": "sha1-g2raCp56f6N8sTj7kyb4eTSkg5U=", + "dev": true, + "requires": { + "babel-plugin-syntax-trailing-function-commas": "^6.22.0", + "babel-plugin-transform-async-generator-functions": "^6.24.1", + "babel-plugin-transform-async-to-generator": "^6.24.1", + "babel-plugin-transform-exponentiation-operator": "^6.24.1", + "babel-plugin-transform-object-rest-spread": "^6.22.0" + } + }, + "babel-register": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", + "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", + "dev": true, + "requires": { + "babel-core": "^6.26.0", + "babel-runtime": "^6.26.0", + "core-js": "^2.5.0", + "home-or-tmp": "^2.0.0", + "lodash": "^4.17.4", + "mkdirp": "^0.5.1", + "source-map-support": "^0.4.15" + }, + "dependencies": { + "core-js": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.9.tgz", + "integrity": "sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A==", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + }, + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "requires": { + "source-map": "^0.5.6" + } + } + } + }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "dev": true, + "requires": { + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" + }, + "dependencies": { + "core-js": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.9.tgz", + "integrity": "sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A==", + "dev": true + }, + "regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", + "dev": true + } + } + }, + "babel-template": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", + "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "lodash": "^4.17.4" + } + }, + "babel-traverse": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", + "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", + "dev": true, + "requires": { + "babel-code-frame": "^6.26.0", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "debug": "^2.6.8", + "globals": "^9.18.0", + "invariant": "^2.2.2", + "lodash": "^4.17.4" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "globals": { + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", + "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "babel-types": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", + "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "esutils": "^2.0.2", + "lodash": "^4.17.4", + "to-fast-properties": "^1.0.3" + }, + "dependencies": { + "to-fast-properties": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", + "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", + "dev": true + } + } + }, + "babylon": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", + "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "dev": true, + "requires": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "base64-js": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz", + "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==", + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "dev": true, + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "dev": true + }, + "binary-extensions": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.0.tgz", + "integrity": "sha512-EgmjVLMn22z7eGGv3kcnHwSnJXmFHjISTY9E/S5lIcTD3Oxw05QTcBLNkJFzcb3cNueUdF/IN4U+d78V0zO8Hw==", + "dev": true + }, + "bl": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.2.tgz", + "integrity": "sha512-e8tQYnZodmebYDWGH7KMRvtzKXaJHx3BbilrgZCfvyLUYdKpK1t5PSPmpkny/SgiTSCnjfLW7v5rlONXVFkQEA==", + "dev": true, + "requires": { + "readable-stream": "^2.3.5", + "safe-buffer": "^5.1.1" + } + }, + "block-stream": { + "version": "0.0.9", + "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz", + "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=", + "dev": true, + "requires": { + "inherits": "~2.0.0" + } + }, + "bluebird": { + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.3.tgz", + "integrity": "sha512-/qKPUQlaW1OyR51WeCPBvRnAlnZFUJkCSG5HzGnuIqhgyJtF+T94lFnn33eiazjRm2LAHVy2guNnaq48X9SJuw==", + "dev": true + }, + "bn.js": { + "version": "4.11.8", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", + "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==", + "dev": true + }, + "body": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/body/-/body-5.1.0.tgz", + "integrity": "sha1-5LoM5BCkaTYyM2dgnstOZVMSUGk=", + "dev": true, + "requires": { + "continuable-cache": "^0.3.1", + "error": "^7.0.0", + "raw-body": "~1.1.0", + "safe-json-parse": "~1.0.1" + } + }, + "body-parser": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", + "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", + "dev": true, + "requires": { + "bytes": "3.1.0", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "~1.1.2", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "on-finished": "~2.3.0", + "qs": "6.7.0", + "raw-body": "2.4.0", + "type-is": "~1.6.17" + }, + "dependencies": { + "bytes": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", + "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", + "dev": true + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "raw-body": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", + "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", + "dev": true, + "requires": { + "bytes": "3.1.0", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + } + } + } + }, + "boolbase": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", + "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "requires": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=", + "dev": true + }, + "browser-process-hrtime": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-0.1.3.tgz", + "integrity": "sha512-bRFnI4NnjO6cnyLmOV/7PVoDEMJChlcfN0z4s1YMBY989/SvlfMI1lgCnkFUs53e9gQF+w7qu7XdllSTiSl8Aw==", + "dev": true + }, + "browser-resolve": { + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.11.3.tgz", + "integrity": "sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ==", + "dev": true, + "requires": { + "resolve": "1.1.7" + }, + "dependencies": { + "resolve": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", + "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", + "dev": true + } + } + }, + "browserify-aes": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", + "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", + "dev": true, + "requires": { + "buffer-xor": "^1.0.3", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.3", + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "browserify-cipher": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", + "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", + "dev": true, + "requires": { + "browserify-aes": "^1.0.4", + "browserify-des": "^1.0.0", + "evp_bytestokey": "^1.0.0" + } + }, + "browserify-des": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", + "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", + "dev": true, + "requires": { + "cipher-base": "^1.0.1", + "des.js": "^1.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "browserify-rsa": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", + "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "randombytes": "^2.0.1" + } + }, + "browserify-sign": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz", + "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", + "dev": true, + "requires": { + "bn.js": "^4.1.1", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.2", + "elliptic": "^6.0.0", + "inherits": "^2.0.1", + "parse-asn1": "^5.0.0" + } + }, + "browserify-zlib": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", + "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", + "dev": true, + "requires": { + "pako": "~1.0.5" + } + }, + "browserslist": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.5.2.tgz", + "integrity": "sha512-zmJVLiKLrzko0iszd/V4SsjTaomFeoVzQGYYOYgRgsbh7WNh95RgDB0CmBdFWYs/3MyFSt69NypjL/h3iaddKQ==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30000951", + "electron-to-chromium": "^1.3.116", + "node-releases": "^1.1.11" + } + }, + "bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "requires": { + "fast-json-stable-stringify": "2.x" + } + }, + "bser": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.0.tgz", + "integrity": "sha512-8zsjWrQkkBoLK6uxASk1nJ2SKv97ltiGDo6A3wA0/yRPz+CwmEyDo0hUrhIuukG2JHpAl3bvFIixw2/3Hi0DOg==", + "dev": true, + "requires": { + "node-int64": "^0.4.0" + } + }, + "buffer": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", + "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", + "dev": true, + "requires": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" + } + }, + "buffer-alloc": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", + "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", + "dev": true, + "requires": { + "buffer-alloc-unsafe": "^1.1.0", + "buffer-fill": "^1.0.0" + } + }, + "buffer-alloc-unsafe": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", + "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", + "dev": true + }, + "buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", + "dev": true + }, + "buffer-fill": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", + "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=", + "dev": true + }, + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true + }, + "buffer-xor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", + "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", + "dev": true + }, + "builtin-status-codes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", + "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", + "dev": true + }, + "bytes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-1.0.0.tgz", + "integrity": "sha1-NWnt6Lo0MV+rmcPpLLBMciDeH6g=", + "dev": true + }, + "cacache": { + "version": "11.3.2", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-11.3.2.tgz", + "integrity": "sha512-E0zP4EPGDOaT2chM08Als91eYnf8Z+eH1awwwVsngUmgppfM5jjJ8l3z5vO5p5w/I3LsiXawb1sW0VY65pQABg==", + "dev": true, + "requires": { + "bluebird": "^3.5.3", + "chownr": "^1.1.1", + "figgy-pudding": "^3.5.1", + "glob": "^7.1.3", + "graceful-fs": "^4.1.15", + "lru-cache": "^5.1.1", + "mississippi": "^3.0.0", + "mkdirp": "^0.5.1", + "move-concurrently": "^1.0.1", + "promise-inflight": "^1.0.1", + "rimraf": "^2.6.2", + "ssri": "^6.0.1", + "unique-filename": "^1.1.1", + "y18n": "^4.0.0" + }, + "dependencies": { + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, + "yallist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz", + "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==", + "dev": true + } + } + }, + "cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "dev": true, + "requires": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + } + }, + "caller-callsite": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz", + "integrity": "sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ=", + "dev": true, + "requires": { + "callsites": "^2.0.0" + }, + "dependencies": { + "callsites": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", + "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=", + "dev": true + } + } + }, + "caller-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz", + "integrity": "sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ=", + "dev": true, + "requires": { + "caller-callsite": "^2.0.0" + } + }, + "callsites": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.0.0.tgz", + "integrity": "sha512-tWnkwu9YEq2uzlBDI4RcLn8jrFvF9AOi8PxDNU3hZZjJcjkcRAq3vCI+vZcg1SuxISDYe86k9VZFwAxDiJGoAw==", + "dev": true + }, + "camelcase": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", + "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", + "dev": true + }, + "camelcase-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", + "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", + "dev": true, + "requires": { + "camelcase": "^2.0.0", + "map-obj": "^1.0.0" + }, + "dependencies": { + "camelcase": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", + "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=", + "dev": true + } + } + }, + "caniuse-lite": { + "version": "1.0.30000951", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000951.tgz", + "integrity": "sha512-eRhP+nQ6YUkIcNQ6hnvdhMkdc7n3zadog0KXNRxAZTT2kHjUb1yGn71OrPhSn8MOvlX97g5CR97kGVj8fMsXWg==", + "dev": true + }, + "capture-exit": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz", + "integrity": "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==", + "dev": true, + "requires": { + "rsvp": "^4.8.4" + } + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "dev": true + }, + "chai": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz", + "integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==", + "dev": true, + "requires": { + "assertion-error": "^1.1.0", + "check-error": "^1.0.2", + "deep-eql": "^3.0.1", + "get-func-name": "^2.0.0", + "pathval": "^1.1.0", + "type-detect": "^4.0.5" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "dependencies": { + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "chardet": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", + "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", + "dev": true + }, + "check-error": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", + "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", + "dev": true + }, + "cheerio": { + "version": "1.0.0-rc.2", + "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.2.tgz", + "integrity": "sha1-S59TqBsn5NXawxwP/Qz6A8xoMNs=", + "dev": true, + "requires": { + "css-select": "~1.2.0", + "dom-serializer": "~0.1.0", + "entities": "~1.1.1", + "htmlparser2": "^3.9.1", + "lodash": "^4.15.0", + "parse5": "^3.0.1" + } + }, + "chokidar": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.5.tgz", + "integrity": "sha512-i0TprVWp+Kj4WRPtInjexJ8Q+BqTE909VpH8xVhXrJkoc5QC8VO9TryGOqTr+2hljzc1sC62t22h5tZePodM/A==", + "dev": true, + "requires": { + "anymatch": "^2.0.0", + "async-each": "^1.0.1", + "braces": "^2.3.2", + "fsevents": "^1.2.7", + "glob-parent": "^3.1.0", + "inherits": "^2.0.3", + "is-binary-path": "^1.0.0", + "is-glob": "^4.0.0", + "normalize-path": "^3.0.0", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.2.1", + "upath": "^1.1.1" + }, + "dependencies": { + "is-glob": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", + "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", + "dev": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + } + } + }, + "chownr": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.1.tgz", + "integrity": "sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g==", + "dev": true + }, + "chrome-trace-event": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.0.tgz", + "integrity": "sha512-xDbVgyfDTT2piup/h8dK/y4QZfJRSa73bw1WZ8b4XM1o7fsFubUVGYcE+1ANtOzJJELGpYoG2961z0Z6OAld9A==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", + "dev": true + }, + "cipher-base": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", + "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "circular-json": { + "version": "0.5.9", + "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.5.9.tgz", + "integrity": "sha512-4ivwqHpIFJZBuhN3g/pEcdbnGUywkBblloGbkglyloVjjR3uT6tieI89MVOfbP2tHX5sgb01FuLgAOzebNlJNQ==", + "dev": true + }, + "class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "dev": true, + "requires": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, + "cli-cursor": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", + "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", + "dev": true, + "requires": { + "restore-cursor": "^2.0.0" + } + }, + "cli-width": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", + "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", + "dev": true + }, + "cliui": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", + "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", + "dev": true, + "requires": { + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", + "wrap-ansi": "^2.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } + } + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "dev": true + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true + }, + "collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "dev": true, + "requires": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "combined-stream": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", + "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", + "dev": true, + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "2.19.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.19.0.tgz", + "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==", + "dev": true + }, + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", + "dev": true + }, + "compare-versions": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-3.4.0.tgz", + "integrity": "sha512-tK69D7oNXXqUW3ZNo/z7NXTEz22TCF0pTE+YF9cxvaAM9XnkLo1fV621xCLrRR6aevJlKxExkss0vWqUCUpqdg==", + "dev": true + }, + "component-emitter": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", + "dev": true + }, + "compress-commons": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/compress-commons/-/compress-commons-1.2.2.tgz", + "integrity": "sha1-UkqfEJA/OoEzibAiXSfEi7dRiQ8=", + "dev": true, + "requires": { + "buffer-crc32": "^0.2.1", + "crc32-stream": "^2.0.0", + "normalize-path": "^2.0.0", + "readable-stream": "^2.0.0" + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "console-browserify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", + "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", + "dev": true, + "requires": { + "date-now": "^0.1.4" + } + }, + "console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", + "dev": true + }, + "constants-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", + "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", + "dev": true + }, + "contains-path": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/contains-path/-/contains-path-0.1.0.tgz", + "integrity": "sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo=", + "dev": true + }, + "content-disposition": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", + "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", + "dev": true, + "requires": { + "safe-buffer": "5.1.2" + } + }, + "content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", + "dev": true + }, + "continuable-cache": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/continuable-cache/-/continuable-cache-0.3.1.tgz", + "integrity": "sha1-vXJ6f67XfnH/OYWskzUakSczrQ8=", + "dev": true + }, + "convert-source-map": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", + "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.1" + } + }, + "cookie": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", + "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==", + "dev": true + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", + "dev": true + }, + "copy-concurrently": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz", + "integrity": "sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==", + "dev": true, + "requires": { + "aproba": "^1.1.1", + "fs-write-stream-atomic": "^1.0.8", + "iferr": "^0.1.5", + "mkdirp": "^0.5.1", + "rimraf": "^2.5.4", + "run-queue": "^1.0.0" + } + }, + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", + "dev": true + }, + "core-js": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.0.0.tgz", + "integrity": "sha512-WBmxlgH2122EzEJ6GH8o9L/FeoUKxxxZ6q6VUxoTlsE4EvbTWKJb447eyVxTEuq0LpXjlq/kCB2qgBvsYRkLvQ==", + "dev": true + }, + "core-js-compat": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.0.0.tgz", + "integrity": "sha512-W/Ppz34uUme3LmXWjMgFlYyGnbo1hd9JvA0LNQ4EmieqVjg2GPYbj3H6tcdP2QGPGWdRKUqZVbVKLNIFVs/HiA==", + "dev": true, + "requires": { + "browserslist": "^4.5.1", + "core-js": "3.0.0", + "core-js-pure": "3.0.0", + "semver": "^5.6.0" + } + }, + "core-js-pure": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.0.0.tgz", + "integrity": "sha512-yPiS3fQd842RZDgo/TAKGgS0f3p2nxssF1H65DIZvZv0Od5CygP8puHXn3IQiM/39VAvgCbdaMQpresrbGgt9g==", + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + }, + "cosmiconfig": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.1.0.tgz", + "integrity": "sha512-kCNPvthka8gvLtzAxQXvWo4FxqRB+ftRZyPZNuab5ngvM9Y7yw7hbEysglptLgpkGX9nAOKTBVkHUAe8xtYR6Q==", + "dev": true, + "requires": { + "import-fresh": "^2.0.0", + "is-directory": "^0.3.1", + "js-yaml": "^3.9.0", + "lodash.get": "^4.4.2", + "parse-json": "^4.0.0" + } + }, + "crc": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz", + "integrity": "sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==", + "dev": true, + "requires": { + "buffer": "^5.1.0" + }, + "dependencies": { + "buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", + "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", + "dev": true, + "requires": { + "base64-js": "^1.0.2", + "ieee754": "^1.1.4" + } + } + } + }, + "crc32-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/crc32-stream/-/crc32-stream-2.0.0.tgz", + "integrity": "sha1-483TtN8xaN10494/u8t7KX/pCPQ=", + "dev": true, + "requires": { + "crc": "^3.4.4", + "readable-stream": "^2.0.0" + } + }, + "create-ecdh": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz", + "integrity": "sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw==", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "elliptic": "^6.0.0" + } + }, + "create-hash": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", + "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", + "dev": true, + "requires": { + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "md5.js": "^1.3.4", + "ripemd160": "^2.0.1", + "sha.js": "^2.4.0" + } + }, + "create-hmac": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", + "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", + "dev": true, + "requires": { + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, + "cross-spawn": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-0.2.9.tgz", + "integrity": "sha1-vWf5bAfvtjA7f+lMHpefiEeOCjk=", + "dev": true, + "requires": { + "lru-cache": "^2.5.0" + } + }, + "crypto-browserify": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", + "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", + "dev": true, + "requires": { + "browserify-cipher": "^1.0.0", + "browserify-sign": "^4.0.0", + "create-ecdh": "^4.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.0", + "diffie-hellman": "^5.0.0", + "inherits": "^2.0.1", + "pbkdf2": "^3.0.3", + "public-encrypt": "^4.0.0", + "randombytes": "^2.0.0", + "randomfill": "^1.0.3" + } + }, + "csproj2ts": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/csproj2ts/-/csproj2ts-1.1.0.tgz", + "integrity": "sha512-sk0RTT51t4lUNQ7UfZrqjQx7q4g0m3iwNA6mvyh7gLsgQYvwKzfdyoAgicC9GqJvkoIkU0UmndV9c7VZ8pJ45Q==", + "dev": true, + "requires": { + "es6-promise": "^4.1.1", + "lodash": "^4.17.4", + "semver": "^5.4.1", + "xml2js": "^0.4.19" + }, + "dependencies": { + "es6-promise": { + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.6.tgz", + "integrity": "sha512-aRVgGdnmW2OiySVPUC9e6m+plolMAJKjZnQlCwNSuK5yQ0JN61DZSO1X1Ufd1foqWRAlig0rhduTCHe7sVtK5Q==", + "dev": true + } + } + }, + "css": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz", + "integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "source-map": "^0.6.1", + "source-map-resolve": "^0.5.2", + "urix": "^0.1.0" + } + }, + "css-select": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-1.2.0.tgz", + "integrity": "sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg=", + "dev": true, + "requires": { + "boolbase": "~1.0.0", + "css-what": "2.1", + "domutils": "1.5.1", + "nth-check": "~1.0.1" + } + }, + "css-what": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/css-what/-/css-what-2.1.3.tgz", + "integrity": "sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg==", + "dev": true + }, + "css.escape": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", + "integrity": "sha1-QuJ9T6BK4y+TGktNQZH6nN3ul8s=", + "dev": true + }, + "cssom": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.6.tgz", + "integrity": "sha512-DtUeseGk9/GBW0hl0vVPpU22iHL6YB5BUX7ml1hB+GMpo0NX5G4voX3kdWiMSEguFtcW3Vh3djqNF4aIe6ne0A==", + "dev": true + }, + "cssstyle": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-1.2.1.tgz", + "integrity": "sha512-7DYm8qe+gPx/h77QlCyFmX80+fGaE/6A/Ekl0zaszYOubvySO2saYFdQ78P29D0UsULxFKCetDGNaNRUdSF+2A==", + "dev": true, + "requires": { + "cssom": "0.3.x" + } + }, + "currently-unhandled": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", + "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", + "dev": true, + "requires": { + "array-find-index": "^1.0.1" + } + }, + "cyclist": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-0.2.2.tgz", + "integrity": "sha1-GzN5LhHpFKL9bW7WRHRkRE5fpkA=", + "dev": true + }, + "damerau-levenshtein": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.4.tgz", + "integrity": "sha1-AxkcQyy27qFou3fzpV/9zLiXhRQ=", + "dev": true + }, + "dargs": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/dargs/-/dargs-4.1.0.tgz", + "integrity": "sha1-A6nbtLXC8Tm/FK5T8LiipqhvThc=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "data-urls": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-1.1.0.tgz", + "integrity": "sha512-YTWYI9se1P55u58gL5GkQHW4P6VJBJ5iBT+B5a7i2Tjadhv52paJG0qHX4A0OR6/t52odI64KP2YvFpkDOi3eQ==", + "dev": true, + "requires": { + "abab": "^2.0.0", + "whatwg-mimetype": "^2.2.0", + "whatwg-url": "^7.0.0" + }, + "dependencies": { + "whatwg-url": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.0.0.tgz", + "integrity": "sha512-37GeVSIJ3kn1JgKyjiYNmSLP1yzbpb29jdmwBSgkD9h40/hyrR/OifpVUndji3tmwGgD8qpw7iQu3RSbCrBpsQ==", + "dev": true, + "requires": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + } + } + }, + "date-now": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", + "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", + "dev": true + }, + "debug": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", + "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + }, + "decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", + "dev": true + }, + "decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", + "dev": true, + "optional": true, + "requires": { + "mimic-response": "^1.0.0" + } + }, + "deep-eql": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", + "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", + "dev": true, + "requires": { + "type-detect": "^4.0.0" + } + }, + "deep-equal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz", + "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=", + "dev": true + }, + "deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "dev": true, + "optional": true + }, + "deep-for-each": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/deep-for-each/-/deep-for-each-2.0.3.tgz", + "integrity": "sha512-Y9mu+rplGcNZ7veer+5rqcdI9w3aPb7/WyE/nYnsuPevaE2z5YuC2u7/Gz/hIKsa0zo8sE8gKoBimSNsO/sr+A==", + "dev": true, + "requires": { + "lodash.isplainobject": "^4.0.6" + } + }, + "deep-is": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "dev": true + }, + "default-require-extensions": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-2.0.0.tgz", + "integrity": "sha1-9fj7sYp9bVCyH2QfZJ67Uiz+JPc=", + "dev": true, + "requires": { + "strip-bom": "^3.0.0" + } + }, + "define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "requires": { + "object-keys": "^1.0.12" + } + }, + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "dev": true, + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + }, + "dependencies": { + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true + }, + "delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", + "dev": true + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", + "dev": true + }, + "des.js": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", + "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" + } + }, + "destroy": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", + "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", + "dev": true + }, + "detect-file": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", + "integrity": "sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=", + "dev": true + }, + "detect-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", + "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", + "dev": true, + "requires": { + "repeating": "^2.0.0" + } + }, + "detect-libc": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-0.2.0.tgz", + "integrity": "sha1-R/31ZzSKF+wl/L8LnkRjSKdvn7U=", + "dev": true, + "optional": true + }, + "detect-newline": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-2.1.0.tgz", + "integrity": "sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I=", + "dev": true + }, + "diff-sequences": { + "version": "24.3.0", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-24.3.0.tgz", + "integrity": "sha512-xLqpez+Zj9GKSnPWS0WZw1igGocZ+uua8+y+5dDNTT934N3QuY1sp2LkHzwiaYQGz60hMq0pjAshdeXm5VUOEw==", + "dev": true + }, + "diffie-hellman": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", + "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "miller-rabin": "^4.0.0", + "randombytes": "^2.0.0" + } + }, + "discontinuous-range": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/discontinuous-range/-/discontinuous-range-1.0.0.tgz", + "integrity": "sha1-44Mx8IRLukm5qctxx3FYWqsbxlo=", + "dev": true + }, + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, + "dom-serializer": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.1.tgz", + "integrity": "sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==", + "dev": true, + "requires": { + "domelementtype": "^1.3.0", + "entities": "^1.1.1" + } + }, + "domain-browser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", + "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", + "dev": true + }, + "domelementtype": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", + "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==", + "dev": true + }, + "domexception": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-1.0.1.tgz", + "integrity": "sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug==", + "dev": true, + "requires": { + "webidl-conversions": "^4.0.2" + } + }, + "domhandler": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz", + "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==", + "dev": true, + "requires": { + "domelementtype": "1" + } + }, + "domutils": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz", + "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=", + "dev": true, + "requires": { + "dom-serializer": "0", + "domelementtype": "1" + } + }, + "duplexer": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", + "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", + "dev": true + }, + "duplexify": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", + "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", + "dev": true, + "requires": { + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" + } + }, + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "dev": true, + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", + "dev": true + }, + "electron-to-chromium": { + "version": "1.3.119", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.119.tgz", + "integrity": "sha512-3mtqcAWa4HgG+Djh/oNXlPH0cOH6MmtwxN1nHSaReb9P0Vn51qYPqYwLeoSuAX9loU1wrOBhFbiX3CkeIxPfgg==", + "dev": true + }, + "elliptic": { + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz", + "integrity": "sha512-BsXLz5sqX8OHcsh7CqBMztyXARmGQ3LWPtGjJi6DiJHq5C/qvi9P3OqgswKSDftbu8+IoI/QDTAm2fFnQ9SZSQ==", + "dev": true, + "requires": { + "bn.js": "^4.4.0", + "brorand": "^1.0.1", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.0" + } + }, + "emoji-regex": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-6.5.1.tgz", + "integrity": "sha512-PAHp6TxrCy7MGMFidro8uikr+zlJJKJ/Q6mm2ExZ7HwkyR9lSVFfE3kt36qcwa24BQL7y0G9axycGjK1A/0uNQ==", + "dev": true + }, + "emojis-list": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", + "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=", + "dev": true + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", + "dev": true + }, + "end-of-stream": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", + "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", + "dev": true, + "requires": { + "once": "^1.4.0" + } + }, + "enhanced-resolve": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.1.0.tgz", + "integrity": "sha512-F/7vkyTtyc/llOIn8oWclcB25KdRaiPBpZYDgJHgh/UHtpgT2p2eldQgtQnLtUvfMKPKxbRaQM/hHkvLHt1Vng==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "memory-fs": "^0.4.0", + "tapable": "^1.0.0" + } + }, + "entities": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", + "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==", + "dev": true + }, + "enzyme": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/enzyme/-/enzyme-3.9.0.tgz", + "integrity": "sha512-JqxI2BRFHbmiP7/UFqvsjxTirWoM1HfeaJrmVSZ9a1EADKkZgdPcAuISPMpoUiHlac9J4dYt81MC5BBIrbJGMg==", + "dev": true, + "requires": { + "array.prototype.flat": "^1.2.1", + "cheerio": "^1.0.0-rc.2", + "function.prototype.name": "^1.1.0", + "has": "^1.0.3", + "html-element-map": "^1.0.0", + "is-boolean-object": "^1.0.0", + "is-callable": "^1.1.4", + "is-number-object": "^1.0.3", + "is-regex": "^1.0.4", + "is-string": "^1.0.4", + "is-subset": "^0.1.1", + "lodash.escape": "^4.0.1", + "lodash.isequal": "^4.5.0", + "object-inspect": "^1.6.0", + "object-is": "^1.0.1", + "object.assign": "^4.1.0", + "object.entries": "^1.0.4", + "object.values": "^1.0.4", + "raf": "^3.4.0", + "rst-selector-parser": "^2.2.3", + "string.prototype.trim": "^1.1.2" + } + }, + "enzyme-adapter-react-16": { + "version": "1.11.2", + "resolved": "https://registry.npmjs.org/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.11.2.tgz", + "integrity": "sha512-2ruTTCPRb0lPuw/vKTXGVZVBZqh83MNDnakMhzxhpJcIbneEwNy2Cv0KvL97pl57/GOazJHflWNLjwWhex5AAA==", + "dev": true, + "requires": { + "enzyme-adapter-utils": "^1.10.1", + "object.assign": "^4.1.0", + "object.values": "^1.1.0", + "prop-types": "^15.7.2", + "react-is": "^16.8.4", + "react-test-renderer": "^16.0.0-0", + "semver": "^5.6.0" + } + }, + "enzyme-adapter-utils": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/enzyme-adapter-utils/-/enzyme-adapter-utils-1.10.1.tgz", + "integrity": "sha512-oasinhhLoBuZsIkTe8mx0HiudtfErUtG0Ooe1FOplu/t4c9rOmyG5gtrBASK6u4whHIRWvv0cbZMElzNTR21SA==", + "dev": true, + "requires": { + "function.prototype.name": "^1.1.0", + "object.assign": "^4.1.0", + "object.fromentries": "^2.0.0", + "prop-types": "^15.7.2", + "semver": "^5.6.0" + } + }, + "enzyme-to-json": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/enzyme-to-json/-/enzyme-to-json-3.3.5.tgz", + "integrity": "sha512-DmH1wJ68HyPqKSYXdQqB33ZotwfUhwQZW3IGXaNXgR69Iodaoj8TF/D9RjLdz4pEhGq2Tx2zwNUIjBuqoZeTgA==", + "dev": true, + "requires": { + "lodash": "^4.17.4" + } + }, + "errno": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz", + "integrity": "sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg==", + "dev": true, + "requires": { + "prr": "~1.0.1" + } + }, + "error": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/error/-/error-7.0.2.tgz", + "integrity": "sha1-pfdf/02ZJhJt2sDqXcOOaJFTywI=", + "dev": true, + "requires": { + "string-template": "~0.2.1", + "xtend": "~4.0.0" + } + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "es-abstract": { + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.13.0.tgz", + "integrity": "sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==", + "requires": { + "es-to-primitive": "^1.2.0", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "is-callable": "^1.1.4", + "is-regex": "^1.0.4", + "object-keys": "^1.0.12" + } + }, + "es-to-primitive": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", + "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "es6-promise": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-0.1.2.tgz", + "integrity": "sha1-8RLCn+paCZhTn8tqL9IUQ9KPBfc=", + "dev": true + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "escodegen": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.11.1.tgz", + "integrity": "sha512-JwiqFD9KdGVVpeuRa68yU3zZnBEOcPs0nKW7wZzXky8Z7tffdYUHbe11bPCV5jYlK6DVdKLWLm0f5I/QlL0Kmw==", + "dev": true, + "requires": { + "esprima": "^3.1.3", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" + }, + "dependencies": { + "esprima": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", + "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", + "dev": true + } + } + }, + "eslint": { + "version": "5.16.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.16.0.tgz", + "integrity": "sha512-S3Rz11i7c8AA5JPv7xAH+dOyq/Cu/VXHiHXBPOU1k/JAM5dXqQPt3qcrhpHSorXmrpu2g0gkIBVXAqCpzfoZIg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "ajv": "^6.9.1", + "chalk": "^2.1.0", + "cross-spawn": "^6.0.5", + "debug": "^4.0.1", + "doctrine": "^3.0.0", + "eslint-scope": "^4.0.3", + "eslint-utils": "^1.3.1", + "eslint-visitor-keys": "^1.0.0", + "espree": "^5.0.1", + "esquery": "^1.0.1", + "esutils": "^2.0.2", + "file-entry-cache": "^5.0.1", + "functional-red-black-tree": "^1.0.1", + "glob": "^7.1.2", + "globals": "^11.7.0", + "ignore": "^4.0.6", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "inquirer": "^6.2.2", + "js-yaml": "^3.13.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.3.0", + "lodash": "^4.17.11", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "natural-compare": "^1.4.0", + "optionator": "^0.8.2", + "path-is-inside": "^1.0.2", + "progress": "^2.0.0", + "regexpp": "^2.0.1", + "semver": "^5.5.1", + "strip-ansi": "^4.0.0", + "strip-json-comments": "^2.0.1", + "table": "^5.2.3", + "text-table": "^0.2.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, + "doctrine": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "requires": { + "esutils": "^2.0.2" + } + }, + "import-fresh": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.1.0.tgz", + "integrity": "sha512-PpuksHKGt8rXfWEr9m9EHIpgyyaltBy8+eF6GJM0QCAxMgxCfucMF3mjecK2QsJr0amJW7gTqh5/wht0z2UhEQ==", + "dev": true, + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + } + }, + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } + } + }, + "eslint-config-airbnb": { + "version": "17.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb/-/eslint-config-airbnb-17.1.0.tgz", + "integrity": "sha512-R9jw28hFfEQnpPau01NO5K/JWMGLi6aymiF6RsnMURjTk+MqZKllCqGK/0tOvHkPi/NWSSOU2Ced/GX++YxLnw==", + "dev": true, + "requires": { + "eslint-config-airbnb-base": "^13.1.0", + "object.assign": "^4.1.0", + "object.entries": "^1.0.4" + } + }, + "eslint-config-airbnb-base": { + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-13.1.0.tgz", + "integrity": "sha512-XWwQtf3U3zIoKO1BbHh6aUhJZQweOwSt4c2JrPDg9FP3Ltv3+YfEv7jIDB8275tVnO/qOHbfuYg3kzw6Je7uWw==", + "requires": { + "eslint-restricted-globals": "^0.1.1", + "object.assign": "^4.1.0", + "object.entries": "^1.0.4" + } + }, + "eslint-import-resolver-node": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz", + "integrity": "sha512-sfmTqJfPSizWu4aymbPr4Iidp5yKm8yDkHp+Ir3YiTHiiDfxh69mOUsmiqW6RZ9zRXFaF64GtYmN7e+8GHBv6Q==", + "dev": true, + "requires": { + "debug": "^2.6.9", + "resolve": "^1.5.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "eslint-module-utils": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.4.0.tgz", + "integrity": "sha512-14tltLm38Eu3zS+mt0KvILC3q8jyIAH518MlG+HO0p+yK885Lb1UHTY/UgR91eOyGdmxAPb+OLoW4znqIT6Ndw==", + "dev": true, + "requires": { + "debug": "^2.6.8", + "pkg-dir": "^2.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + }, + "pkg-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", + "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", + "dev": true, + "requires": { + "find-up": "^2.1.0" + } + } + } + }, + "eslint-plugin-import": { + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.18.0.tgz", + "integrity": "sha512-PZpAEC4gj/6DEMMoU2Df01C5c50r7zdGIN52Yfi7CvvWaYssG7Jt5R9nFG5gmqodxNOz9vQS87xk6Izdtpdrig==", + "dev": true, + "requires": { + "array-includes": "^3.0.3", + "contains-path": "^0.1.0", + "debug": "^2.6.9", + "doctrine": "1.5.0", + "eslint-import-resolver-node": "^0.3.2", + "eslint-module-utils": "^2.4.0", + "has": "^1.0.3", + "lodash": "^4.17.11", + "minimatch": "^3.0.4", + "read-pkg-up": "^2.0.0", + "resolve": "^1.11.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "doctrine": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.5.0.tgz", + "integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "isarray": "^1.0.0" + } + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "load-json-file": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", + "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "strip-bom": "^3.0.0" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + }, + "parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "dev": true, + "requires": { + "error-ex": "^1.2.0" + } + }, + "path-type": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", + "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", + "dev": true, + "requires": { + "pify": "^2.0.0" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + }, + "read-pkg": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", + "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", + "dev": true, + "requires": { + "load-json-file": "^2.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^2.0.0" + } + }, + "read-pkg-up": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", + "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", + "dev": true, + "requires": { + "find-up": "^2.0.0", + "read-pkg": "^2.0.0" + } + }, + "resolve": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.11.1.tgz", + "integrity": "sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + } + } + }, + "eslint-plugin-jsx-a11y": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.1.1.tgz", + "integrity": "sha512-JsxNKqa3TwmPypeXNnI75FntkUktGzI1wSa1LgNZdSOMI+B4sxnr1lSF8m8lPiz4mKiC+14ysZQM4scewUrP7A==", + "dev": true, + "requires": { + "aria-query": "^3.0.0", + "array-includes": "^3.0.3", + "ast-types-flow": "^0.0.7", + "axobject-query": "^2.0.1", + "damerau-levenshtein": "^1.0.4", + "emoji-regex": "^6.5.1", + "has": "^1.0.3", + "jsx-ast-utils": "^2.0.1" + } + }, + "eslint-plugin-react": { + "version": "7.11.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.11.0.tgz", + "integrity": "sha512-SJOh2p3Mr1nbp/Nd5odTuSn2rvaMvO5DaOpuAGc9Sc+Gcxqkyffb1mqQGIKB9tWQJlvrfsrzWnMJexZJ7YRDUw==", + "dev": true, + "requires": { + "array-includes": "^3.0.3", + "doctrine": "^2.1.0", + "has": "^1.0.3", + "jsx-ast-utils": "^2.0.1", + "prop-types": "^15.6.2" + } + }, + "eslint-restricted-globals": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/eslint-restricted-globals/-/eslint-restricted-globals-0.1.1.tgz", + "integrity": "sha1-NfDVy8ZMLj7WLpO0saevBbp+1Nc=" + }, + "eslint-scope": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.3.tgz", + "integrity": "sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg==", + "dev": true, + "requires": { + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" + } + }, + "eslint-utils": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.3.1.tgz", + "integrity": "sha512-Z7YjnIldX+2XMcjr7ZkgEsOj/bREONV60qYeB/bjMAqqqZ4zxKyWX+BOUkdmRmA9riiIPVvo5x86m5elviOk0Q==", + "dev": true + }, + "eslint-visitor-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz", + "integrity": "sha512-qzm/XxIbxm/FHyH341ZrbnMUpe+5Bocte9xkmFMzPMjRaZMcXww+MpBptFvtU+79L362nqiLhekCxCxDPaUMBQ==", + "dev": true + }, + "espree": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-5.0.1.tgz", + "integrity": "sha512-qWAZcWh4XE/RwzLJejfcofscgMc9CamR6Tn1+XRXNzrvUSSbiAjGOI/fggztjIi7y9VLPqnICMIPiGyr8JaZ0A==", + "dev": true, + "requires": { + "acorn": "^6.0.7", + "acorn-jsx": "^5.0.0", + "eslint-visitor-keys": "^1.0.0" + }, + "dependencies": { + "acorn": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.2.0.tgz", + "integrity": "sha512-8oe72N3WPMjA+2zVG71Ia0nXZ8DpQH+QyyHO+p06jT8eg8FGG3FbcUIi8KziHlAfheJQZeoqbvq1mQSQHXKYLw==", + "dev": true + } + } + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "esquery": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz", + "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", + "dev": true, + "requires": { + "estraverse": "^4.0.0" + } + }, + "esrecurse": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", + "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", + "dev": true, + "requires": { + "estraverse": "^4.1.0" + } + }, + "estraverse": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", + "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", + "dev": true + }, + "esutils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "dev": true + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", + "dev": true + }, + "events": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.0.0.tgz", + "integrity": "sha512-Dc381HFWJzEOhQ+d8pkNon++bk9h6cdAoAj4iE6Q4y6xgTzySWXlKn05/TVNpjnfRqi/X0EpJEJohPjNI3zpVA==", + "dev": true + }, + "evp_bytestokey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", + "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", + "dev": true, + "requires": { + "md5.js": "^1.3.4", + "safe-buffer": "^5.1.1" + } + }, + "exec-sh": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.2.tgz", + "integrity": "sha512-9sLAvzhI5nc8TpuQUh4ahMdCrWT00wPWz7j47/emR5+2qEfoZP5zzUXvx+vdx+H6ohhnsYC31iX04QLYJK8zTg==", + "dev": true + }, + "execa": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", + "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "dev": true, + "requires": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "dependencies": { + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + } + } + }, + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "dev": true + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "dev": true, + "requires": { + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "expand-template": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-1.1.1.tgz", + "integrity": "sha512-cebqLtV8KOZfw0UI8TEFWxtczxxC1jvyUvx6H4fyp1K1FN7A4Q+uggVUlOsI1K8AGU0rwOGqP8nCapdrw8CYQg==", + "dev": true, + "optional": true + }, + "expand-tilde": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", + "integrity": "sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=", + "dev": true, + "requires": { + "homedir-polyfill": "^1.0.1" + } + }, + "expect": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-24.5.0.tgz", + "integrity": "sha512-p2Gmc0CLxOgkyA93ySWmHFYHUPFIHG6XZ06l7WArWAsrqYVaVEkOU5NtT5i68KUyGKbkQgDCkiT65bWmdoL6Bw==", + "dev": true, + "requires": { + "@jest/types": "^24.5.0", + "ansi-styles": "^3.2.0", + "jest-get-type": "^24.3.0", + "jest-matcher-utils": "^24.5.0", + "jest-message-util": "^24.5.0", + "jest-regex-util": "^24.3.0" + } + }, + "express": { + "version": "4.17.1", + "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", + "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", + "dev": true, + "requires": { + "accepts": "~1.3.7", + "array-flatten": "1.1.1", + "body-parser": "1.19.0", + "content-disposition": "0.5.3", + "content-type": "~1.0.4", + "cookie": "0.4.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "~1.1.2", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "~1.1.2", + "fresh": "0.5.2", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.5", + "qs": "6.7.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.1.2", + "send": "0.17.1", + "serve-static": "1.14.1", + "setprototypeof": "1.1.1", + "statuses": "~1.5.0", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "dev": true + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "dev": true, + "requires": { + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, + "external-editor": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.0.3.tgz", + "integrity": "sha512-bn71H9+qWoOQKyZDo25mOMVpSmXROAsTJVVVYzrrtol3d4y+AsKjf4Iwl2Q+IuT0kFSQ1qo166UuIwqYq7mGnA==", + "dev": true, + "requires": { + "chardet": "^0.7.0", + "iconv-lite": "^0.4.24", + "tmp": "^0.0.33" + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "dev": true, + "requires": { + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "dev": true + }, + "fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", + "dev": true + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", + "dev": true + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, + "faye-websocket": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.10.0.tgz", + "integrity": "sha1-TkkvjQTftviQA1B/btvy1QHnxvQ=", + "dev": true, + "requires": { + "websocket-driver": ">=0.5.1" + } + }, + "fb-watchman": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.0.tgz", + "integrity": "sha1-VOmr99+i8mzZsWNsWIwa/AXeXVg=", + "dev": true, + "requires": { + "bser": "^2.0.0" + } + }, + "figgy-pudding": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.1.tgz", + "integrity": "sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w==", + "dev": true + }, + "figures": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" + } + }, + "file-entry-cache": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-5.0.1.tgz", + "integrity": "sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g==", + "dev": true, + "requires": { + "flat-cache": "^2.0.1" + } + }, + "file-sync-cmp": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/file-sync-cmp/-/file-sync-cmp-0.1.1.tgz", + "integrity": "sha1-peeo/7+kk7Q7kju9TKiaU7Y7YSs=", + "dev": true + }, + "fileset": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/fileset/-/fileset-2.0.3.tgz", + "integrity": "sha1-jnVIqW08wjJ+5eZ0FocjozO7oqA=", + "dev": true, + "requires": { + "glob": "^7.0.3", + "minimatch": "^3.0.3" + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "finalhandler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "dev": true, + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "statuses": "~1.5.0", + "unpipe": "~1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + }, + "find-cache-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", + "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", + "dev": true, + "requires": { + "commondir": "^1.0.1", + "make-dir": "^2.0.0", + "pkg-dir": "^3.0.0" + }, + "dependencies": { + "make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "requires": { + "pify": "^4.0.1", + "semver": "^5.6.0" + } + }, + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "dev": true + } + } + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "findup-sync": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-2.0.0.tgz", + "integrity": "sha1-kyaxSIwi0aYIhlCoaQGy2akKLLw=", + "dev": true, + "requires": { + "detect-file": "^1.0.0", + "is-glob": "^3.1.0", + "micromatch": "^3.0.4", + "resolve-dir": "^1.0.1" + } + }, + "fined": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/fined/-/fined-1.1.1.tgz", + "integrity": "sha512-jQp949ZmEbiYHk3gkbdtpJ0G1+kgtLQBNdP5edFP7Fh+WAYceLQz6yO1SBj72Xkg8GVyTB3bBzAYrHJVh5Xd5g==", + "dev": true, + "requires": { + "expand-tilde": "^2.0.2", + "is-plain-object": "^2.0.3", + "object.defaults": "^1.1.0", + "object.pick": "^1.2.0", + "parse-filepath": "^1.0.1" + } + }, + "flagged-respawn": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/flagged-respawn/-/flagged-respawn-1.0.1.tgz", + "integrity": "sha512-lNaHNVymajmk0OJMBn8fVUAU1BtDeKIqKoVhk4xAALB57aALg6b4W0MfJ/cUE0g9YBXy5XhSlPIpYIJ7HaY/3Q==", + "dev": true + }, + "flat-cache": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-2.0.1.tgz", + "integrity": "sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA==", + "dev": true, + "requires": { + "flatted": "^2.0.0", + "rimraf": "2.6.3", + "write": "1.0.3" + } + }, + "flatted": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.1.tgz", + "integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==", + "dev": true + }, + "flopmang": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/flopmang/-/flopmang-1.0.0.tgz", + "integrity": "sha512-WQsI7/o5g8NC/VCKbAJQcxSm77k1hd5beC0qikWOvz9iDqwKiwB0xfSGIgAOpHck00enCiJKUrzsGN775FQzdw==", + "requires": { + "underscore": "^1.9.1", + "underscore.string": "^3.3.5" + } + }, + "flush-write-stream": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz", + "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "readable-stream": "^2.3.6" + } + }, + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "dev": true + }, + "for-own": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", + "integrity": "sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs=", + "dev": true, + "requires": { + "for-in": "^1.0.1" + } + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "dev": true + }, + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dev": true, + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "forwarded": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", + "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=", + "dev": true + }, + "fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "dev": true, + "requires": { + "map-cache": "^0.2.2" + } + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", + "dev": true + }, + "from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" + } + }, + "fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "dev": true + }, + "fs-readdir-recursive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz", + "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==", + "dev": true + }, + "fs-write-stream-atomic": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz", + "integrity": "sha1-tH31NJPvkR33VzHnCp3tAYnbQMk=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "iferr": "^0.1.5", + "imurmurhash": "^0.1.4", + "readable-stream": "1 || 2" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "fsevents": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.7.tgz", + "integrity": "sha512-Pxm6sI2MeBD7RdD12RYsqaP0nMiwx8eZBXCa6z2L+mRHm2DYrOYwihmhjpkdjUHwQhslWQjRpEgNq4XvBmaAuw==", + "dev": true, + "optional": true, + "requires": { + "nan": "^2.9.2", + "node-pre-gyp": "^0.10.0" + }, + "dependencies": { + "abbrev": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "aproba": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "are-we-there-yet": { + "version": "1.1.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" + } + }, + "balanced-match": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "brace-expansion": { + "version": "1.1.11", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "chownr": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "code-point-at": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "debug": { + "version": "2.6.9", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ms": "2.0.0" + } + }, + "deep-extend": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "delegates": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "detect-libc": { + "version": "1.0.3", + "bundled": true, + "dev": true, + "optional": true + }, + "fs-minipass": { + "version": "1.2.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minipass": "^2.2.1" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "gauge": { + "version": "2.7.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" + } + }, + "glob": { + "version": "7.1.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "iconv-lite": { + "version": "0.4.24", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "ignore-walk": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minimatch": "^3.0.4" + } + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true, + "dev": true, + "optional": true + }, + "ini": { + "version": "1.3.5", + "bundled": true, + "dev": true, + "optional": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true, + "optional": true + }, + "minipass": { + "version": "2.3.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safe-buffer": "^5.1.2", + "yallist": "^3.0.0" + } + }, + "minizlib": { + "version": "1.2.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minipass": "^2.2.1" + } + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "needle": { + "version": "2.2.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "debug": "^2.1.2", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" + } + }, + "node-pre-gyp": { + "version": "0.10.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "detect-libc": "^1.0.2", + "mkdirp": "^0.5.1", + "needle": "^2.2.1", + "nopt": "^4.0.1", + "npm-packlist": "^1.1.6", + "npmlog": "^4.0.2", + "rc": "^1.2.7", + "rimraf": "^2.6.1", + "semver": "^5.3.0", + "tar": "^4" + } + }, + "nopt": { + "version": "4.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "abbrev": "1", + "osenv": "^0.1.4" + } + }, + "npm-bundled": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "optional": true + }, + "npm-packlist": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1" + } + }, + "npmlog": { + "version": "4.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "object-assign": { + "version": "4.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "once": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "wrappy": "1" + } + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "osenv": { + "version": "0.1.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "process-nextick-args": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "rc": { + "version": "1.2.8", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "readable-stream": { + "version": "2.3.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "rimraf": { + "version": "2.6.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "glob": "^7.1.3" + } + }, + "safe-buffer": { + "version": "5.1.2", + "bundled": true, + "dev": true + }, + "safer-buffer": { + "version": "2.1.2", + "bundled": true, + "dev": true, + "optional": true + }, + "sax": { + "version": "1.2.4", + "bundled": true, + "dev": true, + "optional": true + }, + "semver": { + "version": "5.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "string_decoder": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "tar": { + "version": "4.4.8", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "chownr": "^1.1.1", + "fs-minipass": "^1.2.5", + "minipass": "^2.3.4", + "minizlib": "^1.1.1", + "mkdirp": "^0.5.0", + "safe-buffer": "^5.1.2", + "yallist": "^3.0.2" + } + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "wide-align": { + "version": "1.1.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "string-width": "^1.0.2 || 2" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "yallist": { + "version": "3.0.3", + "bundled": true, + "dev": true + } + } + }, + "fstream": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz", + "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "inherits": "~2.0.0", + "mkdirp": ">=0.5 0", + "rimraf": "2" + } + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "function.prototype.name": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.0.tgz", + "integrity": "sha512-Bs0VRrTz4ghD8pTmbJQD1mZ8A/mN0ur/jGz+A6FBxPDUPkm1tNfF6bhTYPA7i7aF4lZJVr+OXTNNrnnIl58Wfg==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "is-callable": "^1.1.3" + } + }, + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "dev": true + }, + "gauge": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", + "dev": true, + "requires": { + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" + } + }, + "gaze": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/gaze/-/gaze-1.1.3.tgz", + "integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==", + "dev": true, + "requires": { + "globule": "^1.0.0" + } + }, + "get-caller-file": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", + "dev": true + }, + "get-func-name": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", + "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", + "dev": true + }, + "get-stdin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", + "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", + "dev": true + }, + "get-stream": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", + "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", + "dev": true, + "requires": { + "pump": "^3.0.0" + }, + "dependencies": { + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + } + } + }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "dev": true + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0" + } + }, + "github-from-package": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", + "integrity": "sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=", + "dev": true, + "optional": true + }, + "glob": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "dev": true, + "requires": { + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" + } + }, + "global-modules": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz", + "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", + "dev": true, + "requires": { + "global-prefix": "^1.0.1", + "is-windows": "^1.0.1", + "resolve-dir": "^1.0.0" + } + }, + "global-prefix": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz", + "integrity": "sha1-2/dDxsFJklk8ZVVoy2btMsASLr4=", + "dev": true, + "requires": { + "expand-tilde": "^2.0.2", + "homedir-polyfill": "^1.0.1", + "ini": "^1.3.4", + "is-windows": "^1.0.1", + "which": "^1.2.14" + } + }, + "globals": { + "version": "11.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.11.0.tgz", + "integrity": "sha512-WHq43gS+6ufNOEqlrDBxVEbb8ntfXrfAUU2ZOpCxrBdGKW3gyv8mCxAfIBD0DroPKGrJ2eSsXsLtY9MPntsyTw==", + "dev": true + }, + "globule": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/globule/-/globule-1.2.1.tgz", + "integrity": "sha512-g7QtgWF4uYSL5/dn71WxubOrS7JVGCnFPEnoeChJmBnyR9Mw8nGoEwOgJL/RC2Te0WhbsEUCejfH8SZNJ+adYQ==", + "dev": true, + "requires": { + "glob": "~7.1.1", + "lodash": "~4.17.10", + "minimatch": "~3.0.2" + } + }, + "graceful-fs": { + "version": "4.1.15", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", + "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", + "dev": true + }, + "growly": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", + "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", + "dev": true + }, + "grunt-babel": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/grunt-babel/-/grunt-babel-8.0.0.tgz", + "integrity": "sha512-WuiZFvGzcyzlEoPIcY1snI234ydDWeWWV5bpnB7PZsOLHcDsxWKnrR1rMWEUsbdVPPjvIirwFNsuo4CbJmsdFQ==", + "dev": true + }, + "grunt-cli": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/grunt-cli/-/grunt-cli-1.3.2.tgz", + "integrity": "sha512-8OHDiZZkcptxVXtMfDxJvmN7MVJNE8L/yIcPb4HB7TlyFD1kDvjHrb62uhySsU14wJx9ORMnTuhRMQ40lH/orQ==", + "dev": true, + "requires": { + "grunt-known-options": "~1.1.0", + "interpret": "~1.1.0", + "liftoff": "~2.5.0", + "nopt": "~4.0.1", + "v8flags": "~3.1.1" + } + }, + "grunt-contrib-clean": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/grunt-contrib-clean/-/grunt-contrib-clean-2.0.0.tgz", + "integrity": "sha512-g5ZD3ORk6gMa5ugZosLDQl3dZO7cI3R14U75hTM+dVLVxdMNJCPVmwf9OUt4v4eWgpKKWWoVK9DZc1amJp4nQw==", + "dev": true, + "requires": { + "async": "^2.6.1", + "rimraf": "^2.6.2" + } + }, + "grunt-contrib-compress": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/grunt-contrib-compress/-/grunt-contrib-compress-1.4.3.tgz", + "integrity": "sha1-Ac7/ucY39S5wgfRjdQmD0KOw+nM=", + "dev": true, + "requires": { + "archiver": "^1.3.0", + "chalk": "^1.1.1", + "iltorb": "^1.0.13", + "lodash": "^4.7.0", + "pretty-bytes": "^4.0.2", + "stream-buffers": "^2.1.0" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "dependencies": { + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "grunt-contrib-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/grunt-contrib-concat/-/grunt-contrib-concat-1.0.1.tgz", + "integrity": "sha1-YVCYYwhOhx1+ht5IwBUlntl3Rb0=", + "dev": true, + "requires": { + "chalk": "^1.0.0", + "source-map": "^0.5.3" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "dependencies": { + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "grunt-contrib-copy": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/grunt-contrib-copy/-/grunt-contrib-copy-1.0.0.tgz", + "integrity": "sha1-cGDGWB6QS4qw0A8HbgqPbj58NXM=", + "dev": true, + "requires": { + "chalk": "^1.1.1", + "file-sync-cmp": "^0.1.0" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "dependencies": { + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "grunt-contrib-sass": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/grunt-contrib-sass/-/grunt-contrib-sass-1.0.0.tgz", + "integrity": "sha1-gGg4JRy8DhqU1k1RXN00z2dNcBs=", + "dev": true, + "requires": { + "async": "^0.9.0", + "chalk": "^1.0.0", + "cross-spawn": "^0.2.3", + "dargs": "^4.0.0", + "which": "^1.0.5" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "async": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", + "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + }, + "dependencies": { + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + } + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "grunt-contrib-uglify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/grunt-contrib-uglify/-/grunt-contrib-uglify-4.0.1.tgz", + "integrity": "sha512-dwf8/+4uW1+7pH72WButOEnzErPGmtUvc8p08B0eQS/6ON0WdeQu0+WFeafaPTbbY1GqtS25lsHWaDeiTQNWPg==", + "dev": true, + "requires": { + "chalk": "^2.4.1", + "maxmin": "^2.1.0", + "uglify-js": "^3.5.0", + "uri-path": "^1.0.0" + } + }, + "grunt-contrib-watch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/grunt-contrib-watch/-/grunt-contrib-watch-1.1.0.tgz", + "integrity": "sha512-yGweN+0DW5yM+oo58fRu/XIRrPcn3r4tQx+nL7eMRwjpvk+rQY6R8o94BPK0i2UhTg9FN21hS+m8vR8v9vXfeg==", + "dev": true, + "requires": { + "async": "^2.6.0", + "gaze": "^1.1.0", + "lodash": "^4.17.10", + "tiny-lr": "^1.1.1" + } + }, + "grunt-git": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/grunt-git/-/grunt-git-1.0.14.tgz", + "integrity": "sha512-cjavNWMysd7qnNMfGArtSdRRbtCUkvDoY/IM0MRcQJCGEEr7B/Onbz53ke7uM/EZroXEOMWtdc647m8TnevoaQ==", + "requires": { + "flopmang": "^1.0.0" + } + }, + "grunt-known-options": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/grunt-known-options/-/grunt-known-options-1.1.1.tgz", + "integrity": "sha512-cHwsLqoighpu7TuYj5RonnEuxGVFnztcUqTqp5rXFGYL4OuPFofwC4Ycg7n9fYwvK6F5WbYgeVOwph9Crs2fsQ==", + "dev": true + }, + "grunt-sass": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/grunt-sass/-/grunt-sass-3.0.2.tgz", + "integrity": "sha512-Ogq4cWqBre71gZIkgxIxevgzZHSIIsrKu/5yvPDl4Mvib0A4TRTJEQUdpQ0YV1iai0DPjayz02vDJE6KUVHQ2w==", + "dev": true + }, + "grunt-ts": { + "version": "6.0.0-beta.22", + "resolved": "https://registry.npmjs.org/grunt-ts/-/grunt-ts-6.0.0-beta.22.tgz", + "integrity": "sha512-g9e+ZImQ7W38dfpwhp0+GUltXWidy3YGPfIA/IyGL5HMv6wmVmMMoSgscI5swhs2HSPf8yAvXAAJbwrouijoRg==", + "dev": true, + "requires": { + "chokidar": "^2.0.4", + "csproj2ts": "^1.1.0", + "detect-indent": "^4.0.0", + "detect-newline": "^2.1.0", + "es6-promise": "~0.1.1", + "jsmin2": "^1.2.1", + "lodash": "~4.17.10", + "ncp": "0.5.1", + "rimraf": "2.2.6", + "semver": "^5.3.0", + "strip-bom": "^2.0.0" + }, + "dependencies": { + "rimraf": { + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.2.6.tgz", + "integrity": "sha1-xZWXVpsU2VatKcrMQr3d9fDqT0w=", + "dev": true + }, + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "dev": true, + "requires": { + "is-utf8": "^0.2.0" + } + } + } + }, + "grunt-webpack": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/grunt-webpack/-/grunt-webpack-3.1.3.tgz", + "integrity": "sha512-SaZ8K8lG4iTxs7ClZxOWCf3kxqS2y+Eel8SbaEGgBKwhAp6e45beIu+vhBZRLX3vonKML2kjemKsQ21REaqNFQ==", + "dev": true, + "requires": { + "deep-for-each": "^2.0.2", + "lodash": "^4.7.0" + } + }, + "gzip-size": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-3.0.0.tgz", + "integrity": "sha1-VGGI6b3DN/Zzdy+BZgRks4nc5SA=", + "dev": true, + "requires": { + "duplexer": "^0.1.1" + } + }, + "handlebars": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.1.1.tgz", + "integrity": "sha512-3Zhi6C0euYZL5sM0Zcy7lInLXKQ+YLcF/olbN010mzGQ4XVm50JeyBnMqofHh696GrciGruC7kCcApPDJvVgwA==", + "dev": true, + "requires": { + "neo-async": "^2.6.0", + "optimist": "^0.6.1", + "source-map": "^0.6.1", + "uglify-js": "^3.1.4" + } + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "dev": true + }, + "har-validator": { + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", + "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", + "dev": true, + "requires": { + "ajv": "^6.5.5", + "har-schema": "^2.0.0" + } + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "has-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", + "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=" + }, + "has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", + "dev": true + }, + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "dev": true, + "requires": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + } + }, + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "dependencies": { + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "hash-base": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", + "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "hash.js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + } + }, + "hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", + "dev": true, + "requires": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "home-or-tmp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", + "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", + "dev": true, + "requires": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.1" + } + }, + "homedir-polyfill": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", + "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", + "dev": true, + "requires": { + "parse-passwd": "^1.0.0" + } + }, + "hosted-git-info": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz", + "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==", + "dev": true + }, + "html-element-map": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/html-element-map/-/html-element-map-1.0.0.tgz", + "integrity": "sha512-/SP6aOiM5Ai9zALvCxDubIeez0LvG3qP7R9GcRDnJEP/HBmv0A8A9K0o8+HFudcFt46+i921ANjzKsjPjb7Enw==", + "dev": true, + "requires": { + "array-filter": "^1.0.0" + } + }, + "html-encoding-sniffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz", + "integrity": "sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw==", + "dev": true, + "requires": { + "whatwg-encoding": "^1.0.1" + } + }, + "htmlparser2": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz", + "integrity": "sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==", + "dev": true, + "requires": { + "domelementtype": "^1.3.1", + "domhandler": "^2.3.0", + "domutils": "^1.5.1", + "entities": "^1.1.1", + "inherits": "^2.0.1", + "readable-stream": "^3.1.1" + }, + "dependencies": { + "readable-stream": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.2.0.tgz", + "integrity": "sha512-RV20kLjdmpZuTF1INEb9IA3L68Nmi+Ri7ppZqo78wj//Pn62fCoJyV9zalccNzDD/OuJpMG4f+pfMl8+L6QdGw==", + "dev": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + } + } + }, + "http-errors": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", + "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", + "dev": true, + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.1", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.0" + } + }, + "http-parser-js": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.0.tgz", + "integrity": "sha512-cZdEF7r4gfRIq7ezX9J0T+kQmJNOub71dWbgAXVHDct80TKP4MCETtZQ31xyv38UwgzkWPYF/Xc0ge55dW9Z9w==", + "dev": true + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "https-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", + "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", + "dev": true + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "dev": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "ieee754": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.12.tgz", + "integrity": "sha512-GguP+DRY+pJ3soyIiGPTvdiVXjZ+DbXOxGpXn3eMvNW4x4irjqXm4wHKscC+TfxSJ0yw/S1F24tqdMNsMZTiLA==", + "dev": true + }, + "iferr": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz", + "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=", + "dev": true + }, + "ignore": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", + "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", + "dev": true + }, + "iltorb": { + "version": "1.3.10", + "resolved": "https://registry.npmjs.org/iltorb/-/iltorb-1.3.10.tgz", + "integrity": "sha512-nyB4+ru1u8CQqQ6w7YjasboKN3NQTN8GH/V/eEssNRKhW6UbdxdWhB9fJ5EEdjJfezKY0qPrcwLyIcgjL8hHxA==", + "dev": true, + "optional": true, + "requires": { + "detect-libc": "^0.2.0", + "nan": "^2.6.2", + "node-gyp": "^3.6.2", + "prebuild-install": "^2.3.0" + } + }, + "import-fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz", + "integrity": "sha1-2BNVwVYS04bGH53dOSLUMEgipUY=", + "dev": true, + "requires": { + "caller-path": "^2.0.0", + "resolve-from": "^3.0.0" + } + }, + "import-local": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-2.0.0.tgz", + "integrity": "sha512-b6s04m3O+s3CGSbqDIyP4R6aAwAeYlVq9+WUWep6iHa8ETRf9yei1U48C5MmfJmV9AiLYYBKPMq/W+/WRpQmCQ==", + "dev": true, + "requires": { + "pkg-dir": "^3.0.0", + "resolve-cwd": "^2.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true + }, + "in-publish": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/in-publish/-/in-publish-2.0.0.tgz", + "integrity": "sha1-4g/146KvwmkDILbcVSaCqcf631E=", + "dev": true + }, + "indent-string": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", + "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", + "dev": true, + "requires": { + "repeating": "^2.0.0" + } + }, + "indexof": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", + "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "ini": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "dev": true + }, + "inquirer": { + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.4.1.tgz", + "integrity": "sha512-/Jw+qPZx4EDYsaT6uz7F4GJRNFMRdKNeUZw3ZnKV8lyuUgz/YWRCSUAJMZSVhSq4Ec0R2oYnyi6b3d4JXcL5Nw==", + "dev": true, + "requires": { + "ansi-escapes": "^3.2.0", + "chalk": "^2.4.2", + "cli-cursor": "^2.1.0", + "cli-width": "^2.0.0", + "external-editor": "^3.0.3", + "figures": "^2.0.0", + "lodash": "^4.17.11", + "mute-stream": "0.0.7", + "run-async": "^2.2.0", + "rxjs": "^6.4.0", + "string-width": "^2.1.0", + "strip-ansi": "^5.1.0", + "through": "^2.3.6" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "figures": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", + "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5" + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "dependencies": { + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + } + } + } + } + }, + "interpret": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", + "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=", + "dev": true + }, + "invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "dev": true, + "requires": { + "loose-envify": "^1.0.0" + } + }, + "invert-kv": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", + "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", + "dev": true + }, + "ipaddr.js": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.0.tgz", + "integrity": "sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA==", + "dev": true + }, + "is-absolute": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz", + "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", + "dev": true, + "requires": { + "is-relative": "^1.0.0", + "is-windows": "^1.0.1" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", + "dev": true, + "requires": { + "binary-extensions": "^1.0.0" + } + }, + "is-boolean-object": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.0.0.tgz", + "integrity": "sha1-mPiygDBoQhmpXzdc+9iM40Bd/5M=", + "dev": true + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "is-callable": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", + "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==" + }, + "is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dev": true, + "requires": { + "ci-info": "^2.0.0" + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-date-object": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", + "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=" + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "is-directory": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", + "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=", + "dev": true + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-finite": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", + "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "is-generator-fn": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.0.0.tgz", + "integrity": "sha512-elzyIdM7iKoFHzcrndIqjYomImhxrFRnGP3galODoII4TB9gI7mZ+FnlLQmmjf27SxHS2gKEeyhX5/+YRS6H9g==", + "dev": true + }, + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "dev": true, + "requires": { + "is-extglob": "^2.1.0" + } + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-number-object": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.3.tgz", + "integrity": "sha1-8mWrian0RQNO9q/xWo8AsA9VF5k=", + "dev": true + }, + "is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "dev": true + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "is-promise": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", + "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", + "dev": true + }, + "is-regex": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", + "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", + "requires": { + "has": "^1.0.1" + } + }, + "is-relative": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", + "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", + "dev": true, + "requires": { + "is-unc-path": "^1.0.0" + } + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true + }, + "is-string": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.4.tgz", + "integrity": "sha1-zDqbaYV9Yh6WNyWiTK7shzuCbmQ=", + "dev": true + }, + "is-subset": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-subset/-/is-subset-0.1.1.tgz", + "integrity": "sha1-ilkRfZMt4d4A8kX83TnOQ/HpOaY=", + "dev": true + }, + "is-symbol": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", + "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", + "requires": { + "has-symbols": "^1.0.0" + } + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true + }, + "is-unc-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", + "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", + "dev": true, + "requires": { + "unc-path-regex": "^0.1.2" + } + }, + "is-utf8": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", + "dev": true + }, + "is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true + }, + "is-wsl": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", + "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", + "dev": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "dev": true + }, + "istanbul-api": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/istanbul-api/-/istanbul-api-2.1.1.tgz", + "integrity": "sha512-kVmYrehiwyeBAk/wE71tW6emzLiHGjYIiDrc8sfyty4F8M02/lrgXSm+R1kXysmF20zArvmZXjlE/mg24TVPJw==", + "dev": true, + "requires": { + "async": "^2.6.1", + "compare-versions": "^3.2.1", + "fileset": "^2.0.3", + "istanbul-lib-coverage": "^2.0.3", + "istanbul-lib-hook": "^2.0.3", + "istanbul-lib-instrument": "^3.1.0", + "istanbul-lib-report": "^2.0.4", + "istanbul-lib-source-maps": "^3.0.2", + "istanbul-reports": "^2.1.1", + "js-yaml": "^3.12.0", + "make-dir": "^1.3.0", + "minimatch": "^3.0.4", + "once": "^1.4.0" + } + }, + "istanbul-lib-coverage": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz", + "integrity": "sha512-dKWuzRGCs4G+67VfW9pBFFz2Jpi4vSp/k7zBcJ888ofV5Mi1g5CUML5GvMvV6u9Cjybftu+E8Cgp+k0dI1E5lw==", + "dev": true + }, + "istanbul-lib-hook": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-2.0.3.tgz", + "integrity": "sha512-CLmEqwEhuCYtGcpNVJjLV1DQyVnIqavMLFHV/DP+np/g3qvdxu3gsPqYoJMXm15sN84xOlckFB3VNvRbf5yEgA==", + "dev": true, + "requires": { + "append-transform": "^1.0.0" + } + }, + "istanbul-lib-instrument": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-3.1.0.tgz", + "integrity": "sha512-ooVllVGT38HIk8MxDj/OIHXSYvH+1tq/Vb38s8ixt9GoJadXska4WkGY+0wkmtYCZNYtaARniH/DixUGGLZ0uA==", + "dev": true, + "requires": { + "@babel/generator": "^7.0.0", + "@babel/parser": "^7.0.0", + "@babel/template": "^7.0.0", + "@babel/traverse": "^7.0.0", + "@babel/types": "^7.0.0", + "istanbul-lib-coverage": "^2.0.3", + "semver": "^5.5.0" + } + }, + "istanbul-lib-report": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-2.0.4.tgz", + "integrity": "sha512-sOiLZLAWpA0+3b5w5/dq0cjm2rrNdAfHWaGhmn7XEFW6X++IV9Ohn+pnELAl9K3rfpaeBfbmH9JU5sejacdLeA==", + "dev": true, + "requires": { + "istanbul-lib-coverage": "^2.0.3", + "make-dir": "^1.3.0", + "supports-color": "^6.0.0" + } + }, + "istanbul-lib-source-maps": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-3.0.2.tgz", + "integrity": "sha512-JX4v0CiKTGp9fZPmoxpu9YEkPbEqCqBbO3403VabKjH+NRXo72HafD5UgnjTEqHL2SAjaZK1XDuDOkn6I5QVfQ==", + "dev": true, + "requires": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^2.0.3", + "make-dir": "^1.3.0", + "rimraf": "^2.6.2", + "source-map": "^0.6.1" + } + }, + "istanbul-reports": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-2.1.1.tgz", + "integrity": "sha512-FzNahnidyEPBCI0HcufJoSEoKykesRlFcSzQqjH9x0+LC8tnnE/p/90PBLu8iZTxr8yYZNyTtiAujUqyN+CIxw==", + "dev": true, + "requires": { + "handlebars": "^4.1.0" + } + }, + "jest": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-24.8.0.tgz", + "integrity": "sha512-o0HM90RKFRNWmAWvlyV8i5jGZ97pFwkeVoGvPW1EtLTgJc2+jcuqcbbqcSZLE/3f2S5pt0y2ZBETuhpWNl1Reg==", + "dev": true, + "requires": { + "import-local": "^2.0.0", + "jest-cli": "^24.8.0" + }, + "dependencies": { + "@jest/console": { + "version": "24.7.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-24.7.1.tgz", + "integrity": "sha512-iNhtIy2M8bXlAOULWVTUxmnelTLFneTNEkHCgPmgd+zNwy9zVddJ6oS5rZ9iwoscNdT5mMwUd0C51v/fSlzItg==", + "dev": true, + "requires": { + "@jest/source-map": "^24.3.0", + "chalk": "^2.0.1", + "slash": "^2.0.0" + } + }, + "@jest/core": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-24.8.0.tgz", + "integrity": "sha512-R9rhAJwCBQzaRnrRgAdVfnglUuATXdwTRsYqs6NMdVcAl5euG8LtWDe+fVkN27YfKVBW61IojVsXKaOmSnqd/A==", + "dev": true, + "requires": { + "@jest/console": "^24.7.1", + "@jest/reporters": "^24.8.0", + "@jest/test-result": "^24.8.0", + "@jest/transform": "^24.8.0", + "@jest/types": "^24.8.0", + "ansi-escapes": "^3.0.0", + "chalk": "^2.0.1", + "exit": "^0.1.2", + "graceful-fs": "^4.1.15", + "jest-changed-files": "^24.8.0", + "jest-config": "^24.8.0", + "jest-haste-map": "^24.8.0", + "jest-message-util": "^24.8.0", + "jest-regex-util": "^24.3.0", + "jest-resolve-dependencies": "^24.8.0", + "jest-runner": "^24.8.0", + "jest-runtime": "^24.8.0", + "jest-snapshot": "^24.8.0", + "jest-util": "^24.8.0", + "jest-validate": "^24.8.0", + "jest-watcher": "^24.8.0", + "micromatch": "^3.1.10", + "p-each-series": "^1.0.0", + "pirates": "^4.0.1", + "realpath-native": "^1.1.0", + "rimraf": "^2.5.4", + "strip-ansi": "^5.0.0" + } + }, + "@jest/environment": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-24.8.0.tgz", + "integrity": "sha512-vlGt2HLg7qM+vtBrSkjDxk9K0YtRBi7HfRFaDxoRtyi+DyVChzhF20duvpdAnKVBV6W5tym8jm0U9EfXbDk1tw==", + "dev": true, + "requires": { + "@jest/fake-timers": "^24.8.0", + "@jest/transform": "^24.8.0", + "@jest/types": "^24.8.0", + "jest-mock": "^24.8.0" + } + }, + "@jest/fake-timers": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-24.8.0.tgz", + "integrity": "sha512-2M4d5MufVXwi6VzZhJ9f5S/wU4ud2ck0kxPof1Iz3zWx6Y+V2eJrES9jEktB6O3o/oEyk+il/uNu9PvASjWXQw==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0", + "jest-message-util": "^24.8.0", + "jest-mock": "^24.8.0" + } + }, + "@jest/reporters": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-24.8.0.tgz", + "integrity": "sha512-eZ9TyUYpyIIXfYCrw0UHUWUvE35vx5I92HGMgS93Pv7du+GHIzl+/vh8Qj9MCWFK/4TqyttVBPakWMOfZRIfxw==", + "dev": true, + "requires": { + "@jest/environment": "^24.8.0", + "@jest/test-result": "^24.8.0", + "@jest/transform": "^24.8.0", + "@jest/types": "^24.8.0", + "chalk": "^2.0.1", + "exit": "^0.1.2", + "glob": "^7.1.2", + "istanbul-lib-coverage": "^2.0.2", + "istanbul-lib-instrument": "^3.0.1", + "istanbul-lib-report": "^2.0.4", + "istanbul-lib-source-maps": "^3.0.1", + "istanbul-reports": "^2.1.1", + "jest-haste-map": "^24.8.0", + "jest-resolve": "^24.8.0", + "jest-runtime": "^24.8.0", + "jest-util": "^24.8.0", + "jest-worker": "^24.6.0", + "node-notifier": "^5.2.1", + "slash": "^2.0.0", + "source-map": "^0.6.0", + "string-length": "^2.0.0" + } + }, + "@jest/test-result": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-24.8.0.tgz", + "integrity": "sha512-+YdLlxwizlfqkFDh7Mc7ONPQAhA4YylU1s529vVM1rsf67vGZH/2GGm5uO8QzPeVyaVMobCQ7FTxl38QrKRlng==", + "dev": true, + "requires": { + "@jest/console": "^24.7.1", + "@jest/types": "^24.8.0", + "@types/istanbul-lib-coverage": "^2.0.0" + } + }, + "@jest/transform": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-24.8.0.tgz", + "integrity": "sha512-xBMfFUP7TortCs0O+Xtez2W7Zu1PLH9bvJgtraN1CDST6LBM/eTOZ9SfwS/lvV8yOfcDpFmwf9bq5cYbXvqsvA==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/types": "^24.8.0", + "babel-plugin-istanbul": "^5.1.0", + "chalk": "^2.0.1", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.1.15", + "jest-haste-map": "^24.8.0", + "jest-regex-util": "^24.3.0", + "jest-util": "^24.8.0", + "micromatch": "^3.1.10", + "realpath-native": "^1.1.0", + "slash": "^2.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "2.4.1" + } + }, + "@jest/types": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.8.0.tgz", + "integrity": "sha512-g17UxVr2YfBtaMUxn9u/4+siG1ptg9IGYAYwvpwn61nBg779RXnjE/m7CxYcIzEt0AbHZZAHSEZNhkE2WxURVg==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^1.1.1", + "@types/yargs": "^12.0.9" + } + }, + "@types/istanbul-lib-coverage": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz", + "integrity": "sha512-hRJD2ahnnpLgsj6KWMYSrmXkM3rm2Dl1qkx6IOFD5FnuNPXJIG5L0dhgKXCYTRMGzU4n0wImQ/xfmRc4POUFlg==", + "dev": true + }, + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "babel-jest": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-24.8.0.tgz", + "integrity": "sha512-+5/kaZt4I9efoXzPlZASyK/lN9qdRKmmUav9smVc0ruPQD7IsfucQ87gpOE8mn2jbDuS6M/YOW6n3v9ZoIfgnw==", + "dev": true, + "requires": { + "@jest/transform": "^24.8.0", + "@jest/types": "^24.8.0", + "@types/babel__core": "^7.1.0", + "babel-plugin-istanbul": "^5.1.0", + "babel-preset-jest": "^24.6.0", + "chalk": "^2.4.2", + "slash": "^2.0.0" + } + }, + "babel-plugin-jest-hoist": { + "version": "24.6.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-24.6.0.tgz", + "integrity": "sha512-3pKNH6hMt9SbOv0F3WVmy5CWQ4uogS3k0GY5XLyQHJ9EGpAT9XWkFd2ZiXXtkwFHdAHa5j7w7kfxSP5lAIwu7w==", + "dev": true, + "requires": { + "@types/babel__traverse": "^7.0.6" + } + }, + "babel-preset-jest": { + "version": "24.6.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-24.6.0.tgz", + "integrity": "sha512-pdZqLEdmy1ZK5kyRUfvBb2IfTPb2BUvIJczlPspS8fWmBQslNNDBqVfh7BW5leOVJMDZKzjD8XEyABTk6gQ5yw==", + "dev": true, + "requires": { + "@babel/plugin-syntax-object-rest-spread": "^7.0.0", + "babel-plugin-jest-hoist": "^24.6.0" + } + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "expect": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-24.8.0.tgz", + "integrity": "sha512-/zYvP8iMDrzaaxHVa724eJBCKqSHmO0FA7EDkBiRHxg6OipmMn1fN+C8T9L9K8yr7UONkOifu6+LLH+z76CnaA==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0", + "ansi-styles": "^3.2.0", + "jest-get-type": "^24.8.0", + "jest-matcher-utils": "^24.8.0", + "jest-message-util": "^24.8.0", + "jest-regex-util": "^24.3.0" + } + }, + "jest-changed-files": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-24.8.0.tgz", + "integrity": "sha512-qgANC1Yrivsq+UrLXsvJefBKVoCsKB0Hv+mBb6NMjjZ90wwxCDmU3hsCXBya30cH+LnPYjwgcU65i6yJ5Nfuug==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0", + "execa": "^1.0.0", + "throat": "^4.0.0" + } + }, + "jest-cli": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-24.8.0.tgz", + "integrity": "sha512-+p6J00jSMPQ116ZLlHJJvdf8wbjNbZdeSX9ptfHX06/MSNaXmKihQzx5vQcw0q2G6JsdVkUIdWbOWtSnaYs3yA==", + "dev": true, + "requires": { + "@jest/core": "^24.8.0", + "@jest/test-result": "^24.8.0", + "@jest/types": "^24.8.0", + "chalk": "^2.0.1", + "exit": "^0.1.2", + "import-local": "^2.0.0", + "is-ci": "^2.0.0", + "jest-config": "^24.8.0", + "jest-util": "^24.8.0", + "jest-validate": "^24.8.0", + "prompts": "^2.0.1", + "realpath-native": "^1.1.0", + "yargs": "^12.0.2" + } + }, + "jest-config": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-24.8.0.tgz", + "integrity": "sha512-Czl3Nn2uEzVGsOeaewGWoDPD8GStxCpAe0zOYs2x2l0fZAgPbCr3uwUkgNKV3LwE13VXythM946cd5rdGkkBZw==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/test-sequencer": "^24.8.0", + "@jest/types": "^24.8.0", + "babel-jest": "^24.8.0", + "chalk": "^2.0.1", + "glob": "^7.1.1", + "jest-environment-jsdom": "^24.8.0", + "jest-environment-node": "^24.8.0", + "jest-get-type": "^24.8.0", + "jest-jasmine2": "^24.8.0", + "jest-regex-util": "^24.3.0", + "jest-resolve": "^24.8.0", + "jest-util": "^24.8.0", + "jest-validate": "^24.8.0", + "micromatch": "^3.1.10", + "pretty-format": "^24.8.0", + "realpath-native": "^1.1.0" + } + }, + "jest-diff": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-24.8.0.tgz", + "integrity": "sha512-wxetCEl49zUpJ/bvUmIFjd/o52J+yWcoc5ZyPq4/W1LUKGEhRYDIbP1KcF6t+PvqNrGAFk4/JhtxDq/Nnzs66g==", + "dev": true, + "requires": { + "chalk": "^2.0.1", + "diff-sequences": "^24.3.0", + "jest-get-type": "^24.8.0", + "pretty-format": "^24.8.0" + } + }, + "jest-each": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-24.8.0.tgz", + "integrity": "sha512-NrwK9gaL5+XgrgoCsd9svsoWdVkK4gnvyhcpzd6m487tXHqIdYeykgq3MKI1u4I+5Zf0tofr70at9dWJDeb+BA==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0", + "chalk": "^2.0.1", + "jest-get-type": "^24.8.0", + "jest-util": "^24.8.0", + "pretty-format": "^24.8.0" + } + }, + "jest-environment-jsdom": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-24.8.0.tgz", + "integrity": "sha512-qbvgLmR7PpwjoFjM/sbuqHJt/NCkviuq9vus9NBn/76hhSidO+Z6Bn9tU8friecegbJL8gzZQEMZBQlFWDCwAQ==", + "dev": true, + "requires": { + "@jest/environment": "^24.8.0", + "@jest/fake-timers": "^24.8.0", + "@jest/types": "^24.8.0", + "jest-mock": "^24.8.0", + "jest-util": "^24.8.0", + "jsdom": "^11.5.1" + } + }, + "jest-environment-node": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-24.8.0.tgz", + "integrity": "sha512-vIGUEScd1cdDgR6sqn2M08sJTRLQp6Dk/eIkCeO4PFHxZMOgy+uYLPMC4ix3PEfM5Au/x3uQ/5Tl0DpXXZsJ/Q==", + "dev": true, + "requires": { + "@jest/environment": "^24.8.0", + "@jest/fake-timers": "^24.8.0", + "@jest/types": "^24.8.0", + "jest-mock": "^24.8.0", + "jest-util": "^24.8.0" + } + }, + "jest-get-type": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-24.8.0.tgz", + "integrity": "sha512-RR4fo8jEmMD9zSz2nLbs2j0zvPpk/KCEz3a62jJWbd2ayNo0cb+KFRxPHVhE4ZmgGJEQp0fosmNz84IfqM8cMQ==", + "dev": true + }, + "jest-jasmine2": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-24.8.0.tgz", + "integrity": "sha512-cEky88npEE5LKd5jPpTdDCLvKkdyklnaRycBXL6GNmpxe41F0WN44+i7lpQKa/hcbXaQ+rc9RMaM4dsebrYong==", + "dev": true, + "requires": { + "@babel/traverse": "^7.1.0", + "@jest/environment": "^24.8.0", + "@jest/test-result": "^24.8.0", + "@jest/types": "^24.8.0", + "chalk": "^2.0.1", + "co": "^4.6.0", + "expect": "^24.8.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^24.8.0", + "jest-matcher-utils": "^24.8.0", + "jest-message-util": "^24.8.0", + "jest-runtime": "^24.8.0", + "jest-snapshot": "^24.8.0", + "jest-util": "^24.8.0", + "pretty-format": "^24.8.0", + "throat": "^4.0.0" + } + }, + "jest-leak-detector": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-24.8.0.tgz", + "integrity": "sha512-cG0yRSK8A831LN8lIHxI3AblB40uhv0z+SsQdW3GoMMVcK+sJwrIIyax5tu3eHHNJ8Fu6IMDpnLda2jhn2pD/g==", + "dev": true, + "requires": { + "pretty-format": "^24.8.0" + } + }, + "jest-matcher-utils": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-24.8.0.tgz", + "integrity": "sha512-lex1yASY51FvUuHgm0GOVj7DCYEouWSlIYmCW7APSqB9v8mXmKSn5+sWVF0MhuASG0bnYY106/49JU1FZNl5hw==", + "dev": true, + "requires": { + "chalk": "^2.0.1", + "jest-diff": "^24.8.0", + "jest-get-type": "^24.8.0", + "pretty-format": "^24.8.0" + } + }, + "jest-message-util": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-24.8.0.tgz", + "integrity": "sha512-p2k71rf/b6ns8btdB0uVdljWo9h0ovpnEe05ZKWceQGfXYr4KkzgKo3PBi8wdnd9OtNh46VpNIJynUn/3MKm1g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@jest/test-result": "^24.8.0", + "@jest/types": "^24.8.0", + "@types/stack-utils": "^1.0.1", + "chalk": "^2.0.1", + "micromatch": "^3.1.10", + "slash": "^2.0.0", + "stack-utils": "^1.0.1" + } + }, + "jest-mock": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-24.8.0.tgz", + "integrity": "sha512-6kWugwjGjJw+ZkK4mDa0Df3sDlUTsV47MSrT0nGQ0RBWJbpODDQ8MHDVtGtUYBne3IwZUhtB7elxHspU79WH3A==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0" + } + }, + "jest-resolve-dependencies": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-24.8.0.tgz", + "integrity": "sha512-hyK1qfIf/krV+fSNyhyJeq3elVMhK9Eijlwy+j5jqmZ9QsxwKBiP6qukQxaHtK8k6zql/KYWwCTQ+fDGTIJauw==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0", + "jest-regex-util": "^24.3.0", + "jest-snapshot": "^24.8.0" + } + }, + "jest-runner": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-24.8.0.tgz", + "integrity": "sha512-utFqC5BaA3JmznbissSs95X1ZF+d+4WuOWwpM9+Ak356YtMhHE/GXUondZdcyAAOTBEsRGAgH/0TwLzfI9h7ow==", + "dev": true, + "requires": { + "@jest/console": "^24.7.1", + "@jest/environment": "^24.8.0", + "@jest/test-result": "^24.8.0", + "@jest/types": "^24.8.0", + "chalk": "^2.4.2", + "exit": "^0.1.2", + "graceful-fs": "^4.1.15", + "jest-config": "^24.8.0", + "jest-docblock": "^24.3.0", + "jest-haste-map": "^24.8.0", + "jest-jasmine2": "^24.8.0", + "jest-leak-detector": "^24.8.0", + "jest-message-util": "^24.8.0", + "jest-resolve": "^24.8.0", + "jest-runtime": "^24.8.0", + "jest-util": "^24.8.0", + "jest-worker": "^24.6.0", + "source-map-support": "^0.5.6", + "throat": "^4.0.0" + } + }, + "jest-runtime": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-24.8.0.tgz", + "integrity": "sha512-Mq0aIXhvO/3bX44ccT+czU1/57IgOMyy80oM0XR/nyD5zgBcesF84BPabZi39pJVA6UXw+fY2Q1N+4BiVUBWOA==", + "dev": true, + "requires": { + "@jest/console": "^24.7.1", + "@jest/environment": "^24.8.0", + "@jest/source-map": "^24.3.0", + "@jest/transform": "^24.8.0", + "@jest/types": "^24.8.0", + "@types/yargs": "^12.0.2", + "chalk": "^2.0.1", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.1.15", + "jest-config": "^24.8.0", + "jest-haste-map": "^24.8.0", + "jest-message-util": "^24.8.0", + "jest-mock": "^24.8.0", + "jest-regex-util": "^24.3.0", + "jest-resolve": "^24.8.0", + "jest-snapshot": "^24.8.0", + "jest-util": "^24.8.0", + "jest-validate": "^24.8.0", + "realpath-native": "^1.1.0", + "slash": "^2.0.0", + "strip-bom": "^3.0.0", + "yargs": "^12.0.2" + } + }, + "jest-snapshot": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-24.8.0.tgz", + "integrity": "sha512-5ehtWoc8oU9/cAPe6fez6QofVJLBKyqkY2+TlKTOf0VllBB/mqUNdARdcjlZrs9F1Cv+/HKoCS/BknT0+tmfPg==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0", + "@jest/types": "^24.8.0", + "chalk": "^2.0.1", + "expect": "^24.8.0", + "jest-diff": "^24.8.0", + "jest-matcher-utils": "^24.8.0", + "jest-message-util": "^24.8.0", + "jest-resolve": "^24.8.0", + "mkdirp": "^0.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^24.8.0", + "semver": "^5.5.0" + } + }, + "jest-util": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-24.8.0.tgz", + "integrity": "sha512-DYZeE+XyAnbNt0BG1OQqKy/4GVLPtzwGx5tsnDrFcax36rVE3lTA5fbvgmbVPUZf9w77AJ8otqR4VBbfFJkUZA==", + "dev": true, + "requires": { + "@jest/console": "^24.7.1", + "@jest/fake-timers": "^24.8.0", + "@jest/source-map": "^24.3.0", + "@jest/test-result": "^24.8.0", + "@jest/types": "^24.8.0", + "callsites": "^3.0.0", + "chalk": "^2.0.1", + "graceful-fs": "^4.1.15", + "is-ci": "^2.0.0", + "mkdirp": "^0.5.1", + "slash": "^2.0.0", + "source-map": "^0.6.0" + } + }, + "jest-validate": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-24.8.0.tgz", + "integrity": "sha512-+/N7VOEMW1Vzsrk3UWBDYTExTPwf68tavEPKDnJzrC6UlHtUDU/fuEdXqFoHzv9XnQ+zW6X3qMZhJ3YexfeLDA==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0", + "camelcase": "^5.0.0", + "chalk": "^2.0.1", + "jest-get-type": "^24.8.0", + "leven": "^2.1.0", + "pretty-format": "^24.8.0" + } + }, + "jest-watcher": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-24.8.0.tgz", + "integrity": "sha512-SBjwHt5NedQoVu54M5GEx7cl7IGEFFznvd/HNT8ier7cCAx/Qgu9ZMlaTQkvK22G1YOpcWBLQPFSImmxdn3DAw==", + "dev": true, + "requires": { + "@jest/test-result": "^24.8.0", + "@jest/types": "^24.8.0", + "@types/yargs": "^12.0.9", + "ansi-escapes": "^3.0.0", + "chalk": "^2.0.1", + "jest-util": "^24.8.0", + "string-length": "^2.0.0" + } + }, + "jest-worker": { + "version": "24.6.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-24.6.0.tgz", + "integrity": "sha512-jDwgW5W9qGNvpI1tNnvajh0a5IE/PuGLFmHk6aR/BZFz8tSgGw17GsDPXAJ6p91IvYDjOw8GpFbvvZGAK+DPQQ==", + "dev": true, + "requires": { + "merge-stream": "^1.0.1", + "supports-color": "^6.1.0" + } + }, + "jsdom": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-11.12.0.tgz", + "integrity": "sha512-y8Px43oyiBM13Zc1z780FrfNLJCXTL40EWlty/LXUtcjykRBNgLlCjWXpfSPBl2iv+N7koQN+dvqszHZgT/Fjw==", + "dev": true, + "requires": { + "abab": "^2.0.0", + "acorn": "^5.5.3", + "acorn-globals": "^4.1.0", + "array-equal": "^1.0.0", + "cssom": ">= 0.3.2 < 0.4.0", + "cssstyle": "^1.0.0", + "data-urls": "^1.0.0", + "domexception": "^1.0.1", + "escodegen": "^1.9.1", + "html-encoding-sniffer": "^1.0.2", + "left-pad": "^1.3.0", + "nwsapi": "^2.0.7", + "parse5": "4.0.0", + "pn": "^1.1.0", + "request": "^2.87.0", + "request-promise-native": "^1.0.5", + "sax": "^1.2.4", + "symbol-tree": "^3.2.2", + "tough-cookie": "^2.3.4", + "w3c-hr-time": "^1.0.1", + "webidl-conversions": "^4.0.2", + "whatwg-encoding": "^1.0.3", + "whatwg-mimetype": "^2.1.0", + "whatwg-url": "^6.4.1", + "ws": "^5.2.0", + "xml-name-validator": "^3.0.0" + } + }, + "parse5": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-4.0.0.tgz", + "integrity": "sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA==", + "dev": true + }, + "pretty-format": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-24.8.0.tgz", + "integrity": "sha512-P952T7dkrDEplsR+TuY7q3VXDae5Sr7zmQb12JU/NDQa/3CH7/QW0yvqLcGN6jL+zQFKaoJcPc+yJxMTGmosqw==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0", + "ansi-regex": "^4.0.0", + "ansi-styles": "^3.2.0", + "react-is": "^16.8.4" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + }, + "ws": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.2.tgz", + "integrity": "sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA==", + "dev": true, + "requires": { + "async-limiter": "~1.0.0" + } + } + } + }, + "jest-changed-files": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-24.5.0.tgz", + "integrity": "sha512-Ikl29dosYnTsH9pYa1Tv9POkILBhN/TLZ37xbzgNsZ1D2+2n+8oEZS2yP1BrHn/T4Rs4Ggwwbp/x8CKOS5YJOg==", + "dev": true, + "requires": { + "@jest/types": "^24.5.0", + "execa": "^1.0.0", + "throat": "^4.0.0" + } + }, + "jest-cli": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-24.5.0.tgz", + "integrity": "sha512-P+Jp0SLO4KWN0cGlNtC7JV0dW1eSFR7eRpoOucP2UM0sqlzp/bVHeo71Omonvigrj9AvCKy7NtQANtqJ7FXz8g==", + "dev": true, + "requires": { + "@jest/core": "^24.5.0", + "@jest/test-result": "^24.5.0", + "@jest/types": "^24.5.0", + "chalk": "^2.0.1", + "exit": "^0.1.2", + "import-local": "^2.0.0", + "is-ci": "^2.0.0", + "jest-config": "^24.5.0", + "jest-util": "^24.5.0", + "jest-validate": "^24.5.0", + "prompts": "^2.0.1", + "realpath-native": "^1.1.0", + "yargs": "^12.0.2" + } + }, + "jest-config": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-24.5.0.tgz", + "integrity": "sha512-t2UTh0Z2uZhGBNVseF8wA2DS2SuBiLOL6qpLq18+OZGfFUxTM7BzUVKyHFN/vuN+s/aslY1COW95j1Rw81huOQ==", + "dev": true, + "requires": { + "@babel/core": "^7.1.0", + "@jest/types": "^24.5.0", + "babel-jest": "^24.5.0", + "chalk": "^2.0.1", + "glob": "^7.1.1", + "jest-environment-jsdom": "^24.5.0", + "jest-environment-node": "^24.5.0", + "jest-get-type": "^24.3.0", + "jest-jasmine2": "^24.5.0", + "jest-regex-util": "^24.3.0", + "jest-resolve": "^24.5.0", + "jest-util": "^24.5.0", + "jest-validate": "^24.5.0", + "micromatch": "^3.1.10", + "pretty-format": "^24.5.0", + "realpath-native": "^1.1.0" + } + }, + "jest-diff": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-24.5.0.tgz", + "integrity": "sha512-mCILZd9r7zqL9Uh6yNoXjwGQx0/J43OD2vvWVKwOEOLZliQOsojXwqboubAQ+Tszrb6DHGmNU7m4whGeB9YOqw==", + "dev": true, + "requires": { + "chalk": "^2.0.1", + "diff-sequences": "^24.3.0", + "jest-get-type": "^24.3.0", + "pretty-format": "^24.5.0" + } + }, + "jest-docblock": { + "version": "24.3.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-24.3.0.tgz", + "integrity": "sha512-nlANmF9Yq1dufhFlKG9rasfQlrY7wINJbo3q01tu56Jv5eBU5jirylhF2O5ZBnLxzOVBGRDz/9NAwNyBtG4Nyg==", + "dev": true, + "requires": { + "detect-newline": "^2.1.0" + } + }, + "jest-dom": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/jest-dom/-/jest-dom-3.5.0.tgz", + "integrity": "sha512-xHnP3Qo/29oLAo2iixaZsoDrm3XKSVrMH5Wf2ZEiLychJQBTNzOeVMPxrCygCgJiyQMbnymXltme8bPzuiGOIA==", + "dev": true, + "requires": { + "chalk": "^2.4.1", + "css": "^2.2.3", + "css.escape": "^1.5.1", + "jest-diff": "^24.0.0", + "jest-matcher-utils": "^24.0.0", + "lodash": "^4.17.11", + "pretty-format": "^24.0.0", + "redent": "^2.0.0" + }, + "dependencies": { + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true + }, + "redent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz", + "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=", + "dev": true, + "requires": { + "indent-string": "^3.0.0", + "strip-indent": "^2.0.0" + } + }, + "strip-indent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", + "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", + "dev": true + } + } + }, + "jest-each": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-24.5.0.tgz", + "integrity": "sha512-6gy3Kh37PwIT5sNvNY2VchtIFOOBh8UCYnBlxXMb5sr5wpJUDPTUATX2Axq1Vfk+HWTMpsYPeVYp4TXx5uqUBw==", + "dev": true, + "requires": { + "@jest/types": "^24.5.0", + "chalk": "^2.0.1", + "jest-get-type": "^24.3.0", + "jest-util": "^24.5.0", + "pretty-format": "^24.5.0" + } + }, + "jest-environment-jsdom": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-24.5.0.tgz", + "integrity": "sha512-62Ih5HbdAWcsqBx2ktUnor/mABBo1U111AvZWcLKeWN/n/gc5ZvDBKe4Og44fQdHKiXClrNGC6G0mBo6wrPeGQ==", + "dev": true, + "requires": { + "@jest/environment": "^24.5.0", + "@jest/fake-timers": "^24.5.0", + "@jest/types": "^24.5.0", + "jest-mock": "^24.5.0", + "jest-util": "^24.5.0", + "jsdom": "^11.5.1" + }, + "dependencies": { + "jsdom": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-11.12.0.tgz", + "integrity": "sha512-y8Px43oyiBM13Zc1z780FrfNLJCXTL40EWlty/LXUtcjykRBNgLlCjWXpfSPBl2iv+N7koQN+dvqszHZgT/Fjw==", + "dev": true, + "requires": { + "abab": "^2.0.0", + "acorn": "^5.5.3", + "acorn-globals": "^4.1.0", + "array-equal": "^1.0.0", + "cssom": ">= 0.3.2 < 0.4.0", + "cssstyle": "^1.0.0", + "data-urls": "^1.0.0", + "domexception": "^1.0.1", + "escodegen": "^1.9.1", + "html-encoding-sniffer": "^1.0.2", + "left-pad": "^1.3.0", + "nwsapi": "^2.0.7", + "parse5": "4.0.0", + "pn": "^1.1.0", + "request": "^2.87.0", + "request-promise-native": "^1.0.5", + "sax": "^1.2.4", + "symbol-tree": "^3.2.2", + "tough-cookie": "^2.3.4", + "w3c-hr-time": "^1.0.1", + "webidl-conversions": "^4.0.2", + "whatwg-encoding": "^1.0.3", + "whatwg-mimetype": "^2.1.0", + "whatwg-url": "^6.4.1", + "ws": "^5.2.0", + "xml-name-validator": "^3.0.0" + } + }, + "parse5": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-4.0.0.tgz", + "integrity": "sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA==", + "dev": true + }, + "ws": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.2.tgz", + "integrity": "sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA==", + "dev": true, + "requires": { + "async-limiter": "~1.0.0" + } + } + } + }, + "jest-environment-jsdom-thirteen": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom-thirteen/-/jest-environment-jsdom-thirteen-1.0.1.tgz", + "integrity": "sha512-Zi7OuKF7HMLlBvomitd5eKp5Ykc4Wvw0d+i+cpbCaE+7kmvL24SO4ssDmKrT++aANXR4T8+pmoJIlav5gr2peQ==", + "dev": true, + "requires": { + "jest-mock": "^24.0.0", + "jest-util": "^24.0.0", + "jsdom": "^13.0.0" + } + }, + "jest-environment-node": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-24.5.0.tgz", + "integrity": "sha512-du6FuyWr/GbKLsmAbzNF9mpr2Iu2zWSaq/BNHzX+vgOcts9f2ayXBweS7RAhr+6bLp6qRpMB6utAMF5Ygktxnw==", + "dev": true, + "requires": { + "@jest/environment": "^24.5.0", + "@jest/fake-timers": "^24.5.0", + "@jest/types": "^24.5.0", + "jest-mock": "^24.5.0", + "jest-util": "^24.5.0" + } + }, + "jest-get-type": { + "version": "24.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-24.3.0.tgz", + "integrity": "sha512-HYF6pry72YUlVcvUx3sEpMRwXEWGEPlJ0bSPVnB3b3n++j4phUEoSPcS6GC0pPJ9rpyPSe4cb5muFo6D39cXow==", + "dev": true + }, + "jest-haste-map": { + "version": "24.8.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-24.8.1.tgz", + "integrity": "sha512-SwaxMGVdAZk3ernAx2Uv2sorA7jm3Kx+lR0grp6rMmnY06Kn/urtKx1LPN2mGTea4fCT38impYT28FfcLUhX0g==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0", + "anymatch": "^2.0.0", + "fb-watchman": "^2.0.0", + "fsevents": "^1.2.7", + "graceful-fs": "^4.1.15", + "invariant": "^2.2.4", + "jest-serializer": "^24.4.0", + "jest-util": "^24.8.0", + "jest-worker": "^24.6.0", + "micromatch": "^3.1.10", + "sane": "^4.0.3", + "walker": "^1.0.7" + }, + "dependencies": { + "@jest/console": { + "version": "24.7.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-24.7.1.tgz", + "integrity": "sha512-iNhtIy2M8bXlAOULWVTUxmnelTLFneTNEkHCgPmgd+zNwy9zVddJ6oS5rZ9iwoscNdT5mMwUd0C51v/fSlzItg==", + "dev": true, + "requires": { + "@jest/source-map": "^24.3.0", + "chalk": "^2.0.1", + "slash": "^2.0.0" + } + }, + "@jest/fake-timers": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-24.8.0.tgz", + "integrity": "sha512-2M4d5MufVXwi6VzZhJ9f5S/wU4ud2ck0kxPof1Iz3zWx6Y+V2eJrES9jEktB6O3o/oEyk+il/uNu9PvASjWXQw==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0", + "jest-message-util": "^24.8.0", + "jest-mock": "^24.8.0" + } + }, + "@jest/test-result": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-24.8.0.tgz", + "integrity": "sha512-+YdLlxwizlfqkFDh7Mc7ONPQAhA4YylU1s529vVM1rsf67vGZH/2GGm5uO8QzPeVyaVMobCQ7FTxl38QrKRlng==", + "dev": true, + "requires": { + "@jest/console": "^24.7.1", + "@jest/types": "^24.8.0", + "@types/istanbul-lib-coverage": "^2.0.0" + } + }, + "@jest/types": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.8.0.tgz", + "integrity": "sha512-g17UxVr2YfBtaMUxn9u/4+siG1ptg9IGYAYwvpwn61nBg779RXnjE/m7CxYcIzEt0AbHZZAHSEZNhkE2WxURVg==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^1.1.1", + "@types/yargs": "^12.0.9" + } + }, + "@types/istanbul-lib-coverage": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz", + "integrity": "sha512-hRJD2ahnnpLgsj6KWMYSrmXkM3rm2Dl1qkx6IOFD5FnuNPXJIG5L0dhgKXCYTRMGzU4n0wImQ/xfmRc4POUFlg==", + "dev": true + }, + "jest-message-util": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-24.8.0.tgz", + "integrity": "sha512-p2k71rf/b6ns8btdB0uVdljWo9h0ovpnEe05ZKWceQGfXYr4KkzgKo3PBi8wdnd9OtNh46VpNIJynUn/3MKm1g==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@jest/test-result": "^24.8.0", + "@jest/types": "^24.8.0", + "@types/stack-utils": "^1.0.1", + "chalk": "^2.0.1", + "micromatch": "^3.1.10", + "slash": "^2.0.0", + "stack-utils": "^1.0.1" + } + }, + "jest-mock": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-24.8.0.tgz", + "integrity": "sha512-6kWugwjGjJw+ZkK4mDa0Df3sDlUTsV47MSrT0nGQ0RBWJbpODDQ8MHDVtGtUYBne3IwZUhtB7elxHspU79WH3A==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0" + } + }, + "jest-util": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-24.8.0.tgz", + "integrity": "sha512-DYZeE+XyAnbNt0BG1OQqKy/4GVLPtzwGx5tsnDrFcax36rVE3lTA5fbvgmbVPUZf9w77AJ8otqR4VBbfFJkUZA==", + "dev": true, + "requires": { + "@jest/console": "^24.7.1", + "@jest/fake-timers": "^24.8.0", + "@jest/source-map": "^24.3.0", + "@jest/test-result": "^24.8.0", + "@jest/types": "^24.8.0", + "callsites": "^3.0.0", + "chalk": "^2.0.1", + "graceful-fs": "^4.1.15", + "is-ci": "^2.0.0", + "mkdirp": "^0.5.1", + "slash": "^2.0.0", + "source-map": "^0.6.0" + } + }, + "jest-worker": { + "version": "24.6.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-24.6.0.tgz", + "integrity": "sha512-jDwgW5W9qGNvpI1tNnvajh0a5IE/PuGLFmHk6aR/BZFz8tSgGw17GsDPXAJ6p91IvYDjOw8GpFbvvZGAK+DPQQ==", + "dev": true, + "requires": { + "merge-stream": "^1.0.1", + "supports-color": "^6.1.0" + } + } + } + }, + "jest-jasmine2": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-24.5.0.tgz", + "integrity": "sha512-sfVrxVcx1rNUbBeyIyhkqZ4q+seNKyAG6iM0S2TYBdQsXjoFDdqWFfsUxb6uXSsbimbXX/NMkJIwUZ1uT9+/Aw==", + "dev": true, + "requires": { + "@babel/traverse": "^7.1.0", + "@jest/environment": "^24.5.0", + "@jest/test-result": "^24.5.0", + "@jest/types": "^24.5.0", + "chalk": "^2.0.1", + "co": "^4.6.0", + "expect": "^24.5.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^24.5.0", + "jest-matcher-utils": "^24.5.0", + "jest-message-util": "^24.5.0", + "jest-runtime": "^24.5.0", + "jest-snapshot": "^24.5.0", + "jest-util": "^24.5.0", + "pretty-format": "^24.5.0", + "throat": "^4.0.0" + } + }, + "jest-leak-detector": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-24.5.0.tgz", + "integrity": "sha512-LZKBjGovFRx3cRBkqmIg+BZnxbrLqhQl09IziMk3oeh1OV81Hg30RUIx885mq8qBv1PA0comB9bjKcuyNO1bCQ==", + "dev": true, + "requires": { + "pretty-format": "^24.5.0" + } + }, + "jest-matcher-utils": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-24.5.0.tgz", + "integrity": "sha512-QM1nmLROjLj8GMGzg5VBra3I9hLpjMPtF1YqzQS3rvWn2ltGZLrGAO1KQ9zUCVi5aCvrkbS5Ndm2evIP9yZg1Q==", + "dev": true, + "requires": { + "chalk": "^2.0.1", + "jest-diff": "^24.5.0", + "jest-get-type": "^24.3.0", + "pretty-format": "^24.5.0" + } + }, + "jest-message-util": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-24.5.0.tgz", + "integrity": "sha512-6ZYgdOojowCGiV0D8WdgctZEAe+EcFU+KrVds+0ZjvpZurUW2/oKJGltJ6FWY2joZwYXN5VL36GPV6pNVRqRnQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "@jest/test-result": "^24.5.0", + "@jest/types": "^24.5.0", + "@types/stack-utils": "^1.0.1", + "chalk": "^2.0.1", + "micromatch": "^3.1.10", + "slash": "^2.0.0", + "stack-utils": "^1.0.1" + } + }, + "jest-mock": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-24.5.0.tgz", + "integrity": "sha512-ZnAtkWrKf48eERgAOiUxVoFavVBziO2pAi2MfZ1+bGXVkDfxWLxU0//oJBkgwbsv6OAmuLBz4XFFqvCFMqnGUw==", + "dev": true, + "requires": { + "@jest/types": "^24.5.0" + } + }, + "jest-nock": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/jest-nock/-/jest-nock-0.1.7.tgz", + "integrity": "sha512-PDomjUeI2XGLycXOnXvQ3i0D8UDcXnjEjgoCtYYB3IO2RwArKd0xXfLw6T32E484e90ca+OekwhN7F/rMSSCHQ==", + "dev": true, + "requires": { + "mkdirp": "^0.5.1" + } + }, + "jest-pnp-resolver": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.1.tgz", + "integrity": "sha512-pgFw2tm54fzgYvc/OHrnysABEObZCUNFnhjoRjaVOCN8NYc032/gVjPaHD4Aq6ApkSieWtfKAFQtmDKAmhupnQ==", + "dev": true + }, + "jest-preset-angular": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/jest-preset-angular/-/jest-preset-angular-7.0.1.tgz", + "integrity": "sha512-/vEGBz3GlbMgwtVPNBDpPEVrbpcfufN7v4UyVbuvVXjVj72lQXlHw6k5I6niMx1JBD2UPTuAv4nCjN8xFPfO0A==", + "dev": true, + "requires": { + "jest-environment-jsdom-thirteen": "^1.0.0", + "ts-jest": "^24.0.0" + } + }, + "jest-regex-util": { + "version": "24.3.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-24.3.0.tgz", + "integrity": "sha512-tXQR1NEOyGlfylyEjg1ImtScwMq8Oh3iJbGTjN7p0J23EuVX1MA8rwU69K4sLbCmwzgCUbVkm0FkSF9TdzOhtg==", + "dev": true + }, + "jest-resolve": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-24.8.0.tgz", + "integrity": "sha512-+hjSzi1PoRvnuOICoYd5V/KpIQmkAsfjFO71458hQ2Whi/yf1GDeBOFj8Gxw4LrApHsVJvn5fmjcPdmoUHaVKw==", + "dev": true, + "requires": { + "@jest/types": "^24.8.0", + "browser-resolve": "^1.11.3", + "chalk": "^2.0.1", + "jest-pnp-resolver": "^1.2.1", + "realpath-native": "^1.1.0" + }, + "dependencies": { + "@jest/types": { + "version": "24.8.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.8.0.tgz", + "integrity": "sha512-g17UxVr2YfBtaMUxn9u/4+siG1ptg9IGYAYwvpwn61nBg779RXnjE/m7CxYcIzEt0AbHZZAHSEZNhkE2WxURVg==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^1.1.1", + "@types/yargs": "^12.0.9" + } + }, + "@types/istanbul-lib-coverage": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz", + "integrity": "sha512-hRJD2ahnnpLgsj6KWMYSrmXkM3rm2Dl1qkx6IOFD5FnuNPXJIG5L0dhgKXCYTRMGzU4n0wImQ/xfmRc4POUFlg==", + "dev": true + } + } + }, + "jest-resolve-dependencies": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-24.5.0.tgz", + "integrity": "sha512-dRVM1D+gWrFfrq2vlL5P9P/i8kB4BOYqYf3S7xczZ+A6PC3SgXYSErX/ScW/469pWMboM1uAhgLF+39nXlirCQ==", + "dev": true, + "requires": { + "@jest/types": "^24.5.0", + "jest-regex-util": "^24.3.0", + "jest-snapshot": "^24.5.0" + } + }, + "jest-runner": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-24.5.0.tgz", + "integrity": "sha512-oqsiS9TkIZV5dVkD+GmbNfWBRPIvxqmlTQ+AQUJUQ07n+4xTSDc40r+aKBynHw9/tLzafC00DIbJjB2cOZdvMA==", + "dev": true, + "requires": { + "@jest/console": "^24.3.0", + "@jest/environment": "^24.5.0", + "@jest/test-result": "^24.5.0", + "@jest/types": "^24.5.0", + "chalk": "^2.4.2", + "exit": "^0.1.2", + "graceful-fs": "^4.1.15", + "jest-config": "^24.5.0", + "jest-docblock": "^24.3.0", + "jest-haste-map": "^24.5.0", + "jest-jasmine2": "^24.5.0", + "jest-leak-detector": "^24.5.0", + "jest-message-util": "^24.5.0", + "jest-resolve": "^24.5.0", + "jest-runtime": "^24.5.0", + "jest-util": "^24.5.0", + "jest-worker": "^24.4.0", + "source-map-support": "^0.5.6", + "throat": "^4.0.0" + } + }, + "jest-runtime": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-24.5.0.tgz", + "integrity": "sha512-GTFHzfLdwpaeoDPilNpBrorlPoNZuZrwKKzKJs09vWwHo+9TOsIIuszK8cWOuKC7ss07aN1922Ge8fsGdsqCuw==", + "dev": true, + "requires": { + "@jest/console": "^24.3.0", + "@jest/environment": "^24.5.0", + "@jest/source-map": "^24.3.0", + "@jest/transform": "^24.5.0", + "@jest/types": "^24.5.0", + "@types/yargs": "^12.0.2", + "chalk": "^2.0.1", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.1.15", + "jest-config": "^24.5.0", + "jest-haste-map": "^24.5.0", + "jest-message-util": "^24.5.0", + "jest-mock": "^24.5.0", + "jest-regex-util": "^24.3.0", + "jest-resolve": "^24.5.0", + "jest-snapshot": "^24.5.0", + "jest-util": "^24.5.0", + "jest-validate": "^24.5.0", + "realpath-native": "^1.1.0", + "slash": "^2.0.0", + "strip-bom": "^3.0.0", + "yargs": "^12.0.2" + } + }, + "jest-serializer": { + "version": "24.4.0", + "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-24.4.0.tgz", + "integrity": "sha512-k//0DtglVstc1fv+GY/VHDIjrtNjdYvYjMlbLUed4kxrE92sIUewOi5Hj3vrpB8CXfkJntRPDRjCrCvUhBdL8Q==", + "dev": true + }, + "jest-snapshot": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-24.5.0.tgz", + "integrity": "sha512-eBEeJb5ROk0NcpodmSKnCVgMOo+Qsu5z9EDl3tGffwPzK1yV37mjGWF2YeIz1NkntgTzP+fUL4s09a0+0dpVWA==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0", + "@jest/types": "^24.5.0", + "chalk": "^2.0.1", + "expect": "^24.5.0", + "jest-diff": "^24.5.0", + "jest-matcher-utils": "^24.5.0", + "jest-message-util": "^24.5.0", + "jest-resolve": "^24.5.0", + "mkdirp": "^0.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^24.5.0", + "semver": "^5.5.0" + } + }, + "jest-transform-stub": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jest-transform-stub/-/jest-transform-stub-2.0.0.tgz", + "integrity": "sha512-lspHaCRx/mBbnm3h4uMMS3R5aZzMwyNpNIJLXj4cEsV0mIUtS4IjYJLSoyjRCtnxb6RIGJ4NL2quZzfIeNhbkg==", + "dev": true + }, + "jest-util": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-24.5.0.tgz", + "integrity": "sha512-Xy8JsD0jvBz85K7VsTIQDuY44s+hYJyppAhcsHsOsGisVtdhar6fajf2UOf2mEVEgh15ZSdA0zkCuheN8cbr1Q==", + "dev": true, + "requires": { + "@jest/console": "^24.3.0", + "@jest/fake-timers": "^24.5.0", + "@jest/source-map": "^24.3.0", + "@jest/test-result": "^24.5.0", + "@jest/types": "^24.5.0", + "@types/node": "*", + "callsites": "^3.0.0", + "chalk": "^2.0.1", + "graceful-fs": "^4.1.15", + "is-ci": "^2.0.0", + "mkdirp": "^0.5.1", + "slash": "^2.0.0", + "source-map": "^0.6.0" + } + }, + "jest-validate": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-24.5.0.tgz", + "integrity": "sha512-gg0dYszxjgK2o11unSIJhkOFZqNRQbWOAB2/LOUdsd2LfD9oXiMeuee8XsT0iRy5EvSccBgB4h/9HRbIo3MHgQ==", + "dev": true, + "requires": { + "@jest/types": "^24.5.0", + "camelcase": "^5.0.0", + "chalk": "^2.0.1", + "jest-get-type": "^24.3.0", + "leven": "^2.1.0", + "pretty-format": "^24.5.0" + }, + "dependencies": { + "camelcase": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.0.tgz", + "integrity": "sha512-Y05ICatFYPAfykDIB7VdwSJ0LUl1yq/BwO2OpyGGLjiRe1fgzTwVypPiWnzkGFOVFHXrCXUNBl86bpjBhZWSJg==", + "dev": true + } + } + }, + "jest-watcher": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-24.5.0.tgz", + "integrity": "sha512-/hCpgR6bg0nKvD3nv4KasdTxuhwfViVMHUATJlnGCD0r1QrmIssimPbmc5KfAQblAVxkD8xrzuij9vfPUk1/rA==", + "dev": true, + "requires": { + "@jest/test-result": "^24.5.0", + "@jest/types": "^24.5.0", + "@types/node": "*", + "@types/yargs": "^12.0.9", + "ansi-escapes": "^3.0.0", + "chalk": "^2.0.1", + "jest-util": "^24.5.0", + "string-length": "^2.0.0" + } + }, + "jest-worker": { + "version": "24.4.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-24.4.0.tgz", + "integrity": "sha512-BH9X/klG9vxwoO99ZBUbZFfV8qO0XNZ5SIiCyYK2zOuJBl6YJVAeNIQjcoOVNu4HGEHeYEKsUWws8kSlSbZ9YQ==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^1.0.1", + "supports-color": "^6.1.0" + } + }, + "jquery": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.4.1.tgz", + "integrity": "sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw==", + "dev": true + }, + "js-base64": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.5.1.tgz", + "integrity": "sha512-M7kLczedRMYX4L8Mdh4MzyAMM9O5osx+4FcOQuTvr3A9F2D9S5JXheN0ewNbrvK2UatkTRhL5ejGmGSjNMiZuw==", + "dev": true + }, + "js-levenshtein": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz", + "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==", + "dev": true + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.0.tgz", + "integrity": "sha512-pZZoSxcCYco+DIKBTimr67J6Hy+EYGZDY/HCWC+iAEA9h1ByhMXAIVUXMcMFpOCxQ/xjXmPI2MkDL5HRm5eFrQ==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "dev": true + }, + "jsdom": { + "version": "13.2.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-13.2.0.tgz", + "integrity": "sha512-cG1NtMWO9hWpqRNRR3dSvEQa8bFI6iLlqU2x4kwX51FQjp0qus8T9aBaAO6iGp3DeBrhdwuKxckknohkmfvsFw==", + "dev": true, + "requires": { + "abab": "^2.0.0", + "acorn": "^6.0.4", + "acorn-globals": "^4.3.0", + "array-equal": "^1.0.0", + "cssom": "^0.3.4", + "cssstyle": "^1.1.1", + "data-urls": "^1.1.0", + "domexception": "^1.0.1", + "escodegen": "^1.11.0", + "html-encoding-sniffer": "^1.0.2", + "nwsapi": "^2.0.9", + "parse5": "5.1.0", + "pn": "^1.1.0", + "request": "^2.88.0", + "request-promise-native": "^1.0.5", + "saxes": "^3.1.5", + "symbol-tree": "^3.2.2", + "tough-cookie": "^2.5.0", + "w3c-hr-time": "^1.0.1", + "w3c-xmlserializer": "^1.0.1", + "webidl-conversions": "^4.0.2", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^7.0.0", + "ws": "^6.1.2", + "xml-name-validator": "^3.0.0" + }, + "dependencies": { + "acorn": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.1.1.tgz", + "integrity": "sha512-jPTiwtOxaHNaAPg/dmrJ/beuzLRnXtB0kQPQ8JpotKJgTB6rX6c8mlf315941pyjBSaPg8NHXS9fhP4u17DpGA==", + "dev": true + }, + "parse5": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.0.tgz", + "integrity": "sha512-fxNG2sQjHvlVAYmzBZS9YlDp6PTSSDwa98vkD4QgVDDCAo84z5X1t5XyJQ62ImdLXx5NdIIfihey6xpum9/gRQ==", + "dev": true + }, + "whatwg-url": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.0.0.tgz", + "integrity": "sha512-37GeVSIJ3kn1JgKyjiYNmSLP1yzbpb29jdmwBSgkD9h40/hyrR/OifpVUndji3tmwGgD8qpw7iQu3RSbCrBpsQ==", + "dev": true, + "requires": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + } + } + }, + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true + }, + "jsmin2": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/jsmin2/-/jsmin2-1.2.1.tgz", + "integrity": "sha1-iPvi+/dfCpH2YCD9mBzWk/S/5X4=", + "dev": true + }, + "json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "dev": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true + }, + "json5": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.0.tgz", + "integrity": "sha512-8Mh9h6xViijj36g7Dxi+Y4S6hNGV96vcJZr/SrlHh1LR/pEn/8j/+qIBbs44YKl69Lrfctp4QD+AdWLTMqEZAQ==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "dev": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "jsx-ast-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-2.0.1.tgz", + "integrity": "sha1-6AGxs5mF4g//yHtA43SAgOLcrH8=", + "dev": true, + "requires": { + "array-includes": "^3.0.3" + } + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + }, + "kleur": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.2.tgz", + "integrity": "sha512-3h7B2WRT5LNXOtQiAaWonilegHcPSf9nLVXlSTci8lu1dZUuui61+EsPEZqSVxY7rXYmB2DVKMQILxaO5WL61Q==", + "dev": true + }, + "lazystream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.0.tgz", + "integrity": "sha1-9plf4PggOS9hOWvolGJAe7dxaOQ=", + "dev": true, + "requires": { + "readable-stream": "^2.0.5" + } + }, + "lcid": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", + "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", + "dev": true, + "requires": { + "invert-kv": "^2.0.0" + } + }, + "left-pad": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.3.0.tgz", + "integrity": "sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==", + "dev": true + }, + "leven": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-2.1.0.tgz", + "integrity": "sha1-wuep93IJTe6dNCAq6KzORoeHVYA=", + "dev": true + }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + } + }, + "liftoff": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-2.5.0.tgz", + "integrity": "sha1-IAkpG7Mc6oYbvxCnwVooyvdcMew=", + "dev": true, + "requires": { + "extend": "^3.0.0", + "findup-sync": "^2.0.0", + "fined": "^1.0.1", + "flagged-respawn": "^1.0.0", + "is-plain-object": "^2.0.4", + "object.map": "^1.0.0", + "rechoir": "^0.6.2", + "resolve": "^1.1.7" + } + }, + "livereload-js": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/livereload-js/-/livereload-js-2.4.0.tgz", + "integrity": "sha512-XPQH8Z2GDP/Hwz2PCDrh2mth4yFejwA1OZ/81Ti3LgKyhDcEjsSsqFWZojHG0va/duGd+WyosY7eXLDoOyqcPw==", + "dev": true + }, + "load-grunt-tasks": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-grunt-tasks/-/load-grunt-tasks-4.0.0.tgz", + "integrity": "sha512-w5JYPHpZgMxu9XFR9N9MEzyX8E0mLhQkwQ1qVP4mb3gmuomw8Ww8J49NHMbXqyQliq2LUCqdU7/wW96IVuPCKw==", + "dev": true, + "requires": { + "arrify": "^1.0.0", + "multimatch": "^2.0.0", + "pkg-up": "^2.0.0", + "resolve-pkg": "^1.0.0" + } + }, + "load-json-file": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" + }, + "dependencies": { + "parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "dev": true, + "requires": { + "error-ex": "^1.2.0" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + }, + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "dev": true, + "requires": { + "is-utf8": "^0.2.0" + } + } + } + }, + "loader-runner": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz", + "integrity": "sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw==", + "dev": true + }, + "loader-utils": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.2.3.tgz", + "integrity": "sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA==", + "dev": true, + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^2.0.0", + "json5": "^1.0.1" + }, + "dependencies": { + "json5": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", + "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + } + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "lodash": { + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", + "dev": true + }, + "lodash.assign": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", + "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=", + "dev": true + }, + "lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", + "dev": true + }, + "lodash.escape": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-4.0.1.tgz", + "integrity": "sha1-yQRGkMIeBClL6qUXcS/e0fqI3pg=", + "dev": true + }, + "lodash.flattendeep": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", + "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=", + "dev": true + }, + "lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=", + "dev": true + }, + "lodash.isequal": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", + "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=", + "dev": true + }, + "lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=", + "dev": true + }, + "lodash.mergewith": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz", + "integrity": "sha512-eWw5r+PYICtEBgrBE5hhlT6aAa75f411bgDz/ZL2KZqYV03USvucsxcHUIlGTDTECs1eunpI7HOV7U+WLDvNdQ==", + "dev": true + }, + "lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", + "dev": true + }, + "loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, + "requires": { + "js-tokens": "^3.0.0 || ^4.0.0" + } + }, + "loud-rejection": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", + "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", + "dev": true, + "requires": { + "currently-unhandled": "^0.4.1", + "signal-exit": "^3.0.0" + } + }, + "lru-cache": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", + "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=", + "dev": true + }, + "make-dir": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", + "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", + "dev": true, + "requires": { + "pify": "^3.0.0" + } + }, + "make-error": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.5.tgz", + "integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==", + "dev": true + }, + "make-iterator": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.1.tgz", + "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==", + "dev": true, + "requires": { + "kind-of": "^6.0.2" + } + }, + "makeerror": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.11.tgz", + "integrity": "sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw=", + "dev": true, + "requires": { + "tmpl": "1.0.x" + } + }, + "mamacro": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/mamacro/-/mamacro-0.0.3.tgz", + "integrity": "sha512-qMEwh+UujcQ+kbz3T6V+wAmO2U8veoq2w+3wY8MquqwVA3jChfwY+Tk52GZKDfACEPjuZ7r2oJLejwpt8jtwTA==", + "dev": true + }, + "map-age-cleaner": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", + "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", + "dev": true, + "requires": { + "p-defer": "^1.0.0" + } + }, + "map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", + "dev": true + }, + "map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "dev": true + }, + "map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "dev": true, + "requires": { + "object-visit": "^1.0.0" + } + }, + "maxmin": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/maxmin/-/maxmin-2.1.0.tgz", + "integrity": "sha1-TTsiCQPZXu5+t6x/qGTnLcCaMWY=", + "dev": true, + "requires": { + "chalk": "^1.0.0", + "figures": "^1.0.1", + "gzip-size": "^3.0.0", + "pretty-bytes": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "pretty-bytes": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-3.0.1.tgz", + "integrity": "sha1-J9AAjXeAY6C0gRuzXHnxvV1fvM8=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "md5.js": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", + "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", + "dev": true, + "requires": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", + "dev": true + }, + "mem": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", + "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", + "dev": true, + "requires": { + "map-age-cleaner": "^0.1.1", + "mimic-fn": "^2.0.0", + "p-is-promise": "^2.0.0" + } + }, + "memory-fs": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", + "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", + "dev": true, + "requires": { + "errno": "^0.1.3", + "readable-stream": "^2.0.1" + } + }, + "meow": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", + "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", + "dev": true, + "requires": { + "camelcase-keys": "^2.0.0", + "decamelize": "^1.1.2", + "loud-rejection": "^1.0.0", + "map-obj": "^1.0.1", + "minimist": "^1.1.3", + "normalize-package-data": "^2.3.4", + "object-assign": "^4.0.1", + "read-pkg-up": "^1.0.1", + "redent": "^1.0.0", + "trim-newlines": "^1.0.0" + } + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", + "dev": true + }, + "merge-stream": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz", + "integrity": "sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE=", + "dev": true, + "requires": { + "readable-stream": "^2.0.1" + } + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", + "dev": true + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + } + }, + "miller-rabin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", + "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", + "dev": true, + "requires": { + "bn.js": "^4.0.0", + "brorand": "^1.0.1" + } + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "dev": true + }, + "mime-db": { + "version": "1.38.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz", + "integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg==", + "dev": true + }, + "mime-types": { + "version": "2.1.22", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz", + "integrity": "sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog==", + "dev": true, + "requires": { + "mime-db": "~1.38.0" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, + "mimic-response": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", + "dev": true, + "optional": true + }, + "minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "dev": true + }, + "minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + }, + "mississippi": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-3.0.0.tgz", + "integrity": "sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA==", + "dev": true, + "requires": { + "concat-stream": "^1.5.0", + "duplexify": "^3.4.2", + "end-of-stream": "^1.1.0", + "flush-write-stream": "^1.0.0", + "from2": "^2.1.0", + "parallel-transform": "^1.1.0", + "pump": "^3.0.0", + "pumpify": "^1.3.3", + "stream-each": "^1.1.0", + "through2": "^2.0.0" + }, + "dependencies": { + "pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + } + } + }, + "mixin-deep": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", + "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", + "dev": true, + "requires": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + }, + "dependencies": { + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + } + } + }, + "moment": { + "version": "2.24.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz", + "integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==", + "dev": true + }, + "moo": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/moo/-/moo-0.4.3.tgz", + "integrity": "sha512-gFD2xGCl8YFgGHsqJ9NKRVdwlioeW3mI1iqfLNYQOv0+6JRwG58Zk9DIGQgyIaffSYaO1xsKnMaYzzNr1KyIAw==", + "dev": true + }, + "move-concurrently": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", + "integrity": "sha1-viwAX9oy4LKa8fBdfEszIUxwH5I=", + "dev": true, + "requires": { + "aproba": "^1.1.1", + "copy-concurrently": "^1.0.0", + "fs-write-stream-atomic": "^1.0.8", + "mkdirp": "^0.5.1", + "rimraf": "^2.5.4", + "run-queue": "^1.0.3" + } + }, + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "dev": true + }, + "multimatch": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-2.1.0.tgz", + "integrity": "sha1-nHkGoi+0wCkZ4vX3UWG0zb1LKis=", + "dev": true, + "requires": { + "array-differ": "^1.0.0", + "array-union": "^1.0.1", + "arrify": "^1.0.0", + "minimatch": "^3.0.0" + } + }, + "mute-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", + "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=", + "dev": true + }, + "mxgraph": { + "version": "3.9.12", + "resolved": "https://registry.npmjs.org/mxgraph/-/mxgraph-3.9.12.tgz", + "integrity": "sha512-fm15Ro1bc/d3T/qvrkOIPjdAgyaKuaE6+olMpu9QZOm3aHWimu+W+dGAusW8VGVmaF4VYII11a5sVNdLekRoEw==", + "dev": true + }, + "nan": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.13.1.tgz", + "integrity": "sha512-I6YB/YEuDeUZMmhscXKxGgZlFnhsn5y0hgOZBadkzfTRrZBtJDZeg6eQf7PYMIEclwmorTKK8GztsyOUSVBREA==", + "dev": true + }, + "nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + } + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "dev": true + }, + "ncp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/ncp/-/ncp-0.5.1.tgz", + "integrity": "sha1-dDmFMW49tFkoG1hxaehFc1oFQ58=", + "dev": true + }, + "nearley": { + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/nearley/-/nearley-2.16.0.tgz", + "integrity": "sha512-Tr9XD3Vt/EujXbZBv6UAHYoLUSMQAxSsTnm9K3koXzjzNWY195NqALeyrzLZBKzAkL3gl92BcSogqrHjD8QuUg==", + "dev": true, + "requires": { + "commander": "^2.19.0", + "moo": "^0.4.3", + "railroad-diagrams": "^1.0.0", + "randexp": "0.4.6", + "semver": "^5.4.1" + } + }, + "negotiator": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", + "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", + "dev": true + }, + "neo-async": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.0.tgz", + "integrity": "sha512-MFh0d/Wa7vkKO3Y3LlacqAEeHK0mckVqzDieUKTT+KGxi+zIpeVsFxymkIiRpbpDziHc290Xr9A1O4Om7otoRA==", + "dev": true + }, + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", + "dev": true + }, + "nock": { + "version": "10.0.6", + "resolved": "https://registry.npmjs.org/nock/-/nock-10.0.6.tgz", + "integrity": "sha512-b47OWj1qf/LqSQYnmokNWM8D88KvUl2y7jT0567NB3ZBAZFz2bWp2PC81Xn7u8F2/vJxzkzNZybnemeFa7AZ2w==", + "dev": true, + "requires": { + "chai": "^4.1.2", + "debug": "^4.1.0", + "deep-equal": "^1.0.0", + "json-stringify-safe": "^5.0.1", + "lodash": "^4.17.5", + "mkdirp": "^0.5.0", + "propagate": "^1.0.0", + "qs": "^6.5.1", + "semver": "^5.5.0" + } + }, + "node": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/node/-/node-11.12.0.tgz", + "integrity": "sha512-um2HVV67QzgmYnfrT6XszwwUT7S/i5nzIls68jEYOfVFJye+0ta2leda2ZWYUHzAajbUYyMp312v+1yYh0Jixw==", + "dev": true, + "requires": { + "node-bin-setup": "^1.0.0" + } + }, + "node-abi": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.7.1.tgz", + "integrity": "sha512-OV8Bq1OrPh6z+Y4dqwo05HqrRL9YNF7QVMRfq1/pguwKLG+q9UB/Lk0x5qXjO23JjJg+/jqCHSTaG1P3tfKfuw==", + "dev": true, + "optional": true, + "requires": { + "semver": "^5.4.1" + } + }, + "node-bin-setup": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/node-bin-setup/-/node-bin-setup-1.0.6.tgz", + "integrity": "sha512-uPIxXNis1CRbv1DwqAxkgBk5NFV3s7cMN/Gf556jSw6jBvV7ca4F9lRL/8cALcZecRibeqU+5dFYqFFmzv5a0Q==", + "dev": true + }, + "node-gyp": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.8.0.tgz", + "integrity": "sha512-3g8lYefrRRzvGeSowdJKAKyks8oUpLEd/DyPV4eMhVlhJ0aNaZqIrNUIPuEWWTAoPqyFkfGrM67MC69baqn6vA==", + "dev": true, + "requires": { + "fstream": "^1.0.0", + "glob": "^7.0.3", + "graceful-fs": "^4.1.2", + "mkdirp": "^0.5.0", + "nopt": "2 || 3", + "npmlog": "0 || 1 || 2 || 3 || 4", + "osenv": "0", + "request": "^2.87.0", + "rimraf": "2", + "semver": "~5.3.0", + "tar": "^2.0.0", + "which": "1" + }, + "dependencies": { + "nopt": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", + "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", + "dev": true, + "requires": { + "abbrev": "1" + } + }, + "semver": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz", + "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=", + "dev": true + } + } + }, + "node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", + "dev": true + }, + "node-libs-browser": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.0.tgz", + "integrity": "sha512-5MQunG/oyOaBdttrL40dA7bUfPORLRWMUJLQtMg7nluxUvk5XwnLdL9twQHFAjRx/y7mIMkLKT9++qPbbk6BZA==", + "dev": true, + "requires": { + "assert": "^1.1.1", + "browserify-zlib": "^0.2.0", + "buffer": "^4.3.0", + "console-browserify": "^1.1.0", + "constants-browserify": "^1.0.0", + "crypto-browserify": "^3.11.0", + "domain-browser": "^1.1.1", + "events": "^3.0.0", + "https-browserify": "^1.0.0", + "os-browserify": "^0.3.0", + "path-browserify": "0.0.0", + "process": "^0.11.10", + "punycode": "^1.2.4", + "querystring-es3": "^0.2.0", + "readable-stream": "^2.3.3", + "stream-browserify": "^2.0.1", + "stream-http": "^2.7.2", + "string_decoder": "^1.0.0", + "timers-browserify": "^2.0.4", + "tty-browserify": "0.0.0", + "url": "^0.11.0", + "util": "^0.11.0", + "vm-browserify": "0.0.4" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true + } + } + }, + "node-modules-regexp": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz", + "integrity": "sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA=", + "dev": true + }, + "node-notifier": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-5.4.0.tgz", + "integrity": "sha512-SUDEb+o71XR5lXSTyivXd9J7fCloE3SyP4lSgt3lU2oSANiox+SxlNRGPjDKrwU1YN3ix2KN/VGGCg0t01rttQ==", + "dev": true, + "requires": { + "growly": "^1.3.0", + "is-wsl": "^1.1.0", + "semver": "^5.5.0", + "shellwords": "^0.1.1", + "which": "^1.3.0" + } + }, + "node-releases": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.11.tgz", + "integrity": "sha512-8v1j5KfP+s5WOTa1spNUAOfreajQPN12JXbRR0oDE+YrJBQCXBnNqUDj27EKpPLOoSiU3tKi3xGPB+JaOdUEQQ==", + "dev": true, + "requires": { + "semver": "^5.3.0" + } + }, + "node-sass": { + "version": "4.11.0", + "resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.11.0.tgz", + "integrity": "sha512-bHUdHTphgQJZaF1LASx0kAviPH7sGlcyNhWade4eVIpFp6tsn7SV8xNMTbsQFpEV9VXpnwTTnNYlfsZXgGgmkA==", + "dev": true, + "requires": { + "async-foreach": "^0.1.3", + "chalk": "^1.1.1", + "cross-spawn": "^3.0.0", + "gaze": "^1.0.0", + "get-stdin": "^4.0.1", + "glob": "^7.0.3", + "in-publish": "^2.0.0", + "lodash.assign": "^4.2.0", + "lodash.clonedeep": "^4.3.2", + "lodash.mergewith": "^4.6.0", + "meow": "^3.7.0", + "mkdirp": "^0.5.1", + "nan": "^2.10.0", + "node-gyp": "^3.8.0", + "npmlog": "^4.0.0", + "request": "^2.88.0", + "sass-graph": "^2.2.4", + "stdout-stream": "^1.4.0", + "true-case-path": "^1.0.2" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "cross-spawn": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz", + "integrity": "sha1-ElYDfsufDF9549bvE14wdwGEuYI=", + "dev": true, + "requires": { + "lru-cache": "^4.0.1", + "which": "^1.2.9" + } + }, + "lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "dev": true, + "requires": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + }, + "dependencies": { + "pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", + "dev": true + } + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "noop-logger": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/noop-logger/-/noop-logger-0.1.1.tgz", + "integrity": "sha1-lKKxYzxPExdVMAfYlm/Q6EG2pMI=", + "dev": true, + "optional": true + }, + "nopt": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", + "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", + "dev": true, + "requires": { + "abbrev": "1", + "osenv": "^0.1.4" + } + }, + "normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "dev": true, + "requires": { + "remove-trailing-separator": "^1.0.1" + } + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, + "requires": { + "path-key": "^2.0.0" + } + }, + "npmlog": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", + "dev": true, + "requires": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" + } + }, + "nth-check": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz", + "integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==", + "dev": true, + "requires": { + "boolbase": "~1.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "nwsapi": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.1.1.tgz", + "integrity": "sha512-T5GaA1J/d34AC8mkrFD2O0DR17kwJ702ZOtJOsS8RpbsQZVOC2/xYFb1i/cw+xdM54JIlMuojjDOYct8GIWtwg==", + "dev": true + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", + "dev": true, + "requires": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "object-inspect": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.6.0.tgz", + "integrity": "sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ==", + "dev": true + }, + "object-is": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.0.1.tgz", + "integrity": "sha1-CqYOyZiaCz7Xlc9NBvYs8a1lObY=", + "dev": true + }, + "object-keys": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.0.tgz", + "integrity": "sha512-6OO5X1+2tYkNyNEx6TsCxEqFfRWaqx6EtMiSbGrw8Ob8v9Ne+Hl8rBAgLBZn5wjEz3s/s6U1WXFUFOcxxAwUpg==" + }, + "object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "dev": true, + "requires": { + "isobject": "^3.0.0" + } + }, + "object.assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "requires": { + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" + } + }, + "object.defaults": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/object.defaults/-/object.defaults-1.1.0.tgz", + "integrity": "sha1-On+GgzS0B96gbaFtiNXNKeQ1/s8=", + "dev": true, + "requires": { + "array-each": "^1.0.1", + "array-slice": "^1.0.0", + "for-own": "^1.0.0", + "isobject": "^3.0.0" + } + }, + "object.entries": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.0.tgz", + "integrity": "sha512-l+H6EQ8qzGRxbkHOd5I/aHRhHDKoQXQ8g0BYt4uSweQU1/J6dZUOyWh9a2Vky35YCKjzmgxOzta2hH6kf9HuXA==", + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.12.0", + "function-bind": "^1.1.1", + "has": "^1.0.3" + } + }, + "object.fromentries": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.0.tgz", + "integrity": "sha512-9iLiI6H083uiqUuvzyY6qrlmc/Gz8hLQFOcb/Ri/0xXFkSNS3ctV+CbE6yM2+AnkYfOB3dGjdzC0wrMLIhQICA==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "es-abstract": "^1.11.0", + "function-bind": "^1.1.1", + "has": "^1.0.1" + } + }, + "object.getownpropertydescriptors": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", + "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "es-abstract": "^1.5.1" + } + }, + "object.map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.map/-/object.map-1.0.1.tgz", + "integrity": "sha1-z4Plncj8wK1fQlDh94s7gb2AHTc=", + "dev": true, + "requires": { + "for-own": "^1.0.0", + "make-iterator": "^1.0.0" + } + }, + "object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "object.values": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.0.tgz", + "integrity": "sha512-8mf0nKLAoFX6VlNVdhGj31SVYpaNFtUnuoOXWyFEstsWRgU837AK+JYM0iAxwkSzGRbwn8cbFmgbyxj1j4VbXg==", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.12.0", + "function-bind": "^1.1.1", + "has": "^1.0.3" + } + }, + "on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "dev": true, + "requires": { + "ee-first": "1.1.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", + "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", + "dev": true, + "requires": { + "mimic-fn": "^1.0.0" + }, + "dependencies": { + "mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "dev": true + } + } + }, + "optimist": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", + "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", + "dev": true, + "requires": { + "minimist": "~0.0.1", + "wordwrap": "~0.0.2" + }, + "dependencies": { + "minimist": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", + "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", + "dev": true + } + } + }, + "optionator": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", + "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", + "dev": true, + "requires": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.4", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "wordwrap": "~1.0.0" + }, + "dependencies": { + "wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", + "dev": true + } + } + }, + "os-browserify": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", + "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", + "dev": true + }, + "os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "dev": true + }, + "os-locale": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", + "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", + "dev": true, + "requires": { + "execa": "^1.0.0", + "lcid": "^2.0.0", + "mem": "^4.0.0" + } + }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "dev": true + }, + "osenv": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", + "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", + "dev": true, + "requires": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" + } + }, + "output-file-sync": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/output-file-sync/-/output-file-sync-2.0.1.tgz", + "integrity": "sha512-mDho4qm7WgIXIGf4eYU1RHN2UU5tPfVYVSRwDJw0uTmj35DQUt/eNp19N7v6T3SrR0ESTEf2up2CGO73qI35zQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.11", + "is-plain-obj": "^1.1.0", + "mkdirp": "^0.5.1" + } + }, + "p-defer": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", + "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", + "dev": true + }, + "p-each-series": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-1.0.0.tgz", + "integrity": "sha1-kw89Et0fUOdDRFeiLNbwSsatf3E=", + "dev": true, + "requires": { + "p-reduce": "^1.0.0" + } + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true + }, + "p-is-promise": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.0.0.tgz", + "integrity": "sha512-pzQPhYMCAgLAKPWD2jC3Se9fEfrD9npNos0y150EeqZll7akhEgGhTW/slB6lHku8AvYGiJ+YJ5hfHKePPgFWg==", + "dev": true + }, + "p-limit": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.0.tgz", + "integrity": "sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "p-reduce": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-1.0.0.tgz", + "integrity": "sha1-GMKw3ZNqRpClKfgjH1ig/bakffo=", + "dev": true + }, + "p-try": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.1.0.tgz", + "integrity": "sha512-H2RyIJ7+A3rjkwKC2l5GGtU4H1vkxKCAGsWasNVd0Set+6i4znxbWy6/j16YDPJDWxhsgZiKAstMEP8wCdSpjA==", + "dev": true + }, + "pako": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.10.tgz", + "integrity": "sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw==", + "dev": true + }, + "parallel-transform": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.1.0.tgz", + "integrity": "sha1-1BDwZbBdojCB/NEPKIVMKb2jOwY=", + "dev": true, + "requires": { + "cyclist": "~0.2.2", + "inherits": "^2.0.3", + "readable-stream": "^2.1.5" + } + }, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "requires": { + "callsites": "^3.0.0" + } + }, + "parse-asn1": { + "version": "5.1.4", + "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.4.tgz", + "integrity": "sha512-Qs5duJcuvNExRfFZ99HDD3z4mAi3r9Wl/FOjEOijlxwCZs7E7mW2vjTpgQ4J8LpTF8x5v+1Vn5UQFejmWT11aw==", + "dev": true, + "requires": { + "asn1.js": "^4.0.0", + "browserify-aes": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.0", + "pbkdf2": "^3.0.3", + "safe-buffer": "^5.1.1" + } + }, + "parse-filepath": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz", + "integrity": "sha1-pjISf1Oq89FYdvWHLz/6x2PWyJE=", + "dev": true, + "requires": { + "is-absolute": "^1.0.0", + "map-cache": "^0.2.0", + "path-root": "^0.1.1" + } + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" + } + }, + "parse-passwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", + "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", + "dev": true + }, + "parse5": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-3.0.3.tgz", + "integrity": "sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "dev": true + }, + "pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", + "dev": true + }, + "path-browserify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.0.tgz", + "integrity": "sha1-oLhwcpquIUAFt9UDLsLLuw+0RRo=", + "dev": true + }, + "path-dirname": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", + "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", + "dev": true + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "path-root": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", + "integrity": "sha1-mkpoFMrBwM1zNgqV8yCDyOpHRbc=", + "dev": true, + "requires": { + "path-root-regex": "^0.1.0" + } + }, + "path-root-regex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz", + "integrity": "sha1-v8zcjfWxLcUsi0PsONGNcsBLqW0=", + "dev": true + }, + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=", + "dev": true + }, + "path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "pathval": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", + "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", + "dev": true + }, + "pbkdf2": { + "version": "3.0.17", + "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", + "integrity": "sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA==", + "dev": true, + "requires": { + "create-hash": "^1.1.2", + "create-hmac": "^1.1.4", + "ripemd160": "^2.0.1", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "dev": true + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "requires": { + "pinkie": "^2.0.0" + } + }, + "pirates": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.1.tgz", + "integrity": "sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA==", + "dev": true, + "requires": { + "node-modules-regexp": "^1.0.0" + } + }, + "pkg-dir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", + "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", + "dev": true, + "requires": { + "find-up": "^3.0.0" + } + }, + "pkg-up": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-2.0.0.tgz", + "integrity": "sha1-yBmscoBZpGHKscOImivjxJoATX8=", + "dev": true, + "requires": { + "find-up": "^2.1.0" + }, + "dependencies": { + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + } + } + }, + "pn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pn/-/pn-1.1.0.tgz", + "integrity": "sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA==", + "dev": true + }, + "posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", + "dev": true + }, + "prebuild-install": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-2.5.3.tgz", + "integrity": "sha512-/rI36cN2g7vDQnKWN8Uzupi++KjyqS9iS+/fpwG4Ea8d0Pip0PQ5bshUNzVwt+/D2MRfhVAplYMMvWLqWrCF/g==", + "dev": true, + "optional": true, + "requires": { + "detect-libc": "^1.0.3", + "expand-template": "^1.0.2", + "github-from-package": "0.0.0", + "minimist": "^1.2.0", + "mkdirp": "^0.5.1", + "node-abi": "^2.2.0", + "noop-logger": "^0.1.1", + "npmlog": "^4.0.1", + "os-homedir": "^1.0.1", + "pump": "^2.0.1", + "rc": "^1.1.6", + "simple-get": "^2.7.0", + "tar-fs": "^1.13.0", + "tunnel-agent": "^0.6.0", + "which-pm-runs": "^1.0.0" + }, + "dependencies": { + "detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", + "dev": true, + "optional": true + } + } + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "dev": true + }, + "prettier": { + "version": "1.18.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.18.2.tgz", + "integrity": "sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==", + "dev": true + }, + "pretty-bytes": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-4.0.2.tgz", + "integrity": "sha1-sr+C5zUNZcbDOqlaqlpPYyf2HNk=", + "dev": true + }, + "pretty-format": { + "version": "24.5.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-24.5.0.tgz", + "integrity": "sha512-/3RuSghukCf8Riu5Ncve0iI+BzVkbRU5EeUoArKARZobREycuH5O4waxvaNIloEXdb0qwgmEAed5vTpX1HNROQ==", + "dev": true, + "requires": { + "@jest/types": "^24.5.0", + "ansi-regex": "^4.0.0", + "ansi-styles": "^3.2.0", + "react-is": "^16.8.4" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + } + } + }, + "private": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", + "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", + "dev": true + }, + "process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true + }, + "promise-inflight": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", + "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=", + "dev": true + }, + "prompts": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.0.4.tgz", + "integrity": "sha512-HTzM3UWp/99A0gk51gAegwo1QRYA7xjcZufMNe33rCclFszUYAuHe1fIN/3ZmiHeGPkUsNaRyQm1hHOfM0PKxA==", + "dev": true, + "requires": { + "kleur": "^3.0.2", + "sisteransi": "^1.0.0" + } + }, + "prop-types": { + "version": "15.7.2", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", + "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", + "dev": true, + "requires": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.8.1" + } + }, + "propagate": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/propagate/-/propagate-1.0.0.tgz", + "integrity": "sha1-AMLa7t2iDofjeCs0Stuhzd1q1wk=", + "dev": true + }, + "proxy-addr": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.5.tgz", + "integrity": "sha512-t/7RxHXPH6cJtP0pRG6smSr9QJidhB+3kXu0KgXnbGYMgzEnUxRQ4/LDdfOwZEMyIh3/xHb8PX3t+lfL9z+YVQ==", + "dev": true, + "requires": { + "forwarded": "~0.1.2", + "ipaddr.js": "1.9.0" + } + }, + "prr": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", + "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", + "dev": true + }, + "psl": { + "version": "1.1.31", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.31.tgz", + "integrity": "sha512-/6pt4+C+T+wZUieKR620OpzN/LlnNKuWjy1iFLQ/UG35JqHlR/89MP1d96dUfkf6Dne3TuLQzOYEYshJ+Hx8mw==", + "dev": true + }, + "public-encrypt": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", + "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", + "dev": true, + "requires": { + "bn.js": "^4.1.0", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "parse-asn1": "^5.0.0", + "randombytes": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "pump": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", + "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "pumpify": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", + "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", + "dev": true, + "requires": { + "duplexify": "^3.6.0", + "inherits": "^2.0.3", + "pump": "^2.0.0" + } + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + }, + "qs": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", + "dev": true + }, + "querystring": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", + "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", + "dev": true + }, + "querystring-es3": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", + "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", + "dev": true + }, + "raf": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz", + "integrity": "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==", + "dev": true, + "requires": { + "performance-now": "^2.1.0" + } + }, + "railroad-diagrams": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/railroad-diagrams/-/railroad-diagrams-1.0.0.tgz", + "integrity": "sha1-635iZ1SN3t+4mcG5Dlc3RVnN234=", + "dev": true + }, + "randexp": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/randexp/-/randexp-0.4.6.tgz", + "integrity": "sha512-80WNmd9DA0tmZrw9qQa62GPPWfuXJknrmVmLcxvq4uZBdYqb1wYoKTmnlGUchvVWe0XiLupYkBoXVOxz3C8DYQ==", + "dev": true, + "requires": { + "discontinuous-range": "1.0.0", + "ret": "~0.1.10" + } + }, + "randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "requires": { + "safe-buffer": "^5.1.0" + } + }, + "randomfill": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", + "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", + "dev": true, + "requires": { + "randombytes": "^2.0.5", + "safe-buffer": "^5.1.0" + } + }, + "range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "dev": true + }, + "raw-body": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-1.1.7.tgz", + "integrity": "sha1-HQJ8K/oRasxmI7yo8AAWVyqH1CU=", + "dev": true, + "requires": { + "bytes": "1", + "string_decoder": "0.10" + }, + "dependencies": { + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + } + } + }, + "rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dev": true, + "optional": true, + "requires": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + } + }, + "react": { + "version": "16.8.6", + "resolved": "https://registry.npmjs.org/react/-/react-16.8.6.tgz", + "integrity": "sha512-pC0uMkhLaHm11ZSJULfOBqV4tIZkx87ZLvbbQYunNixAAvjnC+snJCg0XQXn9VIsttVsbZP/H/ewzgsd5fxKXw==", + "dev": true, + "requires": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1", + "prop-types": "^15.6.2", + "scheduler": "^0.13.6" + }, + "dependencies": { + "scheduler": { + "version": "0.13.6", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.13.6.tgz", + "integrity": "sha512-IWnObHt413ucAYKsD9J1QShUKkbKLQQHdxRyw73sw4FN26iWr3DY/H34xGPe4nmL1DwXyWmSWmMrA9TfQbE/XQ==", + "dev": true, + "requires": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + } + } + }, + "react-dom": { + "version": "16.8.6", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.8.6.tgz", + "integrity": "sha512-1nL7PIq9LTL3fthPqwkvr2zY7phIPjYrT0jp4HjyEQrEROnw4dG41VVwi/wfoCneoleqrNX7iAD+pXebJZwrwA==", + "dev": true, + "requires": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1", + "prop-types": "^15.6.2", + "scheduler": "^0.13.6" + }, + "dependencies": { + "scheduler": { + "version": "0.13.6", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.13.6.tgz", + "integrity": "sha512-IWnObHt413ucAYKsD9J1QShUKkbKLQQHdxRyw73sw4FN26iWr3DY/H34xGPe4nmL1DwXyWmSWmMrA9TfQbE/XQ==", + "dev": true, + "requires": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + } + } + }, + "react-is": { + "version": "16.8.5", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.8.5.tgz", + "integrity": "sha512-sudt2uq5P/2TznPV4Wtdi+Lnq3yaYW8LfvPKLM9BKD8jJNBkxMVyB0C9/GmVhLw7Jbdmndk/73n7XQGeN9A3QQ==", + "dev": true + }, + "react-test-renderer": { + "version": "16.8.5", + "resolved": "https://registry.npmjs.org/react-test-renderer/-/react-test-renderer-16.8.5.tgz", + "integrity": "sha512-/pFpHYQH4f35OqOae/DgOCXJDxBqD3K3akVfDhLgR0qYHoHjnICI/XS9QDwIhbrOFHWL7okVW9kKMaHuKvt2ng==", + "dev": true, + "requires": { + "object-assign": "^4.1.1", + "prop-types": "^15.6.2", + "react-is": "^16.8.5", + "scheduler": "^0.13.5" + } + }, + "read-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", + "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "dev": true, + "requires": { + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" + } + }, + "read-pkg-up": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", + "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "dev": true, + "requires": { + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" + }, + "dependencies": { + "find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "dev": true, + "requires": { + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "dev": true, + "requires": { + "pinkie-promise": "^2.0.0" + } + } + } + }, + "readable-stream": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + }, + "dependencies": { + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "readdirp": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", + "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.11", + "micromatch": "^3.1.10", + "readable-stream": "^2.0.2" + } + }, + "realpath-native": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/realpath-native/-/realpath-native-1.1.0.tgz", + "integrity": "sha512-wlgPA6cCIIg9gKz0fgAPjnzh4yR/LnXovwuo9hvyGvx3h8nX4+/iLZplfUWasXpqD8BdnGnP5njOFjkUwPzvjA==", + "dev": true, + "requires": { + "util.promisify": "^1.0.0" + } + }, + "rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", + "dev": true, + "requires": { + "resolve": "^1.1.6" + } + }, + "redent": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", + "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", + "dev": true, + "requires": { + "indent-string": "^2.1.0", + "strip-indent": "^1.0.1" + } + }, + "regenerate": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", + "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==", + "dev": true + }, + "regenerate-unicode-properties": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-8.0.2.tgz", + "integrity": "sha512-SbA/iNrBUf6Pv2zU8Ekv1Qbhv92yxL4hiDa2siuxs4KKn4oOoMDHXjAf7+Nz9qinUQ46B1LcWEi/PhJfPWpZWQ==", + "dev": true, + "requires": { + "regenerate": "^1.4.0" + } + }, + "regenerator-runtime": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz", + "integrity": "sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg==", + "dev": true + }, + "regenerator-transform": { + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.13.4.tgz", + "integrity": "sha512-T0QMBjK3J0MtxjPmdIMXm72Wvj2Abb0Bd4HADdfijwMdoIsyQZ6fWC7kDFhk2YinBBEMZDL7Y7wh0J1sGx3S4A==", + "dev": true, + "requires": { + "private": "^0.1.6" + } + }, + "regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, + "requires": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + } + }, + "regexp-tree": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/regexp-tree/-/regexp-tree-0.1.5.tgz", + "integrity": "sha512-nUmxvfJyAODw+0B13hj8CFVAxhe7fDEAgJgaotBu3nnR+IgGgZq59YedJP5VYTlkEfqjuK6TuRpnymKdatLZfQ==", + "dev": true + }, + "regexpp": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.1.tgz", + "integrity": "sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==", + "dev": true + }, + "regexpu-core": { + "version": "4.5.4", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.5.4.tgz", + "integrity": "sha512-BtizvGtFQKGPUcTy56o3nk1bGRp4SZOTYrDtGNlqCQufptV5IkkLN6Emw+yunAJjzf+C9FQFtvq7IoA3+oMYHQ==", + "dev": true, + "requires": { + "regenerate": "^1.4.0", + "regenerate-unicode-properties": "^8.0.2", + "regjsgen": "^0.5.0", + "regjsparser": "^0.6.0", + "unicode-match-property-ecmascript": "^1.0.4", + "unicode-match-property-value-ecmascript": "^1.1.0" + } + }, + "regjsgen": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.0.tgz", + "integrity": "sha512-RnIrLhrXCX5ow/E5/Mh2O4e/oa1/jW0eaBKTSy3LaCj+M3Bqvm97GWDp2yUtzIs4LEn65zR2yiYGFqb2ApnzDA==", + "dev": true + }, + "regjsparser": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.0.tgz", + "integrity": "sha512-RQ7YyokLiQBomUJuUG8iGVvkgOLxwyZM8k6d3q5SAXpg4r5TZJZigKFvC6PpD+qQ98bCDC5YelPeA3EucDoNeQ==", + "dev": true, + "requires": { + "jsesc": "~0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true + } + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "dev": true + }, + "repeat-element": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", + "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", + "dev": true + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "dev": true + }, + "repeating": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", + "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", + "dev": true, + "requires": { + "is-finite": "^1.0.0" + } + }, + "request": { + "version": "2.88.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", + "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", + "dev": true, + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.0", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.4.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true + }, + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true + }, + "tough-cookie": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", + "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", + "dev": true, + "requires": { + "psl": "^1.1.24", + "punycode": "^1.4.1" + } + } + } + }, + "request-promise-core": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.2.tgz", + "integrity": "sha512-UHYyq1MO8GsefGEt7EprS8UrXsm1TxEvFUX1IMTuSLU2Rh7fTIdFtl8xD7JiEYiWU2dl+NYAjCTksTehQUxPag==", + "dev": true, + "requires": { + "lodash": "^4.17.11" + } + }, + "request-promise-native": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.7.tgz", + "integrity": "sha512-rIMnbBdgNViL37nZ1b3L/VfPOpSi0TqVDQPAvO6U14lMzOLrt5nilxCQqtDKhZeDiW0/hkCXGoQjhgJd/tCh6w==", + "dev": true, + "requires": { + "request-promise-core": "1.1.2", + "stealthy-require": "^1.1.1", + "tough-cookie": "^2.3.3" + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true + }, + "require-main-filename": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "dev": true + }, + "resolve": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.10.0.tgz", + "integrity": "sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "resolve-cwd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", + "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=", + "dev": true, + "requires": { + "resolve-from": "^3.0.0" + } + }, + "resolve-dir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz", + "integrity": "sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=", + "dev": true, + "requires": { + "expand-tilde": "^2.0.0", + "global-modules": "^1.0.0" + } + }, + "resolve-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", + "dev": true + }, + "resolve-pkg": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg/-/resolve-pkg-1.0.0.tgz", + "integrity": "sha1-4ZoV54rKLhJEYdySsuOUPvk0lNk=", + "dev": true, + "requires": { + "resolve-from": "^2.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-2.0.0.tgz", + "integrity": "sha1-lICrIOlP+h2egKgEx+oUdhGWa1c=", + "dev": true + } + } + }, + "resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "dev": true + }, + "restore-cursor": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", + "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", + "dev": true, + "requires": { + "onetime": "^2.0.0", + "signal-exit": "^3.0.2" + } + }, + "ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true + }, + "rimraf": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", + "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, + "ripemd160": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", + "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", + "dev": true, + "requires": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1" + } + }, + "rst-selector-parser": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/rst-selector-parser/-/rst-selector-parser-2.2.3.tgz", + "integrity": "sha1-gbIw6i/MYGbInjRy3nlChdmwPZE=", + "dev": true, + "requires": { + "lodash.flattendeep": "^4.4.0", + "nearley": "^2.7.10" + } + }, + "rsvp": { + "version": "4.8.5", + "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", + "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==", + "dev": true + }, + "run-async": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", + "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", + "dev": true, + "requires": { + "is-promise": "^2.1.0" + } + }, + "run-queue": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", + "integrity": "sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec=", + "dev": true, + "requires": { + "aproba": "^1.1.1" + } + }, + "rxjs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.2.tgz", + "integrity": "sha512-HUb7j3kvb7p7eCUHE3FqjoDsC1xfZQ4AHFWfTKSpZ+sAhhz5X1WX0ZuUqWbzB2QhSLp3DoLUG+hMdEDKqWo2Zg==", + "dev": true, + "requires": { + "tslib": "^1.9.0" + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "safe-json-parse": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/safe-json-parse/-/safe-json-parse-1.0.1.tgz", + "integrity": "sha1-PnZyPjjf3aE8mx0poeB//uSzC1c=", + "dev": true + }, + "safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "dev": true, + "requires": { + "ret": "~0.1.10" + } + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "sane": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz", + "integrity": "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==", + "dev": true, + "requires": { + "@cnakazawa/watch": "^1.0.3", + "anymatch": "^2.0.0", + "capture-exit": "^2.0.0", + "exec-sh": "^0.3.2", + "execa": "^1.0.0", + "fb-watchman": "^2.0.0", + "micromatch": "^3.1.4", + "minimist": "^1.1.1", + "walker": "~1.0.5" + } + }, + "sanitizer": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/sanitizer/-/sanitizer-0.1.3.tgz", + "integrity": "sha1-1PCvdHXZp7ryqeWmEXGLqheKOeE=", + "dev": true + }, + "sass": { + "version": "1.17.3", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.17.3.tgz", + "integrity": "sha512-S4vJawbrNUxJUBiHLXPYUKZCoO6cvq3/3ZFBV66a+PafTxcDEFJB+FHLDFl0P+rUfha/703ajEXMuGTYhJESkQ==", + "dev": true, + "requires": { + "chokidar": "^2.0.0" + } + }, + "sass-graph": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/sass-graph/-/sass-graph-2.2.4.tgz", + "integrity": "sha1-E/vWPNHK8JCLn9k0dq1DpR0eC0k=", + "dev": true, + "requires": { + "glob": "^7.0.0", + "lodash": "^4.0.0", + "scss-tokenizer": "^0.2.3", + "yargs": "^7.0.0" + }, + "dependencies": { + "cliui": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", + "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", + "dev": true, + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wrap-ansi": "^2.0.0" + } + }, + "invert-kv": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", + "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", + "dev": true + }, + "lcid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", + "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", + "dev": true, + "requires": { + "invert-kv": "^1.0.0" + } + }, + "os-locale": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", + "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", + "dev": true, + "requires": { + "lcid": "^1.0.0" + } + }, + "which-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", + "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=", + "dev": true + }, + "y18n": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", + "dev": true + }, + "yargs": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.0.tgz", + "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", + "dev": true, + "requires": { + "camelcase": "^3.0.0", + "cliui": "^3.2.0", + "decamelize": "^1.1.1", + "get-caller-file": "^1.0.1", + "os-locale": "^1.4.0", + "read-pkg-up": "^1.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^1.0.2", + "which-module": "^1.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^5.0.0" + } + }, + "yargs-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz", + "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", + "dev": true, + "requires": { + "camelcase": "^3.0.0" + } + } + } + }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "dev": true + }, + "saxes": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-3.1.9.tgz", + "integrity": "sha512-FZeKhJglhJHk7eWG5YM0z46VHmI3KJpMBAQm3xa9meDvd+wevB5GuBB0wc0exPInZiBBHqi00DbS8AcvCGCFMw==", + "dev": true, + "requires": { + "xmlchars": "^1.3.1" + } + }, + "scheduler": { + "version": "0.13.5", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.13.5.tgz", + "integrity": "sha512-K98vjkQX9OIt/riLhp6F+XtDPtMQhqNcf045vsh+pcuvHq+PHy1xCrH3pq1P40m6yR46lpVvVhKdEOtnimuUJw==", + "dev": true, + "requires": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, + "schema-utils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", + "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "dev": true, + "requires": { + "ajv": "^6.1.0", + "ajv-errors": "^1.0.0", + "ajv-keywords": "^3.1.0" + } + }, + "scss-tokenizer": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz", + "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=", + "dev": true, + "requires": { + "js-base64": "^2.1.8", + "source-map": "^0.4.2" + }, + "dependencies": { + "source-map": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", + "dev": true, + "requires": { + "amdefine": ">=0.0.4" + } + } + } + }, + "semver": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", + "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", + "dev": true + }, + "send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", + "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", + "dev": true, + "requires": { + "debug": "2.6.9", + "depd": "~1.1.2", + "destroy": "~1.0.4", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "~1.7.2", + "mime": "1.6.0", + "ms": "2.1.1", + "on-finished": "~2.3.0", + "range-parser": "~1.2.1", + "statuses": "~1.5.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + }, + "dependencies": { + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + } + } + } + } + }, + "serialize-javascript": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.6.1.tgz", + "integrity": "sha512-A5MOagrPFga4YaKQSWHryl7AXvbQkEqpw4NNYMTNYUNV51bA8ABHgYFpqKx+YFFrw59xMV1qGH1R4AgoNIVgCw==", + "dev": true + }, + "serve-static": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", + "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", + "dev": true, + "requires": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.17.1" + } + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "set-value": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", + "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", + "dev": true + }, + "setprototypeof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", + "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==", + "dev": true + }, + "sha.js": { + "version": "2.4.11", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", + "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", + "dev": true, + "requires": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "shellwords": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", + "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", + "dev": true + }, + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true + }, + "simple-concat": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.0.tgz", + "integrity": "sha1-c0TLuLbib7J9ZrL8hvn21Zl1IcY=", + "dev": true, + "optional": true + }, + "simple-get": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-2.8.1.tgz", + "integrity": "sha512-lSSHRSw3mQNUGPAYRqo7xy9dhKmxFXIjLjp4KHpf99GEH2VH7C3AM+Qfx6du6jhfUi6Vm7XnbEVEf7Wb6N8jRw==", + "dev": true, + "optional": true, + "requires": { + "decompress-response": "^3.3.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" + } + }, + "sisteransi": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.0.tgz", + "integrity": "sha512-N+z4pHB4AmUv0SjveWRd6q1Nj5w62m5jodv+GD8lvmbY/83T/rpbJGZOnK5T149OldDj4Db07BSv9xY4K6NTPQ==", + "dev": true + }, + "slash": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", + "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", + "dev": true + }, + "slice-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", + "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.0", + "astral-regex": "^1.0.0", + "is-fullwidth-code-point": "^2.0.0" + }, + "dependencies": { + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + } + } + }, + "snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "requires": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + } + } + }, + "snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, + "requires": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, + "requires": { + "kind-of": "^3.2.0" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "source-list-map": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", + "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-resolve": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", + "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", + "dev": true, + "requires": { + "atob": "^2.1.1", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "source-map-support": { + "version": "0.5.11", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.11.tgz", + "integrity": "sha512-//sajEx/fGL3iw6fltKMdPvy8kL3kJ2O3iuYlRoT3k9Kb4BjOoZ+BZzaNHeuaruSt+Kf3Zk9tnfAQg9/AJqUVQ==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "source-map-url": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", + "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", + "dev": true + }, + "spdx-correct": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", + "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", + "dev": true, + "requires": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", + "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", + "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", + "dev": true, + "requires": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.3.tgz", + "integrity": "sha512-uBIcIl3Ih6Phe3XHK1NqboJLdGfwr1UN3k6wSD1dZpmPsIkb8AGNbZYJ1fOBk834+Gxy8rpfDxrS6XLEMZMY2g==", + "dev": true + }, + "split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "requires": { + "extend-shallow": "^3.0.0" + } + }, + "sprintf-js": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", + "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==" + }, + "sshpk": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", + "dev": true, + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } + }, + "ssri": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.1.tgz", + "integrity": "sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA==", + "dev": true, + "requires": { + "figgy-pudding": "^3.5.1" + } + }, + "stack-utils": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.2.tgz", + "integrity": "sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA==", + "dev": true + }, + "static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", + "dev": true, + "requires": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, + "statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", + "dev": true + }, + "stdout-stream": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.1.tgz", + "integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==", + "dev": true, + "requires": { + "readable-stream": "^2.0.1" + } + }, + "stealthy-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", + "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=", + "dev": true + }, + "stream-browserify": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", + "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", + "dev": true, + "requires": { + "inherits": "~2.0.1", + "readable-stream": "^2.0.2" + } + }, + "stream-buffers": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/stream-buffers/-/stream-buffers-2.2.0.tgz", + "integrity": "sha1-kdX1Ew0c75bc+n9yaUUYh0HQnuQ=", + "dev": true + }, + "stream-each": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.3.tgz", + "integrity": "sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "stream-shift": "^1.0.0" + } + }, + "stream-http": { + "version": "2.8.3", + "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", + "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", + "dev": true, + "requires": { + "builtin-status-codes": "^3.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.3.6", + "to-arraybuffer": "^1.0.0", + "xtend": "^4.0.0" + } + }, + "stream-shift": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", + "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", + "dev": true + }, + "string-length": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-2.0.0.tgz", + "integrity": "sha1-1A27aGo6zpYMHP/KVivyxF+DY+0=", + "dev": true, + "requires": { + "astral-regex": "^1.0.0", + "strip-ansi": "^4.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + } + } + }, + "string-template": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/string-template/-/string-template-0.2.1.tgz", + "integrity": "sha1-QpMuWYo1LQH8IuwzZ9nYTuxsmt0=", + "dev": true + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "string.prototype.trim": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz", + "integrity": "sha1-0E3iyJ4Tf019IG8Ia17S+ua+jOo=", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "es-abstract": "^1.5.0", + "function-bind": "^1.0.2" + } + }, + "string_decoder": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.2.0.tgz", + "integrity": "sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true + }, + "strip-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", + "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", + "dev": true, + "requires": { + "get-stdin": "^4.0.1" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "symbol-tree": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.2.tgz", + "integrity": "sha1-rifbOPZgp64uHDt9G8KQgZuFGeY=", + "dev": true + }, + "table": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/table/-/table-5.4.1.tgz", + "integrity": "sha512-E6CK1/pZe2N75rGZQotFOdmzWQ1AILtgYbMAbAjvms0S1l5IDB47zG3nCnFGB/w+7nB3vKofbLXCH7HPBo864w==", + "dev": true, + "requires": { + "ajv": "^6.9.1", + "lodash": "^4.17.11", + "slice-ansi": "^2.1.0", + "string-width": "^3.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", + "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", + "dev": true + }, + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + } + } + }, + "tapable": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.1.tgz", + "integrity": "sha512-9I2ydhj8Z9veORCw5PRm4u9uebCn0mcCa6scWoNcbZ6dAtoo2618u9UUzxgmsCOreJpqDDuv61LvwofW7hLcBA==", + "dev": true + }, + "tar": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", + "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", + "dev": true, + "requires": { + "block-stream": "*", + "fstream": "^1.0.2", + "inherits": "2" + } + }, + "tar-fs": { + "version": "1.16.3", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-1.16.3.tgz", + "integrity": "sha512-NvCeXpYx7OsmOh8zIOP/ebG55zZmxLE0etfWRbWok+q2Qo8x/vOR/IJT1taADXPe+jsiu9axDb3X4B+iIgNlKw==", + "dev": true, + "optional": true, + "requires": { + "chownr": "^1.0.1", + "mkdirp": "^0.5.1", + "pump": "^1.0.0", + "tar-stream": "^1.1.2" + }, + "dependencies": { + "pump": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/pump/-/pump-1.0.3.tgz", + "integrity": "sha512-8k0JupWme55+9tCVE+FS5ULT3K6AbgqrGa58lTT49RpyfwwcGedHqaC5LlQNdEAumn/wFsu6aPwkuPMioy8kqw==", + "dev": true, + "optional": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + } + } + }, + "tar-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", + "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", + "dev": true, + "requires": { + "bl": "^1.0.0", + "buffer-alloc": "^1.2.0", + "end-of-stream": "^1.0.0", + "fs-constants": "^1.0.0", + "readable-stream": "^2.3.0", + "to-buffer": "^1.1.1", + "xtend": "^4.0.0" + } + }, + "terser": { + "version": "3.17.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-3.17.0.tgz", + "integrity": "sha512-/FQzzPJmCpjAH9Xvk2paiWrFq+5M6aVOf+2KRbwhByISDX/EujxsK+BAvrhb6H+2rtrLCHK9N01wO014vrIwVQ==", + "dev": true, + "requires": { + "commander": "^2.19.0", + "source-map": "~0.6.1", + "source-map-support": "~0.5.10" + } + }, + "terser-webpack-plugin": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.2.3.tgz", + "integrity": "sha512-GOK7q85oAb/5kE12fMuLdn2btOS9OBZn4VsecpHDywoUC/jLhSAKOiYo0ezx7ss2EXPMzyEWFoE0s1WLE+4+oA==", + "dev": true, + "requires": { + "cacache": "^11.0.2", + "find-cache-dir": "^2.0.0", + "schema-utils": "^1.0.0", + "serialize-javascript": "^1.4.0", + "source-map": "^0.6.1", + "terser": "^3.16.1", + "webpack-sources": "^1.1.0", + "worker-farm": "^1.5.2" + } + }, + "test-exclude": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-5.1.0.tgz", + "integrity": "sha512-gwf0S2fFsANC55fSeSqpb8BYk6w3FDvwZxfNjeF6FRgvFa43r+7wRiA/Q0IxoRU37wB/LE8IQ4221BsNucTaCA==", + "dev": true, + "requires": { + "arrify": "^1.0.1", + "minimatch": "^3.0.4", + "read-pkg-up": "^4.0.0", + "require-main-filename": "^1.0.1" + }, + "dependencies": { + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^4.0.0", + "pify": "^3.0.0", + "strip-bom": "^3.0.0" + } + }, + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "dev": true, + "requires": { + "pify": "^3.0.0" + } + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "dev": true, + "requires": { + "load-json-file": "^4.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^3.0.0" + } + }, + "read-pkg-up": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-4.0.0.tgz", + "integrity": "sha512-6etQSH7nJGsK0RbG/2TeDzZFa8shjQ1um+SwQQ5cwKy0dhSXdOncEhb1CPpvQG4h7FyOV6EB6YlV0yJvZQNAkA==", + "dev": true, + "requires": { + "find-up": "^3.0.0", + "read-pkg": "^3.0.0" + } + } + } + }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", + "dev": true + }, + "throat": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/throat/-/throat-4.1.0.tgz", + "integrity": "sha1-iQN8vJLFarGJJua6TLsgDhVnKmo=", + "dev": true + }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true + }, + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "timers-browserify": { + "version": "2.0.10", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.10.tgz", + "integrity": "sha512-YvC1SV1XdOUaL6gx5CoGroT3Gu49pK9+TZ38ErPldOWW4j49GI1HKs9DV+KGq/w6y+LZ72W1c8cKz2vzY+qpzg==", + "dev": true, + "requires": { + "setimmediate": "^1.0.4" + } + }, + "tiny-lr": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/tiny-lr/-/tiny-lr-1.1.1.tgz", + "integrity": "sha512-44yhA3tsaRoMOjQQ+5v5mVdqef+kH6Qze9jTpqtVufgYjYt08zyZAwNwwVBj3i1rJMnR52IxOW0LK0vBzgAkuA==", + "dev": true, + "requires": { + "body": "^5.1.0", + "debug": "^3.1.0", + "faye-websocket": "~0.10.0", + "livereload-js": "^2.3.0", + "object-assign": "^4.1.0", + "qs": "^6.4.0" + }, + "dependencies": { + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "dev": true, + "requires": { + "os-tmpdir": "~1.0.2" + } + }, + "tmpl": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.4.tgz", + "integrity": "sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE=", + "dev": true + }, + "to-arraybuffer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", + "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", + "dev": true + }, + "to-buffer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz", + "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==", + "dev": true + }, + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true + }, + "to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "requires": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + } + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + } + }, + "toidentifier": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", + "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", + "dev": true + }, + "tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dev": true, + "requires": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + }, + "tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "trim-newlines": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", + "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", + "dev": true + }, + "trim-right": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", + "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", + "dev": true + }, + "true-case-path": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/true-case-path/-/true-case-path-1.0.3.tgz", + "integrity": "sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew==", + "dev": true, + "requires": { + "glob": "^7.1.2" + } + }, + "ts-jest": { + "version": "24.0.2", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-24.0.2.tgz", + "integrity": "sha512-h6ZCZiA1EQgjczxq+uGLXQlNgeg02WWJBbeT8j6nyIBRQdglqbvzDoHahTEIiS6Eor6x8mK6PfZ7brQ9Q6tzHw==", + "dev": true, + "requires": { + "bs-logger": "0.x", + "buffer-from": "1.x", + "fast-json-stable-stringify": "2.x", + "json5": "2.x", + "make-error": "1.x", + "mkdirp": "0.x", + "resolve": "1.x", + "semver": "^5.5", + "yargs-parser": "10.x" + } + }, + "tslib": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz", + "integrity": "sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==", + "dev": true + }, + "tty-browserify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", + "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", + "dev": true + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "dev": true + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2" + } + }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true + }, + "type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "dev": true, + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "dependencies": { + "mime-db": { + "version": "1.40.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", + "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", + "dev": true + }, + "mime-types": { + "version": "2.1.24", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", + "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", + "dev": true, + "requires": { + "mime-db": "1.40.0" + } + } + } + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", + "dev": true + }, + "typescript": { + "version": "3.3.4000", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.3.4000.tgz", + "integrity": "sha512-jjOcCZvpkl2+z7JFn0yBOoLQyLoIkNZAs/fYJkUG6VKy6zLPHJGfQJYFHzibB6GJaF/8QrcECtlQ5cpvRHSMEA==", + "dev": true + }, + "uglify-js": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.5.2.tgz", + "integrity": "sha512-imog1WIsi9Yb56yRt5TfYVxGmnWs3WSGU73ieSOlMVFwhJCA9W8fqFFMMj4kgDqiS/80LGdsYnWL7O9UcjEBlg==", + "dev": true, + "requires": { + "commander": "~2.19.0", + "source-map": "~0.6.1" + } + }, + "unc-path-regex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", + "integrity": "sha1-5z3T17DXxe2G+6xrCufYxqadUPo=", + "dev": true + }, + "underscore": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", + "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==" + }, + "underscore.string": { + "version": "3.3.5", + "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-3.3.5.tgz", + "integrity": "sha512-g+dpmgn+XBneLmXXo+sGlW5xQEt4ErkS3mgeN2GFbremYeMBSJKr9Wf2KJplQVaiPY/f7FN6atosWYNm9ovrYg==", + "requires": { + "sprintf-js": "^1.0.3", + "util-deprecate": "^1.0.2" + } + }, + "unicode-canonical-property-names-ecmascript": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz", + "integrity": "sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==", + "dev": true + }, + "unicode-match-property-ecmascript": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz", + "integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==", + "dev": true, + "requires": { + "unicode-canonical-property-names-ecmascript": "^1.0.4", + "unicode-property-aliases-ecmascript": "^1.0.4" + } + }, + "unicode-match-property-value-ecmascript": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.1.0.tgz", + "integrity": "sha512-hDTHvaBk3RmFzvSl0UVrUmC3PuW9wKVnpoUDYH0JDkSIovzw+J5viQmeYHxVSBptubnr7PbH2e0fnpDRQnQl5g==", + "dev": true + }, + "unicode-property-aliases-ecmascript": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.5.tgz", + "integrity": "sha512-L5RAqCfXqAwR3RriF8pM0lU0w4Ryf/GgzONwi6KnL1taJQa7x1TCxdJnILX59WIGOwR57IVxn7Nej0fz1Ny6fw==", + "dev": true + }, + "union-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", + "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", + "dev": true, + "requires": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^0.4.3" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "set-value": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", + "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.1", + "to-object-path": "^0.3.0" + } + } + } + }, + "unique-filename": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", + "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", + "dev": true, + "requires": { + "unique-slug": "^2.0.0" + } + }, + "unique-slug": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.1.tgz", + "integrity": "sha512-n9cU6+gITaVu7VGj1Z8feKMmfAjEAQGhwD9fE3zvpRRa0wEIx8ODYkVGfSc94M2OX00tUFV8wH3zYbm1I8mxFg==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4" + } + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", + "dev": true + }, + "unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "dev": true, + "requires": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "dev": true, + "requires": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "dev": true + } + } + }, + "upath": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/upath/-/upath-1.1.2.tgz", + "integrity": "sha512-kXpym8nmDmlCBr7nKdIx8P2jNBa+pBpIUFRnKJ4dr8htyYGJFokkr2ZvERRtUN+9SY+JqXouNgUPtv6JQva/2Q==", + "dev": true + }, + "uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + } + }, + "uri-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/uri-path/-/uri-path-1.0.0.tgz", + "integrity": "sha1-l0fwGDWJM8Md4PzP2C0TjmcmLjI=", + "dev": true + }, + "urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "dev": true + }, + "url": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", + "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", + "dev": true, + "requires": { + "punycode": "1.3.2", + "querystring": "0.2.0" + }, + "dependencies": { + "punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", + "dev": true + } + } + }, + "use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "dev": true + }, + "util": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz", + "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==", + "dev": true, + "requires": { + "inherits": "2.0.3" + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + }, + "util.promisify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.0.tgz", + "integrity": "sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "object.getownpropertydescriptors": "^2.0.3" + } + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", + "dev": true + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", + "dev": true + }, + "v8flags": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-3.1.2.tgz", + "integrity": "sha512-MtivA7GF24yMPte9Rp/BWGCYQNaUj86zeYxV/x2RRJMKagImbbv3u8iJC57lNhWLPcGLJmHcHmFWkNsplbbLWw==", + "dev": true, + "requires": { + "homedir-polyfill": "^1.0.1" + } + }, + "validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "requires": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", + "dev": true + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "dev": true, + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "vkbeautify": { + "version": "0.99.3", + "resolved": "https://registry.npmjs.org/vkbeautify/-/vkbeautify-0.99.3.tgz", + "integrity": "sha512-2ozZEFfmVvQcHWoHLNuiKlUfDKlhh4KGsy54U0UrlLMR1SO+XKAIDqBxtBwHgNrekurlJwE8A9K6L49T78ZQ9Q==", + "dev": true + }, + "vm-browserify": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz", + "integrity": "sha1-XX6kW7755Kb/ZflUOOCofDV9WnM=", + "dev": true, + "requires": { + "indexof": "0.0.1" + } + }, + "w3c-hr-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz", + "integrity": "sha1-gqwr/2PZUOqeMYmlimViX+3xkEU=", + "dev": true, + "requires": { + "browser-process-hrtime": "^0.1.2" + } + }, + "w3c-xmlserializer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-1.0.1.tgz", + "integrity": "sha512-XZGI1OH/OLQr/NaJhhPmzhngwcAnZDLytsvXnRmlYeRkmbb0I7sqFFA22erq4WQR0sUu17ZSQOAV9mFwCqKRNg==", + "dev": true, + "requires": { + "domexception": "^1.0.1", + "webidl-conversions": "^4.0.2", + "xml-name-validator": "^3.0.0" + } + }, + "walkdir": { + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/walkdir/-/walkdir-0.0.11.tgz", + "integrity": "sha1-oW0CXrkxvQO1LzCMrtD0D86+lTI=", + "dev": true + }, + "walker": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.7.tgz", + "integrity": "sha1-L3+bj9ENZ3JisYqITijRlhjgKPs=", + "dev": true, + "requires": { + "makeerror": "1.0.x" + } + }, + "watchpack": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", + "integrity": "sha512-i6dHe3EyLjMmDlU1/bGQpEw25XSjkJULPuAVKCbNRefQVq48yXKUpwg538F7AZTf9kyr57zj++pQFltUa5H7yA==", + "dev": true, + "requires": { + "chokidar": "^2.0.2", + "graceful-fs": "^4.1.2", + "neo-async": "^2.5.0" + } + }, + "webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", + "dev": true + }, + "webpack": { + "version": "4.29.6", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.29.6.tgz", + "integrity": "sha512-MwBwpiE1BQpMDkbnUUaW6K8RFZjljJHArC6tWQJoFm0oQtfoSebtg4Y7/QHnJ/SddtjYLHaKGX64CFjG5rehJw==", + "dev": true, + "requires": { + "@webassemblyjs/ast": "1.8.5", + "@webassemblyjs/helper-module-context": "1.8.5", + "@webassemblyjs/wasm-edit": "1.8.5", + "@webassemblyjs/wasm-parser": "1.8.5", + "acorn": "^6.0.5", + "acorn-dynamic-import": "^4.0.0", + "ajv": "^6.1.0", + "ajv-keywords": "^3.1.0", + "chrome-trace-event": "^1.0.0", + "enhanced-resolve": "^4.1.0", + "eslint-scope": "^4.0.0", + "json-parse-better-errors": "^1.0.2", + "loader-runner": "^2.3.0", + "loader-utils": "^1.1.0", + "memory-fs": "~0.4.1", + "micromatch": "^3.1.8", + "mkdirp": "~0.5.0", + "neo-async": "^2.5.0", + "node-libs-browser": "^2.0.0", + "schema-utils": "^1.0.0", + "tapable": "^1.1.0", + "terser-webpack-plugin": "^1.1.0", + "watchpack": "^1.5.0", + "webpack-sources": "^1.3.0" + }, + "dependencies": { + "acorn": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-6.1.1.tgz", + "integrity": "sha512-jPTiwtOxaHNaAPg/dmrJ/beuzLRnXtB0kQPQ8JpotKJgTB6rX6c8mlf315941pyjBSaPg8NHXS9fhP4u17DpGA==", + "dev": true + } + } + }, + "webpack-sources": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.3.0.tgz", + "integrity": "sha512-OiVgSrbGu7NEnEvQJJgdSFPl2qWKkWq5lHMhgiToIiN9w34EBnjYzSYs+VbL5KoYiLNtFFa7BZIKxRED3I32pA==", + "dev": true, + "requires": { + "source-list-map": "^2.0.0", + "source-map": "~0.6.1" + } + }, + "websocket-driver": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.0.tgz", + "integrity": "sha1-DK+dLXVdk67gSdS90NP+LMoqJOs=", + "dev": true, + "requires": { + "http-parser-js": ">=0.4.0", + "websocket-extensions": ">=0.1.1" + } + }, + "websocket-extensions": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.3.tgz", + "integrity": "sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg==", + "dev": true + }, + "whatwg-encoding": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", + "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", + "dev": true, + "requires": { + "iconv-lite": "0.4.24" + } + }, + "whatwg-mimetype": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", + "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", + "dev": true + }, + "whatwg-url": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-6.5.0.tgz", + "integrity": "sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ==", + "dev": true, + "requires": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true + }, + "which-pm-runs": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.0.0.tgz", + "integrity": "sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs=", + "dev": true, + "optional": true + }, + "wide-align": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", + "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", + "dev": true, + "requires": { + "string-width": "^1.0.2 || 2" + } + }, + "wordwrap": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", + "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", + "dev": true + }, + "worker-farm": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.6.0.tgz", + "integrity": "sha512-6w+3tHbM87WnSWnENBUvA2pxJPLhQUg5LKwUQHq3r+XPhIM+Gh2R5ycbwPCyuGbNg+lPgdcnQUhuC02kJCvffQ==", + "dev": true, + "requires": { + "errno": "~0.1.7" + } + }, + "wrap-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "dev": true, + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "write": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/write/-/write-1.0.3.tgz", + "integrity": "sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig==", + "dev": true, + "requires": { + "mkdirp": "^0.5.1" + } + }, + "write-file-atomic": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.1.tgz", + "integrity": "sha512-TGHFeZEZMnv+gBFRfjAcxL5bPHrsGKtnb4qsFAws7/vlh+QfwAaySIw4AXP9ZskTTh5GWu3FLuJhsWVdiJPGvg==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.2" + } + }, + "ws": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.0.tgz", + "integrity": "sha512-deZYUNlt2O4buFCa3t5bKLf8A7FPP/TVjwOeVNpw818Ma5nk4MLXls2eoEGS39o8119QIYxTrTDoPQ5B/gTD6w==", + "dev": true, + "requires": { + "async-limiter": "~1.0.0" + } + }, + "xml-name-validator": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", + "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", + "dev": true + }, + "xml2js": { + "version": "0.4.19", + "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.4.19.tgz", + "integrity": "sha512-esZnJZJOiJR9wWKMyuvSE1y6Dq5LCuJanqhxslH2bxM6duahNZ+HMpCLhBQGZkbX6xRf8x1Y2eJlgt2q3qo49Q==", + "dev": true, + "requires": { + "sax": ">=0.6.0", + "xmlbuilder": "~9.0.1" + } + }, + "xmlbuilder": { + "version": "9.0.7", + "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz", + "integrity": "sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0=", + "dev": true + }, + "xmlchars": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-1.3.1.tgz", + "integrity": "sha512-tGkGJkN8XqCod7OT+EvGYK5Z4SfDQGD30zAa58OcnAa0RRWgzUEK72tkXhsX1FZd+rgnhRxFtmO+ihkp8LHSkw==", + "dev": true + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + }, + "y18n": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", + "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", + "dev": true + }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", + "dev": true + }, + "yargs": { + "version": "12.0.5", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", + "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", + "dev": true, + "requires": { + "cliui": "^4.0.0", + "decamelize": "^1.2.0", + "find-up": "^3.0.0", + "get-caller-file": "^1.0.1", + "os-locale": "^3.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1 || ^4.0.0", + "yargs-parser": "^11.1.1" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "camelcase": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.0.tgz", + "integrity": "sha512-Y05ICatFYPAfykDIB7VdwSJ0LUl1yq/BwO2OpyGGLjiRe1fgzTwVypPiWnzkGFOVFHXrCXUNBl86bpjBhZWSJg==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + }, + "yargs-parser": { + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", + "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } + }, + "yargs-parser": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", + "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", + "dev": true, + "requires": { + "camelcase": "^4.1.0" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + } + } + }, + "zip-stream": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/zip-stream/-/zip-stream-1.2.0.tgz", + "integrity": "sha1-qLxF9MG0lpnGuQGYuqyqzbzUugQ=", + "dev": true, + "requires": { + "archiver-utils": "^1.3.0", + "compress-commons": "^1.2.0", + "lodash": "^4.8.0", + "readable-stream": "^2.0.0" + } + }, + "zone.js": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.9.1.tgz", + "integrity": "sha512-GkPiJL8jifSrKReKaTZ5jkhrMEgXbXYC+IPo1iquBjayRa0q86w3Dipjn8b415jpitMExe9lV8iTsv8tk3DGag==", + "dev": true + } + } +} diff --git a/data/plugins/grafana-flowcharting/package.json b/data/plugins/grafana-flowcharting/package.json new file mode 100644 index 0000000000000..6197db80c9166 --- /dev/null +++ b/data/plugins/grafana-flowcharting/package.json @@ -0,0 +1,98 @@ +{ + "name": "flowcharting", + "private": true, + "version": "0.4.0", + "description": "flow charting plugin for Grafana", + "main": "src/module.js", + "scripts": { + "test": "jest --config jest.config.js", + "build": "grunt" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/algenty/grafana-flowcharting" + }, + "author": "Arnaud GENTY", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/algenty/grafana-flowcharting/issues" + }, + "homepage": "https://github.com/algenty/grafana-flowcharting", + "jest": { + "testEnvironment": "node" + }, + "devDependencies": { + "@angular/common": "^7.2.12", + "@angular/compiler": "^7.2.12", + "@angular/core": "^7.2.12", + "@angular/platform-browser": "^7.2.12", + "@angular/platform-browser-dynamic": "^7.2.12", + "@babel/cli": "^7.2.3", + "@babel/core": "^7.2.2", + "@babel/plugin-proposal-class-properties": "^7.3.4", + "@babel/preset-env": "^7.3.1", + "@types/jest": "^24.0.11", + "angular": "^1.7.8", + "angular-mock": "^1.0.0", + "babel-core": "^6.26.3", + "babel-jest": "^24.5.0", + "babel-loader": "^8.0.5", + "babel-polyfill": "^6.26.0", + "babel-preset-es2015": "^6.24.1", + "babel-preset-react-app": "^7.0.2", + "babel-preset-stage-0": "^6.24.1", + "chartist": "^0.11.4", + "enzyme": "^3.9.0", + "enzyme-adapter-react-16": "^1.11.2", + "enzyme-to-json": "^3.3.5", + "eslint": "^5.16.0", + "eslint-config-airbnb": "^17.1.0", + "eslint-plugin-import": "^2.17.1", + "eslint-plugin-jsx-a11y": "^6.1.1", + "eslint-plugin-react": "^7.11.0", + "express": "^4.16.4", + "grunt": "^1.0.4", + "grunt-babel": "^8.0.0", + "grunt-cli": "^1.3.2", + "grunt-contrib-clean": "~2.0.0", + "grunt-contrib-compress": "^1.4.3", + "grunt-contrib-concat": "^1.0.1", + "grunt-contrib-copy": "^1.0.0", + "grunt-contrib-sass": "^1.0.0", + "grunt-contrib-uglify": "~4.0.0", + "grunt-contrib-watch": "^1.1.0", + "grunt-git": "^1.0.14", + "grunt-sass": "^3.0.2", + "grunt-ts": "^6.0.0-beta.22", + "grunt-webpack": "^3.1.3", + "jest": "^24.5.0", + "jest-cli": "^24.5.0", + "jest-dom": "^3.1.3", + "jest-haste-map": "^24.7.1", + "jest-mock": "^24.5.0", + "jest-nock": "^0.1.7", + "jest-preset-angular": "^7.0.1", + "jest-resolve": "^24.7.1", + "jest-transform-stub": "^2.0.0", + "jquery": "^3.4.1", + "load-grunt-tasks": "~4.0.0", + "lodash": "^4.17.11", + "moment": "^2.24.0", + "mxgraph": "^4.0.4", + "node": "^11.9.0", + "node-sass": "^4.11.0", + "pako": "^1.0.10", + "prettier": "^1.17.0", + "react": "^16.8.6", + "react-dom": "^16.8.6", + "sanitizer": "^0.1.3", + "sass": "^1.0.0-beta.3", + "ts-jest": "^24.0.1", + "typescript": "^3.3.4000", + "vkbeautify": "^0.99.3", + "webpack": "^4.29.1" + }, + "dependencies": { + "eslint-config-airbnb-base": "^13.1.0" + } +} diff --git a/data/plugins/grafana-flowcharting/src/Graph.js b/data/plugins/grafana-flowcharting/src/Graph.js new file mode 100644 index 0000000000000..6b11dc5362049 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/Graph.js @@ -0,0 +1,7336 @@ +/** + * Copyright (c) 2006-2012, JGraph Ltd + */ +// Workaround for allowing target="_blank" in HTML sanitizer +// see https://code.google.com/p/google-caja/issues/detail?can=2&q=&colspec=ID%20Type%20Status%20Priority%20Owner%20Summary&groupby=&sort=&id=1296 + +module.exports = function (urlParams) { + if (typeof html4 !== 'undefined') { + html4.ATTRIBS["a::target"] = 0; + html4.ATTRIBS["source::src"] = 0; + html4.ATTRIBS["video::src"] = 0; + // Would be nice for tooltips but probably a security risk... + //html4.ATTRIBS["video::autoplay"] = 0; + //html4.ATTRIBS["video::autobuffer"] = 0; + } + + /** + * Sets global constants. + */ + // Changes default colors + mxConstants.SHADOW_OPACITY = 0.25; + mxConstants.SHADOWCOLOR = '#000000'; + mxConstants.VML_SHADOWCOLOR = '#d0d0d0'; + mxGraph.prototype.pageBreakColor = '#c0c0c0'; + mxGraph.prototype.pageScale = 1; + + // Letter page format is default in US, Canada and Mexico + (function () { + try { + if (navigator != null && navigator.language != null) { + var lang = navigator.language.toLowerCase(); + mxGraph.prototype.pageFormat = (lang === 'en-us' || lang === 'en-ca' || lang === 'es-mx') ? + mxConstants.PAGE_FORMAT_LETTER_PORTRAIT : mxConstants.PAGE_FORMAT_A4_PORTRAIT; + } + } + catch (e) { + // ignore + } + })(); + + // Matches label positions of mxGraph 1.x + mxText.prototype.baseSpacingTop = 5; + mxText.prototype.baseSpacingBottom = 1; + + // Keeps edges between relative child cells inside parent + mxGraphModel.prototype.ignoreRelativeEdgeParent = false; + + // Defines grid properties + mxGraphView.prototype.gridImage = (mxClient.IS_SVG) ? 'data:image/gif;base64,R0lGODlhCgAKAJEAAAAAAP///8zMzP///yH5BAEAAAMALAAAAAAKAAoAAAIJ1I6py+0Po2wFADs=' : + IMAGE_PATH + '/grid.gif'; + mxGraphView.prototype.gridSteps = 4; + mxGraphView.prototype.minGridSize = 4; + + // UrlParams is null in embed mode + mxGraphView.prototype.gridColor = '#e0e0e0'; + + // Alternative text for unsupported foreignObjects + mxSvgCanvas2D.prototype.foAltText = '[Not supported by viewer]'; + + // Hook for custom constraints + mxShape.prototype.getConstraints = function (style) { + return null; + }; + + /** + * Constructs a new graph instance. Note that the constructor does not take a + * container because the graph instance is needed for creating the UI, which + * in turn will create the container for the graph. Hence, the container is + * assigned later in EditorUi. + */ + /** + * Defines graph class. + */ + var Graph = function (container, model, renderHint, stylesheet, themes) { + mxGraph.call(this, container, model, renderHint, stylesheet); + + this.themes = themes || this.defaultThemes; + this.currentEdgeStyle = mxUtils.clone(this.defaultEdgeStyle); + this.currentVertexStyle = mxUtils.clone(this.defaultVertexStyle); + + // Sets the base domain URL and domain path URL for relative links. + var b = this.baseUrl; + var p = b.indexOf('//'); + this.domainUrl = ''; + this.domainPathUrl = ''; + + if (p > 0) { + var d = b.indexOf('/', p + 2); + + if (d > 0) { + this.domainUrl = b.substring(0, d); + } + + d = b.lastIndexOf('/'); + + if (d > 0) { + this.domainPathUrl = b.substring(0, d + 1); + } + } + + // Adds support for HTML labels via style. Note: Currently, only the Java + // backend supports HTML labels but CSS support is limited to the following: + // http://docs.oracle.com/javase/6/docs/api/index.html?javax/swing/text/html/CSS.html + // TODO: Wrap should not affect isHtmlLabel output (should be handled later) + this.isHtmlLabel = function (cell) { + var state = this.view.getState(cell); + var style = (state != null) ? state.style : this.getCellStyle(cell); + + return style['html'] == '1' || style[mxConstants.STYLE_WHITE_SPACE] == 'wrap'; + }; + + // Implements a listener for hover and click handling on edges + if (this.edgeMode) { + var start = { + point: null, + event: null, + state: null, + handle: null, + selected: false + }; + + // Uses this event to process mouseDown to check the selection state before it is changed + this.addListener(mxEvent.FIRE_MOUSE_EVENT, mxUtils.bind(this, function (sender, evt) { + if (evt.getProperty('eventName') == 'mouseDown' && this.isEnabled()) { + var me = evt.getProperty('event'); + + if (!mxEvent.isControlDown(me.getEvent()) && !mxEvent.isShiftDown(me.getEvent())) { + var state = me.getState(); + + if (state != null) { + // Checks if state was removed in call to stopEditing above + if (this.model.isEdge(state.cell)) { + start.point = new mxPoint(me.getGraphX(), me.getGraphY()); + start.selected = this.isCellSelected(state.cell); + start.state = state; + start.event = me; + + if (state.text != null && state.text.boundingBox != null && + mxUtils.contains(state.text.boundingBox, me.getGraphX(), me.getGraphY())) { + start.handle = mxEvent.LABEL_HANDLE; + } + else { + var handler = this.selectionCellsHandler.getHandler(state.cell); + + if (handler != null && handler.bends != null && handler.bends.length > 0) { + start.handle = handler.getHandleForEvent(me); + } + } + } + } + } + } + })); + + var mouseDown = null; + + this.addMouseListener( + { + mouseDown: function (sender, me) { }, + mouseMove: mxUtils.bind(this, function (sender, me) { + // Checks if any other handler is active + var handlerMap = this.selectionCellsHandler.handlers.map; + for (var key in handlerMap) { + if (handlerMap[key].index != null) { + return; + } + } + + if (this.isEnabled() && !this.panningHandler.isActive() && !mxEvent.isControlDown(me.getEvent()) && + !mxEvent.isShiftDown(me.getEvent()) && !mxEvent.isAltDown(me.getEvent())) { + var tol = this.tolerance; + + if (start.point != null && start.state != null && start.event != null) { + var state = start.state; + + if (Math.abs(start.point.x - me.getGraphX()) > tol || + Math.abs(start.point.y - me.getGraphY()) > tol) { + // Lazy selection for edges inside groups + if (!this.isCellSelected(state.cell)) { + this.setSelectionCell(state.cell); + } + + var handler = this.selectionCellsHandler.getHandler(state.cell); + + if (handler != null && handler.bends != null && handler.bends.length > 0) { + var handle = handler.getHandleForEvent(start.event); + var edgeStyle = this.view.getEdgeStyle(state); + var entity = edgeStyle == mxEdgeStyle.EntityRelation; + + // Handles special case where label was clicked on unselected edge in which + // case the label will be moved regardless of the handle that is returned + if (!start.selected && start.handle == mxEvent.LABEL_HANDLE) { + handle = start.handle; + } + + if (!entity || handle == 0 || handle == handler.bends.length - 1 || handle == mxEvent.LABEL_HANDLE) { + // Source or target handle or connected for direct handle access or orthogonal line + // with just two points where the central handle is moved regardless of mouse position + if (handle == mxEvent.LABEL_HANDLE || handle == 0 || state.visibleSourceState != null || + handle == handler.bends.length - 1 || state.visibleTargetState != null) { + if (!entity && handle != mxEvent.LABEL_HANDLE) { + var pts = state.absolutePoints; + + // Default case where handles are at corner points handles + // drag of corner as drag of existing point + if (pts != null && ((edgeStyle == null && handle == null) || + edgeStyle == mxEdgeStyle.OrthConnector)) { + // Does not use handles if they were not initially visible + handle = start.handle; + + if (handle == null) { + var box = new mxRectangle(start.point.x, start.point.y); + box.grow(mxEdgeHandler.prototype.handleImage.width / 2); + + if (mxUtils.contains(box, pts[0].x, pts[0].y)) { + // Moves source terminal handle + handle = 0; + } + else if (mxUtils.contains(box, pts[pts.length - 1].x, pts[pts.length - 1].y)) { + // Moves target terminal handle + handle = handler.bends.length - 1; + } + else { + // Checks if edge has no bends + var nobends = edgeStyle != null && (pts.length == 2 || (pts.length == 3 && + ((Math.round(pts[0].x - pts[1].x) == 0 && Math.round(pts[1].x - pts[2].x) == 0) || + (Math.round(pts[0].y - pts[1].y) == 0 && Math.round(pts[1].y - pts[2].y) == 0)))); + + if (nobends) { + // Moves central handle for straight orthogonal edges + handle = 2; + } + else { + // Finds and moves vertical or horizontal segment + handle = mxUtils.findNearestSegment(state, start.point.x, start.point.y); + + // Converts segment to virtual handle index + if (edgeStyle == null) { + handle = mxEvent.VIRTUAL_HANDLE - handle; + } + // Maps segment to handle + else { + handle += 1; + } + } + } + } + } + + // Creates a new waypoint and starts moving it + if (handle == null) { + handle = mxEvent.VIRTUAL_HANDLE; + } + } + + handler.start(me.getGraphX(), me.getGraphX(), handle); + start.state = null; + start.event = null; + start.point = null; + start.handle = null; + start.selected = false; + me.consume(); + + // Removes preview rectangle in graph handler + this.graphHandler.reset(); + } + } + else if (entity && (state.visibleSourceState != null || state.visibleTargetState != null)) { + // Disables moves on entity to make it consistent + this.graphHandler.reset(); + me.consume(); + } + } + } + } + else { + // Updates cursor for unselected edges under the mouse + var state = me.getState(); + + if (state != null) { + // Checks if state was removed in call to stopEditing above + if (this.model.isEdge(state.cell)) { + var cursor = null; + var pts = state.absolutePoints; + + if (pts != null) { + var box = new mxRectangle(me.getGraphX(), me.getGraphY()); + box.grow(mxEdgeHandler.prototype.handleImage.width / 2); + + if (state.text != null && state.text.boundingBox != null && + mxUtils.contains(state.text.boundingBox, me.getGraphX(), me.getGraphY())) { + cursor = 'move'; + } + else if (mxUtils.contains(box, pts[0].x, pts[0].y) || + mxUtils.contains(box, pts[pts.length - 1].x, pts[pts.length - 1].y)) { + cursor = 'pointer'; + } + else if (state.visibleSourceState != null || state.visibleTargetState != null) { + // Moving is not allowed for entity relation but still indicate hover state + var tmp = this.view.getEdgeStyle(state); + cursor = 'crosshair'; + + if (tmp != mxEdgeStyle.EntityRelation && this.isOrthogonal(state)) { + var idx = mxUtils.findNearestSegment(state, me.getGraphX(), me.getGraphY()); + + if (idx < pts.length - 1 && idx >= 0) { + cursor = (Math.round(pts[idx].x - pts[idx + 1].x) == 0) ? + 'col-resize' : 'row-resize'; + } + } + } + } + + if (cursor != null) { + state.setCursor(cursor); + } + } + } + } + } + }), + mouseUp: mxUtils.bind(this, function (sender, me) { + start.state = null; + start.event = null; + start.point = null; + start.handle = null; + }) + }); + } + + // HTML entities are displayed as plain text in wrapped plain text labels + this.cellRenderer.getLabelValue = function (state) { + var result = mxCellRenderer.prototype.getLabelValue.apply(this, arguments); + + if (state.view.graph.isHtmlLabel(state.cell)) { + if (state.style['html'] != 1) { + result = mxUtils.htmlEntities(result, false); + } + else { + result = state.view.graph.sanitizeHtml(result); + } + } + + return result; + }; + + // All code below not available and not needed in embed mode + if (typeof mxVertexHandler !== 'undefined') { + this.setConnectable(true); + this.setDropEnabled(true); + this.setPanning(true); + this.setTooltips(true); + this.setAllowLoops(true); + this.allowAutoPanning = true; + this.resetEdgesOnConnect = false; + this.constrainChildren = false; + this.constrainRelativeChildren = true; + + // Do not scroll after moving cells + this.graphHandler.scrollOnMove = false; + this.graphHandler.scaleGrid = true; + + // Disables cloning of connection sources by default + this.connectionHandler.setCreateTarget(false); + this.connectionHandler.insertBeforeSource = true; + + // Disables built-in connection starts + this.connectionHandler.isValidSource = function (cell, me) { + return false; + }; + + // Sets the style to be used when an elbow edge is double clicked + this.alternateEdgeStyle = 'vertical'; + if (stylesheet == null) { + this.loadStylesheet(); + } + + // Adds page centers to the guides for moving cells + var graphHandlerGetGuideStates = this.graphHandler.getGuideStates; + this.graphHandler.getGuideStates = function () { + var result = graphHandlerGetGuideStates.apply(this, arguments); + + // Create virtual cell state for page centers + if (this.graph.pageVisible) { + var guides = []; + + var pf = this.graph.pageFormat; + var ps = this.graph.pageScale; + var pw = pf.width * ps; + var ph = pf.height * ps; + var t = this.graph.view.translate; + var s = this.graph.view.scale; + + var layout = this.graph.getPageLayout(); + + for (var i = 0; i < layout.width; i++) { + guides.push(new mxRectangle(((layout.x + i) * pw + t.x) * s, + (layout.y * ph + t.y) * s, pw * s, ph * s)); + } + + for (var j = 0; j < layout.height; j++) { + guides.push(new mxRectangle((layout.x * pw + t.x) * s, + ((layout.y + j) * ph + t.y) * s, pw * s, ph * s)); + } + + // Page center guides have predence over normal guides + result = guides.concat(result); + } + + return result; + }; + + // Overrides zIndex for dragElement + mxDragSource.prototype.dragElementZIndex = mxPopupMenu.prototype.zIndex; + + // Overrides color for virtual guides for page centers + mxGuide.prototype.getGuideColor = function (state, horizontal) { + return (state.cell == null) ? '#ffa500' /* orange */ : mxConstants.GUIDE_COLOR; + }; + + // Changes color of move preview for black backgrounds + this.graphHandler.createPreviewShape = function (bounds) { + this.previewColor = (this.graph.background == '#000000') ? '#ffffff' : mxGraphHandler.prototype.previewColor; + + return mxGraphHandler.prototype.createPreviewShape.apply(this, arguments); + }; + + // Handles parts of cells by checking if part=1 is in the style and returning the parent + // if the parent is not already in the list of cells. container style is used to disable + // step into swimlanes and dropTarget style is used to disable acting as a drop target. + // LATER: Handle recursive parts + this.graphHandler.getCells = function (initialCell) { + var cells = mxGraphHandler.prototype.getCells.apply(this, arguments); + var newCells = []; + + for (var i = 0; i < cells.length; i++) { + var state = this.graph.view.getState(cells[i]); + var style = (state != null) ? state.style : this.graph.getCellStyle(cells[i]); + + if (mxUtils.getValue(style, 'part', '0') == '1') { + var parent = this.graph.model.getParent(cells[i]); + + if (this.graph.model.isVertex(parent) && mxUtils.indexOf(cells, parent) < 0) { + newCells.push(parent); + } + } + else { + newCells.push(cells[i]); + } + } + + return newCells; + }; + + // Handles parts of cells when cloning the source for new connections + this.connectionHandler.createTargetVertex = function (evt, source) { + var state = this.graph.view.getState(source); + var style = (state != null) ? state.style : this.graph.getCellStyle(source); + + if (mxUtils.getValue(style, 'part', false)) { + var parent = this.graph.model.getParent(source); + + if (this.graph.model.isVertex(parent)) { + source = parent; + } + } + + return mxConnectionHandler.prototype.createTargetVertex.apply(this, arguments); + }; + + var rubberband = new mxRubberband(this); + + this.getRubberband = function () { + return rubberband; + }; + + // Timer-based activation of outline connect in connection handler + var startTime = new Date().getTime(); + var timeOnTarget = 0; + + var connectionHandlerMouseMove = this.connectionHandler.mouseMove; + + this.connectionHandler.mouseMove = function () { + var prev = this.currentState; + connectionHandlerMouseMove.apply(this, arguments); + + if (prev != this.currentState) { + startTime = new Date().getTime(); + timeOnTarget = 0; + } + else { + timeOnTarget = new Date().getTime() - startTime; + } + }; + + // Activates outline connect after 1500ms with touch event or if alt is pressed inside the shape + // outlineConnect=0 is a custom style that means do not connect to strokes inside the shape, + // or in other words, connect to the shape's perimeter if the highlight is under the mouse + // (the name is because the highlight, including all strokes, is called outline in the code) + var connectionHandleIsOutlineConnectEvent = this.connectionHandler.isOutlineConnectEvent; + + this.connectionHandler.isOutlineConnectEvent = function (me) { + return (this.currentState != null && me.getState() == this.currentState && timeOnTarget > 2000) || + ((this.currentState == null || mxUtils.getValue(this.currentState.style, 'outlineConnect', '1') != '0') && + connectionHandleIsOutlineConnectEvent.apply(this, arguments)); + }; + + // Adds shift+click to toggle selection state + var isToggleEvent = this.isToggleEvent; + this.isToggleEvent = function (evt) { + return isToggleEvent.apply(this, arguments) || mxEvent.isShiftDown(evt); + }; + + // Workaround for Firefox where first mouse down is received + // after tap and hold if scrollbars are visible, which means + // start rubberband immediately if no cell is under mouse. + var isForceRubberBandEvent = rubberband.isForceRubberbandEvent; + rubberband.isForceRubberbandEvent = function (me) { + return isForceRubberBandEvent.apply(this, arguments) || + (mxUtils.hasScrollbars(this.graph.container) && mxClient.IS_FF && + mxClient.IS_WIN && me.getState() == null && mxEvent.isTouchEvent(me.getEvent())); + }; + + // Shows hand cursor while panning + var prevCursor = null; + + this.panningHandler.addListener(mxEvent.PAN_START, mxUtils.bind(this, function () { + if (this.isEnabled()) { + prevCursor = this.container.style.cursor; + this.container.style.cursor = 'move'; + } + })); + + this.panningHandler.addListener(mxEvent.PAN_END, mxUtils.bind(this, function () { + if (this.isEnabled()) { + this.container.style.cursor = prevCursor; + } + })); + + this.popupMenuHandler.autoExpand = true; + + this.popupMenuHandler.isSelectOnPopup = function (me) { + return mxEvent.isMouseEvent(me.getEvent()); + }; + + // Handles links if graph is read-only or cell is locked + var click = this.click; + this.click = function (me) { + var locked = me.state == null && me.sourceState != null && this.isCellLocked(me.sourceState.cell); + + if ((!this.isEnabled() || locked) && !me.isConsumed()) { + var cell = (locked) ? me.sourceState.cell : me.getCell(); + + if (cell != null) { + var link = this.getLinkForCell(cell); + + if (link != null) { + if (this.isCustomLink(link)) { + this.customLinkClicked(link); + } + else { + this.openLink(link); + } + } + } + } + else { + return click.apply(this, arguments); + } + }; + + // Redirects tooltips for locked cells + this.tooltipHandler.getStateForEvent = function (me) { + return me.sourceState; + }; + + // Redirects cursor for locked cells + var getCursorForMouseEvent = this.getCursorForMouseEvent; + this.getCursorForMouseEvent = function (me) { + var locked = me.state == null && me.sourceState != null && this.isCellLocked(me.sourceState.cell); + + return this.getCursorForCell((locked) ? me.sourceState.cell : me.getCell()); + }; + + // Shows pointer cursor for clickable cells with links + // ie. if the graph is disabled and cells cannot be selected + var getCursorForCell = this.getCursorForCell; + this.getCursorForCell = function (cell) { + if (!this.isEnabled() || this.isCellLocked(cell)) { + var link = this.getLinkForCell(cell); + + if (link != null) { + return 'pointer'; + } + else if (this.isCellLocked(cell)) { + return 'default'; + } + } + + return getCursorForCell.apply(this, arguments); + }; + + // Changes rubberband selection to be recursive + this.selectRegion = function (rect, evt) { + var cells = this.getAllCells(rect.x, rect.y, rect.width, rect.height); + this.selectCellsForEvent(cells, evt); + + return cells; + }; + + // Recursive implementation for rubberband selection + this.getAllCells = function (x, y, width, height, parent, result) { + result = (result != null) ? result : []; + + if (width > 0 || height > 0) { + var model = this.getModel(); + var right = x + width; + var bottom = y + height; + + if (parent == null) { + parent = this.getCurrentRoot(); + + if (parent == null) { + parent = model.getRoot(); + } + } + + if (parent != null) { + var childCount = model.getChildCount(parent); + + for (var i = 0; i < childCount; i++) { + var cell = model.getChildAt(parent, i); + var state = this.view.getState(cell); + + if (state != null && this.isCellVisible(cell) && mxUtils.getValue(state.style, 'locked', '0') != '1') { + var deg = mxUtils.getValue(state.style, mxConstants.STYLE_ROTATION) || 0; + var box = state; + + if (deg != 0) { + box = mxUtils.getBoundingBox(box, deg); + } + + if ((model.isEdge(cell) || model.isVertex(cell)) && + box.x >= x && box.y + box.height <= bottom && + box.y >= y && box.x + box.width <= right) { + result.push(cell); + } + + this.getAllCells(x, y, width, height, cell, result); + } + } + } + } + + return result; + }; + + // Never removes cells from parents that are being moved + var graphHandlerShouldRemoveCellsFromParent = this.graphHandler.shouldRemoveCellsFromParent; + this.graphHandler.shouldRemoveCellsFromParent = function (parent, cells, evt) { + if (this.graph.isCellSelected(parent)) { + return false; + } + + return graphHandlerShouldRemoveCellsFromParent.apply(this, arguments); + }; + + // Unlocks all cells + this.isCellLocked = function (cell) { + var pState = this.view.getState(cell); + + while (pState != null) { + if (mxUtils.getValue(pState.style, 'locked', '0') == '1') { + return true; + } + + pState = this.view.getState(this.model.getParent(pState.cell)); + } + + return false; + }; + + var tapAndHoldSelection = null; + + // Uses this event to process mouseDown to check the selection state before it is changed + this.addListener(mxEvent.FIRE_MOUSE_EVENT, mxUtils.bind(this, function (sender, evt) { + if (evt.getProperty('eventName') == 'mouseDown') { + var me = evt.getProperty('event'); + var state = me.getState(); + + if (state != null && !this.isSelectionEmpty() && !this.isCellSelected(state.cell)) { + tapAndHoldSelection = this.getSelectionCells(); + } + else { + tapAndHoldSelection = null; + } + } + })); + + // Tap and hold on background starts rubberband for multiple selected + // cells the cell associated with the event is deselected + this.addListener(mxEvent.TAP_AND_HOLD, mxUtils.bind(this, function (sender, evt) { + if (!mxEvent.isMultiTouchEvent(evt)) { + var me = evt.getProperty('event'); + var cell = evt.getProperty('cell'); + + if (cell == null) { + var pt = mxUtils.convertPoint(this.container, + mxEvent.getClientX(me), mxEvent.getClientY(me)); + rubberband.start(pt.x, pt.y); + } + else if (tapAndHoldSelection != null) { + this.addSelectionCells(tapAndHoldSelection); + } + else if (this.getSelectionCount() > 1 && this.isCellSelected(cell)) { + this.removeSelectionCell(cell); + } + + // Blocks further processing of the event + tapAndHoldSelection = null; + evt.consume(); + } + })); + + // On connect the target is selected and we clone the cell of the preview edge for insert + this.connectionHandler.selectCells = function (edge, target) { + this.graph.setSelectionCell(target || edge); + }; + + // Shows connection points only if cell not selected + this.connectionHandler.constraintHandler.isStateIgnored = function (state, source) { + return source && state.view.graph.isCellSelected(state.cell); + }; + + // Updates constraint handler if the selection changes + this.selectionModel.addListener(mxEvent.CHANGE, mxUtils.bind(this, function () { + var ch = this.connectionHandler.constraintHandler; + + if (ch.currentFocus != null && ch.isStateIgnored(ch.currentFocus, true)) { + ch.currentFocus = null; + ch.constraints = null; + ch.destroyIcons(); + } + + ch.destroyFocusHighlight(); + })); + + // Initializes touch interface + if (Graph.touchStyle) { + this.initTouch(); + } + + /** + * Adds locking + */ + var graphUpdateMouseEvent = this.updateMouseEvent; + this.updateMouseEvent = function (me) { + me = graphUpdateMouseEvent.apply(this, arguments); + + if (me.state != null && this.isCellLocked(me.getCell())) { + me.state = null; + } + + return me; + }; + } + + //Create a unique offset object for each graph instance. + this.currentTranslate = new mxPoint(0, 0); + }; + + /** + * Specifies if the touch UI should be used (cannot detect touch in FF so always on for Windows/Linux) + */ + Graph.touchStyle = mxClient.IS_TOUCH || (mxClient.IS_FF && mxClient.IS_WIN) || navigator.maxTouchPoints > 0 || + navigator.msMaxTouchPoints > 0 || window.urlParams == null || urlParams['touch'] == '1'; + + /** + * Shortcut for capability check. + */ + Graph.fileSupport = window.File != null && window.FileReader != null && window.FileList != null && + (window.urlParams == null || urlParams['filesupport'] != '0'); + + /** + * Default size for line jumps. + */ + Graph.lineJumpsEnabled = true; + + /** + * Default size for line jumps. + */ + Graph.defaultJumpSize = 6; + + /** + * Helper function (requires atob). + */ + Graph.createSvgImage = function (w, h, data) { + var tmp = unescape(encodeURIComponent( + '' + + '' + data + '')); + + return new mxImage('data:image/svg+xml;base64,' + ((window.btoa) ? btoa(tmp) : Base64.encode(tmp, true)), w, h) + }; + + /** + * Graph inherits from mxGraph. + */ + mxUtils.extend(Graph, mxGraph); + + /** + * Allows all values in fit. + */ + Graph.prototype.minFitScale = null; + + /** + * Allows all values in fit. + */ + Graph.prototype.maxFitScale = null; + + /** + * Sets the policy for links. Possible values are "self" to replace any framesets, + * "blank" to load the URL in and "auto" (default). + */ + Graph.prototype.linkPolicy = (urlParams['target'] == 'frame') ? 'blank' : (urlParams['target'] || 'auto'); + + /** + * Target for links that open in a new window. Default is _blank. + */ + Graph.prototype.linkTarget = (urlParams['target'] == 'frame') ? '_self' : '_blank'; + + /** + * Value to the rel attribute of links. Default is 'nofollow noopener noreferrer'. + * NOTE: There are security implications when this is changed and if noopener is removed, + * then must be overridden to allow for the opener to be set by default. + */ + Graph.prototype.linkRelation = 'nofollow noopener noreferrer'; + + /** + * Scrollbars are enabled on non-touch devices (not including Firefox because touch events + * cannot be detected in Firefox, see above). + */ + Graph.prototype.defaultScrollbars = !mxClient.IS_IOS; + + /** + * Specifies if the page should be visible for new files. Default is true. + */ + Graph.prototype.defaultPageVisible = true; + + /** + * Specifies if the app should run in chromeless mode. Default is false. + * This default is only used if the contructor argument is null. + */ + Graph.prototype.lightbox = false; + + /** + * + */ + Graph.prototype.defaultPageBackgroundColor = '#ffffff'; + + /** + * + */ + Graph.prototype.defaultPageBorderColor = '#ffffff'; + + /** + * Specifies the size of the size for "tiles" to be used for a graph with + * scrollbars but no visible background page. A good value is large + * enough to reduce the number of repaints that is caused for auto- + * translation, which depends on this value, and small enough to give + * a small empty buffer around the graph. Default is 400x400. + */ + Graph.prototype.scrollTileSize = new mxRectangle(0, 0, 400, 400); + + /** + * Overrides the background color and paints a transparent background. + */ + Graph.prototype.transparentBackground = true; + + /** + * Sets the default target for all links in cells. + */ + Graph.prototype.defaultEdgeLength = 80; + + /** + * Disables move of bends/segments without selecting. + */ + Graph.prototype.edgeMode = false; + + /** + * Allows all values in fit. + */ + Graph.prototype.connectionArrowsEnabled = true; + + /** + * Specifies the regular expression for matching placeholders. + */ + Graph.prototype.placeholderPattern = new RegExp('%(date\{.*\}|[^%^\{^\}]+)%', 'g'); + + /** + * Specifies the regular expression for matching placeholders. + */ + Graph.prototype.absoluteUrlPattern = new RegExp('^(?:[a-z]+:)?//', 'i'); + + /** + * Specifies the default name for the theme. Default is 'default'. + */ + Graph.prototype.defaultThemeName = 'default'; + + /** + * Specifies the default name for the theme. Default is 'default'. + */ + Graph.prototype.defaultThemes = {}; + + /** + * Base URL for relative links. + */ + Graph.prototype.baseUrl = (urlParams['base'] != null) ? + decodeURIComponent(urlParams['base']) : + (((window != window.top) ? document.referrer : + document.location.toString()).split('#')[0]); + + /** + * Specifies if the label should be edited after an insert. + */ + Graph.prototype.editAfterInsert = false; + + /** + * Defines the built-in properties to be ignored in tooltips. + */ + Graph.prototype.builtInProperties = ['label', 'tooltip', 'placeholders', 'placeholder']; + + /** + * Installs child layout styles. + */ + Graph.prototype.init = function (container) { + mxGraph.prototype.init.apply(this, arguments); + + // Intercepts links with no target attribute and opens in new window + this.cellRenderer.initializeLabel = function (state, shape) { + mxCellRenderer.prototype.initializeLabel.apply(this, arguments); + + // Checks tolerance for clicks on links + var tol = state.view.graph.tolerance; + var handleClick = true; + var first = null; + + var down = mxUtils.bind(this, function (evt) { + handleClick = true; + first = new mxPoint(mxEvent.getClientX(evt), mxEvent.getClientY(evt)); + }); + + var move = mxUtils.bind(this, function (evt) { + handleClick = handleClick && first != null && + Math.abs(first.x - mxEvent.getClientX(evt)) < tol && + Math.abs(first.y - mxEvent.getClientY(evt)) < tol; + }); + + var up = mxUtils.bind(this, function (evt) { + if (handleClick) { + var elt = mxEvent.getSource(evt) + + while (elt != null && elt != shape.node) { + if (elt.nodeName.toLowerCase() == 'a') { + state.view.graph.labelLinkClicked(state, elt, evt); + break; + } + + elt = elt.parentNode; + } + } + }); + + mxEvent.addGestureListeners(shape.node, down, move, up); + mxEvent.addListener(shape.node, 'click', function (evt) { + mxEvent.consume(evt); + }); + }; + + this.initLayoutManager(); + }; + + /** + * Implements zoom and offset via CSS transforms. This is currently only used + * in read-only as there are fewer issues with the mxCellState not being scaled + * and translated. + * + * KNOWN ISSUES TO FIX: + * - Apply CSS transforms to HTML labels in IE11 + */ + (function () { + /** + * Uses CSS transforms for scale and translate. + */ + Graph.prototype.useCssTransforms = false; + + /** + * Contains the scale. + */ + Graph.prototype.currentScale = 1; + + /** + * Contains the offset. + */ + Graph.prototype.currentTranslate = new mxPoint(0, 0); + + /** + * Only foreignObject supported for now (no IE11). + */ + Graph.prototype.isCssTransformsSupported = function () { + return this.dialect == mxConstants.DIALECT_SVG && !mxClient.NO_FO; + }; + + /** + * Function: getCellAt + * + * Needs to modify original method for recursive call. + */ + Graph.prototype.getCellAt = function (x, y, parent, vertices, edges, ignoreFn) { + if (this.useCssTransforms) { + x = x / this.currentScale - this.currentTranslate.x; + y = y / this.currentScale - this.currentTranslate.y; + } + + return this.getScaledCellAt.apply(this, arguments); + }; + + /** + * Function: getScaledCellAt + * + * Overridden for recursion. + */ + Graph.prototype.getScaledCellAt = function (x, y, parent, vertices, edges, ignoreFn) { + vertices = (vertices != null) ? vertices : true; + edges = (edges != null) ? edges : true; + + if (parent == null) { + parent = this.getCurrentRoot(); + + if (parent == null) { + parent = this.getModel().getRoot(); + } + } + + if (parent != null) { + var childCount = this.model.getChildCount(parent); + + for (var i = childCount - 1; i >= 0; i--) { + var cell = this.model.getChildAt(parent, i); + var result = this.getScaledCellAt(x, y, cell, vertices, edges, ignoreFn); + + if (result != null) { + return result; + } + else if (this.isCellVisible(cell) && (edges && this.model.isEdge(cell) || + vertices && this.model.isVertex(cell))) { + var state = this.view.getState(cell); + + if (state != null && (ignoreFn == null || !ignoreFn(state, x, y)) && + this.intersects(state, x, y)) { + return cell; + } + } + } + } + + return null; + }; + + + /** + * Function: repaint + * + * Updates the highlight after a change of the model or view. + */ + mxCellHighlight.prototype.getStrokeWidth = function (state) { + var s = this.strokeWidth; + + if (this.graph.useCssTransforms) { + s /= this.graph.currentScale; + } + + return s; + }; + + /** + * Function: getGraphBounds + * + * Overrides getGraphBounds to use bounding box from SVG. + */ + mxGraphView.prototype.getGraphBounds = function () { + var b = this.graphBounds; + + if (this.graph.useCssTransforms) { + var t = this.graph.currentTranslate; + var s = this.graph.currentScale; + + b = new mxRectangle( + (b.x + t.x) * s, (b.y + t.y) * s, + b.width * s, b.height * s); + } + + return b; + }; + + /** + * Function: viewStateChanged + * + * Overrides to bypass full cell tree validation. + * TODO: Check if this improves performance + */ + mxGraphView.prototype.viewStateChanged = function () { + if (this.graph.useCssTransforms) { + this.validate(); + this.graph.sizeDidChange(); + } + else { + this.revalidate(); + this.graph.sizeDidChange(); + } + }; + + /** + * Function: validate + * + * Overrides validate to normalize validation view state and pass + * current state to CSS transform. + */ + var graphViewValidate = mxGraphView.prototype.validate; + + mxGraphView.prototype.validate = function (cell) { + if (this.graph.useCssTransforms) { + this.graph.currentScale = this.scale; + this.graph.currentTranslate.x = this.translate.x; + this.graph.currentTranslate.y = this.translate.y; + + this.scale = 1; + this.translate.x = 0; + this.translate.y = 0; + } + + graphViewValidate.apply(this, arguments); + + if (this.graph.useCssTransforms) { + this.graph.updateCssTransform(); + + this.scale = this.graph.currentScale; + this.translate.x = this.graph.currentTranslate.x; + this.translate.y = this.graph.currentTranslate.y; + } + }; + + /** + * Function: updateCssTransform + * + * Zooms out of the graph by . + */ + Graph.prototype.updateCssTransform = function () { + var temp = this.view.getDrawPane(); + + if (temp != null) { + var g = temp.parentNode; + + if (!this.useCssTransforms) { + g.removeAttribute('transformOrigin'); + g.removeAttribute('transform'); + } + else { + var prev = g.getAttribute('transform'); + g.setAttribute('transformOrigin', '0 0'); + g.setAttribute('transform', 'scale(' + this.currentScale + ',' + this.currentScale + ')' + + 'translate(' + this.currentTranslate.x + ',' + this.currentTranslate.y + ')'); + + // Applies workarounds only if translate has changed + if (prev != g.getAttribute('transform')) { + try { + // Applies transform to labels outside of the SVG DOM + // Excluded via isCssTransformsSupported + // if (mxClient.NO_FO) + // { + // var transform = 'scale(' + this.currentScale + ')' + 'translate(' + + // this.currentTranslate.x + 'px,' + this.currentTranslate.y + 'px)'; + // + // this.view.states.visit(mxUtils.bind(this, function(cell, state) + // { + // if (state.text != null && state.text.node != null) + // { + // // Stores initial CSS transform that is used for the label alignment + // if (state.text.originalTransform == null) + // { + // state.text.originalTransform = state.text.node.style.transform; + // } + // + // state.text.node.style.transform = transform + state.text.originalTransform; + // } + // })); + // } + // Workaround for https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/4320441/ + if (mxClient.IS_EDGE) { + // Recommended workaround is to do this on all + // foreignObjects, but this seems to be faster + var val = g.style.display; + g.style.display = 'none'; + g.getBBox(); + g.style.display = val; + } + } + catch (e) { + // ignore + } + } + } + } + }; + + var graphViewValidateBackgroundPage = mxGraphView.prototype.validateBackgroundPage; + + mxGraphView.prototype.validateBackgroundPage = function () { + var useCssTranforms = this.graph.useCssTransforms, scale = this.scale, + translate = this.translate; + + if (useCssTranforms) { + this.scale = this.graph.currentScale; + this.translate = this.graph.currentTranslate; + } + + graphViewValidateBackgroundPage.apply(this, arguments); + + if (useCssTranforms) { + this.scale = scale; + this.translate = translate; + } + }; + + var graphUpdatePageBreaks = mxGraph.prototype.updatePageBreaks; + + mxGraph.prototype.updatePageBreaks = function (visible, width, height) { + var useCssTranforms = this.useCssTransforms, scale = this.view.scale, + translate = this.view.translate; + + if (useCssTranforms) { + this.view.scale = 1; + this.view.translate = new mxPoint(0, 0); + this.useCssTransforms = false; + } + + graphUpdatePageBreaks.apply(this, arguments); + + if (useCssTranforms) { + this.view.scale = scale; + this.view.translate = translate; + this.useCssTransforms = true; + } + }; + + })(); + + /** + * Sets the XML node for the current diagram. + */ + Graph.prototype.isLightboxView = function () { + return this.lightbox; + }; + + /** + * Installs automatic layout via styles + */ + Graph.prototype.labelLinkClicked = function (state, elt, evt) { + var href = elt.getAttribute('href'); + + if (href != null && !this.isCustomLink(href) && (mxEvent.isLeftMouseButton(evt) && + !mxEvent.isPopupTrigger(evt)) || mxEvent.isTouchEvent(evt)) { + if (!this.isEnabled() || this.isCellLocked(state.cell)) { + var target = this.isBlankLink(href) ? this.linkTarget : '_top'; + this.openLink(this.getAbsoluteUrl(href), target); + } + + mxEvent.consume(evt); + } + }; + + /** + * Returns the size of the page format scaled with the page size. + */ + Graph.prototype.openLink = function (href, target, allowOpener) { + var result = window; + + // Workaround for blocking in same iframe + if (target == '_self' && window != window.top) { + window.location.href = href; + } + else { + // Avoids page reload for anchors (workaround for IE but used everywhere) + if (href.substring(0, this.baseUrl.length) == this.baseUrl && + href.charAt(this.baseUrl.length) == '#' && + target == '_top' && window == window.top) { + var hash = href.split('#')[1]; + + // Forces navigation if on same hash + if (window.location.hash == '#' + hash) { + window.location.hash = ''; + } + + window.location.hash = hash; + } + else { + result = window.open(href, target); + + if (result != null && !allowOpener) { + result.opener = null; + } + } + } + + return result; + }; + + /** + * Adds support for page links. + */ + Graph.prototype.getLinkTitle = function (href) { + return href.substring(href.lastIndexOf('/') + 1); + }; + + /** + * Adds support for page links. + */ + Graph.prototype.isCustomLink = function (href) { + return href.substring(0, 5) == 'data:'; + }; + + /** + * Adds support for page links. + */ + Graph.prototype.customLinkClicked = function (link) { + return false; + }; + + /** + * Returns true if the fiven href references an external protocol that + * should never open in a new window. Default returns true for mailto. + */ + Graph.prototype.isExternalProtocol = function (href) { + return href.substring(0, 7) === 'mailto:'; + }; + + /** + * Hook for links to open in same window. Default returns true for anchors, + * links to same domain or if target == 'self' in the config. + */ + Graph.prototype.isBlankLink = function (href) { + return !this.isExternalProtocol(href) && + (this.linkPolicy === 'blank' || + (this.linkPolicy !== 'self' && + !this.isRelativeUrl(href) && + href.substring(0, this.domainUrl.length) !== this.domainUrl)); + }; + + /** + * + */ + Graph.prototype.isRelativeUrl = function (url) { + return url != null && !this.absoluteUrlPattern.test(url) && + url.substring(0, 5) !== 'data:' && + !this.isExternalProtocol(url); + }; + + /** + * Installs automatic layout via styles + */ + Graph.prototype.initLayoutManager = function () { + this.layoutManager = new mxLayoutManager(this); + + this.layoutManager.getLayout = function (cell) { + var state = this.graph.view.getState(cell); + var style = (state != null) ? state.style : this.graph.getCellStyle(cell); + + if (style != null) { + if (style['childLayout'] == 'stackLayout') { + var stackLayout = new mxStackLayout(this.graph, true); + stackLayout.resizeParentMax = mxUtils.getValue(style, 'resizeParentMax', '1') == '1'; + stackLayout.horizontal = mxUtils.getValue(style, 'horizontalStack', '1') == '1'; + stackLayout.resizeParent = mxUtils.getValue(style, 'resizeParent', '1') == '1'; + stackLayout.resizeLast = mxUtils.getValue(style, 'resizeLast', '0') == '1'; + stackLayout.spacing = style['stackSpacing'] || stackLayout.spacing; + stackLayout.border = style['stackBorder'] || stackLayout.border; + stackLayout.marginLeft = style['marginLeft'] || 0; + stackLayout.marginRight = style['marginRight'] || 0; + stackLayout.marginTop = style['marginTop'] || 0; + stackLayout.marginBottom = style['marginBottom'] || 0; + stackLayout.fill = true; + + return stackLayout; + } + else if (style['childLayout'] == 'treeLayout') { + var treeLayout = new mxCompactTreeLayout(this.graph); + treeLayout.horizontal = mxUtils.getValue(style, 'horizontalTree', '1') == '1'; + treeLayout.resizeParent = mxUtils.getValue(style, 'resizeParent', '1') == '1'; + treeLayout.groupPadding = mxUtils.getValue(style, 'parentPadding', 20); + treeLayout.levelDistance = mxUtils.getValue(style, 'treeLevelDistance', 30); + treeLayout.maintainParentLocation = true; + treeLayout.edgeRouting = false; + treeLayout.resetEdges = false; + + return treeLayout; + } + else if (style['childLayout'] == 'flowLayout') { + var flowLayout = new mxHierarchicalLayout(this.graph, mxUtils.getValue(style, + 'flowOrientation', mxConstants.DIRECTION_EAST)); + flowLayout.resizeParent = mxUtils.getValue(style, 'resizeParent', '1') == '1'; + flowLayout.parentBorder = mxUtils.getValue(style, 'parentPadding', 20); + flowLayout.maintainParentLocation = true; + + // Special undocumented styles for changing the hierarchical + flowLayout.intraCellSpacing = mxUtils.getValue(style, 'intraCellSpacing', mxHierarchicalLayout.prototype.intraCellSpacing); + flowLayout.interRankCellSpacing = mxUtils.getValue(style, 'interRankCellSpacing', mxHierarchicalLayout.prototype.interRankCellSpacing); + flowLayout.interHierarchySpacing = mxUtils.getValue(style, 'interHierarchySpacing', mxHierarchicalLayout.prototype.interHierarchySpacing); + flowLayout.parallelEdgeSpacing = mxUtils.getValue(style, 'parallelEdgeSpacing', mxHierarchicalLayout.prototype.parallelEdgeSpacing); + + return flowLayout; + } + } + + return null; + }; + }; + + /** + * Returns the size of the page format scaled with the page size. + */ + Graph.prototype.getPageSize = function () { + return (this.pageVisible) ? new mxRectangle(0, 0, this.pageFormat.width * this.pageScale, + this.pageFormat.height * this.pageScale) : this.scrollTileSize; + }; + + /** + * Returns a rectangle describing the position and count of the + * background pages, where x and y are the position of the top, + * left page and width and height are the vertical and horizontal + * page count. + */ + Graph.prototype.getPageLayout = function () { + var size = this.getPageSize(); + var bounds = this.getGraphBounds(); + + if (bounds.width == 0 || bounds.height == 0) { + return new mxRectangle(0, 0, 1, 1); + } + else { + // Computes untransformed graph bounds + var x = Math.ceil(bounds.x / this.view.scale - this.view.translate.x); + var y = Math.ceil(bounds.y / this.view.scale - this.view.translate.y); + var w = Math.floor(bounds.width / this.view.scale); + var h = Math.floor(bounds.height / this.view.scale); + + var x0 = Math.floor(x / size.width); + var y0 = Math.floor(y / size.height); + var w0 = Math.ceil((x + w) / size.width) - x0; + var h0 = Math.ceil((y + h) / size.height) - y0; + + return new mxRectangle(x0, y0, w0, h0); + } + }; + + /** + * Sanitizes the given HTML markup. + */ + Graph.prototype.sanitizeHtml = function (value, editing) { + // Uses https://code.google.com/p/google-caja/wiki/JsHtmlSanitizer + // NOTE: Original minimized sanitizer was modified to support + // data URIs for images, mailto and special data:-links. + // LATER: Add MathML to whitelisted tags + function urlX(link) { + if (link != null && link.toString().toLowerCase().substring(0, 11) !== 'javascript:') { + return link; + } + + return null; + }; + function idX(id) { return id }; + + return html_sanitize(value, urlX, idX); + }; + + /** + * Revalidates all cells with placeholders in the current graph model. + */ + Graph.prototype.updatePlaceholders = function () { + var model = this.model; + var validate = false; + + for (var key in this.model.cells) { + var cell = this.model.cells[key]; + + if (this.isReplacePlaceholders(cell)) { + this.view.invalidate(cell, false, false); + validate = true; + } + } + + if (validate) { + this.view.validate(); + } + }; + + /** + * Adds support for placeholders in labels. + */ + Graph.prototype.isReplacePlaceholders = function (cell) { + return cell.value != null && typeof (cell.value) == 'object' && + cell.value.getAttribute('placeholders') == '1'; + }; + + /** + * Returns true if the given mouse wheel event should be used for zooming. This + * is invoked if no dialogs are showing and returns true with Alt or Control + * (except macOS) is pressed. + */ + Graph.prototype.isZoomWheelEvent = function (evt) { + return mxEvent.isAltDown(evt) || (mxEvent.isMetaDown(evt) && mxClient.IS_MAC) || + (mxEvent.isControlDown(evt) && !mxClient.IS_MAC); + }; + + /** + * Adds Alt+click to select cells behind cells. + */ + Graph.prototype.isTransparentClickEvent = function (evt) { + return mxEvent.isAltDown(evt); + }; + + /** + * Adds ctrl+shift+connect to disable connections. + */ + Graph.prototype.isIgnoreTerminalEvent = function (evt) { + return mxEvent.isShiftDown(evt) && mxEvent.isControlDown(evt); + }; + + /** + * Adds support for placeholders in labels. + */ + Graph.prototype.isSplitTarget = function (target, cells, evt) { + return !this.model.isEdge(cells[0]) && + !mxEvent.isAltDown(evt) && !mxEvent.isShiftDown(evt) && + mxGraph.prototype.isSplitTarget.apply(this, arguments); + }; + + /** + * Adds support for placeholders in labels. + */ + Graph.prototype.getLabel = function (cell) { + var result = mxGraph.prototype.getLabel.apply(this, arguments); + + if (result != null && this.isReplacePlaceholders(cell) && cell.getAttribute('placeholder') == null) { + result = this.replacePlaceholders(cell, result); + } + + return result; + }; + + /** + * Adds labelMovable style. + */ + Graph.prototype.isLabelMovable = function (cell) { + var state = this.view.getState(cell); + var style = (state != null) ? state.style : this.getCellStyle(cell); + + return !this.isCellLocked(cell) && + ((this.model.isEdge(cell) && this.edgeLabelsMovable) || + (this.model.isVertex(cell) && (this.vertexLabelsMovable || + mxUtils.getValue(style, 'labelMovable', '0') == '1'))); + }; + + /** + * Adds event if grid size is changed. + */ + Graph.prototype.setGridSize = function (value) { + this.gridSize = value; + this.fireEvent(new mxEventObject('gridSizeChanged')); + }; + + /** + * Private helper method. + */ + Graph.prototype.getGlobalVariable = function (name) { + var val = null; + + if (name == 'date') { + val = new Date().toLocaleDateString(); + } + else if (name == 'time') { + val = new Date().toLocaleTimeString(); + } + else if (name == 'timestamp') { + val = new Date().toLocaleString(); + } + else if (name.substring(0, 5) == 'date{') { + var fmt = name.substring(5, name.length - 1); + val = this.formatDate(new Date(), fmt); + } + + return val; + }; + + /** + * Formats a date, see http://blog.stevenlevithan.com/archives/date-time-format + */ + Graph.prototype.formatDate = function (date, mask, utc) { + // LATER: Cache regexs + if (this.dateFormatCache == null) { + this.dateFormatCache = { + i18n: { + dayNames: [ + "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", + "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" + ], + monthNames: [ + "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", + "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" + ] + }, + + masks: { + "default": "ddd mmm dd yyyy HH:MM:ss", + shortDate: "m/d/yy", + mediumDate: "mmm d, yyyy", + longDate: "mmmm d, yyyy", + fullDate: "dddd, mmmm d, yyyy", + shortTime: "h:MM TT", + mediumTime: "h:MM:ss TT", + longTime: "h:MM:ss TT Z", + isoDate: "yyyy-mm-dd", + isoTime: "HH:MM:ss", + isoDateTime: "yyyy-mm-dd'T'HH:MM:ss", + isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'" + } + }; + } + + var dF = this.dateFormatCache; + var token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g, + timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g, + timezoneClip = /[^-+\dA-Z]/g, + pad = function (val, len) { + val = String(val); + len = len || 2; + while (val.length < len) val = "0" + val; + return val; + }; + + // You can't provide utc if you skip other args (use the "UTC:" mask prefix) + if (arguments.length == 1 && Object.prototype.toString.call(date) == "[object String]" && !/\d/.test(date)) { + mask = date; + date = undefined; + } + + // Passing date through Date applies Date.parse, if necessary + date = date ? new Date(date) : new Date; + if (isNaN(date)) throw SyntaxError("invalid date"); + + mask = String(dF.masks[mask] || mask || dF.masks["default"]); + + // Allow setting the utc argument via the mask + if (mask.slice(0, 4) == "UTC:") { + mask = mask.slice(4); + utc = true; + } + + var _ = utc ? "getUTC" : "get", + d = date[_ + "Date"](), + D = date[_ + "Day"](), + m = date[_ + "Month"](), + y = date[_ + "FullYear"](), + H = date[_ + "Hours"](), + M = date[_ + "Minutes"](), + s = date[_ + "Seconds"](), + L = date[_ + "Milliseconds"](), + o = utc ? 0 : date.getTimezoneOffset(), + flags = { + d: d, + dd: pad(d), + ddd: dF.i18n.dayNames[D], + dddd: dF.i18n.dayNames[D + 7], + m: m + 1, + mm: pad(m + 1), + mmm: dF.i18n.monthNames[m], + mmmm: dF.i18n.monthNames[m + 12], + yy: String(y).slice(2), + yyyy: y, + h: H % 12 || 12, + hh: pad(H % 12 || 12), + H: H, + HH: pad(H), + M: M, + MM: pad(M), + s: s, + ss: pad(s), + l: pad(L, 3), + L: pad(L > 99 ? Math.round(L / 10) : L), + t: H < 12 ? "a" : "p", + tt: H < 12 ? "am" : "pm", + T: H < 12 ? "A" : "P", + TT: H < 12 ? "AM" : "PM", + Z: utc ? "UTC" : (String(date).match(timezone) || [""]).pop().replace(timezoneClip, ""), + o: (o > 0 ? "-" : "+") + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4), + S: ["th", "st", "nd", "rd"][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10] + }; + + return mask.replace(token, function ($0) { + return $0 in flags ? flags[$0] : $0.slice(1, $0.length - 1); + }); + }; + + /** + * + */ + Graph.prototype.createLayersDialog = function () { + var div = document.createElement('div'); + div.style.position = 'absolute'; + + var model = this.getModel(); + var childCount = model.getChildCount(model.root); + + for (var i = 0; i < childCount; i++) { + (mxUtils.bind(this, function (layer) { + var span = document.createElement('div'); + span.style.overflow = 'hidden'; + span.style.textOverflow = 'ellipsis'; + span.style.padding = '2px'; + span.style.whiteSpace = 'nowrap'; + + var cb = document.createElement('input'); + cb.style.display = 'inline-block'; + cb.setAttribute('type', 'checkbox'); + + if (model.isVisible(layer)) { + cb.setAttribute('checked', 'checked'); + cb.defaultChecked = true; + } + + span.appendChild(cb); + + var title = this.convertValueToString(layer) || (mxResources.get('background') || 'Background'); + span.setAttribute('title', title); + mxUtils.write(span, title); + div.appendChild(span); + + mxEvent.addListener(cb, 'click', function () { + if (cb.getAttribute('checked') != null) { + cb.removeAttribute('checked'); + } + else { + cb.setAttribute('checked', 'checked'); + } + + model.setVisible(layer, cb.checked); + }); + })(model.getChildAt(model.root, i))); + } + + return div; + }; + + /** + * Private helper method. + */ + Graph.prototype.replacePlaceholders = function (cell, str) { + var result = []; + + if (str != null) { + var last = 0; + + while (match = this.placeholderPattern.exec(str)) { + var val = match[0]; + + if (val.length > 2 && val != '%label%' && val != '%tooltip%') { + var tmp = null; + + if (match.index > last && str.charAt(match.index - 1) == '%') { + tmp = val.substring(1); + } + else { + var name = val.substring(1, val.length - 1); + + // Workaround for invalid char for getting attribute in older versions of IE + if (name.indexOf('{') < 0) { + var current = cell; + + while (tmp == null && current != null) { + if (current.value != null && typeof (current.value) == 'object') { + tmp = (current.hasAttribute(name)) ? ((current.getAttribute(name) != null) ? + current.getAttribute(name) : '') : null; + } + + current = this.model.getParent(current); + } + } + + if (tmp == null) { + tmp = this.getGlobalVariable(name); + } + } + + result.push(str.substring(last, match.index) + ((tmp != null) ? tmp : val)); + last = match.index + val.length; + } + } + + result.push(str.substring(last)); + } + + return result.join(''); + }; + + /** + * Resolves the given cells in the model and selects them. + */ + Graph.prototype.restoreSelection = function (cells) { + if (cells != null && cells.length > 0) { + var temp = []; + + for (var i = 0; i < cells.length; i++) { + var newCell = this.model.getCell(cells[i].id); + + if (newCell != null) { + temp.push(newCell); + } + } + + this.setSelectionCells(temp); + } + else { + this.clearSelection(); + } + }; + + /** + * Selects cells for connect vertex return value. + */ + Graph.prototype.selectCellsForConnectVertex = function (cells, evt, hoverIcons) { + // Selects only target vertex if one exists + if (cells.length == 2 && this.model.isVertex(cells[1])) { + this.setSelectionCell(cells[1]); + + if (hoverIcons != null) { + // Adds hover icons to new target vertex for touch devices + if (mxEvent.isTouchEvent(evt)) { + hoverIcons.update(hoverIcons.getState(this.view.getState(cells[1]))); + } + else { + // Hides hover icons after click with mouse + hoverIcons.reset(); + } + } + + this.scrollCellToVisible(cells[1]); + } + else { + this.setSelectionCells(cells); + } + }; + + /** + * Adds a connection to the given vertex. + */ + Graph.prototype.connectVertex = function (source, direction, length, evt, forceClone, ignoreCellAt) { + ignoreCellAt = (ignoreCellAt) ? ignoreCellAt : false; + + var pt = (source.geometry.relative && source.parent.geometry != null) ? + new mxPoint(source.parent.geometry.width * source.geometry.x, source.parent.geometry.height * source.geometry.y) : + new mxPoint(source.geometry.x, source.geometry.y); + + if (direction == mxConstants.DIRECTION_NORTH) { + pt.x += source.geometry.width / 2; + pt.y -= length; + } + else if (direction == mxConstants.DIRECTION_SOUTH) { + pt.x += source.geometry.width / 2; + pt.y += source.geometry.height + length; + } + else if (direction == mxConstants.DIRECTION_WEST) { + pt.x -= length; + pt.y += source.geometry.height / 2; + } + else { + pt.x += source.geometry.width + length; + pt.y += source.geometry.height / 2; + } + + var parentState = this.view.getState(this.model.getParent(source)); + var s = this.view.scale; + var t = this.view.translate; + var dx = t.x * s; + var dy = t.y * s; + + if (this.model.isVertex(parentState.cell)) { + dx = parentState.x; + dy = parentState.y; + } + + // Workaround for relative child cells + if (this.model.isVertex(source.parent) && source.geometry.relative) { + pt.x += source.parent.geometry.x; + pt.y += source.parent.geometry.y; + } + + // Checks actual end point of edge for target cell + var target = (ignoreCellAt || (mxEvent.isControlDown(evt) && !forceClone)) ? + null : this.getCellAt(dx + pt.x * s, dy + pt.y * s); + + if (this.model.isAncestor(target, source)) { + target = null; + } + + // Checks if target or ancestor is locked + var temp = target; + + while (temp != null) { + if (this.isCellLocked(temp)) { + target = null; + break; + } + + temp = this.model.getParent(temp); + } + + // Checks if source and target intersect + if (target != null) { + var sourceState = this.view.getState(source); + var targetState = this.view.getState(target); + + if (sourceState != null && targetState != null && mxUtils.intersects(sourceState, targetState)) { + target = null; + } + } + + var duplicate = !mxEvent.isShiftDown(evt) || forceClone; + + if (duplicate) { + if (direction == mxConstants.DIRECTION_NORTH) { + pt.y -= source.geometry.height / 2; + } + else if (direction == mxConstants.DIRECTION_SOUTH) { + pt.y += source.geometry.height / 2; + } + else if (direction == mxConstants.DIRECTION_WEST) { + pt.x -= source.geometry.width / 2; + } + else { + pt.x += source.geometry.width / 2; + } + } + + // Uses connectable parent vertex if one exists + if (target != null && !this.isCellConnectable(target)) { + var parent = this.getModel().getParent(target); + + if (this.getModel().isVertex(parent) && this.isCellConnectable(parent)) { + target = parent; + } + } + + if (target == source || this.model.isEdge(target) || !this.isCellConnectable(target)) { + target = null; + } + + var result = []; + + this.model.beginUpdate(); + try { + var realTarget = target; + + if (realTarget == null && duplicate) { + // Handles relative children + var cellToClone = source; + var geo = this.getCellGeometry(source); + + while (geo != null && geo.relative) { + cellToClone = this.getModel().getParent(cellToClone); + geo = this.getCellGeometry(cellToClone); + } + + // Handle consistuents for cloning + var state = this.view.getState(cellToClone); + var style = (state != null) ? state.style : this.getCellStyle(cellToClone); + + if (mxUtils.getValue(style, 'part', false)) { + var tmpParent = this.model.getParent(cellToClone); + + if (this.model.isVertex(tmpParent)) { + cellToClone = tmpParent; + } + } + + realTarget = this.duplicateCells([cellToClone], false)[0]; + + var geo = this.getCellGeometry(realTarget); + + if (geo != null) { + geo.x = pt.x - geo.width / 2; + geo.y = pt.y - geo.height / 2; + } + } + + // Never connects children in stack layouts + var layout = null; + + if (this.layoutManager != null) { + layout = this.layoutManager.getLayout(this.model.getParent(source)); + } + + var edge = ((mxEvent.isControlDown(evt) && duplicate) || (target == null && layout != null && layout.constructor == mxStackLayout)) ? null : + this.insertEdge(this.model.getParent(source), null, '', source, realTarget, this.createCurrentEdgeStyle()); + + // Inserts edge before source + if (edge != null && this.connectionHandler.insertBeforeSource) { + var index = null; + var tmp = source; + + while (tmp.parent != null && tmp.geometry != null && + tmp.geometry.relative && tmp.parent != edge.parent) { + tmp = this.model.getParent(tmp); + } + + if (tmp != null && tmp.parent != null && tmp.parent == edge.parent) { + var index = tmp.parent.getIndex(tmp); + this.model.add(tmp.parent, edge, index); + } + } + + // Special case: Click on west icon puts clone before cell + if (target == null && realTarget != null && layout != null && source.parent != null && + layout.constructor == mxStackLayout && direction == mxConstants.DIRECTION_WEST) { + var index = source.parent.getIndex(source); + this.model.add(source.parent, realTarget, index); + } + + if (edge != null) { + result.push(edge); + } + + if (target == null && realTarget != null) { + result.push(realTarget); + } + + if (realTarget == null && edge != null) { + edge.geometry.setTerminalPoint(pt, false); + } + + if (edge != null) { + this.fireEvent(new mxEventObject('cellsInserted', 'cells', [edge])); + } + } + finally { + this.model.endUpdate(); + } + + return result; + }; + + /** + * Returns all labels in the diagram as a string. + */ + Graph.prototype.getIndexableText = function () { + var tmp = document.createElement('div'); + var labels = []; + var label = ''; + + for (var key in this.model.cells) { + var cell = this.model.cells[key]; + + if (this.model.isVertex(cell) || this.model.isEdge(cell)) { + if (this.isHtmlLabel(cell)) { + tmp.innerHTML = this.getLabel(cell); + label = mxUtils.extractTextWithWhitespace([tmp]); + } + else { + label = this.getLabel(cell); + } + + label = mxUtils.trim(label.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g, ' ')); + + if (label.length > 0) { + labels.push(label); + } + } + } + + return labels.join(' '); + }; + + /** + * Returns the label for the given cell. + */ + Graph.prototype.convertValueToString = function (cell) { + if (cell.value != null && typeof (cell.value) == 'object') { + if (this.isReplacePlaceholders(cell) && cell.getAttribute('placeholder') != null) { + var name = cell.getAttribute('placeholder'); + var current = cell; + var result = null; + + while (result == null && current != null) { + if (current.value != null && typeof (current.value) == 'object') { + result = (current.hasAttribute(name)) ? ((current.getAttribute(name) != null) ? + current.getAttribute(name) : '') : null; + } + + current = this.model.getParent(current); + } + + return result || ''; + } + else { + return cell.value.getAttribute('label') || ''; + } + } + + return mxGraph.prototype.convertValueToString.apply(this, arguments); + }; + + /** + * Returns the link for the given cell. + */ + Graph.prototype.getLinksForState = function (state) { + if (state != null && state.text != null && state.text.node != null) { + return state.text.node.getElementsByTagName('a'); + } + + return null; + }; + + /** + * Returns the link for the given cell. + */ + Graph.prototype.getLinkForCell = function (cell) { + if (cell.value != null && typeof (cell.value) == 'object') { + var link = cell.value.getAttribute('link'); + + // Removes links with leading javascript: protocol + // TODO: Check more possible attack vectors + if (link != null && link.toLowerCase().substring(0, 11) === 'javascript:') { + link = link.substring(11); + } + + return link; + } + + return null; + }; + + /** + * Overrides label orientation for collapsed swimlanes inside stack. + */ + Graph.prototype.getCellStyle = function (cell) { + var style = mxGraph.prototype.getCellStyle.apply(this, arguments); + + if (cell != null && this.layoutManager != null) { + var parent = this.model.getParent(cell); + + if (this.model.isVertex(parent) && this.isCellCollapsed(cell)) { + var layout = this.layoutManager.getLayout(parent); + + if (layout != null && layout.constructor == mxStackLayout) { + style[mxConstants.STYLE_HORIZONTAL] = !layout.horizontal; + } + } + } + + return style; + }; + + /** + * Disables alternate width persistence for stack layout parents + */ + Graph.prototype.updateAlternateBounds = function (cell, geo, willCollapse) { + if (cell != null && geo != null && this.layoutManager != null && geo.alternateBounds != null) { + var layout = this.layoutManager.getLayout(this.model.getParent(cell)); + + if (layout != null && layout.constructor == mxStackLayout) { + if (layout.horizontal) { + geo.alternateBounds.height = 0; + } + else { + geo.alternateBounds.width = 0; + } + } + } + + mxGraph.prototype.updateAlternateBounds.apply(this, arguments); + }; + + /** + * Adds Shift+collapse/expand and size management for folding inside stack + */ + Graph.prototype.isMoveCellsEvent = function (evt) { + return mxEvent.isShiftDown(evt); + }; + + /** + * Adds Shift+collapse/expand and size management for folding inside stack + */ + Graph.prototype.foldCells = function (collapse, recurse, cells, checkFoldable, evt) { + recurse = (recurse != null) ? recurse : false; + + if (cells == null) { + cells = this.getFoldableCells(this.getSelectionCells(), collapse); + } + + if (cells != null) { + this.model.beginUpdate(); + + try { + mxGraph.prototype.foldCells.apply(this, arguments); + + // Resizes all parent stacks if alt is not pressed + if (this.layoutManager != null) { + for (var i = 0; i < cells.length; i++) { + var state = this.view.getState(cells[i]); + var geo = this.getCellGeometry(cells[i]); + + if (state != null && geo != null) { + var dx = Math.round(geo.width - state.width / this.view.scale); + var dy = Math.round(geo.height - state.height / this.view.scale); + + if (dy != 0 || dx != 0) { + var parent = this.model.getParent(cells[i]); + var layout = this.layoutManager.getLayout(parent); + + if (layout == null) { + // Moves cells to the right and down after collapse/expand + if (evt != null && this.isMoveCellsEvent(evt)) { + this.moveSiblings(state, parent, dx, dy); + } + } + else if ((evt == null || !mxEvent.isAltDown(evt)) && layout.constructor == mxStackLayout && !layout.resizeLast) { + this.resizeParentStacks(parent, layout, dx, dy); + } + } + } + } + } + } + finally { + this.model.endUpdate(); + } + + // Selects cells after folding + if (this.isEnabled()) { + this.setSelectionCells(cells); + } + } + }; + + /** + * Overrides label orientation for collapsed swimlanes inside stack. + */ + Graph.prototype.moveSiblings = function (state, parent, dx, dy) { + this.model.beginUpdate(); + try { + var cells = this.getCellsBeyond(state.x, state.y, parent, true, true); + + for (var i = 0; i < cells.length; i++) { + if (cells[i] != state.cell) { + var tmp = this.view.getState(cells[i]); + var geo = this.getCellGeometry(cells[i]); + + if (tmp != null && geo != null) { + geo = geo.clone(); + geo.translate(Math.round(dx * Math.max(0, Math.min(1, (tmp.x - state.x) / state.width))), + Math.round(dy * Math.max(0, Math.min(1, (tmp.y - state.y) / state.height)))); + this.model.setGeometry(cells[i], geo); + } + } + } + } + finally { + this.model.endUpdate(); + } + }; + + /** + * Overrides label orientation for collapsed swimlanes inside stack. + */ + Graph.prototype.resizeParentStacks = function (parent, layout, dx, dy) { + if (this.layoutManager != null && layout != null && layout.constructor == mxStackLayout && !layout.resizeLast) { + this.model.beginUpdate(); + try { + var dir = layout.horizontal; + + // Bubble resize up for all parent stack layouts with same orientation + while (parent != null && layout != null && layout.constructor == mxStackLayout && + layout.horizontal == dir && !layout.resizeLast) { + var pgeo = this.getCellGeometry(parent); + var pstate = this.view.getState(parent); + + if (pstate != null && pgeo != null) { + pgeo = pgeo.clone(); + + if (layout.horizontal) { + pgeo.width += dx + Math.min(0, pstate.width / this.view.scale - pgeo.width); + } + else { + pgeo.height += dy + Math.min(0, pstate.height / this.view.scale - pgeo.height); + } + + this.model.setGeometry(parent, pgeo); + } + + parent = this.model.getParent(parent); + layout = this.layoutManager.getLayout(parent); + } + } + finally { + this.model.endUpdate(); + } + } + }; + + /** + * Disables drill-down for non-swimlanes. + */ + Graph.prototype.isContainer = function (cell) { + var state = this.view.getState(cell); + var style = (state != null) ? state.style : this.getCellStyle(cell); + + if (this.isSwimlane(cell)) { + return style['container'] != '0'; + } + else { + return style['container'] == '1'; + } + }; + + /** + * Adds a connectable style. + */ + Graph.prototype.isCellConnectable = function (cell) { + var state = this.view.getState(cell); + var style = (state != null) ? state.style : this.getCellStyle(cell); + + return (style['connectable'] != null) ? style['connectable'] != '0' : + mxGraph.prototype.isCellConnectable.apply(this, arguments); + }; + + /** + * Function: selectAll + * + * Selects all children of the given parent cell or the children of the + * default parent if no parent is specified. To select leaf vertices and/or + * edges use . + * + * Parameters: + * + * parent - Optional whose children should be selected. + * Default is . + */ + Graph.prototype.selectAll = function (parent) { + parent = parent || this.getDefaultParent(); + + if (!this.isCellLocked(parent)) { + mxGraph.prototype.selectAll.apply(this, arguments); + } + }; + + /** + * Function: selectCells + * + * Selects all vertices and/or edges depending on the given boolean + * arguments recursively, starting at the given parent or the default + * parent if no parent is specified. Use to select all cells. + * For vertices, only cells with no children are selected. + * + * Parameters: + * + * vertices - Boolean indicating if vertices should be selected. + * edges - Boolean indicating if edges should be selected. + * parent - Optional that acts as the root of the recursion. + * Default is . + */ + Graph.prototype.selectCells = function (vertices, edges, parent) { + parent = parent || this.getDefaultParent(); + + if (!this.isCellLocked(parent)) { + mxGraph.prototype.selectCells.apply(this, arguments); + } + }; + + /** + * Function: getSwimlaneAt + * + * Returns the bottom-most swimlane that intersects the given point (x, y) + * in the cell hierarchy that starts at the given parent. + * + * Parameters: + * + * x - X-coordinate of the location to be checked. + * y - Y-coordinate of the location to be checked. + * parent - that should be used as the root of the recursion. + * Default is . + */ + Graph.prototype.getSwimlaneAt = function (x, y, parent) { + parent = parent || this.getDefaultParent(); + + if (!this.isCellLocked(parent)) { + return mxGraph.prototype.getSwimlaneAt.apply(this, arguments); + } + + return null; + }; + + /** + * Disables folding for non-swimlanes. + */ + Graph.prototype.isCellFoldable = function (cell) { + var state = this.view.getState(cell); + var style = (state != null) ? state.style : this.getCellStyle(cell); + + return this.foldingEnabled && !this.isCellLocked(cell) && + ((this.isContainer(cell) && style['collapsible'] != '0') || + (!this.isContainer(cell) && style['collapsible'] == '1')); + }; + + /** + * Stops all interactions and clears the selection. + */ + Graph.prototype.reset = function () { + if (this.isEditing()) { + this.stopEditing(true); + } + + this.escape(); + + if (!this.isSelectionEmpty()) { + this.clearSelection(); + } + }; + + /** + * Overridden to limit zoom to 1% - 16.000%. + */ + Graph.prototype.zoom = function (factor, center) { + factor = Math.max(0.01, Math.min(this.view.scale * factor, 160)) / this.view.scale; + + mxGraph.prototype.zoom.apply(this, arguments); + }; + + /** + * Function: zoomIn + * + * Zooms into the graph by . + */ + Graph.prototype.zoomIn = function () { + // Switches to 1% zoom steps below 15% + if (this.view.scale < 0.15) { + this.zoom((this.view.scale + 0.01) / this.view.scale); + } + else { + // Uses to 5% zoom steps for better grid rendering in webkit + // and to avoid rounding errors for zoom steps + this.zoom((Math.round(this.view.scale * this.zoomFactor * 20) / 20) / this.view.scale); + } + }; + + /** + * Function: zoomOut + * + * Zooms out of the graph by . + */ + Graph.prototype.zoomOut = function () { + // Switches to 1% zoom steps below 15% + if (this.view.scale <= 0.15) { + this.zoom((this.view.scale - 0.01) / this.view.scale); + } + else { + // Uses to 5% zoom steps for better grid rendering in webkit + // and to avoid rounding errors for zoom steps + this.zoom((Math.round(this.view.scale * (1 / this.zoomFactor) * 20) / 20) / this.view.scale); + } + }; + + /** + * Overrides tooltips to show custom tooltip or metadata. + */ + Graph.prototype.getTooltipForCell = function (cell) { + var tip = ''; + if (mxUtils.isNode(cell.value)) { + var tmp = cell.value.getAttribute('tooltip'); + + if (tmp != null) { + if (tmp != null && this.isReplacePlaceholders(cell)) { + tmp = this.replacePlaceholders(cell, tmp); + } + + tip = this.sanitizeHtml(tmp); + } + else { + var ignored = this.builtInProperties; + var attrs = cell.value.attributes; + var temp = []; + + // Hides links in edit mode + if (this.isEnabled()) { + ignored.push('link'); + } + + for (var i = 0; i < attrs.length; i++) { + if (mxUtils.indexOf(ignored, attrs[i].nodeName) < 0 && attrs[i].nodeValue.length > 0) { + temp.push({ name: attrs[i].nodeName, value: attrs[i].nodeValue }); + } + } + + // Sorts by name + temp.sort(function (a, b) { + if (a.name < b.name) { + return -1; + } + else if (a.name > b.name) { + return 1; + } + else { + return 0; + } + }); + + for (var i = 0; i < temp.length; i++) { + if (temp[i].name != 'link' || !this.isCustomLink(temp[i].value)) { + tip += ((temp[i].name != 'link') ? '' + temp[i].name + ': ' : '') + + mxUtils.htmlEntities(temp[i].value) + '\n'; + } + } + + if (tip.length > 0) { + tip = tip.substring(0, tip.length - 1); + + if (mxClient.IS_SVG) { + tip = '
' + tip + '
'; + } + } + } + } + return tip; + }; + + /** + * Turns the given string into an array. + */ + Graph.prototype.stringToBytes = function (str) { + var arr = new Array(str.length); + + for (var i = 0; i < str.length; i++) { + arr[i] = str.charCodeAt(i); + } + + return arr; + }; + + /** + * Turns the given array into a string. + */ + Graph.prototype.bytesToString = function (arr) { + var result = new Array(arr.length); + + for (var i = 0; i < arr.length; i++) { + result[i] = String.fromCharCode(arr[i]); + } + + return result.join(''); + }; + + /** + * Returns a base64 encoded version of the compressed outer XML of the given node. + */ + Graph.prototype.compressNode = function (node) { + return this.compress(this.zapGremlins(mxUtils.getXml(node))); + }; + + /** + * Returns a base64 encoded version of the compressed string. + */ + Graph.prototype.compress = function (data) { + if (data == null || data.length == 0 || typeof (pako) === 'undefined') { + return data; + } + else { + var tmp = this.bytesToString(pako.deflateRaw(encodeURIComponent(data))); + + return (window.btoa) ? btoa(tmp) : Base64.encode(tmp, true); + } + }; + + /** + * Returns a decompressed version of the base64 encoded string. + */ + Graph.prototype.decompress = function (data) { + if (data == null || data.length == 0 || typeof (pako) === 'undefined') { + return data; + } + else { + var tmp = (window.atob) ? atob(data) : Base64.decode(data, true); + + return this.zapGremlins(decodeURIComponent( + this.bytesToString(pako.inflateRaw(tmp)))); + } + }; + + /** + * Removes all illegal control characters with ASCII code <32 except TAB, LF + * and CR. + */ + Graph.prototype.zapGremlins = function (text) { + var checked = []; + + for (var i = 0; i < text.length; i++) { + var code = text.charCodeAt(i); + + // Removes all control chars except TAB, LF and CR + if (code >= 32 || code == 9 || code == 10 || code == 13) { + checked.push(text.charAt(i)); + } + } + + return checked.join(''); + }; + + /** + * Hover icons are used for hover, vertex handler and drag from sidebar. + */ + var HoverIcons = function (graph) { + this.graph = graph; + this.init(); + }; + + /** + * Up arrow. + */ + HoverIcons.prototype.arrowSpacing = 2; + + /** + * Delay to switch to another state for overlapping bbox. Default is 500ms. + */ + HoverIcons.prototype.updateDelay = 500; + + /** + * Delay to switch between states. Default is 140ms. + */ + HoverIcons.prototype.activationDelay = 140; + + /** + * Up arrow. + */ + HoverIcons.prototype.currentState = null; + + /** + * Up arrow. + */ + HoverIcons.prototype.activeArrow = null; + + /** + * Up arrow. + */ + HoverIcons.prototype.inactiveOpacity = 15; + + /** + * Up arrow. + */ + HoverIcons.prototype.cssCursor = 'copy'; + + /** + * Whether to hide arrows that collide with vertices. + * LATER: Add keyboard override, touch support. + */ + HoverIcons.prototype.checkCollisions = true; + + /** + * Up arrow. + */ + HoverIcons.prototype.arrowFill = '#29b6f2'; + + /** + * Up arrow. + */ + HoverIcons.prototype.triangleUp = (!mxClient.IS_SVG) ? new mxImage(IMAGE_PATH + '/triangle-up.png', 26, 14) : + Graph.createSvgImage(18, 28, ''); + + /** + * Right arrow. + */ + HoverIcons.prototype.triangleRight = (!mxClient.IS_SVG) ? new mxImage(IMAGE_PATH + '/triangle-right.png', 14, 26) : + Graph.createSvgImage(26, 18, ''); + + /** + * Down arrow. + */ + HoverIcons.prototype.triangleDown = (!mxClient.IS_SVG) ? new mxImage(IMAGE_PATH + '/triangle-down.png', 26, 14) : + Graph.createSvgImage(18, 26, ''); + + /** + * Left arrow. + */ + HoverIcons.prototype.triangleLeft = (!mxClient.IS_SVG) ? new mxImage(IMAGE_PATH + '/triangle-left.png', 14, 26) : + Graph.createSvgImage(28, 18, ''); + + /** + * Round target. + */ + HoverIcons.prototype.roundDrop = (!mxClient.IS_SVG) ? new mxImage(IMAGE_PATH + '/round-drop.png', 26, 26) : + Graph.createSvgImage(26, 26, ''); + + /** + * Refresh target. + */ + HoverIcons.prototype.refreshTarget = new mxImage((mxClient.IS_SVG) ? 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDQxNERDRTU1QjY1MTFFNDkzNTRFQTVEMTdGMTdBQjciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDQxNERDRTY1QjY1MTFFNDkzNTRFQTVEMTdGMTdBQjciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0NDE0RENFMzVCNjUxMUU0OTM1NEVBNUQxN0YxN0FCNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0NDE0RENFNDVCNjUxMUU0OTM1NEVBNUQxN0YxN0FCNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PsvuX50AAANaSURBVHja7FjRZ1tRGD9ZJ1NCyIQSwrivI4Q8hCpjlFDyFEoYfSp9Ko1QWnmo0If+BSXkIfo0QirTMUpeGo2EPfWllFYjZMLKLDJn53d3biU337m5J223bPbxk5t7v+/c3/2+73znO8fDOWezKM/YjMpz68Lj8ejY+QTeCCwLxOS9qPxtyN+6wAeBTwJ31CCO0cJDjXBGBN4LfIepSwykTUT1bgpuib0SONIgo8KRHOtRiCFcvUcgZeGrHPNBxLIyFPyRgTGz0xLbegJCdmzpElue5KlAIMDX19d5uVzm5+fnfDAYmMA17uEZdOx2Yvb/sHlu2S0xwymn5ufneTab5b1ej08S6EAXNrDd2dnhiUTim21MvMtwQ6yiIrWwsMDPzs64rsBmf3/fvM7n89TYlUnEllSkQqEQv7q64g+Vk5MTVXosORErU0Zer5f0FEIlw2N6MxwO82QyaXql2+2SxDqdjopYWUUsqEp45IldqtWq6UWVh/1+P7+8vCTJ4QMUJSRIEXuneoH96w8PDyeWAnhSJfCqwm6NIlaklFdXV0cGhRcQ2mlJQXK5nMq2YPEZbnteU1U2lUqN/D84OGD9fl+5fgnSrFarsUwmw0qlEru4uBjTicViTk3Cr27HSnxR+Doyz0ZE1CAWiUTusbu7y9rttlZv5fP5WDQavYfIMba4uEipfhF8XtqJoZXx/uH+sC/4vPg7OljZZQbsCmLtYzc3N6zRaJhotVrmfx0xDINtbm6athYUeXpHdbBNaqZUKpWxWXV7e2vex+xaWVnhc3NzjrPUXgexyCt0m67LBV7uJMITjqRE4o8tZeg8FPpFitgapYxiOC0poFgsji1jKNo6BZZckrAGUtJsNk1vqAihCBcKhTE7hNWhqw2qFnGy5UFOUYJVIJ1OjzSE+BCEilon0URavRmBqnbbQ00AXbm+vnZc9O1tj72OnQoc2+cwygRkb2+P1et17ZoEm3g87lRmjgWZ00kbXkNuse6/Bu2wlegIxfb2tuvWGroO4bO2c4bbzUh60mxDXm1sbJhhxkQYnhS4h2fUZoRAWnf7lv8N27f8P7Xhnekjgpk+VKGOoQbsiY+hhhtF3YO7twIJ+ULvUGv+GQ2fQEvWxI/THNx5/p/BaspPAQYAqStgiSQwCDoAAAAASUVORK5CYII=' : + IMAGE_PATH + '/refresh.png', 38, 38); + + /** + * Tolerance for hover icon clicks. + */ + HoverIcons.prototype.tolerance = (mxClient.IS_TOUCH) ? 6 : 0; + + /** + * + */ + HoverIcons.prototype.init = function () { + this.arrowUp = this.createArrow(this.triangleUp, mxResources.get('plusTooltip')); + this.arrowRight = this.createArrow(this.triangleRight, mxResources.get('plusTooltip')); + this.arrowDown = this.createArrow(this.triangleDown, mxResources.get('plusTooltip')); + this.arrowLeft = this.createArrow(this.triangleLeft, mxResources.get('plusTooltip')); + + this.elts = [this.arrowUp, this.arrowRight, this.arrowDown, this.arrowLeft]; + + this.repaintHandler = mxUtils.bind(this, function () { + this.repaint(); + }); + + this.graph.selectionModel.addListener(mxEvent.CHANGE, this.repaintHandler); + this.graph.model.addListener(mxEvent.CHANGE, this.repaintHandler); + this.graph.view.addListener(mxEvent.SCALE_AND_TRANSLATE, this.repaintHandler); + this.graph.view.addListener(mxEvent.TRANSLATE, this.repaintHandler); + this.graph.view.addListener(mxEvent.SCALE, this.repaintHandler); + this.graph.view.addListener(mxEvent.DOWN, this.repaintHandler); + this.graph.view.addListener(mxEvent.UP, this.repaintHandler); + this.graph.addListener(mxEvent.ROOT, this.repaintHandler); + + // Resets the mouse point on escape + this.graph.addListener(mxEvent.ESCAPE, mxUtils.bind(this, function () { + this.mouseDownPoint = null; + })); + + // Removes hover icons if mouse leaves the container + mxEvent.addListener(this.graph.container, 'mouseleave', mxUtils.bind(this, function (evt) { + // Workaround for IE11 firing mouseleave for touch in diagram + if (evt.relatedTarget != null && mxEvent.getSource(evt) == this.graph.container) { + this.setDisplay('none'); + } + })); + + // Resets current state when in-place editor starts + this.graph.addListener(mxEvent.START_EDITING, mxUtils.bind(this, function (evt) { + this.reset(); + })); + + // Resets current state after update of selection state for touch events + var graphClick = this.graph.click; + this.graph.click = mxUtils.bind(this, function (me) { + graphClick.apply(this.graph, arguments); + + if (this.currentState != null && !this.graph.isCellSelected(this.currentState.cell) && + mxEvent.isTouchEvent(me.getEvent()) && !this.graph.model.isVertex(me.getCell())) { + this.reset(); + } + }); + + // Checks if connection handler was active in mouse move + // as workaround for possible double connection inserted + var connectionHandlerActive = false; + + // Implements a listener for hover and click handling + this.graph.addMouseListener( + { + mouseDown: mxUtils.bind(this, function (sender, me) { + connectionHandlerActive = false; + var evt = me.getEvent(); + + if (this.isResetEvent(evt)) { + this.reset(); + } + else if (!this.isActive()) { + var state = this.getState(me.getState()); + + if (state != null || !mxEvent.isTouchEvent(evt)) { + this.update(state); + } + } + + this.setDisplay('none'); + }), + mouseMove: mxUtils.bind(this, function (sender, me) { + var evt = me.getEvent(); + + if (this.isResetEvent(evt)) { + this.reset(); + } + else if (!this.graph.isMouseDown && !mxEvent.isTouchEvent(evt)) { + this.update(this.getState(me.getState()), + me.getGraphX(), me.getGraphY()); + } + + if (this.graph.connectionHandler != null && + this.graph.connectionHandler.shape != null) { + connectionHandlerActive = true; + } + }), + mouseUp: mxUtils.bind(this, function (sender, me) { + var evt = me.getEvent(); + var pt = mxUtils.convertPoint(this.graph.container, + mxEvent.getClientX(evt), mxEvent.getClientY(evt)) + + if (this.isResetEvent(evt)) { + this.reset(); + } + else if (this.isActive() && !connectionHandlerActive && + this.mouseDownPoint != null) { + this.click(this.currentState, this.getDirection(), me); + } + else if (this.isActive()) { + // Selects target vertex after drag and clone if not only new edge was inserted + if (this.graph.getSelectionCount() != 1 || !this.graph.model.isEdge( + this.graph.getSelectionCell())) { + this.update(this.getState(this.graph.view.getState( + this.graph.getCellAt(me.getGraphX(), me.getGraphY())))); + } + else { + this.reset(); + } + } + else if (mxEvent.isTouchEvent(evt) || (this.bbox != null && + mxUtils.contains(this.bbox, me.getGraphX(), me.getGraphY()))) { + // Shows existing hover icons if inside bounding box + this.setDisplay(''); + this.repaint(); + } + else if (!mxEvent.isTouchEvent(evt)) { + this.reset(); + } + + connectionHandlerActive = false; + this.resetActiveArrow(); + }) + }); + }; + + /** + * + */ + HoverIcons.prototype.isResetEvent = function (evt, allowShift) { + return mxEvent.isAltDown(evt) || (this.activeArrow == null && mxEvent.isShiftDown(evt)) || + mxEvent.isMetaDown(evt) || (mxEvent.isPopupTrigger(evt) && !mxEvent.isControlDown(evt)); + }; + + /** + * + */ + HoverIcons.prototype.createArrow = function (img, tooltip) { + var arrow = null; + + if (mxClient.IS_IE && !mxClient.IS_SVG) { + // Workaround for PNG images in IE6 + if (mxClient.IS_IE6 && document.compatMode != 'CSS1Compat') { + arrow = document.createElement(mxClient.VML_PREFIX + ':image'); + arrow.setAttribute('src', img.src); + arrow.style.borderStyle = 'none'; + } + else { + arrow = document.createElement('div'); + arrow.style.backgroundImage = 'url(' + img.src + ')'; + arrow.style.backgroundPosition = 'center'; + arrow.style.backgroundRepeat = 'no-repeat'; + } + + arrow.style.width = (img.width + 4) + 'px'; + arrow.style.height = (img.height + 4) + 'px'; + arrow.style.display = (mxClient.IS_QUIRKS) ? 'inline' : 'inline-block'; + } + else { + arrow = mxUtils.createImage(img.src); + arrow.style.width = img.width + 'px'; + arrow.style.height = img.height + 'px'; + arrow.style.padding = this.tolerance + 'px'; + } + + if (tooltip != null) { + arrow.setAttribute('title', tooltip); + } + + arrow.style.position = 'absolute'; + arrow.style.cursor = this.cssCursor; + + mxEvent.addGestureListeners(arrow, mxUtils.bind(this, function (evt) { + if (this.currentState != null && !this.isResetEvent(evt)) { + this.mouseDownPoint = mxUtils.convertPoint(this.graph.container, + mxEvent.getClientX(evt), mxEvent.getClientY(evt)); + this.drag(evt, this.mouseDownPoint.x, this.mouseDownPoint.y); + this.activeArrow = arrow; + this.setDisplay('none'); + mxEvent.consume(evt); + } + })); + + // Captures mouse events as events on graph + mxEvent.redirectMouseEvents(arrow, this.graph, this.currentState); + + mxEvent.addListener(arrow, 'mouseenter', mxUtils.bind(this, function (evt) { + // Workaround for Firefox firing mouseenter on touchend + if (mxEvent.isMouseEvent(evt)) { + if (this.activeArrow != null && this.activeArrow != arrow) { + mxUtils.setOpacity(this.activeArrow, this.inactiveOpacity); + } + + this.graph.connectionHandler.constraintHandler.reset(); + mxUtils.setOpacity(arrow, 100); + this.activeArrow = arrow; + } + })); + + mxEvent.addListener(arrow, 'mouseleave', mxUtils.bind(this, function (evt) { + // Workaround for IE11 firing this event on touch + if (!this.graph.isMouseDown) { + this.resetActiveArrow(); + } + })); + + return arrow; + }; + + /** + * + */ + HoverIcons.prototype.resetActiveArrow = function () { + if (this.activeArrow != null) { + mxUtils.setOpacity(this.activeArrow, this.inactiveOpacity); + this.activeArrow = null; + } + }; + + /** + * + */ + HoverIcons.prototype.getDirection = function () { + var dir = mxConstants.DIRECTION_EAST; + + if (this.activeArrow == this.arrowUp) { + dir = mxConstants.DIRECTION_NORTH; + } + else if (this.activeArrow == this.arrowDown) { + dir = mxConstants.DIRECTION_SOUTH; + } + else if (this.activeArrow == this.arrowLeft) { + dir = mxConstants.DIRECTION_WEST; + } + + return dir; + }; + + /** + * + */ + HoverIcons.prototype.visitNodes = function (visitor) { + for (var i = 0; i < this.elts.length; i++) { + if (this.elts[i] != null) { + visitor(this.elts[i]); + } + } + }; + + /** + * + */ + HoverIcons.prototype.removeNodes = function () { + this.visitNodes(function (elt) { + if (elt.parentNode != null) { + elt.parentNode.removeChild(elt); + } + }); + }; + + /** + * + */ + HoverIcons.prototype.setDisplay = function (display) { + this.visitNodes(function (elt) { + elt.style.display = display; + }); + }; + + /** + * + */ + HoverIcons.prototype.isActive = function () { + return this.activeArrow != null && this.currentState != null; + }; + + /** + * + */ + HoverIcons.prototype.drag = function (evt, x, y) { + this.graph.popupMenuHandler.hideMenu(); + this.graph.stopEditing(false); + + // Checks if state was removed in call to stopEditing above + if (this.currentState != null) { + this.graph.connectionHandler.start(this.currentState, x, y); + this.graph.isMouseTrigger = mxEvent.isMouseEvent(evt); + this.graph.isMouseDown = true; + + // Hides handles for selection cell + var handler = this.graph.selectionCellsHandler.getHandler(this.currentState.cell); + + if (handler != null) { + handler.setHandlesVisible(false); + } + + // Ctrl+shift drag sets source constraint + var es = this.graph.connectionHandler.edgeState; + + if (evt != null && mxEvent.isShiftDown(evt) && mxEvent.isControlDown(evt) && es != null && + mxUtils.getValue(es.style, mxConstants.STYLE_EDGE, null) === 'orthogonalEdgeStyle') { + var direction = this.getDirection(); + es.cell.style = mxUtils.setStyle(es.cell.style, 'sourcePortConstraint', direction); + es.style['sourcePortConstraint'] = direction; + } + } + }; + + /** + * + */ + HoverIcons.prototype.getStateAt = function (state, x, y) { + return this.graph.view.getState(this.graph.getCellAt(x, y)); + }; + + /** + * + */ + HoverIcons.prototype.click = function (state, dir, me) { + var evt = me.getEvent(); + var x = me.getGraphX(); + var y = me.getGraphY(); + + var tmp = this.getStateAt(state, x, y); + + if (tmp != null && this.graph.model.isEdge(tmp.cell) && !mxEvent.isControlDown(evt) && + (tmp.getVisibleTerminalState(true) == state || tmp.getVisibleTerminalState(false) == state)) { + this.graph.setSelectionCell(tmp.cell); + this.reset(); + } + else if (state != null) { + var cells = this.graph.connectVertex(state.cell, dir, this.graph.defaultEdgeLength, evt); + this.graph.selectCellsForConnectVertex(cells, evt, this); + + // Selects only target vertex if one exists + if (cells.length == 2 && this.graph.model.isVertex(cells[1])) { + this.graph.setSelectionCell(cells[1]); + + // Adds hover icons to new target vertex for touch devices + if (mxEvent.isTouchEvent(evt)) { + this.update(this.getState(this.graph.view.getState(cells[1]))); + } + else { + // Hides hover icons after click with mouse + this.reset(); + } + + this.graph.scrollCellToVisible(cells[1]); + } + else { + this.graph.setSelectionCells(cells); + } + } + + me.consume(); + }; + + /** + * + */ + HoverIcons.prototype.reset = function (clearTimeout) { + clearTimeout = (clearTimeout == null) ? true : clearTimeout; + + if (clearTimeout && this.updateThread != null) { + window.clearTimeout(this.updateThread); + } + + this.mouseDownPoint = null; + this.currentState = null; + this.activeArrow = null; + this.removeNodes(); + this.bbox = null; + }; + + /** + * + */ + HoverIcons.prototype.repaint = function () { + this.bbox = null; + + if (this.currentState != null) { + // Checks if cell was deleted + this.currentState = this.getState(this.currentState); + + // Cell was deleted + if (this.currentState != null && + this.graph.model.isVertex(this.currentState.cell) && + this.graph.isCellConnectable(this.currentState.cell)) { + var bds = mxRectangle.fromRectangle(this.currentState); + + // Uses outer bounding box to take rotation into account + if (this.currentState.shape != null && this.currentState.shape.boundingBox != null) { + bds = mxRectangle.fromRectangle(this.currentState.shape.boundingBox); + } + + bds.grow(this.graph.tolerance); + bds.grow(this.arrowSpacing); + + var handler = this.graph.selectionCellsHandler.getHandler(this.currentState.cell); + + if (handler != null) { + bds.x -= handler.horizontalOffset / 2; + bds.y -= handler.verticalOffset / 2; + bds.width += handler.horizontalOffset; + bds.height += handler.verticalOffset; + + // Adds bounding box of rotation handle to avoid overlap + if (handler.rotationShape != null && handler.rotationShape.node != null && + handler.rotationShape.node.style.visibility != 'hidden' && + handler.rotationShape.node.style.display != 'none' && + handler.rotationShape.boundingBox != null) { + bds.add(handler.rotationShape.boundingBox); + } + } + + this.arrowUp.style.left = Math.round(this.currentState.getCenterX() - this.triangleUp.width / 2 - this.tolerance) + 'px'; + this.arrowUp.style.top = Math.round(bds.y - this.triangleUp.height - this.tolerance) + 'px'; + mxUtils.setOpacity(this.arrowUp, this.inactiveOpacity); + + this.arrowRight.style.left = Math.round(bds.x + bds.width - this.tolerance) + 'px'; + this.arrowRight.style.top = Math.round(this.currentState.getCenterY() - this.triangleRight.height / 2 - this.tolerance) + 'px'; + mxUtils.setOpacity(this.arrowRight, this.inactiveOpacity); + + this.arrowDown.style.left = this.arrowUp.style.left; + this.arrowDown.style.top = Math.round(bds.y + bds.height - this.tolerance) + 'px'; + mxUtils.setOpacity(this.arrowDown, this.inactiveOpacity); + + this.arrowLeft.style.left = Math.round(bds.x - this.triangleLeft.width - this.tolerance) + 'px'; + this.arrowLeft.style.top = this.arrowRight.style.top; + mxUtils.setOpacity(this.arrowLeft, this.inactiveOpacity); + + if (this.checkCollisions) { + var right = this.graph.getCellAt(bds.x + bds.width + + this.triangleRight.width / 2, this.currentState.getCenterY()); + var left = this.graph.getCellAt(bds.x - this.triangleLeft.width / 2, this.currentState.getCenterY()); + var top = this.graph.getCellAt(this.currentState.getCenterX(), bds.y - this.triangleUp.height / 2); + var bottom = this.graph.getCellAt(this.currentState.getCenterX(), bds.y + bds.height + this.triangleDown.height / 2); + + // Shows hover icons large cell is behind all directions of current cell + if (right != null && right == left && left == top && top == bottom) { + right = null; + left = null; + top = null; + bottom = null; + } + + var currentGeo = this.graph.getCellGeometry(this.currentState.cell); + + var checkCollision = mxUtils.bind(this, function (cell, arrow) { + var geo = this.graph.model.isVertex(cell) && this.graph.getCellGeometry(cell); + + // Ignores collision if vertex is more than 3 times the size of this vertex + if (cell != null && !this.graph.model.isAncestor(cell, this.currentState.cell) && + (geo == null || currentGeo == null || (geo.height < 6 * currentGeo.height && + geo.width < 6 * currentGeo.width))) { + arrow.style.visibility = 'hidden'; + } + else { + arrow.style.visibility = 'visible'; + } + }); + + checkCollision(right, this.arrowRight); + checkCollision(left, this.arrowLeft); + checkCollision(top, this.arrowUp); + checkCollision(bottom, this.arrowDown); + } + else { + this.arrowLeft.style.visibility = 'visible'; + this.arrowRight.style.visibility = 'visible'; + this.arrowUp.style.visibility = 'visible'; + this.arrowDown.style.visibility = 'visible'; + } + + if (this.graph.tooltipHandler.isEnabled()) { + this.arrowLeft.setAttribute('title', mxResources.get('plusTooltip')); + this.arrowRight.setAttribute('title', mxResources.get('plusTooltip')); + this.arrowUp.setAttribute('title', mxResources.get('plusTooltip')); + this.arrowDown.setAttribute('title', mxResources.get('plusTooltip')); + } + else { + this.arrowLeft.removeAttribute('title'); + this.arrowRight.removeAttribute('title'); + this.arrowUp.removeAttribute('title'); + this.arrowDown.removeAttribute('title'); + } + } + else { + this.reset(); + } + + // Updates bounding box + if (this.currentState != null) { + this.bbox = this.computeBoundingBox(); + + // Adds tolerance for hover + if (this.bbox != null) { + this.bbox.grow(10); + } + } + } + }; + + /** + * + */ + HoverIcons.prototype.computeBoundingBox = function () { + var bbox = (!this.graph.model.isEdge(this.currentState.cell)) ? mxRectangle.fromRectangle(this.currentState) : null; + + this.visitNodes(function (elt) { + if (elt.parentNode != null) { + var tmp = new mxRectangle(elt.offsetLeft, elt.offsetTop, elt.offsetWidth, elt.offsetHeight); + + if (bbox == null) { + bbox = tmp; + } + else { + bbox.add(tmp); + } + } + }); + + return bbox; + }; + + /** + * + */ + HoverIcons.prototype.getState = function (state) { + if (state != null) { + var cell = state.cell; + + // Uses connectable parent vertex if child is not connectable + if (this.graph.getModel().isVertex(cell) && !this.graph.isCellConnectable(cell)) { + var parent = this.graph.getModel().getParent(cell); + + if (this.graph.getModel().isVertex(parent) && this.graph.isCellConnectable(parent)) { + cell = parent; + } + } + + // Ignores locked cells and edges + if (this.graph.isCellLocked(cell) || this.graph.model.isEdge(cell)) { + cell = null; + } + + state = this.graph.view.getState(cell); + } + + return state; + }; + + /** + * + */ + HoverIcons.prototype.update = function (state, x, y) { + if (!this.graph.connectionArrowsEnabled) { + this.reset(); + } + else { + var timeOnTarget = null; + + // Time on target + if (this.prev != state || this.isActive()) { + this.startTime = new Date().getTime(); + this.prev = state; + timeOnTarget = 0; + + if (this.updateThread != null) { + window.clearTimeout(this.updateThread); + } + + if (state != null) { + // Starts timer to update current state with no mouse events + this.updateThread = window.setTimeout(mxUtils.bind(this, function () { + if (!this.isActive() && !this.graph.isMouseDown && + !this.graph.panningHandler.isActive()) { + this.prev = state; + this.update(state, x, y); + } + }), this.updateDelay + 10); + } + } + else if (this.startTime != null) { + timeOnTarget = new Date().getTime() - this.startTime; + } + + this.setDisplay(''); + + if (this.currentState != null && this.currentState != state && timeOnTarget < this.activationDelay && + this.bbox != null && !mxUtils.contains(this.bbox, x, y)) { + this.reset(false); + } + else if (this.currentState != null || timeOnTarget > this.activationDelay) { + if (this.currentState != state && ((timeOnTarget > this.updateDelay && state != null) || + this.bbox == null || x == null || y == null || !mxUtils.contains(this.bbox, x, y))) { + if (state != null && this.graph.isEnabled()) { + this.removeNodes(); + this.setCurrentState(state); + this.repaint(); + + // Resets connection points on other focused cells + if (this.graph.connectionHandler.constraintHandler.currentFocus != state) { + this.graph.connectionHandler.constraintHandler.reset(); + } + } + else { + this.reset(); + } + } + } + } + }; + + /** + * + */ + HoverIcons.prototype.setCurrentState = function (state) { + if (state.style['portConstraint'] != 'eastwest') { + this.graph.container.appendChild(this.arrowUp); + this.graph.container.appendChild(this.arrowDown); + } + + this.graph.container.appendChild(this.arrowRight); + this.graph.container.appendChild(this.arrowLeft); + this.currentState = state; + }; + + (function () { + + /** + * Reset the list of processed edges. + */ + var mxGraphViewResetValidationState = mxGraphView.prototype.resetValidationState; + + mxGraphView.prototype.resetValidationState = function () { + mxGraphViewResetValidationState.apply(this, arguments); + + this.validEdges = []; + }; + + /** + * Updates jumps for valid edges and repaints if needed. + */ + var mxGraphViewValidateCellState = mxGraphView.prototype.validateCellState; + + mxGraphView.prototype.validateCellState = function (cell, recurse) { + var state = this.getState(cell); + + // Forces repaint if jumps change on a valid edge + if (state != null && this.graph.model.isEdge(state.cell) && + state.style != null && state.style[mxConstants.STYLE_CURVED] != 1 && + !state.invalid && this.updateLineJumps(state)) { + this.graph.cellRenderer.redraw(state, false, this.isRendering()); + } + + state = mxGraphViewValidateCellState.apply(this, arguments); + + // Adds to the list of edges that may intersect with later edges + if (state != null && this.graph.model.isEdge(state.cell) && + state.style[mxConstants.STYLE_CURVED] != 1) { + // LATER: Reuse jumps for valid edges + this.validEdges.push(state); + } + + return state; + }; + + /** + * Forces repaint if routed points have changed. + */ + var mxCellRendererIsShapeInvalid = mxCellRenderer.prototype.isShapeInvalid; + + mxCellRenderer.prototype.isShapeInvalid = function (state, shape) { + return mxCellRendererIsShapeInvalid.apply(this, arguments) || + (state.routedPoints != null && shape.routedPoints != null && + !mxUtils.equalPoints(shape.routedPoints, state.routedPoints)) + }; + + + /** + * Updates jumps for invalid edges. + */ + var mxGraphViewUpdateCellState = mxGraphView.prototype.updateCellState; + + mxGraphView.prototype.updateCellState = function (state) { + mxGraphViewUpdateCellState.apply(this, arguments); + + // Updates jumps on invalid edge before repaint + if (this.graph.model.isEdge(state.cell) && + state.style[mxConstants.STYLE_CURVED] != 1) { + this.updateLineJumps(state); + } + }; + + /** + * Updates the jumps between given state and processed edges. + */ + mxGraphView.prototype.updateLineJumps = function (state) { + var pts = state.absolutePoints; + + if (Graph.lineJumpsEnabled) { + var changed = state.routedPoints != null; + var actual = null; + + if (pts != null && this.validEdges != null && + mxUtils.getValue(state.style, 'jumpStyle', 'none') !== 'none') { + var thresh = 0.5 * this.scale; + changed = false; + actual = []; + + // Type 0 means normal waypoint, 1 means jump + function addPoint(type, x, y) { + var rpt = new mxPoint(x, y); + rpt.type = type; + + actual.push(rpt); + var curr = (state.routedPoints != null) ? state.routedPoints[actual.length - 1] : null; + + return curr == null || curr.type != type || curr.x != x || curr.y != y; + }; + + for (var i = 0; i < pts.length - 1; i++) { + var p1 = pts[i + 1]; + var p0 = pts[i]; + var list = []; + + // Ignores waypoints on straight segments + var pn = pts[i + 2]; + + while (i < pts.length - 2 && + mxUtils.ptSegDistSq(p0.x, p0.y, pn.x, pn.y, + p1.x, p1.y) < 1 * this.scale * this.scale) { + p1 = pn; + i++; + pn = pts[i + 2]; + } + + changed = addPoint(0, p0.x, p0.y) || changed; + + // Processes all previous edges + for (var e = 0; e < this.validEdges.length; e++) { + var state2 = this.validEdges[e]; + var pts2 = state2.absolutePoints; + + if (pts2 != null && mxUtils.intersects(state, state2) && state2.style['noJump'] != '1') { + // Compares each segment of the edge with the current segment + for (var j = 0; j < pts2.length - 1; j++) { + var p3 = pts2[j + 1]; + var p2 = pts2[j]; + + // Ignores waypoints on straight segments + pn = pts2[j + 2]; + + while (j < pts2.length - 2 && + mxUtils.ptSegDistSq(p2.x, p2.y, pn.x, pn.y, + p3.x, p3.y) < 1 * this.scale * this.scale) { + p3 = pn; + j++; + pn = pts2[j + 2]; + } + + var pt = mxUtils.intersection(p0.x, p0.y, p1.x, p1.y, p2.x, p2.y, p3.x, p3.y); + + // Handles intersection between two segments + if (pt != null && (Math.abs(pt.x - p2.x) > thresh || + Math.abs(pt.y - p2.y) > thresh) && + (Math.abs(pt.x - p3.x) > thresh || + Math.abs(pt.y - p3.y) > thresh)) { + var dx = pt.x - p0.x; + var dy = pt.y - p0.y; + var temp = { distSq: dx * dx + dy * dy, x: pt.x, y: pt.y }; + + // Intersections must be ordered by distance from start of segment + for (var t = 0; t < list.length; t++) { + if (list[t].distSq > temp.distSq) { + list.splice(t, 0, temp); + temp = null; + + break; + } + } + + // Ignores multiple intersections at segment joint + if (temp != null && (list.length == 0 || + list[list.length - 1].x !== temp.x || + list[list.length - 1].y !== temp.y)) { + list.push(temp); + } + } + } + } + } + + // Adds ordered intersections to routed points + for (var j = 0; j < list.length; j++) { + changed = addPoint(1, list[j].x, list[j].y) || changed; + } + } + + var pt = pts[pts.length - 1]; + changed = addPoint(0, pt.x, pt.y) || changed; + } + + state.routedPoints = actual; + + return changed; + } + else { + return false; + } + }; + + /** + * Overrides painting the actual shape for taking into account jump style. + */ + var mxConnectorPaintLine = mxConnector.prototype.paintLine; + + mxConnector.prototype.paintLine = function (c, absPts, rounded) { + // Required for checking dirty state + this.routedPoints = (this.state != null) ? this.state.routedPoints : null; + + if (this.outline || this.state == null || this.style == null || + this.state.routedPoints == null || this.state.routedPoints.length == 0) { + mxConnectorPaintLine.apply(this, arguments); + } + else { + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, + mxConstants.LINE_ARCSIZE) / 2; + var size = (parseInt(mxUtils.getValue(this.style, 'jumpSize', + Graph.defaultJumpSize)) - 2) / 2 + this.strokewidth; + var style = mxUtils.getValue(this.style, 'jumpStyle', 'none'); + var f = Editor.jumpSizeRatio; + var moveTo = true; + var last = null; + var len = null; + var pts = []; + var n = null; + c.begin(); + + for (var i = 0; i < this.state.routedPoints.length; i++) { + var rpt = this.state.routedPoints[i]; + var pt = new mxPoint(rpt.x / this.scale, rpt.y / this.scale); + + // Takes first and last point from passed-in array + if (i == 0) { + pt = absPts[0]; + } + else if (i == this.state.routedPoints.length - 1) { + pt = absPts[absPts.length - 1]; + } + + var done = false; + + // Type 1 is an intersection + if (last != null && rpt.type == 1) { + // Checks if next/previous points are too close + var next = this.state.routedPoints[i + 1]; + var dx = next.x / this.scale - pt.x; + var dy = next.y / this.scale - pt.y; + var dist = dx * dx + dy * dy; + + if (n == null) { + n = new mxPoint(pt.x - last.x, pt.y - last.y); + len = Math.sqrt(n.x * n.x + n.y * n.y); + n.x = n.x * size / len; + n.y = n.y * size / len; + } + + if (dist > size * size && len > 0) { + var dx = last.x - pt.x; + var dy = last.y - pt.y; + var dist = dx * dx + dy * dy; + + if (dist > size * size) { + var p0 = new mxPoint(pt.x - n.x, pt.y - n.y); + var p1 = new mxPoint(pt.x + n.x, pt.y + n.y); + pts.push(p0); + + this.addPoints(c, pts, rounded, arcSize, false, null, moveTo); + + var f = (Math.round(n.x) < 0 || (Math.round(n.x) == 0 + && Math.round(n.y) <= 0)) ? 1 : -1; + moveTo = false; + + if (style == 'sharp') { + c.lineTo(p0.x - n.y * f, p0.y + n.x * f); + c.lineTo(p1.x - n.y * f, p1.y + n.x * f); + c.lineTo(p1.x, p1.y); + } + else if (style == 'arc') { + f *= 1.3; + c.curveTo(p0.x - n.y * f, p0.y + n.x * f, + p1.x - n.y * f, p1.y + n.x * f, + p1.x, p1.y); + } + else { + c.moveTo(p1.x, p1.y); + moveTo = true; + } + + pts = [p1]; + done = true; + } + } + } + else { + n = null; + } + + if (!done) { + pts.push(pt); + last = pt; + } + } + + this.addPoints(c, pts, rounded, arcSize, false, null, moveTo); + c.stroke(); + } + }; + + /** + * Adds support for snapToPoint style. + */ + var mxGraphViewUpdateFloatingTerminalPoint = mxGraphView.prototype.updateFloatingTerminalPoint; + + mxGraphView.prototype.updateFloatingTerminalPoint = function (edge, start, end, source) { + if (start != null && edge != null && + (start.style['snapToPoint'] == '1' || + edge.style['snapToPoint'] == '1')) { + start = this.getTerminalPort(edge, start, source); + var next = this.getNextPoint(edge, end, source); + + var orth = this.graph.isOrthogonal(edge); + var alpha = mxUtils.toRadians(Number(start.style[mxConstants.STYLE_ROTATION] || '0')); + var center = new mxPoint(start.getCenterX(), start.getCenterY()); + + if (alpha != 0) { + var cos = Math.cos(-alpha); + var sin = Math.sin(-alpha); + next = mxUtils.getRotatedPoint(next, cos, sin, center); + } + + var border = parseFloat(edge.style[mxConstants.STYLE_PERIMETER_SPACING] || 0); + border += parseFloat(edge.style[(source) ? + mxConstants.STYLE_SOURCE_PERIMETER_SPACING : + mxConstants.STYLE_TARGET_PERIMETER_SPACING] || 0); + var pt = this.getPerimeterPoint(start, next, alpha == 0 && orth, border); + + if (alpha != 0) { + var cos = Math.cos(alpha); + var sin = Math.sin(alpha); + pt = mxUtils.getRotatedPoint(pt, cos, sin, center); + } + + edge.setAbsoluteTerminalPoint(this.snapToAnchorPoint(edge, start, end, source, pt), source); + } + else { + mxGraphViewUpdateFloatingTerminalPoint.apply(this, arguments); + } + }; + + mxGraphView.prototype.snapToAnchorPoint = function (edge, start, end, source, pt) { + if (start != null && edge != null) { + var constraints = this.graph.getAllConnectionConstraints(start) + var nearest = null; + var dist = null; + + if (constraints != null) { + for (var i = 0; i < constraints.length; i++) { + var cp = this.graph.getConnectionPoint(start, constraints[i]); + + if (cp != null) { + var tmp = (cp.x - pt.x) * (cp.x - pt.x) + (cp.y - pt.y) * (cp.y - pt.y); + + if (dist == null || tmp < dist) { + nearest = cp; + dist = tmp; + } + } + } + } + + if (nearest != null) { + pt = nearest; + } + } + + return pt; + }; + + /** + * Adds support for placeholders in text elements of shapes. + */ + var mxStencilEvaluateTextAttribute = mxStencil.prototype.evaluateTextAttribute; + + mxStencil.prototype.evaluateTextAttribute = function (node, attribute, shape) { + var result = mxStencilEvaluateTextAttribute.apply(this, arguments); + var placeholders = node.getAttribute('placeholders'); + + if (placeholders == '1' && shape.state != null) { + result = shape.state.view.graph.replacePlaceholders(shape.state.cell, result); + } + + return result; + }; + + /** + * Adds custom stencils defined via shape=stencil(value) style. The value is a base64 encoded, compressed and + * URL encoded XML definition of the shape according to the stencil definition language of mxGraph. + * + * Needs to be in this file to make sure its part of the embed client code. Also the check for ZLib is + * different than for the Editor code. + */ + var mxCellRendererCreateShape = mxCellRenderer.prototype.createShape; + mxCellRenderer.prototype.createShape = function (state) { + if (state.style != null && typeof (pako) !== 'undefined') { + var shape = mxUtils.getValue(state.style, mxConstants.STYLE_SHAPE, null); + + // Extracts and decodes stencil XML if shape has the form shape=stencil(value) + if (shape != null && shape.substring(0, 8) == 'stencil(') { + try { + var stencil = shape.substring(8, shape.length - 1); + var doc = mxUtils.parseXml(state.view.graph.decompress(stencil)); + + return new mxShape(new mxStencil(doc.documentElement)); + } + catch (e) { + if (window.console != null) { + console.error('Error in shape: ' + e); + } + } + } + } + + return mxCellRendererCreateShape.apply(this, arguments); + }; + })(); + + /** + * Overrides stencil registry for dynamic loading of stencils. + */ + /** + * Maps from library names to an array of Javascript filenames, + * which are synchronously loaded. Currently only stencil files + * (.xml) and JS files (.js) are supported. + * IMPORTANT: For embedded diagrams to work entries must also + * be added in EmbedServlet.java. + */ + mxStencilRegistry.libraries = {}; + + /** + * Global switch to disable dynamic loading. + */ + mxStencilRegistry.dynamicLoading = true; + + /** + * Global switch to disable eval for JS (preload all JS instead). + */ + mxStencilRegistry.allowEval = true; + + /** + * Stores all package names that have been dynamically loaded. + * Each package is only loaded once. + */ + mxStencilRegistry.packages = []; + + // Extends the default stencil registry to add dynamic loading + mxStencilRegistry.getStencil = function (name) { + // console.debug("mxStencilRegistry.getStencil name", name) + var result = mxStencilRegistry.stencils[name]; + if (result == null && mxCellRenderer.defaultShapes[name] == null && mxStencilRegistry.dynamicLoading) { + var basename = mxStencilRegistry.getBasenameForStencil(name); + // console.debug("mxStencilRegistry.getStencil basename", basename) + // Loads stencil files and tries again + if (basename != null) { + var libs = mxStencilRegistry.libraries[basename]; + + if (libs != null) { + if (mxStencilRegistry.packages[basename] == null) { + for (var i = 0; i < libs.length; i++) { + var fname = libs[i]; + + if (fname.toLowerCase().substring(fname.length - 4, fname.length) == '.xml') { + mxStencilRegistry.loadStencilSet(fname, null); + } + else if (fname.toLowerCase().substring(fname.length - 3, fname.length) == '.js') { + try { + if (mxStencilRegistry.allowEval) { + var req = mxUtils.load(fname); + + if (req != null && req.getStatus() >= 200 && req.getStatus() <= 299) { + eval.call(window, req.getText()); + } + } + } + catch (e) { + if (window.console != null) { + console.error('error in getStencil:', fname, e); + } + } + } + else { + // FIXME: This does not yet work as the loading is triggered after + // the shape was used in the graph, at which point the keys have + // typically been translated in the calling method. + //mxResources.add(fname); + } + } + + mxStencilRegistry.packages[basename] = 1; + } + } + else { + // Replaces '_-_' with '_' + basename = basename.replace('_-_', '_'); + mxStencilRegistry.loadStencilSet(STENCIL_PATH + '/' + basename + '.xml', null); + } + + result = mxStencilRegistry.stencils[name]; + } + } + + return result; + }; + + // Returns the basename for the given stencil or null if no file must be + // loaded to render the given stencil. + mxStencilRegistry.getBasenameForStencil = function (name) { + var tmp = null; + + if (name != null) { + var parts = name.split('.'); + + if (parts.length > 0 && parts[0] == 'mxgraph') { + tmp = parts[1]; + + for (var i = 2; i < parts.length - 1; i++) { + tmp += '/' + parts[i]; + } + } + } + + return tmp; + }; + + // Loads the given stencil set + mxStencilRegistry.loadStencilSet = function (stencilFile, postStencilLoad, force, async) { + force = (force != null) ? force : false; + + // Uses additional cache for detecting previous load attempts + var xmlDoc = mxStencilRegistry.packages[stencilFile]; + + if (force || xmlDoc == null) { + var install = false; + + if (xmlDoc == null) { + try { + if (async) { + mxStencilRegistry.loadStencil(stencilFile, mxUtils.bind(this, function (xmlDoc2) { + if (xmlDoc2 != null && xmlDoc2.documentElement != null) { + mxStencilRegistry.packages[stencilFile] = xmlDoc2; + install = true; + mxStencilRegistry.parseStencilSet(xmlDoc2.documentElement, postStencilLoad, install); + } + })); + + return; + } + else { + xmlDoc = mxStencilRegistry.loadStencil(stencilFile); + mxStencilRegistry.packages[stencilFile] = xmlDoc; + install = true; + } + } + catch (e) { + if (window.console != null) { + console.error('error in loadStencilSet:', stencilFile, e); + } + } + } + + if (xmlDoc != null && xmlDoc.documentElement != null) { + mxStencilRegistry.parseStencilSet(xmlDoc.documentElement, postStencilLoad, install); + } + } + }; + + // Loads the given stencil XML file. + mxStencilRegistry.loadStencil = function (filename, fn) { + if (fn != null) { + var req = mxUtils.get(filename, mxUtils.bind(this, function (req) { + fn((req.getStatus() >= 200 && req.getStatus() <= 299) ? req.getXml() : null); + })); + } + else { + return mxUtils.load(filename).getXml(); + } + }; + + // Takes array of strings + mxStencilRegistry.parseStencilSets = function (stencils) { + for (var i = 0; i < stencils.length; i++) { + mxStencilRegistry.parseStencilSet(mxUtils.parseXml(stencils[i]).documentElement); + } + }; + + // Parses the given stencil set + mxStencilRegistry.parseStencilSet = function (root, postStencilLoad, install) { + if (root.nodeName == 'stencils') { + var shapes = root.firstChild; + + while (shapes != null) { + if (shapes.nodeName == 'shapes') { + mxStencilRegistry.parseStencilSet(shapes, postStencilLoad, install); + } + + shapes = shapes.nextSibling; + } + } + else { + install = (install != null) ? install : true; + var shape = root.firstChild; + var packageName = ''; + var name = root.getAttribute('name'); + + if (name != null) { + packageName = name + '.'; + } + + while (shape != null) { + if (shape.nodeType == mxConstants.NODETYPE_ELEMENT) { + name = shape.getAttribute('name'); + + if (name != null) { + packageName = packageName.toLowerCase(); + var stencilName = name.replace(/ /g, "_"); + + if (install) { + mxStencilRegistry.addStencil(packageName + stencilName.toLowerCase(), new mxStencil(shape)); + } + + if (postStencilLoad != null) { + var w = shape.getAttribute('w'); + var h = shape.getAttribute('h'); + + w = (w == null) ? 80 : parseInt(w, 10); + h = (h == null) ? 80 : parseInt(h, 10); + + postStencilLoad(packageName, stencilName, name, w, h); + } + } + } + + shape = shape.nextSibling; + } + } + }; + + /** + * These overrides are only added if mxVertexHandler is defined (ie. not in embedded graph) + */ + if (typeof mxVertexHandler != 'undefined') { + (function () { + // Sets colors for handles + mxConstants.HANDLE_FILLCOLOR = '#29b6f2'; + mxConstants.HANDLE_STROKECOLOR = '#0088cf'; + mxConstants.VERTEX_SELECTION_COLOR = '#00a8ff'; + mxConstants.OUTLINE_COLOR = '#00a8ff'; + mxConstants.OUTLINE_HANDLE_FILLCOLOR = '#99ccff'; + mxConstants.OUTLINE_HANDLE_STROKECOLOR = '#00a8ff'; + mxConstants.CONNECT_HANDLE_FILLCOLOR = '#cee7ff'; + mxConstants.EDGE_SELECTION_COLOR = '#00a8ff'; + mxConstants.DEFAULT_VALID_COLOR = '#00a8ff'; + mxConstants.LABEL_HANDLE_FILLCOLOR = '#cee7ff'; + mxConstants.GUIDE_COLOR = '#0088cf'; + mxConstants.HIGHLIGHT_OPACITY = 30; + mxConstants.HIGHLIGHT_SIZE = 5; + + // Enables snapping to off-grid terminals for edge waypoints + mxEdgeHandler.prototype.snapToTerminals = true; + + // Enables guides + mxGraphHandler.prototype.guidesEnabled = true; + + // Enables fading of rubberband + mxRubberband.prototype.fadeOut = true; + + // Alt-move disables guides + mxGuide.prototype.isEnabledForEvent = function (evt) { + return !mxEvent.isAltDown(evt); + }; + + // Extends connection handler to enable ctrl+drag for cloning source cell + // since copyOnConnect is now disabled by default + var mxConnectionHandlerCreateTarget = mxConnectionHandler.prototype.isCreateTarget; + mxConnectionHandler.prototype.isCreateTarget = function (evt) { + return mxEvent.isControlDown(evt) || mxConnectionHandlerCreateTarget.apply(this, arguments); + }; + + // Overrides highlight shape for connection points + mxConstraintHandler.prototype.createHighlightShape = function () { + var hl = new mxEllipse(null, this.highlightColor, this.highlightColor, 0); + hl.opacity = mxConstants.HIGHLIGHT_OPACITY; + + return hl; + }; + + // Overrides edge preview to use current edge shape and default style + mxConnectionHandler.prototype.livePreview = true; + mxConnectionHandler.prototype.cursor = 'crosshair'; + + // Uses current edge style for connect preview + mxConnectionHandler.prototype.createEdgeState = function (me) { + var style = this.graph.createCurrentEdgeStyle(); + var edge = this.graph.createEdge(null, null, null, null, null, style); + var state = new mxCellState(this.graph.view, edge, this.graph.getCellStyle(edge)); + + for (var key in this.graph.currentEdgeStyle) { + state.style[key] = this.graph.currentEdgeStyle[key]; + } + + return state; + }; + + // Overrides dashed state with current edge style + var connectionHandlerCreateShape = mxConnectionHandler.prototype.createShape; + mxConnectionHandler.prototype.createShape = function () { + var shape = connectionHandlerCreateShape.apply(this, arguments); + + shape.isDashed = this.graph.currentEdgeStyle[mxConstants.STYLE_DASHED] == '1'; + + return shape; + } + + // Overrides live preview to keep current style + mxConnectionHandler.prototype.updatePreview = function (valid) { + // do not change color of preview + }; + + // Overrides connection handler to ignore edges instead of not allowing connections + var mxConnectionHandlerCreateMarker = mxConnectionHandler.prototype.createMarker; + mxConnectionHandler.prototype.createMarker = function () { + var marker = mxConnectionHandlerCreateMarker.apply(this, arguments); + + var markerGetCell = marker.getCell; + marker.getCell = mxUtils.bind(this, function (me) { + var result = markerGetCell.apply(this, arguments); + + this.error = null; + + return result; + }); + + return marker; + }; + + /** + * Function: isCellLocked + * + * Returns true if the given cell does not allow new connections to be created. + * This implementation returns false. + */ + mxConnectionHandler.prototype.isCellEnabled = function (cell) { + return !this.graph.isCellLocked(cell); + }; + + /** + * + */ + Graph.prototype.defaultVertexStyle = {}; + + /** + * Contains the default style for edges. + */ + Graph.prototype.defaultEdgeStyle = { + 'edgeStyle': 'orthogonalEdgeStyle', 'rounded': '0', + 'jettySize': 'auto', 'orthogonalLoop': '1' + }; + + /** + * Returns the current edge style as a string. + */ + Graph.prototype.createCurrentEdgeStyle = function () { + var style = 'edgeStyle=' + (this.currentEdgeStyle['edgeStyle'] || 'none') + ';'; + + if (this.currentEdgeStyle['shape'] != null) { + style += 'shape=' + this.currentEdgeStyle['shape'] + ';'; + } + + if (this.currentEdgeStyle['curved'] != null) { + style += 'curved=' + this.currentEdgeStyle['curved'] + ';'; + } + + if (this.currentEdgeStyle['rounded'] != null) { + style += 'rounded=' + this.currentEdgeStyle['rounded'] + ';'; + } + + if (this.currentEdgeStyle['comic'] != null) { + style += 'comic=' + this.currentEdgeStyle['comic'] + ';'; + } + + if (this.currentEdgeStyle['jumpStyle'] != null) { + style += 'jumpStyle=' + this.currentEdgeStyle['jumpStyle'] + ';'; + } + + if (this.currentEdgeStyle['jumpSize'] != null) { + style += 'jumpSize=' + this.currentEdgeStyle['jumpSize'] + ';'; + } + + // Special logic for custom property of elbowEdgeStyle + if (this.currentEdgeStyle['edgeStyle'] == 'elbowEdgeStyle' && this.currentEdgeStyle['elbow'] != null) { + style += 'elbow=' + this.currentEdgeStyle['elbow'] + ';'; + } + + if (this.currentEdgeStyle['html'] != null) { + style += 'html=' + this.currentEdgeStyle['html'] + ';'; + } + else { + style += 'html=1;'; + } + + return style; + }; + + /** + * Hook for subclassers. + */ + Graph.prototype.getPagePadding = function () { + return new mxPoint(0, 0); + }; + + /** + * Loads the stylesheet for this graph. + */ + Graph.prototype.loadStylesheet = function () { + // var node = (this.themes != null) ? this.themes[this.defaultThemeName] : (!mxStyleRegistry.dynamicLoading) ? null : mxUtils.load(STYLE_PATH + '/default.xml').getDocumentElement(); + var node = mxUtils.load(STYLE_PATH + '/default.xml').getDocumentElement(); + + if (node != null) { + var dec = new mxCodec(node.ownerDocument); + dec.decode(node, this.getStylesheet()); + } + }; + + /** + * + */ + Graph.prototype.importGraphModel = function (node, dx, dy, crop) { + dx = (dx != null) ? dx : 0; + dy = (dy != null) ? dy : 0; + + var codec = new mxCodec(node.ownerDocument); + var tempModel = new mxGraphModel(); + codec.decode(node, tempModel); + var cells = [] + + // Clones cells to remove invalid edges + var layers = tempModel.getChildren(this.cloneCell( + tempModel.root, this.isCloneInvalidEdges())); + + if (layers != null) { + // Uses copy as layers are removed from array inside loop + layers = layers.slice(); + + this.model.beginUpdate(); + try { + // Merges into unlocked current layer if one layer is pasted + if (layers.length == 1 && !this.isCellLocked(this.getDefaultParent())) { + cells = this.moveCells(tempModel.getChildren(layers[0]), + dx, dy, false, this.getDefaultParent()); + } + else { + for (var i = 0; i < layers.length; i++) { + cells = cells.concat(this.model.getChildren(this.moveCells( + [layers[i]], dx, dy, false, this.model.getRoot())[0])); + } + } + + if (crop) { + if (this.isGridEnabled()) { + dx = this.snap(dx); + dy = this.snap(dy); + } + + var bounds = this.getBoundingBoxFromGeometry(cells, true); + + if (bounds != null) { + this.moveCells(cells, dx - bounds.x, dy - bounds.y); + } + } + } + finally { + this.model.endUpdate(); + } + } + + return cells; + }; + + /** + * Overrides method to provide connection constraints for shapes. + */ + Graph.prototype.getAllConnectionConstraints = function (terminal, source) { + if (terminal != null) { + var constraints = (terminal.shape != null) ? terminal.shape.getConstraints(terminal.style) : null; + + if (constraints != null) { + return constraints; + } + else { + constraints = mxUtils.getValue(terminal.style, 'points', null); + + if (constraints != null) { + // Requires an array of arrays with x, y (0..1) and an optional + // perimeter (0 or 1), eg. points=[[0,0,1],[0,1,0],[1,1]] + var result = []; + + try { + var c = JSON.parse(constraints); + + for (var i = 0; i < c.length; i++) { + var tmp = c[i]; + result.push(new mxConnectionConstraint(new mxPoint(tmp[0], tmp[1]), (tmp.length > 2) ? tmp[2] != '0' : true)); + } + } + catch (e) { + // ignore + } + + return result; + } + else if (terminal.shape != null) { + if (terminal.shape.stencil != null) { + if (terminal.shape.stencil != null) { + return terminal.shape.stencil.constraints; + } + } + else if (terminal.shape.constraints != null) { + return terminal.shape.constraints; + } + } + } + } + + return null; + }; + + /** + * Inverts the elbow edge style without removing existing styles. + */ + Graph.prototype.flipEdge = function (edge) { + if (edge != null) { + var state = this.view.getState(edge); + var style = (state != null) ? state.style : this.getCellStyle(edge); + + if (style != null) { + var elbow = mxUtils.getValue(style, mxConstants.STYLE_ELBOW, + mxConstants.ELBOW_HORIZONTAL); + var value = (elbow == mxConstants.ELBOW_HORIZONTAL) ? + mxConstants.ELBOW_VERTICAL : mxConstants.ELBOW_HORIZONTAL; + this.setCellStyles(mxConstants.STYLE_ELBOW, value, [edge]); + } + } + }; + + /** + * Disables drill-down for non-swimlanes. + */ + Graph.prototype.isValidRoot = function (cell) { + // Counts non-relative children + var childCount = this.model.getChildCount(cell); + var realChildCount = 0; + + for (var i = 0; i < childCount; i++) { + var child = this.model.getChildAt(cell, i); + + if (this.model.isVertex(child)) { + var geometry = this.getCellGeometry(child); + + if (geometry != null && !geometry.relative) { + realChildCount++; + } + } + } + + return realChildCount > 0 || this.isContainer(cell); + }; + + /** + * Disables drill-down for non-swimlanes. + */ + Graph.prototype.isValidDropTarget = function (cell) { + var state = this.view.getState(cell); + var style = (state != null) ? state.style : this.getCellStyle(cell); + + return mxUtils.getValue(style, 'part', '0') != '1' && (this.isContainer(cell) || + (mxGraph.prototype.isValidDropTarget.apply(this, arguments) && + mxUtils.getValue(style, 'dropTarget', '1') != '0')); + }; + + /** + * Overrides createGroupCell to set the group style for new groups to 'group'. + */ + Graph.prototype.createGroupCell = function () { + var group = mxGraph.prototype.createGroupCell.apply(this, arguments); + group.setStyle('group'); + + return group; + }; + + /** + * Disables extending parents with stack layouts on add + */ + Graph.prototype.isExtendParentsOnAdd = function (cell) { + var result = mxGraph.prototype.isExtendParentsOnAdd.apply(this, arguments); + + if (result && cell != null && this.layoutManager != null) { + var parent = this.model.getParent(cell); + + if (parent != null) { + var layout = this.layoutManager.getLayout(parent); + + if (layout != null && layout.constructor == mxStackLayout) { + result = false; + } + } + } + + return result; + }; + + /** + * Overrides autosize to add a border. + */ + Graph.prototype.getPreferredSizeForCell = function (cell) { + var result = mxGraph.prototype.getPreferredSizeForCell.apply(this, arguments); + + // Adds buffer + if (result != null) { + result.width += 10; + result.height += 4; + + if (this.gridEnabled) { + result.width = this.snap(result.width); + result.height = this.snap(result.height); + } + } + + return result; + } + + /** + * Turns the given cells and returns the changed cells. + */ + Graph.prototype.turnShapes = function (cells) { + var model = this.getModel(); + var select = []; + + model.beginUpdate(); + try { + for (var i = 0; i < cells.length; i++) { + var cell = cells[i]; + + if (model.isEdge(cell)) { + var src = model.getTerminal(cell, true); + var trg = model.getTerminal(cell, false); + + model.setTerminal(cell, trg, true); + model.setTerminal(cell, src, false); + + var geo = model.getGeometry(cell); + + if (geo != null) { + geo = geo.clone(); + + if (geo.points != null) { + geo.points.reverse(); + } + + var sp = geo.getTerminalPoint(true); + var tp = geo.getTerminalPoint(false) + + geo.setTerminalPoint(sp, false); + geo.setTerminalPoint(tp, true); + model.setGeometry(cell, geo); + + // Inverts constraints + var edgeState = this.view.getState(cell); + var sourceState = this.view.getState(src); + var targetState = this.view.getState(trg); + + if (edgeState != null) { + var sc = (sourceState != null) ? this.getConnectionConstraint(edgeState, sourceState, true) : null; + var tc = (targetState != null) ? this.getConnectionConstraint(edgeState, targetState, false) : null; + + this.setConnectionConstraint(cell, src, true, tc); + this.setConnectionConstraint(cell, trg, false, sc); + } + + select.push(cell); + } + } + else if (model.isVertex(cell)) { + var geo = this.getCellGeometry(cell); + + if (geo != null) { + // Rotates the size and position in the geometry + geo = geo.clone(); + geo.x += geo.width / 2 - geo.height / 2; + geo.y += geo.height / 2 - geo.width / 2; + var tmp = geo.width; + geo.width = geo.height; + geo.height = tmp; + model.setGeometry(cell, geo); + + // Reads the current direction and advances by 90 degrees + var state = this.view.getState(cell); + + if (state != null) { + var dir = state.style[mxConstants.STYLE_DIRECTION] || 'east'/*default*/; + + if (dir == 'east') { + dir = 'south'; + } + else if (dir == 'south') { + dir = 'west'; + } + else if (dir == 'west') { + dir = 'north'; + } + else if (dir == 'north') { + dir = 'east'; + } + + this.setCellStyles(mxConstants.STYLE_DIRECTION, dir, [cell]); + } + + select.push(cell); + } + } + } + } + finally { + model.endUpdate(); + } + + return select; + }; + + /** + * Returns true if the given stencil contains any placeholder text. + */ + Graph.prototype.stencilHasPlaceholders = function (stencil) { + if (stencil != null && stencil.fgNode != null) { + var node = stencil.fgNode.firstChild; + + while (node != null) { + if (node.nodeName == 'text' && node.getAttribute('placeholders') == '1') { + return true; + } + + node = node.nextSibling; + } + } + + return false; + }; + + /** + * Updates the child cells with placeholders if metadata of a cell has changed. + */ + Graph.prototype.processChange = function (change) { + mxGraph.prototype.processChange.apply(this, arguments); + if (!isNaN(mxValueChange) && change instanceof mxValueChange && change.cell != null && + change.cell.value != null && typeof (change.cell.value) == 'object') { + // Invalidates all descendants with placeholders + var desc = this.model.getDescendants(change.cell); + + // LATER: Check if only label or tooltip have changed + if (desc.length > 0) { + for (var i = 0; i < desc.length; i++) { + var state = this.view.getState(desc[i]); + + if (state != null && state.shape != null && state.shape.stencil != null && + this.stencilHasPlaceholders(state.shape.stencil)) { + this.removeStateForCell(desc[i]); + } + else if (this.isReplacePlaceholders(desc[i])) { + this.view.invalidate(desc[i], false, false); + } + } + } + } + }; + + /** + * Replaces the given element with a span. + */ + Graph.prototype.replaceElement = function (elt, tagName) { + var span = elt.ownerDocument.createElement((tagName != null) ? tagName : 'span'); + var attributes = Array.prototype.slice.call(elt.attributes); + + while (attr = attributes.pop()) { + span.setAttribute(attr.nodeName, attr.nodeValue); + } + + span.innerHTML = elt.innerHTML; + elt.parentNode.replaceChild(span, elt); + }; + + /** + * Handles label changes for XML user objects. + */ + Graph.prototype.updateLabelElements = function (cells, fn, tagName) { + cells = (cells != null) ? cells : this.getSelectionCells(); + var div = document.createElement('div'); + + for (var i = 0; i < cells.length; i++) { + // Changes font tags inside HTML labels + if (this.isHtmlLabel(cells[i])) { + var label = this.convertValueToString(cells[i]); + + if (label != null && label.length > 0) { + div.innerHTML = label; + var elts = div.getElementsByTagName((tagName != null) ? tagName : '*'); + + for (var j = 0; j < elts.length; j++) { + fn(elts[j]); + } + + if (div.innerHTML != label) { + this.cellLabelChanged(cells[i], div.innerHTML); + } + } + } + } + }; + + /** + * Handles label changes for XML user objects. + */ + Graph.prototype.cellLabelChanged = function (cell, value, autoSize) { + // Removes all illegal control characters in user input + value = this.zapGremlins(value); + + this.model.beginUpdate(); + try { + if (cell.value != null && typeof cell.value == 'object') { + if (this.isReplacePlaceholders(cell) && + cell.getAttribute('placeholder') != null) { + // LATER: Handle delete, name change + var name = cell.getAttribute('placeholder'); + var current = cell; + + while (current != null) { + if (current == this.model.getRoot() || (current.value != null && + typeof (current.value) == 'object' && current.hasAttribute(name))) { + this.setAttributeForCell(current, name, value); + + break; + } + + current = this.model.getParent(current); + } + } + + var tmp = cell.value.cloneNode(true); + tmp.setAttribute('label', value); + value = tmp; + } + + mxGraph.prototype.cellLabelChanged.apply(this, arguments); + } + finally { + this.model.endUpdate(); + } + }; + + /** + * Removes transparent empty groups if all children are removed. + */ + Graph.prototype.cellsRemoved = function (cells) { + if (cells != null) { + var dict = new mxDictionary(); + + for (var i = 0; i < cells.length; i++) { + dict.put(cells[i], true); + } + + // LATER: Recurse up the cell hierarchy + var parents = []; + + for (var i = 0; i < cells.length; i++) { + var parent = this.model.getParent(cells[i]); + + if (parent != null && !dict.get(parent)) { + dict.put(parent, true); + parents.push(parent); + } + } + + for (var i = 0; i < parents.length; i++) { + var state = this.view.getState(parents[i]); + + if (state != null && (this.model.isEdge(state.cell) || this.model.isVertex(state.cell)) && this.isCellDeletable(state.cell)) { + var stroke = mxUtils.getValue(state.style, mxConstants.STYLE_STROKECOLOR, mxConstants.NONE); + var fill = mxUtils.getValue(state.style, mxConstants.STYLE_FILLCOLOR, mxConstants.NONE); + + if (stroke == mxConstants.NONE && fill == mxConstants.NONE) { + var allChildren = true; + + for (var j = 0; j < this.model.getChildCount(state.cell) && allChildren; j++) { + if (!dict.get(this.model.getChildAt(state.cell, j))) { + allChildren = false; + } + } + + if (allChildren) { + cells.push(state.cell); + } + } + } + } + } + + mxGraph.prototype.cellsRemoved.apply(this, arguments); + }; + + /** + * Overrides ungroup to check if group should be removed. + */ + Graph.prototype.removeCellsAfterUngroup = function (cells) { + var cellsToRemove = []; + + for (var i = 0; i < cells.length; i++) { + if (this.isCellDeletable(cells[i])) { + var state = this.view.getState(cells[i]); + + if (state != null) { + var stroke = mxUtils.getValue(state.style, mxConstants.STYLE_STROKECOLOR, mxConstants.NONE); + var fill = mxUtils.getValue(state.style, mxConstants.STYLE_FILLCOLOR, mxConstants.NONE); + + if (stroke == mxConstants.NONE && fill == mxConstants.NONE) { + cellsToRemove.push(cells[i]); + } + } + } + } + + cells = cellsToRemove; + + mxGraph.prototype.removeCellsAfterUngroup.apply(this, arguments); + }; + + /** + * Sets the link for the given cell. + */ + Graph.prototype.setLinkForCell = function (cell, link) { + this.setAttributeForCell(cell, 'link', link); + }; + + /** + * Sets the link for the given cell. + */ + Graph.prototype.setTooltipForCell = function (cell, link) { + this.setAttributeForCell(cell, 'tooltip', link); + }; + + /** + * Sets the link for the given cell. + */ + Graph.prototype.setAttributeForCell = function (cell, attributeName, attributeValue) { + var value = null; + + if (cell.value != null && typeof (cell.value) == 'object') { + value = cell.value.cloneNode(true); + } + else { + var doc = mxUtils.createXmlDocument(); + + value = doc.createElement('UserObject'); + value.setAttribute('label', cell.value || ''); + } + + if (attributeValue != null && attributeValue.length > 0) { + value.setAttribute(attributeName, attributeValue); + } + else { + value.removeAttribute(attributeName); + } + + this.model.setValue(cell, value); + }; + + /** + * Overridden to stop moving edge labels between cells. + */ + Graph.prototype.getDropTarget = function (cells, evt, cell, clone) { + var model = this.getModel(); + + // Disables drop into group if alt is pressed + if (mxEvent.isAltDown(evt)) { + return null; + } + + // Disables dragging edge labels out of edges + for (var i = 0; i < cells.length; i++) { + if (this.model.isEdge(this.model.getParent(cells[i]))) { + return null; + } + } + + return mxGraph.prototype.getDropTarget.apply(this, arguments); + }; + + /** + * Overrides double click handling to avoid accidental inserts of new labels in dblClick below. + */ + Graph.prototype.click = function (me) { + mxGraph.prototype.click.call(this, me); + + // Stores state and source for checking in dblClick + this.firstClickState = me.getState(); + this.firstClickSource = me.getSource(); + }; + + /** + * Overrides double click handling to add the tolerance and inserting text. + */ + Graph.prototype.dblClick = function (evt, cell) { + if (this.isEnabled()) { + var pt = mxUtils.convertPoint(this.container, mxEvent.getClientX(evt), mxEvent.getClientY(evt)); + + // Automatically adds new child cells to edges on double click + if (evt != null && !this.model.isVertex(cell)) { + var state = (this.model.isEdge(cell)) ? this.view.getState(cell) : null; + var src = mxEvent.getSource(evt); + + if (this.firstClickState == state && this.firstClickSource == src) { + if (state == null || (state.text == null || state.text.node == null || + (!mxUtils.contains(state.text.boundingBox, pt.x, pt.y) && + !mxUtils.isAncestorNode(state.text.node, mxEvent.getSource(evt))))) { + if ((state == null && !this.isCellLocked(this.getDefaultParent())) || + (state != null && !this.isCellLocked(state.cell))) { + // Avoids accidental inserts on background + if (state != null || (mxClient.IS_VML && src == this.view.getCanvas()) || + (mxClient.IS_SVG && src == this.view.getCanvas().ownerSVGElement)) { + cell = this.addText(pt.x, pt.y, state); + } + } + } + } + } + + mxGraph.prototype.dblClick.call(this, evt, cell); + } + }; + + /** + * Returns a point that specifies the location for inserting cells. + */ + Graph.prototype.getInsertPoint = function () { + var gs = this.getGridSize(); + var dx = this.container.scrollLeft / this.view.scale - this.view.translate.x; + var dy = this.container.scrollTop / this.view.scale - this.view.translate.y; + + if (this.pageVisible) { + var layout = this.getPageLayout(); + var page = this.getPageSize(); + dx = Math.max(dx, layout.x * page.width); + dy = Math.max(dy, layout.y * page.height); + } + + return new mxPoint(this.snap(dx + gs), this.snap(dy + gs)); + }; + + /** + * + */ + Graph.prototype.getFreeInsertPoint = function () { + var view = this.view; + var bds = this.getGraphBounds(); + var pt = this.getInsertPoint(); + + // Places at same x-coord and 2 grid sizes below existing graph + var x = this.snap(Math.round(Math.max(pt.x, bds.x / view.scale - view.translate.x + + ((bds.width == 0) ? 2 * this.gridSize : 0)))); + var y = this.snap(Math.round(Math.max(pt.y, (bds.y + bds.height) / view.scale - view.translate.y + + 2 * this.gridSize))); + + return new mxPoint(x, y); + }; + + /** + * Hook for subclassers to return true if the current insert point was defined + * using a mouse hover event. + */ + Graph.prototype.isMouseInsertPoint = function () { + return false; + }; + + /** + * Adds a new label at the given position and returns the new cell. State is + * an optional edge state to be used as the parent for the label. Vertices + * are not allowed currently as states. + */ + Graph.prototype.addText = function (x, y, state) { + // Creates a new edge label with a predefined text + var label = new mxCell(); + label.value = 'Text'; + label.style = 'text;html=1;resizable=0;points=[];' + label.geometry = new mxGeometry(0, 0, 0, 0); + label.vertex = true; + + if (state != null) { + label.style += 'align=center;verticalAlign=middle;labelBackgroundColor=#ffffff;' + label.geometry.relative = true; + label.connectable = false; + + // Resets the relative location stored inside the geometry + var pt2 = this.view.getRelativePoint(state, x, y); + label.geometry.x = Math.round(pt2.x * 10000) / 10000; + label.geometry.y = Math.round(pt2.y); + + // Resets the offset inside the geometry to find the offset from the resulting point + label.geometry.offset = new mxPoint(0, 0); + pt2 = this.view.getPoint(state, label.geometry); + + var scale = this.view.scale; + label.geometry.offset = new mxPoint(Math.round((x - pt2.x) / scale), Math.round((y - pt2.y) / scale)); + } + else { + label.style += 'autosize=1;align=left;verticalAlign=top;spacingTop=-4;' + + var tr = this.view.translate; + label.geometry.width = 40; + label.geometry.height = 20; + label.geometry.x = Math.round(x / this.view.scale) - tr.x; + label.geometry.y = Math.round(y / this.view.scale) - tr.y; + } + + this.getModel().beginUpdate(); + try { + this.addCells([label], (state != null) ? state.cell : null); + this.fireEvent(new mxEventObject('textInserted', 'cells', [label])); + // Updates size of text after possible change of style via event + this.autoSizeCell(label); + } + finally { + this.getModel().endUpdate(); + } + + return label; + }; + + /** + * + */ + Graph.prototype.getAbsoluteUrl = function (url) { + if (url != null && this.isRelativeUrl(url)) { + if (url.charAt(0) == '#') { + url = this.baseUrl + url; + } + else if (url.charAt(0) == '/') { + url = this.domainUrl + url; + } + else { + url = this.domainPathUrl + url; + } + } + + return url; + }; + + /** + * Adds a handler for clicking on shapes with links. This replaces all links in labels. + */ + Graph.prototype.addClickHandler = function (highlight, beforeClick, onClick) { + // Replaces links in labels for consistent right-clicks + var checkLinks = mxUtils.bind(this, function () { + var links = this.container.getElementsByTagName('a'); + + if (links != null) { + for (var i = 0; i < links.length; i++) { + var href = this.getAbsoluteUrl(links[i].getAttribute('href')); + + if (href != null) { + links[i].setAttribute('rel', this.linkRelation); + links[i].setAttribute('href', href); + + if (beforeClick != null) { + mxEvent.addGestureListeners(links[i], null, null, beforeClick); + } + } + } + } + }); + + this.model.addListener(mxEvent.CHANGE, checkLinks); + checkLinks(); + + var cursor = this.container.style.cursor; + var tol = this.getTolerance(); + var graph = this; + + var mouseListener = + { + currentState: null, + currentLink: null, + highlight: (highlight != null && highlight != '' && highlight != mxConstants.NONE) ? + new mxCellHighlight(graph, highlight, 4) : null, + startX: 0, + startY: 0, + scrollLeft: 0, + scrollTop: 0, + updateCurrentState: function (me) { + var tmp = me.sourceState; + + // Gets topmost intersecting cell with link + if (tmp == null || graph.getLinkForCell(tmp.cell) == null) { + var cell = graph.getCellAt(me.getGraphX(), me.getGraphY(), null, null, null, function (state, x, y) { + return graph.getLinkForCell(state.cell) == null; + }); + + tmp = graph.view.getState(cell); + } + + if (tmp != this.currentState) { + if (this.currentState != null) { + this.clear(); + } + + this.currentState = tmp; + + if (this.currentState != null) { + this.activate(this.currentState); + } + } + }, + mouseDown: function (sender, me) { + this.startX = me.getGraphX(); + this.startY = me.getGraphY(); + this.scrollLeft = graph.container.scrollLeft; + this.scrollTop = graph.container.scrollTop; + + if (this.currentLink == null && graph.container.style.overflow == 'auto') { + graph.container.style.cursor = 'move'; + } + + this.updateCurrentState(me); + }, + mouseMove: function (sender, me) { + if (graph.isMouseDown) { + if (this.currentLink != null) { + var dx = Math.abs(this.startX - me.getGraphX()); + var dy = Math.abs(this.startY - me.getGraphY()); + + if (dx > tol || dy > tol) { + this.clear(); + } + } + } + else { + // Checks for parent link + var linkNode = me.getSource(); + + while (linkNode != null && linkNode.nodeName.toLowerCase() != 'a') { + linkNode = linkNode.parentNode; + } + + if (linkNode != null) { + this.clear(); + } + else { + if (graph.tooltipHandler != null && this.currentLink != null && this.currentState != null) { + graph.tooltipHandler.reset(me, true, this.currentState); + } + + if (this.currentState != null && (me.getState() == this.currentState || me.sourceState == null) && + graph.intersects(this.currentState, me.getGraphX(), me.getGraphY())) { + return; + } + + this.updateCurrentState(me); + } + } + }, + mouseUp: function (sender, me) { + var source = me.getSource(); + var evt = me.getEvent(); + + // Checks for parent link + var linkNode = source; + + while (linkNode != null && linkNode.nodeName.toLowerCase() != 'a') { + linkNode = linkNode.parentNode; + } + + // Ignores clicks on links and collapse/expand icon + if (linkNode == null && + (((Math.abs(this.scrollLeft - graph.container.scrollLeft) < tol && + Math.abs(this.scrollTop - graph.container.scrollTop) < tol) && + (me.sourceState == null || !me.isSource(me.sourceState.control))) && + (((mxEvent.isLeftMouseButton(evt) || mxEvent.isMiddleMouseButton(evt)) && + !mxEvent.isPopupTrigger(evt)) || mxEvent.isTouchEvent(evt)))) { + if (this.currentLink != null) { + var blank = graph.isBlankLink(this.currentLink); + + if ((this.currentLink.substring(0, 5) === 'data:' || + !blank) && beforeClick != null) { + beforeClick(evt, this.currentLink); + } + + if (!mxEvent.isConsumed(evt)) { + var target = (mxEvent.isMiddleMouseButton(evt)) ? '_blank' : + ((blank) ? graph.linkTarget : '_top'); + graph.openLink(this.currentLink, target); + me.consume(); + } + } + else if (onClick != null && !me.isConsumed() && + (Math.abs(this.scrollLeft - graph.container.scrollLeft) < tol && + Math.abs(this.scrollTop - graph.container.scrollTop) < tol) && + (Math.abs(this.startX - me.getGraphX()) < tol && + Math.abs(this.startY - me.getGraphY()) < tol)) { + onClick(me.getEvent()); + } + } + + this.clear(); + }, + activate: function (state) { + this.currentLink = graph.getAbsoluteUrl(graph.getLinkForCell(state.cell)); + + if (this.currentLink != null) { + graph.container.style.cursor = 'pointer'; + + if (this.highlight != null) { + this.highlight.highlight(state); + } + } + }, + clear: function () { + if (graph.container != null) { + graph.container.style.cursor = cursor; + } + + this.currentState = null; + this.currentLink = null; + + if (this.highlight != null) { + this.highlight.hide(); + } + + if (graph.tooltipHandler != null) { + graph.tooltipHandler.hide(); + } + } + }; + + // Ignores built-in click handling + graph.click = function (me) { }; + graph.addMouseListener(mouseListener); + + mxEvent.addListener(document, 'mouseleave', function (evt) { + mouseListener.clear(); + }); + }; + + /** + * Duplicates the given cells and returns the duplicates. + */ + Graph.prototype.duplicateCells = function (cells, append) { + cells = (cells != null) ? cells : this.getSelectionCells(); + append = (append != null) ? append : true; + + cells = this.model.getTopmostCells(cells); + + var model = this.getModel(); + var s = this.gridSize; + var select = []; + + model.beginUpdate(); + try { + var clones = this.cloneCells(cells, false, null, true); + + for (var i = 0; i < cells.length; i++) { + var parent = model.getParent(cells[i]); + var child = this.moveCells([clones[i]], s, s, false)[0]; + select.push(child); + + if (append) { + model.add(parent, clones[i]); + } + else { + // Maintains child index by inserting after clone in parent + var index = parent.getIndex(cells[i]); + model.add(parent, clones[i], index + 1); + } + } + } + finally { + model.endUpdate(); + } + + return select; + }; + + /** + * Inserts the given image at the cursor in a content editable text box using + * the insertimage command on the document instance. + */ + Graph.prototype.insertImage = function (newValue, w, h) { + // To find the new image, we create a list of all existing links first + if (newValue != null) { + var tmp = this.cellEditor.textarea.getElementsByTagName('img'); + var oldImages = []; + + for (var i = 0; i < tmp.length; i++) { + oldImages.push(tmp[i]); + } + + // LATER: Fix inserting link/image in IE8/quirks after focus lost + document.execCommand('insertimage', false, newValue); + + // Sets size of new image + var newImages = this.cellEditor.textarea.getElementsByTagName('img'); + + if (newImages.length == oldImages.length + 1) { + // Inverse order in favor of appended images + for (var i = newImages.length - 1; i >= 0; i--) { + if (i == 0 || newImages[i] != oldImages[i - 1]) { + // Workaround for lost styles during undo and redo is using attributes + newImages[i].setAttribute('width', w); + newImages[i].setAttribute('height', h); + + break; + } + } + } + } + }; + + /** + * Inserts the given image at the cursor in a content editable text box using + * the insertimage command on the document instance. + */ + Graph.prototype.insertLink = function (value) { + if (value.length == 0) { + document.execCommand('unlink', false); + } + else if (mxClient.IS_FF) { + // Workaround for Firefox that adds a new link and removes + // the href from the inner link if its parent is a span is + // to remove all inner links inside the new outer link + var tmp = this.cellEditor.textarea.getElementsByTagName('a'); + var oldLinks = []; + + for (var i = 0; i < tmp.length; i++) { + oldLinks.push(tmp[i]); + } + + document.execCommand('createlink', false, mxUtils.trim(value)); + + // Finds the new link element + var newLinks = this.cellEditor.textarea.getElementsByTagName('a'); + + if (newLinks.length == oldLinks.length + 1) { + // Inverse order in favor of appended links + for (var i = newLinks.length - 1; i >= 0; i--) { + if (newLinks[i] != oldLinks[i - 1]) { + // Removes all inner links from the new link and + // moves the children to the inner link parent + var tmp = newLinks[i].getElementsByTagName('a'); + + while (tmp.length > 0) { + var parent = tmp[0].parentNode; + + while (tmp[0].firstChild != null) { + parent.insertBefore(tmp[0].firstChild, tmp[0]); + } + + parent.removeChild(tmp[0]); + } + + break; + } + } + } + } + else { + // LATER: Fix inserting link/image in IE8/quirks after focus lost + document.execCommand('createlink', false, mxUtils.trim(value)); + } + }; + + /** + * + * @param cell + * @returns {Boolean} + */ + Graph.prototype.isCellResizable = function (cell) { + var result = mxGraph.prototype.isCellResizable.apply(this, arguments); + + var state = this.view.getState(cell); + var style = (state != null) ? state.style : this.getCellStyle(cell); + + return result || (mxUtils.getValue(style, mxConstants.STYLE_RESIZABLE, '1') != '0' && + style[mxConstants.STYLE_WHITE_SPACE] == 'wrap'); + }; + + /** + * Function: distributeCells + * + * Distribuets the centers of the given cells equally along the available + * horizontal or vertical space. + * + * Parameters: + * + * horizontal - Boolean that specifies the direction of the distribution. + * cells - Optional array of to be distributed. Edges are ignored. + */ + Graph.prototype.distributeCells = function (horizontal, cells) { + if (cells == null) { + cells = this.getSelectionCells(); + } + + if (cells != null && cells.length > 1) { + var vertices = []; + var max = null; + var min = null; + + for (var i = 0; i < cells.length; i++) { + if (this.getModel().isVertex(cells[i])) { + var state = this.view.getState(cells[i]); + + if (state != null) { + var tmp = (horizontal) ? state.getCenterX() : state.getCenterY(); + max = (max != null) ? Math.max(max, tmp) : tmp; + min = (min != null) ? Math.min(min, tmp) : tmp; + + vertices.push(state); + } + } + } + + if (vertices.length > 2) { + vertices.sort(function (a, b) { + return (horizontal) ? a.x - b.x : a.y - b.y; + }); + + var t = this.view.translate; + var s = this.view.scale; + + min = min / s - ((horizontal) ? t.x : t.y); + max = max / s - ((horizontal) ? t.x : t.y); + + this.getModel().beginUpdate(); + try { + var dt = (max - min) / (vertices.length - 1); + var t0 = min; + + for (var i = 1; i < vertices.length - 1; i++) { + var pstate = this.view.getState(this.model.getParent(vertices[i].cell)); + var geo = this.getCellGeometry(vertices[i].cell); + t0 += dt; + + if (geo != null && pstate != null) { + geo = geo.clone(); + + if (horizontal) { + geo.x = Math.round(t0 - geo.width / 2) - pstate.origin.x; + } + else { + geo.y = Math.round(t0 - geo.height / 2) - pstate.origin.y; + } + + this.getModel().setGeometry(vertices[i].cell, geo); + } + } + } + finally { + this.getModel().endUpdate(); + } + } + } + + return cells; + }; + + /** + * Adds meta-drag an Mac. + * @param evt + * @returns + */ + Graph.prototype.isCloneEvent = function (evt) { + return (mxClient.IS_MAC && mxEvent.isMetaDown(evt)) || mxEvent.isControlDown(evt); + }; + + /** + * Translates this point by the given vector. + * + * @param {number} dx X-coordinate of the translation. + * @param {number} dy Y-coordinate of the translation. + */ + Graph.prototype.encodeCells = function (cells) { + var clones = this.cloneCells(cells); + + // Creates a dictionary for fast lookups + var dict = new mxDictionary(); + + for (var i = 0; i < cells.length; i++) { + dict.put(cells[i], true); + } + + // Checks for orphaned relative children and makes absolute + for (var i = 0; i < clones.length; i++) { + var state = this.view.getState(cells[i]); + + if (state != null) { + var geo = this.getCellGeometry(clones[i]); + + if (geo != null && geo.relative && !this.model.isEdge(cells[i]) && + !dict.get(this.model.getParent(cells[i]))) { + geo.relative = false; + geo.x = state.x / state.view.scale - state.view.translate.x; + geo.y = state.y / state.view.scale - state.view.translate.y; + } + } + } + + var codec = new mxCodec(); + var model = new mxGraphModel(); + var parent = model.getChildAt(model.getRoot(), 0); + + for (var i = 0; i < cells.length; i++) { + model.add(parent, clones[i]); + } + + return codec.encode(model); + }; + + /** + * Translates this point by the given vector. + * + * @param {number} dx X-coordinate of the translation. + * @param {number} dy Y-coordinate of the translation. + */ + Graph.prototype.createSvgImageExport = function () { + var exp = new mxImageExport(); + + // Adds hyperlinks (experimental) + exp.getLinkForCellState = mxUtils.bind(this, function (state, canvas) { + return this.getLinkForCell(state.cell); + }); + + return exp; + }; + + /** + * Translates this point by the given vector. + * + * @param {number} dx X-coordinate of the translation. + * @param {number} dy Y-coordinate of the translation. + */ + Graph.prototype.getSvg = function (background, scale, border, nocrop, crisp, + ignoreSelection, showText, imgExport, linkTarget, hasShadow) { + //Disable Css Transforms if it is used + var origUseCssTrans = this.useCssTransforms; + + if (origUseCssTrans) { + this.useCssTransforms = false; + this.view.revalidate(); + this.sizeDidChange(); + } + + try { + scale = (scale != null) ? scale : 1; + border = (border != null) ? border : 0; + crisp = (crisp != null) ? crisp : true; + ignoreSelection = (ignoreSelection != null) ? ignoreSelection : true; + showText = (showText != null) ? showText : true; + + var bounds = (ignoreSelection || nocrop) ? + this.getGraphBounds() : this.getBoundingBox(this.getSelectionCells()); + + if (bounds == null) { + throw Error(mxResources.get('drawingEmpty')); + } + + var vs = this.view.scale; + + // Prepares SVG document that holds the output + var svgDoc = mxUtils.createXmlDocument(); + var root = (svgDoc.createElementNS != null) ? + svgDoc.createElementNS(mxConstants.NS_SVG, 'svg') : svgDoc.createElement('svg'); + + if (background != null) { + if (root.style != null) { + root.style.backgroundColor = background; + } + else { + root.setAttribute('style', 'background-color:' + background); + } + } + + if (svgDoc.createElementNS == null) { + root.setAttribute('xmlns', mxConstants.NS_SVG); + root.setAttribute('xmlns:xlink', mxConstants.NS_XLINK); + } + else { + // KNOWN: Ignored in IE9-11, adds namespace for each image element instead. No workaround. + root.setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:xlink', mxConstants.NS_XLINK); + } + + var s = scale / vs; + var w = Math.max(1, Math.ceil(bounds.width * s) + 2 * border) + ((hasShadow) ? 5 : 0); + var h = Math.max(1, Math.ceil(bounds.height * s) + 2 * border) + ((hasShadow) ? 5 : 0); + + root.setAttribute('version', '1.1'); + root.setAttribute('width', w + 'px'); + root.setAttribute('height', h + 'px'); + root.setAttribute('viewBox', ((crisp) ? '-0.5 -0.5' : '0 0') + ' ' + w + ' ' + h); + svgDoc.appendChild(root); + + // Renders graph. Offset will be multiplied with state's scale when painting state. + // TextOffset only seems to affect FF output but used everywhere for consistency. + var svgCanvas = this.createSvgCanvas(root); + svgCanvas.foOffset = (crisp) ? -0.5 : 0; + svgCanvas.textOffset = (crisp) ? -0.5 : 0; + svgCanvas.imageOffset = (crisp) ? -0.5 : 0; + svgCanvas.translate(Math.floor((border / scale - bounds.x) / vs), + Math.floor((border / scale - bounds.y) / vs)); + + // Convert HTML entities + var htmlConverter = document.createElement('textarea'); + + // Adds simple text fallback for viewers with no support for foreignObjects + var createAlternateContent = svgCanvas.createAlternateContent; + svgCanvas.createAlternateContent = function (fo, x, y, w, h, str, align, valign, wrap, format, overflow, clip, rotation) { + var s = this.state; + + // Assumes a max character width of 0.2em + if (this.foAltText != null && (w == 0 || (s.fontSize != 0 && str.length < (w * 5) / s.fontSize))) { + var alt = this.createElement('text'); + alt.setAttribute('x', Math.round(w / 2)); + alt.setAttribute('y', Math.round((h + s.fontSize) / 2)); + alt.setAttribute('fill', s.fontColor || 'black'); + alt.setAttribute('text-anchor', 'middle'); + alt.setAttribute('font-size', Math.round(s.fontSize) + 'px'); + alt.setAttribute('font-family', s.fontFamily); + + if ((s.fontStyle & mxConstants.FONT_BOLD) == mxConstants.FONT_BOLD) { + alt.setAttribute('font-weight', 'bold'); + } + + if ((s.fontStyle & mxConstants.FONT_ITALIC) == mxConstants.FONT_ITALIC) { + alt.setAttribute('font-style', 'italic'); + } + + if ((s.fontStyle & mxConstants.FONT_UNDERLINE) == mxConstants.FONT_UNDERLINE) { + alt.setAttribute('text-decoration', 'underline'); + } + + try { + htmlConverter.innerHTML = str; + alt.textContent = htmlConverter.value; + + return alt; + } + catch (e) { + return createAlternateContent.apply(this, arguments); + } + } + else { + return createAlternateContent.apply(this, arguments); + } + }; + + // Paints background image + var bgImg = this.backgroundImage; + + if (bgImg != null) { + var s2 = vs / scale; + var tr = this.view.translate; + var tmp = new mxRectangle(tr.x * s2, tr.y * s2, bgImg.width * s2, bgImg.height * s2); + + // Checks if visible + if (mxUtils.intersects(bounds, tmp)) { + svgCanvas.image(tr.x, tr.y, bgImg.width, bgImg.height, bgImg.src, true); + } + } + + svgCanvas.scale(s); + svgCanvas.textEnabled = showText; + + imgExport = (imgExport != null) ? imgExport : this.createSvgImageExport(); + var imgExportDrawCellState = imgExport.drawCellState; + + // Implements ignoreSelection flag + imgExport.drawCellState = function (state, canvas) { + var graph = state.view.graph; + var selected = graph.isCellSelected(state.cell); + var parent = graph.model.getParent(state.cell); + + // Checks if parent cell is selected + while (!ignoreSelection && !selected && parent != null) { + selected = graph.isCellSelected(parent); + parent = graph.model.getParent(parent); + } + + if (ignoreSelection || selected) { + imgExportDrawCellState.apply(this, arguments); + } + }; + + imgExport.drawState(this.getView().getState(this.model.root), svgCanvas); + this.updateSvgLinks(root, linkTarget, true); + + return root; + } + finally { + if (origUseCssTrans) { + this.useCssTransforms = true; + this.view.revalidate(); + this.sizeDidChange(); + } + } + }; + + /** + * Hook for creating the canvas used in getSvg. + */ + Graph.prototype.updateSvgLinks = function (node, target, removeCustom) { + var links = node.getElementsByTagName('a'); + + for (var i = 0; i < links.length; i++) { + var href = links[i].getAttribute('href'); + + if (href == null) { + href = links[i].getAttribute('xlink:href'); + } + + if (href != null) { + if (target != null && /^https?:\/\//.test(href)) { + links[i].setAttribute('target', target); + } + else if (removeCustom && this.isCustomLink(href)) { + links[i].setAttribute('href', 'javascript:void(0);'); + } + } + } + }; + + /** + * Hook for creating the canvas used in getSvg. + */ + Graph.prototype.createSvgCanvas = function (node) { + return new mxSvgCanvas2D(node); + }; + + /** + * Returns the first ancestor of the current selection with the given name. + */ + Graph.prototype.getSelectedElement = function () { + var node = null; + + if (window.getSelection) { + var sel = window.getSelection(); + + if (sel.getRangeAt && sel.rangeCount) { + var range = sel.getRangeAt(0); + node = range.commonAncestorContainer; + } + } + else if (document.selection) { + node = document.selection.createRange().parentElement(); + } + + return node; + }; + + /** + * Returns the first ancestor of the current selection with the given name. + */ + Graph.prototype.getParentByName = function (node, name, stopAt) { + while (node != null) { + if (node.nodeName == name) { + return node; + } + + if (node == stopAt) { + return null; + } + + node = node.parentNode; + } + + return node; + }; + + /** + * Selects the given node. + */ + Graph.prototype.selectNode = function (node) { + var sel = null; + + // IE9 and non-IE + if (window.getSelection) { + sel = window.getSelection(); + + if (sel.getRangeAt && sel.rangeCount) { + var range = document.createRange(); + range.selectNode(node); + sel.removeAllRanges(); + sel.addRange(range); + } + } + // IE < 9 + else if ((sel = document.selection) && sel.type != 'Control') { + var originalRange = sel.createRange(); + originalRange.collapse(true); + var range = sel.createRange(); + range.setEndPoint('StartToStart', originalRange); + range.select(); + } + }; + + /** + * Inserts a new row into the given table. + */ + Graph.prototype.insertRow = function (table, index) { + var bd = table.tBodies[0]; + var cells = bd.rows[0].cells; + var cols = 0; + + // Counts columns including colspans + for (var i = 0; i < cells.length; i++) { + var colspan = cells[i].getAttribute('colspan'); + cols += (colspan != null) ? parseInt(colspan) : 1; + } + + var row = bd.insertRow(index); + + for (var i = 0; i < cols; i++) { + mxUtils.br(row.insertCell(-1)); + } + + return row.cells[0]; + }; + + /** + * Deletes the given column. + */ + Graph.prototype.deleteRow = function (table, index) { + table.tBodies[0].deleteRow(index); + }; + + /** + * Deletes the given column. + */ + Graph.prototype.insertColumn = function (table, index) { + var hd = table.tHead; + + if (hd != null) { + // TODO: use colIndex + for (var h = 0; h < hd.rows.length; h++) { + var th = document.createElement('th'); + hd.rows[h].appendChild(th); + mxUtils.br(th); + } + } + + var bd = table.tBodies[0]; + + for (var i = 0; i < bd.rows.length; i++) { + var cell = bd.rows[i].insertCell(index); + mxUtils.br(cell); + } + + return bd.rows[0].cells[(index >= 0) ? index : bd.rows[0].cells.length - 1]; + }; + + /** + * Deletes the given column. + */ + Graph.prototype.deleteColumn = function (table, index) { + if (index >= 0) { + var bd = table.tBodies[0]; + var rows = bd.rows; + + for (var i = 0; i < rows.length; i++) { + if (rows[i].cells.length > index) { + rows[i].deleteCell(index); + } + } + } + }; + + /** + * Inserts the given HTML at the caret position (no undo). + */ + Graph.prototype.pasteHtmlAtCaret = function (html) { + var sel, range; + + // IE9 and non-IE + if (window.getSelection) { + sel = window.getSelection(); + + if (sel.getRangeAt && sel.rangeCount) { + range = sel.getRangeAt(0); + range.deleteContents(); + + // Range.createContextualFragment() would be useful here but is + // only relatively recently standardized and is not supported in + // some browsers (IE9, for one) + var el = document.createElement("div"); + el.innerHTML = html; + var frag = document.createDocumentFragment(), node; + + while ((node = el.firstChild)) { + lastNode = frag.appendChild(node); + } + + range.insertNode(frag); + } + } + // IE < 9 + else if ((sel = document.selection) && sel.type != "Control") { + // FIXME: Does not work if selection is empty + sel.createRange().pasteHTML(html); + } + }; + + /** + * Creates an anchor elements for handling the given link in the + * hint that is shown when the cell is selected. + */ + Graph.prototype.createLinkForHint = function (link, label) { + link = (link != null) ? link : 'javascript:void(0);'; + + if (label == null || label.length == 0) { + if (this.isCustomLink(link)) { + label = this.getLinkTitle(link); + } + else { + label = link; + } + } + + // Helper function to shorten strings + function short(str, max) { + if (str.length > max) { + str = str.substring(0, Math.round(max / 2)) + '...' + + str.substring(str.length - Math.round(max / 4)); + } + + return str; + }; + + var a = document.createElement('a'); + a.setAttribute('rel', this.linkRelation); + a.setAttribute('href', this.getAbsoluteUrl(link)); + a.setAttribute('title', short((this.isCustomLink(link)) ? + this.getLinkTitle(link) : link, 80)); + + if (this.linkTarget != null) { + a.setAttribute('target', this.linkTarget); + } + + // Adds shortened label to link + mxUtils.write(a, short(label, 40)); + + // Handles custom links + if (this.isCustomLink(link)) { + mxEvent.addListener(a, 'click', mxUtils.bind(this, function (evt) { + this.customLinkClicked(link); + mxEvent.consume(evt); + })); + } + + return a; + }; + + /** + * Customized graph for touch devices. + */ + Graph.prototype.initTouch = function () { + // Disables new connections via "hotspot" + this.connectionHandler.marker.isEnabled = function () { + return this.graph.connectionHandler.first != null; + }; + + // Hides menu when editing starts + this.addListener(mxEvent.START_EDITING, function (sender, evt) { + this.popupMenuHandler.hideMenu(); + }); + + // Adds custom hit detection if native hit detection found no cell + var graphUpdateMouseEvent = this.updateMouseEvent; + this.updateMouseEvent = function (me) { + me = graphUpdateMouseEvent.apply(this, arguments); + + if (mxEvent.isTouchEvent(me.getEvent()) && me.getState() == null) { + var cell = this.getCellAt(me.graphX, me.graphY); + + if (cell != null && this.isSwimlane(cell) && this.hitsSwimlaneContent(cell, me.graphX, me.graphY)) { + cell = null; + } + else { + me.state = this.view.getState(cell); + + if (me.state != null && me.state.shape != null) { + this.container.style.cursor = me.state.shape.node.style.cursor; + } + } + } + + if (me.getState() == null && this.isEnabled()) { + this.container.style.cursor = 'default'; + } + + return me; + }; + + // Context menu trigger implementation depending on current selection state + // combined with support for normal popup trigger. + var cellSelected = false; + var selectionEmpty = false; + var menuShowing = false; + + var oldFireMouseEvent = this.fireMouseEvent; + + this.fireMouseEvent = function (evtName, me, sender) { + if (evtName == mxEvent.MOUSE_DOWN) { + // For hit detection on edges + me = this.updateMouseEvent(me); + + cellSelected = this.isCellSelected(me.getCell()); + selectionEmpty = this.isSelectionEmpty(); + menuShowing = this.popupMenuHandler.isMenuShowing(); + } + + oldFireMouseEvent.apply(this, arguments); + }; + + // Shows popup menu if cell was selected or selection was empty and background was clicked + // FIXME: Conflicts with mxPopupMenuHandler.prototype.getCellForPopupEvent in Editor.js by + // selecting parent for selected children in groups before this check can be made. + this.popupMenuHandler.mouseUp = mxUtils.bind(this, function (sender, me) { + this.popupMenuHandler.popupTrigger = !this.isEditing() && this.isEnabled() && + (me.getState() == null || !me.isSource(me.getState().control)) && + (this.popupMenuHandler.popupTrigger || (!menuShowing && !mxEvent.isMouseEvent(me.getEvent()) && + ((selectionEmpty && me.getCell() == null && this.isSelectionEmpty()) || + (cellSelected && this.isCellSelected(me.getCell()))))); + mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler, arguments); + }); + }; + + /** + * HTML in-place editor + */ + mxCellEditor.prototype.isContentEditing = function () { + var state = this.graph.view.getState(this.editingCell); + + return state != null && state.style['html'] == 1; + }; + + /** + * Creates the keyboard event handler for the current graph and history. + */ + mxCellEditor.prototype.saveSelection = function () { + if (window.getSelection) { + var sel = window.getSelection(); + + if (sel.getRangeAt && sel.rangeCount) { + var ranges = []; + + for (var i = 0, len = sel.rangeCount; i < len; ++i) { + ranges.push(sel.getRangeAt(i)); + } + + return ranges; + } + } + else if (document.selection && document.selection.createRange) { + return document.selection.createRange(); + } + + return null; + }; + + /** + * Creates the keyboard event handler for the current graph and history. + */ + mxCellEditor.prototype.restoreSelection = function (savedSel) { + try { + if (savedSel) { + if (window.getSelection) { + sel = window.getSelection(); + sel.removeAllRanges(); + + for (var i = 0, len = savedSel.length; i < len; ++i) { + sel.addRange(savedSel[i]); + } + } + else if (document.selection && savedSel.select) { + savedSel.select(); + } + } + } + catch (e) { + // ignore + } + }; + + /** + * Handling of special nl2Br style for not converting newlines to breaks in HTML labels. + * NOTE: Since it's easier to set this when the label is created we assume that it does + * not change during the lifetime of the mxText instance. + */ + var mxCellRendererInitializeLabel = mxCellRenderer.prototype.initializeLabel; + mxCellRenderer.prototype.initializeLabel = function (state) { + if (state.text != null) { + state.text.replaceLinefeeds = mxUtils.getValue(state.style, 'nl2Br', '1') != '0'; + } + + mxCellRendererInitializeLabel.apply(this, arguments); + }; + + var mxConstraintHandlerUpdate = mxConstraintHandler.prototype.update; + mxConstraintHandler.prototype.update = function (me, source) { + if (this.isKeepFocusEvent(me) || !mxEvent.isAltDown(me.getEvent())) { + mxConstraintHandlerUpdate.apply(this, arguments); + } + else { + this.reset(); + } + }; + + /** + * No dashed shapes. + */ + mxGuide.prototype.createGuideShape = function (horizontal) { + var guide = new mxPolyline([], mxConstants.GUIDE_COLOR, mxConstants.GUIDE_STROKEWIDTH); + + return guide; + }; + + /** + * HTML in-place editor + */ + mxCellEditor.prototype.escapeCancelsEditing = false; + + var mxCellEditorStartEditing = mxCellEditor.prototype.startEditing; + mxCellEditor.prototype.startEditing = function (cell, trigger) { + mxCellEditorStartEditing.apply(this, arguments); + + // Overrides class in case of HTML content to add + // dashed borders for divs and table cells + var state = this.graph.view.getState(cell); + + if (state != null && state.style['html'] == 1) { + this.textarea.className = 'mxCellEditor geContentEditable'; + } + else { + this.textarea.className = 'mxCellEditor mxPlainTextEditor'; + } + + // Toggles markup vs wysiwyg mode + this.codeViewMode = false; + + // Stores current selection range when switching between markup and code + this.switchSelectionState = null; + + // Selects editing cell + this.graph.setSelectionCell(cell); + + // Enables focus outline for edges and edge labels + var parent = this.graph.getModel().getParent(cell); + var geo = this.graph.getCellGeometry(cell); + + if ((this.graph.getModel().isEdge(parent) && geo != null && geo.relative) || + this.graph.getModel().isEdge(cell)) { + // Quirks does not support outline at all so use border instead + if (mxClient.IS_QUIRKS) { + this.textarea.style.border = 'gray dotted 1px'; + } + // IE>8 and FF on Windows uses outline default of none + else if (mxClient.IS_IE || mxClient.IS_IE11 || (mxClient.IS_FF && mxClient.IS_WIN)) { + this.textarea.style.outline = 'gray dotted 1px'; + } + else { + this.textarea.style.outline = ''; + } + } + else if (mxClient.IS_QUIRKS) { + this.textarea.style.outline = 'none'; + this.textarea.style.border = ''; + } + } + + /** + * HTML in-place editor + */ + var cellEditorInstallListeners = mxCellEditor.prototype.installListeners; + mxCellEditor.prototype.installListeners = function (elt) { + cellEditorInstallListeners.apply(this, arguments); + + // Adds a reference from the clone to the original node, recursively + function reference(node, clone) { + clone.originalNode = node; + + node = node.firstChild; + var child = clone.firstChild; + + while (node != null && child != null) { + reference(node, child); + node = node.nextSibling; + child = child.nextSibling; + } + + return clone; + }; + + // Checks the given node for new nodes, recursively + function checkNode(node, clone) { + if (node != null) { + if (clone.originalNode != node) { + cleanNode(node); + } + else { + node = node.firstChild; + clone = clone.firstChild; + + while (node != null) { + var nextNode = node.nextSibling; + + if (clone == null) { + cleanNode(node); + } + else { + checkNode(node, clone); + clone = clone.nextSibling; + } + + node = nextNode; + } + } + } + }; + + // Removes unused DOM nodes and attributes, recursively + function cleanNode(node) { + var child = node.firstChild; + + while (child != null) { + var next = child.nextSibling; + cleanNode(child); + child = next; + } + + if ((node.nodeType != 1 || (node.nodeName !== 'BR' && node.firstChild == null)) && + (node.nodeType != 3 || mxUtils.trim(mxUtils.getTextContent(node)).length == 0)) { + node.parentNode.removeChild(node); + } + else { + // Removes linefeeds + if (node.nodeType == 3) { + mxUtils.setTextContent(node, mxUtils.getTextContent(node).replace(/\n|\r/g, '')); + } + + // Removes CSS classes and styles (for Word and Excel) + if (node.nodeType == 1) { + node.removeAttribute('style'); + node.removeAttribute('class'); + node.removeAttribute('width'); + node.removeAttribute('cellpadding'); + node.removeAttribute('cellspacing'); + node.removeAttribute('border'); + } + } + }; + + // Handles paste from Word, Excel etc by removing styles, classnames and unused nodes + // LATER: Fix undo/redo for paste + if (!mxClient.IS_QUIRKS && document.documentMode !== 7 && document.documentMode !== 8) { + mxEvent.addListener(this.textarea, 'paste', mxUtils.bind(this, function (evt) { + var clone = reference(this.textarea, this.textarea.cloneNode(true)); + + window.setTimeout(mxUtils.bind(this, function () { + checkNode(this.textarea, clone); + }), 0); + })); + } + }; + + mxCellEditor.prototype.toggleViewMode = function () { + var state = this.graph.view.getState(this.editingCell); + var nl2Br = state != null && mxUtils.getValue(state.style, 'nl2Br', '1') != '0'; + var tmp = this.saveSelection(); + + if (!this.codeViewMode) { + // Clears the initial empty label on the first keystroke + if (this.clearOnChange && this.textarea.innerHTML == this.getEmptyLabelText()) { + this.clearOnChange = false; + this.textarea.innerHTML = ''; + } + + // Removes newlines from HTML and converts breaks to newlines + // to match the HTML output in plain text + var content = mxUtils.htmlEntities(this.textarea.innerHTML); + + // Workaround for trailing line breaks being ignored in the editor + if (!mxClient.IS_QUIRKS && document.documentMode != 8) { + content = mxUtils.replaceTrailingNewlines(content, '

'); + } + + content = this.graph.sanitizeHtml((nl2Br) ? content.replace(/\n/g, '').replace(/<br\s*.?>/g, '
') : content, true); + this.textarea.className = 'mxCellEditor mxPlainTextEditor'; + + var size = mxConstants.DEFAULT_FONTSIZE; + + this.textarea.style.lineHeight = (mxConstants.ABSOLUTE_LINE_HEIGHT) ? Math.round(size * mxConstants.LINE_HEIGHT) + 'px' : mxConstants.LINE_HEIGHT; + this.textarea.style.fontSize = Math.round(size) + 'px'; + this.textarea.style.textDecoration = ''; + this.textarea.style.fontWeight = 'normal'; + this.textarea.style.fontStyle = ''; + this.textarea.style.fontFamily = mxConstants.DEFAULT_FONTFAMILY; + this.textarea.style.textAlign = 'left'; + + // Adds padding to make cursor visible with borders + this.textarea.style.padding = '2px'; + + if (this.textarea.innerHTML != content) { + this.textarea.innerHTML = content; + } + + this.codeViewMode = true; + } + else { + var content = mxUtils.extractTextWithWhitespace(this.textarea.childNodes); + + // Strips trailing line break + if (content.length > 0 && content.charAt(content.length - 1) == '\n') { + content = content.substring(0, content.length - 1); + } + + content = this.graph.sanitizeHtml((nl2Br) ? content.replace(/\n/g, '
') : content, true) + this.textarea.className = 'mxCellEditor geContentEditable'; + + var size = mxUtils.getValue(state.style, mxConstants.STYLE_FONTSIZE, mxConstants.DEFAULT_FONTSIZE); + var family = mxUtils.getValue(state.style, mxConstants.STYLE_FONTFAMILY, mxConstants.DEFAULT_FONTFAMILY); + var align = mxUtils.getValue(state.style, mxConstants.STYLE_ALIGN, mxConstants.ALIGN_LEFT); + var bold = (mxUtils.getValue(state.style, mxConstants.STYLE_FONTSTYLE, 0) & + mxConstants.FONT_BOLD) == mxConstants.FONT_BOLD; + var italic = (mxUtils.getValue(state.style, mxConstants.STYLE_FONTSTYLE, 0) & + mxConstants.FONT_ITALIC) == mxConstants.FONT_ITALIC; + var uline = (mxUtils.getValue(state.style, mxConstants.STYLE_FONTSTYLE, 0) & + mxConstants.FONT_UNDERLINE) == mxConstants.FONT_UNDERLINE; + + this.textarea.style.lineHeight = (mxConstants.ABSOLUTE_LINE_HEIGHT) ? Math.round(size * mxConstants.LINE_HEIGHT) + 'px' : mxConstants.LINE_HEIGHT; + this.textarea.style.fontSize = Math.round(size) + 'px'; + this.textarea.style.textDecoration = (uline) ? 'underline' : ''; + this.textarea.style.fontWeight = (bold) ? 'bold' : 'normal'; + this.textarea.style.fontStyle = (italic) ? 'italic' : ''; + this.textarea.style.fontFamily = family; + this.textarea.style.textAlign = align; + this.textarea.style.padding = '0px'; + + if (this.textarea.innerHTML != content) { + this.textarea.innerHTML = content; + + if (this.textarea.innerHTML.length == 0) { + this.textarea.innerHTML = this.getEmptyLabelText(); + this.clearOnChange = this.textarea.innerHTML.length > 0; + } + } + + this.codeViewMode = false; + } + + this.textarea.focus(); + + if (this.switchSelectionState != null) { + this.restoreSelection(this.switchSelectionState); + } + + this.switchSelectionState = tmp; + this.resize(); + }; + + var mxCellEditorResize = mxCellEditor.prototype.resize; + mxCellEditor.prototype.resize = function (state, trigger) { + if (this.textarea != null) { + var state = this.graph.getView().getState(this.editingCell); + + if (this.codeViewMode && state != null) { + var scale = state.view.scale; + this.bounds = mxRectangle.fromRectangle(state); + + // General placement of code editor if cell has no size + // LATER: Fix HTML editor bounds for edge labels + if (this.bounds.width == 0 && this.bounds.height == 0) { + this.bounds.width = 160 * scale; + this.bounds.height = 60 * scale; + + var m = (state.text != null) ? state.text.margin : null; + + if (m == null) { + m = mxUtils.getAlignmentAsPoint(mxUtils.getValue(state.style, mxConstants.STYLE_ALIGN, mxConstants.ALIGN_CENTER), + mxUtils.getValue(state.style, mxConstants.STYLE_VERTICAL_ALIGN, mxConstants.ALIGN_MIDDLE)); + } + + this.bounds.x += m.x * this.bounds.width; + this.bounds.y += m.y * this.bounds.height; + } + + this.textarea.style.width = Math.round((this.bounds.width - 4) / scale) + 'px'; + this.textarea.style.height = Math.round((this.bounds.height - 4) / scale) + 'px'; + this.textarea.style.overflow = 'auto'; + + // Adds scrollbar offset if visible + if (this.textarea.clientHeight < this.textarea.offsetHeight) { + this.textarea.style.height = Math.round((this.bounds.height / scale)) + (this.textarea.offsetHeight - this.textarea.clientHeight) + 'px'; + this.bounds.height = parseInt(this.textarea.style.height) * scale; + } + + if (this.textarea.clientWidth < this.textarea.offsetWidth) { + this.textarea.style.width = Math.round((this.bounds.width / scale)) + (this.textarea.offsetWidth - this.textarea.clientWidth) + 'px'; + this.bounds.width = parseInt(this.textarea.style.width) * scale; + } + + this.textarea.style.left = Math.round(this.bounds.x) + 'px'; + this.textarea.style.top = Math.round(this.bounds.y) + 'px'; + + if (mxClient.IS_VML) { + this.textarea.style.zoom = scale; + } + else { + mxUtils.setPrefixedStyle(this.textarea.style, 'transform', 'scale(' + scale + ',' + scale + ')'); + } + } + else { + this.textarea.style.height = ''; + this.textarea.style.overflow = ''; + mxCellEditorResize.apply(this, arguments); + } + } + }; + + var mxCellEditorGetInitialValue = mxCellEditor.prototype.getInitialValue; + mxCellEditor.prototype.getInitialValue = function (state, trigger) { + if (mxUtils.getValue(state.style, 'html', '0') == '0') { + return mxCellEditorGetInitialValue.apply(this, arguments); + } + else { + var result = this.graph.getEditingValue(state.cell, trigger) + + if (mxUtils.getValue(state.style, 'nl2Br', '1') == '1') { + result = result.replace(/\n/g, '
'); + } + + result = this.graph.sanitizeHtml(result, true); + + return result; + } + }; + + var mxCellEditorGetCurrentValue = mxCellEditor.prototype.getCurrentValue; + mxCellEditor.prototype.getCurrentValue = function (state) { + if (mxUtils.getValue(state.style, 'html', '0') == '0') { + return mxCellEditorGetCurrentValue.apply(this, arguments); + } + else { + var result = this.graph.sanitizeHtml(this.textarea.innerHTML, true); + + if (mxUtils.getValue(state.style, 'nl2Br', '1') == '1') { + result = result.replace(/\r\n/g, '
').replace(/\n/g, '
'); + } + else { + result = result.replace(/\r\n/g, '').replace(/\n/g, ''); + } + + return result; + } + }; + + var mxCellEditorStopEditing = mxCellEditor.prototype.stopEditing; + mxCellEditor.prototype.stopEditing = function (cancel) { + // Restores default view mode before applying value + if (this.codeViewMode) { + this.toggleViewMode(); + } + + mxCellEditorStopEditing.apply(this, arguments); + + // Tries to move focus back to container after editing if possible + this.focusContainer(); + }; + + mxCellEditor.prototype.focusContainer = function () { + try { + this.graph.container.focus(); + } + catch (e) { + // ignore + } + }; + + var mxCellEditorApplyValue = mxCellEditor.prototype.applyValue; + mxCellEditor.prototype.applyValue = function (state, value) { + // Removes empty relative child labels in edges + this.graph.getModel().beginUpdate(); + + try { + mxCellEditorApplyValue.apply(this, arguments); + + if (this.graph.isCellDeletable(state.cell) && this.graph.model.getChildCount(state.cell) == 0) { + var stroke = mxUtils.getValue(state.style, mxConstants.STYLE_STROKECOLOR, mxConstants.NONE); + var fill = mxUtils.getValue(state.style, mxConstants.STYLE_FILLCOLOR, mxConstants.NONE); + + if (value == '' && stroke == mxConstants.NONE && fill == mxConstants.NONE) { + this.graph.removeCells([state.cell], false); + } + } + } + finally { + this.graph.getModel().endUpdate(); + } + }; + + /** + * Returns the background color to be used for the editing box. This returns + * the label background for edge labels and null for all other cases. + */ + mxCellEditor.prototype.getBackgroundColor = function (state) { + var color = null; + + if (this.graph.getModel().isEdge(state.cell) || this.graph.getModel().isEdge(this.graph.getModel().getParent(state.cell))) { + var color = mxUtils.getValue(state.style, mxConstants.STYLE_LABEL_BACKGROUNDCOLOR, null); + + if (color == mxConstants.NONE) { + color = null; + } + } + + return color; + }; + + mxCellEditor.prototype.getMinimumSize = function (state) { + var scale = this.graph.getView().scale; + + return new mxRectangle(0, 0, (state.text == null) ? 30 : state.text.size * scale + 20, 30); + }; + + // Hold alt to ignore drop target + var mxGraphHandlerMoveCells = mxGraphHandler.prototype.moveCells; + + mxGraphHandler.prototype.moveCells = function (cells, dx, dy, clone, target, evt) { + if (mxEvent.isAltDown(evt)) { + target = null; + } + + mxGraphHandlerMoveCells.apply(this, arguments); + }; + + /** + * Hints on handlers + */ + function createHint() { + var hint = document.createElement('div'); + hint.className = 'geHint'; + hint.style.whiteSpace = 'nowrap'; + hint.style.position = 'absolute'; + + return hint; + }; + + /** + * Updates the hint for the current operation. + */ + mxGraphHandler.prototype.updateHint = function (me) { + if (this.shape != null) { + if (this.hint == null) { + this.hint = createHint(); + this.graph.container.appendChild(this.hint); + } + + var t = this.graph.view.translate; + var s = this.graph.view.scale; + var x = this.roundLength((this.bounds.x + this.currentDx) / s - t.x); + var y = this.roundLength((this.bounds.y + this.currentDy) / s - t.y); + + this.hint.innerHTML = x + ', ' + y; + + this.hint.style.left = (this.shape.bounds.x + Math.round((this.shape.bounds.width - this.hint.clientWidth) / 2)) + 'px'; + this.hint.style.top = (this.shape.bounds.y + this.shape.bounds.height + 12) + 'px'; + } + }; + + /** + * Updates the hint for the current operation. + */ + mxGraphHandler.prototype.removeHint = function () { + if (this.hint != null) { + this.hint.parentNode.removeChild(this.hint); + this.hint = null; + } + }; + + /** + * Enables recursive resize for groups. + */ + mxVertexHandler.prototype.isRecursiveResize = function (state, me) { + return !this.graph.isSwimlane(state.cell) && this.graph.model.getChildCount(state.cell) > 0 && + !mxEvent.isControlDown(me.getEvent()) && !this.graph.isCellCollapsed(state.cell) && + mxUtils.getValue(state.style, 'recursiveResize', '1') == '1' && + mxUtils.getValue(state.style, 'childLayout', null) == null; + }; + + /** + * Enables centered resize events. + */ + mxVertexHandler.prototype.isCenteredEvent = function (state, me) { + return (!(!this.graph.isSwimlane(state.cell) && this.graph.model.getChildCount(state.cell) > 0 && + !this.graph.isCellCollapsed(state.cell) && + mxUtils.getValue(state.style, 'recursiveResize', '1') == '1' && + mxUtils.getValue(state.style, 'childLayout', null) == null) && + mxEvent.isControlDown(me.getEvent())) || + mxEvent.isMetaDown(me.getEvent()); + }; + + var vertexHandlerGetHandlePadding = mxVertexHandler.prototype.getHandlePadding; + mxVertexHandler.prototype.getHandlePadding = function () { + var result = new mxPoint(0, 0); + var tol = this.tolerance; + + if (this.graph.cellEditor.getEditingCell() == this.state.cell && + this.sizers != null && this.sizers.length > 0 && this.sizers[0] != null) { + tol /= 2; + + result.x = this.sizers[0].bounds.width + tol; + result.y = this.sizers[0].bounds.height + tol; + } + else { + result = vertexHandlerGetHandlePadding.apply(this, arguments); + } + + return result; + }; + + /** + * Updates the hint for the current operation. + */ + mxVertexHandler.prototype.updateHint = function (me) { + if (this.index != mxEvent.LABEL_HANDLE) { + if (this.hint == null) { + this.hint = createHint(); + this.state.view.graph.container.appendChild(this.hint); + } + + if (this.index == mxEvent.ROTATION_HANDLE) { + this.hint.innerHTML = this.currentAlpha + '°'; + } + else { + var s = this.state.view.scale; + this.hint.innerHTML = this.roundLength(this.bounds.width / s) + ' x ' + this.roundLength(this.bounds.height / s); + } + + var rot = (this.currentAlpha != null) ? this.currentAlpha : this.state.style[mxConstants.STYLE_ROTATION] || '0'; + var bb = mxUtils.getBoundingBox(this.bounds, rot); + + if (bb == null) { + bb = this.bounds; + } + + this.hint.style.left = bb.x + Math.round((bb.width - this.hint.clientWidth) / 2) + 'px'; + this.hint.style.top = (bb.y + bb.height + 12) + 'px'; + + if (this.linkHint != null) { + this.linkHint.style.display = 'none'; + } + } + }; + + /** + * Updates the hint for the current operation. + */ + mxVertexHandler.prototype.removeHint = function () { + mxGraphHandler.prototype.removeHint.apply(this, arguments); + + if (this.linkHint != null) { + this.linkHint.style.display = ''; + } + }; + + /** + * Updates the hint for the current operation. + */ + mxEdgeHandler.prototype.updateHint = function (me, point) { + if (this.hint == null) { + this.hint = createHint(); + this.state.view.graph.container.appendChild(this.hint); + } + + var t = this.graph.view.translate; + var s = this.graph.view.scale; + var x = this.roundLength(point.x / s - t.x); + var y = this.roundLength(point.y / s - t.y); + + this.hint.innerHTML = x + ', ' + y; + this.hint.style.visibility = 'visible'; + + if (this.isSource || this.isTarget) { + if (this.constraintHandler.currentConstraint != null && + this.constraintHandler.currentFocus != null) { + var pt = this.constraintHandler.currentConstraint.point; + this.hint.innerHTML = '[' + Math.round(pt.x * 100) + '%, ' + Math.round(pt.y * 100) + '%]'; + } + else if (this.marker.hasValidState()) { + this.hint.style.visibility = 'hidden'; + } + } + + this.hint.style.left = Math.round(me.getGraphX() - this.hint.clientWidth / 2) + 'px'; + this.hint.style.top = (Math.max(me.getGraphY(), point.y) + this.state.view.graph.gridSize) + 'px'; + + if (this.linkHint != null) { + this.linkHint.style.display = 'none'; + } + }; + + /** + * Updates the hint for the current operation. + */ + mxEdgeHandler.prototype.removeHint = mxVertexHandler.prototype.removeHint; + + /** + * Defines the handles for the UI. Uses data-URIs to speed-up loading time where supported. + */ + // TODO: Increase handle padding + HoverIcons.prototype.mainHandle = (!mxClient.IS_SVG) ? new mxImage(IMAGE_PATH + '/handle-main.png', 17, 17) : + Graph.createSvgImage(18, 18, ''); + HoverIcons.prototype.secondaryHandle = (!mxClient.IS_SVG) ? new mxImage(IMAGE_PATH + '/handle-secondary.png', 17, 17) : + Graph.createSvgImage(16, 16, ''); + HoverIcons.prototype.fixedHandle = (!mxClient.IS_SVG) ? new mxImage(IMAGE_PATH + '/handle-fixed.png', 17, 17) : + Graph.createSvgImage(18, 18, ''); + HoverIcons.prototype.terminalHandle = (!mxClient.IS_SVG) ? new mxImage(IMAGE_PATH + '/handle-terminal.png', 17, 17) : + Graph.createSvgImage(18, 18, ''); + HoverIcons.prototype.rotationHandle = new mxImage((mxClient.IS_SVG) ? 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAVCAYAAACkCdXRAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAA6ZJREFUeNqM001IY1cUB/D/fYmm2sbR2lC1zYlgoRG6MpEyBlpxM9iFIGKFIm3s0lCKjOByhCLZCFqLBF1YFVJdSRbdFHRhBbULtRuFVBTzYRpJgo2mY5OX5N9Fo2TG+eiFA/dd3vvd8+65ByTxshARTdf1JySp6/oTEdFe9T5eg5lIcnBwkCSZyWS+exX40oyur68/KxaLf5Okw+H4X+A9JBaLfUySZ2dnnJqaosPhIAACeC34DJRKpb7IZrMcHx+nwWCgUopGo/EOKwf9fn/1CzERUevr6+9ls1mOjIwQAH0+H4PBIKPR6D2ofAQCgToRUeVYJUkuLy8TANfW1kiS8/PzCy84Mw4MDBAAZ2dnmc/nub+/X0MSEBF1cHDwMJVKsaGhgV6vl+l0mqOjo1+KyKfl1dze3l4NBoM/PZ+diFSLiIKIGBOJxA9bW1sEwNXVVSaTyQMRaRaRxrOzs+9J8ujoaE5EPhQRq67rcZ/PRwD0+/3Udf03EdEgIqZisZibnJykwWDg4eEhd3Z2xkXELCJvPpdBrYjUiEhL+Xo4HH4sIhUaAKNSqiIcDsNkMqG+vh6RSOQQQM7tdhsAQCkFAHC73UUATxcWFqypVApmsxnDw8OwWq2TADQNgAYAFosF+XweyWQSdru9BUBxcXFRB/4rEgDcPouIIx6P4+bmBi0tLSCpAzBqAIqnp6c/dnZ2IpfLYXNzE62traMADACKNputpr+/v8lms9UAKAAwiMjXe3t7KBQKqKurQy6Xi6K0i2l6evpROp1mbW0t29vbGY/Hb8/IVIqq2zlJXl1dsaOjg2azmefn5wwEAl+JSBVExCgi75PkzMwMlVJsbGxkIpFgPp8PX15ePopEIs3JZPITXdf/iEajbGpqolKKExMT1HWdHo/nIxGpgIgoEXnQ3d39kCTHxsYIgC6Xi3NzcwyHw8xkMozFYlxaWmJbWxuVUuzt7WUul6PX6/1cRN4WEe2uA0SkaWVl5XGpRVhdXU0A1DSNlZWVdz3qdDrZ09PDWCzG4+Pjn0XEWvp9KJKw2WwKwBsA3gHQHAqFfr24uMDGxgZ2d3cRiUQAAHa7HU6nE319fTg5Ofmlq6vrGwB/AngaCoWK6rbsNptNA1AJoA7Aux6Pp3NoaMhjsVg+QNmIRqO/u1yubwFEASRKUAEA7rASqABUAKgC8KAUb5XWCOAfAFcA/gJwDSB7C93DylCtdM8qABhLc5TumV6KQigUeubjfwcAHkQJ94ndWeYAAAAASUVORK5CYII=' : + IMAGE_PATH + '/handle-rotate.png', 19, 21); + + if (mxClient.IS_SVG) { + mxConstraintHandler.prototype.pointImage = Graph.createSvgImage(5, 5, ''); + } + + mxVertexHandler.prototype.handleImage = HoverIcons.prototype.mainHandle; + mxVertexHandler.prototype.secondaryHandleImage = HoverIcons.prototype.secondaryHandle; + mxEdgeHandler.prototype.handleImage = HoverIcons.prototype.mainHandle; + mxEdgeHandler.prototype.terminalHandleImage = HoverIcons.prototype.terminalHandle; + mxEdgeHandler.prototype.fixedHandleImage = HoverIcons.prototype.fixedHandle; + mxEdgeHandler.prototype.labelHandleImage = HoverIcons.prototype.secondaryHandle; + mxOutline.prototype.sizerImage = HoverIcons.prototype.mainHandle; + + if (window.Sidebar != null) { + Sidebar.prototype.triangleUp = HoverIcons.prototype.triangleUp; + Sidebar.prototype.triangleRight = HoverIcons.prototype.triangleRight; + Sidebar.prototype.triangleDown = HoverIcons.prototype.triangleDown; + Sidebar.prototype.triangleLeft = HoverIcons.prototype.triangleLeft; + Sidebar.prototype.refreshTarget = HoverIcons.prototype.refreshTarget; + Sidebar.prototype.roundDrop = HoverIcons.prototype.roundDrop; + } + + // Pre-fetches images (only needed for non data-uris) + if (!mxClient.IS_SVG) { + new Image().src = HoverIcons.prototype.mainHandle.src; + new Image().src = HoverIcons.prototype.fixedHandle.src; + new Image().src = HoverIcons.prototype.terminalHandle.src; + new Image().src = HoverIcons.prototype.secondaryHandle.src; + new Image().src = HoverIcons.prototype.rotationHandle.src; + + new Image().src = HoverIcons.prototype.triangleUp.src; + new Image().src = HoverIcons.prototype.triangleRight.src; + new Image().src = HoverIcons.prototype.triangleDown.src; + new Image().src = HoverIcons.prototype.triangleLeft.src; + new Image().src = HoverIcons.prototype.refreshTarget.src; + new Image().src = HoverIcons.prototype.roundDrop.src; + } + + // Adds rotation handle and live preview + mxVertexHandler.prototype.rotationEnabled = true; + mxVertexHandler.prototype.manageSizers = true; + mxVertexHandler.prototype.livePreview = true; + + // Increases default rubberband opacity (default is 20) + mxRubberband.prototype.defaultOpacity = 30; + + // Enables connections along the outline, virtual waypoints, parent highlight etc + mxConnectionHandler.prototype.outlineConnect = true; + mxCellHighlight.prototype.keepOnTop = true; + mxVertexHandler.prototype.parentHighlightEnabled = true; + mxVertexHandler.prototype.rotationHandleVSpacing = -20; + + mxEdgeHandler.prototype.parentHighlightEnabled = true; + mxEdgeHandler.prototype.dblClickRemoveEnabled = true; + mxEdgeHandler.prototype.straightRemoveEnabled = true; + mxEdgeHandler.prototype.virtualBendsEnabled = true; + mxEdgeHandler.prototype.mergeRemoveEnabled = true; + mxEdgeHandler.prototype.manageLabelHandle = true; + mxEdgeHandler.prototype.outlineConnect = true; + + // Disables adding waypoints if shift is pressed + mxEdgeHandler.prototype.isAddVirtualBendEvent = function (me) { + return !mxEvent.isShiftDown(me.getEvent()); + }; + + // Disables custom handles if shift is pressed + mxEdgeHandler.prototype.isCustomHandleEvent = function (me) { + return !mxEvent.isShiftDown(me.getEvent()); + }; + + /** + * Implements touch style + */ + if (Graph.touchStyle) { + // Larger tolerance for real touch devices + if (mxClient.IS_TOUCH || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0) { + mxShape.prototype.svgStrokeTolerance = 18; + mxVertexHandler.prototype.tolerance = 12; + mxEdgeHandler.prototype.tolerance = 12; + Graph.prototype.tolerance = 12; + + mxVertexHandler.prototype.rotationHandleVSpacing = -24; + + // Implements a smaller tolerance for mouse events and a larger tolerance for touch + // events on touch devices. The default tolerance (4px) is used for mouse events. + mxConstraintHandler.prototype.getTolerance = function (me) { + return (mxEvent.isMouseEvent(me.getEvent())) ? 4 : this.graph.getTolerance(); + }; + } + + // One finger pans (no rubberband selection) must start regardless of mouse button + mxPanningHandler.prototype.isPanningTrigger = function (me) { + var evt = me.getEvent(); + + return (me.getState() == null && !mxEvent.isMouseEvent(evt)) || + (mxEvent.isPopupTrigger(evt) && (me.getState() == null || + mxEvent.isControlDown(evt) || mxEvent.isShiftDown(evt))); + }; + + // Don't clear selection if multiple cells selected + var graphHandlerMouseDown = mxGraphHandler.prototype.mouseDown; + mxGraphHandler.prototype.mouseDown = function (sender, me) { + graphHandlerMouseDown.apply(this, arguments); + if (mxEvent.isTouchEvent(me.getEvent()) && this.graph.isCellSelected(me.getCell()) && + this.graph.getSelectionCount() > 1) { + this.delayedSelection = false; + } + }; + } + else { + // Removes ctrl+shift as panning trigger for space splitting + mxPanningHandler.prototype.isPanningTrigger = function (me) { + var evt = me.getEvent(); + return (mxEvent.isLeftMouseButton(evt) && ((this.useLeftButtonForPanning && + me.getState() == null) || (mxEvent.isControlDown(evt) && + !mxEvent.isShiftDown(evt)))) || (this.usePopupTrigger && + mxEvent.isPopupTrigger(evt)); + }; + } + + // Overrides/extends rubberband for space handling with Ctrl+Shift(+Alt) drag ("scissors tool") + mxRubberband.prototype.isSpaceEvent = function (me) { + return this.graph.isEnabled() && !this.graph.isCellLocked(this.graph.getDefaultParent()) && + mxEvent.isControlDown(me.getEvent()) && mxEvent.isShiftDown(me.getEvent()); + }; + + // Handles moving of cells in both half panes + mxRubberband.prototype.mouseUp = function (sender, me) { + var execute = this.div != null && this.div.style.display != 'none'; + + var x0 = null; + var y0 = null; + var dx = null; + var dy = null; + + if (this.first != null && this.currentX != null && this.currentY != null) { + x0 = this.first.x; + y0 = this.first.y; + dx = (this.currentX - x0) / this.graph.view.scale; + dy = (this.currentY - y0) / this.graph.view.scale; + + if (!mxEvent.isAltDown(me.getEvent())) { + dx = this.graph.snap(dx); + dy = this.graph.snap(dy); + + if (!this.graph.isGridEnabled()) { + if (Math.abs(dx) < this.graph.tolerance) { + dx = 0; + } + + if (Math.abs(dy) < this.graph.tolerance) { + dy = 0; + } + } + } + } + + this.reset(); + + if (execute) { + if (mxEvent.isAltDown(me.getEvent()) && this.graph.isToggleEvent(me.getEvent())) { + var rect = new mxRectangle(this.x, this.y, this.width, this.height); + var cells = this.graph.getCells(rect.x, rect.y, rect.width, rect.height); + + this.graph.removeSelectionCells(cells); + } + else if (this.isSpaceEvent(me)) { + this.graph.model.beginUpdate(); + try { + var cells = this.graph.getCellsBeyond(x0, y0, this.graph.getDefaultParent(), true, true); + + for (var i = 0; i < cells.length; i++) { + if (this.graph.isCellMovable(cells[i])) { + var tmp = this.graph.view.getState(cells[i]); + var geo = this.graph.getCellGeometry(cells[i]); + + if (tmp != null && geo != null) { + geo = geo.clone(); + geo.translate(dx, dy); + this.graph.model.setGeometry(cells[i], geo); + } + } + } + } + finally { + this.graph.model.endUpdate(); + } + } + else { + var rect = new mxRectangle(this.x, this.y, this.width, this.height); + this.graph.selectRegion(rect, me.getEvent()); + } + + me.consume(); + } + }; + + // Handles preview for creating/removing space in diagram + mxRubberband.prototype.mouseMove = function (sender, me) { + if (!me.isConsumed() && this.first != null) { + var origin = mxUtils.getScrollOrigin(this.graph.container); + var offset = mxUtils.getOffset(this.graph.container); + origin.x -= offset.x; + origin.y -= offset.y; + var x = me.getX() + origin.x; + var y = me.getY() + origin.y; + var dx = this.first.x - x; + var dy = this.first.y - y; + var tol = this.graph.tolerance; + + if (this.div != null || Math.abs(dx) > tol || Math.abs(dy) > tol) { + if (this.div == null) { + this.div = this.createShape(); + } + + // Clears selection while rubberbanding. This is required because + // the event is not consumed in mouseDown. + mxUtils.clearSelection(); + this.update(x, y); + + if (this.isSpaceEvent(me)) { + var right = this.x + this.width; + var bottom = this.y + this.height; + var scale = this.graph.view.scale; + + if (!mxEvent.isAltDown(me.getEvent())) { + this.width = this.graph.snap(this.width / scale) * scale; + this.height = this.graph.snap(this.height / scale) * scale; + + if (!this.graph.isGridEnabled()) { + if (this.width < this.graph.tolerance) { + this.width = 0; + } + + if (this.height < this.graph.tolerance) { + this.height = 0; + } + } + + if (this.x < this.first.x) { + this.x = right - this.width; + } + + if (this.y < this.first.y) { + this.y = bottom - this.height; + } + } + + this.div.style.borderStyle = 'dashed'; + this.div.style.backgroundColor = 'white'; + this.div.style.left = this.x + 'px'; + this.div.style.top = this.y + 'px'; + this.div.style.width = Math.max(0, this.width) + 'px'; + this.div.style.height = this.graph.container.clientHeight + 'px'; + this.div.style.borderWidth = (this.width <= 0) ? '0px 1px 0px 0px' : '0px 1px 0px 1px'; + + if (this.secondDiv == null) { + this.secondDiv = this.div.cloneNode(true); + this.div.parentNode.appendChild(this.secondDiv); + } + + this.secondDiv.style.left = this.x + 'px'; + this.secondDiv.style.top = this.y + 'px'; + this.secondDiv.style.width = this.graph.container.clientWidth + 'px'; + this.secondDiv.style.height = Math.max(0, this.height) + 'px'; + this.secondDiv.style.borderWidth = (this.height <= 0) ? '1px 0px 0px 0px' : '1px 0px 1px 0px'; + } + else { + // Hides second div and restores style + this.div.style.backgroundColor = ''; + this.div.style.borderWidth = ''; + this.div.style.borderStyle = ''; + + if (this.secondDiv != null) { + this.secondDiv.parentNode.removeChild(this.secondDiv); + this.secondDiv = null; + } + } + + me.consume(); + } + } + }; + + // Removes preview + var mxRubberbandReset = mxRubberband.prototype.reset; + mxRubberband.prototype.reset = function () { + if (this.secondDiv != null) { + this.secondDiv.parentNode.removeChild(this.secondDiv); + this.secondDiv = null; + } + + mxRubberbandReset.apply(this, arguments); + }; + + // Timer-based activation of outline connect in connection handler + var startTime = new Date().getTime(); + var timeOnTarget = 0; + + var mxEdgeHandlerUpdatePreviewState = mxEdgeHandler.prototype.updatePreviewState; + + mxEdgeHandler.prototype.updatePreviewState = function (edge, point, terminalState, me) { + mxEdgeHandlerUpdatePreviewState.apply(this, arguments); + + if (terminalState != this.currentTerminalState) { + startTime = new Date().getTime(); + timeOnTarget = 0; + } + else { + timeOnTarget = new Date().getTime() - startTime; + } + + this.currentTerminalState = terminalState; + }; + + // Timer-based outline connect + var mxEdgeHandlerIsOutlineConnectEvent = mxEdgeHandler.prototype.isOutlineConnectEvent; + + mxEdgeHandler.prototype.isOutlineConnectEvent = function (me) { + return (this.currentTerminalState != null && me.getState() == this.currentTerminalState && timeOnTarget > 2000) || + ((this.currentTerminalState == null || mxUtils.getValue(this.currentTerminalState.style, 'outlineConnect', '1') != '0') && + mxEdgeHandlerIsOutlineConnectEvent.apply(this, arguments)); + }; + + // Disables custom handles if shift is pressed + mxVertexHandler.prototype.isCustomHandleEvent = function (me) { + return !mxEvent.isShiftDown(me.getEvent()); + }; + + // Shows secondary handle for fixed connection points + mxEdgeHandler.prototype.createHandleShape = function (index, virtual) { + var source = index != null && index == 0; + var terminalState = this.state.getVisibleTerminalState(source); + var c = (index != null && (index == 0 || index >= this.state.absolutePoints.length - 1 || + (this.constructor == mxElbowEdgeHandler && index == 2))) ? + this.graph.getConnectionConstraint(this.state, terminalState, source) : null; + var pt = (c != null) ? this.graph.getConnectionPoint(this.state.getVisibleTerminalState(source), c) : null; + var img = (pt != null) ? this.fixedHandleImage : ((c != null && terminalState != null) ? + this.terminalHandleImage : this.handleImage); + + if (img != null) { + var shape = new mxImageShape(new mxRectangle(0, 0, img.width, img.height), img.src); + + // Allows HTML rendering of the images + shape.preserveImageAspect = false; + + return shape; + } + else { + var s = mxConstants.HANDLE_SIZE; + + if (this.preferHtml) { + s -= 1; + } + + return new mxRectangleShape(new mxRectangle(0, 0, s, s), mxConstants.HANDLE_FILLCOLOR, mxConstants.HANDLE_STROKECOLOR); + } + }; + + var vertexHandlerCreateSizerShape = mxVertexHandler.prototype.createSizerShape; + mxVertexHandler.prototype.createSizerShape = function (bounds, index, fillColor) { + this.handleImage = (index == mxEvent.ROTATION_HANDLE) ? HoverIcons.prototype.rotationHandle : (index == mxEvent.LABEL_HANDLE) ? this.secondaryHandleImage : this.handleImage; + + return vertexHandlerCreateSizerShape.apply(this, arguments); + }; + + // Special case for single edge label handle moving in which case the text bounding box is used + var mxGraphHandlerGetBoundingBox = mxGraphHandler.prototype.getBoundingBox; + mxGraphHandler.prototype.getBoundingBox = function (cells) { + if (cells != null && cells.length == 1) { + var model = this.graph.getModel(); + var parent = model.getParent(cells[0]); + var geo = this.graph.getCellGeometry(cells[0]); + + if (model.isEdge(parent) && geo != null && geo.relative) { + var state = this.graph.view.getState(cells[0]); + + if (state != null && state.width < 2 && state.height < 2 && state.text != null && state.text.boundingBox != null) { + return mxRectangle.fromRectangle(state.text.boundingBox); + } + } + } + + return mxGraphHandlerGetBoundingBox.apply(this, arguments); + }; + + // Uses text bounding box for edge labels + var mxVertexHandlerGetSelectionBounds = mxVertexHandler.prototype.getSelectionBounds; + mxVertexHandler.prototype.getSelectionBounds = function (state) { + var model = this.graph.getModel(); + var parent = model.getParent(state.cell); + var geo = this.graph.getCellGeometry(state.cell); + + if (model.isEdge(parent) && geo != null && geo.relative && state.width < 2 && state.height < 2 && state.text != null && state.text.boundingBox != null) { + var bbox = state.text.unrotatedBoundingBox || state.text.boundingBox; + + return new mxRectangle(Math.round(bbox.x), Math.round(bbox.y), Math.round(bbox.width), Math.round(bbox.height)); + } + else { + return mxVertexHandlerGetSelectionBounds.apply(this, arguments); + } + }; + + // Redirects moving of edge labels to mxGraphHandler by not starting here. + // This will use the move preview of mxGraphHandler (see above). + var mxVertexHandlerMouseDown = mxVertexHandler.prototype.mouseDown; + mxVertexHandler.prototype.mouseDown = function (sender, me) { + var model = this.graph.getModel(); + var parent = model.getParent(this.state.cell); + var geo = this.graph.getCellGeometry(this.state.cell); + + // Lets rotation events through + var handle = this.getHandleForEvent(me); + + if (handle == mxEvent.ROTATION_HANDLE || !model.isEdge(parent) || geo == null || !geo.relative || + this.state == null || this.state.width >= 2 || this.state.height >= 2) { + mxVertexHandlerMouseDown.apply(this, arguments); + } + }; + + // Shows rotation handle for edge labels. + mxVertexHandler.prototype.isRotationHandleVisible = function () { + return this.graph.isEnabled() && this.rotationEnabled && this.graph.isCellRotatable(this.state.cell) && + (mxGraphHandler.prototype.maxCells <= 0 || this.graph.getSelectionCount() < mxGraphHandler.prototype.maxCells); + }; + + // Invokes turn on single click on rotation handle + mxVertexHandler.prototype.rotateClick = function () { + this.state.view.graph.turnShapes([this.state.cell]); + }; + + var vertexHandlerMouseMove = mxVertexHandler.prototype.mouseMove; + + // Workaround for "isConsumed not defined" in MS Edge is to use arguments + mxVertexHandler.prototype.mouseMove = function (sender, me) { + vertexHandlerMouseMove.apply(this, arguments); + + if (this.graph.graphHandler.first != null) { + if (this.rotationShape != null && this.rotationShape.node != null) { + this.rotationShape.node.style.display = 'none'; + } + } + }; + + var vertexHandlerMouseUp = mxVertexHandler.prototype.mouseUp; + mxVertexHandler.prototype.mouseUp = function (sender, me) { + vertexHandlerMouseUp.apply(this, arguments); + + // Shows rotation handle only if one vertex is selected + if (this.rotationShape != null && this.rotationShape.node != null) { + this.rotationShape.node.style.display = (this.graph.getSelectionCount() == 1) ? '' : 'none'; + } + }; + + var vertexHandlerInit = mxVertexHandler.prototype.init; + mxVertexHandler.prototype.init = function () { + vertexHandlerInit.apply(this, arguments); + var redraw = false; + + if (this.rotationShape != null) { + this.rotationShape.node.setAttribute('title', mxResources.get('rotateTooltip')); + } + + var update = mxUtils.bind(this, function () { + // Shows rotation handle only if one vertex is selected + if (this.rotationShape != null && this.rotationShape.node != null) { + this.rotationShape.node.style.display = (this.graph.getSelectionCount() == 1) ? '' : 'none'; + } + + if (this.specialHandle != null) { + this.specialHandle.node.style.display = (this.graph.isEnabled() && this.graph.getSelectionCount() < this.graph.graphHandler.maxCells) ? '' : 'none'; + } + + this.redrawHandles(); + }); + + this.selectionHandler = mxUtils.bind(this, function (sender, evt) { + update(); + }); + + this.graph.getSelectionModel().addListener(mxEvent.CHANGE, this.selectionHandler); + + this.changeHandler = mxUtils.bind(this, function (sender, evt) { + this.updateLinkHint(this.graph.getLinkForCell(this.state.cell), + this.graph.getLinksForState(this.state)); + update(); + }); + + this.graph.getModel().addListener(mxEvent.CHANGE, this.changeHandler); + + // Repaint needed when editing stops and no change event is fired + this.editingHandler = mxUtils.bind(this, function (sender, evt) { + this.redrawHandles(); + }); + + this.graph.addListener(mxEvent.EDITING_STOPPED, this.editingHandler); + + var link = this.graph.getLinkForCell(this.state.cell); + var links = this.graph.getLinksForState(this.state); + this.updateLinkHint(link, links); + + if (link != null || (links != null && links.length > 0)) { + redraw = true; + } + + if (redraw) { + this.redrawHandles(); + } + }; + + mxVertexHandler.prototype.updateLinkHint = function (link, links) { + if ((link == null && (links == null || links.length == 0)) || + this.graph.getSelectionCount() > 1) { + if (this.linkHint != null) { + this.linkHint.parentNode.removeChild(this.linkHint); + this.linkHint = null; + } + } + else if (link != null || (links != null && links.length > 0)) { + if (this.linkHint == null) { + this.linkHint = createHint(); + this.linkHint.style.padding = '6px 8px 6px 8px'; + this.linkHint.style.opacity = '1'; + this.linkHint.style.filter = ''; + + this.graph.container.appendChild(this.linkHint); + } + + this.linkHint.innerHTML = ''; + + if (link != null) { + this.linkHint.appendChild(this.graph.createLinkForHint(link)); + + if (this.graph.isEnabled() && typeof this.graph.editLink === 'function') { + var changeLink = document.createElement('img'); + changeLink.setAttribute('src', Editor.editImage); + changeLink.setAttribute('title', mxResources.get('editLink')); + changeLink.setAttribute('width', '11'); + changeLink.setAttribute('height', '11'); + changeLink.style.marginLeft = '10px'; + changeLink.style.marginBottom = '-1px'; + changeLink.style.cursor = 'pointer'; + this.linkHint.appendChild(changeLink); + + mxEvent.addListener(changeLink, 'click', mxUtils.bind(this, function (evt) { + this.graph.setSelectionCell(this.state.cell); + this.graph.editLink(); + mxEvent.consume(evt); + })); + + var removeLink = document.createElement('img'); + removeLink.setAttribute('src', Dialog.prototype.clearImage); + removeLink.setAttribute('title', mxResources.get('removeIt', [mxResources.get('link')])); + removeLink.setAttribute('width', '13'); + removeLink.setAttribute('height', '10'); + removeLink.style.marginLeft = '4px'; + removeLink.style.marginBottom = '-1px'; + removeLink.style.cursor = 'pointer'; + this.linkHint.appendChild(removeLink); + + mxEvent.addListener(removeLink, 'click', mxUtils.bind(this, function (evt) { + this.graph.setLinkForCell(this.state.cell, null); + mxEvent.consume(evt); + })); + } + } + + if (links != null) { + for (var i = 0; i < links.length; i++) { + var div = document.createElement('div'); + div.style.marginTop = (link != null || i > 0) ? '6px' : '0px'; + div.appendChild(this.graph.createLinkForHint( + links[i].getAttribute('href'), + mxUtils.getTextContent(links[i]))); + + this.linkHint.appendChild(div); + } + } + } + }; + + mxEdgeHandler.prototype.updateLinkHint = mxVertexHandler.prototype.updateLinkHint; + + var edgeHandlerInit = mxEdgeHandler.prototype.init; + mxEdgeHandler.prototype.init = function () { + edgeHandlerInit.apply(this, arguments); + + // Disables connection points + this.constraintHandler.isEnabled = mxUtils.bind(this, function () { + return this.state.view.graph.connectionHandler.isEnabled(); + }); + + var update = mxUtils.bind(this, function () { + if (this.linkHint != null) { + this.linkHint.style.display = (this.graph.getSelectionCount() == 1) ? '' : 'none'; + } + + if (this.labelShape != null) { + this.labelShape.node.style.display = (this.graph.isEnabled() && this.graph.getSelectionCount() < this.graph.graphHandler.maxCells) ? '' : 'none'; + } + }); + + this.selectionHandler = mxUtils.bind(this, function (sender, evt) { + update(); + }); + + this.graph.getSelectionModel().addListener(mxEvent.CHANGE, this.selectionHandler); + + this.changeHandler = mxUtils.bind(this, function (sender, evt) { + this.updateLinkHint(this.graph.getLinkForCell(this.state.cell), + this.graph.getLinksForState(this.state)); + update(); + this.redrawHandles(); + }); + + this.graph.getModel().addListener(mxEvent.CHANGE, this.changeHandler); + + var link = this.graph.getLinkForCell(this.state.cell); + var links = this.graph.getLinksForState(this.state); + + if (link != null || (links != null && links.length > 0)) { + this.updateLinkHint(link, links); + this.redrawHandles(); + } + }; + + // Disables connection points + var connectionHandlerInit = mxConnectionHandler.prototype.init; + + mxConnectionHandler.prototype.init = function () { + connectionHandlerInit.apply(this, arguments); + + this.constraintHandler.isEnabled = mxUtils.bind(this, function () { + return this.graph.connectionHandler.isEnabled(); + }); + }; + + var vertexHandlerRedrawHandles = mxVertexHandler.prototype.redrawHandles; + mxVertexHandler.prototype.redrawHandles = function () { + vertexHandlerRedrawHandles.apply(this); + + if (this.state != null && this.linkHint != null) { + var c = new mxPoint(this.state.getCenterX(), this.state.getCenterY()); + var tmp = new mxRectangle(this.state.x, this.state.y - 22, this.state.width + 24, this.state.height + 22); + var bb = mxUtils.getBoundingBox(tmp, this.state.style[mxConstants.STYLE_ROTATION] || '0', c); + var rs = (bb != null) ? mxUtils.getBoundingBox(this.state, + this.state.style[mxConstants.STYLE_ROTATION] || '0') : this.state; + var tb = (this.state.text != null) ? this.state.text.boundingBox : null; + + if (bb == null) { + bb = this.state; + } + + var b = bb.y + bb.height; + + if (tb != null) { + b = Math.max(b, tb.y + tb.height); + } + + this.linkHint.style.left = Math.max(0, Math.round(rs.x + (rs.width - this.linkHint.clientWidth) / 2)) + 'px'; + this.linkHint.style.top = Math.round(b + this.verticalOffset / 2 + 6 + + this.state.view.graph.tolerance) + 'px'; + } + }; + + + var vertexHandlerReset = mxVertexHandler.prototype.reset; + mxVertexHandler.prototype.reset = function () { + vertexHandlerReset.apply(this, arguments); + + // Shows rotation handle only if one vertex is selected + if (this.rotationShape != null && this.rotationShape.node != null) { + this.rotationShape.node.style.display = (this.graph.getSelectionCount() == 1) ? '' : 'none'; + } + }; + + var vertexHandlerDestroy = mxVertexHandler.prototype.destroy; + mxVertexHandler.prototype.destroy = function () { + vertexHandlerDestroy.apply(this, arguments); + + if (this.linkHint != null) { + this.linkHint.parentNode.removeChild(this.linkHint); + this.linkHint = null; + } + + if (this.selectionHandler != null) { + this.graph.getSelectionModel().removeListener(this.selectionHandler); + this.selectionHandler = null; + } + + if (this.changeHandler != null) { + this.graph.getModel().removeListener(this.changeHandler); + this.changeHandler = null; + } + + if (this.editingHandler != null) { + this.graph.removeListener(this.editingHandler); + this.editingHandler = null; + } + }; + + var edgeHandlerRedrawHandles = mxEdgeHandler.prototype.redrawHandles; + mxEdgeHandler.prototype.redrawHandles = function () { + // Workaround for special case where handler + // is reset before this which leads to a NPE + if (this.marker != null) { + edgeHandlerRedrawHandles.apply(this); + + if (this.state != null && this.linkHint != null) { + var b = this.state; + + if (this.state.text != null && this.state.text.bounds != null) { + b = new mxRectangle(b.x, b.y, b.width, b.height); + b.add(this.state.text.bounds); + } + + this.linkHint.style.left = Math.max(0, Math.round(b.x + (b.width - this.linkHint.clientWidth) / 2)) + 'px'; + this.linkHint.style.top = Math.round(b.y + b.height + 6 + this.state.view.graph.tolerance) + 'px'; + } + } + }; + + var edgeHandlerReset = mxEdgeHandler.prototype.reset; + mxEdgeHandler.prototype.reset = function () { + edgeHandlerReset.apply(this, arguments); + + if (this.linkHint != null) { + this.linkHint.style.visibility = ''; + } + }; + + var edgeHandlerDestroy = mxEdgeHandler.prototype.destroy; + mxEdgeHandler.prototype.destroy = function () { + edgeHandlerDestroy.apply(this, arguments); + + if (this.linkHint != null) { + this.linkHint.parentNode.removeChild(this.linkHint); + this.linkHint = null; + } + + if (this.selectionHandler != null) { + this.graph.getSelectionModel().removeListener(this.selectionHandler); + this.selectionHandler = null; + } + + if (this.changeHandler != null) { + this.graph.getModel().removeListener(this.changeHandler); + this.changeHandler = null; + } + }; + })(); + } + return Graph; +} \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/src/Graph_over.js b/data/plugins/grafana-flowcharting/src/Graph_over.js new file mode 100644 index 0000000000000..c0fb7ad98494b --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/Graph_over.js @@ -0,0 +1,168 @@ +mxTooltipHandler.prototype.show = function(tip, x, y) { + // u.log(1, 'mxTooltipHandler.prototype.show()'); + + // TYPE STRING + if ( this.destroyed) return; + if (tip == null) return; + if ( tip.length == 0) return; + // Initializes the DOM nodes if required + if (this.div == null) { + this.init(); + } + if (!mxUtils.isNode(tip)) { + this.div.innerHTML = tip.replace(/\n/g, '
'); + } else { + this.div.innerHTML = ''; + this.div.appendChild(tip); + } + this.$div.place_tt(x + 20, y); + this.div.style.visibility = ''; + mxUtils.fit(this.div); +}; + +mxTooltipHandler.prototype.init = function() { + // u.log(1, 'mxTooltipHandler.prototype.init()'); + if (this.div === null || this.div === undefined) { + this.$div = $('
'); + this.div = this.$div[0]; + mxEvent.addGestureListeners( + this.div, + mxUtils.bind(this, function(evt) { + this.hideTooltip(); + }) + ); + } +}; + +mxTooltipHandler.prototype.hideTooltip = function() { + if (this.div != null) { + this.div.style.visibility = 'hidden'; + this.div.innerHTML = ''; + } +}; + +mxEvent.addMouseWheelListener = function(func, container) { + if (null != func) { + var c = function(container) { + null == container && (container = window.event); + var c; + c = mxClient.IS_FF ? -container.detail / 2 : container.wheelDelta / 120; + 0 != c && func(container, 0 < c); + }; + mxClient.IS_NS && null == document.documentMode + ? mxEvent.addListener( + mxClient.IS_GC && null != container ? container : window, + mxClient.IS_SF || mxClient.IS_GC ? 'mousewheel' : 'DOMMouseScroll', + c + ) + : mxEvent.addListener(document, 'mousewheel', c); + } +}; + +mxStencilRegistry.libraries.mockup = [SHAPES_PATH + '/mockup/mxMockupButtons.js']; +mxStencilRegistry.libraries.arrows2 = [SHAPES_PATH + '/mxArrows.js']; +mxStencilRegistry.libraries.atlassian = [ + STENCIL_PATH + '/atlassian.xml', + SHAPES_PATH + '/mxAtlassian.js' +]; +mxStencilRegistry.libraries.bpmn = [ + SHAPES_PATH + '/bpmn/mxBpmnShape2.js', + STENCIL_PATH + '/bpmn.xml' +]; +mxStencilRegistry.libraries.dfd = [SHAPES_PATH + '/mxDFD.js']; +mxStencilRegistry.libraries.er = [SHAPES_PATH + '/er/mxER.js']; +mxStencilRegistry.libraries.flowchart = [ + SHAPES_PATH + '/mxFlowchart.js', + STENCIL_PATH + '/flowchart.xml' +]; +mxStencilRegistry.libraries.ios = [SHAPES_PATH + '/mockup/mxMockupiOS.js']; +mxStencilRegistry.libraries.rackGeneral = [ + SHAPES_PATH + '/rack/mxRack.js', + STENCIL_PATH + '/rack/general.xml' +]; +mxStencilRegistry.libraries.rackF5 = [STENCIL_PATH + '/rack/f5.xml']; +mxStencilRegistry.libraries.lean_mapping = [ + SHAPES_PATH + '/mxLeanMap.js', + STENCIL_PATH + '/lean_mapping.xml' +]; +mxStencilRegistry.libraries.basic = [SHAPES_PATH + '/mxBasic.js', STENCIL_PATH + '/basic.xml']; +mxStencilRegistry.libraries.ios7icons = [STENCIL_PATH + '/ios7/icons.xml']; +mxStencilRegistry.libraries.ios7ui = [ + SHAPES_PATH + '/ios7/mxIOS7Ui.js', + STENCIL_PATH + '/ios7/misc.xml' +]; +mxStencilRegistry.libraries.android = [ + SHAPES_PATH + '/mxAndroid.js', + STENCIL_PATH + '/android/android.xml' +]; +mxStencilRegistry.libraries['electrical/miscellaneous'] = [ + SHAPES_PATH + '/mxElectrical.js', + STENCIL_PATH + '/electrical/miscellaneous.xml' +]; +mxStencilRegistry.libraries['electrical/transmission'] = [ + SHAPES_PATH + '/mxElectrical.js', + STENCIL_PATH + '/electrical/transmission.xml' +]; +mxStencilRegistry.libraries['electrical/logic_gates'] = [ + SHAPES_PATH + '/mxElectrical.js', + STENCIL_PATH + '/electrical/logic_gates.xml' +]; +mxStencilRegistry.libraries['electrical/abstract'] = [ + SHAPES_PATH + '/mxElectrical.js', + STENCIL_PATH + '/electrical/abstract.xml' +]; +mxStencilRegistry.libraries.infographic = [SHAPES_PATH + '/mxInfographic.js']; +mxStencilRegistry.libraries['mockup/buttons'] = [SHAPES_PATH + '/mockup/mxMockupButtons.js']; +mxStencilRegistry.libraries['mockup/containers'] = [SHAPES_PATH + '/mockup/mxMockupContainers.js']; +mxStencilRegistry.libraries['mockup/forms'] = [SHAPES_PATH + '/mockup/mxMockupForms.js']; +mxStencilRegistry.libraries['mockup/graphics'] = [ + SHAPES_PATH + '/mockup/mxMockupGraphics.js', + STENCIL_PATH + '/mockup/misc.xml' +]; +mxStencilRegistry.libraries['mockup/markup'] = [SHAPES_PATH + '/mockup/mxMockupMarkup.js']; +mxStencilRegistry.libraries['mockup/misc'] = [ + SHAPES_PATH + '/mockup/mxMockupMisc.js', + STENCIL_PATH + '/mockup/misc.xml' +]; +mxStencilRegistry.libraries['mockup/navigation'] = [ + SHAPES_PATH + '/mockup/mxMockupNavigation.js', + STENCIL_PATH + '/mockup/misc.xml' +]; +mxStencilRegistry.libraries['mockup/text'] = [SHAPES_PATH + '/mockup/mxMockupText.js']; +mxStencilRegistry.libraries.floorplan = [ + SHAPES_PATH + '/mxFloorplan.js', + STENCIL_PATH + '/floorplan.xml' +]; +mxStencilRegistry.libraries.bootstrap = [ + SHAPES_PATH + '/mxBootstrap.js', + STENCIL_PATH + '/bootstrap.xml' +]; +mxStencilRegistry.libraries.gmdl = [SHAPES_PATH + '/mxGmdl.js', STENCIL_PATH + '/gmdl.xml']; +mxStencilRegistry.libraries.gcp2 = [SHAPES_PATH + '/mxGCP2.js', STENCIL_PATH + '/gcp2.xml']; +mxStencilRegistry.libraries.cabinets = [ + SHAPES_PATH + '/mxCabinets.js', + STENCIL_PATH + '/cabinets.xml' +]; +mxStencilRegistry.libraries.archimate = [SHAPES_PATH + '/mxArchiMate.js']; +mxStencilRegistry.libraries.archimate3 = [SHAPES_PATH + '/mxArchiMate3.js']; +mxStencilRegistry.libraries.sysml = [SHAPES_PATH + '/mxSysML.js']; +mxStencilRegistry.libraries.eip = [SHAPES_PATH + '/mxEip.js', STENCIL_PATH + '/eip.xml']; +mxStencilRegistry.libraries.networks = [ + SHAPES_PATH + '/mxNetworks.js', + STENCIL_PATH + '/networks.xml' +]; +mxStencilRegistry.libraries.aws3d = [SHAPES_PATH + '/mxAWS3D.js', STENCIL_PATH + '/aws3d.xml']; +mxStencilRegistry.libraries.aws4 = [SHAPES_PATH + '/mxAWS4.js', STENCIL_PATH + '/aws4.xml']; +mxStencilRegistry.libraries.aws4b = [SHAPES_PATH + '/mxAWS4.js', STENCIL_PATH + '/aws4.xml']; +mxStencilRegistry.libraries.veeam = [ + STENCIL_PATH + '/veeam/2d.xml', + STENCIL_PATH + '/veeam/3d.xml', + STENCIL_PATH + '/veeam/veeam.xml' +]; +mxStencilRegistry.libraries.pid2inst = [SHAPES_PATH + '/pid2/mxPidInstruments.js']; +mxStencilRegistry.libraries.pid2misc = [ + SHAPES_PATH + '/pid2/mxPidMisc.js', + STENCIL_PATH + '/pid/misc.xml' +]; +mxStencilRegistry.libraries.pid2valves = [SHAPES_PATH + '/pid2/mxPidValves.js']; +mxStencilRegistry.libraries.pidFlowSensors = [STENCIL_PATH + '/pid/flow_sensors.xml']; diff --git a/data/plugins/grafana-flowcharting/src/Init.js b/data/plugins/grafana-flowcharting/src/Init.js new file mode 100644 index 0000000000000..32ab10b9acf6f --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/Init.js @@ -0,0 +1,29 @@ +// urlParams is null when used for embedding +window.urlParams = window.urlParams || {}; + +// Public global variables +window.MAX_REQUEST_SIZE = window.MAX_REQUEST_SIZE || 10485760; +window.MAX_AREA = window.MAX_AREA || 15000 * 15000; + +// URLs for save and export +window.EXPORT_URL = window.EXPORT_URL || '/export'; +window.SAVE_URL = window.SAVE_URL || '/save'; +window.OPEN_URL = window.OPEN_URL || '/open'; +window.RESOURCES_PATH = window.RESOURCES_PATH || 'resources'; +window.RESOURCE_BASE = window.RESOURCE_BASE || window.RESOURCES_PATH + '/grapheditor'; +window.STENCIL_PATH = window.STENCIL_PATH || 'stencils'; +window.IMAGE_PATH = window.IMAGE_PATH || 'images'; +window.STYLE_PATH = window.STYLE_PATH || 'styles'; +window.CSS_PATH = window.CSS_PATH || 'styles'; +window.OPEN_FORM = window.OPEN_FORM || 'open.html'; + +// Sets the base path, the UI language via URL param and configures the +// supported languages to avoid 404s. The loading of all core language +// resources is disabled as all required resources are in grapheditor. +// properties. Note that in this example the loading of two resource +// files (the special bundle and the default bundle) is disabled to +// save a GET request. This requires that all resources be present in +// each properties file since only one file is loaded. +window.mxBasePath = window.mxBasePath || '../../../src'; +window.mxLanguage = window.mxLanguage || urlParams['lang']; +window.mxLanguages = window.mxLanguages || ['de']; diff --git a/data/plugins/grafana-flowcharting/src/Shapes.js b/data/plugins/grafana-flowcharting/src/Shapes.js new file mode 100644 index 0000000000000..5217ffb9a2659 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/Shapes.js @@ -0,0 +1,3965 @@ +/** + * Copyright (c) 2006-2015, JGraph Ltd + */ + +/** + * Registers shapes. + */ +(function() +{ + // Cube Shape, supports size style + function CubeShape() + { + mxCylinder.call(this); + }; + mxUtils.extend(CubeShape, mxCylinder); + CubeShape.prototype.size = 20; + CubeShape.prototype.redrawPath = function(path, x, y, w, h, isForeground) + { + var s = Math.max(0, Math.min(w, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size))))); + + if (isForeground) + { + path.moveTo(s, h); + path.lineTo(s, s); + path.lineTo(0, 0); + path.moveTo(s, s); + path.lineTo(w, s); + path.end(); + } + else + { + path.moveTo(0, 0); + path.lineTo(w - s, 0); + path.lineTo(w, s); + path.lineTo(w, h); + path.lineTo(s, h); + path.lineTo(0, h - s); + path.lineTo(0, 0); + path.close(); + path.end(); + } + }; + CubeShape.prototype.getLabelMargins = function(rect) + { + if (mxUtils.getValue(this.style, 'boundedLbl', false)) + { + var s = parseFloat(mxUtils.getValue(this.style, 'size', this.size)) * this.scale; + + return new mxRectangle(s, s, 0, 0); + } + + return null; + }; + + mxCellRenderer.registerShape('cube', CubeShape); + + var tan30 = Math.tan(mxUtils.toRadians(30)); + var tan30Dx = (0.5 - tan30) / 2; + + // Cube Shape, supports size style + function IsoRectangleShape() + { + mxActor.call(this); + }; + mxUtils.extend(IsoRectangleShape, mxActor); + IsoRectangleShape.prototype.size = 20; + IsoRectangleShape.prototype.redrawPath = function(path, x, y, w, h) + { + var m = Math.min(w, h / tan30); + + path.translate((w - m) / 2, (h - m) / 2 + m / 4); + path.moveTo(0, 0.25 * m); + path.lineTo(0.5 * m, m * tan30Dx); + path.lineTo(m, 0.25 * m); + path.lineTo(0.5 * m, (0.5 - tan30Dx) * m); + path.lineTo(0, 0.25 * m); + path.close(); + path.end(); + }; + + mxCellRenderer.registerShape('isoRectangle', IsoRectangleShape); + + // Cube Shape, supports size style + function IsoCubeShape() + { + mxCylinder.call(this); + }; + mxUtils.extend(IsoCubeShape, mxCylinder); + IsoCubeShape.prototype.size = 20; + IsoCubeShape.prototype.redrawPath = function(path, x, y, w, h, isForeground) + { + var m = Math.min(w, h / (0.5 + tan30)); + + if (isForeground) + { + path.moveTo(0, 0.25 * m); + path.lineTo(0.5 * m, (0.5 - tan30Dx) * m); + path.lineTo(m, 0.25 * m); + path.moveTo(0.5 * m, (0.5 - tan30Dx) * m); + path.lineTo(0.5 * m, (1 - tan30Dx) * m); + path.end(); + } + else + { + path.translate((w - m) / 2, (h - m) / 2); + path.moveTo(0, 0.25 * m); + path.lineTo(0.5 * m, m * tan30Dx); + path.lineTo(m, 0.25 * m); + path.lineTo(m, 0.75 * m); + path.lineTo(0.5 * m, (1 - tan30Dx) * m); + path.lineTo(0, 0.75 * m); + path.close(); + path.end(); + } + }; + + mxCellRenderer.registerShape('isoCube', IsoCubeShape); + + // DataStore Shape, supports size style + function DataStoreShape() + { + mxCylinder.call(this); + }; + mxUtils.extend(DataStoreShape, mxCylinder); + + DataStoreShape.prototype.redrawPath = function(c, x, y, w, h, isForeground) + { + var dy = Math.min(h / 2, Math.round(h / 8) + this.strokewidth - 1); + + if ((isForeground && this.fill != null) || (!isForeground && this.fill == null)) + { + c.moveTo(0, dy); + c.curveTo(0, 2 * dy, w, 2 * dy, w, dy); + + // Needs separate shapes for correct hit-detection + if (!isForeground) + { + c.stroke(); + c.begin(); + } + + c.translate(0, dy / 2); + c.moveTo(0, dy); + c.curveTo(0, 2 * dy, w, 2 * dy, w, dy); + + // Needs separate shapes for correct hit-detection + if (!isForeground) + { + c.stroke(); + c.begin(); + } + + c.translate(0, dy / 2); + c.moveTo(0, dy); + c.curveTo(0, 2 * dy, w, 2 * dy, w, dy); + + // Needs separate shapes for correct hit-detection + if (!isForeground) + { + c.stroke(); + c.begin(); + } + + c.translate(0, -dy); + } + + if (!isForeground) + { + c.moveTo(0, dy); + c.curveTo(0, -dy / 3, w, -dy / 3, w, dy); + c.lineTo(w, h - dy); + c.curveTo(w, h + dy / 3, 0, h + dy / 3, 0, h - dy); + c.close(); + } + }; + DataStoreShape.prototype.getLabelMargins = function(rect) + { + return new mxRectangle(0, 2.5 * Math.min(rect.height / 2, Math.round(rect.height / 8) + + this.strokewidth - 1) * this.scale, 0, 0); + } + + mxCellRenderer.registerShape('datastore', DataStoreShape); + + // Note Shape, supports size style + function NoteShape() + { + mxCylinder.call(this); + }; + mxUtils.extend(NoteShape, mxCylinder); + NoteShape.prototype.size = 30; + NoteShape.prototype.redrawPath = function(path, x, y, w, h, isForeground) + { + var s = Math.max(0, Math.min(w, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size))))); + + if (isForeground) + { + path.moveTo(w - s, 0); + path.lineTo(w - s, s); + path.lineTo(w, s); + path.end(); + } + else + { + path.moveTo(0, 0); + path.lineTo(w - s, 0); + path.lineTo(w, s); + path.lineTo(w, h); + path.lineTo(0, h); + path.lineTo(0, 0); + path.close(); + path.end(); + } + }; + + mxCellRenderer.registerShape('note', NoteShape); + + // Note Shape, supports size style + function SwitchShape() + { + mxActor.call(this); + }; + mxUtils.extend(SwitchShape, mxActor); + SwitchShape.prototype.redrawPath = function(c, x, y, w, h) + { + var curve = 0.5; + c.moveTo(0, 0); + c.quadTo(w / 2, h * curve, w, 0); + c.quadTo(w * (1 - curve), h / 2, w, h); + c.quadTo(w / 2, h * (1 - curve), 0, h); + c.quadTo(w * curve, h / 2, 0, 0); + c.end(); + }; + + mxCellRenderer.registerShape('switch', SwitchShape); + + // Folder Shape, supports tabWidth, tabHeight styles + function FolderShape() + { + mxCylinder.call(this); + }; + mxUtils.extend(FolderShape, mxCylinder); + FolderShape.prototype.tabWidth = 60; + FolderShape.prototype.tabHeight = 20; + FolderShape.prototype.tabPosition = 'right'; + FolderShape.prototype.redrawPath = function(path, x, y, w, h, isForeground) + { + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'tabWidth', this.tabWidth)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'tabHeight', this.tabHeight)))); + var tp = mxUtils.getValue(this.style, 'tabPosition', this.tabPosition); + + if (isForeground) + { + if (tp == 'left') + { + path.moveTo(0, dy); + path.lineTo(dx, dy); + } + // Right is default + else + { + path.moveTo(w - dx, dy); + path.lineTo(w, dy); + } + + path.end(); + } + else + { + if (tp == 'left') + { + path.moveTo(0, 0); + path.lineTo(dx, 0); + path.lineTo(dx, dy); + path.lineTo(w, dy); + } + // Right is default + else + { + path.moveTo(0, dy); + path.lineTo(w - dx, dy); + path.lineTo(w - dx, 0); + path.lineTo(w, 0); + } + + path.lineTo(w, h); + path.lineTo(0, h); + path.lineTo(0, dy); + path.close(); + path.end(); + } + }; + + mxCellRenderer.registerShape('folder', FolderShape); + + // Card shape + function CardShape() + { + mxActor.call(this); + }; + mxUtils.extend(CardShape, mxActor); + CardShape.prototype.size = 30; + CardShape.prototype.isRoundable = function() + { + return true; + }; + CardShape.prototype.redrawPath = function(c, x, y, w, h) + { + var s = Math.max(0, Math.min(w, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size))))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(s, 0), new mxPoint(w, 0), new mxPoint(w, h), new mxPoint(0, h), new mxPoint(0, s)], + this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('card', CardShape); + + // Tape shape + function TapeShape() + { + mxActor.call(this); + }; + mxUtils.extend(TapeShape, mxActor); + TapeShape.prototype.size = 0.4; + TapeShape.prototype.redrawPath = function(c, x, y, w, h) + { + var dy = h * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var fy = 1.4; + + c.moveTo(0, dy / 2); + c.quadTo(w / 4, dy * fy, w / 2, dy / 2); + c.quadTo(w * 3 / 4, dy * (1 - fy), w, dy / 2); + c.lineTo(w, h - dy / 2); + c.quadTo(w * 3 / 4, h - dy * fy, w / 2, h - dy / 2); + c.quadTo(w / 4, h - dy * (1 - fy), 0, h - dy / 2); + c.lineTo(0, dy / 2); + c.close(); + c.end(); + }; + + TapeShape.prototype.getLabelBounds = function(rect) + { + if (mxUtils.getValue(this.style, 'boundedLbl', false)) + { + var size = mxUtils.getValue(this.style, 'size', this.size); + var w = rect.width; + var h = rect.height; + + if (this.direction == null || + this.direction == mxConstants.DIRECTION_EAST || + this.direction == mxConstants.DIRECTION_WEST) + { + var dy = h * size; + + return new mxRectangle(rect.x, rect.y + dy, w, h - 2 * dy); + } + else + { + var dx = w * size; + + return new mxRectangle(rect.x + dx, rect.y, w - 2 * dx, h); + } + } + + return rect; + }; + + mxCellRenderer.registerShape('tape', TapeShape); + + // Document shape + function DocumentShape() + { + mxActor.call(this); + }; + mxUtils.extend(DocumentShape, mxActor); + DocumentShape.prototype.size = 0.3; + DocumentShape.prototype.getLabelMargins = function(rect) + { + if (mxUtils.getValue(this.style, 'boundedLbl', false)) + { + return new mxRectangle(0, 0, 0, parseFloat(mxUtils.getValue( + this.style, 'size', this.size)) * rect.height); + } + + return null; + }; + DocumentShape.prototype.redrawPath = function(c, x, y, w, h) + { + var dy = h * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var fy = 1.4; + + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h - dy / 2); + c.quadTo(w * 3 / 4, h - dy * fy, w / 2, h - dy / 2); + c.quadTo(w / 4, h - dy * (1 - fy), 0, h - dy / 2); + c.lineTo(0, dy / 2); + c.close(); + c.end(); + }; + + mxCellRenderer.registerShape('document', DocumentShape); + + var cylinderGetCylinderSize = mxCylinder.prototype.getCylinderSize; + + mxCylinder.prototype.getCylinderSize = function(x, y, w, h) + { + var size = mxUtils.getValue(this.style, 'size'); + + if (size != null) + { + return h * Math.max(0, Math.min(1, size)); + } + else + { + return cylinderGetCylinderSize.apply(this, arguments); + } + }; + + mxCylinder.prototype.getLabelMargins = function(rect) + { + if (mxUtils.getValue(this.style, 'boundedLbl', false)) + { + var size = mxUtils.getValue(this.style, 'size', 0.15) * 2; + + return new mxRectangle(0, Math.min(this.maxHeight * this.scale, rect.height * size), 0, 0); + } + + return null; + }; + + // Parallelogram shape + function ParallelogramShape() + { + mxActor.call(this); + }; + mxUtils.extend(ParallelogramShape, mxActor); + ParallelogramShape.prototype.size = 0.2; + ParallelogramShape.prototype.isRoundable = function() + { + return true; + }; + ParallelogramShape.prototype.redrawPath = function(c, x, y, w, h) + { + var dx = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, h), new mxPoint(dx, 0), new mxPoint(w, 0), new mxPoint(w - dx, h)], + this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('parallelogram', ParallelogramShape); + + // Trapezoid shape + function TrapezoidShape() + { + mxActor.call(this); + }; + mxUtils.extend(TrapezoidShape, mxActor); + TrapezoidShape.prototype.size = 0.2; + TrapezoidShape.prototype.isRoundable = function() + { + return true; + }; + TrapezoidShape.prototype.redrawPath = function(c, x, y, w, h) + { + var dx = w * Math.max(0, Math.min(0.5, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, h), new mxPoint(dx, 0), new mxPoint(w - dx, 0), new mxPoint(w, h)], + this.isRounded, arcSize, true); + }; + + mxCellRenderer.registerShape('trapezoid', TrapezoidShape); + + // Curly Bracket shape + function CurlyBracketShape() + { + mxActor.call(this); + }; + mxUtils.extend(CurlyBracketShape, mxActor); + CurlyBracketShape.prototype.size = 0.5; + CurlyBracketShape.prototype.redrawPath = function(c, x, y, w, h) + { + c.setFillColor(null); + var s = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(w, 0), new mxPoint(s, 0), new mxPoint(s, h / 2), + new mxPoint(0, h / 2), new mxPoint(s, h / 2), new mxPoint(s, h), + new mxPoint(w, h)], this.isRounded, arcSize, false); + c.end(); + }; + + mxCellRenderer.registerShape('curlyBracket', CurlyBracketShape); + + // Parallel marker shape + function ParallelMarkerShape() + { + mxActor.call(this); + }; + mxUtils.extend(ParallelMarkerShape, mxActor); + ParallelMarkerShape.prototype.redrawPath = function(c, x, y, w, h) + { + c.setStrokeWidth(1); + c.setFillColor(this.stroke); + var w2 = w / 5; + c.rect(0, 0, w2, h); + c.fillAndStroke(); + c.rect(2 * w2, 0, w2, h); + c.fillAndStroke(); + c.rect(4 * w2, 0, w2, h); + c.fillAndStroke(); + }; + + mxCellRenderer.registerShape('parallelMarker', ParallelMarkerShape); + + /** + * Adds handJiggle style (jiggle=n sets jiggle) + */ + function HandJiggle(canvas, defaultVariation) + { + this.canvas = canvas; + + // Avoids "spikes" in the output + this.canvas.setLineJoin('round'); + this.canvas.setLineCap('round'); + + this.defaultVariation = defaultVariation; + + this.originalLineTo = this.canvas.lineTo; + this.canvas.lineTo = mxUtils.bind(this, HandJiggle.prototype.lineTo); + + this.originalMoveTo = this.canvas.moveTo; + this.canvas.moveTo = mxUtils.bind(this, HandJiggle.prototype.moveTo); + + this.originalClose = this.canvas.close; + this.canvas.close = mxUtils.bind(this, HandJiggle.prototype.close); + + this.originalQuadTo = this.canvas.quadTo; + this.canvas.quadTo = mxUtils.bind(this, HandJiggle.prototype.quadTo); + + this.originalCurveTo = this.canvas.curveTo; + this.canvas.curveTo = mxUtils.bind(this, HandJiggle.prototype.curveTo); + + this.originalArcTo = this.canvas.arcTo; + this.canvas.arcTo = mxUtils.bind(this, HandJiggle.prototype.arcTo); + }; + + HandJiggle.prototype.moveTo = function(endX, endY) + { + this.originalMoveTo.apply(this.canvas, arguments); + this.lastX = endX; + this.lastY = endY; + this.firstX = endX; + this.firstY = endY; + }; + + HandJiggle.prototype.close = function() + { + if (this.firstX != null && this.firstY != null) + { + this.lineTo(this.firstX, this.firstY); + this.originalClose.apply(this.canvas, arguments); + } + + this.originalClose.apply(this.canvas, arguments); + }; + + HandJiggle.prototype.quadTo = function(x1, y1, x2, y2) + { + this.originalQuadTo.apply(this.canvas, arguments); + this.lastX = x2; + this.lastY = y2; + }; + + HandJiggle.prototype.curveTo = function(x1, y1, x2, y2, x3, y3) + { + this.originalCurveTo.apply(this.canvas, arguments); + this.lastX = x3; + this.lastY = y3; + }; + + HandJiggle.prototype.arcTo = function(rx, ry, angle, largeArcFlag, sweepFlag, x, y) + { + this.originalArcTo.apply(this.canvas, arguments); + this.lastX = x; + this.lastY = y; + }; + + HandJiggle.prototype.lineTo = function(endX, endY) + { + // LATER: Check why this.canvas.lastX cannot be used + if (this.lastX != null && this.lastY != null) + { + var dx = Math.abs(endX - this.lastX); + var dy = Math.abs(endY - this.lastY); + var dist = Math.sqrt(dx * dx + dy * dy); + + if (dist < 2) + { + this.originalLineTo.apply(this.canvas, arguments); + this.lastX = endX; + this.lastY = endY; + + return; + } + + var segs = Math.round(dist / 10); + var variation = this.defaultVariation; + + if (segs < 5) + { + segs = 5; + variation /= 3; + } + + function sign(x) + { + return typeof x === 'number' ? x ? x < 0 ? -1 : 1 : x === x ? 0 : NaN : NaN; + } + + var stepX = sign(endX - this.lastX) * dx / segs; + var stepY = sign(endY - this.lastY) * dy / segs; + + var fx = dx / dist; + var fy = dy / dist; + + for (var s = 0; s < segs; s++) + { + var x = stepX * s + this.lastX; + var y = stepY * s + this.lastY; + + var offset = (Math.random() - 0.5) * variation; + this.originalLineTo.call(this.canvas, x - offset * fy, y - offset * fx); + } + + this.originalLineTo.call(this.canvas, endX, endY); + this.lastX = endX; + this.lastY = endY; + } + else + { + this.originalLineTo.apply(this.canvas, arguments); + this.lastX = endX; + this.lastY = endY; + } + }; + + HandJiggle.prototype.destroy = function() + { + this.canvas.lineTo = this.originalLineTo; + this.canvas.moveTo = this.originalMoveTo; + this.canvas.close = this.originalClose; + this.canvas.quadTo = this.originalQuadTo; + this.canvas.curveTo = this.originalCurveTo; + this.canvas.arcTo = this.originalArcTo; + }; + + // Installs hand jiggle in all shapes + var mxShapePaint0 = mxShape.prototype.paint; + mxShape.prototype.defaultJiggle = 1.5; + mxShape.prototype.paint = function(c) + { + // NOTE: getValue does not return a boolean value so !('0') would return true here and below + if (this.style != null && mxUtils.getValue(this.style, 'comic', '0') != '0' && c.handHiggle == null) + { + c.handJiggle = new HandJiggle(c, mxUtils.getValue(this.style, 'jiggle', this.defaultJiggle)); + } + + mxShapePaint0.apply(this, arguments); + + if (c.handJiggle != null) + { + c.handJiggle.destroy(); + delete c.handJiggle; + } + }; + + // Sets default jiggle for diamond + mxRhombus.prototype.defaultJiggle = 2; + + /** + * Overrides to avoid call to rect + */ + var mxRectangleShapeIsHtmlAllowed0 = mxRectangleShape.prototype.isHtmlAllowed; + mxRectangleShape.prototype.isHtmlAllowed = function() + { + return (this.style == null || mxUtils.getValue(this.style, 'comic', '0') == '0') && + mxRectangleShapeIsHtmlAllowed0.apply(this, arguments); + }; + + var mxRectangleShapePaintBackground0 = mxRectangleShape.prototype.paintBackground; + mxRectangleShape.prototype.paintBackground = function(c, x, y, w, h) + { + if (c.handJiggle == null) + { + mxRectangleShapePaintBackground0.apply(this, arguments); + } + else + { + var events = true; + + if (this.style != null) + { + events = mxUtils.getValue(this.style, mxConstants.STYLE_POINTER_EVENTS, '1') == '1'; + } + + if (events || (this.fill != null && this.fill != mxConstants.NONE) || + (this.stroke != null && this.stroke != mxConstants.NONE)) + { + if (!events && (this.fill == null || this.fill == mxConstants.NONE)) + { + c.pointerEvents = false; + } + + c.begin(); + + if (this.isRounded) + { + var r = 0; + + if (mxUtils.getValue(this.style, mxConstants.STYLE_ABSOLUTE_ARCSIZE, 0) == '1') + { + r = Math.min(w / 2, Math.min(h / 2, mxUtils.getValue(this.style, + mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2)); + } + else + { + var f = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, + mxConstants.RECTANGLE_ROUNDING_FACTOR * 100) / 100; + r = Math.min(w * f, h * f); + } + + c.moveTo(x + r, y); + c.lineTo(x + w - r, y); + c.quadTo(x + w, y, x + w, y + r); + c.lineTo(x + w, y + h - r); + c.quadTo(x + w, y + h, x + w - r, y + h); + c.lineTo(x + r, y + h); + c.quadTo(x, y + h, x, y + h - r); + c.lineTo(x, y + r); + c.quadTo(x, y, x + r, y); + } + else + { + + c.moveTo(x, y); + c.lineTo(x + w, y); + c.lineTo(x + w, y + h); + c.lineTo(x, y + h); + c.lineTo(x, y); + } + + // LATER: Check if close is needed here + c.close(); + c.end(); + + c.fillAndStroke(); + } + } + }; + + /** + * Disables glass effect with hand jiggle. + */ + var mxRectangleShapePaintForeground0 = mxRectangleShape.prototype.paintForeground; + mxRectangleShape.prototype.paintForeground = function(c, x, y, w, h) + { + if (c.handJiggle == null) + { + mxRectangleShapePaintForeground0.apply(this, arguments); + } + }; + + // End of hand jiggle integration + + // Process Shape + function ProcessShape() + { + mxRectangleShape.call(this); + }; + mxUtils.extend(ProcessShape, mxRectangleShape); + ProcessShape.prototype.size = 0.1; + ProcessShape.prototype.isHtmlAllowed = function() + { + return false; + }; + ProcessShape.prototype.getLabelBounds = function(rect) + { + if (mxUtils.getValue(this.state.style, mxConstants.STYLE_HORIZONTAL, true) == + (this.direction == null || + this.direction == mxConstants.DIRECTION_EAST || + this.direction == mxConstants.DIRECTION_WEST)) + { + var w = rect.width; + var h = rect.height; + var r = new mxRectangle(rect.x, rect.y, w, h); + + var inset = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + + if (this.isRounded) + { + var f = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, + mxConstants.RECTANGLE_ROUNDING_FACTOR * 100) / 100; + inset = Math.max(inset, Math.min(w * f, h * f)); + } + + r.x += Math.round(inset); + r.width -= Math.round(2 * inset); + + return r; + } + + return rect; + }; + ProcessShape.prototype.paintForeground = function(c, x, y, w, h) + { + var inset = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + + if (this.isRounded) + { + var f = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, + mxConstants.RECTANGLE_ROUNDING_FACTOR * 100) / 100; + inset = Math.max(inset, Math.min(w * f, h * f)); + } + + // Crisp rendering of inner lines + inset = Math.round(inset); + + c.begin(); + c.moveTo(x + inset, y); + c.lineTo(x + inset, y + h); + c.moveTo(x + w - inset, y); + c.lineTo(x + w - inset, y + h); + c.end(); + c.stroke(); + mxRectangleShape.prototype.paintForeground.apply(this, arguments); + }; + + mxCellRenderer.registerShape('process', ProcessShape); + + // Transparent Shape + function TransparentShape() + { + mxRectangleShape.call(this); + }; + mxUtils.extend(TransparentShape, mxRectangleShape); + TransparentShape.prototype.paintBackground = function(c, x, y, w, h) + { + c.setFillColor(mxConstants.NONE); + c.rect(x, y, w, h); + c.fill(); + }; + TransparentShape.prototype.paintForeground = function(c, x, y, w, h) { }; + + mxCellRenderer.registerShape('transparent', TransparentShape); + + // Callout shape + function CalloutShape() + { + mxActor.call(this); + }; + mxUtils.extend(CalloutShape, mxHexagon); + CalloutShape.prototype.size = 30; + CalloutShape.prototype.position = 0.5; + CalloutShape.prototype.position2 = 0.5; + CalloutShape.prototype.base = 20; + CalloutShape.prototype.getLabelMargins = function() + { + return new mxRectangle(0, 0, 0, parseFloat(mxUtils.getValue( + this.style, 'size', this.size)) * this.scale); + }; + CalloutShape.prototype.isRoundable = function() + { + return true; + }; + CalloutShape.prototype.redrawPath = function(c, x, y, w, h) + { + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + var s = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var dx = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'position', this.position)))); + var dx2 = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'position2', this.position2)))); + var base = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'base', this.base)))); + + this.addPoints(c, [new mxPoint(0, 0), new mxPoint(w, 0), new mxPoint(w, h - s), + new mxPoint(Math.min(w, dx + base), h - s), new mxPoint(dx2, h), + new mxPoint(Math.max(0, dx), h - s), new mxPoint(0, h - s)], + this.isRounded, arcSize, true, [4]); + }; + + mxCellRenderer.registerShape('callout', CalloutShape); + + // Step shape + function StepShape() + { + mxActor.call(this); + }; + mxUtils.extend(StepShape, mxActor); + StepShape.prototype.size = 0.2; + StepShape.prototype.fixedSize = 20; + StepShape.prototype.isRoundable = function() + { + return true; + }; + StepShape.prototype.redrawPath = function(c, x, y, w, h) + { + var fixed = mxUtils.getValue(this.style, 'fixedSize', '0') != '0'; + var s = (fixed) ? Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'size', this.fixedSize)))) : + w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, 0), new mxPoint(w - s, 0), new mxPoint(w, h / 2), new mxPoint(w - s, h), + new mxPoint(0, h), new mxPoint(s, h / 2)], this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('step', StepShape); + + // Hexagon shape + function HexagonShape() + { + mxActor.call(this); + }; + mxUtils.extend(HexagonShape, mxHexagon); + HexagonShape.prototype.size = 0.25; + HexagonShape.prototype.isRoundable = function() + { + return true; + }; + HexagonShape.prototype.redrawPath = function(c, x, y, w, h) + { + var s = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(s, 0), new mxPoint(w - s, 0), new mxPoint(w, 0.5 * h), new mxPoint(w - s, h), + new mxPoint(s, h), new mxPoint(0, 0.5 * h)], this.isRounded, arcSize, true); + }; + + mxCellRenderer.registerShape('hexagon', HexagonShape); + + // Plus Shape + function PlusShape() + { + mxRectangleShape.call(this); + }; + mxUtils.extend(PlusShape, mxRectangleShape); + PlusShape.prototype.isHtmlAllowed = function() + { + return false; + }; + PlusShape.prototype.paintForeground = function(c, x, y, w, h) + { + var border = Math.min(w / 5, h / 5) + 1; + + c.begin(); + c.moveTo(x + w / 2, y + border); + c.lineTo(x + w / 2, y + h - border); + c.moveTo(x + border, y + h / 2); + c.lineTo(x + w - border, y + h / 2); + c.end(); + c.stroke(); + mxRectangleShape.prototype.paintForeground.apply(this, arguments); + }; + + mxCellRenderer.registerShape('plus', PlusShape); + + // Overrides painting of rhombus shape to allow for double style + var mxRhombusPaintVertexShape = mxRhombus.prototype.paintVertexShape; + mxRhombus.prototype.getLabelBounds = function(rect) + { + if (this.style['double'] == 1) + { + var margin = (Math.max(2, this.strokewidth + 1) * 2 + parseFloat( + this.style[mxConstants.STYLE_MARGIN] || 0)) * this.scale; + + return new mxRectangle(rect.x + margin, rect.y + margin, + rect.width - 2 * margin, rect.height - 2 * margin); + } + + return rect; + }; + mxRhombus.prototype.paintVertexShape = function(c, x, y, w, h) + { + mxRhombusPaintVertexShape.apply(this, arguments); + + if (!this.outline && this.style['double'] == 1) + { + var margin = Math.max(2, this.strokewidth + 1) * 2 + + parseFloat(this.style[mxConstants.STYLE_MARGIN] || 0); + x += margin; + y += margin; + w -= 2 * margin; + h -= 2 * margin; + + if (w > 0 && h > 0) + { + c.setShadow(false); + + // Workaround for closure compiler bug where the lines with x and y above + // are removed if arguments is used as second argument in call below. + mxRhombusPaintVertexShape.apply(this, [c, x, y, w, h]); + } + } + }; + + // CompositeShape + function ExtendedShape() + { + mxRectangleShape.call(this); + }; + mxUtils.extend(ExtendedShape, mxRectangleShape); + ExtendedShape.prototype.isHtmlAllowed = function() + { + return false; + }; + ExtendedShape.prototype.getLabelBounds = function(rect) + { + if (this.style['double'] == 1) + { + var margin = (Math.max(2, this.strokewidth + 1) + parseFloat( + this.style[mxConstants.STYLE_MARGIN] || 0)) * this.scale; + + return new mxRectangle(rect.x + margin, rect.y + margin, + rect.width - 2 * margin, rect.height - 2 * margin); + } + + return rect; + }; + + ExtendedShape.prototype.paintForeground = function(c, x, y, w, h) + { + if (this.style != null) + { + if (!this.outline && this.style['double'] == 1) + { + var margin = Math.max(2, this.strokewidth + 1) + parseFloat(this.style[mxConstants.STYLE_MARGIN] || 0); + x += margin; + y += margin; + w -= 2 * margin; + h -= 2 * margin; + + if (w > 0 && h > 0) + { + mxRectangleShape.prototype.paintBackground.apply(this, arguments); + } + } + + c.setDashed(false); + + // Draws the symbols defined in the style. The symbols are + // numbered from 1...n. Possible postfixes are align, + // verticalAlign, spacing, arcSpacing, width, height + var counter = 0; + var shape = null; + + do + { + shape = mxCellRenderer.defaultShapes[this.style['symbol' + counter]]; + + if (shape != null) + { + var align = this.style['symbol' + counter + 'Align']; + var valign = this.style['symbol' + counter + 'VerticalAlign']; + var width = this.style['symbol' + counter + 'Width']; + var height = this.style['symbol' + counter + 'Height']; + var spacing = this.style['symbol' + counter + 'Spacing'] || 0; + var vspacing = this.style['symbol' + counter + 'VSpacing'] || spacing; + var arcspacing = this.style['symbol' + counter + 'ArcSpacing']; + + if (arcspacing != null) + { + var arcSize = this.getArcSize(w + this.strokewidth, h + this.strokewidth) * arcspacing; + spacing += arcSize; + vspacing += arcSize; + } + + var x2 = x; + var y2 = y; + + if (align == mxConstants.ALIGN_CENTER) + { + x2 += (w - width) / 2; + } + else if (align == mxConstants.ALIGN_RIGHT) + { + x2 += w - width - spacing; + } + else + { + x2 += spacing; + } + + if (valign == mxConstants.ALIGN_MIDDLE) + { + y2 += (h - height) / 2; + } + else if (valign == mxConstants.ALIGN_BOTTOM) + { + y2 += h - height - vspacing; + } + else + { + y2 += vspacing; + } + + c.save(); + + // Small hack to pass style along into subshape + var tmp = new shape(); + // TODO: Clone style and override settings (eg. strokewidth) + tmp.style = this.style; + shape.prototype.paintVertexShape.call(tmp, c, x2, y2, width, height); + c.restore(); + } + + counter++; + } + while (shape != null); + } + + // Paints glass effect + mxRectangleShape.prototype.paintForeground.apply(this, arguments); + }; + + mxCellRenderer.registerShape('ext', ExtendedShape); + + // Tape Shape, supports size style + function MessageShape() + { + mxCylinder.call(this); + }; + mxUtils.extend(MessageShape, mxCylinder); + MessageShape.prototype.redrawPath = function(path, x, y, w, h, isForeground) + { + if (isForeground) + { + path.moveTo(0, 0); + path.lineTo(w / 2, h / 2); + path.lineTo(w, 0); + path.end(); + } + else + { + path.moveTo(0, 0); + path.lineTo(w, 0); + path.lineTo(w, h); + path.lineTo(0, h); + path.close(); + } + }; + + mxCellRenderer.registerShape('message', MessageShape); + + // UML Actor Shape + function UmlActorShape() + { + mxShape.call(this); + }; + mxUtils.extend(UmlActorShape, mxShape); + UmlActorShape.prototype.paintBackground = function(c, x, y, w, h) + { + c.translate(x, y); + + // Head + c.ellipse(w / 4, 0, w / 2, h / 4); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w / 2, h / 4); + c.lineTo(w / 2, 2 * h / 3); + + // Arms + c.moveTo(w / 2, h / 3); + c.lineTo(0, h / 3); + c.moveTo(w / 2, h / 3); + c.lineTo(w, h / 3); + + // Legs + c.moveTo(w / 2, 2 * h / 3); + c.lineTo(0, h); + c.moveTo(w / 2, 2 * h / 3); + c.lineTo(w, h); + c.end(); + + c.stroke(); + }; + + // Replaces existing actor shape + mxCellRenderer.registerShape('umlActor', UmlActorShape); + + // UML Boundary Shape + function UmlBoundaryShape() + { + mxShape.call(this); + }; + mxUtils.extend(UmlBoundaryShape, mxShape); + UmlBoundaryShape.prototype.getLabelMargins = function(rect) + { + return new mxRectangle(rect.width / 6, 0, 0, 0); + }; + UmlBoundaryShape.prototype.paintBackground = function(c, x, y, w, h) + { + c.translate(x, y); + + // Base line + c.begin(); + c.moveTo(0, h / 4); + c.lineTo(0, h * 3 / 4); + c.end(); + c.stroke(); + + // Horizontal line + c.begin(); + c.moveTo(0, h / 2); + c.lineTo(w / 6, h / 2); + c.end(); + c.stroke(); + + // Circle + c.ellipse(w / 6, 0, w * 5 / 6, h); + c.fillAndStroke(); + }; + + // Replaces existing actor shape + mxCellRenderer.registerShape('umlBoundary', UmlBoundaryShape); + + // UML Entity Shape + function UmlEntityShape() + { + mxEllipse.call(this); + }; + mxUtils.extend(UmlEntityShape, mxEllipse); + UmlEntityShape.prototype.paintVertexShape = function(c, x, y, w, h) + { + mxEllipse.prototype.paintVertexShape.apply(this, arguments); + + c.begin(); + c.moveTo(x + w / 8, y + h); + c.lineTo(x + w * 7 / 8, y + h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('umlEntity', UmlEntityShape); + + // UML Destroy Shape + function UmlDestroyShape() + { + mxShape.call(this); + }; + mxUtils.extend(UmlDestroyShape, mxShape); + UmlDestroyShape.prototype.paintVertexShape = function(c, x, y, w, h) + { + c.translate(x, y); + + c.begin(); + c.moveTo(w, 0); + c.lineTo(0, h); + c.moveTo(0, 0); + c.lineTo(w, h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('umlDestroy', UmlDestroyShape); + + // UML Control Shape + function UmlControlShape() + { + mxShape.call(this); + }; + mxUtils.extend(UmlControlShape, mxShape); + UmlControlShape.prototype.getLabelBounds = function(rect) + { + return new mxRectangle(rect.x, rect.y + rect.height / 8, rect.width, rect.height * 7 / 8); + }; + UmlControlShape.prototype.paintBackground = function(c, x, y, w, h) + { + c.translate(x, y); + + // Upper line + c.begin(); + c.moveTo(w * 3 / 8, h / 8 * 1.1); + c.lineTo(w * 5 / 8, 0); + c.end(); + c.stroke(); + + // Circle + c.ellipse(0, h / 8, w, h * 7 / 8); + c.fillAndStroke(); + }; + UmlControlShape.prototype.paintForeground = function(c, x, y, w, h) + { + // Lower line + c.begin(); + c.moveTo(w * 3 / 8, h / 8 * 1.1); + c.lineTo(w * 5 / 8, h / 4); + c.end(); + c.stroke(); + }; + + // Replaces existing actor shape + mxCellRenderer.registerShape('umlControl', UmlControlShape); + + // UML Lifeline Shape + function UmlLifeline() + { + mxRectangleShape.call(this); + }; + mxUtils.extend(UmlLifeline, mxRectangleShape); + UmlLifeline.prototype.size = 40; + UmlLifeline.prototype.isHtmlAllowed = function() + { + return false; + }; + UmlLifeline.prototype.getLabelBounds = function(rect) + { + var size = Math.max(0, Math.min(rect.height, parseFloat( + mxUtils.getValue(this.style, 'size', this.size)) * this.scale)); + + return new mxRectangle(rect.x, rect.y, rect.width, size); + }; + UmlLifeline.prototype.paintBackground = function(c, x, y, w, h) + { + var size = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var participant = mxUtils.getValue(this.style, 'participant'); + + if (participant == null || this.state == null) + { + mxRectangleShape.prototype.paintBackground.call(this, c, x, y, w, size); + } + else + { + var ctor = this.state.view.graph.cellRenderer.getShape(participant); + + if (ctor != null && ctor != UmlLifeline) + { + var shape = new ctor(); + shape.apply(this.state); + c.save(); + shape.paintVertexShape(c, x, y, w, size); + c.restore(); + } + } + + if (size < h) + { + c.setDashed(true); + c.begin(); + c.moveTo(x + w / 2, y + size); + c.lineTo(x + w / 2, y + h); + c.end(); + c.stroke(); + } + }; + UmlLifeline.prototype.paintForeground = function(c, x, y, w, h) + { + var size = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + mxRectangleShape.prototype.paintForeground.call(this, c, x, y, w, Math.min(h, size)); + }; + + mxCellRenderer.registerShape('umlLifeline', UmlLifeline); + + // UML Frame Shape + function UmlFrame() + { + mxShape.call(this); + }; + mxUtils.extend(UmlFrame, mxShape); + UmlFrame.prototype.width = 60; + UmlFrame.prototype.height = 30; + UmlFrame.prototype.corner = 10; + UmlFrame.prototype.getLabelMargins = function(rect) + { + return new mxRectangle(0, 0, + rect.width - (parseFloat(mxUtils.getValue(this.style, 'width', this.width) * this.scale)), + rect.height - (parseFloat(mxUtils.getValue(this.style, 'height', this.height) * this.scale))); + }; + UmlFrame.prototype.paintBackground = function(c, x, y, w, h) + { + var co = this.corner; + var w0 = Math.min(w, Math.max(co, parseFloat(mxUtils.getValue(this.style, 'width', this.width)))); + var h0 = Math.min(h, Math.max(co * 1.5, parseFloat(mxUtils.getValue(this.style, 'height', this.height)))); + var bg = mxUtils.getValue(this.style, mxConstants.STYLE_SWIMLANE_FILLCOLOR, mxConstants.NONE); + + if (bg != mxConstants.NONE) + { + c.setFillColor(bg); + c.rect(x, y, w, h); + c.fill(); + } + + if (this.fill != null && this.fill != mxConstants.NONE && this.gradient && this.gradient != mxConstants.NONE) + { + var b = this.getGradientBounds(c, x, y, w, h); + c.setGradient(this.fill, this.gradient, x, y, w, h, this.gradientDirection); + } + else + { + c.setFillColor(this.fill); + } + + c.begin(); + c.moveTo(x, y); + c.lineTo(x + w0, y); + c.lineTo(x + w0, y + Math.max(0, h0 - co * 1.5)); + c.lineTo(x + Math.max(0, w0 - co), y + h0); + c.lineTo(x, y + h0); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(x + w0, y); + c.lineTo(x + w, y); + c.lineTo(x + w, y + h); + c.lineTo(x, y + h); + c.lineTo(x, y + h0); + c.stroke(); + }; + + mxCellRenderer.registerShape('umlFrame', UmlFrame); + + mxPerimeter.LifelinePerimeter = function (bounds, vertex, next, orthogonal) + { + var size = UmlLifeline.prototype.size; + + if (vertex != null) + { + size = mxUtils.getValue(vertex.style, 'size', size) * vertex.view.scale; + } + + var sw = (parseFloat(vertex.style[mxConstants.STYLE_STROKEWIDTH] || 1) * vertex.view.scale / 2) - 1; + + if (next.x < bounds.getCenterX()) + { + sw += 1; + sw *= -1; + } + + return new mxPoint(bounds.getCenterX() + sw, Math.min(bounds.y + bounds.height, + Math.max(bounds.y + size, next.y))); + }; + + mxStyleRegistry.putValue('lifelinePerimeter', mxPerimeter.LifelinePerimeter); + + mxPerimeter.OrthogonalPerimeter = function (bounds, vertex, next, orthogonal) + { + orthogonal = true; + + return mxPerimeter.RectanglePerimeter.apply(this, arguments); + }; + + mxStyleRegistry.putValue('orthogonalPerimeter', mxPerimeter.OrthogonalPerimeter); + + mxPerimeter.BackbonePerimeter = function (bounds, vertex, next, orthogonal) + { + var sw = (parseFloat(vertex.style[mxConstants.STYLE_STROKEWIDTH] || 1) * vertex.view.scale / 2) - 1; + + if (vertex.style['backboneSize'] != null) + { + sw += (parseFloat(vertex.style['backboneSize']) * vertex.view.scale / 2) - 1; + } + + if (vertex.style[mxConstants.STYLE_DIRECTION] == 'south' || + vertex.style[mxConstants.STYLE_DIRECTION] == 'north') + { + if (next.x < bounds.getCenterX()) + { + sw += 1; + sw *= -1; + } + + return new mxPoint(bounds.getCenterX() + sw, Math.min(bounds.y + bounds.height, + Math.max(bounds.y, next.y))); + } + else + { + if (next.y < bounds.getCenterY()) + { + sw += 1; + sw *= -1; + } + + return new mxPoint(Math.min(bounds.x + bounds.width, Math.max(bounds.x, next.x)), + bounds.getCenterY() + sw); + } + }; + + mxStyleRegistry.putValue('backbonePerimeter', mxPerimeter.BackbonePerimeter); + + // Callout Perimeter + mxPerimeter.CalloutPerimeter = function (bounds, vertex, next, orthogonal) + { + return mxPerimeter.RectanglePerimeter(mxUtils.getDirectedBounds(bounds, new mxRectangle(0, 0, 0, + Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(vertex.style, 'size', + CalloutShape.prototype.size)) * vertex.view.scale))), + vertex.style), vertex, next, orthogonal); + }; + + mxStyleRegistry.putValue('calloutPerimeter', mxPerimeter.CalloutPerimeter); + + // Parallelogram Perimeter + mxPerimeter.ParallelogramPerimeter = function (bounds, vertex, next, orthogonal) + { + var size = ParallelogramShape.prototype.size; + + if (vertex != null) + { + size = mxUtils.getValue(vertex.style, 'size', size); + } + + var x = bounds.x; + var y = bounds.y; + var w = bounds.width; + var h = bounds.height; + + var direction = (vertex != null) ? mxUtils.getValue( + vertex.style, mxConstants.STYLE_DIRECTION, + mxConstants.DIRECTION_EAST) : mxConstants.DIRECTION_EAST; + var vertical = direction == mxConstants.DIRECTION_NORTH || + direction == mxConstants.DIRECTION_SOUTH; + var points; + + if (vertical) + { + var dy = h * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x, y), new mxPoint(x + w, y + dy), + new mxPoint(x + w, y + h), new mxPoint(x, y + h - dy), new mxPoint(x, y)]; + } + else + { + var dx = w * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x + dx, y), new mxPoint(x + w, y), + new mxPoint(x + w - dx, y + h), new mxPoint(x, y + h), new mxPoint(x + dx, y)]; + } + + var cx = bounds.getCenterX(); + var cy = bounds.getCenterY(); + + var p1 = new mxPoint(cx, cy); + + if (orthogonal) + { + if (next.x < x || next.x > x + w) + { + p1.y = next.y; + } + else + { + p1.x = next.x; + } + } + + return mxUtils.getPerimeterPoint(points, p1, next); + }; + + mxStyleRegistry.putValue('parallelogramPerimeter', mxPerimeter.ParallelogramPerimeter); + + // Trapezoid Perimeter + mxPerimeter.TrapezoidPerimeter = function (bounds, vertex, next, orthogonal) + { + var size = TrapezoidShape.prototype.size; + + if (vertex != null) + { + size = mxUtils.getValue(vertex.style, 'size', size); + } + + var x = bounds.x; + var y = bounds.y; + var w = bounds.width; + var h = bounds.height; + + var direction = (vertex != null) ? mxUtils.getValue( + vertex.style, mxConstants.STYLE_DIRECTION, + mxConstants.DIRECTION_EAST) : mxConstants.DIRECTION_EAST; + var points; + + if (direction == mxConstants.DIRECTION_EAST) + { + var dx = w * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x + dx, y), new mxPoint(x + w - dx, y), + new mxPoint(x + w, y + h), new mxPoint(x, y + h), new mxPoint(x + dx, y)]; + } + else if (direction == mxConstants.DIRECTION_WEST) + { + var dx = w * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x, y), new mxPoint(x + w, y), + new mxPoint(x + w - dx, y + h), new mxPoint(x + dx, y + h), new mxPoint(x, y)]; + } + else if (direction == mxConstants.DIRECTION_NORTH) + { + var dy = h * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x, y + dy), new mxPoint(x + w, y), + new mxPoint(x + w, y + h), new mxPoint(x, y + h - dy), new mxPoint(x, y + dy)]; + } + else + { + var dy = h * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x, y), new mxPoint(x + w, y + dy), + new mxPoint(x + w, y + h - dy), new mxPoint(x, y + h), new mxPoint(x, y)]; + } + + var cx = bounds.getCenterX(); + var cy = bounds.getCenterY(); + + var p1 = new mxPoint(cx, cy); + + if (orthogonal) + { + if (next.x < x || next.x > x + w) + { + p1.y = next.y; + } + else + { + p1.x = next.x; + } + } + + return mxUtils.getPerimeterPoint(points, p1, next); + }; + + mxStyleRegistry.putValue('trapezoidPerimeter', mxPerimeter.TrapezoidPerimeter); + + // Step Perimeter + mxPerimeter.StepPerimeter = function (bounds, vertex, next, orthogonal) + { + var fixed = mxUtils.getValue(vertex.style, 'fixedSize', '0') != '0'; + var size = (fixed) ? StepShape.prototype.fixedSize : StepShape.prototype.size; + + if (vertex != null) + { + size = mxUtils.getValue(vertex.style, 'size', size); + } + + var x = bounds.x; + var y = bounds.y; + var w = bounds.width; + var h = bounds.height; + + var cx = bounds.getCenterX(); + var cy = bounds.getCenterY(); + + var direction = (vertex != null) ? mxUtils.getValue( + vertex.style, mxConstants.STYLE_DIRECTION, + mxConstants.DIRECTION_EAST) : mxConstants.DIRECTION_EAST; + var points; + + if (direction == mxConstants.DIRECTION_EAST) + { + var dx = (fixed) ? Math.max(0, Math.min(w, size)) : w * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x, y), new mxPoint(x + w - dx, y), new mxPoint(x + w, cy), + new mxPoint(x + w - dx, y + h), new mxPoint(x, y + h), + new mxPoint(x + dx, cy), new mxPoint(x, y)]; + } + else if (direction == mxConstants.DIRECTION_WEST) + { + var dx = (fixed) ? Math.max(0, Math.min(w, size)) : w * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x + dx, y), new mxPoint(x + w, y), new mxPoint(x + w - dx, cy), + new mxPoint(x + w, y + h), new mxPoint(x + dx, y + h), + new mxPoint(x, cy), new mxPoint(x + dx, y)]; + } + else if (direction == mxConstants.DIRECTION_NORTH) + { + var dy = (fixed) ? Math.max(0, Math.min(h, size)) : h * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x, y + dy), new mxPoint(cx, y), new mxPoint(x + w, y + dy), + new mxPoint(x + w, y + h), new mxPoint(cx, y + h - dy), + new mxPoint(x, y + h), new mxPoint(x, y + dy)]; + } + else + { + var dy = (fixed) ? Math.max(0, Math.min(h, size)) : h * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x, y), new mxPoint(cx, y + dy), new mxPoint(x + w, y), + new mxPoint(x + w, y + h - dy), new mxPoint(cx, y + h), + new mxPoint(x, y + h - dy), new mxPoint(x, y)]; + } + + var p1 = new mxPoint(cx, cy); + + if (orthogonal) + { + if (next.x < x || next.x > x + w) + { + p1.y = next.y; + } + else + { + p1.x = next.x; + } + } + + return mxUtils.getPerimeterPoint(points, p1, next); + }; + + mxStyleRegistry.putValue('stepPerimeter', mxPerimeter.StepPerimeter); + + // Hexagon Perimeter 2 (keep existing one) + mxPerimeter.HexagonPerimeter2 = function (bounds, vertex, next, orthogonal) + { + var size = HexagonShape.prototype.size; + + if (vertex != null) + { + size = mxUtils.getValue(vertex.style, 'size', size); + } + + var x = bounds.x; + var y = bounds.y; + var w = bounds.width; + var h = bounds.height; + + var cx = bounds.getCenterX(); + var cy = bounds.getCenterY(); + + var direction = (vertex != null) ? mxUtils.getValue( + vertex.style, mxConstants.STYLE_DIRECTION, + mxConstants.DIRECTION_EAST) : mxConstants.DIRECTION_EAST; + var vertical = direction == mxConstants.DIRECTION_NORTH || + direction == mxConstants.DIRECTION_SOUTH; + var points; + + if (vertical) + { + var dy = h * Math.max(0, Math.min(1, size)); + points = [new mxPoint(cx, y), new mxPoint(x + w, y + dy), new mxPoint(x + w, y + h - dy), + new mxPoint(cx, y + h), new mxPoint(x, y + h - dy), + new mxPoint(x, y + dy), new mxPoint(cx, y)]; + } + else + { + var dx = w * Math.max(0, Math.min(1, size)); + points = [new mxPoint(x + dx, y), new mxPoint(x + w - dx, y), new mxPoint(x + w, cy), + new mxPoint(x + w - dx, y + h), new mxPoint(x + dx, y + h), + new mxPoint(x, cy), new mxPoint(x + dx, y)]; + } + + var p1 = new mxPoint(cx, cy); + + if (orthogonal) + { + if (next.x < x || next.x > x + w) + { + p1.y = next.y; + } + else + { + p1.x = next.x; + } + } + + return mxUtils.getPerimeterPoint(points, p1, next); + }; + + mxStyleRegistry.putValue('hexagonPerimeter2', mxPerimeter.HexagonPerimeter2); + + // Provided Interface Shape (aka Lollipop) + function LollipopShape() + { + mxShape.call(this); + }; + mxUtils.extend(LollipopShape, mxShape); + LollipopShape.prototype.size = 10; + LollipopShape.prototype.paintBackground = function(c, x, y, w, h) + { + var sz = parseFloat(mxUtils.getValue(this.style, 'size', this.size)); + c.translate(x, y); + + c.ellipse((w - sz) / 2, 0, sz, sz); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w / 2, sz); + c.lineTo(w / 2, h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('lollipop', LollipopShape); + + // Required Interface Shape + function RequiresShape() + { + mxShape.call(this); + }; + mxUtils.extend(RequiresShape, mxShape); + RequiresShape.prototype.size = 10; + RequiresShape.prototype.inset = 2; + RequiresShape.prototype.paintBackground = function(c, x, y, w, h) + { + var sz = parseFloat(mxUtils.getValue(this.style, 'size', this.size)); + var inset = parseFloat(mxUtils.getValue(this.style, 'inset', this.inset)) + this.strokewidth; + c.translate(x, y); + + c.begin(); + c.moveTo(w / 2, sz + inset); + c.lineTo(w / 2, h); + c.end(); + c.stroke(); + + c.begin(); + c.moveTo((w - sz) / 2 - inset, sz / 2); + c.quadTo((w - sz) / 2 - inset, sz + inset, w / 2, sz + inset); + c.quadTo((w + sz) / 2 + inset, sz + inset, (w + sz) / 2 + inset, sz / 2); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('requires', RequiresShape); + + // Required Interface Shape + function RequiredInterfaceShape() + { + mxShape.call(this); + }; + mxUtils.extend(RequiredInterfaceShape, mxShape); + + RequiredInterfaceShape.prototype.paintBackground = function(c, x, y, w, h) + { + c.translate(x, y); + + c.begin(); + c.moveTo(0, 0); + c.quadTo(w, 0, w, h / 2); + c.quadTo(w, h, 0, h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('requiredInterface', RequiredInterfaceShape); + + // Provided and Required Interface Shape + function ProvidedRequiredInterfaceShape() + { + mxShape.call(this); + }; + mxUtils.extend(ProvidedRequiredInterfaceShape, mxShape); + ProvidedRequiredInterfaceShape.prototype.inset = 2; + ProvidedRequiredInterfaceShape.prototype.paintBackground = function(c, x, y, w, h) + { + var inset = parseFloat(mxUtils.getValue(this.style, 'inset', this.inset)) + this.strokewidth; + c.translate(x, y); + + c.ellipse(0, inset, w - 2 * inset, h - 2 * inset); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w / 2, 0); + c.quadTo(w, 0, w, h / 2); + c.quadTo(w, h, w / 2, h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('providedRequiredInterface', ProvidedRequiredInterfaceShape); + + // Component shape + function ComponentShape() + { + mxCylinder.call(this); + }; + mxUtils.extend(ComponentShape, mxCylinder); + ComponentShape.prototype.jettyWidth = 32; + ComponentShape.prototype.jettyHeight = 12; + ComponentShape.prototype.redrawPath = function(path, x, y, w, h, isForeground) + { + var dx = parseFloat(mxUtils.getValue(this.style, 'jettyWidth', this.jettyWidth)); + var dy = parseFloat(mxUtils.getValue(this.style, 'jettyHeight', this.jettyHeight)); + var x0 = dx / 2; + var x1 = x0 + dx / 2; + var y0 = 0.3 * h - dy / 2; + var y1 = 0.7 * h - dy / 2; + + if (isForeground) + { + path.moveTo(x0, y0); + path.lineTo(x1, y0); + path.lineTo(x1, y0 + dy); + path.lineTo(x0, y0 + dy); + path.moveTo(x0, y1); + path.lineTo(x1, y1); + path.lineTo(x1, y1 + dy); + path.lineTo(x0, y1 + dy); + path.end(); + } + else + { + path.moveTo(x0, 0); + path.lineTo(w, 0); + path.lineTo(w, h); + path.lineTo(x0, h); + path.lineTo(x0, y1 + dy); + path.lineTo(0, y1 + dy); + path.lineTo(0, y1); + path.lineTo(x0, y1); + path.lineTo(x0, y0 + dy); + path.lineTo(0, y0 + dy); + path.lineTo(0, y0); + path.lineTo(x0, y0); + path.close(); + path.end(); + } + }; + + mxCellRenderer.registerShape('component', ComponentShape); + + // State Shapes derives from double ellipse + function StateShape() + { + mxDoubleEllipse.call(this); + }; + mxUtils.extend(StateShape, mxDoubleEllipse); + StateShape.prototype.outerStroke = true; + StateShape.prototype.paintVertexShape = function(c, x, y, w, h) + { + var inset = Math.min(4, Math.min(w / 5, h / 5)); + + if (w > 0 && h > 0) + { + c.ellipse(x + inset, y + inset, w - 2 * inset, h - 2 * inset); + c.fillAndStroke(); + } + + c.setShadow(false); + + if (this.outerStroke) + { + c.ellipse(x, y, w, h); + c.stroke(); + } + }; + + mxCellRenderer.registerShape('endState', StateShape); + + function StartStateShape() + { + StateShape.call(this); + }; + mxUtils.extend(StartStateShape, StateShape); + StartStateShape.prototype.outerStroke = false; + + mxCellRenderer.registerShape('startState', StartStateShape); + + // Link shape + function LinkShape() + { + mxArrowConnector.call(this); + this.spacing = 0; + }; + mxUtils.extend(LinkShape, mxArrowConnector); + LinkShape.prototype.defaultWidth = 4; + + LinkShape.prototype.isOpenEnded = function() + { + return true; + }; + + LinkShape.prototype.getEdgeWidth = function() + { + return mxUtils.getNumber(this.style, 'width', this.defaultWidth) + Math.max(0, this.strokewidth - 1); + }; + + LinkShape.prototype.isArrowRounded = function() + { + return this.isRounded; + }; + + // Registers the link shape + mxCellRenderer.registerShape('link', LinkShape); + + // Generic arrow + function FlexArrowShape() + { + mxArrowConnector.call(this); + this.spacing = 0; + }; + mxUtils.extend(FlexArrowShape, mxArrowConnector); + FlexArrowShape.prototype.defaultWidth = 10; + FlexArrowShape.prototype.defaultArrowWidth = 20; + + FlexArrowShape.prototype.getStartArrowWidth = function() + { + return this.getEdgeWidth() + mxUtils.getNumber(this.style, 'startWidth', this.defaultArrowWidth); + }; + + FlexArrowShape.prototype.getEndArrowWidth = function() + { + return this.getEdgeWidth() + mxUtils.getNumber(this.style, 'endWidth', this.defaultArrowWidth);; + }; + + FlexArrowShape.prototype.getEdgeWidth = function() + { + return mxUtils.getNumber(this.style, 'width', this.defaultWidth) + Math.max(0, this.strokewidth - 1); + }; + + // Registers the link shape + mxCellRenderer.registerShape('flexArrow', FlexArrowShape); + + // Manual Input shape + function ManualInputShape() + { + mxActor.call(this); + }; + mxUtils.extend(ManualInputShape, mxActor); + ManualInputShape.prototype.size = 30; + ManualInputShape.prototype.isRoundable = function() + { + return true; + }; + ManualInputShape.prototype.redrawPath = function(c, x, y, w, h) + { + var s = Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, h), new mxPoint(0, s), new mxPoint(w, 0), new mxPoint(w, h)], + this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('manualInput', ManualInputShape); + + // Internal storage + function InternalStorageShape() + { + mxRectangleShape.call(this); + }; + mxUtils.extend(InternalStorageShape, mxRectangleShape); + InternalStorageShape.prototype.dx = 20; + InternalStorageShape.prototype.dy = 20; + InternalStorageShape.prototype.isHtmlAllowed = function() + { + return false; + }; + InternalStorageShape.prototype.paintForeground = function(c, x, y, w, h) + { + mxRectangleShape.prototype.paintForeground.apply(this, arguments); + var inset = 0; + + if (this.isRounded) + { + var f = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, + mxConstants.RECTANGLE_ROUNDING_FACTOR * 100) / 100; + inset = Math.max(inset, Math.min(w * f, h * f)); + } + + var dx = Math.max(inset, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(inset, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + c.begin(); + c.moveTo(x, y + dy); + c.lineTo(x + w, y + dy); + c.end(); + c.stroke(); + + c.begin(); + c.moveTo(x + dx, y); + c.lineTo(x + dx, y + h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('internalStorage', InternalStorageShape); + + // Internal storage + function CornerShape() + { + mxActor.call(this); + }; + mxUtils.extend(CornerShape, mxActor); + CornerShape.prototype.dx = 20; + CornerShape.prototype.dy = 20; + + // Corner + CornerShape.prototype.redrawPath = function(c, x, y, w, h) + { + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + var s = Math.min(w / 2, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, 0), new mxPoint(w, 0), new mxPoint(w, dy), new mxPoint(dx, dy), + new mxPoint(dx, h), new mxPoint(0, h)], this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('corner', CornerShape); + + // Crossbar shape + function CrossbarShape() + { + mxActor.call(this); + }; + mxUtils.extend(CrossbarShape, mxActor); + + CrossbarShape.prototype.redrawPath = function(c, x, y, w, h) + { + c.moveTo(0, 0); + c.lineTo(0, h); + c.end(); + + c.moveTo(w, 0); + c.lineTo(w, h); + c.end(); + + c.moveTo(0, h / 2); + c.lineTo(w, h / 2); + c.end(); + }; + + mxCellRenderer.registerShape('crossbar', CrossbarShape); + + // Internal storage + function TeeShape() + { + mxActor.call(this); + }; + mxUtils.extend(TeeShape, mxActor); + TeeShape.prototype.dx = 20; + TeeShape.prototype.dy = 20; + + // Corner + TeeShape.prototype.redrawPath = function(c, x, y, w, h) + { + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var w2 = Math.abs(w - dx) / 2; + + var s = Math.min(w / 2, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, 0), new mxPoint(w, 0), new mxPoint(w, dy), new mxPoint((w + dx) / 2, dy), + new mxPoint((w + dx) / 2, h), new mxPoint((w - dx) / 2, h), new mxPoint((w - dx) / 2, dy), + new mxPoint(0, dy)], this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('tee', TeeShape); + + // Arrow + function SingleArrowShape() + { + mxActor.call(this); + }; + mxUtils.extend(SingleArrowShape, mxActor); + SingleArrowShape.prototype.arrowWidth = 0.3; + SingleArrowShape.prototype.arrowSize = 0.2; + SingleArrowShape.prototype.redrawPath = function(c, x, y, w, h) + { + var aw = h * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arrowWidth', this.arrowWidth)))); + var as = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arrowSize', this.arrowSize)))); + var at = (h - aw) / 2; + var ab = at + aw; + + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, at), new mxPoint(w - as, at), new mxPoint(w - as, 0), new mxPoint(w, h / 2), + new mxPoint(w - as, h), new mxPoint(w - as, ab), new mxPoint(0, ab)], + this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('singleArrow', SingleArrowShape); + + // Arrow + function DoubleArrowShape() + { + mxActor.call(this); + }; + mxUtils.extend(DoubleArrowShape, mxActor); + DoubleArrowShape.prototype.redrawPath = function(c, x, y, w, h) + { + var aw = h * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arrowWidth', SingleArrowShape.prototype.arrowWidth)))); + var as = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arrowSize', SingleArrowShape.prototype.arrowSize)))); + var at = (h - aw) / 2; + var ab = at + aw; + + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, h / 2), new mxPoint(as, 0), new mxPoint(as, at), new mxPoint(w - as, at), + new mxPoint(w - as, 0), new mxPoint(w, h / 2), new mxPoint(w - as, h), + new mxPoint(w - as, ab), new mxPoint(as, ab), new mxPoint(as, h)], + this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('doubleArrow', DoubleArrowShape); + + // Data storage + function DataStorageShape() + { + mxActor.call(this); + }; + mxUtils.extend(DataStorageShape, mxActor); + DataStorageShape.prototype.size = 0.1; + DataStorageShape.prototype.redrawPath = function(c, x, y, w, h) + { + var s = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + + c.moveTo(s, 0); + c.lineTo(w, 0); + c.quadTo(w - s * 2, h / 2, w, h); + c.lineTo(s, h); + c.quadTo(s - s * 2, h / 2, s, 0); + c.close(); + c.end(); + }; + + mxCellRenderer.registerShape('dataStorage', DataStorageShape); + + // Or + function OrShape() + { + mxActor.call(this); + }; + mxUtils.extend(OrShape, mxActor); + OrShape.prototype.redrawPath = function(c, x, y, w, h) + { + c.moveTo(0, 0); + c.quadTo(w, 0, w, h / 2); + c.quadTo(w, h, 0, h); + c.close(); + c.end(); + }; + + mxCellRenderer.registerShape('or', OrShape); + + // Xor + function XorShape() + { + mxActor.call(this); + }; + mxUtils.extend(XorShape, mxActor); + XorShape.prototype.redrawPath = function(c, x, y, w, h) + { + c.moveTo(0, 0); + c.quadTo(w, 0, w, h / 2); + c.quadTo(w, h, 0, h); + c.quadTo(w / 2, h / 2, 0, 0); + c.close(); + c.end(); + }; + + mxCellRenderer.registerShape('xor', XorShape); + + // Loop limit + function LoopLimitShape() + { + mxActor.call(this); + }; + mxUtils.extend(LoopLimitShape, mxActor); + LoopLimitShape.prototype.size = 20; + LoopLimitShape.prototype.isRoundable = function() + { + return true; + }; + LoopLimitShape.prototype.redrawPath = function(c, x, y, w, h) + { + var s = Math.min(w / 2, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(s, 0), new mxPoint(w - s, 0), new mxPoint(w, s * 0.8), new mxPoint(w, h), + new mxPoint(0, h), new mxPoint(0, s * 0.8)], this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('loopLimit', LoopLimitShape); + + // Off page connector + function OffPageConnectorShape() + { + mxActor.call(this); + }; + mxUtils.extend(OffPageConnectorShape, mxActor); + OffPageConnectorShape.prototype.size = 3 / 8; + OffPageConnectorShape.prototype.isRoundable = function() + { + return true; + }; + OffPageConnectorShape.prototype.redrawPath = function(c, x, y, w, h) + { + var s = h * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + this.addPoints(c, [new mxPoint(0, 0), new mxPoint(w, 0), new mxPoint(w, h - s), new mxPoint(w / 2, h), + new mxPoint(0, h - s)], this.isRounded, arcSize, true); + c.end(); + }; + + mxCellRenderer.registerShape('offPageConnector', OffPageConnectorShape); + + // Internal storage + function TapeDataShape() + { + mxEllipse.call(this); + }; + mxUtils.extend(TapeDataShape, mxEllipse); + TapeDataShape.prototype.paintVertexShape = function(c, x, y, w, h) + { + mxEllipse.prototype.paintVertexShape.apply(this, arguments); + + c.begin(); + c.moveTo(x + w / 2, y + h); + c.lineTo(x + w, y + h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('tapeData', TapeDataShape); + + // OrEllipseShape + function OrEllipseShape() + { + mxEllipse.call(this); + }; + mxUtils.extend(OrEllipseShape, mxEllipse); + OrEllipseShape.prototype.paintVertexShape = function(c, x, y, w, h) + { + mxEllipse.prototype.paintVertexShape.apply(this, arguments); + + c.setShadow(false); + c.begin(); + c.moveTo(x, y + h / 2); + c.lineTo(x + w, y + h / 2); + c.end(); + c.stroke(); + + c.begin(); + c.moveTo(x + w / 2, y); + c.lineTo(x + w / 2, y + h); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('orEllipse', OrEllipseShape); + + // SumEllipseShape + function SumEllipseShape() + { + mxEllipse.call(this); + }; + mxUtils.extend(SumEllipseShape, mxEllipse); + SumEllipseShape.prototype.paintVertexShape = function(c, x, y, w, h) + { + mxEllipse.prototype.paintVertexShape.apply(this, arguments); + var s2 = 0.145; + + c.setShadow(false); + c.begin(); + c.moveTo(x + w * s2, y + h * s2); + c.lineTo(x + w * (1 - s2), y + h * (1 - s2)); + c.end(); + c.stroke(); + + c.begin(); + c.moveTo(x + w * (1 - s2), y + h * s2); + c.lineTo(x + w * s2, y + h * (1 - s2)); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('sumEllipse', SumEllipseShape); + + // SortShape + function SortShape() + { + mxRhombus.call(this); + }; + mxUtils.extend(SortShape, mxRhombus); + SortShape.prototype.paintVertexShape = function(c, x, y, w, h) + { + mxRhombus.prototype.paintVertexShape.apply(this, arguments); + + c.setShadow(false); + c.begin(); + c.moveTo(x, y + h / 2); + c.lineTo(x + w, y + h / 2); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('sortShape', SortShape); + + // CollateShape + function CollateShape() + { + mxEllipse.call(this); + }; + mxUtils.extend(CollateShape, mxEllipse); + CollateShape.prototype.paintVertexShape = function(c, x, y, w, h) + { + c.begin(); + c.moveTo(x, y); + c.lineTo(x + w, y); + c.lineTo(x + w / 2, y + h / 2); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(x, y + h); + c.lineTo(x + w, y + h); + c.lineTo(x + w / 2, y + h / 2); + c.close(); + c.fillAndStroke(); + }; + + mxCellRenderer.registerShape('collate', CollateShape); + + // DimensionShape + function DimensionShape() + { + mxEllipse.call(this); + }; + mxUtils.extend(DimensionShape, mxEllipse); + DimensionShape.prototype.paintVertexShape = function(c, x, y, w, h) + { + // Arrow size + var al = 10; + var cy = y + h - al / 2; + + c.begin(); + c.moveTo(x, y); + c.lineTo(x, y + h); + c.moveTo(x, cy); + c.lineTo(x + al, cy - al / 2); + c.moveTo(x, cy); + c.lineTo(x + al, cy + al / 2); + c.moveTo(x, cy); + c.lineTo(x + w, cy); + + // Opposite side + c.moveTo(x + w, y); + c.lineTo(x + w, y + h); + c.moveTo(x + w, cy); + c.lineTo(x + w - al, cy - al / 2); + c.moveTo(x + w, cy); + c.lineTo(x + w - al, cy + al / 2); + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('dimension', DimensionShape); + + // PartialRectangleShape + function PartialRectangleShape() + { + mxEllipse.call(this); + }; + mxUtils.extend(PartialRectangleShape, mxEllipse); + PartialRectangleShape.prototype.paintVertexShape = function(c, x, y, w, h) + { + if (!this.outline) + { + c.setStrokeColor(null); + } + + mxRectangleShape.prototype.paintBackground.apply(this, arguments); + + if (this.style != null) + { + c.setStrokeColor(this.stroke); + c.rect(x, y, w, h); + c.fill(); + + c.begin(); + c.moveTo(x, y); + + if (mxUtils.getValue(this.style, 'top', '1') == '1') + { + c.lineTo(x + w, y); + } + else + { + c.moveTo(x + w, y); + } + + if (mxUtils.getValue(this.style, 'right', '1') == '1') + { + c.lineTo(x + w, y + h); + } + else + { + c.moveTo(x + w, y + h); + } + + if (mxUtils.getValue(this.style, 'bottom', '1') == '1') + { + c.lineTo(x, y + h); + } + else + { + c.moveTo(x, y + h); + } + + if (mxUtils.getValue(this.style, 'left', '1') == '1') + { + c.lineTo(x, y - this.strokewidth / 2); + } + + c.end(); + c.stroke(); + } + }; + + mxCellRenderer.registerShape('partialRectangle', PartialRectangleShape); + + // LineEllipseShape + function LineEllipseShape() + { + mxEllipse.call(this); + }; + mxUtils.extend(LineEllipseShape, mxEllipse); + LineEllipseShape.prototype.paintVertexShape = function(c, x, y, w, h) + { + mxEllipse.prototype.paintVertexShape.apply(this, arguments); + + c.setShadow(false); + c.begin(); + + if (mxUtils.getValue(this.style, 'line') == 'vertical') + { + c.moveTo(x + w / 2, y); + c.lineTo(x + w / 2, y + h); + } + else + { + c.moveTo(x, y + h / 2); + c.lineTo(x + w, y + h / 2); + } + + c.end(); + c.stroke(); + }; + + mxCellRenderer.registerShape('lineEllipse', LineEllipseShape); + + // Delay + function DelayShape() + { + mxActor.call(this); + }; + mxUtils.extend(DelayShape, mxActor); + DelayShape.prototype.redrawPath = function(c, x, y, w, h) + { + var dx = Math.min(w, h / 2); + c.moveTo(0, 0); + c.lineTo(w - dx, 0); + c.quadTo(w, 0, w, h / 2); + c.quadTo(w, h, w - dx, h); + c.lineTo(0, h); + c.close(); + c.end(); + }; + + mxCellRenderer.registerShape('delay', DelayShape); + + // Cross Shape + function CrossShape() + { + mxActor.call(this); + }; + mxUtils.extend(CrossShape, mxActor); + CrossShape.prototype.size = 0.2; + CrossShape.prototype.redrawPath = function(c, x, y, w, h) + { + var m = Math.min(h, w); + var size = Math.max(0, Math.min(m, m * parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var t = (h - size) / 2; + var b = t + size; + var l = (w - size) / 2; + var r = l + size; + + c.moveTo(0, t); + c.lineTo(l, t); + c.lineTo(l, 0); + c.lineTo(r, 0); + c.lineTo(r, t); + c.lineTo(w, t); + c.lineTo(w, b); + c.lineTo(r, b); + c.lineTo(r, h); + c.lineTo(l, h); + c.lineTo(l, b); + c.lineTo(0, b); + c.close(); + c.end(); + }; + + mxCellRenderer.registerShape('cross', CrossShape); + + // Display + function DisplayShape() + { + mxActor.call(this); + }; + mxUtils.extend(DisplayShape, mxActor); + DisplayShape.prototype.size = 0.25; + DisplayShape.prototype.redrawPath = function(c, x, y, w, h) + { + var dx = Math.min(w, h / 2); + var s = Math.min(w - dx, Math.max(0, parseFloat(mxUtils.getValue(this.style, 'size', this.size))) * w); + + c.moveTo(0, h / 2); + c.lineTo(s, 0); + c.lineTo(w - dx, 0); + c.quadTo(w, 0, w, h / 2); + c.quadTo(w, h, w - dx, h); + c.lineTo(s, h); + c.close(); + c.end(); + }; + + mxCellRenderer.registerShape('display', DisplayShape); + + // FilledEdge shape + function FilledEdge() + { + mxConnector.call(this); + }; + mxUtils.extend(FilledEdge, mxConnector); + + FilledEdge.prototype.origPaintEdgeShape = FilledEdge.prototype.paintEdgeShape; + FilledEdge.prototype.paintEdgeShape = function(c, pts, rounded) + { + // Markers modify incoming points array + var temp = []; + + for (var i = 0; i < pts.length; i++) + { + temp.push(mxUtils.clone(pts[i])); + } + + // paintEdgeShape resets dashed to false + var dashed = c.state.dashed; + var fixDash = c.state.fixDash; + FilledEdge.prototype.origPaintEdgeShape.apply(this, [c, temp, rounded]); + + if (c.state.strokeWidth >= 3) + { + var fillClr = mxUtils.getValue(this.style, 'fillColor', null); + + if (fillClr != null) + { + c.setStrokeColor(fillClr); + c.setStrokeWidth(c.state.strokeWidth - 2); + c.setDashed(dashed, fixDash); + + FilledEdge.prototype.origPaintEdgeShape.apply(this, [c, pts, rounded]); + } + } + }; + + // Registers the link shape + mxCellRenderer.registerShape('filledEdge', FilledEdge); + + // Implements custom colors for shapes + if (typeof StyleFormatPanel !== 'undefined') + { + (function() + { + var styleFormatPanelGetCustomColors = StyleFormatPanel.prototype.getCustomColors; + + StyleFormatPanel.prototype.getCustomColors = function() + { + var ss = this.format.getSelectionState(); + var result = styleFormatPanelGetCustomColors.apply(this, arguments); + + if (ss.style.shape == 'umlFrame') + { + result.push({title: mxResources.get('laneColor'), key: 'swimlaneFillColor', defaultValue: '#ffffff'}); + } + + return result; + }; + })(); + } + + // Registers and defines the custom marker + mxMarker.addMarker('dash', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) + { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + + return function() + { + c.begin(); + c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2); + c.lineTo(pe.x + ny / 2 - 3 * nx / 2, pe.y - 3 * ny / 2 - nx / 2); + c.stroke(); + }; + }); + + // Registers and defines the custom marker + mxMarker.addMarker('cross', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) + { + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + + return function() + { + c.begin(); + c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2); + c.lineTo(pe.x + ny / 2 - 3 * nx / 2, pe.y - 3 * ny / 2 - nx / 2); + c.moveTo(pe.x - nx / 2 + ny / 2, pe.y - ny / 2 - nx / 2); + c.lineTo(pe.x - ny / 2 - 3 * nx / 2, pe.y - 3 * ny / 2 + nx / 2); + c.stroke(); + }; + }); + + function circleMarker(c, shape, type, pe, unitX, unitY, size, source, sw, filled) + { + var a = size / 2; + var size = size + sw; + + var pt = pe.clone(); + + pe.x -= unitX * (2 * size + sw); + pe.y -= unitY * (2 * size + sw); + + unitX = unitX * (size + sw); + unitY = unitY * (size + sw); + + return function() + { + c.ellipse(pt.x - unitX - size, pt.y - unitY - size, 2 * size, 2 * size); + + if (filled) + { + c.fillAndStroke(); + } + else + { + c.stroke(); + } + }; + }; + + mxMarker.addMarker('circle', circleMarker); + mxMarker.addMarker('circlePlus', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) + { + var pt = pe.clone(); + var fn = circleMarker.apply(this, arguments); + var nx = unitX * (size + 2 * sw); // (size + sw + 1); + var ny = unitY * (size + 2 * sw); //(size + sw + 1); + + return function() + { + fn.apply(this, arguments); + + c.begin(); + c.moveTo(pt.x - unitX * (sw), pt.y - unitY * (sw)); + c.lineTo(pt.x - 2 * nx + unitX * (sw), pt.y - 2 * ny + unitY * (sw)); + c.moveTo(pt.x - nx - ny + unitY * sw, pt.y - ny + nx - unitX * sw); + c.lineTo(pt.x + ny - nx - unitY * sw, pt.y - ny - nx + unitX * sw); + c.stroke(); + }; + }); + + mxMarker.addMarker('async', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) + { + // The angle of the forward facing arrow sides against the x axis is + // 26.565 degrees, 1/sin(26.565) = 2.236 / 2 = 1.118 ( / 2 allows for + // only half the strokewidth is processed ). + var endOffsetX = unitX * sw * 1.118; + var endOffsetY = unitY * sw * 1.118; + + unitX = unitX * (size + sw); + unitY = unitY * (size + sw); + + var pt = pe.clone(); + pt.x -= endOffsetX; + pt.y -= endOffsetY; + + var f = 1; + pe.x += -unitX * f - endOffsetX; + pe.y += -unitY * f - endOffsetY; + + return function() + { + c.begin(); + c.moveTo(pt.x, pt.y); + + if (source) + { + c.lineTo(pt.x - unitX - unitY / 2, pt.y - unitY + unitX / 2); + } + else + { + c.lineTo(pt.x + unitY / 2 - unitX, pt.y - unitY - unitX / 2); + } + + c.lineTo(pt.x - unitX, pt.y - unitY); + c.close(); + + if (filled) + { + c.fillAndStroke(); + } + else + { + c.stroke(); + } + }; + }); + + function createOpenAsyncArrow(widthFactor) + { + widthFactor = (widthFactor != null) ? widthFactor : 2; + + return function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) + { + unitX = unitX * (size + sw); + unitY = unitY * (size + sw); + + var pt = pe.clone(); + + return function() + { + c.begin(); + c.moveTo(pt.x, pt.y); + + if (source) + { + c.lineTo(pt.x - unitX - unitY / widthFactor, pt.y - unitY + unitX / widthFactor); + } + else + { + c.lineTo(pt.x + unitY / widthFactor - unitX, pt.y - unitY - unitX / widthFactor); + } + + c.stroke(); + }; + } + }; + + mxMarker.addMarker('openAsync', createOpenAsyncArrow(2)); + + function arrow(canvas, shape, type, pe, unitX, unitY, size, source, sw, filled) + { + // The angle of the forward facing arrow sides against the x axis is + // 26.565 degrees, 1/sin(26.565) = 2.236 / 2 = 1.118 ( / 2 allows for + // only half the strokewidth is processed ). + var endOffsetX = unitX * sw * 1.118; + var endOffsetY = unitY * sw * 1.118; + + unitX = unitX * (size + sw); + unitY = unitY * (size + sw); + + var pt = pe.clone(); + pt.x -= endOffsetX; + pt.y -= endOffsetY; + + var f = (type != mxConstants.ARROW_CLASSIC && type != mxConstants.ARROW_CLASSIC_THIN) ? 1 : 3 / 4; + pe.x += -unitX * f - endOffsetX; + pe.y += -unitY * f - endOffsetY; + + return function() + { + canvas.begin(); + canvas.moveTo(pt.x, pt.y); + canvas.lineTo(pt.x - unitX - unitY / widthFactor, pt.y - unitY + unitX / widthFactor); + + if (type == mxConstants.ARROW_CLASSIC || type == mxConstants.ARROW_CLASSIC_THIN) + { + canvas.lineTo(pt.x - unitX * 3 / 4, pt.y - unitY * 3 / 4); + } + + canvas.lineTo(pt.x + unitY / widthFactor - unitX, pt.y - unitY - unitX / widthFactor); + canvas.close(); + + if (filled) + { + canvas.fillAndStroke(); + } + else + { + canvas.stroke(); + } + }; + } + + // Handlers are only added if mxVertexHandler is defined (ie. not in embedded graph) + if (typeof mxVertexHandler !== 'undefined') + { + function createHandle(state, keys, getPositionFn, setPositionFn, ignoreGrid, redrawEdges) + { + var handle = new mxHandle(state, null, mxVertexHandler.prototype.secondaryHandleImage); + + handle.execute = function() + { + for (var i = 0; i < keys.length; i++) + { + this.copyStyle(keys[i]); + } + }; + + handle.getPosition = getPositionFn; + handle.setPosition = setPositionFn; + handle.ignoreGrid = (ignoreGrid != null) ? ignoreGrid : true; + + // Overridden to update connected edges + if (redrawEdges) + { + var positionChanged = handle.positionChanged; + + handle.positionChanged = function() + { + positionChanged.apply(this, arguments); + + // Redraws connected edges TODO: Include child edges + state.view.invalidate(this.state.cell); + state.view.validate(); + }; + } + + return handle; + }; + + function createArcHandle(state, yOffset) + { + return createHandle(state, [mxConstants.STYLE_ARCSIZE], function(bounds) + { + var tmp = (yOffset != null) ? yOffset : bounds.height / 8; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ABSOLUTE_ARCSIZE, 0) == '1') + { + var arcSize = mxUtils.getValue(state.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2; + + return new mxPoint(bounds.x + bounds.width - Math.min(bounds.width / 2, arcSize), bounds.y + tmp); + } + else + { + var arcSize = Math.max(0, parseFloat(mxUtils.getValue(state.style, + mxConstants.STYLE_ARCSIZE, mxConstants.RECTANGLE_ROUNDING_FACTOR * 100))) / 100; + + return new mxPoint(bounds.x + bounds.width - Math.min(Math.max(bounds.width / 2, bounds.height / 2), + Math.min(bounds.width, bounds.height) * arcSize), bounds.y + tmp); + } + }, function(bounds, pt, me) + { + if (mxUtils.getValue(state.style, mxConstants.STYLE_ABSOLUTE_ARCSIZE, 0) == '1') + { + this.state.style[mxConstants.STYLE_ARCSIZE] = Math.round(Math.max(0, Math.min(bounds.width, + (bounds.x + bounds.width - pt.x) * 2))); + } + else + { + var f = Math.min(50, Math.max(0, (bounds.width - pt.x + bounds.x) * 100 / + Math.min(bounds.width, bounds.height))); + this.state.style[mxConstants.STYLE_ARCSIZE] = Math.round(f); + } + }); + } + + function createArcHandleFunction() + { + return function(state) + { + var handles = []; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) + { + handles.push(createArcHandle(state)); + } + + return handles; + }; + }; + + function createTrapezoidHandleFunction(max) + { + return function(state) + { + var handles = [createHandle(state, ['size'], function(bounds) + { + var size = Math.max(0, Math.min(max, parseFloat(mxUtils.getValue(this.state.style, 'size', TrapezoidShape.prototype.size)))); + + return new mxPoint(bounds.x + size * bounds.width * 0.75, bounds.y + bounds.height / 4); + }, function(bounds, pt) + { + this.state.style['size'] = Math.max(0, Math.min(max, (pt.x - bounds.x) / (bounds.width * 0.75))); + }, null, true)]; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) + { + handles.push(createArcHandle(state)); + } + + return handles; + }; + }; + + function createDisplayHandleFunction(defaultValue, allowArcHandle, max, redrawEdges, fixedDefaultValue) + { + max = (max != null) ? max : 1; + + return function(state) + { + var handles = [createHandle(state, ['size'], function(bounds) + { + var fixed = (fixedDefaultValue != null) ? mxUtils.getValue(this.state.style, 'fixedSize', '0') != '0' : null; + var size = parseFloat(mxUtils.getValue(this.state.style, 'size', (fixed) ? fixedDefaultValue : defaultValue)); + + return new mxPoint(bounds.x + Math.max(0, Math.min(bounds.width, size * ((fixed) ? 1 : bounds.width))), bounds.getCenterY()); + }, function(bounds, pt, me) + { + var fixed = (fixedDefaultValue != null) ? mxUtils.getValue(this.state.style, 'fixedSize', '0') != '0' : null; + var size = (fixed) ? (pt.x - bounds.x) : Math.max(0, Math.min(max, (pt.x - bounds.x) / bounds.width)); + + if (fixed && !mxEvent.isAltDown(me.getEvent())) + { + size = state.view.graph.snap(size); + } + + this.state.style['size'] = size; + }, null, redrawEdges)]; + + if (allowArcHandle && mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) + { + handles.push(createArcHandle(state)); + } + + return handles; + }; + }; + + function createCubeHandleFunction(factor, defaultValue, allowArcHandle) + { + return function(state) + { + var handles = [createHandle(state, ['size'], function(bounds) + { + var size = Math.max(0, Math.min(bounds.width, Math.min(bounds.height, parseFloat( + mxUtils.getValue(this.state.style, 'size', defaultValue))))) * factor; + + return new mxPoint(bounds.x + size, bounds.y + size); + }, function(bounds, pt) + { + this.state.style['size'] = Math.round(Math.max(0, Math.min(Math.min(bounds.width, pt.x - bounds.x), + Math.min(bounds.height, pt.y - bounds.y))) / factor); + })]; + + if (allowArcHandle && mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) + { + handles.push(createArcHandle(state)); + } + + return handles; + }; + }; + + function createArrowHandleFunction(maxSize) + { + return function(state) + { + return [createHandle(state, ['arrowWidth', 'arrowSize'], function(bounds) + { + var aw = Math.max(0, Math.min(1, mxUtils.getValue(this.state.style, 'arrowWidth', SingleArrowShape.prototype.arrowWidth))); + var as = Math.max(0, Math.min(maxSize, mxUtils.getValue(this.state.style, 'arrowSize', SingleArrowShape.prototype.arrowSize))); + + return new mxPoint(bounds.x + (1 - as) * bounds.width, bounds.y + (1 - aw) * bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['arrowWidth'] = Math.max(0, Math.min(1, Math.abs(bounds.y + bounds.height / 2 - pt.y) / bounds.height * 2)); + this.state.style['arrowSize'] = Math.max(0, Math.min(maxSize, (bounds.x + bounds.width - pt.x) / (bounds.width))); + })]; + }; + }; + + function createEdgeHandle(state, keys, start, getPosition, setPosition) + { + return createHandle(state, keys, function(bounds) + { + var pts = state.absolutePoints; + var n = pts.length - 1; + + var tr = state.view.translate; + var s = state.view.scale; + + var p0 = (start) ? pts[0] : pts[n]; + var p1 = (start) ? pts[1] : pts[n - 1]; + var dx = (start) ? p1.x - p0.x : p1.x - p0.x; + var dy = (start) ? p1.y - p0.y : p1.y - p0.y; + + var dist = Math.sqrt(dx * dx + dy * dy); + + var pt = getPosition.call(this, dist, dx / dist, dy / dist, p0, p1); + + return new mxPoint(pt.x / s - tr.x, pt.y / s - tr.y); + }, function(bounds, pt, me) + { + var pts = state.absolutePoints; + var n = pts.length - 1; + + var tr = state.view.translate; + var s = state.view.scale; + + var p0 = (start) ? pts[0] : pts[n]; + var p1 = (start) ? pts[1] : pts[n - 1]; + var dx = (start) ? p1.x - p0.x : p1.x - p0.x; + var dy = (start) ? p1.y - p0.y : p1.y - p0.y; + + var dist = Math.sqrt(dx * dx + dy * dy); + pt.x = (pt.x + tr.x) * s; + pt.y = (pt.y + tr.y) * s; + + setPosition.call(this, dist, dx / dist, dy / dist, p0, p1, pt, me); + }); + }; + + function createEdgeWidthHandle(state, start, spacing) + { + return createEdgeHandle(state, ['width'], start, function(dist, nx, ny, p0, p1) + { + var w = state.shape.getEdgeWidth() * state.view.scale + spacing; + + return new mxPoint(p0.x + nx * dist / 4 + ny * w / 2, p0.y + ny * dist / 4 - nx * w / 2); + }, function(dist, nx, ny, p0, p1, pt) + { + var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y)); + state.style['width'] = Math.round(w * 2) / state.view.scale - spacing; + }); + }; + + function ptLineDistance(x1, y1, x2, y2, x0, y0) + { + return Math.abs((y2 - y1) * x0 - (x2 - x1) * y0 + x2 * y1 - y2 * x1) / Math.sqrt((y2 - y1) * (y2 - y1) + (x2 - x1) * (x2 - x1)); + } + + var handleFactory = { + 'link': function(state) + { + var spacing = 10; + + return [createEdgeWidthHandle(state, true, spacing), createEdgeWidthHandle(state, false, spacing)]; + }, + 'flexArrow': function(state) + { + // Do not use state.shape.startSize/endSize since it is cached + var tol = state.view.graph.gridSize / state.view.scale; + var handles = []; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_STARTARROW, mxConstants.NONE) != mxConstants.NONE) + { + handles.push(createEdgeHandle(state, ['width', mxConstants.STYLE_STARTSIZE, mxConstants.STYLE_ENDSIZE], true, function(dist, nx, ny, p0, p1) + { + var w = (state.shape.getEdgeWidth() - state.shape.strokewidth) * state.view.scale; + var l = mxUtils.getNumber(state.style, mxConstants.STYLE_STARTSIZE, mxConstants.ARROW_SIZE / 5) * 3 * state.view.scale; + + return new mxPoint(p0.x + nx * (l + state.shape.strokewidth * state.view.scale) + ny * w / 2, + p0.y + ny * (l + state.shape.strokewidth * state.view.scale) - nx * w / 2); + }, function(dist, nx, ny, p0, p1, pt, me) + { + var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y)); + var l = mxUtils.ptLineDist(p0.x, p0.y, p0.x + ny, p0.y - nx, pt.x, pt.y); + + state.style[mxConstants.STYLE_STARTSIZE] = Math.round((l - state.shape.strokewidth) * 100 / 3) / 100 / state.view.scale; + state.style['width'] = Math.round(w * 2) / state.view.scale; + + // Applies to opposite side + if (mxEvent.isControlDown(me.getEvent())) + { + state.style[mxConstants.STYLE_ENDSIZE] = state.style[mxConstants.STYLE_STARTSIZE]; + } + + // Snaps to end geometry + if (!mxEvent.isAltDown(me.getEvent())) + { + if (Math.abs(parseFloat(state.style[mxConstants.STYLE_STARTSIZE]) - parseFloat(state.style[mxConstants.STYLE_ENDSIZE])) < tol / 6) + { + state.style[mxConstants.STYLE_STARTSIZE] = state.style[mxConstants.STYLE_ENDSIZE]; + } + } + })); + + handles.push(createEdgeHandle(state, ['startWidth', 'endWidth', mxConstants.STYLE_STARTSIZE, mxConstants.STYLE_ENDSIZE], true, function(dist, nx, ny, p0, p1) + { + var w = (state.shape.getStartArrowWidth() - state.shape.strokewidth) * state.view.scale; + var l = mxUtils.getNumber(state.style, mxConstants.STYLE_STARTSIZE, mxConstants.ARROW_SIZE / 5) * 3 * state.view.scale; + + return new mxPoint(p0.x + nx * (l + state.shape.strokewidth * state.view.scale) + ny * w / 2, + p0.y + ny * (l + state.shape.strokewidth * state.view.scale) - nx * w / 2); + }, function(dist, nx, ny, p0, p1, pt, me) + { + var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y)); + var l = mxUtils.ptLineDist(p0.x, p0.y, p0.x + ny, p0.y - nx, pt.x, pt.y); + + state.style[mxConstants.STYLE_STARTSIZE] = Math.round((l - state.shape.strokewidth) * 100 / 3) / 100 / state.view.scale; + state.style['startWidth'] = Math.max(0, Math.round(w * 2) - state.shape.getEdgeWidth()) / state.view.scale; + + // Applies to opposite side + if (mxEvent.isControlDown(me.getEvent())) + { + state.style[mxConstants.STYLE_ENDSIZE] = state.style[mxConstants.STYLE_STARTSIZE]; + state.style['endWidth'] = state.style['startWidth']; + } + + // Snaps to endWidth + if (!mxEvent.isAltDown(me.getEvent())) + { + if (Math.abs(parseFloat(state.style[mxConstants.STYLE_STARTSIZE]) - parseFloat(state.style[mxConstants.STYLE_ENDSIZE])) < tol / 6) + { + state.style[mxConstants.STYLE_STARTSIZE] = state.style[mxConstants.STYLE_ENDSIZE]; + } + + if (Math.abs(parseFloat(state.style['startWidth']) - parseFloat(state.style['endWidth'])) < tol) + { + state.style['startWidth'] = state.style['endWidth']; + } + } + })); + } + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ENDARROW, mxConstants.NONE) != mxConstants.NONE) + { + handles.push(createEdgeHandle(state, ['width', mxConstants.STYLE_STARTSIZE, mxConstants.STYLE_ENDSIZE], false, function(dist, nx, ny, p0, p1) + { + var w = (state.shape.getEdgeWidth() - state.shape.strokewidth) * state.view.scale; + var l = mxUtils.getNumber(state.style, mxConstants.STYLE_ENDSIZE, mxConstants.ARROW_SIZE / 5) * 3 * state.view.scale; + + return new mxPoint(p0.x + nx * (l + state.shape.strokewidth * state.view.scale) - ny * w / 2, + p0.y + ny * (l + state.shape.strokewidth * state.view.scale) + nx * w / 2); + }, function(dist, nx, ny, p0, p1, pt, me) + { + var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y)); + var l = mxUtils.ptLineDist(p0.x, p0.y, p0.x + ny, p0.y - nx, pt.x, pt.y); + + state.style[mxConstants.STYLE_ENDSIZE] = Math.round((l - state.shape.strokewidth) * 100 / 3) / 100 / state.view.scale; + state.style['width'] = Math.round(w * 2) / state.view.scale; + + // Applies to opposite side + if (mxEvent.isControlDown(me.getEvent())) + { + state.style[mxConstants.STYLE_STARTSIZE] = state.style[mxConstants.STYLE_ENDSIZE]; + } + + // Snaps to start geometry + if (!mxEvent.isAltDown(me.getEvent())) + { + if (Math.abs(parseFloat(state.style[mxConstants.STYLE_ENDSIZE]) - parseFloat(state.style[mxConstants.STYLE_STARTSIZE])) < tol / 6) + { + state.style[mxConstants.STYLE_ENDSIZE] = state.style[mxConstants.STYLE_STARTSIZE]; + } + } + })); + + handles.push(createEdgeHandle(state, ['startWidth', 'endWidth', mxConstants.STYLE_STARTSIZE, mxConstants.STYLE_ENDSIZE], false, function(dist, nx, ny, p0, p1) + { + var w = (state.shape.getEndArrowWidth() - state.shape.strokewidth) * state.view.scale; + var l = mxUtils.getNumber(state.style, mxConstants.STYLE_ENDSIZE, mxConstants.ARROW_SIZE / 5) * 3 * state.view.scale; + + return new mxPoint(p0.x + nx * (l + state.shape.strokewidth * state.view.scale) - ny * w / 2, + p0.y + ny * (l + state.shape.strokewidth * state.view.scale) + nx * w / 2); + }, function(dist, nx, ny, p0, p1, pt, me) + { + var w = Math.sqrt(mxUtils.ptSegDistSq(p0.x, p0.y, p1.x, p1.y, pt.x, pt.y)); + var l = mxUtils.ptLineDist(p0.x, p0.y, p0.x + ny, p0.y - nx, pt.x, pt.y); + + state.style[mxConstants.STYLE_ENDSIZE] = Math.round((l - state.shape.strokewidth) * 100 / 3) / 100 / state.view.scale; + state.style['endWidth'] = Math.max(0, Math.round(w * 2) - state.shape.getEdgeWidth()) / state.view.scale; + + // Applies to opposite side + if (mxEvent.isControlDown(me.getEvent())) + { + state.style[mxConstants.STYLE_STARTSIZE] = state.style[mxConstants.STYLE_ENDSIZE]; + state.style['startWidth'] = state.style['endWidth']; + } + + // Snaps to start geometry + if (!mxEvent.isAltDown(me.getEvent())) + { + if (Math.abs(parseFloat(state.style[mxConstants.STYLE_ENDSIZE]) - parseFloat(state.style[mxConstants.STYLE_STARTSIZE])) < tol / 6) + { + state.style[mxConstants.STYLE_ENDSIZE] = state.style[mxConstants.STYLE_STARTSIZE]; + } + + if (Math.abs(parseFloat(state.style['endWidth']) - parseFloat(state.style['startWidth'])) < tol) + { + state.style['endWidth'] = state.style['startWidth']; + } + } + })); + } + + return handles; + }, + 'swimlane': function(state) + { + var handles = [createHandle(state, [mxConstants.STYLE_STARTSIZE], function(bounds) + { + var size = parseFloat(mxUtils.getValue(state.style, mxConstants.STYLE_STARTSIZE, mxConstants.DEFAULT_STARTSIZE)); + + if (mxUtils.getValue(state.style, mxConstants.STYLE_HORIZONTAL, 1) == 1) + { + return new mxPoint(bounds.getCenterX(), bounds.y + Math.max(0, Math.min(bounds.height, size))); + } + else + { + return new mxPoint(bounds.x + Math.max(0, Math.min(bounds.width, size)), bounds.getCenterY()); + } + }, function(bounds, pt) + { + state.style[mxConstants.STYLE_STARTSIZE] = + (mxUtils.getValue(this.state.style, mxConstants.STYLE_HORIZONTAL, 1) == 1) ? + Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))) : + Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x))); + })]; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED)) + { + var size = parseFloat(mxUtils.getValue(state.style, mxConstants.STYLE_STARTSIZE, mxConstants.DEFAULT_STARTSIZE)); + handles.push(createArcHandle(state, size / 2)); + } + + return handles; + }, + 'label': createArcHandleFunction(), + 'ext': createArcHandleFunction(), + 'rectangle': createArcHandleFunction(), + 'triangle': createArcHandleFunction(), + 'rhombus': createArcHandleFunction(), + 'umlLifeline': function(state) + { + return [createHandle(state, ['size'], function(bounds) + { + var size = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'size', UmlLifeline.prototype.size)))); + + return new mxPoint(bounds.getCenterX(), bounds.y + size); + }, function(bounds, pt) + { + this.state.style['size'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))); + }, false)]; + }, + 'umlFrame': function(state) + { + var handles = [createHandle(state, ['width', 'height'], function(bounds) + { + var w0 = Math.max(UmlFrame.prototype.corner, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'width', UmlFrame.prototype.width))); + var h0 = Math.max(UmlFrame.prototype.corner * 1.5, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'height', UmlFrame.prototype.height))); + + return new mxPoint(bounds.x + w0, bounds.y + h0); + }, function(bounds, pt) + { + this.state.style['width'] = Math.round(Math.max(UmlFrame.prototype.corner, Math.min(bounds.width, pt.x - bounds.x))); + this.state.style['height'] = Math.round(Math.max(UmlFrame.prototype.corner * 1.5, Math.min(bounds.height, pt.y - bounds.y))); + }, false)]; + + return handles; + }, + 'process': function(state) + { + var handles = [createHandle(state, ['size'], function(bounds) + { + var size = Math.max(0, Math.min(0.5, parseFloat(mxUtils.getValue(this.state.style, 'size', ProcessShape.prototype.size)))); + + return new mxPoint(bounds.x + bounds.width * size, bounds.y + bounds.height / 4); + }, function(bounds, pt) + { + this.state.style['size'] = Math.max(0, Math.min(0.5, (pt.x - bounds.x) / bounds.width)); + })]; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) + { + handles.push(createArcHandle(state)); + } + + return handles; + }, + 'cross': function(state) + { + return [createHandle(state, ['size'], function(bounds) + { + var m = Math.min(bounds.width, bounds.height); + var size = Math.max(0, Math.min(1, mxUtils.getValue(this.state.style, 'size', CrossShape.prototype.size))) * m / 2; + + return new mxPoint(bounds.getCenterX() - size, bounds.getCenterY() - size); + }, function(bounds, pt) + { + var m = Math.min(bounds.width, bounds.height); + this.state.style['size'] = Math.max(0, Math.min(1, Math.min((Math.max(0, bounds.getCenterY() - pt.y) / m) * 2, + (Math.max(0, bounds.getCenterX() - pt.x) / m) * 2))); + })]; + }, + 'note': function(state) + { + return [createHandle(state, ['size'], function(bounds) + { + var size = Math.max(0, Math.min(bounds.width, Math.min(bounds.height, parseFloat( + mxUtils.getValue(this.state.style, 'size', NoteShape.prototype.size))))); + + return new mxPoint(bounds.x + bounds.width - size, bounds.y + size); + }, function(bounds, pt) + { + this.state.style['size'] = Math.round(Math.max(0, Math.min(Math.min(bounds.width, bounds.x + bounds.width - pt.x), + Math.min(bounds.height, pt.y - bounds.y)))); + })]; + }, + 'manualInput': function(state) + { + var handles = [createHandle(state, ['size'], function(bounds) + { + var size = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'size', ManualInputShape.prototype.size))); + + return new mxPoint(bounds.x + bounds.width / 4, bounds.y + size * 3 / 4); + }, function(bounds, pt) + { + this.state.style['size'] = Math.round(Math.max(0, Math.min(bounds.height, (pt.y - bounds.y) * 4 / 3))); + })]; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) + { + handles.push(createArcHandle(state)); + } + + return handles; + }, + 'dataStorage': function(state) + { + return [createHandle(state, ['size'], function(bounds) + { + var size = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'size', DataStorageShape.prototype.size)))); + + return new mxPoint(bounds.x + (1 - size) * bounds.width, bounds.getCenterY()); + }, function(bounds, pt) + { + this.state.style['size'] = Math.max(0, Math.min(1, (bounds.x + bounds.width - pt.x) / bounds.width)); + })]; + }, + 'callout': function(state) + { + var handles = [createHandle(state, ['size', 'position'], function(bounds) + { + var size = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'size', CalloutShape.prototype.size))); + var position = Math.max(0, Math.min(1, mxUtils.getValue(this.state.style, 'position', CalloutShape.prototype.position))); + var base = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'base', CalloutShape.prototype.base))); + + return new mxPoint(bounds.x + position * bounds.width, bounds.y + bounds.height - size); + }, function(bounds, pt) + { + var base = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'base', CalloutShape.prototype.base))); + this.state.style['size'] = Math.round(Math.max(0, Math.min(bounds.height, bounds.y + bounds.height - pt.y))); + this.state.style['position'] = Math.round(Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width)) * 100) / 100; + }), createHandle(state, ['position2'], function(bounds) + { + var position2 = Math.max(0, Math.min(1, mxUtils.getValue(this.state.style, 'position2', CalloutShape.prototype.position2))); + + return new mxPoint(bounds.x + position2 * bounds.width, bounds.y + bounds.height); + }, function(bounds, pt) + { + this.state.style['position2'] = Math.round(Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width)) * 100) / 100; + }), createHandle(state, ['base'], function(bounds) + { + var size = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'size', CalloutShape.prototype.size))); + var position = Math.max(0, Math.min(1, mxUtils.getValue(this.state.style, 'position', CalloutShape.prototype.position))); + var base = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'base', CalloutShape.prototype.base))); + + return new mxPoint(bounds.x + Math.min(bounds.width, position * bounds.width + base), bounds.y + bounds.height - size); + }, function(bounds, pt) + { + var position = Math.max(0, Math.min(1, mxUtils.getValue(this.state.style, 'position', CalloutShape.prototype.position))); + + this.state.style['base'] = Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x - position * bounds.width))); + })]; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) + { + handles.push(createArcHandle(state)); + } + + return handles; + }, + 'internalStorage': function(state) + { + var handles = [createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'dx', InternalStorageShape.prototype.dx))); + var dy = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'dy', InternalStorageShape.prototype.dy))); + + return new mxPoint(bounds.x + dx, bounds.y + dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x))); + this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))); + })]; + + if (mxUtils.getValue(state.style, mxConstants.STYLE_ROUNDED, false)) + { + handles.push(createArcHandle(state)); + } + + return handles; + }, + 'corner': function(state) + { + return [createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'dx', CornerShape.prototype.dx))); + var dy = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'dy', CornerShape.prototype.dy))); + + return new mxPoint(bounds.x + dx, bounds.y + dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(Math.max(0, Math.min(bounds.width, pt.x - bounds.x))); + this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))); + })]; + }, + 'tee': function(state) + { + return [createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'dx', TeeShape.prototype.dx))); + var dy = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'dy', TeeShape.prototype.dy))); + + return new mxPoint(bounds.x + (bounds.width + dx) / 2, bounds.y + dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(Math.max(0, Math.min(bounds.width / 2, (pt.x - bounds.x - bounds.width / 2)) * 2)); + this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))); + })]; + }, + 'singleArrow': createArrowHandleFunction(1), + 'doubleArrow': createArrowHandleFunction(0.5), + 'folder': function(state) + { + return [createHandle(state, ['tabWidth', 'tabHeight'], function(bounds) + { + var tw = Math.max(0, Math.min(bounds.width, mxUtils.getValue(this.state.style, 'tabWidth', FolderShape.prototype.tabWidth))); + var th = Math.max(0, Math.min(bounds.height, mxUtils.getValue(this.state.style, 'tabHeight', FolderShape.prototype.tabHeight))); + + if (mxUtils.getValue(this.state.style, 'tabPosition', FolderShape.prototype.tabPosition) == mxConstants.ALIGN_RIGHT) + { + tw = bounds.width - tw; + } + + return new mxPoint(bounds.x + tw, bounds.y + th); + }, function(bounds, pt) + { + var tw = Math.max(0, Math.min(bounds.width, pt.x - bounds.x)); + + if (mxUtils.getValue(this.state.style, 'tabPosition', FolderShape.prototype.tabPosition) == mxConstants.ALIGN_RIGHT) + { + tw = bounds.width - tw; + } + + this.state.style['tabWidth'] = Math.round(tw); + this.state.style['tabHeight'] = Math.round(Math.max(0, Math.min(bounds.height, pt.y - bounds.y))); + })]; + }, + 'document': function(state) + { + return [createHandle(state, ['size'], function(bounds) + { + var size = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'size', DocumentShape.prototype.size)))); + + return new mxPoint(bounds.x + 3 * bounds.width / 4, bounds.y + (1 - size) * bounds.height); + }, function(bounds, pt) + { + this.state.style['size'] = Math.max(0, Math.min(1, (bounds.y + bounds.height - pt.y) / bounds.height)); + })]; + }, + 'tape': function(state) + { + return [createHandle(state, ['size'], function(bounds) + { + var size = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'size', TapeShape.prototype.size)))); + + return new mxPoint(bounds.getCenterX(), bounds.y + size * bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['size'] = Math.max(0, Math.min(1, ((pt.y - bounds.y) / bounds.height) * 2)); + })]; + }, + 'offPageConnector': function(state) + { + return [createHandle(state, ['size'], function(bounds) + { + var size = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'size', OffPageConnectorShape.prototype.size)))); + + return new mxPoint(bounds.getCenterX(), bounds.y + (1 - size) * bounds.height); + }, function(bounds, pt) + { + this.state.style['size'] = Math.max(0, Math.min(1, (bounds.y + bounds.height - pt.y) / bounds.height)); + })]; + }, + 'step': createDisplayHandleFunction(StepShape.prototype.size, true, null, true, StepShape.prototype.fixedSize), + 'hexagon': createDisplayHandleFunction(HexagonShape.prototype.size, true, 0.5, true), + 'curlyBracket': createDisplayHandleFunction(CurlyBracketShape.prototype.size, false), + 'display': createDisplayHandleFunction(DisplayShape.prototype.size, false), + 'cube': createCubeHandleFunction(1, CubeShape.prototype.size, false), + 'card': createCubeHandleFunction(0.5, CardShape.prototype.size, true), + 'loopLimit': createCubeHandleFunction(0.5, LoopLimitShape.prototype.size, true), + 'trapezoid': createTrapezoidHandleFunction(0.5), + 'parallelogram': createTrapezoidHandleFunction(1) + }; + + // Exposes custom handles + mxGraph.createHandle = createHandle; + mxGraph.handleFactory = handleFactory; + + mxVertexHandler.prototype.createCustomHandles = function() + { + // Not rotatable means locked + if (this.state.view.graph.getSelectionCount() == 1) + { + if (this.graph.isCellRotatable(this.state.cell)) + // LATER: Make locked state independent of rotatable flag, fix toggle if default is false + //if (this.graph.isCellResizable(this.state.cell) || this.graph.isCellMovable(this.state.cell)) + { + var name = this.state.style['shape']; + + if (mxCellRenderer.defaultShapes[name] == null && + mxStencilRegistry.getStencil(name) == null) + { + name = mxConstants.SHAPE_RECTANGLE; + } + + var fn = handleFactory[name]; + + if (fn == null && this.state.shape != null && this.state.shape.isRoundable()) + { + fn = handleFactory[mxConstants.SHAPE_RECTANGLE]; + } + + if (fn != null) + { + return fn(this.state); + } + } + } + + return null; + }; + + mxEdgeHandler.prototype.createCustomHandles = function() + { + if (this.state.view.graph.getSelectionCount() == 1) + { + var name = this.state.style['shape']; + + if (mxCellRenderer.defaultShapes[name] == null && + mxStencilRegistry.getStencil(name) == null) + { + name = mxConstants.SHAPE_CONNECTOR; + } + + var fn = handleFactory[name]; + + if (fn != null) + { + return fn(this.state); + } + } + + return null; + } + } + else + { + // Dummy entries to avoid NPE in embed mode + mxGraph.createHandle = function() {}; + mxGraph.handleFactory = {}; + } + + var isoHVector = new mxPoint(1, 0); + var isoVVector = new mxPoint(1, 0); + + var alpha1 = mxUtils.toRadians(-30); + + var cos1 = Math.cos(alpha1); + var sin1 = Math.sin(alpha1); + + isoHVector = mxUtils.getRotatedPoint(isoHVector, cos1, sin1); + + var alpha2 = mxUtils.toRadians(-150); + + var cos2 = Math.cos(alpha2); + var sin2 = Math.sin(alpha2); + + isoVVector = mxUtils.getRotatedPoint(isoVVector, cos2, sin2); + + mxEdgeStyle.IsometricConnector = function (state, source, target, points, result) + { + var view = state.view; + var pt = (points != null && points.length > 0) ? points[0] : null; + var pts = state.absolutePoints; + var p0 = pts[0]; + var pe = pts[pts.length-1]; + + if (pt != null) + { + pt = view.transformControlPoint(state, pt); + } + + if (p0 == null) + { + if (source != null) + { + p0 = new mxPoint(source.getCenterX(), source.getCenterY()); + } + } + + if (pe == null) + { + if (target != null) + { + pe = new mxPoint(target.getCenterX(), target.getCenterY()); + } + } + + var a1 = isoHVector.x; + var a2 = isoHVector.y; + + var b1 = isoVVector.x; + var b2 = isoVVector.y; + + var elbow = mxUtils.getValue(state.style, 'elbow', 'horizontal') == 'horizontal'; + + if (pe != null && p0 != null) + { + var last = p0; + + function isoLineTo(x, y, ignoreFirst) + { + var c1 = x - last.x; + var c2 = y - last.y; + + // Solves for isometric base vectors + var h = (b2 * c1 - b1 * c2) / (a1 * b2 - a2 * b1); + var v = (a2 * c1 - a1 * c2) / (a2 * b1 - a1 * b2); + + if (elbow) + { + if (ignoreFirst) + { + last = new mxPoint(last.x + a1 * h, last.y + a2 * h); + result.push(last); + } + + last = new mxPoint(last.x + b1 * v, last.y + b2 * v); + result.push(last); + } + else + { + if (ignoreFirst) + { + last = new mxPoint(last.x + b1 * v, last.y + b2 * v); + result.push(last); + } + + last = new mxPoint(last.x + a1 * h, last.y + a2 * h); + result.push(last); + } + }; + + if (pt == null) + { + pt = new mxPoint(p0.x + (pe.x - p0.x) / 2, p0.y + (pe.y - p0.y) / 2); + } + + isoLineTo(pt.x, pt.y, true); + isoLineTo(pe.x, pe.y, false); + } + }; + + mxStyleRegistry.putValue('isometricEdgeStyle', mxEdgeStyle.IsometricConnector); + + var graphCreateEdgeHandler = mxGraph.prototype.createEdgeHandler; + mxGraph.prototype.createEdgeHandler = function(state, edgeStyle) + { + if (edgeStyle == mxEdgeStyle.IsometricConnector) + { + var handler = new mxElbowEdgeHandler(state); + handler.snapToTerminals = false; + + return handler; + } + + return graphCreateEdgeHandler.apply(this, arguments); + }; + + // Defines connection points for all shapes + IsoRectangleShape.prototype.constraints = []; + IsoCubeShape.prototype.constraints = []; + CalloutShape.prototype.constraints = []; + mxRectangleShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + mxEllipse.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), true), new mxConnectionConstraint(new mxPoint(1, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), new mxConnectionConstraint(new mxPoint(1, 0.5))]; + mxLabel.prototype.constraints = mxRectangleShape.prototype.constraints; + mxImageShape.prototype.constraints = mxRectangleShape.prototype.constraints; + mxSwimlane.prototype.constraints = mxRectangleShape.prototype.constraints; + PlusShape.prototype.constraints = mxRectangleShape.prototype.constraints; + NoteShape.prototype.constraints = mxRectangleShape.prototype.constraints; + CardShape.prototype.constraints = mxRectangleShape.prototype.constraints; + CubeShape.prototype.constraints = mxRectangleShape.prototype.constraints; + FolderShape.prototype.constraints = mxRectangleShape.prototype.constraints; + InternalStorageShape.prototype.constraints = mxRectangleShape.prototype.constraints; + DataStorageShape.prototype.constraints = mxRectangleShape.prototype.constraints; + TapeDataShape.prototype.constraints = mxEllipse.prototype.constraints; + OrEllipseShape.prototype.constraints = mxEllipse.prototype.constraints; + SumEllipseShape.prototype.constraints = mxEllipse.prototype.constraints; + LineEllipseShape.prototype.constraints = mxEllipse.prototype.constraints; + ManualInputShape.prototype.constraints = mxRectangleShape.prototype.constraints; + DelayShape.prototype.constraints = mxRectangleShape.prototype.constraints; + DisplayShape.prototype.constraints = mxRectangleShape.prototype.constraints; + LoopLimitShape.prototype.constraints = mxRectangleShape.prototype.constraints; + OffPageConnectorShape.prototype.constraints = mxRectangleShape.prototype.constraints; + mxCylinder.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.15, 0.05), false), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.85, 0.05), false), + new mxConnectionConstraint(new mxPoint(0, 0.3), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.7), true), + new mxConnectionConstraint(new mxPoint(1, 0.3), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.7), true), + new mxConnectionConstraint(new mxPoint(0.15, 0.95), false), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.85, 0.95), false)]; + UmlActorShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0.1), false), + new mxConnectionConstraint(new mxPoint(0.5, 0), false), + new mxConnectionConstraint(new mxPoint(0.75, 0.1), false), + new mxConnectionConstraint(new mxPoint(0, 1/3), false), + new mxConnectionConstraint(new mxPoint(0, 1), false), + new mxConnectionConstraint(new mxPoint(1, 1/3), false), + new mxConnectionConstraint(new mxPoint(1, 1), false), + new mxConnectionConstraint(new mxPoint(0.5, 0.5), false)]; + ComponentShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.3), true), + new mxConnectionConstraint(new mxPoint(0, 0.7), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + mxActor.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.25, 0.2), false), + new mxConnectionConstraint(new mxPoint(0.1, 0.5), false), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.75, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.9, 0.5), false), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true)]; + SwitchShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), false), + new mxConnectionConstraint(new mxPoint(0.5, 0.25), false), + new mxConnectionConstraint(new mxPoint(1, 0), false), + new mxConnectionConstraint(new mxPoint(0.25, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.75, 0.5), false), + new mxConnectionConstraint(new mxPoint(0, 1), false), + new mxConnectionConstraint(new mxPoint(0.5, 0.75), false), + new mxConnectionConstraint(new mxPoint(1, 1), false)]; + TapeShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.35), false), + new mxConnectionConstraint(new mxPoint(0, 0.5), false), + new mxConnectionConstraint(new mxPoint(0, 0.65), false), + new mxConnectionConstraint(new mxPoint(1, 0.35), false), + new mxConnectionConstraint(new mxPoint(1, 0.5), false), + new mxConnectionConstraint(new mxPoint(1, 0.65), false), + new mxConnectionConstraint(new mxPoint(0.25, 1), false), + new mxConnectionConstraint(new mxPoint(0.75, 0), false)]; + StepShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true)]; + mxLine.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.25, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.75, 0.5), false), + new mxConnectionConstraint(new mxPoint(1, 0.5), false)]; + LollipopShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 0), false), + new mxConnectionConstraint(new mxPoint(0.5, 1), false)]; + mxDoubleEllipse.prototype.constraints = mxEllipse.prototype.constraints; + mxRhombus.prototype.constraints = mxEllipse.prototype.constraints; + mxTriangle.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true)]; + mxHexagon.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.375, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.625, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.375, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.625, 1), true)]; + mxCloud.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.4, 0.1), false), + new mxConnectionConstraint(new mxPoint(0.16, 0.55), false), + new mxConnectionConstraint(new mxPoint(0.07, 0.4), false), + new mxConnectionConstraint(new mxPoint(0.31, 0.8), false), + new mxConnectionConstraint(new mxPoint(0.13, 0.77), false), + new mxConnectionConstraint(new mxPoint(0.8, 0.8), false), + new mxConnectionConstraint(new mxPoint(0.55, 0.95), false), + new mxConnectionConstraint(new mxPoint(0.875, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.96, 0.7), false), + new mxConnectionConstraint(new mxPoint(0.625, 0.2), false), + new mxConnectionConstraint(new mxPoint(0.88, 0.25), false)]; + ParallelogramShape.prototype.constraints = mxRectangleShape.prototype.constraints; + TrapezoidShape.prototype.constraints = mxRectangleShape.prototype.constraints; + DocumentShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true)]; + mxArrow.prototype.constraints = null; + TeeShape.prototype.constraints = null; + CornerShape.prototype.constraints = null; + CrossbarShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0), false), + new mxConnectionConstraint(new mxPoint(0, 0.5), false), + new mxConnectionConstraint(new mxPoint(0, 1), false), + new mxConnectionConstraint(new mxPoint(0.25, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.5, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.75, 0.5), false), + new mxConnectionConstraint(new mxPoint(1, 0), false), + new mxConnectionConstraint(new mxPoint(1, 0.5), false), + new mxConnectionConstraint(new mxPoint(1, 1), false)]; + + SingleArrowShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), false), + new mxConnectionConstraint(new mxPoint(1, 0.5), false)]; + DoubleArrowShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), false), + new mxConnectionConstraint(new mxPoint(1, 0.5), false)]; + CrossShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), false), + new mxConnectionConstraint(new mxPoint(1, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.5, 0), false), + new mxConnectionConstraint(new mxPoint(0.5, 1), false)]; + UmlLifeline.prototype.constraints = null; + OrShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.25), false), + new mxConnectionConstraint(new mxPoint(0, 0.5), false), + new mxConnectionConstraint(new mxPoint(0, 0.75), false), + new mxConnectionConstraint(new mxPoint(1, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.7, 0.1), false), + new mxConnectionConstraint(new mxPoint(0.7, 0.9), false)]; + XorShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.175, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.25, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.175, 0.75), false), + new mxConnectionConstraint(new mxPoint(1, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.7, 0.1), false), + new mxConnectionConstraint(new mxPoint(0.7, 0.9), false)]; + RequiredInterfaceShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), false), + new mxConnectionConstraint(new mxPoint(1, 0.5), false)]; + ProvidedRequiredInterfaceShape.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0, 0.5), false), + new mxConnectionConstraint(new mxPoint(1, 0.5), false)]; +})(); diff --git a/data/plugins/grafana-flowcharting/src/css/_chartist-settings.scss b/data/plugins/grafana-flowcharting/src/css/_chartist-settings.scss new file mode 100644 index 0000000000000..7e206e6550ab8 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/css/_chartist-settings.scss @@ -0,0 +1,88 @@ +// Scales for responsive SVG containers +$ct-scales: ((1), (15/16), (8/9), (5/6), (4/5), (3/4), (2/3), (5/8), (1/1.618), (3/5), (9/16), (8/15), (1/2), (2/5), (3/8), (1/3), (1/4)) !default; +$ct-scales-names: (ct-square, ct-minor-second, ct-major-second, ct-minor-third, ct-major-third, ct-perfect-fourth, ct-perfect-fifth, ct-minor-sixth, ct-golden-section, ct-major-sixth, ct-minor-seventh, ct-major-seventh, ct-octave, ct-major-tenth, ct-major-eleventh, ct-major-twelfth, ct-double-octave) !default; + +// Class names to be used when generating CSS +$ct-class-chart: ct-chart !default; +$ct-class-chart-line: ct-chart-line !default; +$ct-class-chart-bar: ct-chart-bar !default; +$ct-class-horizontal-bars: ct-horizontal-bars !default; +$ct-class-chart-pie: ct-chart-pie !default; +$ct-class-chart-donut: ct-chart-donut !default; +$ct-class-label: ct-label !default; +$ct-class-series: ct-series !default; +$ct-class-line: ct-line !default; +$ct-class-point: ct-point !default; +$ct-class-area: ct-area !default; +$ct-class-bar: ct-bar !default; +$ct-class-slice-pie: ct-slice-pie !default; +$ct-class-slice-donut: ct-slice-donut !default; +$ct-class-slice-donut-solid: ct-slice-donut-solid !default; +$ct-class-grid: ct-grid !default; +$ct-class-grid-background: ct-grid-background !default; +$ct-class-vertical: ct-vertical !default; +$ct-class-horizontal: ct-horizontal !default; +$ct-class-start: ct-start !default; +$ct-class-end: ct-end !default; + +// Container ratio +$ct-container-ratio: (1/1.618) !default; + +// Text styles for labels +$ct-text-color: rgba(0, 0, 0, 0.4) !default; +$ct-text-size: 0.75rem !default; +$ct-text-align: flex-start !default; +$ct-text-justify: flex-start !default; +$ct-text-line-height: 1; + +// Grid styles +$ct-grid-color: rgba(0, 0, 0, 0.2) !default; +$ct-grid-dasharray: 2px !default; +$ct-grid-width: 1px !default; +$ct-grid-background-fill: none !default; + +// Line chart properties +$ct-line-width: 4px !default; +$ct-line-dasharray: false !default; +$ct-point-size: 10px !default; +// Line chart point, can be either round or square +$ct-point-shape: round !default; +// Area fill transparency between 0 and 1 +$ct-area-opacity: 0.1 !default; + +// Bar chart bar width +$ct-bar-width: 10px !default; + +// Donut width (If donut width is to big it can cause issues where the shape gets distorted) +$ct-donut-width: 60px !default; + +// If set to true it will include the default classes and generate CSS output. If you're planning to use the mixins you +// should set this property to false +$ct-include-classes: true !default; + +// If this is set to true the CSS will contain colored series. You can extend or change the color with the +// properties below +$ct-include-colored-series: $ct-include-classes !default; + +// If set to true this will include all responsive container variations using the scales defined at the top of the script +$ct-include-alternative-responsive-containers: $ct-include-classes !default; + +// Series names and colors. This can be extended or customized as desired. Just add more series and colors. +$ct-series-names: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) !default; +$ct-series-colors: ( + #d70206, + #f05b4f, + #f4c63d, + #d17905, + #453d3f, + #59922b, + #0544d3, + #6b0392, + #f05b4f, + #dda458, + #eacf7d, + #86797d, + #b2c326, + #6188e2, + #a748ca +) !default; \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/src/css/flowchart.dark.scss b/data/plugins/grafana-flowcharting/src/css/flowchart.dark.scss new file mode 100644 index 0000000000000..e606a0be3c833 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/css/flowchart.dark.scss @@ -0,0 +1,767 @@ +div.flowchart-panel { + display: flex; + flex-direction: column; + height: 100%; + width: 100%; +} + +div.flowchart-panel__chart { + position: relative; + flex-grow: 1; + // top: 10px; + width: 100%; + height: 100%; + margin: 0; + // overflow: auto; +} + +table.flowchartTable-editor { + font-family: Arial, Helvetica, sans-serif; + border: 2px solid #161719; + background-color: #212124; + width: 90%; + height: 200px; + text-align: left; + border-collapse: collapse; +} + +table.flowchartTable-editor td, +table.flowchartTable-editor th { + border: 2px solid #161719; + padding: 2px 2px; +} +table.flowchartTable-editor tbody td { + font-size: 11px; + color: #e6e6e6; +} +table.flowchartTable-editor thead { + background: #2f2f32; + border-bottom: 2px solid #000000; +} +table.flowchartTable-editor thead th { + font-size: 12px; + font-weight: bold; + color: #33b5e5; + text-align: center; + border-left: 2px solid #171819; +} +table.flowchartTable-editor thead th:first-child { + border-left: none; +} + +table.flowchartTable-editor tfoot td { + font-size: 12px; +} + +hr { + margin-top: 1rem; + margin-bottom: 1rem; + border: 0; + border-top: 1px solid #333; +} + +div.rule-item { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + box-sizing: inherit; + text-decoration: none; + touch-action: manipulation; + display: block; + margin: 3px; + padding: 7px; + background: linear-gradient(135deg, #2f2f32, #262628); + box-shadow: -1px -1px 0 0 hsla(0, 0%, 100%, 0.1), 1px 1px 0 0 rgba(0, 0, 0, 0.3); + color: #d8d9da; +} + +div.rule-item:hover { + background: linear-gradient(135deg, #3d3d41, #262628); +} + +span.rule-extend { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + cursor: pointer; + color: #dad9d8; + box-sizing: inherit; +} + +span.rule-title { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + cursor: pointer; + color: #dad9d8; + box-sizing: inherit; +} + +span.rule-nav { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + cursor: pointer; + color: #d8d9da; + box-sizing: inherit; + float: right; +} + +div.tooltip-text { + display: block; + word-wrap:break-word; + max-width: 200px; + white-space: normal +} + +div.tooltip-metric { + margin: 5px 5px 5px 5px; +} + +div.tooltip-graph { + // margin: 5px 5px 5px 5px; +} + +div.tooltip-date { + margin-top:5px; + margin-bottom:5px; +} + + + +.ct-label { + fill: rgba(0, 0, 0, 0.4); + color: rgba(0, 0, 0, 0.4); + font-size: 0.75rem; + line-height: 1; +} + +.ct-chart-line .ct-label, +.ct-chart-bar .ct-label { + display: block; + display: -webkit-box; + display: -moz-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; +} + +.ct-chart-pie .ct-label, +.ct-chart-donut .ct-label { + dominant-baseline: central; +} + +.ct-label.ct-horizontal.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; +} + +.ct-label.ct-horizontal.ct-end { + -webkit-box-align: flex-start; + -webkit-align-items: flex-start; + -ms-flex-align: flex-start; + align-items: flex-start; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; +} + +.ct-label.ct-vertical.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-end; + -webkit-justify-content: flex-end; + -ms-flex-pack: flex-end; + justify-content: flex-end; + text-align: right; + text-anchor: end; +} + +.ct-label.ct-vertical.ct-end { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; +} + +.ct-chart-bar .ct-label.ct-horizontal.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + text-align: center; + text-anchor: start; +} + +.ct-chart-bar .ct-label.ct-horizontal.ct-end { + -webkit-box-align: flex-start; + -webkit-align-items: flex-start; + -ms-flex-align: flex-start; + align-items: flex-start; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + text-align: center; + text-anchor: start; +} + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; +} + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end { + -webkit-box-align: flex-start; + -webkit-align-items: flex-start; + -ms-flex-align: flex-start; + align-items: flex-start; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; +} + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start { + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: flex-end; + -webkit-justify-content: flex-end; + -ms-flex-pack: flex-end; + justify-content: flex-end; + text-align: right; + text-anchor: end; +} + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end { + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: end; +} + +.ct-grid { + stroke: rgba(0, 0, 0, 0.2); + stroke-width: 1px; + stroke-dasharray: 2px; +} + +.ct-grid-background { + fill: none; +} + +.ct-point { + stroke-width: 1px; + stroke-linecap: round; +} + +.ct-line { + fill: none; + stroke-width: 1px; +} + +.ct-area { + stroke: none; + fill-opacity: 0.1; +} + +.ct-bar { + fill: none; + stroke-width: 10px; +} + +.ct-slice-donut { + fill: none; + stroke-width: 60px; +} + +.ct-series-a .ct-point, +.ct-series-a .ct-line, +.ct-series-a .ct-bar, +.ct-series-a .ct-slice-donut { + stroke: #d70206; +} + +.ct-series-a .ct-slice-pie, +.ct-series-a .ct-slice-donut-solid, +.ct-series-a .ct-area { + fill: #d70206; +} + + +.ct-square { + display: block; + position: relative; + width: 100%; +} +.ct-square:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 100%; +} +.ct-square:after { + content: ''; + display: table; + clear: both; +} +.ct-square > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-minor-second { + display: block; + position: relative; + width: 100%; +} +.ct-minor-second:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 93.75%; +} +.ct-minor-second:after { + content: ''; + display: table; + clear: both; +} +.ct-minor-second > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-major-second { + display: block; + position: relative; + width: 100%; +} +.ct-major-second:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 88.8888888889%; +} +.ct-major-second:after { + content: ''; + display: table; + clear: both; +} +.ct-major-second > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-minor-third { + display: block; + position: relative; + width: 100%; +} +.ct-minor-third:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 83.3333333333%; +} +.ct-minor-third:after { + content: ''; + display: table; + clear: both; +} +.ct-minor-third > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-major-third { + display: block; + position: relative; + width: 100%; +} +.ct-major-third:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 80%; +} +.ct-major-third:after { + content: ''; + display: table; + clear: both; +} +.ct-major-third > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-perfect-fourth { + display: block; + position: relative; + width: 100%; +} +.ct-perfect-fourth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 75%; +} +.ct-perfect-fourth:after { + content: ''; + display: table; + clear: both; +} +.ct-perfect-fourth > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-perfect-fifth { + display: block; + position: relative; + width: 100%; +} +.ct-perfect-fifth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 66.6666666667%; +} +.ct-perfect-fifth:after { + content: ''; + display: table; + clear: both; +} +.ct-perfect-fifth > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-minor-sixth { + display: block; + position: relative; + width: 100%; +} +.ct-minor-sixth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 62.5%; +} +.ct-minor-sixth:after { + content: ''; + display: table; + clear: both; +} +.ct-minor-sixth > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-golden-section { + display: block; + position: relative; + width: 100%; +} +.ct-golden-section:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 61.804697157%; +} +.ct-golden-section:after { + content: ''; + display: table; + clear: both; +} +.ct-golden-section > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-major-sixth { + display: block; + position: relative; + width: 100%; +} +.ct-major-sixth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 60%; +} +.ct-major-sixth:after { + content: ''; + display: table; + clear: both; +} +.ct-major-sixth > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-minor-seventh { + display: block; + position: relative; + width: 100%; +} +.ct-minor-seventh:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 56.25%; +} +.ct-minor-seventh:after { + content: ''; + display: table; + clear: both; +} +.ct-minor-seventh > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-major-seventh { + display: block; + position: relative; + width: 100%; +} +.ct-major-seventh:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 53.3333333333%; +} +.ct-major-seventh:after { + content: ''; + display: table; + clear: both; +} +.ct-major-seventh > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-octave { + display: block; + position: relative; + width: 100%; +} +.ct-octave:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 50%; +} +.ct-octave:after { + content: ''; + display: table; + clear: both; +} +.ct-octave > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-major-tenth { + display: block; + position: relative; + width: 100%; +} +.ct-major-tenth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 40%; +} +.ct-major-tenth:after { + content: ''; + display: table; + clear: both; +} +.ct-major-tenth > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-major-eleventh { + display: block; + position: relative; + width: 100%; +} +.ct-major-eleventh:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 37.5%; +} +.ct-major-eleventh:after { + content: ''; + display: table; + clear: both; +} +.ct-major-eleventh > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-major-twelfth { + display: block; + position: relative; + width: 100%; +} +.ct-major-twelfth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 33.3333333333%; +} +.ct-major-twelfth:after { + content: ''; + display: table; + clear: both; +} +.ct-major-twelfth > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-double-octave { + display: block; + position: relative; + width: 100%; +} +.ct-double-octave:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 25%; +} +.ct-double-octave:after { + content: ''; + display: table; + clear: both; +} +.ct-double-octave > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-chart .ct-series.ct-series-a .ct-area { fill: rgb(34, 230, 27); } +.ct-chart .ct-series.ct-series-a .ct-line { stroke: rgb(34, 230, 27); } diff --git a/data/plugins/grafana-flowcharting/src/css/flowchart.light.scss b/data/plugins/grafana-flowcharting/src/css/flowchart.light.scss new file mode 100644 index 0000000000000..e606a0be3c833 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/css/flowchart.light.scss @@ -0,0 +1,767 @@ +div.flowchart-panel { + display: flex; + flex-direction: column; + height: 100%; + width: 100%; +} + +div.flowchart-panel__chart { + position: relative; + flex-grow: 1; + // top: 10px; + width: 100%; + height: 100%; + margin: 0; + // overflow: auto; +} + +table.flowchartTable-editor { + font-family: Arial, Helvetica, sans-serif; + border: 2px solid #161719; + background-color: #212124; + width: 90%; + height: 200px; + text-align: left; + border-collapse: collapse; +} + +table.flowchartTable-editor td, +table.flowchartTable-editor th { + border: 2px solid #161719; + padding: 2px 2px; +} +table.flowchartTable-editor tbody td { + font-size: 11px; + color: #e6e6e6; +} +table.flowchartTable-editor thead { + background: #2f2f32; + border-bottom: 2px solid #000000; +} +table.flowchartTable-editor thead th { + font-size: 12px; + font-weight: bold; + color: #33b5e5; + text-align: center; + border-left: 2px solid #171819; +} +table.flowchartTable-editor thead th:first-child { + border-left: none; +} + +table.flowchartTable-editor tfoot td { + font-size: 12px; +} + +hr { + margin-top: 1rem; + margin-bottom: 1rem; + border: 0; + border-top: 1px solid #333; +} + +div.rule-item { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + box-sizing: inherit; + text-decoration: none; + touch-action: manipulation; + display: block; + margin: 3px; + padding: 7px; + background: linear-gradient(135deg, #2f2f32, #262628); + box-shadow: -1px -1px 0 0 hsla(0, 0%, 100%, 0.1), 1px 1px 0 0 rgba(0, 0, 0, 0.3); + color: #d8d9da; +} + +div.rule-item:hover { + background: linear-gradient(135deg, #3d3d41, #262628); +} + +span.rule-extend { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + cursor: pointer; + color: #dad9d8; + box-sizing: inherit; +} + +span.rule-title { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + cursor: pointer; + color: #dad9d8; + box-sizing: inherit; +} + +span.rule-nav { + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); + font-family: Roboto, Helvetica Neue, Arial, sans-serif; + font-size: 13px; + line-height: 1.5; + -webkit-box-direction: normal; + cursor: pointer; + color: #d8d9da; + box-sizing: inherit; + float: right; +} + +div.tooltip-text { + display: block; + word-wrap:break-word; + max-width: 200px; + white-space: normal +} + +div.tooltip-metric { + margin: 5px 5px 5px 5px; +} + +div.tooltip-graph { + // margin: 5px 5px 5px 5px; +} + +div.tooltip-date { + margin-top:5px; + margin-bottom:5px; +} + + + +.ct-label { + fill: rgba(0, 0, 0, 0.4); + color: rgba(0, 0, 0, 0.4); + font-size: 0.75rem; + line-height: 1; +} + +.ct-chart-line .ct-label, +.ct-chart-bar .ct-label { + display: block; + display: -webkit-box; + display: -moz-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; +} + +.ct-chart-pie .ct-label, +.ct-chart-donut .ct-label { + dominant-baseline: central; +} + +.ct-label.ct-horizontal.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; +} + +.ct-label.ct-horizontal.ct-end { + -webkit-box-align: flex-start; + -webkit-align-items: flex-start; + -ms-flex-align: flex-start; + align-items: flex-start; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; +} + +.ct-label.ct-vertical.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-end; + -webkit-justify-content: flex-end; + -ms-flex-pack: flex-end; + justify-content: flex-end; + text-align: right; + text-anchor: end; +} + +.ct-label.ct-vertical.ct-end { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; +} + +.ct-chart-bar .ct-label.ct-horizontal.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + text-align: center; + text-anchor: start; +} + +.ct-chart-bar .ct-label.ct-horizontal.ct-end { + -webkit-box-align: flex-start; + -webkit-align-items: flex-start; + -ms-flex-align: flex-start; + align-items: flex-start; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + text-align: center; + text-anchor: start; +} + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-start { + -webkit-box-align: flex-end; + -webkit-align-items: flex-end; + -ms-flex-align: flex-end; + align-items: flex-end; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; +} + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-horizontal.ct-end { + -webkit-box-align: flex-start; + -webkit-align-items: flex-start; + -ms-flex-align: flex-start; + align-items: flex-start; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: start; +} + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-start { + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: flex-end; + -webkit-justify-content: flex-end; + -ms-flex-pack: flex-end; + justify-content: flex-end; + text-align: right; + text-anchor: end; +} + +.ct-chart-bar.ct-horizontal-bars .ct-label.ct-vertical.ct-end { + -webkit-box-align: center; + -webkit-align-items: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: flex-start; + -webkit-justify-content: flex-start; + -ms-flex-pack: flex-start; + justify-content: flex-start; + text-align: left; + text-anchor: end; +} + +.ct-grid { + stroke: rgba(0, 0, 0, 0.2); + stroke-width: 1px; + stroke-dasharray: 2px; +} + +.ct-grid-background { + fill: none; +} + +.ct-point { + stroke-width: 1px; + stroke-linecap: round; +} + +.ct-line { + fill: none; + stroke-width: 1px; +} + +.ct-area { + stroke: none; + fill-opacity: 0.1; +} + +.ct-bar { + fill: none; + stroke-width: 10px; +} + +.ct-slice-donut { + fill: none; + stroke-width: 60px; +} + +.ct-series-a .ct-point, +.ct-series-a .ct-line, +.ct-series-a .ct-bar, +.ct-series-a .ct-slice-donut { + stroke: #d70206; +} + +.ct-series-a .ct-slice-pie, +.ct-series-a .ct-slice-donut-solid, +.ct-series-a .ct-area { + fill: #d70206; +} + + +.ct-square { + display: block; + position: relative; + width: 100%; +} +.ct-square:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 100%; +} +.ct-square:after { + content: ''; + display: table; + clear: both; +} +.ct-square > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-minor-second { + display: block; + position: relative; + width: 100%; +} +.ct-minor-second:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 93.75%; +} +.ct-minor-second:after { + content: ''; + display: table; + clear: both; +} +.ct-minor-second > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-major-second { + display: block; + position: relative; + width: 100%; +} +.ct-major-second:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 88.8888888889%; +} +.ct-major-second:after { + content: ''; + display: table; + clear: both; +} +.ct-major-second > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-minor-third { + display: block; + position: relative; + width: 100%; +} +.ct-minor-third:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 83.3333333333%; +} +.ct-minor-third:after { + content: ''; + display: table; + clear: both; +} +.ct-minor-third > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-major-third { + display: block; + position: relative; + width: 100%; +} +.ct-major-third:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 80%; +} +.ct-major-third:after { + content: ''; + display: table; + clear: both; +} +.ct-major-third > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-perfect-fourth { + display: block; + position: relative; + width: 100%; +} +.ct-perfect-fourth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 75%; +} +.ct-perfect-fourth:after { + content: ''; + display: table; + clear: both; +} +.ct-perfect-fourth > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-perfect-fifth { + display: block; + position: relative; + width: 100%; +} +.ct-perfect-fifth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 66.6666666667%; +} +.ct-perfect-fifth:after { + content: ''; + display: table; + clear: both; +} +.ct-perfect-fifth > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-minor-sixth { + display: block; + position: relative; + width: 100%; +} +.ct-minor-sixth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 62.5%; +} +.ct-minor-sixth:after { + content: ''; + display: table; + clear: both; +} +.ct-minor-sixth > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-golden-section { + display: block; + position: relative; + width: 100%; +} +.ct-golden-section:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 61.804697157%; +} +.ct-golden-section:after { + content: ''; + display: table; + clear: both; +} +.ct-golden-section > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-major-sixth { + display: block; + position: relative; + width: 100%; +} +.ct-major-sixth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 60%; +} +.ct-major-sixth:after { + content: ''; + display: table; + clear: both; +} +.ct-major-sixth > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-minor-seventh { + display: block; + position: relative; + width: 100%; +} +.ct-minor-seventh:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 56.25%; +} +.ct-minor-seventh:after { + content: ''; + display: table; + clear: both; +} +.ct-minor-seventh > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-major-seventh { + display: block; + position: relative; + width: 100%; +} +.ct-major-seventh:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 53.3333333333%; +} +.ct-major-seventh:after { + content: ''; + display: table; + clear: both; +} +.ct-major-seventh > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-octave { + display: block; + position: relative; + width: 100%; +} +.ct-octave:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 50%; +} +.ct-octave:after { + content: ''; + display: table; + clear: both; +} +.ct-octave > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-major-tenth { + display: block; + position: relative; + width: 100%; +} +.ct-major-tenth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 40%; +} +.ct-major-tenth:after { + content: ''; + display: table; + clear: both; +} +.ct-major-tenth > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-major-eleventh { + display: block; + position: relative; + width: 100%; +} +.ct-major-eleventh:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 37.5%; +} +.ct-major-eleventh:after { + content: ''; + display: table; + clear: both; +} +.ct-major-eleventh > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-major-twelfth { + display: block; + position: relative; + width: 100%; +} +.ct-major-twelfth:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 33.3333333333%; +} +.ct-major-twelfth:after { + content: ''; + display: table; + clear: both; +} +.ct-major-twelfth > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-double-octave { + display: block; + position: relative; + width: 100%; +} +.ct-double-octave:before { + display: block; + float: left; + content: ''; + width: 0; + height: 0; + padding-bottom: 25%; +} +.ct-double-octave:after { + content: ''; + display: table; + clear: both; +} +.ct-double-octave > svg { + display: block; + position: absolute; + top: 0; + left: 0; +} + +.ct-chart .ct-series.ct-series-a .ct-area { fill: rgb(34, 230, 27); } +.ct-chart .ct-series.ct-series-a .ct-line { stroke: rgb(34, 230, 27); } diff --git a/data/plugins/grafana-flowcharting/src/flowchartHandler.js b/data/plugins/grafana-flowcharting/src/flowchartHandler.js new file mode 100644 index 0000000000000..1681101450edb --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/flowchartHandler.js @@ -0,0 +1,419 @@ +/* eslint-disable prefer-destructuring */ +import Flowchart from './flowchart_class'; + +/** + * Class FlowchartHandler + */ +export default class FlowchartHandler { + /** + *Creates an instance of FlowchartHandler to handle flowchart + * @param {*} $scope - angular scope + * @param {*} elem - angular elem + * @param {*} ctrl - ctrlPanel + * @param {*} data - Empty data to store + * @memberof FlowchartHandler + */ + constructor($scope, elem, ctrl, data) { + u.log(1, 'FlowchartHandler.constructor()'); + u.log(0, 'FlowchartHandler.constructor() data', data); + this.$scope = $scope || null; + this.$elem = elem.find('.flowchart-panel__chart'); + this.ctrl = ctrl; + this.flowcharts = []; + this.data = data; + this.firstLoad = true; + this.changeSourceFlag = false; + this.changeOptionFlag = true; + this.changeDataFlag = false; + this.changedRuleFlag = false; + this.defaultXml = '7X1tl5pIt/avyTqfMgsBO90fabFt+gh2t5qOfnkWIo0oirdiI/z6s1+qoFCTdDKZycx67smaCAVVtWvva79WaT4YnfWxt/O3Czedh8kHXZsfPxj2B13/dHUNf2NDwQ3tqzY3RLt4zk2tumEYl6Fo1ETrIZ6H+8aLWZomWbxtNgbpZhMGWaPN3+3SvPnaa5o0Z936UXjWMAz85Lz1JZ5nC2691j/V7fdhHC3kzK2rG36y9uXLYiX7hT9Pc6XJ6H4wOrs0zfhqfeyECfJO8oX73X3laUXYLtxk7+mgX3GPNz85iMUJwrJCrhZo3OJlBrIMyxS73m7DXbwOs3Cntj/Wjbf5Is7C4dYPsGcOb0DbIlsncNeCy9c4STppku5oCuOV/oP2fbZLV6Hy5FrDP9UTye42tkje4YDnCxe8eAt3WXhUmgQjemEKtO4KeEU8bX8y/xA4FLgEpPJ9Xku5JUW3UCR8Jdp8AayoGrzmPVwI9n9FFMb3RbFLD5t5OBdr/hfyuCU5JTh8rf2NDDbfweBFup4d9v9O5ho3eoO5FbNV7hrX59xttX4Fe/Xvsxd6gI0Ov89ef79lw/0aHxHv/0h+t5pYBn6fsfv6ApavfwGz2+esnYOLErfpLlukUbrxk27delsbD2RP/U4/TbeCKcswywrhb/1DljaFApzaFV9Ef7qZ4M0fbXlrH9WHdiHuLkji61J7l4z26WEXiIULs5n5uyjMmpqOPPmmIHdh4mfxW9OtX5KL6PqYxkBJBQBTP0XATXMIJkr0OpFuRca7BH79ewVey3iiPvumwH9CKcNjnFUAg2sFX3BXz4Y3crJ3gUTGOb8DJVda0ywbp9aWCT1DyTncrk/gJuPoXw+3m38S3LR/H9w+/Ua4tT81owDz6ufg1jb/Nut29f8X3CqITZQnfwZuF3yg8fegrTIVEm2f9Heh7SdAIs3mvyno+RMoaf1yo6T/NpTcXJ84LvMXgWS8D3eD2RJzBV1L/FmYfFAyjwo5pkKaQJWCoghAsj0VQ1N+m3QT/lDSUBWf/JmcRrvMWqlIp9lE+521h59IJ+BWYdxlbXtHNUIWhhbh0QelOikLidaqKKR/P+v76UThNDts4x9sTzeZ0s7/XZaj+RVBngvsLxDIt2GcxJsV3y+yDEucFo6j30VxtjjM/gjSNdz4SQSLKbB557/6G//ja5LmwcLfZfEmEprPRVIe667xWIv3SDJyJTlE8eYDlkV38HePR6Pe8Nd85+cE7vU2CY8htsQ+zLjG3ps5dpPjwvXM34fYluJ4ohpMC5rt/HgXh/umnl7NrJfR/ew/L+OZNRldvxRGoX389E3dlRiM11SzvUX5xQHYd2TiY7qPsxiRac/SLAM+GbfE3Vs/WEXkGi7VFOQYVhJH2DdDV3FekqApLdmqyRa4nvuZD1LiW/1u/wYMvj0CzPXO472nT4tbc/ZyPASlFvv3z1pgp299Y27Mi7bhFu23YB28uUsrdzs35XwdxM79Ipv12uVgs9j7L+3d4/Ahnd8/54P4+g16Gf1NUPbXN8W0uD4ORqt23+D3nPjW8F+eNd/WYm/5FDu9ReK/zNO5vL+fbqdf5p2ZEd04SytyO5bu0f8O0PsQe+ZktI8ee8/JdOMqLY59xPGTyZeH+2B9t/JfPh/mndvtFMadDNW+Tse6Doznt6BzW857N3n/xXub9W6Kx6GznK6nq4Ft5UDlG1yX0y9PSEXcL821YywWg8LCmaifc+9pM8PKJvrNfmY4N07srafLydG1LVjVzXq68RJclTt03h7jyTLsdT/h3H39uJ2tPy+C1byYvDxvpy9tTX0+6yWH6ctd8Ww8LKa9JJltnqKwh332V/79QzJdarGjd4FTK6Q57y9XhmevjoOOE4WjLtJ7ABpM13aOsA7Thffdjtl27ag1GDnQLzpyv27hjVYm0Bf5L7DOtaOuE+g85fFjL2hyXPO/PO+no3Y8efF2U+Phbf7SXj12bkR7zbNHoHtiPEXTdbKfAU9m65vDtJrXW8w200XQummMA7Sn05dk49+jDCZ6EzkTXD/wXKM1wnqyBp/t/G2qrEW5Blqet/PeMXlcHRfhy+fCsbvXfUO0KXII1p+Xc8TI/cObr4+BznZr1stBtskK0A5aMH91Y+C5TfwtPRtQCvfBZoX0HrxyUgJtBT73YtPwlvB2b7qFMW6czedi1olgFSteB8jMKwMYw9FO1l30l5OWVz4dQQOiuZ6s5j3UjEnZX7qaa090GLWBr6B3p/nfo7twItSM2ciF8a3StQFDcQ5jPpmeHbS8FzdzC7MY2E9tdxTsQQszbwgYKgPdw/vYLN2lW8Aao/5ofBiMXFjf2Ojb44M7GuvuqGtOSgvfA9qB/lEUwXXh2l0N3tt7HVOHsVvwXgTj5l7Z1QejaE/X9gpwOV8QZkfu0RvmgNXABB6YYAlyxyarkMHznHhur4A+GHv0VHj2A1znBT0bPbW90d2+P5oc3PKpPRgBL+1bfA5YAXmUQdtdPi/FveaWjgbzwXq69D7w1uh3NODPGMaJjm5sIU9y4BXoVBfGdQ6gP62B3QVZavDc1LyRo7vLyd7tuTim7i0tA+gg/lV9S2cPz46AB83paMBzK4e1l26c13OtYc3ISzvSwB61iJeSRtuJ4BqwsgK+RcTjwWhsuiNoV+eo2oEnSKs9LrylowMPlie0SRoKd0i8INrc4Um7Op7gIfAI5HK3B3wjPW0YH9aOtDuwFgfW4pTeS56BvNsDe1V65Rj49gS0WMD7cTkZWYCdbgmYQRkaAzuA9T6hfEnOfXjuIU+Q7o4GOHC0wejJHPS6aPeObtlt9W3UnQhsYKQJbOQOvTtpocwB10fQFcCapbsvuY56Ax4J9CZvAb9BlpP2zLZw/twtgUf29HvYg/ECpFkfdPC5VaLcPf07NMEcuB7XBlqWE2Nmg42wQYeANlgb0PIEeIa51jzOwAY94vmBV11tMFSwPzRB96KC+Ql4Bf0bENZR/4CfMEfffgIcW7CebjmjubsazuGiHPSKD+Dd85zWL3ViRDoBa3wCHX86ugWu1wWsBVqN0XEL9AGuV6DHgI9CaV/npAtgE8AOuKgL0B/sFNoV4JdjOyDziQly1mDd8KyrA8+0k3Z1vJz5Y5keyNDruTn3Q/q6Gukl6APoSj4QOPUwUhmNI9TRkzGBDuuImGSdAF4suyXqBPLRI/8dgZ2wlL4OPEceO4jP0qFxGuuWY+b4HmClQFsINuGMxzAHyllHnXa/JgOYzyvnqgyKyzLA+S/JAK71n5HBE9po0LUIfMCTYt8cgR+2R4A7De0R8QvxC88dGsPNYV3tM5t5cczaZio0CpvZhXEctpmiL/gaaTNLsCMnslHGbOJYsf1BWdl+1Bfo54IOv8f+uDbo5fKpLezPEX20u0a/iWvqot3OyP+PwEeXEfqzI6wHbQmv156gzS4dW9FNxjOs3Wl5OuEZxwOaIk3wDPwhzDsaC50ew/pc06F+K6Bz1QZ5o08+emiTy4WwLRbGnxraH/jMBz2iLcdrmHvv3qd1DILx6npyEvMpER5ERZAXlCZmIj+WB/+pVFZuHJsnFeOzykNbP89zZdufKzz8XOq7jDCV/ENkwHFK80ScXt5dSHbr3LPKcx/8N38Y7OJtViexa86FKT8lBmULHx+HGyzjYM94k4U7P6BaGB5P4kE581WyaX+7TSCFxORzL1PnGfb4zyEOVgkOHexCP6PsWEyyO2CWvKE6G71BWbi/wcu1v6RsfIaHl8Jd3YmWsz9st+mOB5tRz2xPANjM090f78ix9X9fjv2uUohaAvm4C7dIa4qCvZsl6QxB4++xWqXfxQFJSqLo/yVplAK8gNQ7rHjgKSesg/1Z1fxRzWxdNzdzbs5PdFxdnaum+Utqgj9ZleKCEcviTBHrcpKfJHgQD5aWHqSK/OcQIpEd5FG8P/gJVuXp1k9Cqiilm0rdsLC/22d8A4OgVuAq4wBH3aSkNhmJV8sX4S4krQmRuz7d7AEL4Rz0Q+uQLvJM4XELopTT0uCgANRh7u8Xs9TfzfckgmxRT5yFagksZVSRnaFiEBbOQK2R+OCQZIddeKKW/9VAqYESP1swpL9X+UyjeRywUsbvOcZPv0/78jz/I968Jocj4u4rSujQC/at6g6zeE06EXJZlmCL5Vu8DPcAEXZVqFULQHmCDxawZmTHLkblEeAXOqwlqT/fv8f5tP6LfYl9IbnZPwD87U/66WnYa+PCjpR5wftc/Qr8nx8w/PQbtqT+iecO29efTkTz3mO0f9vW1HaHAy/Cw56D8wtG6LF6pTJD6B7Tbbj5KLatQbQFaMgaH67TDWqPCK/J0lBMwA048iqmAGEXR/EGggtk2OwQJ9hIofKQrEGSHsjlD+MNzcChMt5syZCIsFvX0Cx1KIagCBx3vPwN20aePt1F0FBWQf7Cp5wAZL3lUFxdYR1MQAMCYJcKni58aYLf2HBW2cU8hEQA+LGrQx6O/YGW9QHYUcBCQNeMowXAcqp0YJPmYkSKjvwEN6+Zsx+qIwEqCTz42ofkBv4n2mMIruD9OaCUOJm+fpC5CHMC59ZG6A7C9RbWQJEaLC5uLhZfCBJ/F78Wp2v/H6Q1SmHVG59lAapzCDA44iEaCFmmgjIeg+QIn54vmNUBqg4CDXcoaf9EnFeMeznAPgSbiyMsMFibq/wg8l85gvvfwwzoA2PxLld2/V9PJjyZYgB+vy+70k8NZks7t5jmBYP5OxMp3Gon63lmOqsnrO+vu5D0ewMjNXfk9+lrlnPuwrv5a3/FKlJJVKgryCsI9/u6t2gHI/dBVDZEy9jt80X3uVJzUJA83a2U3qfpzb9QM76/i5/M1nfxrDfOJuu7pa/Pi5nx+UB7fevPhty/GNhj07FxL2V1wD3L+TpJ5trDG+9lWmCq25qNf1mO3TVp92751B4MTdyF/aFzAo/LYz758pw6vacbZdS1JmjoGl4ZHbAG6mAtehllbjk5DDqWAbOV/VHQ7i/dyCtXB1eHZ6MJUqFNCk3zOib0t7J6VHqr0EovNk3RM6M2Y1L3LK3Ms59wBvW9SPSlWX27q9ejIo9c3ZXziTe5t2MrvY3J0Vuu4P75Cri09l+OezpTgPsWpdVyYsDbbT3u4/3tYt6LxD6s4PIoMAYd0wAqI6ZSU+fJxNxMJdbPR09Ff5ns61H7I9fA3VD89GKrcGG9uGvr2BMT1md6NnB7aOleGRzc2NIHo+Aw+NKoCq+mQLPbc2Nl1NKU+8q4hwzcHBfe0AQ8dXMX5OeuUTarVn/5GWveuYdSGHUPgx7wLdaAdica4J7YUGvVowKdQFeU95fjbDCKgA6Q03ICo8D8Ha2Fu4r9kUDFCHdAnJPPhxTWSZKpRwVsUE/Ehnhb8vLo4j5ObPHnZoL7NAdvTdgDGp8it3xC7pgDWlvQVjgAUiYacedoacFTt8WIxFU/L/ujMe7mgHZVsxBd/RFwaGgWxCn4nC8dBVvAQ51kjfsUhSUw1uwhP32bVtqelHImsY5YO+GA7CHnnsdatVJBZ9bkyMknSrN0AfV5oUgLepBcbbAZL9HRA70Y9PLCtcesTdyeEQ9fYAZeU15zoJakylcnErLUa9lbQoLUI5JSbH4+pDATPE+WcqZLHGiMIFGj93G/lnlPdHodrZZWbGqSZvxUOABPQrCW8hSLo0/XUzx9odg4sGy4o4v0FKBrJWgErqcQEsMTFrTDrtI6Rr7iHhzu6x9xz4j39VzcNwcNcQ/evZsJfTu4Q9YnPIMBWC8Jtx1uU2ilkXDHd0WjBjADfLZYK0D2Q5zxDnALo3dQShPR1s0GtHKkQiMqTkcF+cb8BGmiEe5p7+7Io/Eo+AyRR/YMZy8I20gRaFBwULQA7JRH1h6t2Tgi7BkwYgkcwV3Goaah7YbeR+QnrKtN73WkradZW2hPVEuIb49htS4iHd5yWkizC1oMb5dAD8zoAs0rRn5s6oJjQF9EMgHaAQtPjVF5hV6BPBqzRgyxJ123PEI68BjlzfYLJBREQGcbeFySNerQTKaqBSBD3CuMYbQOSsk5oq54NljpL24BvEX6S7Q6/SVaSdC9oVUCFo649yjsF+Jb4St4rSNaDPL6wHHgM6HFw93B2GIUEX+tFtIIPh7QZYk+NBO0gXbcT1QMjJ6OfTo3owlUCwyS/JELFskf7wm74nmFFdaGMy0g/PGILHO6FrwiunCl8polQ9c6YRytYYzaYqlaQLImeiLWJephik+hEZW+RUwz4pvvWecI34UqLRdP2miiJ/BpfjUbahD/EK0GWhJCPNNbktXDE16gT6hTgOW2RJ5qXfC8wAo9Cq5e9Hba3GahNrLEOoxLnl0jzSHufXH5TEOs2ldcIdLEsqaRmV8j9P9iRJQx7r6TzcXTJ3T6C/WtTRrEa214Q8Fx4h/xkjAqOFLiWS9xLfFJdA3ofdQ30PiCbZtiBzooGXoqMNjVySoi3V8klhEnVr3qF1cjnHaa+FBHRW47aFHa5AN4ZaTnqJWTkuwZY5j5XNsp5idqB9mzhocR1oX0R9gD5NdnwEAEdHtXM5AxcAJQj6f47tAPNLB6gdaCrIeKelP4A3V1rD+x5GutX0FR66Jqs5j7pJW0ektYbvImGlkU0t5KB7OaAo0p0BkTDfuKT4k33JvtKNl+0jUrG3TErMxHxafxyIJ+Fa+kw4uSR8PVk/5EZMV7sjd7TEZWtyD6yacxCud4mgWsuxITQozF1pj4x15Y8m8j0U76xJawQOtCSBP0k5RhJm95xleKcKT1QLteW0MaAZ8XjFFNsVuawC3yt6vagSF7atUDf9Pv0rrIzlb85YjvTqH1srVWcEGWr5rxorWWfFftQFfqTFFbRSviCKJbeRO6Bg0WEQj0mdAz1AqBFcVqo1YKq1JFOtKa0Iy17WUeskaLEbtR7XmsE1qJN0s8u/OwZI/M1gZjkxMrWcC7x6C8qOXaiSVkf8XIoZVpJkTpdVSn+DPxHJGUAp5F9Mb+txlnSUtYr5hWyLPQczpTW84qf+Utub2yEfRctVlsncF7l7W8z7wj81RSsEb7GiAe2qQtbIla6qjcCshuhRT9Uv4OmedCRr5Z7VeFrYqFTRaxAs/uqFogvR2sPKh1HXknvB9cQ5YxkPEW638uYsNGNNrAQFbPrZlf1SF4B3XIlbErz85YQL4u1TjLK2SW7ugchWHEael1JEk4hmhuIjWDbRrM5lG24XDdojBVH4uxFEbByy7Gr+y7KO6D6DM2jxOin6N2oWM62yqB35g4R1QofBWrg9XCE5SQJuM9Wj1G64w8TcM6AmiAiIgxfrEkvQZiRB2VcigRgVHEmxHSX1yhM6SNtEIRI+puR1zrEXlz4Detq2G1s4HIJkTOwmhijlRZhrCMwmpG8l2y8uzHLsdZ9BZLpsaEsAXMDbQBEkUiumT5M7pKFVkyVuXops40OHpwIf92CQcPe+kjEAtYySJ9IwRS34Z1mUjfyV5a1DUU78yjV75Nq7y8oJv6NWMX8WYVRYjche5ry61VuSrxlH2b9GNshRq6pWqoyPXkKGJ15A2JXtba2tsM5IicqzUiTUdYC7bnjHQRA3Zk1GGpkR3pP0fuHD0Lf5I3pCV4yXkWX6M1rtpzXiFjVkb6Lo3EOY7Umkb8SvohYmjIY8cc9ZK94nimEdNivEL6hh7JkTa4aOoWU++YMosE/QLtu+OMI6bonqJMH/EKMfVEzfRJU4SHh2y6EWeBRCIZFVGdgFHFK68kQkiqYrEj5d2IyCpqOuMrtxroY+scgaXH8b/gDmsERcSitkGcEdhoZMeBaBU9xUiyUoI2qz9alCKnEZoqbPHS0zkHn0I8PlY0Fr2zh98voPofjZTLeJTouJd+K5JrglHwnG2Qc9aEFjRZnkZvanTJ9QHS9XvJGdJKXfJ7UqjxWCUP8g+n0iLc5ZX34FoR6xzlflTRzbGNNPhF1owsmT8SDtTsmLStkFI7tyiRamkUe1F58gxPGHtNLSC+RjL6UWyTiP+pDmzxO7qr1glOI08FA1VmQ3RG3+XdtzjWyOIOdQ3FUnmoyahYGSWvY3GR1ddxw2mUQauQUUaFKtGD2tmi03oQVRP0QBRHTIo6yj+vPHEeKK4L3gM5kx7RCBpxGu2v3VMMfI379y57SY4oOfLBimPJOU9VJ+Dn6M9ORoXIQUQ5ld4jJmW2ztFdPfpZlH8pJrQqmxSUMpZ9iipd0/OWy5akfR45i8jTjkgT6lEHo4elUndtxKNVPsgyr3NHGrXWbonxhh2oJFHxqsrYz/hnkP9irhWynsHVgMaoNf/qGlZH8M1wq0hC+CiFO1UmR3yd2eNj076CPypribiyaiZWKquLqwJjMlEnqnPYWtdOtOA9NUBR+TvLlGReeFLTrHKqSFaahVe0RAWVeGvUa5H8jiJFFpczowbuVLThKMhr8VmI93j0+y3aV1FJcxVvSFUHUW0mSXD0zm/SLqdWeT+ZfXL8hZIcy1yBvGIzk/eo0sh8xXqxqL1UdSpZi+FqA12LurIlo9LyRGPLrpxbR63lmGssMzsZA9SzbdyqgoejYb1F5IsNz11lljnX1wLOtykiwlV+buyVuqVb8j7pye6ohntvDe0qXPruKuWYIipkXPFOAlMr7GGTw6L2z1UmR7WwIsLGyJ5iYZl1KZmCrLxzbCFjekfsVdQ1VZWzbl275So85+bUbpmTkqJZQoKIcgyKieka7TXFetpJxlWOgaPzkwxbseNK3bzW42aFS2SH57tGlT2uspPOVzJwWU1W8yOhmSf+sKoIynyu0nQ1e9FqGUjr+iz95SliZSSyoV3j44llUuzyaZXr3Nsp0Yv0e7GS8Vd+T9qeKppS7NBdqdgfyu+afBWek2NLsSdR1xXdqKbdumDHn0tpx5v5hpR1uMad2S7vHACy8FuSVXbDFqygfXZC1SSnvIh95anv5kqK0HSKoiPahxrKvELuaExI39zqLIZbVT9FxtZuWgLBN6zNFpX/45qkBm3CM2iiMsAWjKsH5CFot6tZIRA7hhnrlawAyIqwqIOQreS9P8+eyMo3rZrOV1BNIlLPkSwdlAJGgUeKYCi64r1JtpHEv0gZKZI1B7F7R7kHck3h6xdXVk/K+qzL3VIgiPUIz3dU8SjtForYHflM+Ul5Uikk2TI9tfVwhE90jzKr8vBbkkO566LkcdWuzIkllPmZJmoPAukYd+A+CmFYB0weAXmZB5nuQNTHpS2QWYPC12EVudKeaVCIaJX3xuSOl8nVI4FlrsxyTU/oGlofFQMVOmQ+dhS7wyK75joDV7ZETY0xLmfkXH/UkNZaZk9RpvC12gkQqFJ2ZlypDWx5+BQT2oLihK9ceW3V9XLcaZ2WomIhaLGqzLaWFlUVZSx9tntM0hEo4phoUkpOcJ2hmS8TJ2TlUGTk1mkeB9onKtliZ06TUemx0ruNK7yhKzSFKosNv16P2jwN9cinxPBc1K/5teHW6fcDjNbZmUrj04Wvx/zOL6f96E8mVQcYb37oAKPyDYLL5xB/xQnH86OLl083np3yDeYb4w88qfuKx7x3gh38RbX6uyj4uUiDVXJYxxt/f9iGu7W/o+P8roUiwYO9+l0Lz3be7TPgGh31/fPIkr+6Ln8vtX1+Vle/8CvW+vVfiashLPD89P5fgjVD+ybWgIsZ/rJhuI9L8etyKPst/noeLb19+6GNXyPHHzPc8+8a0m9qCwAm4Wt2AZcV8vZbPwCaRvQDiR/N859Ru+rin69jVPxYHvaSP87YUr8Gg9RGib/fi+vmbzQCv+Lgw3d+1/AHvkF78rt6Rvv82+3VafAGnH6jmRJoaXy//etn8E/Q0/omev51lkr7rqUKDvsMQZNu+JuKH9PX1zgIP31kxH1U7dTjLp0fguzjPA0Oa+AxfUvkF9kt40r/ruEyLiDN+EuRZqsrrb+Yc8AvU/nJX4jDb3+t879W7Ie+iqy9w4pd/WVWDJrqf5OGf5W1/od9jO7/AQ=='; + this.xgraph = undefined; + this.$container = undefined; + this.onMapping = { + active: false, // boolean if pointer mapping is active + object: undefined, // ojb to return id of mapping + id: undefined // id of dom + }; + + this.import(this.data); + + // Events Render + ctrl.events.on('render', () => { + this.render(); + }); + + this.mousedownTimeout = 0; + this.mousedown = 0; + + document.body.onmousedown = () => { + this.mousedown = 0; + window.clearInterval(this.mousedownTimeout); + this.mousedownTimeout = window.setInterval(() => { + this.mousedown += 1; + }, 200); + }; + + document.body.onmouseup = () => { + this.mousedown = 0; + window.clearInterval(this.mousedownTimeout); + }; + } + + /** + * import data into + * + * @param {Object} obj + * @memberof FlowchartHandler + */ + import(obj) { + u.log(1, 'FlowchartHandler.import()'); + u.log(0, 'FlowchartHandler.import() obj', obj); + this.flowcharts = []; + if (obj !== undefined && obj !== null && obj.length > 0) { + obj.forEach(map => { + const container = this.createContainer(); + const newData = {}; + const fc = new Flowchart(map.name, map.xml, container, this.ctrl, newData); + fc.import(map); + this.flowcharts.push(fc); + this.data.push(newData); + }); + } + } + + /** + * Get flowchart in index position + * + * @param {Number} index + * @returns {Flowchart} + * @memberof FlowchartHandler + */ + getFlowchart(index) { + return this.flowcharts[index]; + } + + /** + * Return array of flowchart + * + * @returns {Array} Array of flowchart + * @memberof FlowchartHandler + */ + getFlowcharts() { + return this.flowcharts; + } + + /** + *Return number of flowchart + * + * @returns {number} Nulber of flowchart + * @memberof FlowchartHandler + */ + countFlowcharts() { + if (this.flowcharts !== undefined && Array.isArray(this.flowcharts)) + return this.flowcharts.length; + return 0; + } + + /** + *Create a div container for graph + * + * @returns {DOM} + * @memberof FlowchartHandler + */ + createContainer() { + const $container = $( + `
` + ); + this.$elem.html($container); + return $container[0]; + } + + /** + *Add a flowchart + * + * @param {string} name + * @memberof FlowchartHandler + */ + addFlowchart(name) { + u.log(1, 'FlowchartHandler.addFlowchart()'); + const container = this.createContainer(); + const data = {}; + const flowchart = new Flowchart(name, this.defaultXml, container, this.ctrl, data); + this.data.push(data); + this.flowcharts.push(flowchart); + } + + /** + *Render for draw + * + * @memberof FlowchartHandler + */ + render() { + u.log(1, 'flowchartHandler.render()'); + // not repeat render if mouse down + this.optionsFlag = true; + if (!this.mousedown) { + // SOURCE + if (this.changeSourceFlag) { + this.load(); + this.changeSourceFlag = false; + this.changeRuleFlag = true; + this.optionsFlag = true; + } + // OPTIONS + if (this.changeOptionFlag) { + this.setOptions(); + this.changeOptionFlag = false; + this.optionsFlag = true; + } + // RULES or DATAS + if (this.changeRuleFlag || this.changeDataFlag) { + const rules = this.ctrl.rulesHandler.getRules(); + const series = this.ctrl.series; + + // if (this.changeRuleFlag) { + // this.updateStates(rules); + // this.changeRuleFlag = false; + // } + // this.setStates(rules, series); + // this.applyStates(); + + // Change to async to optimize + this.async_refreshStates(rules,series); + this.changeDataFlag = false; + this.optionsFlag = false; + } + + // OTHER : Resize, OnLoad + if (this.optionsFlag || this.firstLoad) { + this.applyOptions(); + this.optionsFlag = false; + this.firstLoad = false; + } + } + } + + /** + *Flag source change + * + * @memberof FlowchartHandler + */ + sourceChanged() { + this.changeSourceFlag = true; + } + + /** + *Flag options change + * + * @memberof FlowchartHandler + */ + optionChanged() { + this.changeOptionFlag = true; + } + + /** + *Flag rule change + * + * @memberof FlowchartHandler + */ + ruleChanged() { + this.changeRuleFlag = true; + } + + /** + *Flag data change + * + * @memberof FlowchartHandler + */ + dataChanged() { + this.changeDataFlag = true; + } + + /** + *Refresh flowchart then graph + * + * @memberof FlowchartHandler + */ + applyOptions() { + u.log(1, `FlowchartHandler.applyOptions()`); + this.flowcharts.forEach(flowchart => { + flowchart.applyOptions(); + }); + } + + /** + *Call refreshStates asynchronously + * + * @param {*} rules + * @param {*} series + * @memberof FlowchartHandler + */ + async_refreshStates(rules,series) { + this.refreshStates(rules,series); + } + + /** + *Refresh rules according new rules or data + * + * @param {*} rules + * @param {*} series + * @memberof FlowchartHandler + */ + refreshStates(rules,series) { + if (this.changeRuleFlag) { + this.updateStates(rules); + this.changeRuleFlag = false; + } + this.setStates(rules, series); + this.applyStates(); + } + + refresh() { + this.flowcharts.forEach(flowchart => { + flowchart.refresh(); + }); + } + + /** + * Change states of cell according to rules and series + * + * @memberof FlowchartHandler + */ + setStates(rules, series) { + this.flowcharts.forEach(flowchart => { + flowchart.setStates(rules, series); + }); + } + + updateStates(rules) { + this.flowcharts.forEach(flowchart => { + flowchart.updateStates(rules); + }); + } + + /** + * Apply state of cell after setStates + * + * @memberof FlowchartHandler + */ + applyStates() { + this.flowcharts.forEach(flowchart => { + flowchart.applyStates(); + }); + this.refresh(); + } + + /** + *Apply and set options + * + * @memberof FlowchartHandler + */ + setOptions() { + this.flowcharts.forEach(flowchart => { + flowchart.setOptions(); + }); + } + + /** + *(re)draw graph + * + * @memberof FlowchartHandler + */ + draw() { + u.log(1, `FlowchartHandler.draw()`); + this.flowcharts.forEach(flowchart => { + flowchart.redraw(); + }); + } + + /** + *(re)load graph + * + * @memberof FlowchartHandler + */ + load() { + u.log(1, `FlowchartHandler.load()`); + this.flowcharts.forEach(flowchart => { + flowchart.reload(); + }); + } + + /** + *Active option link/map + * + * @param {Object} objToMap + * @memberof FlowchartHandler + */ + setMap(objToMap) { + const flowchart = this.getFlowchart(0); + this.onMapping.active = true; + this.onMapping.object = objToMap; + this.onMapping.id = objToMap.getId(); + this.onMapping.$scope = this.$scope; + flowchart.setMap(this.onMapping); + } + + /** + *Desactivate option + * + * @memberof FlowchartHandler + */ + unsetMap() { + const flowchart = this.getFlowchart(0); + this.onMapping.active = false; + this.onMapping.object = undefined; + this.onMapping.id = ''; + flowchart.unsetMap(); + } + + /** + *Return true if mapping object is active + * + * @param {properties} objToMap + * @returns true - true if mapping mode + * @memberof FlowchartHandler + */ + isMapping(objToMap) { + if (objToMap === undefined || objToMap == null) return this.onMapping.active; + if (this.onMapping.active === true && objToMap === this.onMapping.object) return true; + return false; + } + + listenMessage(event) { + // if (event.origin !== urlEditor) return; + // when editor is open + let index = this.currentFlowchartIndex; + if (event.data === 'ready') { + // send xml + event.source.postMessage(this.flowcharts[index].data.xml, event.origin); + } else { + if (this.onEdit && event.data !== undefined && event.data.length > 0) { + this.flowcharts[index].redraw(event.data); + this.sourceChanged(); + this.$scope.$apply(); + this.render(); + } + if ((this.onEdit && event.data !== undefined) || event.data.length === 0) { + this.editorWindow.close(); + this.onEdit = false; + window.removeEventListener('message', this.listenMessage.bind(this), false); + } + } + } + + /** + *Open graph in draw.io + * + * @param {number} index - index of flowchart + * @memberof FlowchartHandler + */ + openDrawEditor(index) { + const urlEditor = this.getFlowchart(index).getUrlEditor(); + this.currentFlowchartIndex = index; + const theme = this.getFlowchart(index).getThemeEditor(); + const urlParams = `${urlEditor}?embed=1&spin=1&libraries=1&ui=${theme}`; + this.editorWindow = window.open(urlParams, 'MxGraph Editor', 'width=1280, height=720'); + this.onEdit = true; + window.addEventListener('message', this.listenMessage.bind(this), false); + } +} diff --git a/data/plugins/grafana-flowcharting/src/flowchart_class.js b/data/plugins/grafana-flowcharting/src/flowchart_class.js new file mode 100644 index 0000000000000..dc0b6b0f0e626 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/flowchart_class.js @@ -0,0 +1,359 @@ +import XGraph from './graph_class'; +import StateHandler from './statesHandler'; + +/** + *Flowchart handler + * + * @export + * @class Flowchart + */ +export default class Flowchart { + constructor(name, xmlGraph, container, ctrl, data) { + u.log(1, `flowchart[${name}].constructor()`); + u.log(0, `flowchart[${name}].constructor() data`, data); + this.data = data; + this.data.name = name; + this.data.xml = xmlGraph; + this.data.download = false; + this.container = container; + this.xgraph = undefined; + this.stateHandler = undefined; + this.ctrl = ctrl; + this.templateSrv = ctrl.templateSrv; + this.import(data); + } + + /** + *Import data object in current flowchart + * + * @param {Object} obj + * @memberof Flowchart + */ + import(obj) { + u.log(1, `flowchart[${this.data.name}].import()`); + u.log(0, `flowchart[${this.data.name}].import() obj`, obj); + this.data.download = (obj.download !== undefined ? obj.download : false); + if (obj.source) this.data.type = obj.source.type; + else this.data.type = obj.type || this.data.type || 'xml'; + if (obj.source) this.data.xml = obj.source.xml.value; + else this.data.xml = obj.xml || this.data.xml || ''; + if (obj.source) this.data.url = obj.source.url.value; + else this.data.url = (obj.url !== undefined ? obj.url : 'http://:/'); + if (obj.options) this.data.zoom = obj.options.zoom; + else this.data.zoom = obj.zoom || '100%'; + if (obj.options) this.data.center = obj.options.center; + else this.data.center = obj.center !== undefined ? obj.center : true; + if (obj.options) this.data.scale = obj.options.scale; + else this.data.scale = obj.scale !== undefined ? obj.scale : true; + if (obj.options) this.data.lock = obj.options.lock; + else this.data.lock = obj.lock !== undefined ? obj.lock : true; + if (obj.options) this.data.allowDrawio = false; + else this.data.allowDrawio = obj.allowDrawio !== undefined ? obj.allowDrawio : false; + if (obj.options) this.data.tooltip = obj.options.tooltip; + else this.data.tooltip = obj.tooltip !== undefined ? obj.tooltip : true; + if (obj.options) this.data.grid = obj.options.grid; + else this.data.grid = obj.grid !== undefined ? obj.grid : false; + if (obj.options) this.data.bgColor = obj.options.bgColor; + else this.data.bgColor = obj.bgColor; + this.data.editorUrl = obj.editorUrl !== undefined ? obj.editorUrl : "https://www.draw.io"; + this.data.editorTheme = obj.editorTheme !== undefined ? obj.editorTheme : "dark"; + this.init(); + } + + /** + * Return data without functions to save json in grafana + * + * @returns {Object} Data object + * @memberof Flowchart + */ + getData() { + return this.data; + } + + /** + *Update states of flowchart/graph + * + * @param {*} rules + * @memberof Flowchart + */ + updateStates(rules) { + // if (this.stateHandler !== undefined) this.stateHandler.updateStates(rules); + // this.stateHandler.prepare(); + rules.forEach(rule => { + rule.states = this.stateHandler.getStatesForRule(rule); + rule.states.forEach(state => { + state.unsetState(); + }); + }); + } + + /** + *Initialisation of flowchart class + * + * @memberof Flowchart + */ + init() { + u.log(1, `flowchart[${this.data.name}].init()`); + if (this.xgraph === undefined) + this.xgraph = new XGraph(this.container, this.data.type, this.getContent()); + if (this.data.xml !== undefined && this.data.xml !== null) { + if (this.data.allowDrawio) this.xgraph.allowDrawio(true); + else this.xgraph.allowDrawio(false); + this.setOptions(); + this.xgraph.drawGraph(); + if (this.data.tooltip) this.xgraph.tooltipGraph(true); + if (this.data.scale) this.xgraph.scaleGraph(true); + else this.xgraph.zoomGraph(this.data.zoom); + if (this.data.center) this.xgraph.centerGraph(true); + if (this.data.lock) this.xgraph.lockGraph(true); + this.stateHandler = new StateHandler(this.xgraph, this.ctrl); + } else { + u.log(3, 'XML Graph not defined'); + } + } + + getStateHandler() { + return this.stateHandler; + } + + getXGraph() { + return this.xgraph; + } + + setStates(rules, series) { + u.log(1, `flowchart[${this.data.name}].setStates()`); + u.log(0, `flowchart[${this.data.name}].setStates() rules`, rules); + u.log(0, `flowchart[${this.data.name}].setStates() series`, series); + if (rules === undefined) u.log(3, "Rules shoudn't be null"); + if (series === undefined) u.log(3, "Series shoudn't be null"); + this.stateHandler.setStates(rules, series); + } + + setOptions() { + this.setScale(this.data.scale); + this.setCenter(this.data.center); + this.setGrid(this.data.grid); + this.setTooltip(this.data.tooltip); + this.setLock(this.data.lock); + this.setZoom(this.data.zoom); + this.setBgColor(this.data.bgColor); + } + + + + applyStates() { + u.log(1, `flowchart[${this.data.name}].applyStates()`); + this.stateHandler.applyStates(); + } + + applyOptions() { + u.log(1, `flowchart[${this.data.name}].refresh()`); + u.log(0, `flowchart[${this.data.name}].refresh() data`, this.data); + this.xgraph.applyGraph(this.width, this.height); + } + + refresh() + { + this.xgraph.refresh(); + } + + redraw(xmlGraph) { + u.log(1, `flowchart[${this.data.name}].redraw()`); + if (xmlGraph !== undefined) { + this.data.xml = xmlGraph; + this.xgraph.setXmlGraph(this.getXml(true)); + } else { + u.log(2, 'XML Content not defined'); + this.xgraph.setXmlGraph(this.getXml(true)); + } + this.applyOptions(); + } + + reload() { + u.log(1, `flowchart[${this.data.name}].reload()`); + if (this.xgraph !== undefined && this.xgraph !== null) { + this.xgraph.destroyGraph(); + this.xgraph = undefined; + this.init(); + } + else this.init(); + } + + setLock(bool) { + this.data.lock = bool; + this.xgraph.lock = bool; + } + + lock(bool) { + if (bool !== undefined) this.data.lock = bool; + this.xgraph.lockGraph(this.data.lock); + } + + setTooltip(bool) { + this.data.tooltip = bool; + this.xgraph.tooltip = bool; + } + + tooltip(bool) { + if (bool !== undefined) this.data.tooltip = bool; + this.xgraph.tooltipGraph(this.data.tooltip); + } + + setScale(bool) { + this.data.scale = bool; + this.xgraph.scale = bool; + } + + setBgColor(bgColor) { + this.data.bgColor = bgColor; + this.xgraph.bgColor = bgColor; + } + + bgColor(bgColor) { + this.data.bgColor = bgColor; + if (bgColor) this.xgraph.bgGraph(bgColor); + } + + scale(bool) { + u.log(1, 'Flowchart.scale()'); + if (bool !== undefined) this.data.scale = bool; + this.xgraph.scaleGraph(this.data.scale); + } + + setCenter(bool) { + this.data.center = bool; + this.xgraph.center = bool; + } + + getNamesByProp(prop) { + return this.xgraph.getOrignalCells(prop); + } + + getXml(replaceVarBool) { + u.log(1, `flowchart[${this.data.name}].getXml()`); + if (!replaceVarBool) return this.data.xml; + return this.templateSrv.replaceWithText(this.data.xml); + } + + getCsv(replaceVarBool) { + u.log(1, `flowchart[${this.data.name}].getXml()`); + if (!replaceVarBool) return this.data.csv; + return this.templateSrv.replaceWithText(this.data.csv); + } + + getUrlEditor() { + return this.data.editorUrl; + } + + getThemeEditor() { + return this.data.editorTheme; + } + + /** + *Get Source of graph (csv|xml) or get content from url + * + * @returns + * @memberof Flowchart + */ + getContent() { + u.log(1, `flowchart[${this.data.name}].getContent()`); + if (this.data.download) { + let content = this.loadContent(this.data.url); + if (content !== null) { + return content; + } else return ''; + } else { + if (this.data.type === 'xml') return this.getXml(true); + if (this.data.type === 'csv') return this.getCsv(true); + } + } + + loadContent(url) { + u.log(1, `flowchart[${this.data.name}].loadContent()`); + var req = mxUtils.load(url); + if (req.getStatus() === 200) { + return req.getText(); + } else { + u.log(3, 'Cannot load ' + url, req.getStatus()); + return null; + } + } + + renameId(oldId, newId) { + this.xgraph.renameId(oldId, newId); + } + + applyModel() { + this.xmlGraph = this.xgraph.getXmlModel(); + this.redraw(this.xmlGraph); + } + + center(bool) { + if (bool !== undefined) this.data.center = bool; + this.xgraph.centerGraph(this.data.center); + } + + setZoom(percent) { + this.data.zoom = percent; + this.xgraph.zoomPercent = percent; + } + + zoom(percent) { + if (percent !== undefined) this.data.percent = percent; + this.xgraph.zoomGraph(this.data.percent); + } + + setGrid(bool) { + this.data.grid = bool; + this.xgraph.grid = bool; + } + + grid(bool) { + if (bool !== undefined) this.data.grid = bool; + this.xgraph.gridGraph(this.data.grid); + } + + setWidth(width) { + this.width = width; + } + + setHeight(height) { + this.height = height; + } + + setXml(xml) { + this.data.xml = xml; + } + + minify() { + this.data.xml = u.minify(this.data.xml); + } + + prettify() { + this.data.xml = u.prettify(this.data.xml); + } + + decode() { + if (u.isencoded(this.data.xml)) this.data.xml = u.decode(this.data.xml, true, true, true); + } + + encode() { + if (!u.isencoded(this.data.xml)) this.data.xml = u.encode(this.data.xml, true, true, true); + } + + getContainer() { + return this.container; + } + + setMap(onMappingObj) { + u.log(1, `flowchart[${this.data.name}].setMap()`); + const container = this.getContainer(); + this.xgraph.setMap(onMappingObj); + container.scrollIntoView(); + container.focus(); + } + + unsetMap() { + this.xgraph.unsetMap(); + } +} diff --git a/data/plugins/grafana-flowcharting/src/flowchart_ctrl.js b/data/plugins/grafana-flowcharting/src/flowchart_ctrl.js new file mode 100644 index 0000000000000..ab261964aa9f9 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/flowchart_ctrl.js @@ -0,0 +1,180 @@ +// eslint-disable-next-line import/no-unresolved +import { MetricsPanelCtrl } from 'app/plugins/sdk'; +// eslint-disable-next-line import/no-unresolved +import TimeSeries from 'app/core/time_series2'; +// eslint-disable-next-line import/no-unresolved +import kbn from 'app/core/utils/kbn'; +import { mappingOptionsTab } from './mapping_options'; +import { flowchartOptionsTab } from './flowchart_options'; +import { inspectOptionsTab } from './inspect_options'; +import RulesHandler from './rulesHandler'; +import FlowchartHandler from './flowchartHandler'; + +const u = require('./utils'); + +window.u = window.u || u; + +class FlowchartCtrl extends MetricsPanelCtrl { + constructor($scope, $injector, $rootScope, templateSrv) { + super($scope, $injector); + this.version = '0.5.0'; + this.$rootScope = $rootScope; + this.$scope = $scope; + this.templateSrv = templateSrv; + this.unitFormats = kbn.getUnitFormats(); + this.changedSource = true; + this.changedData = true; + this.changedOptions = true; + this.rulesHandler = undefined; + this.flowchartHandler = undefined; + this.series = []; + this.panelDefaults = { + newFlag: true, + format: 'short', + valueName: 'current', + rulesData: [], + flowchartsData: [], + }; + + _.defaults(this.panel, this.panelDefaults); + this.panel.graphId = `flowchart_${this.panel.id}`; + this.containerDivId = `container_${this.panel.graphId}`; + + // events + this.events.on('render', this.onRender.bind(this)); + this.events.on('refresh', this.onRefresh.bind(this)); + this.events.on('data-received', this.onDataReceived.bind(this)); + this.events.on('data-error', this.onDataError.bind(this)); + this.events.on('data-snapshot-load', this.onDataReceived.bind(this)); + this.events.on('init-edit-mode', this.onInitEditMode.bind(this)); + this.events.on('init-panel-actions', this.onInitPanelActions.bind(this)); + this.events.on('template-variable-value-updated', this.onVarChanged.bind(this)); + this.dashboard.events.on('template-variable-value-updated', this.onVarChanged.bind(this), $scope); + $rootScope.onAppEvent('template-variable-value-updated', this.onVarChanged.bind(this), $scope); + } + + // + // EVENTS FCT + // + onInitEditMode() { + this.addEditorTab('Flowchart', flowchartOptionsTab, 2); + this.addEditorTab('Mapping', mappingOptionsTab, 3); + this.addEditorTab('Inspect', inspectOptionsTab, 4); + } + + onRefresh() { + u.log(1, 'FlowchartCtrl.onRefresh()'); + this.onRender(); + } + + onVarChanged() { + u.log(1, 'FlowchartCtrl.onVarChanged()'); + this.flowchartHandler.sourceChanged(); + this.flowchartHandler.render(); + } + + onRender() { + u.log(1, 'FlowchartCtrl.onRender()'); + } + + onDataReceived(dataList) { + u.log(1, 'FlowchartCtrl.onDataReceived()'); + u.log(0, 'FlowchartCtrl.onDataReceived() dataList', dataList); + this.series = dataList.map(this.seriesHandler.bind(this)); + u.log(0, 'FlowchartCtrl.onDataReceived() this.series', dataList); + this.flowchartHandler.dataChanged(); + this.render(); + } + + onDataError() { + this.series = []; + this.render(); + } + + onInitPanelActions(actions) { + actions.push({ + text: 'Export SVG', + click: 'ctrl.exportSVG()', + }); + } + + // + // FUNCTIONS + // + link(scope, elem, attrs, ctrl) { + u.log(1, 'FlowchartCtrl.link()'); + + // RULES + const newRulesData = []; + this.rulesHandler = new RulesHandler(scope, newRulesData); + if (this.panel.version === undefined && this.panel.styles !== undefined) { + this.rulesHandler.import(this.panel.styles); + delete this.panel.styles; + } else this.rulesHandler.import(this.panel.rulesData); + if (this.panel.newFlag && this.rulesHandler.countRules() === 0) this.rulesHandler.addRule('.*'); + this.panel.rulesData = newRulesData; + + // FLOWCHART + const newFlowchartsData = []; + this.flowchartHandler = new FlowchartHandler(scope, elem, ctrl, newFlowchartsData); + if (this.panel.version === undefined && this.panel.flowchart !== undefined) { + this.flowchartHandler.import([this.panel.flowchart]); + delete this.panel.flowchart; + } else this.flowchartHandler.import(this.panel.flowchartsData); + if (this.panel.newFlag && this.flowchartHandler.countFlowcharts() === 0) this.flowchartHandler.addFlowchart('Main'); + this.panel.flowchartsData = newFlowchartsData; + + // Versions + this.panel.newFlag = false; + this.panel.version = this.version; + } + + exportSVG() { + const scope = this.$scope.$new(true); + scope.panel = 'table'; + this.publishAppEvent('show-modal', { + templateHtml: '', + scope, + modalClass: 'modal--narrow', + }); + } + + setUnitFormat(subItem) { + this.panel.format = subItem.value; + this.refresh(); + } + + getVariables() { + if (this.templateSrv !== undefined && this.templateSrv !== null) { + return _.map(this.templateSrv.variables, variable => `\${${variable.name}}`); + } + return null; + } + + // + // Series + // + + seriesHandler(seriesData) { + u.log(1, 'FlowchartCtrl.seriesHandler()'); + const series = new TimeSeries({ + datapoints: seriesData.datapoints, + alias: seriesData.target, + unit: seriesData.unit, + }); + series.flotpairs = series.getFlotPairs(this.panel.nullPointMode); + const datapoints = seriesData.datapoints || []; + if (datapoints && datapoints.length > 0) { + const last = datapoints[datapoints.length - 1][1]; + const from = this.range.from; + if (last - from < -10000) { + series.isOutsideRange = true; + } + } + return series; + } +} + +export { FlowchartCtrl, FlowchartCtrl as MetricsPanelCtrl }; + +FlowchartCtrl.templateUrl = './partials/module.html'; diff --git a/data/plugins/grafana-flowcharting/src/flowchart_options.js b/data/plugins/grafana-flowcharting/src/flowchart_options.js new file mode 100644 index 0000000000000..91dc8cba5eb6e --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/flowchart_options.js @@ -0,0 +1,77 @@ +/* eslint-disable no-unused-vars */ +import { plugin } from './plugin'; + +export class FlowchartOptionsCtrl { + /** @ngInject */ + constructor($scope) { + $scope.editor = this; + $scope.GF_PLUGIN = window.GF_PLUGIN; + this.$scope = $scope; + this.ctrl = $scope.ctrl; + this.flowchartHandler = this.ctrl.flowchartHandler; + this.panel = this.ctrl.panel; + this.sourceTypes = [{ text: 'XML Content', value: 'xml' }] + this.themes = [ + { text: 'Dark', value: 'dark' }, + { text: 'Light', value: 'kennedy' }, + { text: 'Mobile', value: 'minimal' }, + { text: 'Atlas', value: 'atlas' }, + ]; + //,{ text: 'CSV', value: 'csv' }]; + } + + /** + *Render + * + * @memberof FlowchartOptionsCtrl + */ + render() { + this.flowchartHandler.render(); + } + + /** + * onSourceChange event when source changes + * + * @memberof FlowchartOptionsCtrl + */ + onSourceChange() { + this.flowchartHandler.sourceChanged(); + this.render(); + } + + /** + * onOptionChange event when options change + * + * @memberof FlowchartOptionsCtrl + */ + onOptionChange() { + u.log(1, "FlowchartOptionsCtrl.onOptionChange()"); + this.flowchartHandler.optionChanged(); + this.render(); + } + + /** + * Open graph in index in draw.io + * + * @param {Number} index - index of graph + * @memberof FlowchartOptionsCtrl + * @see flowchartHandler:openDrawEditor + */ + edit(index) { + this.flowchartHandler.openDrawEditor(index); + } + + getFlowcharts() { + return this.flowchartHandler.getFlowcharts(); + } +} + +/** @ngInject */ +export function flowchartOptionsTab($q, $sce, uiSegmentSrv) { + return { + restrict: 'E', + scope: true, + templateUrl: `${GF_PLUGIN.getPartialPath()}/flowchart_options.html`, + controller: FlowchartOptionsCtrl, + }; +} diff --git a/data/plugins/grafana-flowcharting/src/graph_class.js b/data/plugins/grafana-flowcharting/src/graph_class.js new file mode 100644 index 0000000000000..fdd9643a88b49 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/graph_class.js @@ -0,0 +1,1099 @@ +import { resolve } from 'path'; + +/* eslint-disable no-undef */ +/* eslint-disable new-cap */ +/* eslint-disable dot-notation */ +/* eslint-disable object-shorthand */ +window.mxLanguages = window.mxLanguages || ['en']; + +require('./libs/sanitizer.min'); +const mxgraph = require('mxgraph')({ + mxImageBasePath: GF_PLUGIN.getMxImagePath(), + mxBasePath: GF_PLUGIN.getMxBasePath(), + mxLoadStylesheets: false, + mxLanguage: 'en', + mxLoadResources: false +}); + +const Chartist = require('chartist'); + +window.BASE_PATH = window.BASE_PATH || GF_PLUGIN.getMxBasePath(); +window.RESOURCES_PATH = window.BASE_PATH || `${window.BASE_PATH}resources`; +window.RESOURCE_BASE = window.RESOURCE_BASE || `${window.RESOURCES_PATH}/grapheditor`; +window.STENCIL_PATH = window.STENCIL_PATH || `${window.BASE_PATH}stencils`; +window.SHAPES_PATH = window.SHAPES_PATH || GF_PLUGIN.getShapesPath(); +window.IMAGE_PATH = window.IMAGE_PATH || `${window.BASE_PATH}images`; +window.STYLE_PATH = window.STYLE_PATH || `${window.BASE_PATH}styles`; +window.CSS_PATH = window.CSS_PATH || `${window.BASE_PATH}styles`; +window.mxLanguages = window.mxLanguages || ['en']; + +// Put to global vars to work +window.mxActor = window.mxActor || mxgraph.mxActor; +window.mxArrow = window.mxArrow || mxgraph.mxArrow; +window.mxArrowConnector = window.mxArrowConnector || mxgraph.mxArrowConnector; +window.mxCell = window.mxCell || mxgraph.mxCell; +window.mxCellEditor = window.mxCellEditor || mxgraph.mxCellEditor; +window.mxCellHighlight = window.mxCellHighlight || mxgraph.mxCellHighlight; +window.mxCellOverlay = window.mxCellOverlay || mxgraph.mxCellOverlay; +window.mxCellRenderer = window.mxCellRenderer || mxgraph.mxCellRenderer; +window.mxCellState = window.mxCellState || mxgraph.mxCellState; +window.mxClient = window.mxClient || mxgraph.mxClient; +mxClient.mxBasePath = GF_PLUGIN.getMxBasePath(); +mxClient.mxImageBasePath = GF_PLUGIN.getMxImagePath(); +mxClient.mxLoadResources = true; +mxClient.mxLanguage = 'en'; +mxClient.mxLoadStylesheets = true; +window.mxCloud = window.mxCloud || mxgraph.mxCloud; +window.mxCodec = window.mxCodec || mxgraph.mxCodec; +window.mxCompactTreeLayout = window.mxCompactTreeLayout || mxgraph.mxCompactTreeLayout; +window.mxConnectionConstraint = window.mxConnectionConstraint || mxgraph.mxConnectionConstraint; +window.mxConnectionHandler = window.mxConnectionHandler || mxgraph.mxConnectionHandler; +window.mxConnector = window.mxConnector || mxgraph.mxConnector; +window.mxConstants = window.mxConstants || mxgraph.mxConstants; +window.mxConstraintHandler = window.mxConstraintHandler || mxgraph.mxConstraintHandler; +window.mxCylinder = window.mxCylinder || mxgraph.mxCylinder; +window.mxDefaultKeyHandler = window.mxDefaultKeyHandler || mxgraph.mxDefaultKeyHandler; +window.mxDefaultPopupMenu = window.mxDefaultPopupMenu || mxgraph.mxDefaultPopupMenu; +window.mxDefaultToolbar = window.mxDefaultToolbar || mxgraph.mxDefaultToolbar; +window.mxDivResizer = window.mxDivResizer || mxgraph.mxDivResizer; +window.mxDoubleEllipse = window.mxDoubleEllipse || mxgraph.mxDoubleEllipse; +window.mxDragSource = window.mxDragSource || mxgraph.mxDragSource; +window.mxEdgeStyle = window.mxEdgeStyle || mxgraph.mxEdgeStyle; +window.mxEdgeHandler = window.mxEdgeHandler || mxgraph.mxEdgeHandler; +window.mxEditor = window.mxEditor || mxgraph.mxEditor; +window.mxElbowEdgeHandler = window.mxElbowEdgeHandler || mxgraph.mxElbowEdgeHandler; +window.mxEllipse = window.mxEllipse || mxgraph.mxEllipse; +window.mxEvent = window.mxEvent || mxgraph.mxEvent; +window.mxEventObject = window.mxEventObject || mxgraph.mxEventObject; +window.mxFile = window.mxFile || mxgraph.mxFile; +window.mxGeometry = window.mxGeometry || mxgraph.mxGeometry; +window.mxGraph = window.mxGraph || mxgraph.mxGraph; +window.mxGraphHandler = window.mxGraphHandler || mxgraph.mxGraphHandler; +window.mxGraphModel = window.mxGraphModel || mxgraph.mxGraphModel; +window.mxGraphView = window.mxGraphView || mxgraph.mxGraphView; +window.mxGuide = window.mxGuide || mxgraph.mxGuide; +window.mxHexagon = window.mxHexagon || mxgraph.mxHexagon; +window.mxHandle = window.mxHandle || mxgraph.mxHandle; +window.mxHierarchicalLayout = window.mxHierarchicalLayout || mxgraph.mxHierarchicalLayout; +window.mxImage = window.mxImage || mxgraph.mxImage; +window.mxImageShape = window.mxImageShape || mxgraph.mxImageShape; +window.mxKeyHandler = window.mxKeyHandler || mxgraph.mxKeyHandler; +window.mxLabel = window.mxLabel || mxgraph.mxLabel; +window.mxLayoutManager = window.mxLayoutManager || mxgraph.mxLayoutManager; +window.mxLine = window.mxLine || mxgraph.mxLine; +window.mxMarker = window.mxMarker || mxgraph.mxMarker; +window.mxOutline = window.mxOutline || mxgraph.mxOutline; +window.mxPanningHandler = window.mxPanningHandler || mxgraph.mxPanningHandler; +window.mxPerimeter = window.mxPerimeter || mxgraph.mxPerimeter; +window.mxPoint = window.mxPoint || mxgraph.mxPoint; +window.mxPolyline = window.mxPolyline || mxgraph.mxPolyline; +window.mxPopupMenu = window.mxPopupMenu || mxgraph.mxPopupMenu; +window.mxPopupMenuHandler = window.mxPopupMenuHandler || mxgraph.mxPopupMenuHandler; +window.mxPrintPreview = window.mxPrintPreview || mxgraph.mxPrintPreview; +window.mxRectangle = window.mxRectangle || mxgraph.mxRectangle; +window.mxRectangleShape = window.mxRectangleShape || mxgraph.mxRectangleShape; +window.mxResources = window.mxResources || mxgraph.mxResources; +window.mxRhombus = window.mxRhombus || mxgraph.mxRhombus; +window.mxRubberband = window.mxRubberband || mxgraph.mxRubberband; +window.mxShape = window.mxShape || mxgraph.mxShape; +window.mxStackLayout = window.mxStackLayout || mxgraph.mxStackLayout; +window.mxStencil = window.mxStencil || mxgraph.mxStencil; +window.mxStencilRegistry = window.mxStencilRegistry || mxgraph.mxStencilRegistry; +window.mxStylesheet = window.mxStylesheet || mxgraph.mxStylesheet; +window.mxStyleRegistry = window.mxStyleRegistry || mxgraph.mxStyleRegistry; +window.mxSvgCanvas2D = window.mxSvgCanvas2D || mxgraph.mxSvgCanvas2D; +window.mxSwimlane = window.mxSwimlane || mxgraph.mxSwimlane; +window.mxText = window.mxText || mxgraph.mxText; +window.mxToolbar = window.mxToolbar || mxgraph.mxToolbar; +window.mxTooltip = window.mxTooltip || mxgraph.mxTooltip; +window.mxTooltipHandler = window.mxTooltipHandler || mxgraph.mxTooltipHandler; +window.mxTriangle = window.mxTriangle || mxgraph.mxTriangle; +window.mxUndoManager = window.mxUndoManager || mxgraph.mxUndoManager; +window.mxUrlConverter = window.mxUrlConverter || mxgraph.mxUrlConverter; +window.mxUtils = window.mxUtils || mxgraph.mxUtils; +window.mxValueChange = window.mxValueChange || mxgraph.mxValueChange; +window.mxVertexHandler = window.mxVertexHandler || mxgraph.mxVertexHandler; + +// Extends mxGraph +require('./Shapes'); +const Graph = require('./Graph')({ + libs: 'arrows;basic;bpmn;flowchart' +}); +Graph.handleFactory = mxGraph.handleFactory; +Graph.createHandle = mxGraph.createHandle; +// Specifics function for Flowcharting +require('./Graph_over'); +window.Graph = window.Graph || Graph; + +/** + *mxGraph interface class + * + * @export + * @class XGraph + */ +export default class XGraph { + /** + *Creates an instance of XGraph. + * @param {DOM} container + * @param {string} definition + * @memberof XGraph + */ + constructor(container, type, definition) { + u.log(1, 'XGraph.constructor()'); + this.container = container; + this.xmlGraph = undefined; + this.type = type; + this.graph = undefined; + this.scale = true; + this.tooltip = true; + this.lock = true; + this.center = true; + this.zoom = false; + // BEGIN ZOOM MouseWheele + this.zoomFactor = 1.2; + this.cumulativeZoomFactor = 1; + this.updateZoomTimeout = null; + this.resize = null; + // END ZOOM MouseWheele + this.grid = false; + this.bgColor = undefined; + this.zoomPercent = '1'; + this.cells = {}; + this.cells.id = []; + this.cells.value = []; + this.cells.attributs = {}; + this.clickBackup = undefined; + if (type === 'xml') { + if (u.isencoded(definition)) this.xmlGraph = u.decode(definition, true, true, true); + else this.xmlGraph = definition; + } + + this.initGraph(); + } + + /** + *Graph initilisation and reset + * + * @memberof XGraph + */ + initGraph() { + u.log(1, 'XGraph.initGraph()'); + this.graph = new Graph(this.container); + this.graph.getTooltipForCell = this.getTooltipForCell; + + // /!\ What is setPannig + this.graph.setPanning(true); + + // Backup funtions of clicks + this.clickBackup = this.graph.click; + this.dbclickBackup = this.graph.dblClick; + + // EVENTS + + // CTRL+MOUSEWHEEL + mxEvent.addMouseWheelListener(mxUtils.bind(this, this.eventMouseWheel), this.container); + if (mxClient.IS_IE || mxClient.IS_EDGE) + mxEvent.addListener(this.container, 'wheel', mxUtils.bind(this, this.eventMouseWheel)); + + // KEYS + mxEvent.addListener(document, 'keydown', mxUtils.bind(this, this.eventKey)); + + // CONTEXT MENU + this.container.addEventListener('contextmenu', e => e.preventDefault()); + + // DB CLICK + this.graph.dblClick = this.eventDbClick.bind(this); + } + + /** + *Draw graph + * + * @memberof XGraph + */ + drawGraph() { + u.log(1, 'XGraph.drawGraph()'); + this.graph.getModel().beginUpdate(); + this.graph.getModel().clear(); + try { + const xmlDoc = mxUtils.parseXml(this.xmlGraph); + const codec = new mxCodec(xmlDoc); + codec.decode(xmlDoc.documentElement, this.graph.getModel()); + } catch (error) { + u.log(3, 'Error in draw', error); + } finally { + this.graph.getModel().endUpdate(); + this.cells['id'] = this.getCurrentCells('id'); + this.cells['value'] = this.getCurrentCells('value'); + } + } + + /** + *apply options on graph + * + * @param {*} width + * @param {*} height + * @memberof XGraph + */ + applyGraph() { + u.log(1, 'XGraph.refreshGraph()'); + if (!this.scale) this.zoomGraph(this.zoomPercent); + else this.unzoomGraph(); + this.tooltipGraph(this.tooltip); + this.lockGraph(this.lock); + if (this.scale && this.center) this.fitGraph(); + else { + this.scaleGraph(this.scale); + this.centerGraph(this.center); + } + this.gridGraph(this.grid); + this.bgGraph(this.bgColor); + this.refresh(); + } + + refresh() { + this.graph.refresh(); + } + + destroyGraph() { + this.graph.destroy(); + this.graph = undefined; + } + + /** + *lock cells + * + * @param {Boolean} bool + * @memberof XGraph + */ + lockGraph(bool) { + if (bool) this.graph.setEnabled(false); + else this.graph.setEnabled(true); + this.lock = bool; + } + + /** + *Enable tooltip + * + * @param {Boolean} bool + * @memberof XGraph + */ + tooltipGraph(bool) { + if (bool) this.graph.setTooltips(true); + else this.graph.setTooltips(false); + this.tooltip = bool; + } + + allowDrawio(bool) { + if (bool) { + mxUrlConverter.prototype.baseUrl = 'http://draw.io/'; + mxUrlConverter.prototype.baseDomain = ''; + } else { + mxUrlConverter.prototype.baseUrl = null; + mxUrlConverter.prototype.baseDomain = null; + } + } + + /** + *Center graph in panel + * + * @param {Boolean} bool + * @memberof XGraph + */ + centerGraph(bool) { + this.graph.centerZoom = false; + if (bool) this.graph.center(true, true); + else this.graph.center(false, false); + this.center = bool; + } + + /** + *Scale graph in panel + * + * @param {Boolean} bool + * @memberof XGraph + */ + scaleGraph(bool) { + if (bool) { + this.unzoomGraph(); + this.graph.fit(); + this.graph.view.rendering = true; + } + this.scale = bool; + } + + fitGraph() { + var margin = 2; + var max = 3; + + var bounds = this.graph.getGraphBounds(); + var cw = this.graph.container.clientWidth - margin; + var ch = this.graph.container.clientHeight - margin; + var w = bounds.width / this.graph.view.scale; + var h = bounds.height / this.graph.view.scale; + var s = Math.min(max, Math.min(cw / w, ch / h)); + + this.graph.view.scaleAndTranslate( + s, + (margin + cw - w * s) / (2 * s) - bounds.x / this.graph.view.scale, + (margin + ch - h * s) / (2 * s) - bounds.y / this.graph.view.scale + ); + } + + /** + *Display grid in panel + * + * @param {Boolean} bool + * @memberof XGraph + */ + gridGraph(bool) { + if (bool) { + // eslint-disable-next-line no-undef + this.container.style.backgroundImage = `url('${IMAGE_PATH}/grid.gif')`; + } else { + this.container.style.backgroundImage = ''; + } + this.grid = bool; + } + + /** + *Zoom/unzoom + * + * @param {string} percent + * @memberof XGraph + */ + zoomGraph(percent) { + u.log(1, 'XGraph.zoomGraph()'); + if (!this.scale && percent && percent.length > 0 && percent !== '100%' && percent !== '0%') { + const ratio = percent.replace('%', '') / 100; + this.graph.zoomTo(ratio, true); + this.zoomPercent = percent; + } else { + this.unzoomGraph(); + } + this.zoom = true; + } + + /** + *Restore initial size + * + * @memberof XGraph + */ + unzoomGraph() { + this.zoom = false; + this.graph.zoomActual(); + } + + /** + *Define background color + * + * @param {string} bgColor + * @memberof XGraph + */ + bgGraph(bgColor) { + const $div = $(this.container); + if (bgColor) { + this.bgColor = bgColor; + $div.css('background-color', bgColor); + } else { + $div.css('background-color', ''); + } + } + + /** + *Return mxgraph object + * + * @returns {mxGraph} + * @memberof XGraph + */ + getMxGraph() { + return this.graph; + } + + /** + *Return xml definition + * + * @returns {string} + * @memberof XGraph + */ + getxmlGraph() { + return this.xmlGraph; + } + + /** + *Assign xml definition and redraw graph + * + * @param {string} xmlGraph + * @memberof XGraph + */ + setXmlGraph(xmlGraph) { + u.log(1, 'XGraph.setXmlGraph()'); + if (u.isencoded(xmlGraph)) this.xmlGraph = u.decode(xmlGraph, true, true, true); + else this.xmlGraph = xmlGraph; + this.drawGraph(); + } + + /** + *Get list of values or id + * + * @param {string} prop - id|value + * @returns {Array} + * @memberof XGraph + */ + getCurrentCells(prop) { + const cellIds = []; + const model = this.graph.getModel(); + const cells = model.cells; + if (prop === 'id') { + _.each(cells, cell => { + cellIds.push(cell.getId()); + }); + } else if (prop === 'value') { + _.each(cells, cell => { + cellIds.push(cell.getValue()); + }); + } + return cellIds; + } + + /** + *Get list of mxCell + * + * @param {string} prop - id|value + * @param {string} pattern - regex like or string + * @returns {Array} + * @memberof XGraph + */ + findMxCells(prop, pattern) { + const mxcells = this.getMxCells(); + const result = []; + if (prop === 'id') { + _.each(mxcells, mxcell => { + if (u.matchString(mxcell.id, pattern)) result.push(mxcell); + }); + } else if (prop === 'value') { + _.each(mxcells, mxcell => { + if (u.matchString(mxcell.getValue(), pattern)) result.push(mxcell); + }); + } + return result; + } + + /** + *Select cells in graph with pattern for id or value + * + * @param {string} prop - "id"|"value" + * @param {string} pattern - regex like + * @memberof XGraph + */ + selectMxCells(prop, pattern) { + const mxcells = this.findMxCells(prop, pattern); + if (mxcells) { + // this.graph.setSelectionCells(mxcells); + this.highlightCells(mxcells); + } + } + + /** + *Unselect cells + * + * @memberof XGraph + */ + unselectMxCells(prop, pattern) { + const mxcells = this.findMxCells(prop, pattern); + if (mxcells) { + this.unhighlightCells(mxcells); + } + } + + /** + *Create tooltip on image + * + * @param {*} image + * @param {*} tooltip + * @returns + * @memberof XGraph + */ + createOverlay(image, tooltip) { + const overlay = new mxCellOverlay(image, tooltip); + overlay.addListener(mxEvent.CLICK, (_sender, _evt) => { + mxUtils.alert(`${tooltip}\nLast update: ${new Date()}`); + }); + return overlay; + } + + /** + *Add Warning icon + * + * @param {string} state (OK|WARN|ERROR) + * @param {mxCell} mxcell + * @memberof XGraph + */ + addOverlay(state, mxcell) { + this.graph.addCellOverlay( + mxcell, + this.createOverlay(this.graph.warningImage, `State: ${state}`) + ); + } + + /** + *Remove Warning icon + * + * @param {mxCell} mxcell + * @memberof XGraph + */ + removeOverlay(mxcell) { + this.graph.removeCellOverlays(mxcell); + } + + /** + *Add link to cell + * + * @param {mxCell} mxcell + * @param {string} link - Url + * @memberof XGraph + */ + addLink(mxcell, link) { + this.graph.setLinkForCell(mxcell, link); + } + + /** + *Get link from cell + * + * @param {*} mxcell + * @memberof XGraph + */ + getLink(mxcell) { + this.graph.getLinkForCell(mxcell); + } + + /** + *Remove link of cell + * + * @param {mxCell} mxcell + * @memberof XGraph + */ + removeLink(mxcell) { + this.graph.setLinkForCell(mxcell, null); + } + + /** + *Get value or id from cell source + * + * @param {*} prop + * @returns + * @memberof XGraph + */ + getOrignalCells(prop) { + if (prop === 'id' || prop === 'value') return this.cells[prop]; + // TODO: attributs + return []; + } + + /** + *Rename Id of cell + *Must be uniq + * + * @param {string} oldId + * @param {string} newId + * @memberof XGraph + */ + renameId(oldId, newId) { + const cells = this.findMxCells('id', oldId); + if (cells !== undefined && cells.length > 0) { + cells.forEach(cell => { + cell.id = newId; + }); + } else { + u.log(2, `Cell ${oldId} not found`); + } + } + + /** + *Get xml definition from current graph + * + * @returns + * @memberof XGraph + */ + getXmlModel() { + const encoder = new mxCodec(); + const node = encoder.encode(this.graph.getModel()); + return mxUtils.getXml(node); + } + + /** + *Find and return current cell with matching pattern for id or value + * + * @param {string} prop - "id"|"value" + * @param {string} pattern - regex + * @returns {Array} strings of id + * @memberof XGraph + */ + // NOT USED + // findCurrentCells(prop, pattern) { + // const cells = this.getCurrentCells(prop); + // const result = _.find(cells, cell => { + // u.matchString(cell, pattern); + // }); + // return result; + // } + + /** + *Find and return original cell with matching pattern for id or value + * + * @param {string} prop - "id"|"value" + * @param {string} pattern - regex + * @returns {Array} strings of id + * @memberof XGraph + */ + // NOT USED + // findOriginalCells(prop, pattern) { + // const cells = this.getOrignalCells(prop); + // const result = _.find(cells, cell => { + // u.matchString(cell, pattern); + // }); + // return result; + // } + + /** + *Return all cells + * + * @returns {array} mxCells + * @memberof XGraph + */ + getMxCells() { + return this.graph.getModel().cells; + } + + /** + * Return value of id or value of mxcell + * + * @param {string} prop - "id"|"value" + * @param {mxCell} mxcell + * @memberof XGraph + */ + getValuePropOfMxCell(prop, mxcell) { + if (prop === 'id') return this.getId(mxcell); + if (prop === 'value') return this.getLabel(mxcell); + return null; + } + + // NOT USED + // findCurrentMxCells(prop, pattern) { + // const cells = []; + // _.each(this.getMxCells(), mxcell => { + // if (prop === 'id') { + // const id = mxcell.getId(); + // if (u.matchString(id, pattern)) cells.push(mxcell); + // } else if (prop === 'value') { + // const value = this.getLabel(mxcell); + // if (u.matchString(value, pattern)) cells.push(mxcell); + // } + // }); + // return cells; + // } + + getStyleCell(mxcell, style) { + const state = this.graph.view.getState(mxcell); + if (state) return state.style[style]; + return null; + } + + setStyleCell(mxcell, style, color) { + this.graph.setCellStyles(style, color, [mxcell]); + } + + // eslint-disable-next-line class-methods-use-this + /** + *Return Label/value of mxcell + * + * @param {mxCell} mxcell + * @returns + * @memberof XGraph + */ + getLabel(mxcell) { + if (mxUtils.isNode(mxcell.value)) { + return mxcell.value.getAttribute('label'); + } + return mxcell.getValue(mxcell); + } + + /** + *Return Id of mxCell + * + * @param {mxCell} mxcell + * @returns {string} Id of mxCell + * @memberof XGraph + */ + getId(mxcell) { + return mxcell.getId(); + } + + // eslint-disable-next-line class-methods-use-this + /** + *Assign new label for mxcell + * + * @param {*} mxcell + * @param {string} text - New label + * @returns {string} New label + * @memberof XGraph + */ + setLabelCell(mxcell, text) { + if (mxUtils.isNode(mxcell.value)) { + var label = mxcell.value.setAttribute('label', text); + } else mxcell.setValue(text); + return text; + } + + /** + *Active mapping option when user click on mapping + * + * @param {Object} onMappingObj + * @memberof XGraph + */ + setMap(onMappingObj) { + u.log(1, 'XGraph.setMapping()'); + u.log(0, 'XGraph.setMapping() onMappingObject : ', onMappingObj); + this.onMapping = onMappingObj; + if (this.onMapping.active === true) { + this.container.style.cursor = 'crosshair'; + this.graph.click = this.eventClick.bind(this); + } + } + + /** + *Disable mapping when user click on mapping + * + * @memberof XGraph + */ + unsetMap() { + u.log(1, 'XGraph.unsetMapping()'); + this.onMapping.active = false; + this.container.style.cursor = 'auto'; + this.graph.click = this.clickBackup; + this.onMapping.$scope.$apply(); + } + + // + // GRAPH HANDLER + // + + /** + *Event for click on graph + * + * @param {MouseEvent} me + * @memberof XGraph + */ + eventClick(me) { + u.log(1, 'XGraph.eventClick()'); + const self = this; + + if (this.onMapping.active) { + const state = me.getState(); + if (state) { + const id = state.cell.id; + this.onMapping.object.data.pattern = id; + const elt = document.getElementById(this.onMapping.id); + if (elt) { + setTimeout(() => { + elt.focus(); + }, 100); + } + this.unsetMap(); + } + } + } + + /** + *Event for double click on graph + * + * @param {Event} evt + * @param {mxCell} mxcell + * @memberof XGraph + */ + eventDbClick(evt, mxcell) { + u.log(1, 'XGraph.eventDbClick()'); + u.log(0, 'XGraph.eventDbClick() evt', evt); + u.log(0, 'XGraph.eventDbClick() cell', mxcell); + u.log( + 1, + 'XGraph.eventDbClick() container.getBoundingClientRect()', + this.container.getBoundingClientRect() + ); + if (mxcell !== undefined) { + this.lazyZoomCell(mxcell); + } + } + + /** + *Event for mouse wheel on graph + * + * @param {Event} evt + * @param {boolean} up + * @memberof XGraph + */ + eventMouseWheel(evt, up) { + u.log(1, 'XGraph.eventMouseWheel()'); + u.log(0, 'XGraph.eventMouseWheel() evt', evt); + u.log(0, 'XGraph.eventMouseWheel() up', up); + if (this.graph.isZoomWheelEvent(evt)) { + if (up == null || up == undefined) { + u.log(0, 'XGraph.eventMouseWheel() up', 'Not defined'); + if (evt.deltaY < 0) up = true; + else up = false; + } + // const rect = evt.target.getBoundingClientRect(); + // let offsetLeft = (evt.currentTarget.offsetLeft != undefined ? evt.currentTarget.offsetLeft : 0 ); + // let offsetTop = (evt.currentTarget.offsetTop != undefined ? evt.currentTarget.offsetTop : 0 ) + // u.log(0, 'XGraph.eventMouseWheel() offsetLeft', offsetLeft); + // u.log(0, 'XGraph.eventMouseWheel() offsetTop', offsetTop); + // var x = evt.layerX - offsetLeft; + // var y = evt.layerY - offsetTop; + var x = evt.layerX; + var y = evt.layerY; + if (up) { + this.cumulativeZoomFactor = this.cumulativeZoomFactor * 1.2; + } else { + this.cumulativeZoomFactor = this.cumulativeZoomFactor * 0.8; + } + this.lazyZoomPointer(this.cumulativeZoomFactor, x, y); + mxEvent.consume(evt); + } + } + + /** + *Event for key on graph + * + * @param {Event} evt + * @memberof XGraph + */ + eventKey(evt) { + if (!mxEvent.isConsumed(evt) && evt.keyCode == 27 /* Escape */) { + this.cumulativeZoomFactor = 1; + if (this.graph) { + this.graph.zoomActual(); + this.applyGraph(this.width, this.height); + } + } + } + + /** + *Zoom/Unzoom on graph on center + * + * @param {number} factor - 1 = 100% + * @memberof XGraph + */ + lazyZoomCenter(factor) { + this.graph.zoomTo(factor, true); + } + + /** + *Zoom/Unzoom on graph on mouse pointer + * + * @param {number} factor + * @param {number} offsetX + * @param {number} offsetY + * @memberof XGraph + */ + lazyZoomPointer(factor, offsetX, offsetY) { + u.log(1, 'XGraph.lazyZoomPointer()'); + u.log(0, 'XGraph.lazyZoomPointer() factor', factor); + u.log(0, 'XGraph.lazyZoomPointer() offsetX', offsetX); + u.log(0, 'XGraph.lazyZoomPointer() offsetY', offsetY); + let dx = offsetX * 2; + let dy = offsetY * 2; + + factor = Math.max(0.01, Math.min(this.graph.view.scale * factor, 160)) / this.graph.view.scale; + factor = this.cumulativeZoomFactor / this.graph.view.scale; + let scale = Math.round(this.graph.view.scale * factor * 100) / 100; + factor = scale / this.graph.view.scale; + + if (factor > 1) { + var f = (factor - 1) / (scale * 2); + dx *= -f; + dy *= -f; + } else { + var f = (1 / factor - 1) / (this.graph.view.scale * 2); + dx *= f; + dy *= f; + } + + this.graph.view.scaleAndTranslate( + scale, + this.graph.view.translate.x + dx, + this.graph.view.translate.y + dy + ); + } + + /** + * Highlights the given cell. + */ + highlightCells(cells) { + for (var i = 0; i < cells.length; i++) { + this.highlightCell(cells[i]); + } + } + + /** + * UnHighlights the given array of cells. + */ + unhighlightCells(cells) { + for (var i = 0; i < cells.length; i++) { + this.unhighlightCell(cells[i]); + } + } + + /** + * Highlights the given cell. + */ + // highlightCell(cell, color, duration, opacity) + highlightCell(cell) { + if (cell.highlight) return; + let color = '#99ff33'; + // color = (color != null) ? color : mxConstants.DEFAULT_VALID_COLOR; + // duration = (duration != null) ? duration : 1000; + let opacity = 100; + var state = this.graph.view.getState(cell); + + if (state != null) { + var sw = Math.max(5, mxUtils.getValue(state.style, mxConstants.STYLE_STROKEWIDTH, 1) + 4); + var hl = new mxCellHighlight(this.graph, color, sw, false); + + if (opacity != null) { + hl.opacity = opacity; + } + + hl.highlight(state); + cell.highlight = hl; + } + } + + /** + *UnHighlights the given cell. + * + * @param {*} cell + * @memberof XGraph + */ + unhighlightCell(cell) { + if (cell && cell.highlight) { + let hl = cell.highlight; + // Fades out the highlight after a duration + if (hl.shape != null) { + mxUtils.setPrefixedStyle(hl.shape.node.style, 'transition', 'all 500ms ease-in-out'); + hl.shape.node.style.opacity = 0; + } + + // Destroys the highlight after the fade + window.setTimeout(function() { + hl.destroy(); + }, 500); + cell.highlight = null; + } + } + + /** + *Zoom cell on full panel + * + * @param {*} mxcell + * @memberof XGraph + */ + lazyZoomCell(mxcell) { + u.log(1, 'XGraph.lazyZoomCell() mxcell', mxcell); + u.log(0, 'XGraph.lazyZoomCell() mxcellState', this.graph.view.getState(mxcell)); + if (mxcell !== undefined && mxcell !== null && mxcell.isVertex()) { + const state = this.graph.view.getState(mxcell); + if (state !== null) { + const x = state.x; + const y = state.y; + const width = state.width; + const height = state.height; + const rect = new mxRectangle(x, y, width, height); + this.graph.zoomToRect(rect); + this.cumulativeZoomFactor = this.graph.view.scale; + } + } + } + + toggleVisible(mxcell, includeEdges) { + this.graph.toggleCells(!this.graph.getModel().isVisible(mxcell), [mxcell], includeEdges); + } + + getTooltipForCell(cell) { + u.log(1, 'Graph.prototype.getTooltipForCell()'); + let hasTips = false; + let div = document.createElement('div'); + if (mxUtils.isNode(cell.value)) { + let tmp = cell.value.getAttribute('tooltip'); + // Tooltip + if (tmp != null) { + hasTips = true; + if (tmp != null && this.isReplacePlaceholders(cell)) { + tmp = this.replacePlaceholders(cell, tmp); + } + let ttDiv = document.createElement('div'); + ttDiv.className = 'tooltip-text'; + ttDiv.innerHTML = this.sanitizeHtml(tmp); + div.appendChild(ttDiv); + } + + let ignored = this.builtInProperties; + let attrs = cell.value.attributes; + let temp = []; + + // Hides links in edit mode + // if (this.isEnabled()) { + ignored.push('link'); + // } + + // Attributes + for (var i = 0; i < attrs.length; i++) { + if (mxUtils.indexOf(ignored, attrs[i].nodeName) < 0 && attrs[i].nodeValue.length > 0) { + temp.push({ name: attrs[i].nodeName, value: attrs[i].nodeValue }); + } + } + + // Sorts by name + temp.sort(function(a, b) { + if (a.name < b.name) { + return -1; + } else if (a.name > b.name) { + return 1; + } else { + return 0; + } + }); + if (temp.length > 0) { + hasTips = true; + var attrDiv = document.createElement('div'); + var attrString = ''; + for (var i = 0; i < temp.length; i++) { + if (temp[i].name != 'link' || !this.isCustomLink(temp[i].value)) { + attrString += + (temp[i].name != 'link' ? '' + temp[i].name + ': ' : '') + + mxUtils.htmlEntities(temp[i].value) + + '\n'; + } + } + attrDiv.innerHTML = attrString; + div.appendChild(attrDiv); + } + } + + // GF Tooltips + if (cell.GF_tooltipHandler != null) { + let tooltipHandler = cell.GF_tooltipHandler; + let gfDiv = tooltipHandler.getTooltipDiv(div); + if (gfDiv !== null) { + hasTips = true; + } + } + // let divs = this.getTooltipGFs(cell); + // if (divs !== null) { + // hasTips = true; + // div.appendChild(divs); + // } + + if (hasTips) return div; + return ''; + } + +} diff --git a/data/plugins/grafana-flowcharting/src/img/agenty-flowcharting.png b/data/plugins/grafana-flowcharting/src/img/agenty-flowcharting.png new file mode 100644 index 0000000000000..cceb789ce7546 Binary files /dev/null and b/data/plugins/grafana-flowcharting/src/img/agenty-flowcharting.png differ diff --git a/data/plugins/grafana-flowcharting/src/img/agenty-flowcharting.svg b/data/plugins/grafana-flowcharting/src/img/agenty-flowcharting.svg new file mode 100644 index 0000000000000..553278c8eeb00 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/img/agenty-flowcharting.svg @@ -0,0 +1,18 @@ + + + + + + + + + + background + + + + Layer 1 + + + + \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/src/inspect_options.js b/data/plugins/grafana-flowcharting/src/inspect_options.js new file mode 100644 index 0000000000000..e354e7552c228 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/inspect_options.js @@ -0,0 +1,91 @@ +export class InspectOptionsCtrl { + /** @ngInject */ + constructor($scope) { + $scope.editor = this; + this.enable = false; + $scope.GF_PLUGIN = window.GF_PLUGIN; + this.$scope = $scope; + this.ctrl = $scope.ctrl; + this.panel = this.ctrl.panel; + this.logDisplayOption = [{ text: 'True', value: true }, { text: 'False', value: false }]; + this.logLevelOption = [ + { text: 'DEBUG', value: 0 }, + { text: 'INFO', value: 1 }, + { text: 'WARNING', value: 2 }, + { text: 'ERROR', value: 3 }, + ]; + this.logLevel = GF_PLUGIN.logLevel; + this.logDisplay = GF_PLUGIN.logDisplay; + + this.flowchartHandler = this.ctrl.flowchartHandler; + $scope.flowchartHandler = this.ctrl.flowchartHandler; + } + + render() { + this.panelCtrl.render(); + } + + onColorChange(styleIndex, colorIndex) { + return (newColor) => { + this.colors[colorIndex] = newColor; + }; + } + + onDebug() { + GF_PLUGIN.logLevel = this.logLevel; + GF_PLUGIN.logDisplay = this.logDisplay; + } + + onChangeId(state) { + if (state.newcellId !== undefined && state.cellId !== state.newcellId) { + this.flowchartHandler.getFlowchart(0).getStateHandler().edited = true; + if (state.previousId === undefined) state.previousId = state.cellId; + state.cellId = state.newcellId; + state.edited = true; + } + state.edit = false; + } + + onEdit(state) { + state.edit = true; + state.newcellId = state.cellId; + let elt = document.getElementById(state.cellId); + setTimeout(function () { + elt.focus(); + }, 100); + } + + reset() { + this.flowchartHandler.draw(); + this.flowchartHandler.refresh(); + // this.$scope.$apply(); + } + + apply() { + const flowchart = this.flowchartHandler.getFlowchart(0); + const states = flowchart.getStateHandler().getStates(); + states.forEach((state) => { + if (state.edited) flowchart.renameId(state.previousId, state.cellId); + }); + flowchart.applyModel(); + } + + selectCell(state) { + state.highlightCell(); + } + + unselectCell(state) { + state.unhighlightCell(); + } +} + +/** @ngInject */ +export function inspectOptionsTab($q, uiSegmentSrv) { + 'use strict'; + return { + restrict: 'E', + scope: true, + templateUrl: `${GF_PLUGIN.getPartialPath()}/inspect_options.html`, + controller: InspectOptionsCtrl + }; +} diff --git a/data/plugins/grafana-flowcharting/src/libs/sanitizer.min.js b/data/plugins/grafana-flowcharting/src/libs/sanitizer.min.js new file mode 100644 index 0000000000000..0d8f9a3e44522 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/sanitizer.min.js @@ -0,0 +1,92 @@ +// NOTE: Modified to support data URIs for images, ie. data:image/* +// Modified to allow "word-break: break-word" in styles. It is done by adding "break-word" which is at index 55 of J array J[55] to "cssLitGroup" of "word-break" +(function(){var c=void 0,n=!0,s=null,C=!1,J=["aliceblue,antiquewhite,aqua,aquamarine,azure,beige,bisque,black,blanchedalmond,blue,blueviolet,brown,burlywood,cadetblue,chartreuse,chocolate,coral,cornflowerblue,cornsilk,crimson,cyan,darkblue,darkcyan,darkgoldenrod,darkgray,darkgreen,darkkhaki,darkmagenta,darkolivegreen,darkorange,darkorchid,darkred,darksalmon,darkseagreen,darkslateblue,darkslategray,darkturquoise,darkviolet,deeppink,deepskyblue,dimgray,dodgerblue,firebrick,floralwhite,forestgreen,fuchsia,gainsboro,ghostwhite,gold,goldenrod,gray,green,greenyellow,honeydew,hotpink,indianred,indigo,ivory,khaki,lavender,lavenderblush,lawngreen,lemonchiffon,lightblue,lightcoral,lightcyan,lightgoldenrodyellow,lightgreen,lightgrey,lightpink,lightsalmon,lightseagreen,lightskyblue,lightslategray,lightsteelblue,lightyellow,lime,limegreen,linen,magenta,maroon,mediumaquamarine,mediumblue,mediumorchid,mediumpurple,mediumseagreen,mediumslateblue,mediumspringgreen,mediumturquoise,mediumvioletred,midnightblue,mintcream,mistyrose,moccasin,navajowhite,navy,oldlace,olive,olivedrab,orange,orangered,orchid,palegoldenrod,palegreen,paleturquoise,palevioletred,papayawhip,peachpuff,peru,pink,plum,powderblue,purple,red,rosybrown,royalblue,saddlebrown,salmon,sandybrown,seagreen,seashell,sienna,silver,skyblue,slateblue,slategray,snow,springgreen,steelblue,tan,teal,thistle,tomato,transparent,turquoise,violet,wheat,white,whitesmoke,yellow,yellowgreen".split(","), +"all-scroll,col-resize,crosshair,default,e-resize,hand,help,move,n-resize,ne-resize,no-drop,not-allowed,nw-resize,pointer,progress,row-resize,s-resize,se-resize,sw-resize,text,vertical-text,w-resize,wait".split(","),"armenian,decimal,decimal-leading-zero,disc,georgian,lower-alpha,lower-greek,lower-latin,lower-roman,square,upper-alpha,upper-latin,upper-roman".split(","),"100,200,300,400,500,600,700,800,900,bold,bolder,lighter".split(","),"block-level,inline-level,table-caption,table-cell,table-column,table-column-group,table-footer-group,table-header-group,table-row,table-row-group".split(","), +"condensed,expanded,extra-condensed,extra-expanded,narrower,semi-condensed,semi-expanded,ultra-condensed,ultra-expanded,wider".split(","),"inherit,inline,inline-block,inline-box,inline-flex,inline-grid,inline-list-item,inline-stack,inline-table,run-in".split(","),"behind,center-left,center-right,far-left,far-right,left-side,leftwards,right-side,rightwards".split(","),"large,larger,small,smaller,x-large,x-small,xx-large,xx-small".split(","),"dashed,dotted,double,groove,outset,ridge,solid".split(","), +"ease,ease-in,ease-in-out,ease-out,linear,step-end,step-start".split(","),"at,closest-corner,closest-side,ellipse,farthest-corner,farthest-side".split(","),"baseline,middle,sub,super,text-bottom,text-top".split(","),"caption,icon,menu,message-box,small-caption,status-bar".split(","),"fast,faster,slow,slower,x-fast,x-slow".split(","),["above","below","higher","level","lower"],["cursive","fantasy","monospace","sans-serif","serif"],["loud","silent","soft","x-loud","x-soft"],["no-repeat","repeat-x","repeat-y", +"round","space"],["blink","line-through","overline","underline"],["block","flex","grid","table"],["high","low","x-high","x-low"],["nowrap","pre","pre-line","pre-wrap"],["absolute","relative","static"],["alternate","alternate-reverse","reverse"],["border-box","content-box","padding-box"],["capitalize","lowercase","uppercase"],["child","female","male"],["=","opacity"],["backwards","forwards"],["bidi-override","embed"],["bottom","top"],["break-all","keep-all"],["clip","ellipsis"],["contain","cover"], +["continuous","digits"],["end","start"],["flat","preserve-3d"],["hide","show"],["horizontal","vertical"],["inside","outside"],["italic","oblique"],["left","right"],["ltr","rtl"],["no-content","no-display"],["paused","running"],["suppress","unrestricted"],["thick","thin"],[","],["/"],["all"],["always"],["auto"],["avoid"],["both"],["break-word"],["center"],["circle"],["code"],["collapse"],["contents"],["fixed"],["hidden"],["infinite"],["inset"],["invert"],["justify"],["list-item"],["local"],["medium"], +["mix"],["none"],["normal"],["once"],["repeat"],["scroll"],["separate"],["small-caps"],["spell-out"],["to"],["visible"]],L={animation:{cssPropBits:517,cssLitGroup:[J[10],J[24],J[29],J[45],J[48],J[54],J[63],J[71],J[72]],cssFns:["cubic-bezier()","steps()"]},"animation-delay":{cssPropBits:5,cssLitGroup:[J[48]],cssFns:[]},"animation-direction":{cssPropBits:0,cssLitGroup:[J[24],J[48],J[72]],cssFns:[]},"animation-duration":"animation-delay","animation-fill-mode":{cssPropBits:0,cssLitGroup:[J[29],J[48], +J[54],J[71]],cssFns:[]},"animation-iteration-count":{cssPropBits:5,cssLitGroup:[J[48],J[63]],cssFns:[]},"animation-name":{cssPropBits:512,cssLitGroup:[J[48],J[71]],cssFns:[]},"animation-play-state":{cssPropBits:0,cssLitGroup:[J[45],J[48]],cssFns:[]},"animation-timing-function":{cssPropBits:0,cssLitGroup:[J[10],J[48]],cssFns:["cubic-bezier()","steps()"]},appearance:{cssPropBits:0,cssLitGroup:[J[71]],cssFns:[]},azimuth:{cssPropBits:5,cssLitGroup:[J[7],J[42],J[56]],cssFns:[]},"backface-visibility":{cssPropBits:0, +cssLitGroup:[J[59],J[62],J[80]],cssFns:[]},background:{cssPropBits:23,cssLitGroup:[J[0],J[18],J[25],J[31],J[34],J[42],J[48],J[49],J[52],J[56],J[61],J[68],J[71],J[74],J[75]],cssFns:"image(),linear-gradient(),radial-gradient(),repeating-linear-gradient(),repeating-radial-gradient(),rgb(),rgba()".split(",")},"background-attachment":{cssPropBits:0,cssLitGroup:[J[48],J[61],J[68],J[75]],cssFns:[]},"background-color":{cssPropBits:2,cssLitGroup:[J[0]],cssFns:["rgb()","rgba()"]},"background-image":{cssPropBits:16, +cssLitGroup:[J[48],J[71]],cssFns:["image()","linear-gradient()","radial-gradient()","repeating-linear-gradient()","repeating-radial-gradient()"]},"background-position":{cssPropBits:5,cssLitGroup:[J[31],J[42],J[48],J[56]],cssFns:[]},"background-repeat":{cssPropBits:0,cssLitGroup:[J[18],J[48],J[74]],cssFns:[]},"background-size":{cssPropBits:5,cssLitGroup:[J[34],J[48],J[52]],cssFns:[]},border:{cssPropBits:7,cssLitGroup:[J[0],J[9],J[47],J[62],J[64],J[69],J[71]],cssFns:["rgb()","rgba()"]},"border-bottom":"border", +"border-bottom-color":"background-color","border-bottom-left-radius":{cssPropBits:5,cssFns:[]},"border-bottom-right-radius":"border-bottom-left-radius","border-bottom-style":{cssPropBits:0,cssLitGroup:[J[9],J[62],J[64],J[71]],cssFns:[]},"border-bottom-width":{cssPropBits:5,cssLitGroup:[J[47],J[69]],cssFns:[]},"border-collapse":{cssPropBits:0,cssLitGroup:[J[59],J[76]],cssFns:[]},"border-color":"background-color","border-left":"border","border-left-color":"background-color","border-left-style":"border-bottom-style", +"border-left-width":"border-bottom-width","border-radius":{cssPropBits:5,cssLitGroup:[J[49]],cssFns:[]},"border-right":"border","border-right-color":"background-color","border-right-style":"border-bottom-style","border-right-width":"border-bottom-width","border-spacing":"border-bottom-left-radius","border-style":"border-bottom-style","border-top":"border","border-top-color":"background-color","border-top-left-radius":"border-bottom-left-radius","border-top-right-radius":"border-bottom-left-radius", +"border-top-style":"border-bottom-style","border-top-width":"border-bottom-width","border-width":"border-bottom-width",bottom:{cssPropBits:5,cssLitGroup:[J[52]],cssFns:[]},box:{cssPropBits:0,cssLitGroup:[J[60],J[71],J[72]],cssFns:[]},"box-shadow":{cssPropBits:7,cssLitGroup:[J[0],J[48],J[64],J[71]],cssFns:["rgb()","rgba()"]},"box-sizing":{cssPropBits:0,cssLitGroup:[J[25]],cssFns:[]},"caption-side":{cssPropBits:0,cssLitGroup:[J[31]],cssFns:[]},clear:{cssPropBits:0,cssLitGroup:[J[42],J[54],J[71]],cssFns:[]}, +clip:{cssPropBits:0,cssLitGroup:[J[52]],cssFns:["rect()"]},color:"background-color",content:{cssPropBits:8,cssLitGroup:[J[71],J[72]],cssFns:[]},cue:{cssPropBits:16,cssLitGroup:[J[71]],cssFns:[]},"cue-after":"cue","cue-before":"cue",cursor:{cssPropBits:16,cssLitGroup:[J[1],J[48],J[52]],cssFns:[]},direction:{cssPropBits:0,cssLitGroup:[J[43]],cssFns:[]},display:{cssPropBits:0,cssLitGroup:[J[4],J[6],J[20],J[52],J[67],J[71]],cssFns:[]},"display-extras":{cssPropBits:0,cssLitGroup:[J[67],J[71]],cssFns:[]}, +"display-inside":{cssPropBits:0,cssLitGroup:[J[20],J[52]],cssFns:[]},"display-outside":{cssPropBits:0,cssLitGroup:[J[4],J[71]],cssFns:[]},elevation:{cssPropBits:5,cssLitGroup:[J[15]],cssFns:[]},"empty-cells":{cssPropBits:0,cssLitGroup:[J[38]],cssFns:[]},filter:{cssPropBits:0,cssFns:["alpha()"]},"float":{cssPropBits:0,cssLitGroup:[J[42],J[71]],cssFns:[]},font:{cssPropBits:73,cssLitGroup:[J[3],J[8],J[13],J[16],J[41],J[48],J[49],J[69],J[72],J[77]],cssFns:[]},"font-family":{cssPropBits:72,cssLitGroup:[J[16], +J[48]],cssFns:[]},"font-size":{cssPropBits:1,cssLitGroup:[J[8],J[69]],cssFns:[]},"font-stretch":{cssPropBits:0,cssLitGroup:[J[5],J[72]],cssFns:[]},"font-style":{cssPropBits:0,cssLitGroup:[J[41],J[72]],cssFns:[]},"font-variant":{cssPropBits:0,cssLitGroup:[J[72],J[77]],cssFns:[]},"font-weight":{cssPropBits:0,cssLitGroup:[J[3],J[72]],cssFns:[]},height:"bottom",left:"bottom","letter-spacing":{cssPropBits:5,cssLitGroup:[J[72]],cssFns:[]},"line-height":{cssPropBits:1,cssLitGroup:[J[72]],cssFns:[]},"list-style":{cssPropBits:16, +cssLitGroup:[J[2],J[40],J[57],J[71]],cssFns:["image()","linear-gradient()","radial-gradient()","repeating-linear-gradient()","repeating-radial-gradient()"]},"list-style-image":{cssPropBits:16,cssLitGroup:[J[71]],cssFns:["image()","linear-gradient()","radial-gradient()","repeating-linear-gradient()","repeating-radial-gradient()"]},"list-style-position":{cssPropBits:0,cssLitGroup:[J[40]],cssFns:[]},"list-style-type":{cssPropBits:0,cssLitGroup:[J[2],J[57],J[71]],cssFns:[]},margin:"bottom","margin-bottom":"bottom", +"margin-left":"bottom","margin-right":"bottom","margin-top":"bottom","max-height":{cssPropBits:1,cssLitGroup:[J[52],J[71]],cssFns:[]},"max-width":"max-height","min-height":{cssPropBits:1,cssLitGroup:[J[52]],cssFns:[]},"min-width":"min-height",opacity:{cssPropBits:1,cssFns:[]},outline:{cssPropBits:7,cssLitGroup:[J[0],J[9],J[47],J[62],J[64],J[65],J[69],J[71]],cssFns:["rgb()","rgba()"]},"outline-color":{cssPropBits:2,cssLitGroup:[J[0],J[65]],cssFns:["rgb()","rgba()"]},"outline-style":"border-bottom-style", +"outline-width":"border-bottom-width",overflow:{cssPropBits:0,cssLitGroup:[J[52],J[62],J[75],J[80]],cssFns:[]},"overflow-wrap":{cssPropBits:0,cssLitGroup:[J[55],J[72]],cssFns:[]},"overflow-x":{cssPropBits:0,cssLitGroup:[J[44],J[52],J[62],J[75],J[80]],cssFns:[]},"overflow-y":"overflow-x",padding:"opacity","padding-bottom":"opacity","padding-left":"opacity","padding-right":"opacity","padding-top":"opacity","page-break-after":{cssPropBits:0,cssLitGroup:[J[42],J[51],J[52],J[53]],cssFns:[]},"page-break-before":"page-break-after", +"page-break-inside":{cssPropBits:0,cssLitGroup:[J[52],J[53]],cssFns:[]},pause:"border-bottom-left-radius","pause-after":"border-bottom-left-radius","pause-before":"border-bottom-left-radius",perspective:{cssPropBits:5,cssLitGroup:[J[71]],cssFns:[]},"perspective-origin":{cssPropBits:5,cssLitGroup:[J[31],J[42],J[56]],cssFns:[]},pitch:{cssPropBits:5,cssLitGroup:[J[21],J[69]],cssFns:[]},"pitch-range":"border-bottom-left-radius","play-during":{cssPropBits:16,cssLitGroup:[J[52],J[70],J[71],J[74]],cssFns:[]}, +position:{cssPropBits:0,cssLitGroup:[J[23]],cssFns:[]},quotes:{cssPropBits:8,cssLitGroup:[J[71]],cssFns:[]},resize:{cssPropBits:0,cssLitGroup:[J[39],J[54],J[71]],cssFns:[]},richness:"border-bottom-left-radius",right:"bottom",speak:{cssPropBits:0,cssLitGroup:[J[71],J[72],J[78]],cssFns:[]},"speak-header":{cssPropBits:0,cssLitGroup:[J[51],J[73]],cssFns:[]},"speak-numeral":{cssPropBits:0,cssLitGroup:[J[35]],cssFns:[]},"speak-punctuation":{cssPropBits:0,cssLitGroup:[J[58],J[71]],cssFns:[]},"speech-rate":{cssPropBits:5, +cssLitGroup:[J[14],J[69]],cssFns:[]},stress:"border-bottom-left-radius","table-layout":{cssPropBits:0,cssLitGroup:[J[52],J[61]],cssFns:[]},"text-align":{cssPropBits:0,cssLitGroup:[J[42],J[56],J[66]],cssFns:[]},"text-decoration":{cssPropBits:0,cssLitGroup:[J[19],J[71]],cssFns:[]},"text-indent":"border-bottom-left-radius","text-overflow":{cssPropBits:8,cssLitGroup:[J[33]],cssFns:[]},"text-shadow":"box-shadow","text-transform":{cssPropBits:0,cssLitGroup:[J[26],J[71]],cssFns:[]},"text-wrap":{cssPropBits:0, +cssLitGroup:[J[46],J[71],J[72]],cssFns:[]},top:"bottom",transform:{cssPropBits:0,cssLitGroup:[J[71]],cssFns:"matrix(),perspective(),rotate(),rotate3d(),rotatex(),rotatey(),rotatez(),scale(),scale3d(),scalex(),scaley(),scalez(),skew(),skewx(),skewy(),translate(),translate3d(),translatex(),translatey(),translatez()".split(",")},"transform-origin":"perspective-origin","transform-style":{cssPropBits:0,cssLitGroup:[J[37]],cssFns:[]},transition:{cssPropBits:1029,cssLitGroup:[J[10],J[48],J[50],J[71]],cssFns:["cubic-bezier()", +"steps()"]},"transition-delay":"animation-delay","transition-duration":"animation-delay","transition-property":{cssPropBits:1024,cssLitGroup:[J[48],J[50]],cssFns:[]},"transition-timing-function":"animation-timing-function","unicode-bidi":{cssPropBits:0,cssLitGroup:[J[30],J[72]],cssFns:[]},"vertical-align":{cssPropBits:5,cssLitGroup:[J[12],J[31]],cssFns:[]},visibility:"backface-visibility","voice-family":{cssPropBits:8,cssLitGroup:[J[27],J[48]],cssFns:[]},volume:{cssPropBits:1,cssLitGroup:[J[17],J[69]], +cssFns:[]},"white-space":{cssPropBits:0,cssLitGroup:[J[22],J[72]],cssFns:[]},width:"min-height","word-break":{cssPropBits:0,cssLitGroup:[J[32],J[72],J[55]],cssFns:[]},"word-spacing":"letter-spacing","word-wrap":"overflow-wrap","z-index":"bottom",zoom:"line-height","cubic-bezier()":"animation-delay","steps()":{cssPropBits:5,cssLitGroup:[J[36],J[48]],cssFns:[]},"image()":{cssPropBits:18,cssLitGroup:[J[0],J[48]],cssFns:["rgb()","rgba()"]},"linear-gradient()":{cssPropBits:7,cssLitGroup:[J[0],J[31],J[42],J[48], +J[79]],cssFns:["rgb()","rgba()"]},"radial-gradient()":{cssPropBits:7,cssLitGroup:[J[0],J[11],J[31],J[42],J[48],J[56],J[57]],cssFns:["rgb()","rgba()"]},"repeating-linear-gradient()":"linear-gradient()","repeating-radial-gradient()":"radial-gradient()","rgb()":{cssPropBits:1,cssLitGroup:[J[48]],cssFns:[]},"rgba()":"rgb()","rect()":{cssPropBits:5,cssLitGroup:[J[48],J[52]],cssFns:[]},"alpha()":{cssPropBits:1,cssLitGroup:[J[28]],cssFns:[]},"matrix()":"animation-delay","perspective()":"border-bottom-left-radius", +"rotate()":"border-bottom-left-radius","rotate3d()":"animation-delay","rotatex()":"border-bottom-left-radius","rotatey()":"border-bottom-left-radius","rotatez()":"border-bottom-left-radius","scale()":"animation-delay","scale3d()":"animation-delay","scalex()":"border-bottom-left-radius","scaley()":"border-bottom-left-radius","scalez()":"border-bottom-left-radius","skew()":"animation-delay","skewx()":"border-bottom-left-radius","skewy()":"border-bottom-left-radius","translate()":"animation-delay","translate3d()":"animation-delay", +"translatex()":"border-bottom-left-radius","translatey()":"border-bottom-left-radius","translatez()":"border-bottom-left-radius"},O;for(O in L)"string"===typeof L[O]&&Object.hasOwnProperty.call(L,O)&&(L[O]=L[L[O]]);"undefined"!==typeof window&&(window.cssSchema=L);var U,X; +(function(){function g(a){var f=parseInt(a.substring(1),16);return 65535>10),56320+(f&1023))):f==f?String.fromCharCode(f):" ">a[1]?"":a[1]}function w(a,f){return'"'+a.replace(/[\u0000-\u001f\\\"<>]/g,f)+'"'}function M(a){return E[a]||(E[a]="\\"+a.charCodeAt(0).toString(16)+" ")}function x(a){return e[a]||(e[a]=("\u0010">a?"%0":"%")+a.charCodeAt(0).toString(16))}var E={"\\":"\\\\"},e={"\\":"%5c"},v=RegExp("\\uFEFF|U[+][0-9A-F?]{1,6}(?:-[0-9A-F]{1,6})?|url[(][\\t\\n\\f ]*(?:\"(?:'|[^'\"\\n\\f\\\\]|\\\\[\\s\\S])*\"|'(?:\"|[^'\"\\n\\f\\\\]|\\\\[\\s\\S])*'|(?:[\\t\\x21\\x23-\\x26\\x28-\\x5b\\x5d-\\x7e]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))*)[\\t\\n\\f ]*[)]|(?!url[(])-?(?:[a-zA-Z_]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))(?:[a-zA-Z0-9_-]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))*[(]|(?:@?-?(?:[a-zA-Z_]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))|#)(?:[a-zA-Z0-9_-]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))*|\"(?:'|[^'\"\\n\\f\\\\]|\\\\[\\s\\S])*\"|'(?:\"|[^'\"\\n\\f\\\\]|\\\\[\\s\\S])*'|[-+]?(?:[0-9]+(?:[.][0-9]+)?|[.][0-9]+)(?:%|-?(?:[a-zA-Z_]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))(?:[a-zA-Z0-9_-]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))*)?|<\!--|--\>|[\\t\\n\\f ]+|/(?:[*][^*]*[*]+(?:[^/][^*]*[*]+)*/|/[^\\n\\f]*)|[~|^$*]=|[^\"'\\\\/]|/(?![/*])","gi"), +b=RegExp("\\\\(?:(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff])|[\\n\\f])","g"),a=RegExp("^url\\([\\t\\n\\f ]*[\"']?|[\"']?[\\t\\n\\f ]*\\)$","gi");X=function(a){return a.replace(b,g)};U=function(b){for(var b=(""+b).replace(/\r\n?/g,"\n").match(v)||[],f=0,h=" ",d=0,y=b.length;d"==l||"<\!--"==l||"\ufeff"==l||32>=g?" ": +/url\(/i.test(l)?"url("+w(l.replace(a,""),x)+")":l;if(h!=l||" "!=l)b[f++]=h=l}b.length=f;return b}})();"undefined"!==typeof window&&(window.lexCss=U,window.decodeCss=X);var Y=function(){function g(d){d=(""+d).match(k);return!d?s:new e(v(d[1]),v(d[2]),v(d[3]),v(d[4]),v(d[5]),v(d[6]),v(d[7]))}function w(d,a){return"string"==typeof d?encodeURI(d).replace(a,M):s}function M(d){d=d.charCodeAt(0);return"%"+"0123456789ABCDEF".charAt(d>>4&15)+"0123456789ABCDEF".charAt(d&15)}function x(d){if(d===s)return s;for(var d=d.replace(/(^|\/)\.(?:\/|$)/g,"$1").replace(/\/{2,}/g,"/"),a=b,h;(h=d.replace(a,"$1"))!=d;d=h);return d}function E(d,h){var b=d.T(),f=h.K();f?b.ga(h.j):f=h.X(); +f?b.da(h.n):f=h.Y();f?b.ea(h.k):f=h.$();var g=h.g,k=x(g);if(f)b.ca(h.V()),k=k&&k.replace(a,"");else if(f=!!g){if(47!==k.charCodeAt(0))var k=x(b.g||"").replace(a,""),e=k.lastIndexOf("/")+1,k=x((e?k.substring(0,e):"")+x(g)).replace(a,"")}else k=k&&k.replace(a,""),k!==g&&b.G(k);f?b.G(k):f=h.aa();f?b.O(h.l):f=h.Z();f&&b.fa(h.o);return b}function e(d,a,h,f,b,g,k){this.j=d;this.n=a;this.k=h;this.h=f;this.g=b;this.l=g;this.o=k}function v(d){return"string"==typeof d&&0]/g,v={"\n":"%0a","\u000c":"%0c","\r":"%0d",'"':"%22","'":"%27","(":"%28",")":"%29","*":"%2a","<":"%3c",">":"%3e"}, +b=/^(?:([^:/?# ]+):)?/,a=/^(?:https?|mailto|data)$/i;aa=function(){var a={};return function y(f,b,k,e,N){var f=E(f),u=L[f];if(!u||"object"!==typeof u)b.length=0;else{for(var i=u.cssPropBits,q=i&80,B=i&1536,F=NaN,r=0,o=0;r=I)j=i&1?j:"";else if(R=j.charCodeAt(1),v=j.charCodeAt(2),P=48<=R&&57>=R,S=48<=v&&57>=v,43===I&&(P||46===R&&S))j=i&1?(P?"":"0")+j.substring(1):"";else if(45===I&&(P||46===R&&S))j=i&4?(P?"-":"-0")+j.substring(1):i&1?"0":"";else if(46===I&&P)j=i&1?"0"+j:"";else if('url("'===j.substring(0,5))j=k&&i&16?g(x(M(e,b[r].substring(5,j.length-2)),f,k)): +"";else if("("===j.charAt(j.length-1))a:{D=b;G=r;j=1;K=G+1;for(I=D.length;K"]= +f["+"]=f["~"]=f;ba=function(a,d,b){function g(i,r){function o(b,f,g){var y,e,i,l,o,m=n;y="";if(bh&&" "===b[e-1]&&--e;f.startAtrule&&f.startAtrule(b[d].toLowerCase(),b.slice(h,e));a="{"===b[a]?w(b,a,g,f):a+1;f.endAtrule&&f.endAtrule()}return a}function w(b,a,k,f){++a;for(f.startBlock&&f.startBlock();ad)return d=~d,d===h?d+1:d;var y=b[d];if("{"!==y)return d===h?d+1:d;a=d+1;d>h&&" "===b[d-1]&&--d;for(f.startRuleset&&f.startRuleset(b.slice(h,d));ad)d=~d;else{for(var e=[],l=0,w=a;w])/g;f=b+"";if(G)f=f.split(H);else{for(var e=[],h=0,j;(j=H.exec(f))!==s;)e.push(f.substring(h,j.index)),e.push(j[0]),h=j.index+j[0].length;e.push(f.substring(h));f=e}a(d,f,0,{r:C,C:C},g)}}function b(b,d,g,f,t){return function(){a(b,d,g,f,t)}}function a(a,d,p,e,t){try{a.H&&0==p&&a.H(t);for(var h, +z,j,i=d.length;p"===d[p+1])p+=2,j=h[1].toLowerCase(),a.t&&a.t(j,t,A,b(a,d,p,e,t));else{var m=d,q=p,r=a,u=t,v=A,y=e,w=f(m,q);w?(r.t&&r.t(w.name,u,v,b(r,m,q,y,u)),p=w.next):p=m.length}else a.e&&a.e("</",t,A,b(a,d,p,e,t));break;case "<":if(h=/^([-\w:]+)\s*\/?/.exec(l))if(h[0].length===l.length&& +">"===d[p+1]){p+=2;j=h[1].toLowerCase();a.w&&a.w(j,[],t,A,b(a,d,p,e,t));var B=g.f[j];B&K&&(p=k(d,{name:j,next:p,c:B},a,t,A,e))}else{var m=d,q=a,r=t,u=A,v=e,x=f(m,p);x?(q.w&&q.w(x.name,x.R,r,u,b(q,m,x.next,v,r)),p=x.c&K?k(m,x,q,r,u,v):x.next):p=m.length}else a.e&&a.e("<",t,A,b(a,d,p,e,t));break;case "<\!--":if(!e.C){for(z=p+1;z"===d[z]&&/--$/.test(d[z-1]));z++);if(z"!==d[z];z++);z"!==d[z];z++);z":a.e&&a.e(">",t,A,b(a,d,p,e,t));break;case "":break;default:a.e&&a.e(o,t,A,b(a,d,p,e,t))}}a.B&&a.B(t)}catch(E){if(E!==A)throw E;}}function k(a,d,f,h,t,j){var z=a.length;T.hasOwnProperty(d.name)|| +(T[d.name]=RegExp("^"+d.name+"(?:[\\s\\/]|$)","i"));for(var i=T[d.name],k=d.next,l=d.next+1;l"!==a[h];h++)e+=a[h];if(!(j<=h)){for(var l=[];""!== +e;)if(d=ja.exec(e))if(d[4]&&!d[5]||d[6]&&!d[7]){for(var d=d[4]||d[6],i=C,e=[e,a[h++]];h"===a[h])break}else 0<=a[h].indexOf(d)&&(i=n);e.push(a[h])}if(j<=h)break;e=e.join("")}else{var i=d[1].toLowerCase(),k;if(d[2]){k=d[3];var m=k.charCodeAt(0);if(34===m||39===m)k=k.substr(1,k.length-2);k=x(k.replace(o,""))}else k="";l.push(i,k);e=e.substr(d[0].length)}else e=e.replace(/^[\s\S][^a-z\s]*/,"");f.R=l;f.next=h+1;return f}}function h(a){function b(a,d){f||d.push(a)}var d,f;return v({startDoc:function(){d= +[];f=C},startTag:function(b,e,h){if(!f&&g.f.hasOwnProperty(b)){var j=g.f[b];if(!(j&g.c.FOLDABLE)){var k=a(b,e);if(k){if("object"!==typeof k)throw Error("tagPolicy did not return object (old API?)");if("attribs"in k)e=k.attribs;else throw Error("tagPolicy gave no attribs");var i;"tagName"in k?(i=k.tagName,k=g.f[i]):(i=b,k=j);if(j&g.c.OPTIONAL_ENDTAG){var l=d[d.length-1];l&&l.D===b&&(l.v!==i||b!==i)&&h.push("")}j&g.c.EMPTY||d.push({D:b,v:i});h.push("<",i);b=0;for(l=e.length;b");j&g.c.EMPTY&&!(k&g.c.EMPTY)&&h.push("")}else f=!(j&g.c.EMPTY)}}},endTag:function(a,b){if(f)f=C;else if(g.f.hasOwnProperty(a)){var e=g.f[a];if(!(e&(g.c.EMPTY|g.c.FOLDABLE))){if(e&g.c.OPTIONAL_ENDTAG)for(e=d.length;0<=--e;){var h=d[e].D;if(h===a)break;if(!(g.f[h]&g.c.OPTIONAL_ENDTAG))return}else for(e=d.length;0<=--e&&d[e].D!==a;);if(!(0>e)){for(h=d.length;--h>e;){var j=d[h].v;g.f[j]&g.c.OPTIONAL_ENDTAG||b.push("")}e< +d.length&&(a=d[e].v);d.length=e;b.push("")}}}},pcdata:b,rcdata:b,cdata:b,endDoc:function(a){for(;d.length;d.length--)a.push("")}})}function d(a,b,d,f,e){if(!e)return s;try{var g=Y.parse(""+a);if(g&&(!g.K()||ka.test(g.W()))){var h=e(g,b,d,f);return h?h.toString():s}}catch(j){}return s}function y(a,b,d,f,e){d||a(b+" removed",{S:"removed",tagName:b});if(f!==e){var g="changed";f&&!e?g="removed":!f&&e&&(g="added");a(b+"."+d+" "+g,{S:g,tagName:b,la:d,oldValue:f,newValue:e})}} +function l(a,b,d){b=b+"::"+d;if(a.hasOwnProperty(b))return a[b];b="*::"+d;if(a.hasOwnProperty(b))return a[b]}function V(a,b,f,e,h){for(var j=0;j",GT:">",amp:"&",AMP:"&",quot:'"',apos:"'",nbsp:"\u00a0"},q=/^#(\d+)$/,B=/^#x([0-9A-Fa-f]+)$/,F=/^[A-Za-z][A-za-z0-9]+$/,r="undefined"!==typeof window&& +window.document?window.document.createElement("textarea"):s,o=/\0/g,j=/&(#[0-9]+|#[xX][0-9A-Fa-f]+|\w+);/g,I=/^(#[0-9]+|#[xX][0-9A-Fa-f]+|\w+);/,R=/&/g,ia=/&([^a-z#]|#(?:[^0-9x]|x(?:[^0-9a-f]|$)|$)|$)/gi,P=/[<]/g,S=/>/g,D=/\"/g,ja=/^\s*([-.:\w]+)(?:\s*(=)\s*((")[^"]*("|$)|(')[^']*('|$)|(?=[a-z][-\w]*\s*=)|[^"'\s]*))?/i,G=3==="a,b".split(/(,)/).length,K=g.c.CDATA|g.c.RCDATA,A={},T={},ka=/^(?:https?|mailto|data)$/i,m={};m.pa=m.escapeAttrib=E;m.ra=m.makeHtmlSanitizer=h;m.sa=m.makeSaxParser=v;m.ta=m.makeTagPolicy= +ea;m.wa=m.normalizeRCData=e;m.xa=m.sanitize=function(a,b,d,e){return Q(a,ea(b,d,e))};m.ya=m.sanitizeAttribs=V;m.za=m.sanitizeWithPolicy=Q;m.Ba=m.unescapeEntities=x;return m}($),la=ha.sanitize;"undefined"!==typeof window&&(window.html=ha,window.html_sanitize=la);})(); \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/bpmn/mxBpmnShape2.js b/data/plugins/grafana-flowcharting/src/libs/shapes/bpmn/mxBpmnShape2.js new file mode 100644 index 0000000000000..6ee1cf8765534 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/bpmn/mxBpmnShape2.js @@ -0,0 +1,760 @@ +/** + * $Id: mxBpmnShape2.js,v 1.6 2013/12/20 09:54:28 mate Exp $ + * Copyright (c) 2006-2010, JGraph Ltd + */ +/** + * Class: mxBpmnShape + * + * Extends to implement an cylinder shape. If a + * custom shape with one filled area and an overlay path is + * needed, then this shape's should be overridden. + * This shape is registered under + * in . + * + * Constructor: mxBpmnShape + * + * Constructs a new cylinder shape. + * + * Parameters: + * + * bounds - that defines the bounds. This is stored in + * . + * fill - String that defines the fill color. This is stored in . + * stroke - String that defines the stroke color. This is stored in . + * strokewidth - Optional integer that defines the stroke width. Default is + * 1. This is stored in . + */ +function mxBpmnShape(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxBpmnShape, mxShape); + +mxBpmnShape.prototype.customProperties = [ + {name: 'symbol', dispName: 'Event', type: 'enum', defVal:'general', + enumList: [{val: 'general', dispName: 'General'}, + {val: 'message', dispName: 'Message'}, + {val: 'timer', dispName: 'Timer'}, + {val: 'escalation', dispName: 'Escalation'}, + {val: 'conditional', dispName: 'Conditional'}, + {val: 'link', dispName: 'Link'}, + {val: 'error', dispName: 'Error'}, + {val: 'cancel', dispName: 'Cancel'}, + {val: 'compensation', dispName: 'Compensation'}, + {val: 'signal', dispName: 'Signal'}, + {val: 'multiple', dispName: 'Multiple'}, + {val: 'parallelMultiple', dispName: 'Parallel Multiple'}, + {val: 'terminate', dispName: 'Terminate'}, + {val: 'exclusiveGw', dispName: 'Exclusive Gw'}, + {val: 'parallelGw', dispName: 'Parallel Gw'}, + {val: 'complexGw', dispName: 'Complex Gw'}] + }, + {name: 'outline', dispName: 'Event Type', type: 'enum', defVal:'standard', + enumList: [{val: 'standard', dispName: 'Standard'}, + {val: 'eventInt', dispName: 'Interrupting'}, + {val: 'eventNonint', dispName: 'Non-Interrupting'}, + {val: 'catching', dispName: 'Catching'}, + {val: 'boundInt', dispName: 'Bound Interrupting'}, + {val: 'boundNonint', dispName: 'Bound Non-Interrupting'}, + {val: 'throwing', dispName: 'Throwing'}, + {val: 'end', dispName: 'End'}, + {val: 'none', dispName: 'None'}] + }, + {name: 'background', dispName: 'Background', type: 'enum', defVal:'none', + enumList: [{val: 'gateway', dispName: 'Gateway'}, + {val: 'none', dispName: 'None'}] +}]; + +mxBpmnShape.prototype.eventTypeEnum = { + START_STANDARD : 'standard', + EVENT_SP_INT : 'eventInt', + EVENT_SP_NONINT : 'eventNonint', + CATCHING : 'catching', + BOUND_INT : 'boundInt', + BOUND_NONINT : 'boundNonint', + THROWING : 'throwing', + END : 'end', + NONE : 'none', + GATEWAY : 'gateway'}; + +mxBpmnShape.prototype.eventEnum = { + GENERAL : 'general', + MESSAGE : 'message', + TIMER : 'timer', + ESCALATION : 'escalation', + CONDITIONAL : 'conditional', + LINK : 'link', + ERROR : 'error', + CANCEL : 'cancel', + COMPENSATION : 'compensation', + SIGNAL : 'signal', + MULTIPLE : 'multiple', + PAR_MULTI : 'parallelMultiple', + TERMINATE : 'terminate', + GW_EXCLUSIVE : 'exclusiveGw', + GW_PARALLEL : 'parallelGw', + GW_COMPLEX : 'complexGw'}; + +mxBpmnShape.prototype.miscEnum = { + OUTLINE : 'outline', + BACKGROUND : 'background', + SYMBOL : 'symbol', + GATEWAY : 'gateway'}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxBpmnShape.prototype.paintVertexShape = function(c, x, y, w, h) +{ + this.redrawPath(c, x, y, w, h, mxBpmnShape.prototype.miscEnum.BACKGROUND); + var bg = mxUtils.getValue(this.style, mxBpmnShape.prototype.miscEnum.BACKGROUND, mxBpmnShape.prototype.eventTypeEnum.NONE); + + if (bg === mxBpmnShape.prototype.eventTypeEnum.GATEWAY) + { + c.setShadow(false); + } + + this.redrawPath(c, x, y, w, h, mxBpmnShape.prototype.miscEnum.OUTLINE); + this.redrawPath(c, x, y, w, h, mxBpmnShape.prototype.miscEnum.SYMBOL); +}; + +/** + * Function: redrawPath + * + * Draws the path for this shape. + */ +mxBpmnShape.prototype.redrawPath = function(c, x, y, w, h, layer) +{ + var bg = mxUtils.getValue(this.style, mxBpmnShape.prototype.miscEnum.BACKGROUND, mxBpmnShape.prototype.eventTypeEnum.NONE); + + if (layer == mxBpmnShape.prototype.miscEnum.BACKGROUND) + { + if (bg != null) + { + var f = this.backgrounds[bg]; + + if (f != null) + { + c.translate(x, y); + f.call(this, c, x, y, w, h, layer); + } + } + } + else if (layer == mxBpmnShape.prototype.miscEnum.OUTLINE) + { + if (bg === mxBpmnShape.prototype.eventTypeEnum.GATEWAY) + { + c.translate(w / 4, h / 4); + h /= 2; + w /= 2; + + //add rhombus connections here + this.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.25, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.25, 0.75), false), + new mxConnectionConstraint(new mxPoint(0.75, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.75, 0.75), false) + ]; + } + else + { + //add ellipse connections here + this.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.145, 0.145), false), + new mxConnectionConstraint(new mxPoint(0.145, 0.855), false), + new mxConnectionConstraint(new mxPoint(0.855, 0.145), false), + new mxConnectionConstraint(new mxPoint(0.855, 0.855), false) + ]; + } + + var o = mxUtils.getValue(this.style, mxBpmnShape.prototype.miscEnum.OUTLINE, mxBpmnShape.prototype.eventTypeEnum.NONE); + + if (o != null) + { + var f = this.outlines[o]; + + if (f != null) + { + f.call(this, c, x, y, w, h, bg === mxBpmnShape.prototype.eventTypeEnum.GATEWAY); + } + } + } + else if (layer == mxBpmnShape.prototype.miscEnum.SYMBOL) + { + if (bg === mxBpmnShape.prototype.eventTypeEnum.GATEWAY) + { + h /= 2; + w /= 2; + } + + var s = mxUtils.getValue(this.style, mxBpmnShape.prototype.miscEnum.SYMBOL, null); + + if (s != null) + { + var f = this.symbols[s]; + var isInverse = false; + if (f != null) + { + var strokeColor = c.state.strokeColor; + var fillColor = c.state.fillColor; + var o = mxUtils.getValue(this.style, mxBpmnShape.prototype.miscEnum.OUTLINE, mxBpmnShape.prototype.eventTypeEnum.NONE); + + if (s === mxBpmnShape.prototype.eventEnum.MESSAGE) + { + c.translate(w * 0.15, h * 0.3); + w = w * 0.7; + h = h * 0.4; + } + else if (s === mxBpmnShape.prototype.eventEnum.TIMER) + { + c.translate(w * 0.11, h * 0.11); + w = w * 0.78; + h = h * 0.78; + } + else if (s === mxBpmnShape.prototype.eventEnum.ESCALATION) + { + c.translate(w * 0.19, h * 0.15); + w = w * 0.62; + h = h * 0.57; + } + else if (s === mxBpmnShape.prototype.eventEnum.CONDITIONAL) + { + c.translate(w * 0.3, h * 0.16); + w = w * 0.4; + h = h * 0.68; + } + else if (s === mxBpmnShape.prototype.eventEnum.LINK) + { + c.translate(w * 0.27, h * 0.33); + w = w * 0.46; + h = h * 0.34; + } + else if (s === mxBpmnShape.prototype.eventEnum.ERROR) + { + c.translate(w * 0.212, h * 0.243); + w = w * 0.58; + h = h * 0.507; + } + else if (s === mxBpmnShape.prototype.eventEnum.CANCEL) + { + c.translate(w * 0.22, h * 0.22); + w = w * 0.56; + h = h * 0.56; + } + else if (s === mxBpmnShape.prototype.eventEnum.COMPENSATION) + { + c.translate(w * 0.28, h * 0.35); + w = w * 0.44; + h = h * 0.3; + } + else if (s === mxBpmnShape.prototype.eventEnum.SIGNAL) + { + c.translate(w * 0.19, h * 0.15); + w = w * 0.62; + h = h * 0.57; + } + else if (s === mxBpmnShape.prototype.eventEnum.MULTIPLE) + { + c.translate(w * 0.2, h * 0.19); + w = w * 0.6; + h = h * 0.565; + } + else if (s === mxBpmnShape.prototype.eventEnum.PAR_MULTI) + { + c.translate(w * 0.2, h * 0.2); + w = w * 0.6; + h = h * 0.6; + } + else if (s === mxBpmnShape.prototype.eventEnum.TERMINATE) + { + c.translate(w * 0.05, h * 0.05); + w = w * 0.9; + h = h * 0.9; + } + else if (s === mxBpmnShape.prototype.eventEnum.GW_EXCLUSIVE) + { + c.translate(w * 0.12, 0); + w = w * 0.76; + } + + isInverse = false; + + if (s === 'star') + { + c.setFillColor(strokeColor); + } + else if (o === mxBpmnShape.prototype.eventTypeEnum.THROWING || o === mxBpmnShape.prototype.eventTypeEnum.END) + { + c.setStrokeColor(fillColor); + c.setFillColor(strokeColor); + isInverse = true; + } + + f.call(this, c, x, y, w, h, layer, isInverse); + + if (s === 'star') + { + c.setFillColor(fillColor); + } + else if (o === mxBpmnShape.prototype.eventTypeEnum.THROWING || o === mxBpmnShape.prototype.eventTypeEnum.END) + { + c.setStrokeColor(strokeColor); + c.setFillColor(fillColor); + } + } + } + } +}; + +//Contains all possible backgrounds +mxBpmnShape.prototype.backgrounds = { + 'none': function(c, x, y, w, h) + { + }, + 'gateway': function(c, x, y, w, h) + { + c.begin(); + c.moveTo(w / 2, 0); + c.lineTo(w, h / 2); + c.lineTo(w / 2, h); + c.lineTo(0, h / 2); + c.close(); + c.fillAndStroke(); + } +}; + +//Contains all possible outlines +mxBpmnShape.prototype.outlines = { + 'none' : function(c, x, y, w, h, isGateway) + { + if (!isGateway) + { + c.setShadow(false); + } + }, + 'standard': function(c, x, y, w, h, isGateway) + { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + if (!isGateway) + { + c.setShadow(false); + } + }, + 'eventInt': function(c, x, y, w, h, isGateway) + { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + if (!isGateway) + { + c.setShadow(false); + } + }, + 'eventNonint': function(c, x, y, w, h, isGateway) + { + var dashed = c.state.dashed; + c.setDashed(true); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + c.setDashed(dashed); + + if (!isGateway) + { + c.setShadow(false); + } + + }, + 'catching': function(c, x, y, w, h, isGateway) + { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + if (!isGateway) + { + c.setShadow(false); + } + + var inset = 2; + c.ellipse(inset, inset, w - 2 *inset, h - 2 * inset); + c.stroke(); + }, + 'boundInt': function(c, x, y, w, h, isGateway) + { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + if (!isGateway) + { + c.setShadow(false); + } + var inset = 2; + c.ellipse(inset, inset, w - 2 *inset, h - 2 * inset); + c.stroke(); + }, + 'boundNonint': function(c, x, y, w, h, isGateway) + { + var dashed = c.state.dashed; + c.setDashed(true); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + if (!isGateway) + { + c.setShadow(false); + } + + var inset = 2; + c.ellipse(inset, inset, w - 2 *inset, h - 2 * inset); + c.stroke(); + c.setDashed(dashed); + }, + 'throwing': function(c, x, y, w, h, isGateway) + { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + if (!isGateway) + { + c.setShadow(false); + } + + var inset = 2; + c.ellipse(w * 0.02 + inset, h * 0.02 + inset, w * 0.96 - 2 *inset, h * 0.96 - 2 * inset); + c.stroke(); + }, + 'end': function(c, x, y, w, h, isGateway) + { + var sw = c.state.strokeWidth; + c.setStrokeWidth(sw * 3); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + c.setStrokeWidth(sw); + + if (!isGateway) + { + c.setShadow(false); + } + } +}; + +//Contains all possible symbols +mxBpmnShape.prototype.symbols = { + 'general' : function(c, x, y, w, h) + { + }, + 'message': function(c, x, y, w, h, layer, isInverse) + { + c.rect(0, 0, w, h); + c.fillAndStroke(); + + var fc = mxUtils.getValue(this.style, "fillColor", "none"); + + if (fc === 'none') + { + if (isInverse) + { + c.setStrokeColor('#ffffff'); + } + } + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w, 0); + c.stroke(); + }, + 'timer' : function(c, x, y, w, h) + { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h * 0.0642); + c.moveTo(w * 0.7484, h * 0.0654); + c.lineTo(w * 0.7126, h * 0.1281); + c.moveTo(w * 0.93, h * 0.2471); + c.lineTo(w * 0.8673, h * 0.2854); + c.moveTo(w, h * 0.5); + c.lineTo(w * 0.9338, h * 0.5); + c.moveTo(w * 0.93, h * 0.7509); + c.lineTo(w * 0.8673, h * 0.7126); + c.moveTo(w * 0.7484, h * 0.9326); + c.lineTo(w * 0.7126, h * 0.8699); + c.moveTo(w * 0.5, h * 0.9338); + c.lineTo(w * 0.5, h); + c.moveTo(w * 0.2496, h * 0.9325); + c.lineTo(w * 0.2854, h * 0.8699); + c.moveTo(w * 0.068, h * 0.7509); + c.lineTo(w * 0.1307, h * 0.7126); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.0642, h * 0.5); + c.moveTo(w * 0.068, h * 0.2471); + c.lineTo(w * 0.1307, h * 0.2854); + c.moveTo(w * 0.2496, h * 0.0654); + c.lineTo(w * 0.2854, h * 0.1281); + c.moveTo(w * 0.5246, h * 0.0706); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.7804, h * 0.5118); + c.stroke(); + }, + 'escalation' : function(c, x, y, w, h) + { + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h); + c.lineTo(w * 0.5, h * 0.5); + c.close(); + c.fillAndStroke(); + }, + 'conditional' : function(c, x, y, w, h) + { + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.begin(); + c.moveTo(0, h * 0.1027); + c.lineTo(w * 0.798, h * 0.1027); + c.moveTo(0, h * 0.3669); + c.lineTo(w * 0.798, h * 0.3669); + c.moveTo(0, h * 0.6311); + c.lineTo(w * 0.798, h * 0.6311); + c.moveTo(0, h * 0.8953); + c.lineTo(w * 0.798, h * 0.8953); + c.stroke(); + }, + 'link' : function(c, x, y, w, h) + { + c.begin(); + c.moveTo(0, h * 0.76); + c.lineTo(0, h * 0.24); + c.lineTo(w * 0.63, h * 0.24); + c.lineTo(w * 0.63, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.63, h); + c.lineTo(w * 0.63, h * 0.76); + c.close(); + c.fillAndStroke(); + }, + 'error' : function(c, x, y, w, h) + { + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.3287, h * 0.123); + c.lineTo(w * 0.6194, h * 0.6342); + c.lineTo(w, 0); + c.lineTo(w * 0.6625, h * 0.939); + c.lineTo(w * 0.3717, h * 0.5064); + c.close(); + c.fillAndStroke(); + }, + 'cancel' : function(c, x, y, w, h) + { + c.begin(); + c.moveTo(w * 0.1051, 0); + c.lineTo(w * 0.5, h * 0.3738); + c.lineTo(w * 0.8909, 0); + c.lineTo(w, h * 0.1054); + c.lineTo(w * 0.623, h * 0.5); + c.lineTo(w, h * 0.8926); + c.lineTo(w * 0.8909, h); + c.lineTo(w * 0.5, h * 0.6242); + c.lineTo(w * 0.1051, h); + c.lineTo(0, h * 0.8926); + c.lineTo(w * 0.373, h * 0.5); + c.lineTo(0, h * 0.1054); + c.close(); + c.fillAndStroke(); + }, + 'compensation' : function(c, x, y, w, h) + { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.close(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(w, 0); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + }, + 'signal' : function(c, x, y, w, h) + { + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + }, + 'multiple' : function(c, x, y, w, h) + { + c.begin(); + c.moveTo(0, h * 0.39); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.39); + c.lineTo(w * 0.815, h); + c.lineTo(w * 0.185, h); + c.close(); + c.fillAndStroke(); + }, + 'parallelMultiple' : function(c, x, y, w, h) + { + c.begin(); + c.moveTo(w * 0.38, 0); + c.lineTo(w * 0.62, 0); + c.lineTo(w * 0.62, h * 0.38); + c.lineTo(w, h * 0.38); + c.lineTo(w, h * 0.62); + c.lineTo(w * 0.62, h * 0.62); + c.lineTo(w * 0.62, h); + c.lineTo(w * 0.38, h); + c.lineTo(w * 0.38, h * 0.62); + c.lineTo(0, h * 0.62); + c.lineTo(0, h * 0.38); + c.lineTo(w * 0.38, h * 0.38); + c.close(); + c.fillAndStroke(); + }, + 'terminate' : function(c, x, y, w, h) + { + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + }, + 'exclusiveGw' : function(c, x, y, w, h) + { + var strokeColor = c.state.strokeColor; + var fillColor = c.state.fillColor; + c.setStrokeColor(fillColor); + c.setFillColor(strokeColor); + + c.begin(); + c.moveTo(w * 0.105, 0); + c.lineTo(w * 0.5, h * 0.38); + c.lineTo(w * 0.895, h * 0); + c.lineTo(w, h * 0.11); + c.lineTo(w * 0.6172, h * 0.5); + c.lineTo(w, h * 0.89); + c.lineTo(w * 0.895, h); + c.lineTo(w * 0.5, h * 0.62); + c.lineTo(w * 0.105, h); + c.lineTo(0, h * 0.89); + c.lineTo(w * 0.3808, h * 0.5); + c.lineTo(0, h * 0.11); + c.close(); + c.fillAndStroke(); + + c.setStrokeColor(strokeColor); + c.setFillColor(fillColor); + + }, + 'parallelGw' : function(c, x, y, w, h) + { + var strokeColor = c.state.strokeColor; + var fillColor = c.state.fillColor; + c.setStrokeColor(fillColor); + c.setFillColor(strokeColor); + + c.begin(); + c.moveTo(w * 0.38, 0); + c.lineTo(w * 0.62, 0); + c.lineTo(w * 0.62, h * 0.38); + c.lineTo(w, h * 0.38); + c.lineTo(w, h * 0.62); + c.lineTo(w * 0.62, h * 0.62); + c.lineTo(w * 0.62, h); + c.lineTo(w * 0.38, h); + c.lineTo(w * 0.38, h * 0.62); + c.lineTo(0, h * 0.62); + c.lineTo(0, h * 0.38); + c.lineTo(w * 0.38, h * 0.38); + c.close(); + c.fillAndStroke(); + + c.setStrokeColor(strokeColor); + c.setFillColor(fillColor); + }, + 'complexGw' : function(c, x, y, w, h) + { + var strokeColor = c.state.strokeColor; + var fillColor = c.state.fillColor; + c.setStrokeColor(fillColor); + c.setFillColor(strokeColor); + + c.begin(); + c.moveTo(0, h * 0.44); + c.lineTo(w * 0.36, h * 0.44); + c.lineTo(w * 0.1, h * 0.18); + c.lineTo(w * 0.18, h * 0.1); + c.lineTo(w * 0.44, h * 0.36); + c.lineTo(w * 0.44, 0); + c.lineTo(w * 0.56, 0); + c.lineTo(w * 0.56, h * 0.36); + c.lineTo(w * 0.82, h * 0.1); + c.lineTo(w * 0.90, h * 0.18); + c.lineTo(w * 0.64, h * 0.44); + c.lineTo(w, h * 0.44); + c.lineTo(w, h * 0.56); + c.lineTo(w * 0.64, h * 0.56); + c.lineTo(w * 0.9, h * 0.82); + c.lineTo(w * 0.82, h * 0.9); + c.lineTo(w * 0.56, h * 0.64); + c.lineTo(w * 0.56, h); + c.lineTo(w * 0.44, h); + c.lineTo(w * 0.44, h * 0.64); + c.lineTo(w * 0.18, h * 0.9); + c.lineTo(w * 0.1, h * 0.82); + c.lineTo(w * 0.36, h * 0.56); + c.lineTo(0, h * 0.56); + c.close(); + c.fillAndStroke(); + + c.setStrokeColor(strokeColor); + c.setFillColor(fillColor); + }, + 'star': function(c, x, y, w, h) + { + c.translate(w / 5, h / 6); + h *= 2 / 3; + w *= 3 / 5; + + c.begin(); + c.moveTo(0, h / 4); + c.lineTo(w / 3, h / 4); + c.lineTo(w / 2, 0); + c.lineTo(2 * w / 3, h / 4); + c.lineTo(w, h / 4); + c.lineTo(5 * w / 6, h / 2); + c.lineTo(w, 3 * h / 4); + c.lineTo(2 * w / 3, 3 * h / 4); + c.lineTo(w / 2, h); + c.lineTo(w / 3, 3 * h / 4); + c.lineTo(0, 3 * h / 4); + c.lineTo(w / 6, h / 2); + c.close(); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape('mxgraph.bpmn.shape', mxBpmnShape); diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/er/mxER.js b/data/plugins/grafana-flowcharting/src/libs/shapes/er/mxER.js new file mode 100644 index 0000000000000..935c5334453b6 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/er/mxER.js @@ -0,0 +1,1468 @@ +/** + * $Id: mxER.js,v 1.6 2013/05/17 13:46:41 mate Exp $ + * Copyright (c) 2006-2010, JGraph Ltd + */ + +//TODO markers.html probably isn't needed, because it was used for testing during development before the new canvas was introduced + +//********************************************************************************************************************************************************** +//Entity +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeEREntity(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeEREntity, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeEREntity.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, 'buttonText', 'Entity'); + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + var rSize = 10; + w = Math.max(w, 2 * rSize); + h = Math.max(h, 2 * rSize); + this.background(c, x, y, w, h, rSize, fontColor); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeEREntity.prototype.background = function(c, x, y, w, h, rSize, fontColor) +{ + var buttonStyle = mxUtils.getValue(this.style, 'buttonStyle', 'round').toString(); + + if (buttonStyle === 'round') + { + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); + } + else if (buttonStyle === 'rect') + { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + } + else if (buttonStyle === 'dblFrame') + { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + c.setFillColor(fillColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + rSize = Math.min(w, h); + c.begin(); + c.moveTo(rSize * 0.1, rSize * 0.1); + c.lineTo(w - rSize * 0.1, rSize * 0.1); + c.lineTo(w - rSize * 0.1, h - rSize * 0.1); + c.lineTo(rSize * 0.1, h - rSize * 0.1); + c.close(); + c.stroke(); + } + +}; + +mxShapeEREntity.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape('mxgraph.er.entity', mxShapeEREntity); + +mxShapeEREntity.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Entity Extended +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeEREntityExt(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeEREntityExt, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeEREntityExt.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, 'buttonText', 'Entity'); + var attributes = mxUtils.getValue(this.style, 'subText', '+ attribute 1,+ attribute 2,+ attribute 3').toString().split(','); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + var mainColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#008cff'); + var attrColor = mxUtils.getValue(this.style, 'fillColor2', '#ffffff'); + var maxTextWidth = 0; + c.translate(x, y); + var rSize = 10; + var barY = fontSize * 1.25; + + for (var i = 0; i < attributes.length; i++) + { + var currWidth = mxUtils.getSizeForString(attributes[i], fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxTextWidth) + { + maxTextWidth = currWidth; + } + } + + w = Math.max(w, 2 * rSize, maxTextWidth + rSize); + h = Math.max(h, 2 * rSize, (attributes.length + 1) * barY); + this.background(c, x, y, w, h, rSize); + c.setShadow(false); + this.shapes(c, x, y, w, h, fontSize, mainColor, attrColor, rSize, barY); + this.mainText(c, x, y, w, h, mainText, fontSize, attrColor); + this.attrText(c, x, y, w, h, attributes, fontSize, strokeColor, barY, rSize); +}; + +mxShapeEREntityExt.prototype.background = function(c, x, y, w, h, rSize) +{ + var buttonStyle = mxUtils.getValue(this.style, 'buttonStyle', 'round').toString(); + c.begin(); + + if (buttonStyle === 'round') + { + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + } + else if (buttonStyle === 'rect') + { + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + } + + c.close(); + c.fillAndStroke(); +}; + +mxShapeEREntityExt.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, fontSize * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxShapeEREntityExt.prototype.shapes = function(c, x, y, w, h, fontSize, mainColor, attrColor, rSize, barY) +{ + var buttonStyle = mxUtils.getValue(this.style, 'buttonStyle', 'round').toString(); + + if (buttonStyle === 'round') + { + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, barY); + c.lineTo(0, barY); + c.close(); + c.fill(); + + c.setFillColor(attrColor); + c.begin(); + c.moveTo(w, barY); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.lineTo(0, barY); + c.close(); + c.fill(); + } + else if (buttonStyle === 'rect') + { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, barY); + c.lineTo(0, barY); + c.close(); + c.fill(); + + c.setFillColor(attrColor); + c.begin(); + c.moveTo(0, barY); + c.lineTo(w, barY); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fill(); + } + + c.begin(); + + if (buttonStyle === 'round') + { + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + } + else if (buttonStyle === 'rect') + { + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + } + + c.close(); + c.stroke(); +}; + +mxShapeEREntityExt.prototype.attrText = function(c, x, y, w, h, attributes, fontSize, fontColor, barY, rSize) +{ + for (var i = 0; i < attributes.length; i++) + { + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(rSize * 0.5, (i + 1.5) * barY, 0, 0, attributes[i], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape('mxgraph.er.entityExt', mxShapeEREntityExt); + +mxShapeEREntityExt.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Attribute +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeERAttribute(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeERAttribute, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeERAttribute.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, 'buttonText', 'Entity'); + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + var rSize = 10; + w = Math.max(w, 2 * rSize); + h = Math.max(h, 2 * rSize); + this.background(c, x, y, w, h, rSize, fontColor); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeERAttribute.prototype.background = function(c, x, y, w, h, rSize, fontColor) +{ + var buttonStyle = mxUtils.getValue(this.style, 'buttonStyle', 'simple').toString(); + + if (buttonStyle === 'simple') + { + c.begin(); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + } + else if (buttonStyle === 'dblFrame') + { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#666666'); + c.setFillColor(fillColor); + c.begin(); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + rSize = Math.min(w, h); + c.begin(); + c.ellipse(rSize * 0.1, rSize * 0.1, w - rSize * 0.2, h - rSize * 0.2); + c.stroke(); + } +}; + +mxShapeERAttribute.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape('mxgraph.er.attribute', mxShapeERAttribute); + +mxShapeERAttribute.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.144, 0.144), false), + new mxConnectionConstraint(new mxPoint(0.856, 0.144), false), + new mxConnectionConstraint(new mxPoint(0.856, 0.856), false), + new mxConnectionConstraint(new mxPoint(0.144, 0.856), false), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Has +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeERHas(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeERHas, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeERHas.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, 'buttonText', 'Entity'); + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + var rSize = 10; + w = Math.max(w, 2 * rSize); + h = Math.max(h, 2 * rSize); + this.background(c, x, y, w, h, rSize, fontColor); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeERHas.prototype.background = function(c, x, y, w, h, rSize, fontColor) +{ + var buttonStyle = mxUtils.getValue(this.style, 'buttonStyle', 'rhombus').toString(); + + if (buttonStyle === 'rhombus') + { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + } + else if (buttonStyle === 'dblFrame') + { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#666666'); + c.setFillColor(fillColor); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.1, h * 0.5); + c.lineTo(w * 0.5, h * 0.1); + c.lineTo(w * 0.9, h * 0.5); + c.lineTo(w * 0.5, h * 0.9); + c.close(); + c.stroke(); + } +}; + +mxShapeERHas.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape('mxgraph.er.has', mxShapeERHas); + +mxShapeERHas.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.25, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.25, 0.75), false), + new mxConnectionConstraint(new mxPoint(0.75, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.75, 0.75), false) + ]; + +//********************************************************************************************************************************************************** +//Cloud +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeERCloud(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeERCloud, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeERCloud.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, 'buttonText', 'Entity'); + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + var rSize = 10; + w = Math.max(w, 2 * rSize); + h = Math.max(h, 2 * rSize); + this.background(c, x, y, w, h, rSize, fontColor); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeERCloud.prototype.background = function(c, x, y, w, h, rSize, fontColor) +{ + c.begin(); + c.moveTo(0.25 * w, 0.25 * h); + c.curveTo(0.05 * w, 0.25 * h, 0, 0.5 * h, 0.16 * w, 0.55 * h); + c.curveTo(0, 0.66 * h, 0.18 * w, 0.9 * h, 0.31 * w, 0.8 * h); + c.curveTo(0.4 * w, h, 0.7 * w, h, 0.8 * w, 0.8 * h); + c.curveTo(w, 0.8 * h, w, 0.6 * h, 0.875 * w, 0.5 * h); + c.curveTo(w, 0.3 * h, 0.8 * w, 0.1 * h, 0.625 * w, 0.2 * h); + c.curveTo(0.5 * w, 0.05 * h, 0.3 * w, 0.05 * h, 0.25 * w, 0.25 * h); + c.fillAndStroke(); +}; + +mxShapeERCloud.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape('mxgraph.er.cloud', mxShapeERCloud); + +mxShapeERCloud.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.08, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.9, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.5, 0.1), false), + new mxConnectionConstraint(new mxPoint(0.5, 0.92), false), + new mxConnectionConstraint(new mxPoint(0.24, 0.24), false), + new mxConnectionConstraint(new mxPoint(0.22, 0.8), false), + new mxConnectionConstraint(new mxPoint(0.81, 0.2), false), + new mxConnectionConstraint(new mxPoint(0.78, 0.78), false) + ]; + +//********************************************************************************************************************************************************** +//Hierarchy (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeERHierarchy(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeERHierarchy, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeERHierarchy.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, 'buttonText', 'main').toString().split(','); + var subText = mxUtils.getValue(this.style, 'subText', 'sub').toString().split(','); + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + var rSize = 10; + w = Math.max(w, 2 * rSize); + h = Math.max(h, 2 * rSize); + this.background(c, x, y, w, h, rSize, fontColor); + c.setShadow(false); + this.shapeText(c, x, y, w, h, mainText, subText, fontSize, fontColor); +}; + +mxShapeERHierarchy.prototype.background = function(c, x, y, w, h, rSize, fontColor) +{ + var buttonStyle = mxUtils.getValue(this.style, 'buttonStyle', 'round').toString(); + + if (buttonStyle === 'round') + { + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); + } + else if (buttonStyle === 'rect') + { + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + } + else if (buttonStyle === 'dblFrame') + { + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#666666'); + c.setFillColor(fillColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + rSize = Math.min(w, h); + c.begin(); + c.moveTo(rSize * 0.1, rSize * 0.1); + c.lineTo(w - rSize * 0.1, rSize * 0.1); + c.lineTo(w - rSize * 0.1, h - rSize * 0.1); + c.lineTo(rSize * 0.1, h - rSize * 0.1); + c.close(); + c.stroke(); + } + + var trX = 0; + var trY = 0; + + if (buttonStyle === 'round') + { + trX = w * 0.5; + trY = rSize; + c.translate(trX, trY); + w = w * 0.5 - rSize; + h = h - 2 * rSize; + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); + } + else if (buttonStyle === 'rect') + { + trX = w * 0.5; + trY = rSize; + c.translate(trX, trY); + w = w * 0.5 - rSize; + h = h - 2 * rSize; + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + } + else if (buttonStyle === 'dblFrame') + { + trX = w * 0.5; + trY = rSize * 0.15; + c.translate(trX, trY); + w = w * 0.5 - rSize * 0.15; + h = h - rSize * 0.3; + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#666666'); + c.setFillColor(fillColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + rSize = Math.min(w, h); + c.begin(); + c.moveTo(rSize * 0.1, rSize * 0.1); + c.lineTo(w - rSize * 0.1, rSize * 0.1); + c.lineTo(w - rSize * 0.1, h - rSize * 0.1); + c.lineTo(rSize * 0.1, h - rSize * 0.1); + c.close(); + c.stroke(); + } + + c.translate(- trX, - trY); + +}; + +mxShapeERHierarchy.prototype.shapeText = function(c, x, y, w, h, text, subText, fontSize, fontColor, rSize) +{ + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.25, (h - fontSize) * 0.5, 0, 0, text[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.25, (h + fontSize) * 0.5, 0, 0, text[1], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.7, (h - fontSize) * 0.5, 0, 0, subText[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.7, (h + fontSize) * 0.5, 0, 0, subText[1], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape('mxgraph.er.hierarchy', mxShapeERHierarchy); + +mxShapeERHierarchy.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Note +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeERNote(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeERNote, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeERNote.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, 'buttonText', 'Entity'); + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + var backColor = mxUtils.getValue(this.style, 'fillColor2', '#ffffff'); + c.translate(x, y); + var flipSize = 20; + w = Math.max(w, flipSize * 2); + h = Math.max(h, flipSize * 2); + this.background(c, x, y, w, h, flipSize); + c.setShadow(false); + this.flipShape(c, x, y, w, h, flipSize, backColor); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeERNote.prototype.background = function(c, x, y, w, h, flipSize) +{ + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - flipSize, 0); + c.lineTo(w, flipSize); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeERNote.prototype.flipShape = function(c, x, y, w, h, flipSize, backColor) +{ + c.setLineJoin('round'); + c.setFillColor(backColor); + c.begin(); + c.moveTo(w - flipSize, 0); + c.lineTo(w, flipSize); + c.lineTo(w - flipSize, flipSize); + c.close(); + c.fillAndStroke(); +}; + +mxShapeERNote.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape('mxgraph.er.note', mxShapeERNote); + +mxShapeERNote.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Chen's Notation Legend (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeERChen(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeERChen, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeERChen.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + var flipSize = 20; + w = Math.max(w, flipSize * 2); + h = Math.max(h, flipSize * 2); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h, fontSize, fontColor); +}; + +mxShapeERChen.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeERChen.prototype.foreground = function(c, x, y, w, h, fontSize, fontColor) +{ + c.begin(); + c.moveTo(0, h * 0.25); + c.lineTo(w, h * 0.25); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.moveTo(0, h * 0.75); + c.lineTo(w, h * 0.75); + + c.moveTo(w * 0.25, h * 0.5); + c.lineTo(w * 0.25, h); + + c.moveTo(w * 0.5, h * 0.25); + c.lineTo(w * 0.5, h); + + c.moveTo(w * 0.75, h * 0.5); + c.lineTo(w * 0.75, h); + c.stroke(); + + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.125, 0, 0, 'ERD Peter Chen\'s Notation', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setFontSize(fontSize * 0.85); + c.text(w * 0.25, h * 0.375, 0, 0, 'Cardinality', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.75, h * 0.375, 0, 0, 'Optionality', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setFontSize(fontSize * 0.7); + c.text(w * 0.125, h * 0.625, 0, 0, '1', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.375, h * 0.625, 0, 0, 'One', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.625, h * 0.625, 0, 0, '0', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.875, h * 0.625, 0, 0, 'Optional', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.text(w * 0.125, h * 0.875, 0, 0, 'N', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.375, h * 0.875, 0, 0, 'Many', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.625, h * 0.875, 0, 0, '1', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.875, h * 0.875, 0, 0, 'Mandatory', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape('mxgraph.er.chens', mxShapeERChen); + +mxShapeERChen.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0), true), + new mxConnectionConstraint(new mxPoint(1, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Bachman's Notation Legend (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeERBachman(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeERBachman, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeERBachman.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h, fontSize, fontColor); +}; + +mxShapeERBachman.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeERBachman.prototype.foreground = function(c, x, y, w, h, fontSize, fontColor) +{ + c.begin(); + c.moveTo(0, h * 0.125); + c.lineTo(w, h * 0.125); + c.moveTo(0, h * 0.25); + c.lineTo(w, h * 0.25); + c.moveTo(0, h * 0.375); + c.lineTo(w, h * 0.375); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.moveTo(0, h * 0.625); + c.lineTo(w, h * 0.625); + c.moveTo(0, h * 0.75); + c.lineTo(w, h * 0.75); + c.moveTo(0, h * 0.875); + c.lineTo(w, h * 0.875); + + c.moveTo(w * 0.5, h * 0.125); + c.lineTo(w * 0.5, h); + c.stroke(); + + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.0625, 0, 0, 'ERD Bachman\'s Notation', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setFontSize(fontSize * 0.85); + c.text(w * 0.52, h * 0.1875, 0, 0, 'Relationship', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.3125, 0, 0, 'Cardinality (One)', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.4375, 0, 0, 'Cardinality (Many)', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.5625, 0, 0, 'Mandatory, One', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.6875, 0, 0, 'Mandatory, Many', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.8125, 0, 0, 'Optional, One', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.9375, 0, 0, 'Optional, Many', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + var textWidth = mxUtils.getSizeForString('has/forms', fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + c.begin(); + c.moveTo(w * 0.04, h * 0.1875); + c.lineTo(w * 0.25 - textWidth * 0.5, h * 0.1875); + c.moveTo(w * 0.25 + textWidth * 0.5, h * 0.1875); + c.lineTo(w * 0.46, h * 0.1875); + + c.text(w * 0.25, h * 0.1875, 0, 0, 'has/forms', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, true, 0, 0); + + c.moveTo(w * 0.04, h * 0.3125); + c.lineTo(w * 0.46, h * 0.3125); + + c.moveTo(w * 0.04, h * 0.4375); + c.lineTo(w * 0.46, h * 0.4375); + c.moveTo(w * 0.46, h * 0.4050); + c.lineTo(w * 0.4, h * 0.4375); + c.lineTo(w * 0.46, h * 0.47); + + c.moveTo(w * 0.04, h * 0.5625); + c.lineTo(w * 0.46, h * 0.5625); + c.moveTo(w * 0.38, h * 0.53); + c.lineTo(w * 0.38, h * 0.595); + + c.moveTo(w * 0.04, h * 0.6875); + c.lineTo(w * 0.46, h * 0.6875); + c.moveTo(w * 0.46, h * 0.655); + c.lineTo(w * 0.4, h * 0.6875); + c.lineTo(w * 0.46, h * 0.72); + c.moveTo(w * 0.38, h * 0.655); + c.lineTo(w * 0.38, h * 0.72); + + c.moveTo(w * 0.04, h * 0.8125); + c.lineTo(w * 0.46, h * 0.8125); + + c.moveTo(w * 0.04, h * 0.9375); + c.lineTo(w * 0.46, h * 0.9375); + c.moveTo(w * 0.46, h * 0.9050); + c.lineTo(w * 0.4, h * 0.9375); + c.lineTo(w * 0.46, h * 0.97); + + c.stroke(); + + var ellSize = h / 15; + c.begin(); + c.ellipse(w * 0.46 - ellSize, h * 0.8125 - ellSize * 0.5, ellSize, ellSize); + c.fillAndStroke(); + + c.begin(); + c.ellipse(w * 0.4 - ellSize, h * 0.9375 - ellSize * 0.5, ellSize, ellSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.er.bachmans', mxShapeERBachman); + +mxShapeERBachman.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0), true), + new mxConnectionConstraint(new mxPoint(1, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Information Engineering Notation Legend (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeERInfEng(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeERInfEng, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeERInfEng.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var fontColor = mxUtils.getValue(this.style, 'textColor', '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17'); + c.translate(x, y); + w = Math.max(w, h / 1.5); + h = Math.max(h, fontSize * 5); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h, fontSize, fontColor); +}; + +mxShapeERInfEng.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeERInfEng.prototype.foreground = function(c, x, y, w, h, fontSize, fontColor) +{ + c.begin(); + c.moveTo(0, h * 0.2); + c.lineTo(w, h * 0.2); + c.moveTo(0, h * 0.4); + c.lineTo(w, h * 0.4); + c.moveTo(0, h * 0.6); + c.lineTo(w, h * 0.6); + c.moveTo(0, h * 0.8); + c.lineTo(w, h * 0.8); + + c.moveTo(w * 0.5, h * 0.2); + c.lineTo(w * 0.5, h); + c.stroke(); + + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.1, 0, 0, 'ERD Information Engineering Notation', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setFontSize(fontSize * 0.85); + c.text(w * 0.52, h * 0.3, 0, 0, 'Zero or one', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.5, 0, 0, 'One only', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.7, 0, 0, 'Zero or more', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.52, h * 0.9, 0, 0, 'One or more', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + var ellSize = h / 12; + + c.begin(); + c.moveTo(w * 0.04, h * 0.3); + c.lineTo(w * 0.46, h * 0.3); + c.moveTo(w * 0.46 - ellSize, h * 0.25); + c.lineTo(w * 0.46 - ellSize, h * 0.35); + + c.moveTo(w * 0.04, h * 0.5); + c.lineTo(w * 0.46, h * 0.5); + c.moveTo(w * 0.46 - ellSize * 2, h * 0.45); + c.lineTo(w * 0.46 - ellSize * 2, h * 0.55); + c.moveTo(w * 0.46 - ellSize * 2.5, h * 0.45); + c.lineTo(w * 0.46 - ellSize * 2.5, h * 0.55); + + c.moveTo(w * 0.04, h * 0.7); + c.lineTo(w * 0.46, h * 0.7); + c.moveTo(w * 0.46, h * 0.65); + c.lineTo(w * 0.46 - ellSize * 2, h * 0.7); + c.lineTo(w * 0.46, h * 0.75); + c.stroke(); + + c.moveTo(w * 0.04, h * 0.9); + c.lineTo(w * 0.46, h * 0.9); + c.moveTo(w * 0.46, h * 0.85); + c.lineTo(w * 0.46 - ellSize * 2, h * 0.9); + c.lineTo(w * 0.46, h * 0.95); + c.moveTo(w * 0.46 - ellSize * 2.5, h * 0.85); + c.lineTo(w * 0.46 - ellSize * 2.5, h * 0.95); + c.stroke(); + + c.begin(); + c.ellipse(w * 0.46 - ellSize * 3, h * 0.3 - ellSize * 0.5, ellSize, ellSize); + c.fillAndStroke(); + + c.begin(); + c.ellipse(w * 0.46 - ellSize * 3, h * 0.7 - ellSize * 0.5, ellSize, ellSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.er.ie', mxShapeERInfEng); + +mxShapeERInfEng.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0), true), + new mxConnectionConstraint(new mxPoint(1, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +// ER markers +mxMarker.addMarker('ERone', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) +{ + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + + return function() + { + c.begin(); + c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2); + c.lineTo(pe.x - nx / 2 + ny / 2, pe.y - ny / 2 - nx / 2); + c.stroke(); + }; +}); + +mxMarker.addMarker('ERmandOne', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) +{ + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + + return function() + { + c.begin(); + c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2); + c.lineTo(pe.x - nx / 2 + ny / 2, pe.y - ny / 2 - nx / 2); + c.moveTo(pe.x - nx - ny / 2, pe.y - ny + nx / 2); + c.lineTo(pe.x - nx + ny / 2, pe.y - ny - nx / 2); + c.stroke(); + }; +}); + +mxMarker.addMarker('ERmany', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) +{ + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + + return function() + { + c.begin(); + c.moveTo(pe.x + ny / 2, pe.y - nx / 2); + c.lineTo(pe.x - nx, pe.y - ny); + c.lineTo(pe.x - ny / 2, pe.y + nx / 2); + c.stroke(); + }; +}); + +mxMarker.addMarker('ERoneToMany', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) +{ + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + + return function() + { + c.begin(); + c.moveTo(pe.x - nx - ny / 2, pe.y - ny + nx / 2); + c.lineTo(pe.x - nx + ny / 2, pe.y - ny - nx / 2); + c.moveTo(pe.x + ny / 2, pe.y - nx / 2); + c.lineTo(pe.x - nx, pe.y - ny); + c.lineTo(pe.x - ny / 2, pe.y + nx / 2); + c.stroke(); + }; +}); + +mxMarker.addMarker('ERzeroToMany', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) +{ + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + var a = size / 2; + + return function() + { + c.begin(); + c.ellipse(pe.x - 1.5 * nx - a, pe.y - 1.5 * ny - a, 2 * a, 2 * a); + + if (filled) + { + // TODO not sure if this is ok, because by default, markers use strokeColor for filling + var oldColor = mxUtils.getValue(shape.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + + c.setFillColor('#ffffff'); + c.fillAndStroke(); + c.setFillColor(oldColor); + } + else + { + c.stroke(); + } + + c.begin(); + c.moveTo(pe.x + ny / 2, pe.y - nx / 2); + c.lineTo(pe.x - nx, pe.y - ny); + c.lineTo(pe.x - ny / 2, pe.y + nx / 2); + c.stroke(); + }; +}); + +mxMarker.addMarker('ERzeroToOne', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) +{ + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + var a = size / 2; + + return function() + { + c.begin(); + c.ellipse(pe.x - 1.5 * nx - a, pe.y - 1.5 * ny - a, 2 * a, 2 * a); + + if (filled) + { + // TODO not sure if this is ok, because by default, markers use strokeColor for filling + var oldColor = mxUtils.getValue(shape.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + + c.setFillColor('#ffffff'); + c.fillAndStroke(); + c.setFillColor(oldColor); + } + else + { + c.stroke(); + } + + c.begin(); + c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2); + c.lineTo(pe.x - nx / 2 + ny / 2, pe.y - ny / 2 - nx / 2); + c.stroke(); + }; +}); + +//********************************************************************************************************************************************************** +//Rounded rectangle (adjustable rounding) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeERRRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeERRRect, mxShape); + +mxShapeERRRect.prototype.cst = { + RRECT : 'mxgraph.er.rrect', + R_SIZE : 'rSize' +}; + +mxShapeERRRect.prototype.customProperties = [ + {name: 'rSize', dispName: 'Rounding Size', type: 'float'}, +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeERRRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeERRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeERRRect.prototype.cst.RRECT, mxShapeERRRect); + +mxShapeERRRect.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Anchor (a dummy shape without visuals used for anchoring) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeERAnchor(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeERAnchor, mxShape); + +mxShapeERAnchor.prototype.cst = { + ANCHOR : 'mxgraph.er.anchor' +}; + + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeERAnchor.prototype.paintVertexShape = function(c, x, y, w, h) +{ +}; + +mxCellRenderer.registerShape(mxShapeERAnchor.prototype.cst.ANCHOR, mxShapeERAnchor); + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/ios7/mxIOS7Ui.js b/data/plugins/grafana-flowcharting/src/libs/shapes/ios7/mxIOS7Ui.js new file mode 100644 index 0000000000000..434a8df9d7e73 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/ios7/mxIOS7Ui.js @@ -0,0 +1,1719 @@ +/** + * $Id: mxIOS7Ui.js,v 1.6 2013/12/04 16:48:54 mate Exp $ + * Copyright (c) 2006-2013, JGraph Ltd + */ + +var mxIOS7C = +{ + MAIN_TEXT : 'mainText', + SUB_TEXT : 'subText', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize', + BAR_POS : 'barPos', + BUTTON_TEXT : 'buttonText', + BUTTON_STATE : 'buttonState', + SELECTED : '+', //has to be one character long + STATE_ON : 'on', + STATE_OFF : 'off', + GRID_SIZE : 'gridSize', + + SHAPE_IOS7_APP_BAR : 'mxgraph.ios7ui.appBar', + SHAPE_IOS7_ON_OFF_BUTTON : 'mxgraph.ios7ui.onOffButton', + SHAPE_IOS7_SLIDER : 'mxgraph.ios7ui.slider', + SHAPE_IOS7_DOWNLOAD_BAR : 'mxgraph.ios7ui.downloadBar', + SHAPE_IOS7_ICON : 'mxgraph.ios7ui.icon', + SHAPE_IOS7_HOR_BUTTON_BAR : 'mxgraph.ios7ui.horButtonBar', + SHAPE_IOS7_PAGE_CONTROL : 'mxgraph.ios7ui.pageControl', + SHAPE_IOS7_EXPAND : 'mxgraph.ios7ui.expand', + SHAPE_IOS7_ICON_GRID : 'mxgraph.ios7ui.iconGrid', + SHAPE_IOS7_PHONE : 'mxgraph.ios7ui.phone', + SHAPE_IOS7_SEARCH_BOX : 'mxgraph.ios7ui.searchBox', + SHAPE_IOS7_URL : 'mxgraph.ios7ui.url', + SHAPE_IOS7_ACTION_DIALOG : 'mxgraph.ios7ui.actionDialog', + + STYLE_FILLCOLOR2 : 'fillColor2', + STYLE_FILLCOLOR3 : 'fillColor3', + STYLE_TEXTCOLOR : 'textColor', + STYLE_TEXTCOLOR2 : 'textColor2', + STYLE_STROKECOLOR2 : 'strokeColor2', + STYLE_STROKECOLOR3 : 'strokeColor3', + STYLE_TEXTSIZE : 'textSize' +}; + +//********************************************************************************************************************************************************** +//iOS7 Application Bar +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeIOS7AppBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeIOS7AppBar, mxShape); + +mxShapeIOS7AppBar.prototype.customProperties = [ + {name: 'fillColor2', dispName: 'Fill Color 2', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeIOS7AppBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeIOS7AppBar.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeIOS7AppBar.prototype.foreground = function(c, x, y, w, h) +{ + c.setFillColor(mxUtils.getValue(this.style, mxIOS7C.STYLE_FILLCOLOR2, '#222222')); + + c.ellipse(5, h * 0.5 - 1.5, 3, 3); + c.fill(); + c.ellipse(9, h * 0.5 - 1.5, 3, 3); + c.fill(); + c.ellipse(13, h * 0.5 - 1.5, 3, 3); + c.fill(); + c.ellipse(17, h * 0.5 - 1.5, 3, 3); + c.fill(); + c.ellipse(21, h * 0.5 - 1.5, 3, 3); + c.fill(); + + c.ellipse(54, h * 0.5 + 2, 2, 2); + c.fillAndStroke(); + + c.setStrokeWidth(2); + c.begin(); + c.moveTo(52, h * 0.5 + 1); + c.arcTo(3.5, 3.5, 0, 0, 1, 58, h * 0.5 + 1); + c.stroke(); + + c.begin(); + c.moveTo(50, h * 0.5 - 1); + c.arcTo(6, 6, 0, 0, 1, 60, h * 0.5 - 1); + c.stroke(); + + c.begin(); + c.moveTo(w - 19, h * 0.5 - 2); + c.lineTo(w - 6, h * 0.5 - 2); + c.lineTo(w - 6, h * 0.5 + 2); + c.lineTo(w - 19, h * 0.5 + 2); + c.close(); + c.fill(); + + c.setStrokeWidth(1); + c.begin(); + c.moveTo(w - 44, h * 0.5 - 2.5); + c.lineTo(w - 36, h * 0.5 + 2.5); + c.lineTo(w - 40, h * 0.5 + 5); + c.lineTo(w - 40, h * 0.5 - 5); + c.lineTo(w - 36, h * 0.5 - 2.5); + c.lineTo(w - 44, h * 0.5 + 2.5); + c.stroke(); + + c.begin(); + c.moveTo(w - 20, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 3); + c.lineTo(w - 20, h * 0.5 + 3); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_APP_BAR, mxShapeIOS7AppBar); + +//********************************************************************************************************************************************************** +//On-Off Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7OnOffButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7OnOffButton, mxShape); + +mxShapeIOS7OnOffButton.prototype.customProperties = [ + {name: 'buttonState', dispName: 'Button State', type: 'enum', + enumList: [{val: 'on', dispName: 'On'}, + {val: 'off', dispName: 'Off'}] + }, + {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color'}, + {name: 'fillColor2', dispName: 'Fill Color 2', type: 'color'}, +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7OnOffButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + w = Math.max(w, 2 * h); + var state = mxUtils.getValue(this.style, mxIOS7C.BUTTON_STATE, mxIOS7C.STATE_ON); + this.background(c, x, y, w, h, state); + c.setShadow(false); + this.foreground(c, x, y, w, h, state); +}; + +mxShapeIOS7OnOffButton.prototype.background = function(c, x, y, w, h, state) +{ + if (state === mxIOS7C.STATE_ON) + { + c.roundrect(0, 0, w, h, h * 0.5, h * 0.5); + c.fillAndStroke(); + } + else if (state === mxIOS7C.STATE_OFF) + { + c.setStrokeColor(mxUtils.getValue(this.style, mxIOS7C.STYLE_STROKECOLOR2, '#aaaaaa')); + c.setFillColor(mxUtils.getValue(this.style, mxIOS7C.STYLE_FILLCOLOR2, '#ffffff')); + c.roundrect(0, 0, w, h, h * 0.5, h * 0.5); + c.fillAndStroke(); + } + +}; + +mxShapeIOS7OnOffButton.prototype.foreground = function(c, x, y, w, h, state) +{ + c.setFillColor('#ffffff'); + + if (state === mxIOS7C.STATE_ON) + { + c.ellipse(w - h + 1, 1, h - 2, h - 2); + c.fill(); + } + else + { + c.ellipse(0, 0, h, h); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_ON_OFF_BUTTON, mxShapeIOS7OnOffButton); + +//********************************************************************************************************************************************************** +//Slider +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7Slider(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.barPos = 80; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7Slider, mxShape); + + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7Slider.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.setShadow(false); + + this.foreground(c, w, h); +}; + +mxShapeIOS7Slider.prototype.foreground = function(c, w, h) +{ + c.setStrokeWidth(2); + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + + var barPos = mxUtils.getValue(this.style, mxIOS7C.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var deadzone = 0; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + + c.setStrokeColor(mxUtils.getValue(this.style, mxIOS7C.STYLE_STROKECOLOR2, '#a0a0a0')); + c.ellipse(truePos - 5, h * 0.5 - 5, 10, 10); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_SLIDER, mxShapeIOS7Slider); + +Graph.handleFactory[mxIOS7C.SHAPE_IOS7_SLIDER] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'barPos', this.barPos)))); + + return new mxPoint(bounds.x + barPos / 100 * bounds.width, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 1000; + })]; + + return handles; +} + +//********************************************************************************************************************************************************** +//Download Bar +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7DownloadBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.barPos = 80; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7DownloadBar, mxShape); + +mxShapeIOS7DownloadBar.prototype.customProperties = [ + {name: 'barPos', dispName: 'Handle Position', type: 'float', min:0, max:1, defVal:30}, + {name: 'strokeColor2', dispName: 'Stroke Color 2', type: 'color'} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7DownloadBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + this.foreground(c, w, h); +}; + +mxShapeIOS7DownloadBar.prototype.foreground = function(c, w, h) +{ + var fieldText = mxUtils.getValue(this.style, mxIOS7C.BUTTON_TEXT, ''); + c.setFontStyle(mxConstants.FONT_BOLD); + c.text(w * 0.5, h * 0.2, 0, 0, fieldText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + var barPos = mxUtils.getValue(this.style, mxIOS7C.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var truePos = w * barPos / 100; + + c.setStrokeWidth(2); + c.setStrokeColor(mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '')); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + + c.setStrokeColor(mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '')); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(truePos, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_DOWNLOAD_BAR, mxShapeIOS7DownloadBar); + +Graph.handleFactory[mxIOS7C.SHAPE_IOS7_DOWNLOAD_BAR] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'barPos', this.barPos)))); + + return new mxPoint(bounds.x + barPos / 100 * bounds.width, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 1000; + })]; + + return handles; +} + +//********************************************************************************************************************************************************** +//Icon +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7Icon(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7Icon, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7Icon.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + this.foreground(c, w, h); +}; + +mxShapeIOS7Icon.prototype.foreground = function(c, w, h) +{ + c.setGradient('#00D0F0', '#0080F0', w * 0.325, 0, w * 0.675, h * 0.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(0, 0, w, h, w * 0.1, h * 0.1); + c.fill(); + + var fieldText = mxUtils.getValue(this.style, mxIOS7C.BUTTON_TEXT, ''); + c.setFontColor('#ffffff'); + c.setFontStyle(mxConstants.FONT_BOLD); + c.setFontSize(8); + c.text(w * 0.5, h * 0.5, 0, 0, fieldText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_ICON, mxShapeIOS7Icon); + +//********************************************************************************************************************************************************** +//Horizontal Button Bar +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7horButtonBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7horButtonBar, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7horButtonBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var textStrings = mxUtils.getValue(this.style, mxIOS7C.BUTTON_TEXT, '+Button 1, Button 2, Button 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTCOLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTCOLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8.5').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var selectedFillColor = mxUtils.getValue(this.style, mxIOS7C.STYLE_FILLCOLOR2, '#008cff'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var selectedButton = -1; + var rSize = 2.5; //rounding size + var labelOffset = 2.5; + + for (var i = 0; i < buttonNum; i++) + { + var buttonText = textStrings[i]; + + if(buttonText.charAt(0) === mxIOS7C.SELECTED) + { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + buttonWidths[i] = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 10); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + + c.translate(x, y); + this.background(c, trueW, trueH, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, bgColor, selectedFillColor, selectedButton); + c.setShadow(false); + + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) + { + if (i === selectedButton) + { + c.setFontColor(selectedFontColor); + } + else + { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeIOS7horButtonBar.prototype.background = function(c, w, h, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, bgColor, selectedFillColor, selectedButton) +{ + c.begin(); + + //draw the frame + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); + + //draw the button separators + c.setStrokeColor(frameColor); + c.begin(); + for (var i = 1; i < buttonNum; i++) + { + if (i !== selectedButton && i !== (selectedButton + 1)) + { + var currWidth = 0; + + for (var j = 0; j < i; j++) + { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth = currWidth * w / minW; + c.moveTo(currWidth, 0); + c.lineTo(currWidth, h); + } + } + + c.stroke(); + + //draw the selected button + var buttonLeft = 0; + c.setStrokeColor(mxConstants.NONE); + + for (var i = 0; i < selectedButton; i++) + { + buttonLeft += buttonWidths[i] + 2 * labelOffset; + } + + buttonLeft = buttonLeft * w / minW; + var buttonRight = (buttonWidths[selectedButton] + 2 * labelOffset) * w / minW; + buttonRight += buttonLeft; + c.setFillColor('#0080F0'); + + if (selectedButton === 0) + { + c.begin(); + // we draw a path for the first button + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(buttonRight, 0); + c.lineTo(buttonRight, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fill(); + } + else if (selectedButton === buttonNum - 1) + { + c.begin(); + // we draw a path for the last button + c.moveTo(buttonLeft, 0); + c.lineTo(buttonRight - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, buttonRight, rSize); + c.lineTo(buttonRight, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, buttonRight - rSize, h); + c.lineTo(buttonLeft, h); + c.close(); + c.fill(); + } + else if (selectedButton !== -1) + { + c.begin(); + // we draw a path rectangle for one of the buttons in the middle + c.moveTo(buttonLeft, 0); + c.lineTo(buttonRight, 0); + c.lineTo(buttonRight, h); + c.lineTo(buttonLeft, h); + c.close(); + c.fill(); + } + + //draw the frame again, to achieve a nicer effect + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.stroke(); +}; + +mxShapeIOS7horButtonBar.prototype.buttonText = function(c, w, h, textString, buttonWidth, fontSize, minW, trueW) +{ + if(textString.charAt(0) === mxIOS7C.SELECTED) + { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, h * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_HOR_BUTTON_BAR, mxShapeIOS7horButtonBar); + +//********************************************************************************************************************************************************** +//Page Control +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7pageControl(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7pageControl, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7pageControl.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#000000'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + + var rSize = Math.min(h * 0.5, w * 0.05); + c.setFillColor(strokeColor); + c.ellipse(0, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w * 0.25 - rSize * 0.5, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w * 0.5 - rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w * 0.75 - rSize * 1.5, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.setFillColor(fillColor); + c.ellipse(w - 2 * rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_PAGE_CONTROL, mxShapeIOS7pageControl); + +//********************************************************************************************************************************************************** +//Icon Grid +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7iconGrid(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7iconGrid, mxShape); + +mxShapeIOS7iconGrid.prototype.customProperties = [ + {name: 'gridSize', dispName: 'Grid Size', type: 'String'}, +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7iconGrid.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var gridSize = mxUtils.getValue(this.style, mxIOS7C.GRID_SIZE, '4,7').toString().split(','); + + var boxSizeX = w / (parseInt(gridSize[0],10) + (gridSize[0]-1) * 0.1); + var boxSizeY = h / (parseInt(gridSize[1],10) + (gridSize[1]-1) * 0.1); + + for (var i = 0; i < gridSize[0]; i++) + { + for (var j = 0; j < gridSize[1]; j++) + { + c.rect(boxSizeX * 1.1 * i, boxSizeY * 1.1 * j, boxSizeX, boxSizeY); + c.fill(); + } + } +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_ICON_GRID, mxShapeIOS7iconGrid); + +//********************************************************************************************************************************************************** +//iPhone Vertical +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7phone(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7phone, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7phone.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var rSize = 25; + + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); + + c.setShadow(false); + + this.foreground(c, x, y, w, h, rSize); +}; + +mxShapeIOS7phone.prototype.foreground = function(c, x, y, w, h, rSize) +{ + c.rect(w * 0.0625, h * 0.15, w * 0.875, h * 0.7); + c.stroke(); + + c.ellipse(w * 0.4875, h * 0.04125, w * 0.025, h * 0.0125); + c.stroke(); + + c.roundrect(w * 0.375, h * 0.075, w * 0.25, h * 0.01875, w * 0.02, h * 0.01); + c.stroke(); + c.ellipse(w * 0.4, h * 0.875, w * 0.2, h * 0.1); + c.stroke(); + c.roundrect(w * 0.4575, h * 0.905, w * 0.085, h * 0.04375, h * 0.00625, h * 0.00625); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_PHONE, mxShapeIOS7phone); + +//********************************************************************************************************************************************************** +//Search Box +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7searchBox(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7searchBox, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7searchBox.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeIOS7searchBox.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeIOS7searchBox.prototype.foreground = function(c, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxIOS7C.BUTTON_TEXT, 'Search'); + var fontColor = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTCOLOR, '#666666'); + var strokeColor2 = mxUtils.getValue(this.style, mxIOS7C.STYLE_STROKECOLOR2, '#008cff'); + var fontSize = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTSIZE, '17'); + var rSize = Math.min(w, h) * 0.1; + + c.setFillColor('#ffffff'); + c.roundrect(w * 0.05, h * 0.15, w * 0.5, h * 0.7, rSize, rSize); + c.fillAndStroke(); + + c.setFontColor(fontColor); + c.setFontSize(Math.min(h * 0.7, w * 0.1)); + + c.text(5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setStrokeColor(strokeColor2); + c.ellipse(w * 0.05 + 3, h * 0.5 - 3, 4, 4); + c.stroke(); + c.begin(); + c.moveTo(w * 0.05 + 8, h * 0.5 + 3.5); + c.lineTo(w * 0.05 + 6, h * 0.5 + 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_SEARCH_BOX, mxShapeIOS7searchBox); + +//********************************************************************************************************************************************************** +//URL +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7URL(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7URL, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7URL.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeIOS7URL.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeIOS7URL.prototype.foreground = function(c, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxIOS7C.BUTTON_TEXT, 'draw.io'); + var fontColor = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTCOLOR, '#666666'); + var strokeColor2 = mxUtils.getValue(this.style, mxIOS7C.STYLE_STROKECOLOR2, '#008cff'); + var fontSize = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTSIZE, '17'); + var rSize = Math.min(w, h) * 0.1; + + c.setFillColor('#d8d8d8'); + c.roundrect(w * 0.05, h * 0.15, w * 0.9, h * 0.7, rSize, rSize); + c.fill(); + + c.setFontColor(fontColor); + c.setFontSize(Math.min(h * 0.7, w * 0.1)); + + c.text(w * 0.5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setStrokeColor(strokeColor2); + c.begin(); + c.moveTo(w * 0.95 - 5, h * 0.5); + c.arcTo(3, 3, 0, 1, 1, w * 0.95 - 8, h * 0.5 - 3); + c.stroke(); + + c.setFillColor(strokeColor2); + c.begin(); + c.moveTo(w * 0.95 - 8, h * 0.5 - 4); + c.lineTo(w * 0.95 - 6, h * 0.5 - 3); + c.lineTo(w * 0.95 - 8, h * 0.5 - 2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_URL, mxShapeIOS7URL); + +//********************************************************************************************************************************************************** +//Action Dialog +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7Actiondialog(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7Actiondialog, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7Actiondialog.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxIOS7C.MAIN_TEXT, 'Main Text'); + var subText = mxUtils.getValue(this.style, mxIOS7C.SUB_TEXT, 'Sub Text'); + var fontColor = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTCOLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxIOS7C.STYLE_TEXTSIZE, '17'); + c.translate(x, y); + this.background(c, x, y, w, h); + + c.setShadow(false); + + c.setFillColor('#e0e0e0'); + c.roundrect(w * 0.05, h * 0.1, w * 0.9, h * 0.35, w * 0.025, h * 0.05); + c.fill(); + c.roundrect(w * 0.05, h * 0.55, w * 0.9, h * 0.35, w * 0.025, h * 0.05); + c.fill(); + + c.setFontStyle(mxConstants.FONT_BOLD); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); + this.subText(c, x, y, w, h, subText, fontSize / 1.4, fontColor); +}; + +mxShapeIOS7Actiondialog.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeIOS7Actiondialog.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.4, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxShapeIOS7Actiondialog.prototype.subText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.text(w * 0.5, h * 0.7, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxIOS7C.SHAPE_IOS7_ACTION_DIALOG, mxShapeIOS7Actiondialog); + +//********************************************************************************************************************************************************** +//Anchor (a dummy shape without visuals used for anchoring) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7Anchor(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7Anchor, mxShape); + +mxShapeIOS7Anchor.prototype.cst = { + ANCHOR : 'mxgraph.ios7ui.anchor' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7Anchor.prototype.paintVertexShape = function(c, x, y, w, h) +{ +}; + +mxCellRenderer.registerShape(mxShapeIOS7Anchor.prototype.cst.ANCHOR, mxShapeIOS7Anchor); + +//********************************************************************************************************************************************************** +//Rounded rectangle (adjustable rounding) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7RRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7RRect, mxShape); + +mxShapeIOS7RRect.prototype.cst = { + RRECT : 'mxgraph.ios7ui.rrect', + R_SIZE : 'rSize' +}; + +mxShapeIOS7RRect.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:3} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7RRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeIOS7RRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeIOS7RRect.prototype.cst.RRECT, mxShapeIOS7RRect); + +//********************************************************************************************************************************************************** +//Left Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7LeftButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7LeftButton, mxShape); + +mxShapeIOS7LeftButton.prototype.cst = { + LEFT_BUTTON : 'mxgraph.ios7ui.leftButton', + R_SIZE : 'rSize' +}; + +mxShapeIOS7LeftButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:3} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7LeftButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeIOS7LeftButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeIOS7LeftButton.prototype.cst.LEFT_BUTTON, mxShapeIOS7LeftButton); + +//********************************************************************************************************************************************************** +//Right Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7RightButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7RightButton, mxShape); + +mxShapeIOS7RightButton.prototype.cst = { + RIGHT_BUTTON : 'mxgraph.ios7ui.rightButton', + R_SIZE : 'rSize' +}; + +mxShapeIOS7RightButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:3} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7RightButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeIOS7RightButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeIOS7RightButton.prototype.cst.RIGHT_BUTTON, mxShapeIOS7RightButton); + +//********************************************************************************************************************************************************** +//Top Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7TopButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7TopButton, mxShape); + +mxShapeIOS7TopButton.prototype.cst = { + TOP_BUTTON : 'mxgraph.ios7ui.topButton', + R_SIZE : 'rSize' +}; + +mxShapeIOS7TopButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:3} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7TopButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeIOS7TopButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(w, h); + c.lineTo(0, h); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeIOS7TopButton.prototype.cst.TOP_BUTTON, mxShapeIOS7TopButton); + +//********************************************************************************************************************************************************** +//Bottom Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7BottomButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7BottomButton, mxShape); + +mxShapeIOS7BottomButton.prototype.cst = { + BOTTOM_BUTTON : 'mxgraph.ios7ui.bottomButton', + R_SIZE : 'rSize' +}; + +mxShapeIOS7BottomButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:3}, +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7BottomButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeIOS7BottomButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(w, 0); + c.lineTo(0, 0); + c.lineTo(0, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 0, rSize, h); + c.lineTo(w - rSize, h); + c.arcTo(rSize, rSize, 0, 0, 0, w, h - rSize); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeIOS7BottomButton.prototype.cst.BOTTOM_BUTTON, mxShapeIOS7BottomButton); + +//********************************************************************************************************************************************************** +//Horizontal Lines +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7HorLines(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7HorLines, mxShape); + +mxShapeIOS7HorLines.prototype.cst = { + HOR_LINES : 'mxgraph.ios7ui.horLines' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7HorLines.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.rect(0, 0, w, h); + c.fill(); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.moveTo(0, h); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeIOS7HorLines.prototype.cst.HOR_LINES, mxShapeIOS7HorLines); + +//********************************************************************************************************************************************************** +//rect with margins +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7MarginRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7MarginRect, mxShape); + +mxShapeIOS7MarginRect.prototype.customProperties = [ + {name: 'rx', dispName: 'Hor. Rounding Size', type: 'float', min:0, defVal:3}, + {name: 'ry', dispName: 'Ver. Rounding Size', type: 'float', min:0, defVal:3}, + {name: 'rectMargin', dispName: 'Global Margin', type: 'float', min:0, defVal:5}, + {name: 'rectMarginTop', dispName: 'Top Margin', type: 'float', min:0, defVal:0}, + {name: 'rectMarginLeft', dispName: 'Left Margin', type: 'float', min:0, defVal:0}, + {name: 'rectMarginBottom', dispName: 'Bottom Margin', type: 'float', min:0, defVal:0}, + {name: 'rectMarginRight', dispName: 'Right Margin', type: 'float', min:0, defVal:0} +]; + +mxShapeIOS7MarginRect.prototype.cst = { + SHAPE_MARGIN_RECT : 'mxgraph.ios7ui.marginRect', + MARGIN : 'rectMargin', + RX : 'rx', + RY : 'ry', + MARGIN_TOP : 'rectMarginTop', + MARGIN_LEFT : 'rectMarginLeft', + MARGIN_BOTTOM : 'rectMarginBottom', + MARGIN_RIGHT : 'rectMarginRight' +}; +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7MarginRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeIOS7MarginRect.prototype.background = function(c, x, y, w, h, state) +{ + var margin = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7MarginRect.prototype.cst.MARGIN, '0')); + var marginTop = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7MarginRect.prototype.cst.MARGIN_TOP, '0')); + var marginLeft = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7MarginRect.prototype.cst.MARGIN_LEFT, '0')); + var marginBottom = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7MarginRect.prototype.cst.MARGIN_BOTTOM, '0')); + var marginRight = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7MarginRect.prototype.cst.MARGIN_RIGHT, '0')); + var rx = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7MarginRect.prototype.cst.RX, '0')); + var ry = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7MarginRect.prototype.cst.RY, '0')); + + var x1 = margin + marginLeft; + var y1 = margin + marginTop; + var w1 = w - marginRight - x1 - margin; + var h1 = h - marginBottom - y1 - margin; + + if (w1 >0 && h1 > 0) + { + c.begin(); + c.roundrect(x1, y1, w1, h1, rx, ry); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeIOS7MarginRect.prototype.cst.SHAPE_MARGIN_RECT, mxShapeIOS7MarginRect); + +//********************************************************************************************************************************************************** +//Callout +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7Callout(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7Callout, mxShape); + +mxShapeIOS7Callout.prototype.cst = { + SHAPE_CALLOUT : 'mxgraph.ios7ui.callout' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7Callout.prototype.paintVertexShape = function(c, x, y, w, h) +{ + + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeIOS7Callout.prototype.background = function(c, x, y, w, h, state) +{ + var r = 10; + + if (w >= 30 && h >= 20) + { + c.begin(); + c.moveTo(15, h - r * 0.3); + c.arcTo(r * 2, r, 0, 0, 1, 0, h); + c.arcTo(r * 1.5, r * 1.5, 0, 0, 0, 10, h - r * 1); + c.lineTo(r, r); + c.arcTo(r, r, 0, 0, 1, r * 2, 0); + c.lineTo(w - r, 0); + c.arcTo(r, r, 0, 0, 1, w, r); + c.lineTo(w, h - r); + c.arcTo(r, r, 0, 0, 1, w - r, h); + c.lineTo(r * 2, h); + c.arcTo(r, r, 0, 0, 1, r * 1.5, h - r * 0.3); + c.close(); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeIOS7Callout.prototype.cst.SHAPE_CALLOUT, mxShapeIOS7Callout); + +//********************************************************************************************************************************************************** +//Select Bar +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIOS7SelectBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.dx2 = 70; + this.size = 10; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7SelectBar, mxActor); + +mxShapeIOS7SelectBar.prototype.cst = { + SELECT_BAR : 'mxgraph.ios7ui.selectBar' +}; + +mxShapeIOS7SelectBar.prototype.customProperties = [ + {name: 'dx', dispName: 'Callout Position', type: 'float', min:0, defVal:120}, + {name: 'dx2', dispName: 'Field Size', type: 'float', min:0, defVal: 75}, + {name: 'size', dispName: 'Rounding size', type: 'float', min:0, defVal:5}, + {name: 'dy', dispName: 'Callout Size', type: 'float', min:0, defVal:5} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7SelectBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var r = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var dy = Math.max(0, Math.min(h, (w - Math.max(20, r) - r) / 2, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + r = Math.min(h / 2, w / 2, r); + dx = Math.max(r + dy, dx); + dx = Math.min(w - r - dy, w - 20 - dy, dx); + + c.begin(); + c.moveTo(dx - dy, h); + c.lineTo(r, h); + c.arcTo(r, r, 0, 0, 1, 0, h - r); + c.lineTo(0, r); + c.arcTo(r, r, 0, 0, 1, r, 0); + c.lineTo(w - r, 0); + c.arcTo(r, r, 0, 0, 1, w, r); + c.lineTo(w, h - r); + c.arcTo(r, r, 0, 0, 1, w - r, h); + c.lineTo(dx + dy, h); + c.lineTo(dx, h + dy); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + + c.begin(); + c.moveTo(w - Math.max(20, r), 0); + c.lineTo(w - Math.max(20, r), h); + c.stroke(); + + var currDx = dx2; + + c.begin(); + + while (currDx < (w - Math.max(20, r))) + { + c.moveTo(currDx, 0); + c.lineTo(currDx, h); + + currDx = currDx + dx2; + } + + c.stroke(); + + var w1 = Math.min(Math.max(20, r), h); + var x1 = w - w1 * 0.5; + var y1 = h * 0.5; + + c.setFillColor(mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '')); + c.begin(); + c.moveTo(x1 - w1 * 0.15, y1 - w1 * 0.225); + c.lineTo(x1 + w1 * 0.25, y1); + c.lineTo(x1 - w1 * 0.15, y1 + w1 * 0.225); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeIOS7SelectBar.prototype.cst.SELECT_BAR, mxShapeIOS7SelectBar); + +mxShapeIOS7SelectBar.prototype.constraints = null; + +Graph.handleFactory[mxShapeIOS7SelectBar.prototype.cst.SELECT_BAR] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + bounds.height); + }, function(bounds, pt) + { + var y = parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)) * 0.6; + this.state.style['dx'] = Math.round(100 * Math.max(y, Math.min(bounds.width - y, pt.x - bounds.x))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['dy'], function(bounds) + { + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), bounds.y + bounds.height + dy); + }, function(bounds, pt) + { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height, pt.y - bounds.y - bounds.height))) / 100; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['size'], function(bounds) + { + var size = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'size', this.size)))); + + return new mxPoint(bounds.x + bounds.width - size, bounds.y + 10); + }, function(bounds, pt) + { + this.state.style['size'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2, bounds.height / 2, bounds.x + bounds.width - pt.x))) / 100; + }); + + handles.push(handle3); + + var handle4 = Graph.createHandle(state, ['dx2'], function(bounds) + { + var dx2 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + + return new mxPoint(bounds.x + dx2, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + }); + + handles.push(handle4); + + return handles; + +} + +//********************************************************************************************************************************************************** +//slider +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +//mxShapeIOS7SelectBar +function mxShapeIOS7Slider2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIOS7Slider2, mxShape); + +mxShapeIOS7Slider2.prototype.cst = { + SHAPE_SLIDER : 'mxgraph.ios7ui.slider', + BAR_POS : 'barPos', + HANDLE_SIZE : 'handleSize' +}; + +mxShapeIOS7Slider2.prototype.customProperties = [ + {name: 'barPos', dispName: 'Handle Position', type: 'float', min:0, max:1, defVal:20}, + {name: 'handleSize', dispName: 'Handle Size', type: 'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIOS7Slider2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeIOS7Slider2.prototype.background = function(c, x, y, w, h) +{ + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7Slider2.prototype.cst.HANDLE_SIZE, '10')); + var barPos = parseFloat(mxUtils.getValue(this.style, mxShapeIOS7Slider2.prototype.cst.BAR_POS, '40')) / 100; + + barPos = Math.max(0, Math.min(1, barPos)); + + c.save(); + c.setStrokeColor('#bbbbbb'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.fillAndStroke(); + + + c.restore(); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(barPos * w, h * 0.5); + c.fillAndStroke(); + + c.setStrokeColor('#bbbbbb'); + c.begin(); + c.ellipse(barPos * w - hSize * 0.5, h * 0.5 - hSize * 0.5, hSize, hSize); + c.fillAndStroke(); + +}; + +mxCellRenderer.registerShape(mxShapeIOS7Slider2.prototype.cst.SHAPE_SLIDER, mxShapeIOS7Slider2); + +mxShapeIOS7Slider2.prototype.constraints = null; + +Graph.handleFactory[mxShapeIOS7Slider2.prototype.cst.SHAPE_SLIDER] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + + return handles; +}; + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupButtons.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupButtons.js new file mode 100644 index 0000000000000..745b6bfc3a764 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupButtons.js @@ -0,0 +1,1028 @@ +/** + * $Id: mxMockupButtons.js,v 1.8 2013/05/16 06:09:21 mate Exp $ + * Copyright (c) 2006-2010, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Multiline Button +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupMultiButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupMultiButton, mxShape); + +mxShapeMockupMultiButton.prototype.cst = { + MAIN_TEXT : 'mainText', + SHAPE_MULTILINE_BUTTON : 'mxgraph.mockup.buttons.multiButton', + SUB_TEXT : 'subText', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize', + BUTTON_STYLE : 'buttonStyle', + ROUND : 'round', + CHEVRON : 'chevron' +}; + +mxShapeMockupMultiButton.prototype.customProperties = [ + {name: 'buttonStyle', dispName: 'Style', type: 'enum', defVal:'round', + enumList: [{val: 'round', dispName: 'Round'}, {val: 'chevron', dispName: 'Chevron'}] + } +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupMultiButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxShapeMockupMultiButton.prototype.cst.MAIN_TEXT, 'Main Text'); + var subText = mxUtils.getValue(this.style, mxShapeMockupMultiButton.prototype.cst.SUB_TEXT, 'Sub Text'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupMultiButton.prototype.cst.TEXT_COLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupMultiButton.prototype.cst.TEXT_SIZE, '17'); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + c.setFontStyle(mxConstants.FONT_BOLD); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); + this.subText(c, x, y, w, h, subText, fontSize / 1.4, fontColor); +}; + +mxShapeMockupMultiButton.prototype.background = function(c, x, y, w, h) +{ + var buttonStyle = mxUtils.getValue(this.style, mxShapeMockupMultiButton.prototype.cst.BUTTON_STYLE, mxShapeMockupMultiButton.prototype.cst.ROUND).toString(); + var rSize = 10; + c.begin(); + + if (buttonStyle === mxShapeMockupMultiButton.prototype.cst.ROUND) + { + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + } + else if (buttonStyle === mxShapeMockupMultiButton.prototype.cst.CHEVRON) + { + c.moveTo(0, h * 0.1); + c.arcTo(w * 0.0372, h * 0.1111, 0, 0, 1, w * 0.0334, 0); + c.lineTo(w * 0.768, 0); + c.arcTo(w * 0.0722, h * 0.216, 0, 0, 1, w * 0.8014, h * 0.0399); + c.lineTo(w * 0.99, h * 0.4585); + c.arcTo(w * 0.09, h * 0.1, 0, 0, 1, w * 0.99, h * 0.5415); + c.lineTo(w * 0.8014, h * 0.9568); + c.arcTo(w * 0.0722, h * 0.216, 0, 0, 1, w * 0.768, h); + c.lineTo(w * 0.0334, h); + c.arcTo(w * 0.0372, h * 0.1111, 0, 0, 1, 0, h * 0.9); + } + + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupMultiButton.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5, h * 0.4, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxShapeMockupMultiButton.prototype.subText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.text(w * 0.5, h * 0.7, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupMultiButton.prototype.cst.SHAPE_MULTILINE_BUTTON, mxShapeMockupMultiButton); + +//********************************************************************************************************************************************************** +//Button +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupButton, mxShape); + +mxShapeMockupButton.prototype.cst = { + MAIN_TEXT : 'mainText', + SHAPE_BUTTON : 'mxgraph.mockup.buttons.button', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize', + BUTTON_STYLE : 'buttonStyle', + ROUND : 'round', + CHEVRON : 'chevron' +}; + +mxShapeMockupButton.prototype.customProperties = [ + {name: 'buttonStyle', dispName: 'Style', type: 'enum', defVal:'round', + enumList: [{val: 'round', dispName: 'Round'}, {val: 'chevron', dispName: 'Chevron'}] + } +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxShapeMockupButton.prototype.cst.MAIN_TEXT, 'Main Text'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupButton.prototype.cst.TEXT_COLOR, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupButton.prototype.cst.TEXT_SIZE, '17').toString(); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeMockupButton.prototype.background = function(c, x, y, w, h) +{ + var buttonStyle = mxUtils.getValue(this.style, mxShapeMockupButton.prototype.cst.BUTTON_STYLE, mxShapeMockupButton.prototype.cst.ROUND).toString(); + var rSize = 10; + c.begin(); + + if (buttonStyle === mxShapeMockupButton.prototype.cst.ROUND) + { + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + } + else if (buttonStyle === mxShapeMockupButton.prototype.cst.CHEVRON) + { + c.moveTo(0, h * 0.1); + c.arcTo(w * 0.0372, h * 0.1111, 0, 0, 1, w * 0.0334, 0); + c.lineTo(w * 0.768, 0); + c.arcTo(w * 0.0722, h * 0.216, 0, 0, 1, w * 0.8014, h * 0.0399); + c.lineTo(w * 0.99, h * 0.4585); + c.arcTo(w * 0.09, h * 0.1, 0, 0, 1, w * 0.99, h * 0.5415); + c.lineTo(w * 0.8014, h * 0.9568); + c.arcTo(w * 0.0722, h * 0.216, 0, 0, 1, w * 0.768, h); + c.lineTo(w * 0.0334, h); + c.arcTo(w * 0.0372, h * 0.1111, 0, 0, 1, 0, h * 0.9); + } + + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupButton.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.setFontStyle(mxConstants.FONT_BOLD); + c.text(w / 2, h / 2, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupButton.prototype.cst.SHAPE_BUTTON, mxShapeMockupButton); + +//********************************************************************************************************************************************************** +//Horizontal Button Bar +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupHorButtonBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupHorButtonBar, mxShape); + +mxShapeMockupHorButtonBar.prototype.cst = { + MAIN_TEXT : 'mainText', + SHAPE_HOR_BUTTON_BAR : 'mxgraph.mockup.buttons.horButtonBar', + TEXT_COLOR : 'textColor', + TEXT_COLOR2 : 'textColor2', + STROKE_COLOR2 : 'strokeColor2', + FILL_COLOR2 : 'fillColor2', + SELECTED : '+', //must be 1 char + TEXT_SIZE : 'textSize' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupHorButtonBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var textStrings = mxUtils.getValue(this.style, mxShapeMockupHorButtonBar.prototype.cst.MAIN_TEXT, '+Button 1, Button 2, Button 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupHorButtonBar.prototype.cst.TEXT_COLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxShapeMockupHorButtonBar.prototype.cst.TEXT_COLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupHorButtonBar.prototype.cst.TEXT_SIZE, '17').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var separatorColor = mxUtils.getValue(this.style, mxShapeMockupHorButtonBar.prototype.cst.STROKE_COLOR2, '#c4c4c4'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var selectedFillColor = mxUtils.getValue(this.style, mxShapeMockupHorButtonBar.prototype.cst.FILL_COLOR2, '#008cff'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var selectedButton = -1; + var rSize = 10; //rounding size + var labelOffset = 5; + + for (var i = 0; i < buttonNum; i++) + { + var buttonText = textStrings[i]; + + if(buttonText.charAt(0) === mxShapeMockupHorButtonBar.prototype.cst.SELECTED) + { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + buttonWidths[i] = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 20); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + + c.translate(x, y); + this.background(c, trueW, trueH, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton); + c.setShadow(false); + + c.setFontStyle(mxConstants.FONT_BOLD); + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) + { + if (i === selectedButton) + { + c.setFontColor(selectedFontColor); + } + else + { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeMockupHorButtonBar.prototype.background = function(c, w, h, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton) +{ + c.begin(); + + //draw the frame + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); + + //draw the button separators + c.setStrokeColor(separatorColor); + c.begin(); + for (var i = 1; i < buttonNum; i++) + { + if (i !== selectedButton && i !== (selectedButton + 1)) + { + var currWidth = 0; + + for (var j = 0; j < i; j++) + { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth = currWidth * w / minW; + c.moveTo(currWidth, 0); + c.lineTo(currWidth, h); + } + } + + c.stroke(); + + //draw the selected button + var buttonLeft = 0; + c.setFillColor(selectedFillColor); + + for (var i = 0; i < selectedButton; i++) + { + buttonLeft += buttonWidths[i] + 2 * labelOffset; + } + + buttonLeft = buttonLeft * w / minW; + var buttonRight = (buttonWidths[selectedButton] + 2 * labelOffset) * w / minW; + buttonRight += buttonLeft; + + if (selectedButton === 0) + { + c.begin(); + // we draw a path for the first button + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(buttonRight, 0); + c.lineTo(buttonRight, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fill(); + } + else if (selectedButton === buttonNum - 1) + { + c.begin(); + // we draw a path for the last button + c.moveTo(buttonLeft, 0); + c.lineTo(buttonRight - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, buttonRight, rSize); + c.lineTo(buttonRight, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, buttonRight - rSize, h); + c.lineTo(buttonLeft, h); + c.close(); + c.fill(); + } + else if (selectedButton !== -1) + { + c.begin(); + // we draw a path rectangle for one of the buttons in the middle + c.moveTo(buttonLeft, 0); + c.lineTo(buttonRight, 0); + c.lineTo(buttonRight, h); + c.lineTo(buttonLeft, h); + c.close(); + c.fill(); + } + + //draw the frame again, to achieve a nicer effect + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.stroke(); +}; + +mxShapeMockupHorButtonBar.prototype.buttonText = function(c, w, h, textString, buttonWidth, fontSize, minW, trueW) +{ + if(textString.charAt(0) === mxShapeMockupHorButtonBar.prototype.cst.SELECTED) + { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, h * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupHorButtonBar.prototype.cst.SHAPE_HOR_BUTTON_BAR, mxShapeMockupHorButtonBar); + +//********************************************************************************************************************************************************** +//Vertical Button Bar +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupVerButtonBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupVerButtonBar, mxShape); + +mxShapeMockupVerButtonBar.prototype.cst = { + MAIN_TEXT : 'mainText', + SHAPE_VER_BUTTON_BAR : 'mxgraph.mockup.buttons.verButtonBar', + TEXT_COLOR : 'textColor', + TEXT_COLOR2 : 'textColor2', + STROKE_COLOR2 : 'strokeColor2', + FILL_COLOR2 : 'fillColor2', + SELECTED : '+', //must be 1 char + TEXT_SIZE : 'textSize' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupVerButtonBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var textStrings = mxUtils.getValue(this.style, mxShapeMockupVerButtonBar.prototype.cst.MAIN_TEXT, '+Button 1, Button 2, Button 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupVerButtonBar.prototype.cst.TEXT_COLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxShapeMockupVerButtonBar.prototype.cst.TEXT_COLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupVerButtonBar.prototype.cst.TEXT_SIZE, '17').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var separatorColor = mxUtils.getValue(this.style, mxShapeMockupVerButtonBar.prototype.cst.STROKE_COLOR2, '#c4c4c4'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var selectedFillColor = mxUtils.getValue(this.style, mxShapeMockupVerButtonBar.prototype.cst.FILL_COLOR2, '#008cff'); + var buttonNum = textStrings.length; + var maxButtonWidth = 0; + var selectedButton = -1; + var rSize = 10; //rounding size + var labelOffset = 5; + + for (var i = 0; i < buttonNum; i++) + { + var buttonText = textStrings[i]; + + if(buttonText.charAt(0) === mxShapeMockupVerButtonBar.prototype.cst.SELECTED) + { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + var currWidth = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxButtonWidth) + { + maxButtonWidth = currWidth; + } + } + + var minButtonHeight = fontSize * 1.5; + var minH = buttonNum * minButtonHeight; + var trueH = Math.max(h, minH); + var minW = 2 * labelOffset + maxButtonWidth; + var trueW = Math.max(w, minW); + + c.translate(x, y); + + this.background(c, trueW, trueH, rSize, buttonNum, labelOffset, buttonNum * minButtonHeight, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton, minButtonHeight); + c.setShadow(false); + + var currWidth = 0; + c.setFontStyle(mxConstants.FONT_BOLD); + + for (var i = 0; i < buttonNum; i++) + { + if (i === selectedButton) + { + c.setFontColor(selectedFontColor); + } + else + { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + var currHeight = (i * minButtonHeight + minButtonHeight * 0.5) * trueH / minH; + this.buttonText(c, trueW, currHeight, textStrings[i], fontSize); + } +}; + +mxShapeMockupVerButtonBar.prototype.background = function(c, w, h, rSize, buttonNum, labelOffset, minH, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton, minButtonHeight) +{ + c.begin(); + + //draw the frame + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); + + //draw the button separators + c.setStrokeColor(separatorColor); + c.begin(); + + for (var i = 1; i < buttonNum; i++) + { + if (i !== selectedButton && i !== (selectedButton + 1)) + { + var currHeight = i * minButtonHeight * h / minH; + + c.moveTo(0, currHeight); + c.lineTo(w, currHeight); + } + } + + c.stroke(); + + //draw the selected button + c.setFillColor(selectedFillColor); + + if (selectedButton === 0) + { + // we draw a path for the first button + c.begin(); + var buttonBottom = minButtonHeight * h / minH; + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, buttonBottom); + c.lineTo(0, buttonBottom); + c.close(); + c.fill(); + } + else if (selectedButton === buttonNum - 1) + { + // we draw a path for the last button + c.begin(); + var buttonTop = h - minButtonHeight * h / minH; + c.moveTo(0, buttonTop); + c.lineTo(w, buttonTop); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fill(); + } + else if (selectedButton !== -1) + { + // we draw a path rectangle for one of the buttons in the middle + c.begin(); + var buttonTop = minButtonHeight * selectedButton * h / minH; + var buttonBottom = minButtonHeight * (selectedButton + 1) * h / minH; + c.moveTo(0, buttonTop); + c.lineTo(w, buttonTop); + c.lineTo(w, buttonBottom); + c.lineTo(0, buttonBottom); + c.close(); + c.fill(); + } + +// //draw the frame again, to achieve a nicer effect + c.begin(); + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.stroke(); +}; + +mxShapeMockupVerButtonBar.prototype.buttonText = function(c, w, h, textString, fontSize) +{ + if(textString.charAt(0) === mxShapeMockupVerButtonBar.prototype.cst.SELECTED) + { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text((w * 0.5), h, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupVerButtonBar.prototype.cst.SHAPE_VER_BUTTON_BAR, mxShapeMockupVerButtonBar); + +//********************************************************************************************************************************************************** +//On-Off Button +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupOnOffButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupOnOffButton, mxShape); + +mxShapeMockupOnOffButton.prototype.cst = { + SHAPE_ON_OFF_BUTTON : 'mxgraph.mockup.buttons.onOffButton', + BUTTON_STATE : 'buttonState', + STATE_ON : 'on', + STATE_OFF : 'off', + FILL_COLOR2 : 'fillColor2', + MAIN_TEXT : 'mainText', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize' +}; + +mxShapeMockupOnOffButton.prototype.customProperties = [ + {name: 'buttonState', dispName: 'Button State', type: 'enum', + enumList: [{val: 'on', dispName: 'On'}, {val: 'off', dispName: 'Off'}] + } +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupOnOffButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + w = Math.max(w, 10); + h = Math.max(h, 10); + + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupOnOffButton.prototype.background = function(c, x, y, w, h) +{ + c.roundrect(0, 0, w, h, 10, 10); + c.fillAndStroke(); + +}; + +mxShapeMockupOnOffButton.prototype.foreground = function(c, x, y, w, h) +{ + var state = mxUtils.getValue(this.style, mxShapeMockupOnOffButton.prototype.cst.BUTTON_STATE, mxShapeMockupOnOffButton.prototype.cst.STATE_ON); + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupOnOffButton.prototype.cst.FILL_COLOR2, '#008cff'); + var textColor = mxUtils.getValue(this.style, mxShapeMockupOnOffButton.prototype.cst.TEXT_COLOR, '#ffffff,#999999').toString().split(','); + var mainText = mxUtils.getValue(this.style, mxShapeMockupOnOffButton.prototype.cst.MAIN_TEXT, 'ON,OFF').toString().split(','); + var textSize = mxUtils.getValue(this.style, mxShapeMockupOnOffButton.prototype.cst.TEXT_SIZE, '17'); + + if (state === mxShapeMockupOnOffButton.prototype.cst.STATE_ON) + { + c.setFillColor(fillColor2); + c.setFontColor(textColor[0]); + c.roundrect(0, 0, w * 0.75, h, 10, 10); + } + else + { + c.setFontColor(textColor[1]); + c.roundrect(w * 0.25, 0, w * 0.75, h, 10, 10); + } + + c.fillAndStroke(); + c.setFontSize(textSize); + c.setFontStyle(mxConstants.FONT_BOLD); + + if(state === mxShapeMockupOnOffButton.prototype.cst.STATE_ON) + { + c.text(w * 0.375, h * 0.5, 0, 0, mainText[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (state === mxShapeMockupOnOffButton.prototype.cst.STATE_OFF) + { + c.text(w * 0.625, h * 0.5, 0, 0, mainText[1], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupOnOffButton.prototype.cst.SHAPE_ON_OFF_BUTTON, mxShapeMockupOnOffButton); + +//********************************************************************************************************************************************************** +//Rounded rectangle (adjustable rounding) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupRRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupRRect, mxShape); + +mxShapeMockupRRect.prototype.cst = { + RRECT : 'mxgraph.mockup.rrect', + R_SIZE : 'rSize' +}; + +mxShapeMockupRRect.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupRRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupRRect.prototype.cst.RRECT, mxShapeMockupRRect); + +//********************************************************************************************************************************************************** +//Anchor (a dummy shape without visuals used for anchoring) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupAnchor(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupAnchor, mxShape); + +mxShapeMockupAnchor.prototype.cst = { + ANCHOR : 'mxgraph.mockup.anchor' +}; + +mxShapeMockupAnchor.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupAnchor.prototype.paintVertexShape = function(c, x, y, w, h) +{ +}; + +mxCellRenderer.registerShape(mxShapeMockupAnchor.prototype.cst.ANCHOR, mxShapeMockupAnchor); + +//********************************************************************************************************************************************************** +//Top Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupTopButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupTopButton, mxShape); + +mxShapeMockupTopButton.prototype.cst = { + TOP_BUTTON : 'mxgraph.mockup.topButton', + R_SIZE : 'rSize' +}; + +mxShapeMockupTopButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupTopButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupTopButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupTopButton.prototype.cst.TOP_BUTTON, mxShapeMockupTopButton); + +//********************************************************************************************************************************************************** +//Bottom Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupBottomButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupBottomButton, mxShape); + +mxShapeMockupBottomButton.prototype.cst = { + BOTTOM_BUTTON : 'mxgraph.mockup.bottomButton', + R_SIZE : 'rSize' +}; + +mxShapeMockupBottomButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupBottomButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupBottomButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupBottomButton.prototype.cst.BOTTOM_BUTTON, mxShapeMockupBottomButton); + +//********************************************************************************************************************************************************** +//Right Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupRightButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupRightButton, mxShape); + +mxShapeMockupRightButton.prototype.cst = { + RIGHT_BUTTON : 'mxgraph.mockup.rightButton', + R_SIZE : 'rSize' +}; + +mxShapeMockupRightButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupRightButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupRightButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupRightButton.prototype.cst.RIGHT_BUTTON, mxShapeMockupRightButton); + +//********************************************************************************************************************************************************** +//Left Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupLeftButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupLeftButton, mxShape); + +mxShapeMockupLeftButton.prototype.cst = { + LEFT_BUTTON : 'mxgraph.mockup.leftButton', + R_SIZE : 'rSize' +}; + +mxShapeMockupLeftButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupLeftButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupLeftButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupLeftButton.prototype.cst.LEFT_BUTTON, mxShapeMockupLeftButton); + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupContainers.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupContainers.js new file mode 100644 index 0000000000000..7c28b661c7cf1 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupContainers.js @@ -0,0 +1,2119 @@ +/** + * $Id: mxMockupContainers.js,v 1.10 2013/07/09 11:19:51 mate Exp $ + * Copyright (c) 2006-2010, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Video Player +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupVideoPlayer(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.barPos = 20; + this.barHeight = 30; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupVideoPlayer, mxShape); + +mxShapeMockupVideoPlayer.prototype.cst = { + FILL_COLOR2 : 'fillColor2', + TEXT_COLOR : 'textColor', + STROKE_COLOR2 : 'strokeColor2', + STROKE_COLOR3 : 'strokeColor3', + SHAPE_VIDEO_PLAYER : 'mxgraph.mockup.containers.videoPlayer', + BAR_POS : 'barPos', + BAR_HEIGHT : 'barHeight' +}; + +mxShapeMockupVideoPlayer.prototype.customProperties = [ + {name: 'fillColor2', dispName: 'Fill2 Color', type: 'color'}, + {name: 'textColor', dispName: 'Text Color', type: 'color'}, + {name: 'strokeColor2', dispName: 'Stroke2 Color', type: 'color'}, + {name: 'strokeColor3', dispName: 'Stroke3 Color', type: 'color'}, + {name: 'barPos', dispName: 'Handle Position', type: 'float', min:0, max:100, defVal:20}, + {name: 'barHeight', dispName: 'Video Bar Height', type: 'float', min:0, defVal:30} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupVideoPlayer.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var buttonColor = mxUtils.getValue(this.style, mxShapeMockupVideoPlayer.prototype.cst.FILL_COLOR2, '#c4c4c4'); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var filledColor = mxUtils.getValue(this.style, mxShapeMockupVideoPlayer.prototype.cst.STROKE_COLOR2, '#008cff'); + var emptyColor = mxUtils.getValue(this.style, mxShapeMockupVideoPlayer.prototype.cst.STROKE_COLOR3, '#c4c4c4'); + var barHeight = mxUtils.getValue(this.style, mxShapeMockupVideoPlayer.prototype.cst.BAR_HEIGHT, '30'); + + w = Math.max(w, 5 * barHeight); + h = Math.max(h, barHeight + 10); + + c.translate(x, y); + this.background(c, x, y, w, h, bgColor, frameColor); + c.setShadow(false); + this.otherShapes(c, x, y, w, h, buttonColor, frameColor, filledColor, emptyColor, barHeight); +}; + +mxShapeMockupVideoPlayer.prototype.background = function(c, x, y, w, h, bgColor, frameColor) +{ + c.setFillColor(bgColor); + c.setStrokeColor(frameColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupVideoPlayer.prototype.otherShapes = function(c, x, y, w, h, buttonColor, frameColor, filledColor, emptyColor, barHeight) +{ + var barPos = mxUtils.getValue(this.style, mxShapeMockupVideoPlayer.prototype.cst.BAR_POS, '20'); + barPos = Math.max(0, barPos); + barPos = Math.min(100, barPos); + + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + var buttonR = 8; + var barY = h - barHeight; + + var barMin = buttonR; + var barMax = w - buttonR; + var barRange = barMax - barMin; + var realBarPos = barRange * barPos / 100; + var barEnd = barMin + realBarPos; + + //progress bar + c.setStrokeColor(filledColor); + c.begin(); + c.moveTo(0, barY); + c.lineTo(barEnd, barY); + c.stroke(); + c.setStrokeColor(emptyColor); + c.begin(); + c.moveTo(barEnd, barY); + c.lineTo(w, barY); + c.stroke(); + + //progress bar button + c.setStrokeColor(frameColor); + c.begin(); + c.ellipse(barEnd - buttonR, barY - buttonR, 2 * buttonR, 2 * buttonR); + c.fillAndStroke(); + + c.begin(); + c.setStrokeWidth(strokeWidth / 2); + c.ellipse(barEnd - buttonR * 0.5, barY - buttonR * 0.5, buttonR, buttonR); + c.fillAndStroke(); + c.setStrokeWidth(strokeWidth); + + var iconSize = barHeight * 0.3; + var iconY = h - (barHeight + iconSize) * 0.5; + var iconX = barHeight * 0.3; + c.setFillColor(buttonColor); + c.setStrokeColor(buttonColor); + + //play icon + c.begin(); + c.moveTo(iconX, iconY); + c.lineTo(iconX + iconSize, iconY + iconSize * 0.5); + c.lineTo(iconX, iconY + iconSize); + c.close(); + c.fillAndStroke(); + + //volume icon + var speakerX = barHeight; + var speakerY = h - barHeight; + c.moveTo(speakerX + barHeight * 0.05, speakerY + barHeight * 0.4); + c.lineTo(speakerX + barHeight * 0.15, speakerY + barHeight * 0.4); + c.lineTo(speakerX + barHeight * 0.3, speakerY + barHeight * 0.25); + c.lineTo(speakerX + barHeight * 0.3, speakerY + barHeight * 0.75); + c.lineTo(speakerX + barHeight * 0.15, speakerY + barHeight * 0.6); + c.lineTo(speakerX + barHeight * 0.05, speakerY + barHeight * 0.6); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(speakerX + barHeight * 0.4, speakerY + barHeight * 0.35); + c.arcTo(barHeight * 0.2, barHeight * 0.3, 0, 0, 1, speakerX + barHeight * 0.4, speakerY + barHeight * 0.65); + c.moveTo(speakerX + barHeight * 0.425, speakerY + barHeight * 0.25); + c.arcTo(barHeight * 0.225, barHeight * 0.35, 0, 0, 1, speakerX + barHeight * 0.425, speakerY + barHeight * 0.75); + c.stroke(); + + //fullscreen button + var screenX = w - barHeight * 1.3; + c.begin(); + c.moveTo(screenX + barHeight * 0.1, speakerY + barHeight * 0.4); + c.lineTo(screenX + barHeight * 0.1, speakerY + barHeight * 0.3); + c.lineTo(screenX + barHeight * 0.25, speakerY + barHeight * 0.3); + + c.moveTo(screenX + barHeight * 0.1, speakerY + barHeight * 0.6); + c.lineTo(screenX + barHeight * 0.1, speakerY + barHeight * 0.7); + c.lineTo(screenX + barHeight * 0.25, speakerY + barHeight * 0.7); + + c.moveTo(screenX + barHeight * 0.9, speakerY + barHeight * 0.4); + c.lineTo(screenX + barHeight * 0.9, speakerY + barHeight * 0.3); + c.lineTo(screenX + barHeight * 0.75, speakerY + barHeight * 0.3); + + c.moveTo(screenX + barHeight * 0.9, speakerY + barHeight * 0.6); + c.lineTo(screenX + barHeight * 0.9, speakerY + barHeight * 0.7); + c.lineTo(screenX + barHeight * 0.75, speakerY + barHeight * 0.7); + c.stroke(); + + var textColor = mxUtils.getValue(this.style, mxShapeMockupVideoPlayer.prototype.cst.TEXT_COLOR, '#666666'); + c.begin(); + c.setFontSize(barHeight * 0.5); + c.setFontColor(textColor); + c.text(barHeight * 1.9, h - barHeight * 0.45, 0, 0, '0:00/3:53', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupVideoPlayer.prototype.cst.SHAPE_VIDEO_PLAYER, mxShapeMockupVideoPlayer); + +Graph.handleFactory[mxShapeMockupVideoPlayer.prototype.cst.SHAPE_VIDEO_PLAYER] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'barPos', this.barPos)))); + + var barH = parseFloat(mxUtils.getValue(this.state.style, 'barHeight', this.barHeight)); + + return new mxPoint(bounds.x + ((bounds.width - 16) * barPos / bounds.width) / 100 * bounds.width + 8, bounds.y + bounds.height - barH - 20); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 1000; + })]; + + var handle2 = Graph.createHandle(state, ['barHeight'], function(bounds) + { + var barHeight = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'barHeight', this.barHeight)))); + + return new mxPoint(bounds.x + bounds.width - 20, bounds.y + bounds.height - barHeight); + }, function(bounds, pt) + { + this.state.style['barHeight'] = Math.round(1000 * Math.max(0, Math.min(bounds.height, bounds.y + bounds.height - pt.y))) / 1000; + }); + + handles.push(handle2); + + return handles; +} + +//********************************************************************************************************************************************************** +//Accordion (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupAccordion(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupAccordion, mxShape); + +mxShapeMockupAccordion.prototype.cst = { + TEXT_COLOR : 'textColor', + TEXT_COLOR2 : 'textColor2', + TEXT_SIZE : 'textSize', + SHAPE_ACCORDION : 'mxgraph.mockup.containers.accordion', + STROKE_COLOR2 : 'strokeColor2', + FILL_COLOR2 : 'fillColor2', + SELECTED : '+', // must be 1 char + MAIN_TEXT : 'mainText' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupAccordion.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var textStrings = mxUtils.getValue(this.style, mxShapeMockupAccordion.prototype.cst.MAIN_TEXT, '+Group 1, Group 2, Group 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupAccordion.prototype.cst.TEXT_COLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxShapeMockupAccordion.prototype.cst.TEXT_COLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupAccordion.prototype.cst.TEXT_SIZE, '17').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var separatorColor = mxUtils.getValue(this.style, mxShapeMockupAccordion.prototype.cst.STROKE_COLOR2, '#c4c4c4'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var selectedFillColor = mxUtils.getValue(this.style, mxShapeMockupAccordion.prototype.cst.FILL_COLOR2, '#008cff'); + var buttonNum = textStrings.length; + var maxButtonWidth = 0; + var selectedButton = -1; + var rSize = 10; //rounding size + var labelOffset = 5; + + for (var i = 0; i < buttonNum; i++) + { + var buttonText = textStrings[i]; + + if(buttonText.charAt(0) === mxShapeMockupAccordion.prototype.cst.SELECTED) + { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + var currWidth = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxButtonWidth) + { + maxButtonWidth = currWidth; + } + } + + var minButtonHeight = fontSize * 1.5; + var minH = buttonNum * minButtonHeight; + var trueH = Math.max(h, minH); + var minW = 2 * labelOffset + maxButtonWidth; + var trueW = Math.max(w, minW); + + c.translate(x, y); + + this.background(c, trueW, trueH, rSize, buttonNum, labelOffset, buttonNum * minButtonHeight, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton, minButtonHeight); + c.setShadow(false); + + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) + { + if (i === selectedButton) + { + c.setFontColor(selectedFontColor); + } + else + { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + var currHeight = 0; + + if (selectedButton === -1 || i <= selectedButton) + { + currHeight = (i * minButtonHeight + minButtonHeight * 0.5); + } + else + { + currHeight = trueH - (buttonNum - i - 0.5) * minButtonHeight; + } + + this.buttonText(c, trueW, currHeight, textStrings[i], fontSize); + } +}; + +mxShapeMockupAccordion.prototype.background = function(c, w, h, rSize, buttonNum, labelOffset, minH, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton, minButtonHeight) +{ + c.begin(); + + //draw the frame + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + + //draw the button separators + c.setStrokeColor(separatorColor); + c.begin(); + + for (var i = 1; i < buttonNum; i++) + { + if (i !== selectedButton) + { + if (selectedButton === -1 || i < selectedButton) + { + var currHeight = i * minButtonHeight; + c.moveTo(0, currHeight); + c.lineTo(w, currHeight); + } + else + { + var currHeight = h - (buttonNum - i) * minButtonHeight; + c.moveTo(0, currHeight); + c.lineTo(w, currHeight); + } + } + } + + c.stroke(); + + //draw the selected button + c.setStrokeColor(mxConstants.NONE); + c.setFillColor(selectedFillColor); + + if (selectedButton !== -1) + { + c.begin(); + var buttonTop = minButtonHeight * selectedButton; + var buttonBottom = minButtonHeight * (selectedButton + 1); + c.moveTo(0, buttonTop); + c.lineTo(w, buttonTop); + c.lineTo(w, buttonBottom); + c.lineTo(0, buttonBottom); + c.close(); + c.fill(); + } + +// //draw the frame again, to achieve a nicer effect + c.begin(); + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.stroke(); +}; + +mxShapeMockupAccordion.prototype.buttonText = function(c, w, h, textString, fontSize) +{ + if(textString.charAt(0) === mxShapeMockupAccordion.prototype.cst.SELECTED) + { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text((w * 0.5), h, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupAccordion.prototype.cst.SHAPE_ACCORDION, mxShapeMockupAccordion); + +//********************************************************************************************************************************************************** +//Browser Window +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupBrowserWindow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupBrowserWindow, mxShape); + +mxShapeMockupBrowserWindow.prototype.cst = { + STROKE_COLOR2 : 'strokeColor2', + STROKE_COLOR3 : 'strokeColor3', + MAIN_TEXT : 'mainText', + SHAPE_BROWSER_WINDOW : 'mxgraph.mockup.containers.browserWindow' + +}; + +mxShapeMockupBrowserWindow.prototype.customProperties = [ + {name: 'strokeColor2', dispName: 'Stroke2 Color', type: 'color'}, + {name: 'strokeColor3', dispName: 'Stroke3 Color', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupBrowserWindow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var closeColor = mxUtils.getValue(this.style, mxShapeMockupBrowserWindow.prototype.cst.STROKE_COLOR2, '#008cff'); + var insideColor = mxUtils.getValue(this.style, mxShapeMockupBrowserWindow.prototype.cst.STROKE_COLOR3, '#c4c4c4'); + w = Math.max(w, 260); + h = Math.max(h, 110); + c.translate(x, y); + this.background(c, x, y, w, h, bgColor, frameColor); + c.setShadow(false); + this.otherShapes(c, x, y, w, h, frameColor, insideColor, closeColor); +}; + +mxShapeMockupBrowserWindow.prototype.background = function(c, x, y, w, h, bgColor, frameColor) +{ + c.setFillColor(bgColor); + c.setStrokeColor(frameColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupBrowserWindow.prototype.otherShapes = function(c, x, y, w, h, frameColor, insideColor, closeColor) +{ + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + var mainText = mxUtils.getValue(this.style, mxShapeMockupBrowserWindow.prototype.cst.MAIN_TEXT, 'http://www.draw.io,Page 1').toString().split(','); + + //window buttons + c.setStrokeColor(frameColor); + c.ellipse(w - 75, 5, 20, 20); + c.stroke(); + + c.ellipse(w - 50, 5, 20, 20); + c.stroke(); + + c.setStrokeColor(closeColor); + c.ellipse(w - 25, 5, 20, 20); + c.stroke(); + + c.setStrokeColor(insideColor); + //lines + c.begin(); + c.moveTo(0, 40); + c.lineTo(30, 40); + c.lineTo(30, 15); + c.arcTo(5, 5, 0, 0, 1, 35, 10); + c.lineTo(170, 10); + c.arcTo(5, 5, 0, 0, 1, 175, 15); + c.lineTo(175, 40); + c.lineTo(w, 40); + c.stroke(); + + c.begin(); + c.moveTo(0, 110); + c.lineTo(w, 110); + c.stroke(); + + //address field + c.begin(); + c.moveTo(100, 60); + c.arcTo(5, 5, 0, 0, 1, 105, 55); + c.lineTo(w - 15, 55); + c.arcTo(5, 5, 0, 0, 1, w - 10, 60); + c.lineTo(w - 10, 85); + c.arcTo(5, 5, 0, 0, 1, w - 15, 90); + c.lineTo(105, 90); + c.arcTo(5, 5, 0, 0, 1, 100, 85); + c.close(); + c.stroke(); + + //text + var textColor = mxUtils.getValue(this.style, mxShapeMockupBrowserWindow.prototype.cst.TEXT_COLOR, '#666666'); + c.setFontColor(textColor); + c.setFontSize(17); + c.text(65, 25, 0, 0, mainText[1], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(130, 73, 0, 0, mainText[0], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.stroke(); + + //icon on tab + c.translate(37, 17); + c.begin(); + c.moveTo(0, 0); + c.lineTo(11, 0); + c.lineTo(15, 4); + c.lineTo(15, 18); + c.lineTo(0, 18); + c.close(); + c.stroke(); + + c.setStrokeWidth(strokeWidth * 0.5); //maybe because of this (read later) + c.begin(); + c.moveTo(11, 0); + c.lineTo(11, 4); + c.lineTo(15, 5); + c.stroke(); + + //icon in address bar + c.setStrokeWidth(strokeWidth * 2); // i'm not sure why i have to multiply here + c.translate(70, 47); + c.begin(); + c.moveTo(0, 0); + c.lineTo(11, 0); + c.lineTo(15, 4); + c.lineTo(15, 18); + c.lineTo(0, 18); + c.close(); + c.stroke(); + + c.setStrokeWidth(strokeWidth * 0.5); + c.begin(); + c.moveTo(11, 0); + c.lineTo(11, 4); + c.lineTo(15, 5); + c.stroke(); + + //back + var iSi = 20; //icon size + c.setFillColor(insideColor); + c.begin(); + c.setStrokeWidth(strokeWidth * 2); // i'm not sure why i have to multiply here + c.translate(-95, 0); + c.moveTo(0, iSi * 0.5); + c.lineTo(iSi * 0.5, 0); + c.lineTo(iSi * 0.5, iSi * 0.3); + c.lineTo(iSi, iSi * 0.3); + c.lineTo(iSi, iSi * 0.7); + c.lineTo(iSi * 0.5, iSi * 0.7); + c.lineTo(iSi * 0.5, iSi); + c.close(); + c.fillAndStroke(); + + //forward + c.begin(); + c.translate(30, 0); + c.moveTo(iSi, iSi * 0.5); + c.lineTo(iSi * 0.5, 0); + c.lineTo(iSi * 0.5, iSi * 0.3); + c.lineTo(0, iSi * 0.3); + c.lineTo(0, iSi * 0.7); + c.lineTo(iSi * 0.5, iSi * 0.7); + c.lineTo(iSi * 0.5, iSi); + c.close(); + c.fillAndStroke(); + + //refresh + c.begin(); + c.translate(30, 0); + c.moveTo(iSi * 0.78, iSi * 0.665); + c.arcTo(iSi * 0.3, iSi * 0.3, 0, 1, 1, iSi * 0.675, iSi * 0.252); + c.lineTo(iSi * 0.595, iSi * 0.325); + c.lineTo(iSi * 0.99, iSi * 0.415); + c.lineTo(iSi * 0.9, iSi * 0.04); + c.lineTo(iSi * 0.815, iSi * 0.12); + c.arcTo(iSi * 0.49, iSi * 0.49, 0, 1, 0, iSi * 0.92, iSi * 0.8); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupBrowserWindow.prototype.cst.SHAPE_BROWSER_WINDOW, mxShapeMockupBrowserWindow); + +//********************************************************************************************************************************************************** +//User, Male +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupUserMale(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupUserMale, mxShape); + +mxShapeMockupUserMale.prototype.cst = { + STROKE_COLOR2 : 'strokeColor2', + SHAPE_MALE_USER : 'mxgraph.mockup.containers.userMale' +}; + +mxShapeMockupUserMale.prototype.customProperties = [ + {name: 'strokeColor2', dispName: 'Stroke2 Color', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupUserMale.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var insideColor = mxUtils.getValue(this.style, mxShapeMockupUserMale.prototype.cst.STROKE_COLOR2, '#008cff'); + c.translate(x, y); + this.background(c, x, y, w, h, bgColor, frameColor); + c.setShadow(false); + this.otherShapes(c, x, y, w, h, insideColor, frameColor); +}; + +mxShapeMockupUserMale.prototype.background = function(c, x, y, w, h, bgColor, frameColor) +{ + c.setFillColor(bgColor); + c.setStrokeColor(frameColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupUserMale.prototype.otherShapes = function(c, x, y, w, h, insideColor, frameColor) +{ + //head left + c.setStrokeColor(insideColor); + c.setLineCap('round'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.5, h * 0.6721); + c.curveTo(w * 0.3891, h * 0.6721, w * 0.31, h * 0.5648, w * 0.31, h * 0.3962); + c.curveTo(w * 0.31, h * 0.3656, w * 0.3012, h * 0.3473, w * 0.3051, h * 0.3227); + c.curveTo(w * 0.3126, h * 0.2762, w * 0.3124, h * 0.2212, w * 0.332, h * 0.1939); + c.curveTo(w * 0.354, h * 0.1633, w * 0.4382, h * 0.12, w * 0.5, h * 0.12); + c.stroke(); + + //left ear + c.begin(); + c.moveTo(w * 0.3046, h * 0.3716); + c.curveTo(w * 0.3046, h * 0.3716, w * 0.3046, h * 0.341, w * 0.2826, h * 0.3594); + c.curveTo(w * 0.2606, h * 0.3778, w * 0.2661, h * 0.4452, w * 0.266, h * 0.4452); + c.quadTo(w * 0.2715, h * 0.4942, w * 0.277, h * 0.5065); + c.curveTo(w * 0.2825, h * 0.5187, w * 0.277, h * 0.5187, w * 0.2935, h * 0.5371); + c.curveTo(w * 0.31, h * 0.5554, w * 0.3375, h * 0.5615, w * 0.3375, h * 0.5616); + c.stroke(); + + // left shoulder + c.begin(); + c.moveTo(w * 0.3829, h * 0.6213); + c.curveTo(w * 0.3829, h * 0.6213, w * 0.405, h * 0.7704, w * 0.2921, h * 0.7888); + c.curveTo(w * 0.2536, h * 0.795, w * 0.1328, h * 0.85, w * 0.1052, h * 0.8745); + c.curveTo(w * 0.0776, h * 0.899, w * 0.0641, h * 0.9316, w * 0.0571, h * 0.9622); + c.quadTo(w * 0.05, h, w * 0.05, h); + c.stroke(); + + // left hairline + c.begin(); + c.moveTo(w * 0.3427, h * 0.4185); + c.curveTo(w * 0.3427, h * 0.4185, w * 0.3427, h * 0.3839, w * 0.3427, h * 0.3593); + c.curveTo(w * 0.3427, h * 0.3348, w * 0.3663, h * 0.3103, w * 0.3718, h * 0.3041); + c.curveTo(w * 0.3773, h * 0.298, w * 0.3822, h * 0.2673, w * 0.3877, h * 0.2551); + c.curveTo(w * 0.3932, h * 0.2429, w * 0.4095, h * 0.2429, w * 0.4259, h * 0.2367); + c.curveTo(w * 0.4424, h * 0.2306, w * 0.4984, h * 0.2357, w * 0.4984, h * 0.2357); + c.stroke(); + + //shirt + c.begin(); + c.moveTo(w * 0.365, h * 0.7427); + c.curveTo(w * 0.365, h * 0.7427, w * 0.3772, h * 0.8076, w * 0.4286, h * 0.8224); + c.curveTo(w * 0.4816, h * 0.8377, w * 0.5028, h * 0.8347, w * 0.5028, h * 0.8347); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.3322, h * 0.7764); + c.curveTo(w * 0.3322, h * 0.7764, w * 0.3556, h * 0.8386, w * 0.4038, h * 0.8684); + c.curveTo(w * 0.4533, h * 0.8991, w * 0.5029, h * 0.8929, w * 0.5029, h * 0.8929); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.2717, h * 0.9); + c.lineTo(w * 0.2717, h); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.1671, h * 0.8991); + c.curveTo(w * 0.1671, h * 0.8991, w * 0.1726, h * 0.9114, w * 0.1836, h * 0.9481); + c.curveTo(w * 0.1946, h * 0.9849, w * 0.2, h, w * 0.2, h); + c.stroke(); + + //head right + c.begin(); + c.moveTo(w * 0.5, h * 0.6721); + c.curveTo(w * 0.6109, h * 0.6721, w * 0.69, h * 0.5648, w * 0.69, h * 0.3962); + c.curveTo(w * 0.69, h * 0.3656, w * 0.6988, h * 0.3473, w * 0.6949, h * 0.3227); + c.curveTo(w * 0.6847, h * 0.2762, w * 0.6876, h * 0.2212, w * 0.668, h * 0.1939); + c.curveTo(w * 0.646, h * 0.1633, w * 0.5618, h * 0.12, w * 0.5, h * 0.12); + c.stroke(); + + //right ear + c.begin(); + c.moveTo(w * 0.6954, h * 0.3716); + c.curveTo(w * 0.6954, h * 0.3716, w * 0.6954, h * 0.341, w * 0.7174, h * 0.3594); + c.curveTo(w * 0.7394, h * 0.3778, w * 0.7339, h * 0.4452, w * 0.734, h * 0.4452); + c.quadTo(w * 0.7285, h * 0.4942, w * 0.723, h * 0.5065); + c.curveTo(w * 0.7175, h * 0.5187, w * 0.723, h * 0.5187, w * 0.7065, h * 0.5371); + c.curveTo(w * 0.69, h * 0.5554, w * 0.6625, h * 0.5615, w * 0.6625, h * 0.5616); + c.stroke(); + + // right shoulder + c.begin(); + c.moveTo(w * 0.6171, h * 0.6213); + c.curveTo(w * 0.6171, h * 0.6213, w * 0.595, h * 0.7704, w * 0.7079, h * 0.7888); + c.curveTo(w * 0.7464, h * 0.795, w * 0.8672, h * 0.85, w * 0.8948, h * 0.8745); + c.curveTo(w * 0.9224, h * 0.899, w * 0.9359, h * 0.9316, w * 0.9429, h * 0.9622); + c.quadTo(w * 0.95, h, w * 0.95, h); + c.stroke(); + + // right hairline + c.begin(); + c.moveTo(w * 0.6573, h * 0.4185); + c.curveTo(w * 0.6573, h * 0.4185, w * 0.6573, h * 0.3839, w * 0.6573, h * 0.3593); + c.curveTo(w * 0.6573, h * 0.3348, w * 0.6337, h * 0.3103, w * 0.6282, h * 0.3041); + c.curveTo(w * 0.6227, h * 0.298, w * 0.6178, h * 0.2673, w * 0.6123, h * 0.2551); + c.curveTo(w * 0.6068, h * 0.2429, w * 0.5905, h * 0.2429, w * 0.5741, h * 0.2367); + c.curveTo(w * 0.5576, h * 0.2306, w * 0.5016, h * 0.2357, w * 0.5016, h * 0.2357); + c.stroke(); + + //shirt, right + c.begin(); + c.moveTo(w * 0.635, h * 0.7427); + c.curveTo(w * 0.635, h * 0.7427, w * 0.6228, h * 0.8076, w * 0.5714, h * 0.8224); + c.curveTo(w * 0.5184, h * 0.8377, w * 0.4972, h * 0.8347, w * 0.4972, h * 0.8347); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.6678, h * 0.7764); + c.curveTo(w * 0.6678, h * 0.7764, w * 0.6444, h * 0.8386, w * 0.5962, h * 0.8684); + c.curveTo(w * 0.5467, h * 0.8991, w * 0.4971, h * 0.8929, w * 0.4971, h * 0.8929); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.7283, h * 0.9); + c.lineTo(w * 0.7283, h); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.8329, h * 0.8991); + c.curveTo(w * 0.8329, h * 0.8991, w * 0.8274, h * 0.9114, w * 0.8164, h * 0.9481); + c.curveTo(w * 0.8054, h * 0.9849, w * 0.8, h, w * 0.8, h); + c.stroke(); + + c.setStrokeColor(frameColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupUserMale.prototype.cst.SHAPE_MALE_USER, mxShapeMockupUserMale); + +//********************************************************************************************************************************************************** +//User, Female +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupUserFemale(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupUserFemale, mxShape); + +mxShapeMockupUserFemale.prototype.cst = { + STROKE_COLOR2 : 'strokeColor2', + SHAPE_FEMALE_USER : 'mxgraph.mockup.containers.userFemale' +}; + +mxShapeMockupUserFemale.prototype.customProperties = [ + {name: 'strokeColor2', dispName: 'Stroke2 Color', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupUserFemale.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var insideColor = mxUtils.getValue(this.style, mxShapeMockupUserFemale.prototype.cst.STROKE_COLOR2, '#008cff'); + c.translate(x, y); + this.background(c, x, y, w, h, bgColor, frameColor); + c.setShadow(false); + this.otherShapes(c, x, y, w, h, insideColor, frameColor); +}; + +mxShapeMockupUserFemale.prototype.background = function(c, x, y, w, h, bgColor, frameColor) +{ + c.setFillColor(bgColor); + c.setStrokeColor(frameColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupUserFemale.prototype.otherShapes = function(c, x, y, w, h, insideColor, frameColor) +{ + //head left + c.setStrokeColor(insideColor); + c.setLineCap('round'); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.3148, h * 0.468); + c.curveTo(w * 0.3045, h * 0.3195, w * 0.3176, h * 0.2383, w * 0.3302, h * 0.2069); + c.curveTo(w * 0.3508, h * 0.1557, w * 0.44, h * 0.1156, w * 0.5026, h * 0.1156); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.5029, h * 0.6728); + c.curveTo(w * 0.4616, h * 0.6728, w * 0.4018, h * 0.6177, w * 0.3663, h * 0.5653); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.3108, h * 0.4021); + c.curveTo(w * 0.3108, h * 0.4021, w * 0.3091, h * 0.3765, w * 0.2891, h * 0.3933); + c.curveTo(w * 0.2691, h * 0.4101, w * 0.2782, h * 0.4661, w * 0.2782, h * 0.4661); + c.quadTo(w * 0.2862, h * 0.5067, w * 0.2922, h * 0.5166); + c.curveTo(w * 0.2982, h * 0.5265, w * 0.2929, h * 0.5268, w * 0.3097, h * 0.5412); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.4038, h * 0.6176); + c.curveTo(w * 0.4038, h * 0.6176, w * 0.4324, h * 0.7778, w * 0.3375, h * 0.7963); + c.curveTo(w * 0.3054, h * 0.8026, w * 0.1753, h * 0.8578, w * 0.15, h * 0.8826); + c.curveTo(w * 0.1247, h * 0.9074, w * 0.1126, h * 0.9412, w * 0.1063, h * 0.9722); + c.curveTo(w * 0.10, h * 1.0032, w * 0.1, h, w * 0.1, h); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.6377, h * 0.3365); + c.curveTo(w * 0.5927, h * 0.2634, w * 0.5206, h * 0.2634, w * 0.5206, h * 0.2634); + c.quadTo(w * 0.3769, h * 0.2591, w * 0.3713, h * 0.2659); + c.curveTo(w * 0.3657, h * 0.2727, w * 0.3405, h * 0.3674, w * 0.3405, h * 0.3946); + c.curveTo(w * 0.3405, h * 0.4218, w * 0.3405, h * 0.4602, w * 0.3405, h * 0.4602); + c.quadTo(w * 0.3546, h * 0.6401, w * 0.3546, h * 0.6626); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.2931, h * 0.818); + c.curveTo(w * 0.2931, h * 0.818, w * 0.3224, h * 0.9159, w * 0.3826, h * 0.9677); + c.curveTo(w * 0.4446, h * 1.01, w * 0.5065, h, w * 0.5065, h); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.2995, h * 0.9106); + c.lineTo(w * 0.2995, h); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.2081, h * 0.907); + c.curveTo(w * 0.2081, h * 0.907, w * 0.2131, h * 0.9194, w * 0.2232, h * 0.9565); + c.curveTo(w * 0.2333, h * 0.9936, w * 0.24, h, w * 0.24, h); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.6951, h * 0.4988); + c.curveTo(w * 0.6951, h * 0.4662, w * 0.7042, h * 0.3453, w * 0.7, h * 0.32); + c.curveTo(w * 0.6923, h * 0.273, w * 0.6926, h * 0.2175, w * 0.6727, h * 0.19); + c.curveTo(w * 0.6504, h * 0.159, w * 0.5651, h * 0.1157, w * 0.5025, h * 0.1157); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.5029, h * 0.6728); + c.curveTo(w * 0.5546, h * 0.6728, w * 0.6107, h * 0.6316, w * 0.6461, h * 0.5602); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.696, h * 0.4022); + c.curveTo(w * 0.696, h * 0.4022, w * 0.6983, h * 0.3766, w * 0.7179, h * 0.4106); + c.curveTo(w * 0.7375, h * 0.4278, w * 0.7273, h * 0.4836, w * 0.7273, h * 0.4836); + c.quadTo(w * 0.7184, h * 0.5241, w * 0.7123, h * 0.5338); + c.curveTo(w * 0.7062, h * 0.5436, w * 0.7114, h * 0.544, w * 0.6943, h * 0.558); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.5995, h * 0.6278); + c.curveTo(w * 0.5995, h * 0.6278, w * 0.5724, h * 0.7777, w * 0.6663, h * 0.7963); + c.curveTo(w * 0.6984, h * 0.8026, w * 0.8386, h * 0.8578, w * 0.8638, h * 0.8826); + c.curveTo(w * 0.8891, h * 0.9074, w * 0.9016, h * 0.9412, w * 0.9079, h * 0.9722); + c.curveTo(w * 0.9142, h * 1.0032, w * 0.91, h, w * 0.91, h); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.6545, h * 0.6802); + c.lineTo(w * 0.6545, h * 0.3986); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.7132, h * 0.8078); + c.curveTo(w * 0.7132, h * 0.8078, w * 0.6839, h * 0.916, w * 0.6237, h * 0.9678); + c.curveTo(w * 0.5617, h * 1.01, w * 0.4998, h, w * 0.4998, h); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.7111, h * 0.9106); + c.lineTo(w * 0.7111, h); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.8075, h * 0.907); + c.curveTo(w * 0.8075, h * 0.907, w * 0.8025, h * 0.9194, w * 0.7924, h * 0.9565); + c.curveTo(w * 0.7823, h * 0.9936, w * 0.775, h, w * 0.775, h); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.3148, h * 0.5448); + c.curveTo(w * 0.3148, h * 0.5448, w * 0.32, h * 0.6216, w * 0.3148, h * 0.6677); + c.quadTo(w * 0.2891, h * 0.7343, w * 0.2891, h * 0.7343); + c.lineTo(w * 0.3303, h * 0.7625); + c.lineTo(w * 0.39, h * 0.7625); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.6852, h * 0.5448); + c.curveTo(w * 0.6852, h * 0.5448, w * 0.68, h * 0.6216, w * 0.6852, h * 0.6677); + c.quadTo(w * 0.7109, h * 0.7343, w * 0.7109, h * 0.7343); + c.lineTo(w * 0.6697, h * 0.7625); + c.lineTo(w * 0.62, h * 0.7625); + c.stroke(); + + c.setStrokeColor(frameColor); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupUserFemale.prototype.cst.SHAPE_FEMALE_USER, mxShapeMockupUserFemale); + +//********************************************************************************************************************************************************** +//Group +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupGroup(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupGroup, mxShape); + +mxShapeMockupGroup.prototype.cst = { + MAIN_TEXT : 'mainText', + TEXT_SIZE : 'textSize', + TEXT_COLOR : 'textColor', + FILL_COLOR2 : 'fillColor2', + SHAPE_GROUP : 'mxgraph.mockup.containers.group' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupGroup.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var groupString = mxUtils.getValue(this.style, mxShapeMockupGroup.prototype.cst.MAIN_TEXT, 'Group').toString(); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupGroup.prototype.cst.TEXT_SIZE, '17'); + + var textWidth = mxUtils.getSizeForString(groupString, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (textWidth === 0) + { + textWidth = Math.max(80, textWidth); + } + + c.translate(x, y); + + w = Math.max(w, textWidth + 15); + h = Math.max(h, fontSize + 10); + + this.background(c, w, h, textWidth, fontSize); + c.setShadow(false); + this.foreground(c, w, h, textWidth, fontSize); + this.buttonText(c, w, h, groupString, fontSize); +}; + +mxShapeMockupGroup.prototype.background = function(c, w, h, textWidth, fontSize) +{ + c.roundrect(0, fontSize * 0.5, w, h - fontSize * 0.5, 5, 5); + c.fillAndStroke(); +}; + +mxShapeMockupGroup.prototype.foreground = function(c, w, h, textWidth, fontSize) +{ + var fillColor = mxUtils.getValue(this.style, mxShapeMockupGroup.prototype.cst.FILL_COLOR2, '#000000'); + c.setFillColor(fillColor); + c.roundrect(3, 0, textWidth + 6, fontSize * 1.5, fontSize * 0.25, fontSize * 0.25); + c.fill(); +}; + +mxShapeMockupGroup.prototype.buttonText = function(c, w, h, textString, fontSize) +{ + var fontColor = mxUtils.getValue(this.style, mxShapeMockupGroup.prototype.cst.TEXT_COLOR, '#ffffff'); + + c.setFontColor(fontColor); + c.setFontSize(fontSize); + c.text(6, 0, 0, 0, textString, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_TOP, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupGroup.prototype.cst.SHAPE_GROUP, mxShapeMockupGroup); + +//********************************************************************************************************************************************************** +//Window +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupWindow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupWindow, mxShape); + +mxShapeMockupWindow.prototype.cst = { + MAIN_TEXT : 'mainText', + TEXT_SIZE : 'textSize', + TEXT_COLOR : 'textColor', + STROKE_COLOR2 : 'strokeColor2', + STROKE_COLOR3 : 'strokeColor3', + SHAPE_WINDOW : 'mxgraph.mockup.containers.window' +}; + +mxShapeMockupWindow.prototype.customProperties = [ + {name: 'strokeColor2', dispName: 'Stroke2 Color', type: 'color'}, + {name: 'strokeColor3', dispName: 'Stroke3 Color', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupWindow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var closeColor = mxUtils.getValue(this.style, mxShapeMockupWindow.prototype.cst.STROKE_COLOR2, '#008cff'); + var insideColor = mxUtils.getValue(this.style, mxShapeMockupWindow.prototype.cst.STROKE_COLOR3, '#c4c4c4'); + c.translate(x, y); + + h = Math.max(h, 30); + w = Math.max(w, 90); + + this.background(c, x, y, w, h, bgColor, frameColor); + c.setShadow(false); + this.otherShapes(c, x, y, w, h, frameColor, insideColor, closeColor); +}; + +mxShapeMockupWindow.prototype.background = function(c, x, y, w, h, bgColor, frameColor) +{ + c.setFillColor(bgColor); + c.setStrokeColor(frameColor); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupWindow.prototype.otherShapes = function(c, x, y, w, h, frameColor, insideColor, closeColor) +{ + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + + //window buttons + c.setStrokeColor(frameColor); + c.ellipse(w - 75, 5, 20, 20); + c.stroke(); + + c.ellipse(w - 50, 5, 20, 20); + c.stroke(); + + c.setStrokeColor(closeColor); + c.ellipse(w - 25, 5, 20, 20); + c.stroke(); + + c.setStrokeColor(insideColor); + //lines + c.begin(); + c.moveTo(0, 30); + c.lineTo(w, 30); + c.stroke(); + + //text + var windowTitle = mxUtils.getValue(this.style, mxShapeMockupWindow.prototype.cst.MAIN_TEXT, 'Window Title'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupWindow.prototype.cst.TEXT_COLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupWindow.prototype.cst.TEXT_SIZE, '17').toString(); + + c.setFontColor(fontColor); + c.setFontSize(fontSize); + c.text(10, 15, 0, 0, windowTitle, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupWindow.prototype.cst.SHAPE_WINDOW, mxShapeMockupWindow); + +//********************************************************************************************************************************************************** +//Horizontal Tab Bar (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupHorTabBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupHorTabBar, mxShape); + +mxShapeMockupHorTabBar.prototype.cst = { + BLOCK : 'block', + CONE : 'cone', + HALF_CONE : 'halfCone', + ROUND : 'round', + TEXT_SIZE : 'textSize', + TAB_NAMES : 'tabs', + TAB_STYLE : 'tabStyle', + STYLE_FILLCOLOR2 : 'fillColor2', + TEXT_COLOR : 'textColor', + SEL_TEXT_COLOR : 'textColor2', + SHAPE_HOR_TAB_BAR : 'mxgraph.mockup.containers.horTabBar' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +//TODO tab widths are fixed, so tab text length is a bit of an issue. Cannot be fixed while we use labels for tab names +mxShapeMockupHorTabBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var fontSize = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.TEXT_SIZE, '17').toString(); + var tabNames = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.TAB_NAMES, 'Tab 1,+Tab 2,Tab 3').toString().split(','); + + var tabH = fontSize * 1.5; + var startOffset = 10; + var tabOffset = 5; + var labelOffset = 10; + var tabCount = tabNames.length; + var minW = 2 * startOffset + (tabCount - 1) * tabOffset + tabCount * 2 * labelOffset; + var rSize = 5; + var labelWidths = new Array(); + var selectedTab = -1; + + for (var i = 0; i < tabCount; i++) + { + var currLabel = tabNames[i]; + + if(currLabel.charAt(0) === '+') + { + currLabel = currLabel.substring(1); + selectedTab = i; + } + + currW = mxUtils.getSizeForString(currLabel, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currW === 0) + { + labelWidths[i] = 40; + } + else + { + labelWidths[i] = currW; + }; + + minW = minW + labelWidths[i]; + } + + w = Math.max(w, minW); + h = Math.max(h, tabH + rSize); + + c.translate(x, y); + + this.background(c, w, h, rSize, tabH); + c.setShadow(false); + this.backTabs(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab); + this.focusTab(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab); + this.tabText(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab, tabNames); +}; + +mxShapeMockupHorTabBar.prototype.background = function(c, w, h, rSize, tabH) +{ + c.begin(); + c.moveTo(0, tabH + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, tabH); + c.lineTo(w - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 1, w, tabH + rSize); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupHorTabBar.prototype.backTabs = function(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab) +{ + var tabStyle = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.TAB_STYLE, mxShapeMockupHorTabBar.prototype.cst.BLOCK); + + var currW = startOffset; + for (var i=0; i < tabCount; i++) + { + var tabW = labelWidths[i] + 2 * labelOffset; + + if (selectedTab !== i) + { + if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.BLOCK) + { + c.rect(currW, 0, tabW, tabH); + } + else if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.CONE) + { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW - labelOffset * 0.5, 0); + c.lineTo(currW + tabW, tabH); + } + else if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.HALF_CONE) + { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW, 0); + c.lineTo(currW + tabW, tabH); + } + else if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.ROUND) + { + c.begin(); + c.moveTo(currW - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 0, currW, tabH - rSize); + c.lineTo(currW, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, currW + rSize, 0); + c.lineTo(currW + tabW - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, currW + tabW, rSize); + c.lineTo(currW + tabW, tabH - rSize); + c.arcTo(rSize, rSize, 0, 0, 0, currW + tabW + rSize, tabH); + } + + c.fillAndStroke(); + } + + currW = currW + tabW + tabOffset; + } +}; + +mxShapeMockupHorTabBar.prototype.focusTab = function(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab) +{ + var tabStyle = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.TAB_STYLE, mxShapeMockupHorTabBar.prototype.cst.BLOCK); + var selectedFill = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.STYLE_FILLCOLOR2, '#008cff'); + + var currW = startOffset; + c.setStrokeColor(selectedFill); + c.setFillColor(selectedFill); + + for (var i=0; i <= selectedTab; i++) + { + var tabW = labelWidths[i] + 2 * labelOffset; + + if (selectedTab === i) + { + if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.BLOCK) + { + c.begin(); + c.moveTo(0, tabH + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, tabH); + c.lineTo(currW, tabH); + c.lineTo(currW, 0); + c.lineTo(currW + tabW, 0); + c.lineTo(currW + tabW, tabH); + c.lineTo(w - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 1, w, tabH + rSize); + c.close(); + } + else if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.CONE) + { + c.begin(); + c.moveTo(0, tabH + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, tabH); + c.lineTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW - labelOffset * 0.5, 0); + c.lineTo(currW + tabW, tabH); + c.lineTo(w - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 1, w, tabH + rSize); + c.close(); + } + else if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.HALF_CONE) + { + c.begin(); + c.moveTo(0, tabH + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, tabH); + c.lineTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW, 0); + c.lineTo(currW + tabW, tabH); + c.lineTo(w - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 1, w, tabH + rSize); + c.close(); + } + else if (tabStyle === mxShapeMockupHorTabBar.prototype.cst.ROUND) + { + c.begin(); + c.moveTo(0, tabH + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, tabH); + c.lineTo(currW - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 0, currW, tabH - rSize); + c.lineTo(currW, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, currW + rSize, 0); + c.lineTo(currW + tabW - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, currW + tabW, rSize); + c.lineTo(currW + tabW, tabH - rSize); + c.arcTo(rSize, rSize, 0, 0, 0, currW + tabW + rSize, tabH); + c.lineTo(w - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 1, w, tabH + rSize); + c.close(); + } + + c.fillAndStroke(); + } + + currW = currW + tabW + tabOffset; + } +}; + +mxShapeMockupHorTabBar.prototype.tabText = function(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab, tabNames) +{ + var fontColor = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.TEXT_COLOR, '#666666'); + var selFontColor = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.SEL_TEXT_COLOR, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupHorTabBar.prototype.cst.TEXT_SIZE, '17').toString(); + + c.setFontColor(fontColor); + c.setFontSize(fontSize); + + var currW = startOffset; + + for (var i=0; i < tabCount; i++) + { + var currLabel = tabNames[i]; + + if (i === selectedTab) + { + c.setFontColor(selFontColor); + } + + if (currLabel.charAt(0) === '+') + { + currLabel = currLabel.substring(1); + } + + var tabW = labelWidths[i] + 2 * labelOffset; + + c.text(currW + labelOffset, tabH * 0.5, 0, 0, currLabel, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + currW = currW + tabW + tabOffset; + + if (i === selectedTab) + { + c.setFontColor(fontColor); + } + } + +}; + +mxCellRenderer.registerShape(mxShapeMockupHorTabBar.prototype.cst.SHAPE_HOR_TAB_BAR, mxShapeMockupHorTabBar); + +//********************************************************************************************************************************************************** +//Vertical Tab Bar (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +//TODO tab widths are fixed, so tab text length is a bit of an issue. Cannot be fixed while we use labels for tab names +function mxShapeMockupVerTabBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupVerTabBar, mxShape); + +mxShapeMockupVerTabBar.prototype.cst = { + BLOCK : 'block', + ROUND : 'round', + TEXT_SIZE : 'textSize', + TAB_NAMES : 'tabs', + TAB_STYLE : 'tabStyle', + STYLE_FILLCOLOR2 : 'fillColor2', + TEXT_COLOR : 'textColor', + SEL_TEXT_COLOR : 'textColor2', + SHAPE_VER_TAB_BAR : 'mxgraph.mockup.containers.verTabBar' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupVerTabBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var fontSize = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.TEXT_SIZE, '17').toString(); + var tabNames = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.TAB_NAMES, 'Tab 1,+Tab 2,Tab 3').toString().split(','); + + var tabH = fontSize * 1.5; + var startOffset = 10; + var tabOffset = 5; + var labelOffset = 10; + var tabCount = tabNames.length; + var rSize = 5; + var labelWidths = new Array(); + var selectedTab = -1; + for (var i = 0; i < tabCount; i++) + { + var currLabel = tabNames[i]; + + if(currLabel.charAt(0) === '+') + { + currLabel = currLabel.substring(1); + selectedTab = i; + } + + var currW = mxUtils.getSizeForString(currLabel, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currW === 0) + { + labelWidths[i] = 42; + } + else + { + labelWidths[i] = currW; + } + } + + var tabW = 2 * labelOffset + Math.max.apply(Math, labelWidths); + var minW = tabW + rSize; + w = Math.max(w, minW); + h = Math.max(h, 2 * startOffset + tabCount * tabH + (tabCount - 1) * tabOffset); + + c.translate(x, y); + + this.background(c, w, h, rSize, tabW); + c.setShadow(false); + this.backTabs(c, w, h, rSize, tabH, tabW, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab); + this.focusTab(c, w, h, rSize, tabH, tabW, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab); + this.tabText(c, w, h, rSize, tabH, tabW, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab, tabNames); +}; + +mxShapeMockupVerTabBar.prototype.background = function(c, w, h, rSize, tabW) +{ + c.begin(); + c.moveTo(tabW + rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, tabW, h - rSize); + c.lineTo(tabW, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, tabW + rSize, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupVerTabBar.prototype.backTabs = function(c, w, h, rSize, tabH, tabW, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab) +{ + var tabStyle = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.TAB_STYLE, mxShapeMockupVerTabBar.prototype.cst.BLOCK); + + var currH = startOffset; + + for (var i=0; i < tabCount; i++) + { + if (selectedTab !== i) + { + if (tabStyle === mxShapeMockupVerTabBar.prototype.cst.BLOCK) + { + c.rect(0, currH, tabW, tabH); + } + else if (tabStyle === mxShapeMockupVerTabBar.prototype.cst.ROUND) + { + c.begin(); + c.moveTo(tabW, currH + tabH + rSize); + c.arcTo(rSize, rSize, 0, 0, 0, tabW - rSize, currH + tabH); + c.lineTo(rSize, currH + tabH); + c.arcTo(rSize, rSize, 0, 0, 1, 0, currH + tabH - rSize); + c.lineTo(0, currH + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, currH); + c.lineTo(tabW - rSize, currH); + c.arcTo(rSize, rSize, 0, 0, 0, tabW, currH - rSize); + } + + c.fillAndStroke(); + } + + currH = currH + tabH + tabOffset; + } +}; + +mxShapeMockupVerTabBar.prototype.focusTab = function(c, w, h, rSize, tabH, tabW, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab) +{ + var tabStyle = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.TAB_STYLE, mxShapeMockupVerTabBar.prototype.cst.BLOCK); + var selectedFill = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.STYLE_FILLCOLOR2, '#008cff'); + + if (selectedTab !== -1) + { + + var currH = startOffset + (tabH + tabOffset) * selectedTab; + c.setStrokeColor(selectedFill); + c.setFillColor(selectedFill); + + if (tabStyle === mxShapeMockupVerTabBar.prototype.cst.BLOCK) + { + c.begin(); + c.moveTo(tabW + rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, tabW, h - rSize); + c.lineTo(tabW, currH + tabH); + c.lineTo(0, currH + tabH); + c.lineTo(0, currH); + c.lineTo(tabW, currH); + c.lineTo(tabW, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, tabW + rSize, 0); + c.close(); + } + else if (tabStyle === mxShapeMockupVerTabBar.prototype.cst.ROUND) + { + c.begin(); + c.moveTo(tabW + rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, tabW, h - rSize); + c.lineTo(tabW, currH + tabH + rSize); + c.arcTo(rSize, rSize, 0, 0, 0, tabW - rSize, currH + tabH); + c.lineTo(rSize, currH + tabH); + c.arcTo(rSize, rSize, 0, 0, 1, 0, currH + tabH - rSize); + c.lineTo(0, currH + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, currH); + c.lineTo(tabW - rSize, currH); + c.arcTo(rSize, rSize, 0, 0, 0, tabW, currH - rSize); + c.lineTo(tabW, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, tabW + rSize, 0); + c.close(); + } + + c.fillAndStroke(); + } + +}; + +mxShapeMockupVerTabBar.prototype.tabText = function(c, w, h, rSize, tabH, tabW, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab, tabNames) +{ + var fontColor = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.TEXT_COLOR, '#666666'); + var selFontColor = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.SEL_TEXT_COLOR, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupVerTabBar.prototype.cst.TEXT_SIZE, '17').toString(); + + c.setFontColor(fontColor); + c.setFontSize(fontSize); + + var currH = startOffset; + + for (var i=0; i < tabCount; i++) + { + var currLabel = tabNames[i]; + + if (i === selectedTab) + { + c.setFontColor(selFontColor); + } + + if (currLabel.charAt(0) === '+') + { + currLabel = currLabel.substring(1); + } + + c.text(tabW * 0.5, currH + tabH * 0.5, 0, 0, currLabel, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + currH = currH + tabH + tabOffset; + + if (i === selectedTab) + { + c.setFontColor(fontColor); + } + } + +}; + +mxCellRenderer.registerShape(mxShapeMockupVerTabBar.prototype.cst.SHAPE_VER_TAB_BAR, mxShapeMockupVerTabBar); + +//********************************************************************************************************************************************************** +//Alert Box (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupAlertBox(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupAlertBox, mxShape); + +mxShapeMockupAlertBox.prototype.cst = { + MAIN_TEXT : 'mainText', + SUB_TEXT : 'subText', + BUTTON_TEXT : 'buttonText', + TEXT_SIZE : 'textSize', + TEXT_COLOR : 'textColor', + STROKE_COLOR2 : 'strokeColor2', + STROKE_COLOR3 : 'strokeColor3', + SHAPE_ALERT_BOX : 'mxgraph.mockup.containers.alertBox' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupAlertBox.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var closeColor = mxUtils.getValue(this.style, mxShapeMockupAlertBox.prototype.cst.STROKE_COLOR2, '#008cff'); + var insideColor = mxUtils.getValue(this.style, mxShapeMockupAlertBox.prototype.cst.STROKE_COLOR3, '#c4c4c4'); + c.translate(x, y); + + h = Math.max(h, 75); + w = Math.max(w, 90); + + this.background(c, x, y, w, h, bgColor, frameColor); + c.setShadow(false); + this.foreground(c, x, y, w, h, frameColor, insideColor, closeColor); +}; + +mxShapeMockupAlertBox.prototype.background = function(c, x, y, w, h, bgColor, frameColor) +{ + c.setFillColor(bgColor); + c.setStrokeColor(frameColor); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupAlertBox.prototype.foreground = function(c, x, y, w, h, frameColor, insideColor, closeColor) +{ + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + + c.setStrokeColor(closeColor); + c.ellipse(w - 25, 5, 20, 20); + c.stroke(); + + c.setStrokeColor(insideColor); + c.begin(); + c.moveTo(0, 30); + c.lineTo(w, 30); + c.stroke(); + + //buttons + var windowTitle = mxUtils.getValue(this.style, mxShapeMockupAlertBox.prototype.cst.MAIN_TEXT, 'Window Title').toString(); + var subText = mxUtils.getValue(this.style, mxShapeMockupAlertBox.prototype.cst.SUB_TEXT, 'Sub Text').toString().split(','); + var buttonText = mxUtils.getValue(this.style, mxShapeMockupAlertBox.prototype.cst.BUTTON_TEXT, 'OK,Cancel').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupAlertBox.prototype.cst.TEXT_COLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupAlertBox.prototype.cst.TEXT_SIZE, '17').toString(); + + var buttonCount = buttonText.length; + var buttonOffset = 10; + var buttonW = (w - buttonOffset * (buttonCount + 1)) / buttonCount; + + c.setFontColor(fontColor); + c.setFontSize(fontSize); + c.text(10, 15, 0, 0, windowTitle, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + var currW = buttonOffset; + + for (var i = 0; i < buttonText.length; i++) + { + if (buttonText[i] !== '') + { + c.rect(currW, h - 10 - fontSize * 1.5, buttonW, fontSize * 1.5); + c.stroke(); + c.text(currW + buttonW * 0.5, h - 10 - fontSize * 0.75, 0, 0, buttonText[i], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currW = currW + buttonW + buttonOffset; + } + + + for (var i = 0; i < subText.length; i++) + { + c.text(w * 0.5, 30 + fontSize * (i * 1.5 + 0.75), 0, 0, subText[i], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupAlertBox.prototype.cst.SHAPE_ALERT_BOX, mxShapeMockupAlertBox); + +//********************************************************************************************************************************************************** +//Rounded rectangle (adjustable rounding) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupContainersRRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupContainersRRect, mxShape); + +mxShapeMockupContainersRRect.prototype.cst = { + RRECT : 'mxgraph.mockup.containers.rrect', + R_SIZE : 'rSize' +}; + +mxShapeMockupContainersRRect.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10}, +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupContainersRRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupContainersRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupContainersRRect.prototype.cst.RRECT, mxShapeMockupContainersRRect); + +//********************************************************************************************************************************************************** +//Anchor (a dummy shape without visuals used for anchoring) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupContainersAnchor(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupContainersAnchor, mxShape); + +mxShapeMockupContainersAnchor.prototype.cst = { + ANCHOR : 'mxgraph.mockup.containers.anchor' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupContainersAnchor.prototype.paintVertexShape = function(c, x, y, w, h) +{ +}; + +mxCellRenderer.registerShape(mxShapeMockupContainersAnchor.prototype.cst.ANCHOR, mxShapeMockupContainersAnchor); + +//********************************************************************************************************************************************************** +//Top Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupContrainersTopButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupContrainersTopButton, mxShape); + +mxShapeMockupContrainersTopButton.prototype.cst = { + TOP_BUTTON : 'mxgraph.mockup.containers.topButton', + R_SIZE : 'rSize' +}; + +mxShapeMockupContrainersTopButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10}, +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupContrainersTopButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupContrainersTopButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupContrainersTopButton.prototype.cst.TOP_BUTTON, mxShapeMockupContrainersTopButton); + +//********************************************************************************************************************************************************** +//Left Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupContainersLeftButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupContainersLeftButton, mxShape); + +mxShapeMockupContainersLeftButton.prototype.cst = { + LEFT_BUTTON : 'mxgraph.mockup.containers.leftButton', + R_SIZE : 'rSize' +}; + +mxShapeMockupContainersLeftButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10}, +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupContainersLeftButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupContainersLeftButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupContainersLeftButton.prototype.cst.LEFT_BUTTON, mxShapeMockupContainersLeftButton); + +//********************************************************************************************************************************************************** +//rect with margins +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupContainersMarginRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupContainersMarginRect, mxShape); + +mxShapeMockupContainersMarginRect.prototype.cst = { + SHAPE_MARGIN_RECT : 'mxgraph.mockup.containers.marginRect', + MARGIN : 'rectMargin', + MARGIN_TOP : 'rectMarginTop', + MARGIN_LEFT : 'rectMarginLeft', + MARGIN_BOTTOM : 'rectMarginBottom', + MARGIN_RIGHT : 'rectMarginRight' +}; + +mxShapeMockupContainersMarginRect.prototype.customProperties = [ + {name: 'rectMargin', dispName: 'Global Margin', type: 'float', min:0, defVal:0}, + {name: 'rectMarginTop', dispName: 'Top Margin', type: 'float', min:0, defVal:0}, + {name: 'rectMarginLeft', dispName: 'Left Margin', type: 'float', min:0, defVal:0}, + {name: 'rectMarginBottom', dispName: 'Bottom Margin', type: 'float', min:0, defVal:0}, + {name: 'rectMarginRight', dispName: 'Right Margin', type: 'float', min:0, defVal:0} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupContainersMarginRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeMockupContainersMarginRect.prototype.background = function(c, x, y, w, h, state) +{ + var margin = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect.prototype.cst.MARGIN, '0')); + var marginTop = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect.prototype.cst.MARGIN_TOP, '0')); + var marginLeft = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect.prototype.cst.MARGIN_LEFT, '0')); + var marginBottom = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect.prototype.cst.MARGIN_BOTTOM, '0')); + var marginRight = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect.prototype.cst.MARGIN_RIGHT, '0')); + + var x1 = margin + marginLeft; + var y1 = margin + marginTop; + var w1 = w - marginRight - x1 - margin; + var h1 = h - marginBottom - y1 - margin; + + if (w1 >0 && h1 > 0) + { + c.begin(); + c.roundrect(x1, y1, w1, h1, 10, 10); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupContainersMarginRect.prototype.cst.SHAPE_MARGIN_RECT, mxShapeMockupContainersMarginRect); + +//********************************************************************************************************************************************************** +//rect with margins (not rounded) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupContainersMarginRect2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupContainersMarginRect2, mxShape); + +mxShapeMockupContainersMarginRect2.prototype.cst = { + SHAPE_MARGIN_RECT : 'mxgraph.mockup.containers.marginRect2', + MARGIN : 'rectMargin', + MARGIN_TOP : 'rectMarginTop', + MARGIN_LEFT : 'rectMarginLeft', + MARGIN_BOTTOM : 'rectMarginBottom', + MARGIN_RIGHT : 'rectMarginRight' +}; + +mxShapeMockupContainersMarginRect2.prototype.customProperties = [ + {name: 'rectMargin', dispName: 'Global Margin', type: 'float', min:0, defVal:0}, + {name: 'rectMarginTop', dispName: 'Top Margin', type: 'float', min:0, defVal:0}, + {name: 'rectMarginLeft', dispName: 'Left Margin', type: 'float', min:0, defVal:0}, + {name: 'rectMarginBottom', dispName: 'Bottom Margin', type: 'float', min:0, defVal:0}, + {name: 'rectMarginRight', dispName: 'Right Margin', type: 'float', min:0, defVal:0} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupContainersMarginRect2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeMockupContainersMarginRect2.prototype.background = function(c, x, y, w, h, state) +{ + var margin = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect2.prototype.cst.MARGIN, '0')); + var marginTop = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect2.prototype.cst.MARGIN_TOP, '0')); + var marginLeft = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect2.prototype.cst.MARGIN_LEFT, '0')); + var marginBottom = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect2.prototype.cst.MARGIN_BOTTOM, '0')); + var marginRight = parseFloat(mxUtils.getValue(this.style, mxShapeMockupContainersMarginRect2.prototype.cst.MARGIN_RIGHT, '0')); + + var x1 = margin + marginLeft; + var y1 = margin + marginTop; + var w1 = w - marginRight - x1 - margin; + var h1 = h - marginBottom - y1 - margin; + + if (w1 >0 && h1 > 0) + { + c.begin(); + c.rect(x1, y1, w1, h1); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupContainersMarginRect2.prototype.cst.SHAPE_MARGIN_RECT, mxShapeMockupContainersMarginRect2); + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupForms.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupForms.js new file mode 100644 index 0000000000000..48bda8f615ed0 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupForms.js @@ -0,0 +1,2503 @@ +/** + * $Id: mxMockupForms.js,v 1.11 2013/05/24 05:21:33 mate Exp $ + * Copyright (c) 2006-2010, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Checkbox Group (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupCheckboxGroup(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupCheckboxGroup, mxShape); + +mxShapeMockupCheckboxGroup.prototype.cst = { + MAIN_TEXT : 'mainText', + TEXT_SIZE : 'textSize', + TEXT_COLOR : 'textColor', + SELECTED : '+', // must be 1 char + SHAPE_CHECKBOX_GROUP : 'mxgraph.mockup.forms.checkboxGroup' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupCheckboxGroup.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var fontColor = mxUtils.getValue(this.style, mxShapeMockupCheckboxGroup.prototype.cst.TEXT_COLOR, '#666666,#008cff').toString().split(','); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupCheckboxGroup.prototype.cst.TEXT_SIZE, '17').toString(); + var optionText = mxUtils.getValue(this.style, mxShapeMockupCheckboxGroup.prototype.cst.MAIN_TEXT, 'Option 1').toString().split(','); + var optionNum = optionText.length; + var buttonSize = 15; + var lineH = Math.max(fontSize * 1.5, buttonSize); + var maxTextWidth = 0; + var selected = -1; + var labelOffset = 2.5; + var minH = optionNum * lineH; + var trueH = Math.max(h, minH); + + //get min width and selected option + for (var i = 0; i < optionNum; i++) + { + var currText = optionText[i]; + + if(currText.charAt(0) === mxShapeMockupCheckboxGroup.prototype.cst.SELECTED) + { + currText = optionText[i].substring(1); + selected = i; + } + + var currWidth = mxUtils.getSizeForString(currText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxTextWidth) + { + maxTextWidth = currWidth; + } + } + + var minW = 2 * labelOffset + maxTextWidth + 2 * buttonSize; + var trueW = Math.max(w, minW); + + //draw the background + c.rect(0, 0, trueW, trueH); + c.fillAndStroke(); + c.setShadow(false); + + c.setFontSize(fontSize); + + for (var i = 0; i < optionNum; i++) + { + var currHeight = (i * lineH + lineH * 0.5) * trueH / minH; + + var currText = optionText[i]; + + if(currText.charAt(0) === mxShapeMockupCheckboxGroup.prototype.cst.SELECTED) + { + c.setFontColor(fontColor[1]); + currText = optionText[i].substring(1); + selected = i; + } + else + { + c.setFontColor(fontColor[0]); + } + + c.text(buttonSize * 2 + labelOffset, currHeight, 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + var iconX = buttonSize * 0.5; + var iconY = currHeight - buttonSize * 0.5; + c.setFillColor('#dddddd'); + c.setStrokeColor('#999999'); + + if (selected === i) + { + c.setGradient('#aaaaaa', '#666666', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + c.setStrokeColor('#333333'); + c.begin(); + c.moveTo(iconX + buttonSize * 0.25, iconY + buttonSize * 0.5); + c.lineTo(iconX + buttonSize * 0.5, iconY + buttonSize * 0.75); + c.lineTo(iconX + buttonSize * 0.75, iconY + buttonSize * 0.25); + c.stroke(); + } + else + { + c.setGradient('#eeeeee', '#cccccc', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + } + + selected = -1; + } +}; + +mxCellRenderer.registerShape(mxShapeMockupCheckboxGroup.prototype.cst.SHAPE_CHECKBOX_GROUP, mxShapeMockupCheckboxGroup); + +//********************************************************************************************************************************************************** +//Radio Button Group +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupRadioGroup(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupRadioGroup, mxShape); + +mxShapeMockupRadioGroup.prototype.cst = { + MAIN_TEXT : 'mainText', + TEXT_SIZE : 'textSize', + TEXT_COLOR : 'textColor', + SELECTED : '+', // must be 1 char + SHAPE_RADIO_GROUP : 'mxgraph.mockup.forms.radioGroup' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupRadioGroup.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var fontColor = mxUtils.getValue(this.style, mxShapeMockupRadioGroup.prototype.cst.TEXT_COLOR, '#666666,#008cff').toString().split(','); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupRadioGroup.prototype.cst.TEXT_SIZE, '17').toString(); + var optionText = mxUtils.getValue(this.style, mxShapeMockupRadioGroup.prototype.cst.MAIN_TEXT, 'Option 1').toString().split(','); + var optionNum = optionText.length; + var buttonSize = 15; + var lineH = Math.max(fontSize * 1.5, buttonSize); + var maxTextWidth = 0; + var selected = -1; + var labelOffset = 2.5; + var minH = optionNum * lineH; + var trueH = Math.max(h, minH); + + //get min width and selected option + for (var i = 0; i < optionNum; i++) + { + var currText = optionText[i]; + + if(currText.charAt(0) === mxShapeMockupRadioGroup.prototype.cst.SELECTED) + { + currText = optionText[i].substring(1); + selected = i; + } + + var currWidth = mxUtils.getSizeForString(currText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxTextWidth) + { + maxTextWidth = currWidth; + } + } + + var minW = 2 * labelOffset + maxTextWidth + 2 * buttonSize; + var trueW = Math.max(w, minW); + + //draw the background + c.rect(0, 0, trueW, trueH); + c.fillAndStroke(); + c.setShadow(false); + + c.setFontSize(fontSize); + + for (var i = 0; i < optionNum; i++) + { + var currHeight = (i * lineH + lineH * 0.5) * trueH / minH; + + var currText = optionText[i]; + + if(currText.charAt(0) === mxShapeMockupRadioGroup.prototype.cst.SELECTED) + { + c.setFontColor(fontColor[1]); + currText = optionText[i].substring(1); + selected = i; + } + else + { + c.setFontColor(fontColor[0]); + } + + c.text(buttonSize * 2 + labelOffset, currHeight, 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + var iconX = buttonSize * 0.5; + var iconY = currHeight - buttonSize * 0.5; + c.setStrokeColor('#999999'); + + if (selected === i) + { + c.setGradient('#aaaaaa', '#666666', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + c.setFillColor('#333333'); + c.setStrokeColor('#333333'); + c.ellipse(iconX + buttonSize * 0.25, iconY + buttonSize * 0.25, buttonSize * 0.5, buttonSize * 0.5); + c.fillAndStroke(); + } + else + { + c.setGradient('#eeeeee', '#cccccc', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + } + } +}; + +mxCellRenderer.registerShape(mxShapeMockupRadioGroup.prototype.cst.SHAPE_RADIO_GROUP, mxShapeMockupRadioGroup); + +//********************************************************************************************************************************************************** +//Color Picker +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupColorPicker(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupColorPicker, mxShape); + +mxShapeMockupColorPicker.prototype.cst = { + COLOR : 'chosenColor', + SHAPE_COLOR_PICKER : 'mxgraph.mockup.forms.colorPicker' +}; + +mxShapeMockupColorPicker.prototype.customProperties = [ + {name: 'chosenColor', dispName: 'Current Color', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupColorPicker.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var chosenColor = mxUtils.getValue(this.style, mxShapeMockupColorPicker.prototype.cst.COLOR, '#aaddff'); + + c.translate(x, y); + + c.setStrokeColor('#999999'); + c.roundrect(0, 0, w, h, w * 0.05, h * 0.05); + c.fillAndStroke(); + c.setShadow(false); + + c.setFillColor(chosenColor); + c.rect(w * 0.1, h * 0.1, w * 0.8, h * 0.8); + c.fill(); + + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(w * 0.75, h * 0.75); + c.lineTo(w * 0.75, h); + c.lineTo(w * 0.95, h); + c.arcTo(w * 0.05, h * 0.05, 0, 0, 0, w, h * 0.95); + c.lineTo(w, h * 0.75); + c.close(); + c.fill(); + + c.setFillColor('#999999'); + c.begin(); + c.moveTo(w * 0.77, h * 0.77); + c.lineTo(w * 0.875, h * 0.98); + c.lineTo(w * 0.98, h * 0.77); + c.close(); + c.fill(); + + c.roundrect(0, 0, w, h, w * 0.05, h * 0.05); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupColorPicker.prototype.cst.SHAPE_COLOR_PICKER, mxShapeMockupColorPicker); + +//********************************************************************************************************************************************************** +//Combo box +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupComboBox(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupComboBox, mxShape); + +mxShapeMockupComboBox.prototype.cst = { + MAIN_TEXT : 'mainText', + FILL_COLOR2 : 'fillColor2', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize', + SHAPE_COMBO_BOX : 'mxgraph.mockup.forms.comboBox' +}; + +mxShapeMockupComboBox.prototype.customProperties = [ + {name: 'fillColor2', dispName: 'Fill2 Color', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupComboBox.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); + this.mainText(c, x, y, w, h); +}; + +mxShapeMockupComboBox.prototype.background = function(c, x, y, w, h) +{ + c.setFillColor('#ffffff'); + c.roundrect(0, 0, w, h, 5, 5); + c.fillAndStroke(); +}; + +mxShapeMockupComboBox.prototype.foreground = function(c, x, y, w, h) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupComboBox.prototype.cst.FILL_COLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, w - 30, 0, 30, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(w - 30, 0); + c.lineTo(w - 5, 0); + c.arcTo(5, 5, 0, 0, 1, w, 5); + c.lineTo(w, h - 5); + c.arcTo(5, 5, 0, 0, 1, w - 5, h); + c.lineTo(w - 30, h); + c.close(); + c.fillAndStroke(); + + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(w - 22, h * 0.5 - 5); + c.lineTo(w - 15, h * 0.5 + 5); + c.lineTo(w - 8, h * 0.5 - 5); + c.fill(); +}; + +mxShapeMockupComboBox.prototype.mainText = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxShapeMockupComboBox.prototype.cst.MAIN_TEXT, 'Main Text'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupComboBox.prototype.cst.TEXT_COLOR, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupComboBox.prototype.cst.TEXT_SIZE, '17').toString(); + + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupComboBox.prototype.cst.SHAPE_COMBO_BOX, mxShapeMockupComboBox); + +//********************************************************************************************************************************************************** +//Spinner +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupSpinner(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupSpinner, mxShape); + +mxShapeMockupSpinner.prototype.cst = { + LAYOUT : 'spinLayout', + SPINNER_STYLE : 'spinStyle', + ADJ_STYLE : 'adjStyle', + LAYOUT_RIGHT : 'right', + LAYOUT_LEFT : 'left', + LAYOUT_TOP : 'top', + LAYOUT_BOTTOM : 'bottom', + LAYOUT_VERTICAL : 'vertical', + LAYOUT_HORIZONTAL : 'horizontal', + SPINNER_MERGED : 'merged', + SPINNER_NORMAL : 'normal', + ADJ_TRIANGLE : 'triangle', + ADJ_PLUSMINUS : 'plusMinus', + ADJ_ARROW : 'arrow', + + MAIN_TEXT : 'mainText', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize', + SHAPE_SPINNER : 'mxgraph.mockup.forms.spinner' +}; + +mxShapeMockupSpinner.prototype.customProperties = [ + {name: 'spinLayout', dispName: 'Layout', type: 'enum', + enumList: [{val: 'right', dispName: 'Right'}, {val: 'left', dispName: 'Left'}, {val: 'top', dispName: 'Top'}, {val: 'bottom', dispName: 'Bottom'}, {val: 'vertical', dispName: 'Vertical'}, {val: 'horizontal', dispName: 'Horizontal'}] + }, + {name: 'spinStyle', dispName: 'Spinner Style', type: 'enum', + enumList: [{val: 'merged', dispName: 'Merged'}, {val: 'normal', dispName: 'Normal'}] + }, + {name: 'adjStyle', dispName: 'Button Style', type: 'enum', + enumList: [{val: 'triangle', dispName: 'Triangle'}, {val: 'plusMinus', dispName: '+/-'}, {val: 'arrow', dispName: 'Arrow'}] + } +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupSpinner.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var spinnerLayout = mxUtils.getValue(this.style, mxShapeMockupSpinner.prototype.cst.LAYOUT, mxShapeMockupSpinner.prototype.cst.LAYOUT_RIGHT); + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h, spinnerLayout); + this.mainText(c, w, h, spinnerLayout); +}; + +mxShapeMockupSpinner.prototype.background = function(c, w, h) +{ + c.setFillColor('#ffffff'); + c.roundrect(0, 0, w, h, 10, 10); + c.fillAndStroke(); +}; + +mxShapeMockupSpinner.prototype.foreground = function(c, w, h, spinnerLayout) +{ + + var spinnerStyle = mxUtils.getValue(this.style, mxShapeMockupSpinner.prototype.cst.SPINNER_STYLE, mxShapeMockupSpinner.prototype.cst.SPINNER_NORMAL); + var adjStyle = mxUtils.getValue(this.style, mxShapeMockupSpinner.prototype.cst.ADJ_STYLE, mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + + c.setFillColor(fillColor); + + if (spinnerStyle === mxShapeMockupSpinner.prototype.cst.SPINNER_NORMAL) + { + if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_RIGHT) + { + c.begin(); + c.moveTo(w - 20, 0); + c.lineTo(w - 20, h); + c.moveTo(w - 20, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_LEFT) + { + c.begin(); + c.moveTo(20, 0); + c.lineTo(20, h); + c.moveTo(20, h * 0.5); + c.lineTo(0, h * 0.5); + c.stroke(); + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_TOP) + { + c.begin(); + c.moveTo(0, 15); + c.lineTo(w, 15); + c.moveTo(w * 0.5, 15); + c.lineTo(w * 0.5, 0); + c.stroke(); + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_BOTTOM) + { + c.begin(); + c.moveTo(0, h - 15); + c.lineTo(w, h - 15); + c.moveTo(w * 0.5, h - 15); + c.lineTo(w * 0.5, h); + c.stroke(); + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_VERTICAL) + { + c.begin(); + c.moveTo(0, 15); + c.lineTo(w, 15); + c.moveTo(0, h - 15); + c.lineTo(w, h - 15); + c.stroke(); + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_HORIZONTAL) + { + c.begin(); + c.moveTo(20, 0); + c.lineTo(20, h); + c.moveTo(w - 20, 0); + c.lineTo(w - 20, h); + c.stroke(); + } + } + + c.setStrokeColor(fillColor); + + if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_RIGHT) + { + if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) + { + c.begin(); + c.moveTo(w - 14, h * 0.25 + 4.5); + c.lineTo(w - 10, h * 0.25 - 2.5); + c.lineTo(w - 6, h * 0.25 + 4.5); + c.close(); + c.fillAndStroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) + { + c.begin(); + c.moveTo(w - 10, h * 0.25 - 4); + c.lineTo(w - 10, h * 0.25 + 4); + c.moveTo(w - 14, h * 0.25); + c.lineTo(w - 6, h * 0.25); + c.stroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) + { + c.begin(); + c.moveTo(w - 14, h * 0.25 + 1.5); + c.lineTo(w - 10, h * 0.25 - 2.5); + c.lineTo(w - 6, h * 0.25 + 1.5); + c.close(); + c.moveTo(w - 10, h * 0.25 + 4.5); + c.lineTo(w - 10, h * 0.25 - 2.5); + c.fillAndStroke(); + } + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_LEFT) + { + if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) + { + c.begin(); + c.moveTo(14, h * 0.25 + 4.5); + c.lineTo(10, h * 0.25 - 2.5); + c.lineTo(6, h * 0.25 + 4.5); + c.close(); + c.fillAndStroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) + { + c.begin(); + c.moveTo(10, h * 0.25 - 4); + c.lineTo(10, h * 0.25 + 4); + c.moveTo(14, h * 0.25); + c.lineTo(6, h * 0.25); + c.stroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) + { + c.begin(); + c.moveTo(14, h * 0.25 + 1.5); + c.lineTo(10, h * 0.25 - 2.5); + c.lineTo(6, h * 0.25 + 1.5); + c.close(); + c.moveTo(10, h * 0.25 + 4.5); + c.lineTo(10, h * 0.25 - 2.5); + c.fillAndStroke(); + } + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_TOP) + { + if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) + { + c.begin(); + c.moveTo(w * 0.75 + 4, 12); + c.lineTo(w * 0.75, 5); + c.lineTo(w * 0.75 - 4, 12); + c.close(); + c.fillAndStroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) + { + c.begin(); + c.moveTo(w * 0.75, 3.5); + c.lineTo(w * 0.75, 11.5); + c.moveTo(w * 0.75 + 4, 7.5); + c.lineTo(w * 0.75 - 4, 7.5); + c.stroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) + { + c.begin(); + c.moveTo(w * 0.75 + 4, 9); + c.lineTo(w * 0.75, 5); + c.lineTo(w * 0.75 - 4, 9); + c.close(); + c.moveTo(w * 0.75, 12); + c.lineTo(w * 0.75, 5); + c.fillAndStroke(); + } + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_BOTTOM) + { + if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) + { + c.begin(); + c.moveTo(w * 0.75 + 4, h - 5); + c.lineTo(w * 0.75, h - 12); + c.lineTo(w * 0.75 - 4, h - 5); + c.close(); + c.fillAndStroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) + { + c.begin(); + c.moveTo(w * 0.75, h - 3.5); + c.lineTo(w * 0.75, h - 11.5); + c.moveTo(w * 0.75 + 4, h - 7.5); + c.lineTo(w * 0.75 - 4, h - 7.5); + c.stroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) + { + c.begin(); + c.moveTo(w * 0.75 + 4, h - 6); + c.lineTo(w * 0.75, h - 10); + c.lineTo(w * 0.75 - 4, h - 6); + c.close(); + c.moveTo(w * 0.75, h - 3); + c.lineTo(w * 0.75, h - 10); + c.fillAndStroke(); + } + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_VERTICAL) + { + if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) + { + c.begin(); + c.moveTo(w * 0.5 + 4, 12); + c.lineTo(w * 0.5, 5); + c.lineTo(w * 0.5 - 4, 12); + c.close(); + c.fillAndStroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) + { + c.begin(); + c.moveTo(w * 0.5, 3.5); + c.lineTo(w * 0.5, 11.5); + c.moveTo(w * 0.5 + 4, 7.5); + c.lineTo(w * 0.5 - 4, 7.5); + c.stroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) + { + c.begin(); + c.moveTo(w * 0.5 + 4, 9); + c.lineTo(w * 0.5, 5); + c.lineTo(w * 0.5 - 4, 9); + c.close(); + c.moveTo(w * 0.5, 12); + c.lineTo(w * 0.5, 5); + c.fillAndStroke(); + } + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_HORIZONTAL) + { + if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) + { + c.begin(); + c.moveTo(w - 6, h * 0.5 + 4.5); + c.lineTo(w - 10, h * 0.5 - 2.5); + c.lineTo(w - 14, h * 0.5 + 4.5); + c.close(); + c.fillAndStroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) + { + c.begin(); + c.moveTo(w - 10, h * 0.5 - 4); + c.lineTo(w - 10, h * 0.5 + 4); + c.moveTo(w - 14, h * 0.5); + c.lineTo(w - 6, h * 0.5); + c.stroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) + { + c.begin(); + c.moveTo(w - 14, h * 0.5 + 1.5); + c.lineTo(w - 10, h * 0.5 - 2.5); + c.lineTo(w - 6, h * 0.5 + 1.5); + c.close(); + c.moveTo(w - 10, h * 0.5 + 4.5); + c.lineTo(w - 10, h * 0.5 - 2.5); + c.fillAndStroke(); + } + } + + if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_RIGHT) + { + if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) + { + c.begin(); + c.moveTo(w - 14, h * 0.75 - 4.5); + c.lineTo(w - 10, h * 0.75 + 2.5); + c.lineTo(w - 6, h * 0.75 - 4.5); + c.close(); + c.fillAndStroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) + { + c.begin(); + c.moveTo(w - 14, h * 0.75); + c.lineTo(w - 6, h * 0.75); + c.stroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) + { + c.begin(); + c.moveTo(w - 14, h * 0.75 - 1.5); + c.lineTo(w - 10, h * 0.75 + 2.5); + c.lineTo(w - 6, h * 0.75 - 1.5); + c.close(); + c.moveTo(w - 10, h * 0.75 - 4.5); + c.lineTo(w - 10, h * 0.75 + 2.5); + c.fillAndStroke(); + } + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_LEFT) + { + if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) + { + c.begin(); + c.moveTo(14, h * 0.75 - 4.5); + c.lineTo(10, h * 0.75 + 2.5); + c.lineTo(6, h * 0.75 - 4.5); + c.close(); + c.fillAndStroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) + { + c.begin(); + c.moveTo(14, h * 0.75); + c.lineTo(6, h * 0.75); + c.stroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) + { + c.begin(); + c.moveTo(14, h * 0.75 - 1.5); + c.lineTo(10, h * 0.75 + 2.5); + c.lineTo(6, h * 0.75 - 1.5); + c.close(); + c.moveTo(10, h * 0.75 - 4.5); + c.lineTo(10, h * 0.75 + 2.5); + c.fillAndStroke(); + } + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_TOP) + { + if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) + { + c.begin(); + c.moveTo(w * 0.25 + 4, 5); + c.lineTo(w * 0.25, 12); + c.lineTo(w * 0.25 - 4, 5); + c.close(); + c.fillAndStroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) + { + c.begin(); + c.moveTo(w * 0.25 + 4, 7.5); + c.lineTo(w * 0.25 - 4, 7.5); + c.stroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) + { + c.begin(); + c.moveTo(w * 0.25 + 4, 6); + c.lineTo(w * 0.25, 10); + c.lineTo(w * 0.25 - 4, 6); + c.close(); + c.moveTo(w * 0.25, 3); + c.lineTo(w * 0.25, 10); + c.fillAndStroke(); + } + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_BOTTOM) + { + if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) + { + c.begin(); + c.moveTo(w * 0.25 + 4, h - 12); + c.lineTo(w * 0.25, h - 5); + c.lineTo(w * 0.25 - 4, h - 12); + c.close(); + c.fillAndStroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) + { + c.begin(); + c.moveTo(w * 0.25 + 4, h - 7.5); + c.lineTo(w * 0.25 - 4, h - 7.5); + c.stroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) + { + c.begin(); + c.moveTo(w * 0.25 + 4, h - 9); + c.lineTo(w * 0.25, h - 5); + c.lineTo(w * 0.25 - 4, h - 9); + c.close(); + c.moveTo(w * 0.25, h - 12); + c.lineTo(w * 0.25, h - 5); + c.fillAndStroke(); + } + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_VERTICAL) + { + if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) + { + c.begin(); + c.moveTo(w * 0.5 + 4, h - 12); + c.lineTo(w * 0.5, h - 5); + c.lineTo(w * 0.5 - 4, h - 12); + c.close(); + c.fillAndStroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) + { + c.begin(); + c.moveTo(w * 0.5 + 4, h - 7.5); + c.lineTo(w * 0.5 - 4, h - 7.5); + c.stroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) + { + c.begin(); + c.moveTo(w * 0.5 + 4, h - 9); + c.lineTo(w * 0.5, h - 5); + c.lineTo(w * 0.5 - 4, h - 9); + c.close(); + c.moveTo(w * 0.5, h - 12); + c.lineTo(w * 0.5, h - 5); + c.fillAndStroke(); + } + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_HORIZONTAL) + { + if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_TRIANGLE) + { + c.begin(); + c.moveTo(6, h * 0.5 - 4.5); + c.lineTo(10, h * 0.5 + 2.5); + c.lineTo(14, h * 0.5 - 4.5); + c.close(); + c.fillAndStroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_PLUSMINUS) + { + c.begin(); + c.moveTo(14, h * 0.5); + c.lineTo(6, h * 0.5); + c.stroke(); + } + else if(adjStyle === mxShapeMockupSpinner.prototype.cst.ADJ_ARROW) + { + c.begin(); + c.moveTo(14, h * 0.5 - 1.5); + c.lineTo(10, h * 0.5 + 2.5); + c.lineTo(6, h * 0.5 - 1.5); + c.close(); + c.moveTo(10, h * 0.5 - 4.5); + c.lineTo(10, h * 0.5 + 2.5); + c.fillAndStroke(); + } + } +}; + +mxShapeMockupSpinner.prototype.mainText = function(c, w, h, spinnerLayout) +{ + var spinnerText = mxUtils.getValue(this.style, mxShapeMockupSpinner.prototype.cst.MAIN_TEXT, '100').toString(); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupSpinner.prototype.cst.TEXT_SIZE, '17'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupSpinner.prototype.cst.TEXT_COLOR, '#666666'); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + + if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_RIGHT) + { + c.text((w - 20) * 0.5, h * 0.5, 0, 0, spinnerText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_LEFT) + { + c.text((w + 20) * 0.5, h * 0.5, 0, 0, spinnerText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_TOP) + { + c.text(w * 0.5, (h + 15) * 0.5, 0, 0, spinnerText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_BOTTOM) + { + c.text(w * 0.5, (h - 15) * 0.5, 0, 0, spinnerText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_VERTICAL) + { + c.text(w * 0.5, h * 0.5, 0, 0, spinnerText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (spinnerLayout === mxShapeMockupSpinner.prototype.cst.LAYOUT_HORIZONTAL) + { + c.text(w * 0.5, h * 0.5, 0, 0, spinnerText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupSpinner.prototype.cst.SHAPE_SPINNER, mxShapeMockupSpinner); + +//********************************************************************************************************************************************************** +//Menu Bar (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupMenuBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupMenuBar, mxShape); + +mxShapeMockupMenuBar.prototype.cst = { + MAIN_TEXT : 'mainText', + SHAPE_MENU_BAR : 'mxgraph.mockup.forms.menuBar', + TEXT_COLOR : 'textColor', + TEXT_COLOR2 : 'textColor2', + STROKE_COLOR2 : 'strokeColor2', + FILL_COLOR2 : 'fillColor2', + SELECTED : '+', //must be 1 char + TEXT_SIZE : 'textSize' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupMenuBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var textStrings = mxUtils.getValue(this.style, mxShapeMockupMenuBar.prototype.cst.MAIN_TEXT, '+Menu 1, Menu 2, Menu 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupMenuBar.prototype.cst.TEXT_COLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxShapeMockupMenuBar.prototype.cst.TEXT_COLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupMenuBar.prototype.cst.TEXT_SIZE, '17').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var separatorColor = mxUtils.getValue(this.style, mxShapeMockupMenuBar.prototype.cst.STROKE_COLOR2, '#c4c4c4'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var selectedFillColor = mxUtils.getValue(this.style, mxShapeMockupMenuBar.prototype.cst.FILL_COLOR2, '#008cff'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var selectedButton = -1; + var rSize = 10; //rounding size + var labelOffset = 5; + + for (var i = 0; i < buttonNum; i++) + { + var buttonText = textStrings[i]; + + if(buttonText.charAt(0) === mxShapeMockupMenuBar.prototype.cst.SELECTED) + { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + buttonWidths[i] = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 20); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + + c.translate(x, y); + this.background(c, trueW, trueH, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton); + c.setShadow(false); + + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) + { + if (i === selectedButton) + { + c.setFontColor(selectedFontColor); + } + else + { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeMockupMenuBar.prototype.background = function(c, w, h, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton) +{ + //draw the frame + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.rect(0, 0, w, h); + c.fillAndStroke(); + + //draw the button separators + c.setStrokeColor(separatorColor); + c.begin(); + + for (var i = 1; i < buttonNum; i++) + { + if (i !== selectedButton && i !== (selectedButton + 1)) + { + var currWidth = 0; + + for (var j = 0; j < i; j++) + { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth = currWidth * w / minW; + c.moveTo(currWidth, 0); + c.lineTo(currWidth, h); + } + } + + c.stroke(); + + //draw the selected menu + if (selectedButton !== -1) + { + var buttonLeft = 0; + c.setFillColor(selectedFillColor); + + for (var i = 0; i < selectedButton; i++) + { + buttonLeft += buttonWidths[i] + 2 * labelOffset; + } + + buttonLeft = buttonLeft * w / minW; + var buttonRight = (buttonWidths[selectedButton] + 2 * labelOffset) * w / minW; + buttonRight += buttonLeft; + + c.rect(buttonLeft, 0, buttonRight - buttonLeft, h); + c.fill(); + } + + //draw the frame again, for a nicer effect + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.rect(0, 0, w, h); + c.stroke(); +}; + +mxShapeMockupMenuBar.prototype.buttonText = function(c, w, h, textString, buttonWidth, fontSize, minW, trueW) +{ + if(textString.charAt(0) === mxShapeMockupMenuBar.prototype.cst.SELECTED) + { + textString = textString.substring(1); + } + + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, h * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupMenuBar.prototype.cst.SHAPE_MENU_BAR, mxShapeMockupMenuBar); + +//********************************************************************************************************************************************************** +//Horizontal Slider +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupHorSlider(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupHorSlider, mxShape); + +mxShapeMockupHorSlider.prototype.cst = { + STYLE : 'sliderStyle', + SLIDER_BASIC : 'basic', + SLIDER_FANCY : 'fancy', + SLIDER_POS : 'sliderPos', + HANDLE_TRIANGLE : 'triangle', + HANDLE_CIRCLE : 'circle', + HANDLE_HANDLE : 'handle', + HANDLE_STYLE : 'handleStyle', + FILL_COLOR2 : 'fillColor2', + SHAPE_HOR_SLIDER : 'mxgraph.mockup.forms.horSlider' +}; + +mxShapeMockupHorSlider.prototype.customProperties = [ + {name: 'sliderStyle', dispName: 'Slider Style', type: 'enum', + enumList: [{val: 'basic', dispName: 'Basic'}, {val: 'fancy', dispName: 'Fancy'}] + }, + {name: 'handleStyle', dispName: 'Handle Style', type: 'enum', + enumList: [{val: 'triangle', dispName: 'Triangle'}, {val: 'circle', dispName: 'Circle'}, {val: 'handle', dispName: 'Handle'}] + }, + {name: 'sliderPos', dispName: 'Handle Position', type: 'float'}, + {name: 'fillColor2', dispName: 'Fill2 Color', type: 'color'}, +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupHorSlider.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var sliderStyle = mxUtils.getValue(this.style, mxShapeMockupHorSlider.prototype.cst.STYLE, mxShapeMockupHorSlider.prototype.cst.SLIDER_BASIC); + var rSize = 5; + + c.translate(x, y); + this.background(c, w, h, rSize, sliderStyle); + c.setShadow(false); + this.foreground(c, w, h, rSize, sliderStyle); + this.sliderPos = 20; +}; + +mxShapeMockupHorSlider.prototype.background = function(c, w, h, rSize, sliderStyle) +{ + + if (sliderStyle === mxShapeMockupHorSlider.prototype.cst.SLIDER_BASIC) + { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } + else if (sliderStyle === mxShapeMockupHorSlider.prototype.cst.SLIDER_FANCY) + { + c.roundrect(0, h * 0.5 - rSize, w, 2 * rSize, rSize, rSize); + c.fillAndStroke(); + } +}; + +mxShapeMockupHorSlider.prototype.foreground = function(c, w, h, rSize, sliderStyle) +{ + var sliderPos = mxUtils.getValue(this.style, mxShapeMockupHorSlider.prototype.cst.SLIDER_POS, '20'); + var handleStyle = mxUtils.getValue(this.style, mxShapeMockupHorSlider.prototype.cst.HANDLE_STYLE, mxShapeMockupHorSlider.prototype.cst.HANDLE_CIRCLE); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupHorSlider.prototype.cst.FILL_COLOR2, '#ddeeff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + sliderPos = Math.min(100, sliderPos); + sliderPos = Math.max(0, sliderPos); + + if (sliderStyle === mxShapeMockupHorSlider.prototype.cst.SLIDER_BASIC) + { + c.setStrokeColor(fillColor2); + var barCenterPos = w * sliderPos / 100; + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(barCenterPos, h * 0.5); + c.stroke(); + c.setStrokeColor(strokeColor); + } + else if (sliderStyle === mxShapeMockupHorSlider.prototype.cst.SLIDER_FANCY) + { + var barCenterPos = 10 + (w - 10) * sliderPos / 100; + c.setFillColor(fillColor2); + c.roundrect(0, h * 0.5 - rSize, barCenterPos, 2 * rSize, rSize, rSize); + c.fillAndStroke(); + c.setFillColor(fillColor); + } + + var handleCenterPos = 5 + (w - 10) * sliderPos / 100; + + if (handleStyle === mxShapeMockupHorSlider.prototype.cst.HANDLE_CIRCLE) + { + c.ellipse(handleCenterPos - 10, h * 0.5 - 10, 20, 20); + c.fillAndStroke(); + } + else if (handleStyle === mxShapeMockupHorSlider.prototype.cst.HANDLE_TRIANGLE) + { + c.begin(); + c.moveTo(handleCenterPos - 10, h * 0.5 + 10); + c.lineTo(handleCenterPos, h * 0.5 - 10); + c.lineTo(handleCenterPos + 10, h * 0.5 + 10); + c.close(); + c.fillAndStroke(); + } + else if (handleStyle === mxShapeMockupHorSlider.prototype.cst.HANDLE_HANDLE) + { + c.begin(); + c.moveTo(handleCenterPos - 7, h * 0.5 + 10); + c.lineTo(handleCenterPos - 7, h * 0.5); + c.lineTo(handleCenterPos, h * 0.5 - 10); + c.lineTo(handleCenterPos + 7, h * 0.5); + c.lineTo(handleCenterPos + 7, h * 0.5 + 10); + c.close(); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupHorSlider.prototype.cst.SHAPE_HOR_SLIDER, mxShapeMockupHorSlider); + +Graph.handleFactory[mxShapeMockupHorSlider.prototype.cst.SHAPE_HOR_SLIDER] = function(state) +{ + var handles = [Graph.createHandle(state, ['sliderPos'], function(bounds) + { + var sliderPos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'sliderPos', this.sliderPos)))); + + return new mxPoint(bounds.x + ((bounds.width - 10) * sliderPos / bounds.width) / 100 * bounds.width + 5, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['sliderPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 1000; + })]; + + return handles; +} + +//********************************************************************************************************************************************************** +//List Box (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupListBox(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupListBox, mxShape); + +mxShapeMockupListBox.prototype.cst = { + MAIN_TEXT : 'mainText', + SUB_TEXT : 'subText', + BUTTON_TEXT : 'buttonText', + TEXT_SIZE : 'textSize', + TEXT_COLOR : 'textColor', + STROKE_COLOR2 : 'strokeColor2', + STROKE_COLOR3 : 'strokeColor3', + SELECTED_COLOR : 'selectedColor', + SELECTED : '+', //must be 1 char + SHAPE_LIST_BOX : 'mxgraph.mockup.forms.listBox' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupListBox.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupListBox.prototype.cst.TEXT_SIZE, '17').toString(); + + var selectedButton = -1; + var maxShapeWidth = w; + var subText = mxUtils.getValue(this.style, mxShapeMockupListBox.prototype.cst.SUB_TEXT, 'Sub Text').toString().split(','); + + for (var i = 0; i < subText.length; i++) + { + var itemText = subText[i]; + + if(itemText.charAt(0) === mxShapeMockupListBox.prototype.cst.SELECTED) + { + itemText = subText[i].substring(1); + selectedButton = i; + } + + var currWidth = mxUtils.getSizeForString(itemText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxShapeWidth) + { + maxShapeWidth = currWidth; + } + } + + + + c.translate(x, y); + + w = Math.min(w, maxShapeWidth); + h = Math.max(h, 30 + subText.length * fontSize * 1.5); + + this.background(c, w, h, bgColor, frameColor); + c.setShadow(false); + this.foreground(c, w, h, frameColor, selectedButton, subText, fontSize); +}; + +mxShapeMockupListBox.prototype.background = function(c, w, h, bgColor, frameColor) +{ + c.setFillColor(bgColor); + c.setStrokeColor(frameColor); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupListBox.prototype.foreground = function(c, w, h, frameColor, selectedButton, subText, fontSize) +{ + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + var selectedColor = mxUtils.getValue(this.style, mxShapeMockupListBox.prototype.cst.SELECTED_COLOR, '#ddeeff'); + + if(selectedButton !== -1) + { + c.setFillColor(selectedColor); + c.rect(0, 30 + selectedButton * fontSize * 1.5, w, fontSize * 1.5); + c.fill(); + } + + c.begin(); + c.moveTo(0, 30); + c.lineTo(w, 30); + c.stroke(); + + //buttons + var windowTitle = mxUtils.getValue(this.style, mxShapeMockupListBox.prototype.cst.MAIN_TEXT, 'Window Title').toString(); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupListBox.prototype.cst.TEXT_COLOR, '#666666,#008cff').toString().split(','); + + c.setFontColor(fontColor[1]); + c.setFontSize(fontSize); + c.text(10, 15, 0, 0, windowTitle, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontColor(fontColor[0]); + + for (var i = 0; i < subText.length; i++) + { + var currText = subText[i]; + + if(currText.charAt(0) === mxShapeMockupListBox.prototype.cst.SELECTED) + { + currText = subText[i].substring(1); + } + + c.text(10, 30 + fontSize * (i * 1.5 + 0.75), 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + c.rect(0, 0, w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupListBox.prototype.cst.SHAPE_LIST_BOX, mxShapeMockupListBox); + +//********************************************************************************************************************************************************** +//Password Field +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupPwField(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupPwField, mxShape); + +mxShapeMockupPwField.prototype.cst = { + MAIN_TEXT : 'mainText', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize', + SHAPE_PW_FIELD : 'mxgraph.mockup.forms.pwField' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupPwField.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupPwField.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupPwField.prototype.foreground = function(c, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxShapeMockupPwField.prototype.cst.MAIN_TEXT, '******'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupPwField.prototype.cst.TEXT_COLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupPwField.prototype.cst.TEXT_SIZE, '17'); + + c.setFontColor(fontColor); + c.setFontSize(fontSize); + + c.text(5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupPwField.prototype.cst.SHAPE_PW_FIELD, mxShapeMockupPwField); + +//********************************************************************************************************************************************************** +//Splitter +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupSplitter(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupSplitter, mxShape); + +mxShapeMockupSplitter.prototype.cst = { + MAIN_TEXT : 'mainText', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize', + SHAPE_SPLITTER : 'mxgraph.mockup.forms.splitter' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupSplitter.prototype.paintVertexShape = function(c, x, y, w, h) +{ + w = Math.max(w, 35); + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupSplitter.prototype.background = function(c, w, h) +{ + c.begin(); + c.moveTo(0, h * 0.5 - 5); + c.lineTo(w, h * 0.5 - 5); + c.lineTo(w, h * 0.5 + 5); + c.lineTo(0, h * 0.5 + 5); + c.close(); + c.fill(); +}; + +mxShapeMockupSplitter.prototype.foreground = function(c, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + + c.begin(); + c.moveTo(0, h * 0.5 - 5); + c.lineTo(w, h * 0.5 - 5); + c.moveTo(w, h * 0.5 + 5); + c.lineTo(0, h * 0.5 + 5); + c.stroke(); + + c.setFillColor(strokeColor); + c.ellipse(w * 0.5 - 17, h * 0.5 - 2, 4, 4); + c.fill(); + c.ellipse(w * 0.5 - 2, h * 0.5 - 2, 4, 4); + c.fill(); + c.ellipse(w * 0.5 + 13, h * 0.5 - 2, 4, 4); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupSplitter.prototype.cst.SHAPE_SPLITTER, mxShapeMockupSplitter); + +//********************************************************************************************************************************************************** +//Wedge Bar (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupWedgeBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupWedgeBar, mxShape); + +mxShapeMockupWedgeBar.prototype.cst = { + BLOCK : 'block', + CONE : 'cone', + HALF_CONE : 'halfCone', + ROUND : 'round', + TEXT_SIZE : 'textSize', + TAB_NAMES : 'tabs', + TAB_STYLE : 'tabStyle', + STYLE_FILLCOLOR2 : 'fillColor2', + TEXT_COLOR : 'textColor', + SEL_TEXT_COLOR : 'textColor2', + SHAPE_WEDGE_BAR : 'mxgraph.mockup.forms.wedgeBar' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupWedgeBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var fontSize = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.TEXT_SIZE, '17').toString(); + var tabNames = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.TAB_NAMES, 'Tab 1,+Tab 2,Tab 3').toString().split(','); + + var tabH = fontSize * 1.5; + var startOffset = 10; + var tabOffset = 5; + var labelOffset = 10; + var tabCount = tabNames.length; + var minW = 2 * startOffset + (tabCount - 1) * tabOffset + tabCount * 2 * labelOffset; + var rSize = 5; + var labelWidths = new Array(); + var selectedTab = -1; + + for (var i = 0; i < tabCount; i++) + { + var currLabel = tabNames[i]; + + if(currLabel.charAt(0) === '+') + { + currLabel = currLabel.substring(1); + selectedTab = i; + } + + var currW = mxUtils.getSizeForString(currLabel, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currW === 0) + { + labelWidths[i] = 42; + } + else + { + labelWidths[i] = currW; + } + + minW = minW + labelWidths[i]; + } + + w = Math.max(w, minW); + h = Math.max(h, tabH + rSize); + + c.translate(x, y); + + c.setShadow(false); + this.backTabs(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab); + this.focusTab(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab); + this.tabText(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab, tabNames); +}; + +mxShapeMockupWedgeBar.prototype.backTabs = function(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab) +{ + var tabStyle = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.TAB_STYLE, mxShapeMockupWedgeBar.prototype.cst.BLOCK); + + var currW = startOffset; + for (var i=0; i < tabCount; i++) + { + var tabW = labelWidths[i] + 2 * labelOffset; + + if (selectedTab !== i) + { + if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.BLOCK) + { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW, 0); + c.lineTo(currW + tabW, 0); + c.lineTo(currW + tabW, tabH); + } + else if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.CONE) + { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW - labelOffset * 0.5, 0); + c.lineTo(currW + tabW, tabH); + } + else if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.HALF_CONE) + { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW, 0); + c.lineTo(currW + tabW, tabH); + } + else if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.ROUND) + { + c.begin(); + c.moveTo(currW - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 0, currW, tabH - rSize); + c.lineTo(currW, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, currW + rSize, 0); + c.lineTo(currW + tabW - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, currW + tabW, rSize); + c.lineTo(currW + tabW, tabH - rSize); + c.arcTo(rSize, rSize, 0, 0, 0, currW + tabW + rSize, tabH); + } + + c.fillAndStroke(); + } + + currW = currW + tabW + tabOffset; + } +}; + +mxShapeMockupWedgeBar.prototype.focusTab = function(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab) +{ + var tabStyle = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.TAB_STYLE, mxShapeMockupWedgeBar.prototype.cst.BLOCK); + var selectedFill = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.STYLE_FILLCOLOR2, '#008cff'); + + var currW = startOffset; + c.setStrokeColor(selectedFill); + c.setFillColor(selectedFill); + + for (var i=0; i <= selectedTab; i++) + { + var tabW = labelWidths[i] + 2 * labelOffset; + + if (selectedTab === i) + { + if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.BLOCK) + { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW, 0); + c.lineTo(currW + tabW, 0); + c.lineTo(currW + tabW, tabH); + } + else if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.CONE) + { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW - labelOffset * 0.5, 0); + c.lineTo(currW + tabW, tabH); + } + else if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.HALF_CONE) + { + c.begin(); + c.moveTo(currW, tabH); + c.lineTo(currW + labelOffset * 0.5, 0); + c.lineTo(currW + tabW, 0); + c.lineTo(currW + tabW, tabH); + } + else if (tabStyle === mxShapeMockupWedgeBar.prototype.cst.ROUND) + { + c.begin(); + c.moveTo(currW - rSize, tabH); + c.arcTo(rSize, rSize, 0, 0, 0, currW, tabH - rSize); + c.lineTo(currW, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, currW + rSize, 0); + c.lineTo(currW + tabW - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, currW + tabW, rSize); + c.lineTo(currW + tabW, tabH - rSize); + c.arcTo(rSize, rSize, 0, 0, 0, currW + tabW + rSize, tabH); + } + + c.fillAndStroke(); + } + + currW = currW + tabW + tabOffset; + } +}; + +mxShapeMockupWedgeBar.prototype.tabText = function(c, w, h, rSize, tabH, startOffset, tabOffset, labelOffset, tabCount, labelWidths, selectedTab, tabNames) +{ + var fontColor = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.TEXT_COLOR, '#666666'); + var selFontColor = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.SEL_TEXT_COLOR, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupWedgeBar.prototype.cst.TEXT_SIZE, '17').toString(); + + c.setFontColor(fontColor); + c.setFontSize(fontSize); + + var currW = startOffset; + + for (var i=0; i < tabCount; i++) + { + var currLabel = tabNames[i]; + + if (i === selectedTab) + { + c.setFontColor(selFontColor); + } + + if (currLabel.charAt(0) === '+') + { + currLabel = currLabel.substring(1); + } + + var tabW = labelWidths[i] + 2 * labelOffset; + + c.text(currW + labelOffset, tabH * 0.5, 0, 0, currLabel, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + currW = currW + tabW + tabOffset; + + if (i === selectedTab) + { + c.setFontColor(fontColor); + } + } + +}; + +mxCellRenderer.registerShape(mxShapeMockupWedgeBar.prototype.cst.SHAPE_WEDGE_BAR, mxShapeMockupWedgeBar); + +//********************************************************************************************************************************************************** +//Search Box +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupSearchBox(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupSearchBox, mxShape); + +mxShapeMockupSearchBox.prototype.cst = { + MAIN_TEXT : 'mainText', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize', + STROKE_COLOR2 : 'strokeColor2', + SHAPE_SEARCH_BOX : 'mxgraph.mockup.forms.searchBox' +}; + +mxShapeMockupSearchBox.prototype.customProperties = [ + {name: 'strokeColor2', dispName: 'Icon Color', type: 'color'}, +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupSearchBox.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupSearchBox.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupSearchBox.prototype.foreground = function(c, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxShapeMockupSearchBox.prototype.cst.MAIN_TEXT, 'Search'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupSearchBox.prototype.cst.TEXT_COLOR, '#666666'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeMockupSearchBox.prototype.cst.STROKE_COLOR2, '#008cff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupSearchBox.prototype.cst.TEXT_SIZE, '17'); + + c.setFontColor(fontColor); + c.setFontSize(fontSize); + + c.text(5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setStrokeColor(strokeColor2); + c.ellipse(w - 15, h * 0.5 - 8, 10, 10); + c.stroke(); + c.begin(); + c.moveTo(w - 19, h * 0.5 + 9); + c.lineTo(w - 13, h * 0.5 + 1); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupSearchBox.prototype.cst.SHAPE_SEARCH_BOX, mxShapeMockupSearchBox); + +//********************************************************************************************************************************************************** +//Sign In (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupSignIn(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupSignIn, mxShape); + +mxShapeMockupSignIn.prototype.cst = { + MAIN_TEXT : 'mainText', + TEXT_COLOR : 'textColor', + TEXT_COLOR2 : 'textColor2', + TEXT_SIZE : 'textSize', + TEXT_SIZE2 : 'textSize2', + STROKE_COLOR2 : 'strokeColor2', + FILL_COLOR2 : 'fillColor2', + SHAPE_SIGN_IN : 'mxgraph.mockup.forms.signIn' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupSignIn.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupSignIn.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupSignIn.prototype.foreground = function(c, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxShapeMockupSignIn.prototype.cst.MAIN_TEXT, 'Sign In,User Name:,johndoe,Password:,********,Forgot Password?,New User,SIGN IN,SIGN UP').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupSignIn.prototype.cst.TEXT_COLOR, '#666666'); + var fontColor2 = mxUtils.getValue(this.style, mxShapeMockupSignIn.prototype.cst.TEXT_COLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupSignIn.prototype.cst.TEXT_SIZE, '12'); + var fontSize2 = mxUtils.getValue(this.style, mxShapeMockupSignIn.prototype.cst.TEXT_SIZE2, '15'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeMockupSignIn.prototype.cst.STROKE_COLOR2, '#ddeeff'); + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupSignIn.prototype.cst.FILL_COLOR2, '#66bbff'); + + c.setFillColor(fillColor2); + c.roundrect(w * 0.09, h * 0.52, w * 0.36, h * 0.09, 5, 5); + c.fill(); + + c.roundrect(w * 0.09, h * 0.84, w * 0.36, h * 0.09, 5, 5); + c.fill(); + + c.rect(w * 0.05, h * 0.22, w * 0.75, h * 0.08); + c.stroke(); + + c.rect(w * 0.05, h * 0.4, w * 0.75, h * 0.08); + c.stroke(); + + + c.setStrokeColor(strokeColor2); + c.setStrokeWidth(2); + + c.begin(); + c.moveTo(w * 0.05, h * 0.12); + c.lineTo(w * 0.95, h * 0.12); + c.moveTo(w * 0.05, h * 0.72); + c.lineTo(w * 0.95, h * 0.72); + c.stroke(); + + + c.setFontColor(fontColor); + c.setFontSize(fontSize); + c.text(w * 0.05, h * 0.1, 0, 0, mainText[0], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_BOTTOM, 0, null, 0, 0, 0); + c.text(w * 0.05, h * 0.2, 0, 0, mainText[1], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_BOTTOM, 0, null, 0, 0, 0); + c.text(w * 0.075, h * 0.26, 0, 0, mainText[2], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.05, h * 0.38, 0, 0, mainText[3], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_BOTTOM, 0, null, 0, 0, 0); + c.text(w * 0.075, h * 0.44, 0, 0, mainText[4], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.05, h * 0.8, 0, 0, mainText[6], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setStrokeWidth(1); + c.setFontColor('#9999ff'); + c.setStrokeColor('#9999ff'); + var forgotW = mxUtils.getSizeForString(mainText[5], fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + c.text(w * 0.05, h * 0.7, 0, 0, mainText[5], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_BOTTOM, 0, null, 0, 0, 0); + + c.begin(); + c.moveTo(w * 0.05, h * 0.7); + c.lineTo(w * 0.05 + forgotW, h * 0.7); + c.stroke(); + + c.setFontColor(fontColor2); + c.setFontStyle(mxConstants.FONT_BOLD); + c.setFontSize(fontSize2); + c.text(w * 0.27, h * 0.565, 0, 0, mainText[7], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.27, h * 0.885, 0, 0, mainText[8], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupSignIn.prototype.cst.SHAPE_SIGN_IN, mxShapeMockupSignIn); + +//********************************************************************************************************************************************************** +//Calendar (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupCalendar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupCalendar, mxShape); + +mxShapeMockupCalendar.prototype.cst = { + SHAPE_CALENDAR : 'mxgraph.mockup.forms.calendar', + DAYS : 'days', + SELECTED_DAY : 'selDay', + PREV_DAYS : 'prevDays', + FIRST_DAY : 'firstDay', + START_ON : 'startOn', + DAY_NAMES : 'dayNames', + MAIN_TEXT : 'mainText', + TEXT_SIZE : 'textSize', + TEXT_COLOR : 'textColor', + TEXT_COLOR2 : 'textColor2', + STROKE_COLOR2 : 'strokeColor2', + FILL_COLOR2 : 'fillColor2' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupCalendar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupCalendar.prototype.background = function(c, w, h) +{ + c.roundrect(0, 0, w, h, w * 0.0312, h * 0.0286); + c.fillAndStroke(); +}; + +mxShapeMockupCalendar.prototype.foreground = function(c, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.STROKE_COLOR2, '#008cff'); + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.FILL_COLOR2, '#ddeeff'); + var mainText = mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.MAIN_TEXT, ''); + var textSize = mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.TEXT_SIZE, '15'); + var textColor = mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.TEXT_COLOR, '#999999'); + var textColor2 = mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.TEXT_COLOR2, '#ffffff'); + var days = parseInt(mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.DAYS, '30'), 10); + var prevDays = parseInt(mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.PREV_DAYS, '31'), 10); + //month starts on Monday + var firstDay = parseInt(mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.FIRST_DAY, '0'), 10); + //week starts with Monday + var startOn = parseInt(mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.START_ON, '6', 10)); + var dayNames = mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.DAY_NAMES, 'Mo,Tu,We,Th,Fr,Sa,Su').toString().split(','); + var selDay = parseInt(mxUtils.getValue(this.style, mxShapeMockupCalendar.prototype.cst.SELECTED_DAY, '24'), 10); + + fistDay = Math.max(firstDay, 0); + startOn = Math.max(startOn, 0); + fistDay = Math.min(firstDay, 6); + startOn = Math.min(startOn, 6); + + //buttons + c.roundrect(w * 0.05, h * 0.0457, w * 0.1438, h * 0.1029, w * 0.025, h * 0.0229); + c.stroke(); + c.roundrect(w * 0.8125, h * 0.0457, w * 0.1438, h * 0.1029, w * 0.025, h * 0.0229); + c.stroke(); + + //button markers + c.setStrokeWidth(2); + c.setStrokeColor(strokeColor2); + c.begin(); + c.moveTo(w * 0.1438, h * 0.0743); + c.lineTo(w * 0.1, h * 0.0971); + c.lineTo(w * 0.1438, h * 0.12); + c.moveTo(w * 0.8625, h * 0.0743); + c.lineTo(w * 0.9062, h * 0.0971); + c.lineTo(w * 0.8625, h * 0.12); + c.stroke(); + + c.setFontSize(textSize); + c.setFontColor(textColor); + c.text(w * 0.5, h * 0.0971, 0, 0, mainText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + //write day names + var range = w * 0.875; + var cellSize = range / 7; + + for (var i = 0; i < 7; i++) + { + var currX = w * 0.0625 + cellSize * 0.5 + i * cellSize; + var j = i + startOn; + + if (j > 6) + { + j = j - 7; + } + + c.text(currX, h * 0.2114, 0, 0, dayNames[j], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + c.setStrokeWidth(1); + //1st day is on first weekday as default + var x = 0; + var selX = -1; + var selY = -1; + + //check if we need to write days from previous month + if (firstDay !== startOn) + { + c.setStrokeColor(strokeColor); + c.setFillColor(fillColor2); + + var diff = firstDay - startOn; + if (diff < 0) + { + diff = diff + 7; + } + + for (var i = 0; i < diff; i++) + { + var currX = w * 0.0625 + i * cellSize; + c.rect(currX, h * 0.2686, cellSize, h * 0.1143); + c.fillAndStroke(); + var tmp = prevDays - diff + i + 1; + + c.text(currX + cellSize * 0.5, h * 0.2686 + cellSize * 0.5, 0, 0, tmp.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + x = diff; + } + + //now we need to write the actual month days... + c.setFillColor(fillColor); + c.setStrokeColor(strokeColor); + //week begins in first row + var y = 0; + + for (var i = 0; i < days; i++) + { + var d = i + 1; + var currX = w * 0.0625 + x * cellSize; + var currY = h * 0.2686 + y * h * 0.1143; + + if (d === selDay) + { + selX = currX; + selY = currY; + } + else + { + c.rect(currX, currY, cellSize, h * 0.1143); + c.fillAndStroke(); + c.text(currX + cellSize * 0.5, currY + cellSize * 0.5, 0, 0, d.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + if (x < 6) + { + x++; + } + else + { + x = 0; + y++; + } + } + + var i = 1; + c.setFillColor(fillColor2); + + while (y < 6) + { + var currX = w * 0.0625 + x * cellSize; + var currY = h * 0.2686 + y * h * 0.1143; + c.rect(currX, currY, cellSize, h * 0.1143); + c.fillAndStroke(); + + c.text(currX + cellSize * 0.5, currY + cellSize * 0.5, 0, 0, i.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + if (x < 6) + { + x++; + } + else + { + x = 0; + y++; + } + + i++; + } + + if (selX >= 0) + { + c.setStrokeColor('#ff0000'); + c.setStrokeWidth(2); + c.setFillColor(strokeColor2); + c.setFontColor(textColor2); + + c.rect(selX, selY, cellSize, h * 0.1143); + c.fillAndStroke(); + c.text(selX + cellSize * 0.5, selY + cellSize * 0.5, 0, 0, selDay.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupCalendar.prototype.cst.SHAPE_CALENDAR, mxShapeMockupCalendar); + +//********************************************************************************************************************************************************** +//Email Form +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupEmailForm(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupEmailForm, mxShape); + +mxShapeMockupEmailForm.prototype.cst = { + MAIN_TEXT : 'mainText', + TEXT_COLOR : 'textColor', + SHOW_CC : 'showCC', + SHOW_BCC : 'showBCC', + TEXT_SIZE : 'textSize', + SHAPE_EMAIL_FORM : 'mxgraph.mockup.forms.emailForm' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupEmailForm.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var fontSize = mxUtils.getValue(this.style, mxShapeMockupEmailForm.prototype.cst.TEXT_SIZE, '12'); + var showCC = mxUtils.getValue(this.style, mxShapeMockupEmailForm.prototype.cst.SHOW_CC, 'true'); + var showBCC = mxUtils.getValue(this.style, mxShapeMockupEmailForm.prototype.cst.SHOW_BCC, 'true'); + var tabX = fontSize * 4; + + var optCount = 0; + + if (showCC === 'true') + { + optCount++; + } + + if (showBCC === 'true') + { + optCount++; + } + + w = Math.max(w, fontSize * 5); + h = Math.max(h, fontSize * 10.5 + optCount * fontSize * 3); + + c.translate(x, y); + this.background(c, w, h, fontSize, tabX, showCC, showBCC); + c.setShadow(false); + this.foreground(c, w, h, fontSize, tabX, showCC, showBCC); +}; + +mxShapeMockupEmailForm.prototype.background = function(c, w, h, fontSize, tabX, showCC, showBCC) +{ + var messX = fontSize * 9; + + if (showCC === 'true') + { + messX = messX + fontSize * 3; + c.rect(tabX, fontSize * 9, w - tabX, fontSize * 1.5); + c.fillAndStroke(); + } + + if (showBCC === 'true') + { + c.rect(tabX, messX, w - tabX, fontSize * 1.5); + messX = messX + fontSize * 3; + c.fillAndStroke(); + } + + c.rect(tabX, 0, w - tabX, fontSize * 1.5); + c.fillAndStroke(); + c.rect(tabX, fontSize * 3, w - tabX, fontSize * 1.5); + c.fillAndStroke(); + c.rect(tabX, fontSize * 6, w - tabX, fontSize * 1.5); + c.fillAndStroke(); + c.rect(0, messX, w, h - messX); + c.fillAndStroke(); +}; + +mxShapeMockupEmailForm.prototype.foreground = function(c, w, h, fontSize, tabX, showCC, showBCC) +{ + var mainText = mxUtils.getValue(this.style, mxShapeMockupEmailForm.prototype.cst.MAIN_TEXT, 'john@jgraph.com,Greeting,fred@jgraph.com,,,Lorem ipsum').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupEmailForm.prototype.cst.TEXT_COLOR, '#666666'); + + c.setFontColor(fontColor); + c.setFontSize(fontSize); + + c.text(tabX - fontSize * 0.5, fontSize * 0.75, 0, 0, 'From', mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(tabX - fontSize * 0.5, fontSize * 3.75, 0, 0, 'Subject', mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(tabX - fontSize * 0.5, fontSize * 6.75, 0, 0, 'To', mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.text(tabX + fontSize * 0.5, fontSize * 0.75, 0, 0, mainText[0], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(tabX + fontSize * 0.5, fontSize * 3.75, 0, 0, mainText[1], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(tabX + fontSize * 0.5, fontSize * 6.75, 0, 0, mainText[2], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + var messX = fontSize * 9; + + if (showCC === 'true') + { + messX = messX + fontSize * 3; + c.text(tabX - fontSize * 0.5, fontSize * 9.75, 0, 0, 'CC', mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(tabX + fontSize * 0.5, fontSize * 9.75, 0, 0, mainText[3], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + if (showBCC === 'true') + { + c.text(tabX - fontSize * 0.5, messX + fontSize * 0.75, 0, 0, 'BCC', mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(tabX + fontSize * 0.5, messX + fontSize * 0.75, 0, 0, mainText[4], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + messX = messX + fontSize * 3; + } + + c.text(fontSize * 0.5, messX + fontSize * 0.75, 0, 0, mainText[5], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupEmailForm.prototype.cst.SHAPE_EMAIL_FORM, mxShapeMockupEmailForm); + +//********************************************************************************************************************************************************** +//Rounded rectangle (adjustable rounding) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupFormsRRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupFormsRRect, mxShape); + +mxShapeMockupFormsRRect.prototype.cst = { + RRECT : 'mxgraph.mockup.forms.rrect', + R_SIZE : 'rSize' +}; + +mxShapeMockupFormsRRect.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10}, +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupFormsRRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupFormsRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupFormsRRect.prototype.cst.RRECT, mxShapeMockupFormsRRect); + +//********************************************************************************************************************************************************** +//Anchor (a dummy shape without visuals used for anchoring) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupFormsAnchor(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupFormsAnchor, mxShape); + +mxShapeMockupFormsAnchor.prototype.cst = { + ANCHOR : 'mxgraph.mockup.forms.anchor' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupFormsAnchor.prototype.paintVertexShape = function(c, x, y, w, h) +{ +}; + +mxCellRenderer.registerShape(mxShapeMockupFormsAnchor.prototype.cst.ANCHOR, mxShapeMockupFormsAnchor); + +//********************************************************************************************************************************************************** +//Checkbox +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupFormsCheckbox(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupFormsCheckbox, mxShape); + +mxShapeMockupFormsCheckbox.prototype.cst = { + CHECKBOX : 'mxgraph.mockup.forms.checkbox' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupFormsCheckbox.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.rect(0, 0, w, h); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8, h * 0.2); + c.lineTo(w * 0.4, h * 0.8); + c.lineTo(w * 0.25, h * 0.6); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupFormsCheckbox.prototype.cst.CHECKBOX, mxShapeMockupFormsCheckbox); + +//********************************************************************************************************************************************************** +//U Rect +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupFormsURect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupFormsURect, mxShape); + +mxShapeMockupFormsURect.prototype.cst = { + U_RECT : 'mxgraph.mockup.forms.uRect' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupFormsURect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupFormsURect.prototype.cst.U_RECT, mxShapeMockupFormsURect); + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupGraphics.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupGraphics.js new file mode 100644 index 0000000000000..63d079ac2d30c --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupGraphics.js @@ -0,0 +1,1235 @@ +/** + * $Id: mxMockupGraphics.js,v 1.5 2013/05/22 12:28:49 mate Exp $ + * Copyright (c) 2006-2010, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Bar Chart +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupBarChart(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupBarChart, mxShape); + +mxShapeMockupBarChart.prototype.cst = { + STROKE_COLOR2 : 'strokeColor2', + STROKE_COLOR3 : 'strokeColor3', + FILL_COLOR2 : 'fillColor2', + FILL_COLOR3 : 'fillColor3', + SHAPE_BAR_CHART : 'mxgraph.mockup.graphics.barChart' +}; + +mxShapeMockupBarChart.prototype.customProperties = [ + {name: 'strokeColor2', dispName: 'Stroke2 Color', type: 'color'}, + {name: 'strokeColor3', dispName: 'Stroke3 Color', type: 'color'}, + {name: 'fillColor2', dispName: 'Fill2 Color', type: 'color'}, + {name: 'fillColor3', dispName: 'Fill3 Color', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupBarChart.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + this.background(c, x, y, w, h); + + var bgFill = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'); + + if (bgFill !== 'none') + { + c.setShadow(false); + } + + this.bars(c, x, y, w, h); +}; + +mxShapeMockupBarChart.prototype.background = function(c, x, y, w, h, bgColor, frameColor) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupBarChart.prototype.bars = function(c, x, y, w, h) +{ + var barStroke = mxUtils.getValue(this.style, mxShapeMockupBarChart.prototype.cst.STROKE_COLOR2, 'none'); + var coordStroke = mxUtils.getValue(this.style, mxShapeMockupBarChart.prototype.cst.STROKE_COLOR3, '#666666'); + var barFill1 = mxUtils.getValue(this.style, mxShapeMockupBarChart.prototype.cst.FILL_COLOR2, '#008cff'); + var barFill2 = mxUtils.getValue(this.style, mxShapeMockupBarChart.prototype.cst.FILL_COLOR3, '#dddddd'); + + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + + c.setStrokeColor(barStroke); + c.setFillColor(barFill1); + c.rect(0, h * 0.2, w * 0.75, h * 0.05); + c.fillAndStroke(); + c.rect(0, h * 0.45, w * 0.6, h * 0.05); + c.fillAndStroke(); + c.rect(0, h * 0.7, w * 0.95, h * 0.05); + c.fillAndStroke(); + + c.setFillColor(barFill2); + c.rect(0, h * 0.25, w * 0.85, h * 0.05); + c.fillAndStroke(); + c.rect(0, h * 0.5, w * 0.65, h * 0.05); + c.fillAndStroke(); + c.rect(0, h * 0.75, w * 0.8, h * 0.05); + c.fillAndStroke(); + + c.setStrokeWidth(strokeWidth * 2); + c.setStrokeColor(coordStroke); + + c.setShadow(false); + c.begin(); + c.moveTo(0,0); + c.lineTo(0, h); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupBarChart.prototype.cst.SHAPE_BAR_CHART, mxShapeMockupBarChart); + +//********************************************************************************************************************************************************** +//Column Chart +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupColumnChart(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupColumnChart, mxShape); + +mxShapeMockupColumnChart.prototype.cst = { + STROKE_COLOR2 : 'strokeColor2', + STROKE_COLOR3 : 'strokeColor3', + FILL_COLOR2 : 'fillColor2', + FILL_COLOR3 : 'fillColor3', + SHAPE_COLUMN_CHART : 'mxgraph.mockup.graphics.columnChart' +}; + +mxShapeMockupColumnChart.prototype.customProperties = [ + {name: 'strokeColor2', dispName: 'Bar Stroke Color', type: 'color'}, + {name: 'strokeColor3', dispName: 'Coord System Color', type: 'color'}, + {name: 'fillColor2', dispName: 'Bar1 Color', type: 'color'}, + {name: 'fillColor3', dispName: 'Bar2 Color', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupColumnChart.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + this.background(c, x, y, w, h); + + var bgFill = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'); + + if (bgFill !== 'none') + { + c.setShadow(false); + } + + this.bars(c, x, y, w, h); +}; + +mxShapeMockupColumnChart.prototype.background = function(c, x, y, w, h, bgColor, frameColor) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupColumnChart.prototype.bars = function(c, x, y, w, h) +{ + var barStroke = mxUtils.getValue(this.style, mxShapeMockupColumnChart.prototype.cst.STROKE_COLOR2, 'none'); + var coordStroke = mxUtils.getValue(this.style, mxShapeMockupColumnChart.prototype.cst.STROKE_COLOR3, '#666666'); + var barFill1 = mxUtils.getValue(this.style, mxShapeMockupColumnChart.prototype.cst.FILL_COLOR2, '#008cff'); + var barFill2 = mxUtils.getValue(this.style, mxShapeMockupColumnChart.prototype.cst.FILL_COLOR3, '#dddddd'); + + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + + c.setStrokeColor(barStroke); + c.setFillColor(barFill1); + c.rect(w * 0.2, h * 0.25, w * 0.05, h * 0.75); + c.fillAndStroke(); + c.rect(w * 0.45, h * 0.4, w * 0.05, h * 0.6); + c.fillAndStroke(); + c.rect(w * 0.7, h * 0.05, w * 0.05, h * 0.95); + c.fillAndStroke(); + + c.setFillColor(barFill2); + c.rect(w * 0.25, h * 0.15, w * 0.05, h * 0.85); + c.fillAndStroke(); + c.rect(w * 0.5, h * 0.35, w * 0.05, h * 0.65); + c.fillAndStroke(); + c.rect(w * 0.75, h * 0.2, w * 0.05, h * 0.8); + c.fillAndStroke(); + + c.setStrokeWidth(strokeWidth * 2); + c.setStrokeColor(coordStroke); + + c.setShadow(false); + + c.begin(); + c.moveTo(0,0); + c.lineTo(0, h); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupColumnChart.prototype.cst.SHAPE_COLUMN_CHART, mxShapeMockupColumnChart); + +//********************************************************************************************************************************************************** +//Line Chart +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupLineChart(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupLineChart, mxShape); + +mxShapeMockupLineChart.prototype.cst = { + STROKE_COLOR2 : 'strokeColor2', + STROKE_COLOR3 : 'strokeColor3', + STROKE_COLOR4 : 'strokeColor4', + SHAPE_LINE_CHART : 'mxgraph.mockup.graphics.lineChart' +}; + +mxShapeMockupLineChart.prototype.customProperties = [ + {name: 'strokeColor2', dispName: 'Coord. System Color', type: 'color'}, + {name: 'strokeColor3', dispName: 'Line1 Color', type: 'color'}, + {name: 'strokeColor4', dispName: 'Line2 Color', type: 'color'}, +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupLineChart.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + this.background(c, x, y, w, h); + + var bgFill = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'); + + if (bgFill !== 'none') + { + c.setShadow(false); + } + + this.bars(c, x, y, w, h); +}; + +mxShapeMockupLineChart.prototype.background = function(c, x, y, w, h, bgColor, frameColor) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupLineChart.prototype.bars = function(c, x, y, w, h) +{ + var coordStroke = mxUtils.getValue(this.style, mxShapeMockupLineChart.prototype.cst.STROKE_COLOR2, '#666666'); + var line1Stroke = mxUtils.getValue(this.style, mxShapeMockupLineChart.prototype.cst.STROKE_COLOR3, '#008cff'); + var line2Stroke = mxUtils.getValue(this.style, mxShapeMockupLineChart.prototype.cst.STROKE_COLOR4, '#dddddd'); + + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + + c.setStrokeWidth(strokeWidth * 2); + c.setStrokeColor(line2Stroke); + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.3, h * 0.5); + c.lineTo(w * 0.6, h * 0.74); + c.lineTo(w * 0.9, h * 0.24); + c.stroke(); + + c.setStrokeColor(line1Stroke); + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.3, h * 0.65); + c.lineTo(w * 0.6, h * 0.6); + c.lineTo(w * 0.9, h * 0.35); + c.stroke(); + + c.setStrokeColor(coordStroke); + c.setShadow(false); + + c.begin(); + c.moveTo(0,0); + c.lineTo(0, h); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupLineChart.prototype.cst.SHAPE_LINE_CHART, mxShapeMockupLineChart); + +//********************************************************************************************************************************************************** +//Pie Chart +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupPieChart(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupPieChart, mxShape); + +mxShapeMockupPieChart.prototype.cst = { + PARTS : 'parts', + PART_COLORS : 'partColors', + SHAPE_PIE_CHART : 'mxgraph.mockup.graphics.pieChart' +}; + +mxShapeMockupPieChart.prototype.customProperties = [ + {name: 'partsCount', dispName: 'partsCount', type: 'int', defVal: 4, dependentProps: ['partColors', 'parts']}, + {name: 'partColors', dispName: 'Part Colors', type: 'staticArr', subType: 'color', sizeProperty: 'partsCount', subDefVal: '#FFFFFF'}, + {name: 'parts', dispName: 'Part Sizes', type: 'staticArr', subType: 'int', sizeProperty: 'partsCount', subDefVal: '10'}, +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupPieChart.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupPieChart.prototype.background = function(c, x, y, w, h, bgColor, frameColor) +{ + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupPieChart.prototype.foreground = function(c, x, y, w, h) +{ + var parts = mxUtils.getValue(this.style, mxShapeMockupPieChart.prototype.cst.PARTS, '10,20,30').toString().split(','); + var partNum = parts.length; + var partColors = mxUtils.getValue(this.style, mxShapeMockupPieChart.prototype.cst.PART_COLORS, '#333333,#666666,#999999').toString().split(','); + var total = 0; + + for (var i = 0; i < partNum; i++) + { + total = total + parseInt(parts[i], 10); + } + + + for (var i = 0; i < partNum; i++) + { + if (partColors.length > i) + { + c.setFillColor(partColors[i]); + } + else + { + c.setFillColor('#ff0000'); + } + + var beginPerc = 0; + var endPerc = 0; + var currPerc = parseInt(parts[i], 10) / total; + + if (currPerc === 0.5) + { + currPerc = 0.501; + } + + for (var j = 0; j < i; j++) + { + beginPerc = beginPerc + parseInt(parts[j], 10) / total; + } + + endPerc = currPerc + beginPerc; + var startAngle = 2 * Math.PI * beginPerc; + var endAngle = 2 * Math.PI * endPerc; + + var x1 = w * 0.5 - w * Math.sin(startAngle) * 0.5; + var y1 = h * 0.5 - h * Math.cos(startAngle) * 0.5; + var x2 = w * 0.5 - w * Math.sin(endAngle) * 0.5; + var y2 = h * 0.5 - h * Math.cos(endAngle) * 0.5; + var largeArc = 1; + var sweep = 1; + + if (endPerc - beginPerc < 0.5) + { + largeArc = 0; + } + + c.begin(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(x2, y2); + c.arcTo(w * 0.5, h * 0.5, 0, largeArc, 1, x1, y1); + c.close(); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupPieChart.prototype.cst.SHAPE_PIE_CHART, mxShapeMockupPieChart); + +//********************************************************************************************************************************************************** +//Icon Grid (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupIconGrid(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupIconGrid, mxShape); + +mxShapeMockupIconGrid.prototype.cst = { + GRID_SIZE : 'gridSize', + SHAPE_ICON_GRID : 'mxgraph.mockup.graphics.iconGrid' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupIconGrid.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var gridSize = mxUtils.getValue(this.style, mxShapeMockupIconGrid.prototype.cst.GRID_SIZE, '3,3').toString().split(','); + this.background(c, w, h, gridSize); + c.setShadow(false); + + this.foreground(c, w, h, gridSize); +}; + +mxShapeMockupIconGrid.prototype.background = function(c, w, h, gridSize) +{ + var boxSizeX = w / (parseInt(gridSize[0],10) + (gridSize[0]-1) * 0.5); + var boxSizeY = h / (parseInt(gridSize[1],10) + (gridSize[1]-1) * 0.5); + + for (var i = 0; i < gridSize[0]; i++) + { + for (var j = 0; j < gridSize[1]; j++) + { + c.rect(boxSizeX * 1.5 * i, boxSizeY * 1.5 * j, boxSizeX, boxSizeY); + c.fillAndStroke(); + } + } +}; + +mxShapeMockupIconGrid.prototype.foreground = function(c, w, h, gridSize) +{ + var boxSizeX = w / (parseInt(gridSize[0],10) + (gridSize[0]-1) * 0.5); + var boxSizeY = h / (parseInt(gridSize[1],10) + (gridSize[1]-1) * 0.5); + + for (var i = 0; i < gridSize[0]; i++) + { + for (var j = 0; j < gridSize[1]; j++) + { + c.begin(); + c.moveTo(boxSizeX * 1.5 * i, boxSizeY * 1.5 * j); + c.lineTo(boxSizeX * 1.5 * i + boxSizeX, boxSizeY * 1.5 * j + boxSizeY); + c.moveTo(boxSizeX * 1.5 * i + boxSizeX, boxSizeY * 1.5 * j); + c.lineTo(boxSizeX * 1.5 * i, boxSizeY * 1.5 * j + boxSizeY); + c.stroke(); + } + } +}; + +mxCellRenderer.registerShape(mxShapeMockupIconGrid.prototype.cst.SHAPE_ICON_GRID, mxShapeMockupIconGrid); + +//********************************************************************************************************************************************************** +//Bubble Chart +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupBubbleChart(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupBubbleChart, mxShape); + +mxShapeMockupBubbleChart.prototype.cst = { + STROKE_COLOR2 : 'strokeColor2', + STROKE_COLOR3 : 'strokeColor3', + FILL_COLOR2 : 'fillColor2', + FILL_COLOR3 : 'fillColor3', + SHAPE_BUBBLE_CHART : 'mxgraph.mockup.graphics.bubbleChart' +}; + +mxShapeMockupBubbleChart.prototype.customProperties = [ + {name: 'strokeColor2', dispName: 'Bubble Stroke Color', type: 'color'}, + {name: 'strokeColor3', dispName: 'Coord. System Color', type: 'color'}, + {name: 'fillColor2', dispName: 'Bubble1 Color', type: 'color'}, + {name: 'fillColor3', dispName: 'Bubble2 Color', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupBubbleChart.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + this.background(c, x, y, w, h); + + var bgFill = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'); + + if (bgFill !== 'none') + { + c.setShadow(false); + } + + this.bars(c, x, y, w, h); +}; + +mxShapeMockupBubbleChart.prototype.background = function(c, x, y, w, h, bgColor, frameColor) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupBubbleChart.prototype.bars = function(c, x, y, w, h) +{ + var barStroke = mxUtils.getValue(this.style, mxShapeMockupBubbleChart.prototype.cst.STROKE_COLOR2, 'none'); + var coordStroke = mxUtils.getValue(this.style, mxShapeMockupBubbleChart.prototype.cst.STROKE_COLOR3, '#666666'); + var barFill1 = mxUtils.getValue(this.style, mxShapeMockupBubbleChart.prototype.cst.FILL_COLOR2, '#008cff'); + var barFill2 = mxUtils.getValue(this.style, mxShapeMockupBubbleChart.prototype.cst.FILL_COLOR3, '#dddddd'); + + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + + c.setStrokeColor(barStroke); + c.setFillColor(barFill1); + + var cx = w * 0.4; + var cy = h * 0.45; + var r = Math.min(h, w) * 0.14; + c.ellipse(cx - r, cy - r, 2 * r, 2 * r); + c.fillAndStroke(); + + cx = w * 0.1; + cy = h * 0.8; + r = Math.min(h, w) * 0.1; + c.ellipse(cx - r, cy - r, 2 * r, 2 * r); + c.fillAndStroke(); + + cx = w * 0.7; + cy = h * 0.7; + r = Math.min(h, w) * 0.22; + c.ellipse(cx - r, cy - r, 2 * r, 2 * r); + c.fillAndStroke(); + + c.setFillColor(barFill2); + cx = w * 0.15; + cy = h * 0.25; + r = Math.min(h, w) * 0.19; + c.ellipse(cx - r, cy - r, 2 * r, 2 * r); + c.fillAndStroke(); + + cx = w * 0.48; + cy = h * 0.7; + r = Math.min(h, w) * 0.12; + c.ellipse(cx - r, cy - r, 2 * r, 2 * r); + c.fillAndStroke(); + + cx = w * 0.74; + cy = h * 0.17; + r = Math.min(h, w) * 0.1; + c.ellipse(cx - r, cy - r, 2 * r, 2 * r); + c.fillAndStroke(); + + c.setStrokeWidth(strokeWidth * 2); + c.setStrokeColor(coordStroke); + + c.setShadow(false); + c.begin(); + c.moveTo(0,0); + c.lineTo(0, h); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupBubbleChart.prototype.cst.SHAPE_BUBBLE_CHART, mxShapeMockupBubbleChart); + +//********************************************************************************************************************************************************** +//Gauge +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupGauge(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.gaugePos = 25; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupGauge, mxShape); + +mxShapeMockupGauge.prototype.cst = { + SCALE_COLORS : 'scaleColors', + GAUGE_LABELS : 'gaugeLabels', + NEEDLE_COLOR : 'needleColor', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize', + GAUGE_POS : 'gaugePos', + SHAPE_GAUGE : 'mxgraph.mockup.graphics.gauge' +}; + +mxShapeMockupGauge.prototype.customProperties = [ + {name: 'scaleColors', dispName: 'Scale Colors', type: 'String'}, + {name: 'needleColor', dispName: 'Needle Color', type: 'color'}, + {name: 'gaugePos', dispName: 'Needle Position', type: 'float', min:0, max:100, defVal:25} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupGauge.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupGauge.prototype.background = function(c, w, h) +{ + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupGauge.prototype.foreground = function(c, w, h) +{ + var gaugePos = mxUtils.getValue(this.style, mxShapeMockupGauge.prototype.cst.GAUGE_POS, '0'); + var scaleColors = mxUtils.getValue(this.style, mxShapeMockupGauge.prototype.cst.SCALE_COLORS, '#888888,#aaaaaa,#444444').toString().split(','); + var gaugeLabels = mxUtils.getValue(this.style, mxShapeMockupGauge.prototype.cst.GAUGE_LABELS, 'CPU[%],0,100').toString().split(','); + var needleColor = mxUtils.getValue(this.style, mxShapeMockupGauge.prototype.cst.NEEDLE_COLOR, '#008cff'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var textColor = mxUtils.getValue(this.style, mxShapeMockupGauge.prototype.cst.TEXT_COLOR, '#666666'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupGauge.prototype.cst.TEXT_SIZE, '12'); + + gaugePos = Math.max(0, gaugePos); + gaugePos = Math.min(100, gaugePos); + + c.setFillColor(scaleColors[1]); + c.begin(); + c.moveTo(w * 0.05, h * 0.5); + c.arcTo(w * 0.4, h * 0.4, 0, 0, 1, w * 0.95, h * 0.5); + c.lineTo(w, h * 0.5); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 0, 0, h * 0.5); + c.close(); + c.fill(); + + c.setFillColor(scaleColors[0]); + c.begin(); + c.moveTo(w * 0.05, h * 0.5); + c.arcTo(w * 0.45, h * 0.45, 0, 0, 0, w * 0.182, h * 0.818); + c.lineTo(w * 0.146, h * 0.854); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, 0, h * 0.5); + c.close(); + c.fill(); + + c.setFillColor(scaleColors[2]); + c.begin(); + c.moveTo(w, h * 0.5); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, w * 0.854, h * 0.854); + c.lineTo(w * 0.818, h * 0.818); + c.arcTo(w * 0.45, h * 0.45, 0, 0, 0, w * 0.95, h * 0.5); + c.close(); + c.fill(); + + c.setFontSize(textSize); + c.setFontColor(textColor); + c.text(w * 0.5, h * 0.3, 0, 0, gaugeLabels[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.2, h * 0.85, 0, 0, gaugeLabels[1], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8, h * 0.85, 0, 0, gaugeLabels[2], mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + var needlePos = (0.75 * (2 * Math.PI * parseFloat(gaugePos) / 100) + 1.25 * Math.PI); + + var x1 = w * 0.5 + w * 0.38 * Math.sin(needlePos); + var y1 = h * 0.5 - h * 0.38 * Math.cos(needlePos); + var x2 = 0; + var y2 = 0; + c.setFillColor(needleColor); + c.begin(); + c.moveTo(x1, y1); + + x1 = w * 0.5 + w * 0.05 * Math.cos(needlePos); + y1 = h * 0.5 + h * 0.05 * Math.sin(needlePos); + c.lineTo(x1, y1); + + x2 = w * 0.5 + w * (-0.05) * Math.sin(needlePos); + y2 = h * 0.5 - h * (-0.05) * Math.cos(needlePos); + c.arcTo(w * 0.05, h * 0.05, 0, 0, 1, x2, y2); + + x1 = x2; + y1 = y2; + x2 = w * 0.5 - w * 0.05 * Math.cos(needlePos); + y2 = h * 0.5 - h * 0.05 * Math.sin(needlePos); + c.arcTo(w * 0.05, h * 0.05, 0, 0, 1, x2, y2); + c.close(); + c.fill(); + + c.setFillColor(fillColor); + c.begin(); + c.moveTo(w * 0.49, h * 0.49); + c.lineTo(w * 0.51, h * 0.49); + c.lineTo(w * 0.51, h * 0.51); + c.lineTo(w * 0.49, h * 0.51); + c.close(); + c.fill(); + + c.begin(); + c.ellipse(0, 0, w, h); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.146, h * 0.854); + c.lineTo(w * 0.219, h * 0.781); + c.moveTo(w * 0.854, h * 0.854); + c.lineTo(w * 0.781, h * 0.781); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupGauge.prototype.cst.SHAPE_GAUGE, mxShapeMockupGauge); + +Graph.handleFactory[mxShapeMockupGauge.prototype.cst.SHAPE_GAUGE] = function(state) +{ + var handles = [Graph.createHandle(state, ['gaugePos'], function(bounds) + { + var gaugePos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'gaugePos', this.gaugePos)))); + + return new mxPoint(bounds.x + bounds.width * 0.2 + gaugePos * 0.6 * bounds.width / 100, bounds.y + bounds.height * 0.8); + }, function(bounds, pt) + { + this.state.style['gaugePos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 1000; + })]; + + return handles; +} + +//********************************************************************************************************************************************************** +//Plot Chart +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupPlotChart(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupPlotChart, mxShape); + +mxShapeMockupPlotChart.prototype.cst = { + STROKE_COLOR2 : 'strokeColor2', + STROKE_COLOR3 : 'strokeColor3', + SHAPES_COLORS : 'fillColor2', + SHAPE_PLOT_CHART : 'mxgraph.mockup.graphics.plotChart' +}; + +mxShapeMockupPlotChart.prototype.customProperties = [ + {name: 'strokeColor2', dispName: 'Bubble Stroke Color', type: 'color'}, + {name: 'strokeColor3', dispName: 'Coord. System Color', type: 'color'}, + {name: 'fillColor2', dispName: 'Shapes Color', type: 'string'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupPlotChart.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + this.background(c, x, y, w, h); + + var bgFill = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'); + + if (bgFill !== 'none') + { + c.setShadow(false); + } + + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupPlotChart.prototype.background = function(c, x, y, w, h, bgColor, frameColor) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupPlotChart.prototype.foreground = function(c, x, y, w, h) +{ + var shapeStroke = mxUtils.getValue(this.style, mxShapeMockupPlotChart.prototype.cst.STROKE_COLOR2, '#dddddd'); + var coordStroke = mxUtils.getValue(this.style, mxShapeMockupPlotChart.prototype.cst.STROKE_COLOR3, '#666666'); + var shapesColors = mxUtils.getValue(this.style, mxShapeMockupPlotChart.prototype.cst.SHAPES_COLORS, '#00aaff,#0044ff,#008cff').toString().split(','); + + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + var shapeSize = Math.min(w, h) * 0.03; + + c.setStrokeColor(shapeStroke); + c.setFillColor(shapesColors[0]); + + var cx = w * 0.2; + var cy = h * 0.8; + c.begin(); + c.moveTo(cx - shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy + shapeSize * 0.5); + c.lineTo(cx - shapeSize * 0.5, cy + shapeSize * 0.5); + c.close(); + c.fillAndStroke(); + + cx = w * 0.3; + cy = h * 0.65; + c.begin(); + c.moveTo(cx - shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy + shapeSize * 0.5); + c.lineTo(cx - shapeSize * 0.5, cy + shapeSize * 0.5); + c.close(); + c.fillAndStroke(); + + cx = w * 0.6; + cy = h * 0.44; + c.begin(); + c.moveTo(cx - shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy + shapeSize * 0.5); + c.lineTo(cx - shapeSize * 0.5, cy + shapeSize * 0.5); + c.close(); + c.fillAndStroke(); + + cx = w * 0.85; + cy = h * 0.9; + c.begin(); + c.moveTo(cx - shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy + shapeSize * 0.5); + c.lineTo(cx - shapeSize * 0.5, cy + shapeSize * 0.5); + c.close(); + c.fillAndStroke(); + + c.setFillColor(shapesColors[1]); + cx = w * 0.08; + cy = h * 0.65; + c.begin(); + c.moveTo(cx, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy + shapeSize * 0.5); + c.lineTo(cx - shapeSize * 0.5, cy + shapeSize * 0.5); + c.close(); + c.fillAndStroke(); + + cx = w * 0.58; + cy = h * 0.85; + c.begin(); + c.moveTo(cx, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy + shapeSize * 0.5); + c.lineTo(cx - shapeSize * 0.5, cy + shapeSize * 0.5); + c.close(); + c.fillAndStroke(); + + cx = w * 0.72; + cy = h * 0.92; + c.begin(); + c.moveTo(cx, cy - shapeSize * 0.5); + c.lineTo(cx + shapeSize * 0.5, cy + shapeSize * 0.5); + c.lineTo(cx - shapeSize * 0.5, cy + shapeSize * 0.5); + c.close(); + c.fillAndStroke(); + + c.setFillColor(shapesColors[2]); + cx = w * 0.32; + cy = h * 0.28; + c.begin(); + c.moveTo(cx, cy - shapeSize * 0.75); + c.lineTo(cx + shapeSize * 0.75, cy); + c.lineTo(cx, cy + shapeSize * 0.75); + c.lineTo(cx - shapeSize * 0.75, cy); + c.close(); + c.fillAndStroke(); + + cx = w * 0.92; + cy = h * 0.45; + c.begin(); + c.moveTo(cx, cy - shapeSize * 0.75); + c.lineTo(cx + shapeSize * 0.75, cy); + c.lineTo(cx, cy + shapeSize * 0.75); + c.lineTo(cx - shapeSize * 0.75, cy); + c.close(); + c.fillAndStroke(); + + cx = w * 0.81; + cy = h * 0.37; + c.begin(); + c.moveTo(cx, cy - shapeSize * 0.75); + c.lineTo(cx + shapeSize * 0.75, cy); + c.lineTo(cx, cy + shapeSize * 0.75); + c.lineTo(cx - shapeSize * 0.75, cy); + c.close(); + c.fillAndStroke(); + + cx = w * 0.51; + cy = h * 0.7; + c.begin(); + c.moveTo(cx, cy - shapeSize * 0.75); + c.lineTo(cx + shapeSize * 0.75, cy); + c.lineTo(cx, cy + shapeSize * 0.75); + c.lineTo(cx - shapeSize * 0.75, cy); + c.close(); + c.fillAndStroke(); + + c.setStrokeWidth(strokeWidth * 2); + c.setStrokeColor(coordStroke); + + c.setShadow(false); + c.begin(); + c.moveTo(0,0); + c.lineTo(0, h); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupPlotChart.prototype.cst.SHAPE_PLOT_CHART, mxShapeMockupPlotChart); + +//********************************************************************************************************************************************************** +//Gantt Chart +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupGanttChart(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupGanttChart, mxShape); + +mxShapeMockupGanttChart.prototype.cst = { + STROKE_COLOR2 : 'strokeColor2', + STROKE_COLOR3 : 'strokeColor3', + SHAPES_COLORS : 'fillColor2', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize', + SHAPE_GANTT_CHART : 'mxgraph.mockup.graphics.ganttChart' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupGanttChart.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupGanttChart.prototype.background = function(c, x, y, w, h, bgColor, frameColor) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupGanttChart.prototype.foreground = function(c, x, y, w, h) +{ + var shapesColors = mxUtils.getValue(this.style, mxShapeMockupGanttChart.prototype.cst.SHAPES_COLORS, '#888888,#bbbbbb').toString().split(','); + var textColor = mxUtils.getValue(this.style, mxShapeMockupGanttChart.prototype.cst.TEXT_COLOR, '#666666'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupGanttChart.prototype.cst.TEXT_SIZE, '#12'); + + c.begin(); + c.moveTo(0, h * 0.13); + c.lineTo(w, h * 0.13); + c.moveTo(w * 0.4, 0); + c.lineTo(w * 0.4, h); + c.moveTo(w * 0.4, h * 0.065); + c.lineTo(w, h * 0.065); + c.moveTo(w * 0.03, 0); + c.lineTo(w * 0.03, h * 0.13); + c.moveTo(w * 0.1, 0); + c.lineTo(w * 0.1, h * 0.13); + c.moveTo(w * 0.315, 0); + c.lineTo(w * 0.315, h * 0.13); + c.moveTo(w * 0.45, h * 0.065); + c.lineTo(w * 0.45, h * 0.13); + c.moveTo(w * 0.5, h * 0.065); + c.lineTo(w * 0.5, h); + c.moveTo(w * 0.55, h * 0.065); + c.lineTo(w * 0.55, h * 0.13); + c.moveTo(w * 0.6, h * 0.065); + c.lineTo(w * 0.6, h); + c.moveTo(w * 0.65, h * 0.065); + c.lineTo(w * 0.65, h * 0.13); + c.moveTo(w * 0.7, h * 0.065); + c.lineTo(w * 0.7, h); + c.moveTo(w * 0.75, 0); + c.lineTo(w * 0.75, h * 0.13); + c.moveTo(w * 0.8, h * 0.065); + c.lineTo(w * 0.8, h); + c.moveTo(w * 0.85, h * 0.065); + c.lineTo(w * 0.85, h * 0.13); + c.moveTo(w * 0.9, h * 0.065); + c.lineTo(w * 0.9, h); + c.moveTo(w * 0.95, h * 0.065); + c.lineTo(w * 0.95, h * 0.13); + c.stroke(); + + c.setFillColor(shapesColors[0]); + c.begin(); + c.moveTo(w * 0.41, h * 0.15); + c.lineTo(w * 0.64, h * 0.15); + c.lineTo(w * 0.64, h * 0.18); + c.lineTo(w * 0.625, h * 0.21); + c.lineTo(w * 0.61, h * 0.18); + c.lineTo(w * 0.44, h * 0.18); + c.lineTo(w * 0.425, h * 0.21); + c.lineTo(w * 0.41, h * 0.18); + c.close(); + c.moveTo(w * 0.41, h * 0.24); + c.lineTo(w * 0.49, h * 0.24); + c.lineTo(w * 0.49, h * 0.275); + c.lineTo(w * 0.41, h * 0.275); + c.close(); + c.moveTo(w * 0.46, h * 0.31); + c.lineTo(w * 0.64, h * 0.31); + c.lineTo(w * 0.64, h * 0.345); + c.lineTo(w * 0.46, h * 0.345); + c.close(); + c.moveTo(w * 0.56, h * 0.39); + c.lineTo(w * 0.69, h * 0.39); + c.lineTo(w * 0.69, h * 0.425); + c.lineTo(w * 0.56, h * 0.425); + c.close(); + c.fill(); + + c.setFillColor(shapesColors[1]); + c.begin(); + c.moveTo(w * 0.46, h * 0.32); + c.lineTo(w * 0.58, h * 0.32); + c.lineTo(w * 0.58, h * 0.335); + c.lineTo(w * 0.46, h * 0.335); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupGanttChart.prototype.cst.SHAPE_GANTT_CHART, mxShapeMockupGanttChart); + +//********************************************************************************************************************************************************** +//Simple Icon +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupSimpleIcon(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupSimpleIcon, mxShape); + +mxShapeMockupSimpleIcon.prototype.cst = { + SIMPLE_ICON : 'mxgraph.mockup.graphics.simpleIcon' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupSimpleIcon.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.rect(0, 0, w, h); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, h); + c.moveTo(0, h); + c.lineTo(w, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupSimpleIcon.prototype.cst.SIMPLE_ICON, mxShapeMockupSimpleIcon); + +//********************************************************************************************************************************************************** +//Anchor (a dummy shape without visuals used for anchoring) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupGraphicsAnchor(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupGraphicsAnchor, mxShape); + +mxShapeMockupGraphicsAnchor.prototype.cst = { + ANCHOR : 'mxgraph.mockup.graphics.anchor' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupGraphicsAnchor.prototype.paintVertexShape = function(c, x, y, w, h) +{ +}; + +mxCellRenderer.registerShape(mxShapeMockupGraphicsAnchor.prototype.cst.ANCHOR, mxShapeMockupGraphicsAnchor); + +//********************************************************************************************************************************************************** +//Rounded rectangle (adjustable rounding) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupGraphicsRRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupGraphicsRRect, mxShape); + +mxShapeMockupGraphicsRRect.prototype.cst = { + RRECT : 'mxgraph.mockup.graphics.rrect', + R_SIZE : 'rSize' +}; + +mxShapeMockupGraphicsRRect.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10}, +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupGraphicsRRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupGraphicsRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupGraphicsRRect.prototype.cst.RRECT, mxShapeMockupGraphicsRRect); + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupMarkup.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupMarkup.js new file mode 100644 index 0000000000000..dceb14347269c --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupMarkup.js @@ -0,0 +1,200 @@ +/** + * $Id: mxMockupMarkup.js,v 1.5 2013/02/27 14:30:39 mate Exp $ + * Copyright (c) 2006-2010, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Horizontal Curly Brace +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupCurlyBrace(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupCurlyBrace, mxShape); + +mxShapeMockupCurlyBrace.prototype.cst = { + SHAPE_CURLY_BRACE : 'mxgraph.mockup.markup.curlyBrace' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupCurlyBrace.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeMockupCurlyBrace.prototype.background = function(c, x, y, w, h) +{ + var midY = h * 0.5; + var rSize = Math.min(w * 0.125, midY); + c.begin(); + c.moveTo(0, midY + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, midY); + c.lineTo(w * 0.5 - rSize, midY); + c.arcTo(rSize, rSize, 0, 0, 0, w * 0.5, midY - rSize); + c.arcTo(rSize, rSize, 0, 0, 0, w * 0.5 + rSize, midY); + c.lineTo(w - rSize, midY); + c.arcTo(rSize, rSize, 0, 0, 1, w, midY + rSize); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupCurlyBrace.prototype.cst.SHAPE_CURLY_BRACE, mxShapeMockupCurlyBrace); + +//********************************************************************************************************************************************************** +//Line +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupLine(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupLine, mxShape); + +mxShapeMockupLine.prototype.cst = { + SHAPE_LINE : 'mxgraph.mockup.markup.line' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupLine.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupLine.prototype.cst.SHAPE_LINE, mxShapeMockupLine); + +//********************************************************************************************************************************************************** +//Scratch Out +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupScratchOut(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupScratchOut, mxShape); + +mxShapeMockupScratchOut.prototype.cst = { + SHAPE_SCRATCH_OUT : 'mxgraph.mockup.markup.scratchOut' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupScratchOut.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.begin(); + c.moveTo(w * 0.038, h * 0.095); + c.curveTo(w * 0.038, h * 0.095, w * 0.289, h * -0.045, w * 0.186, h * 0.05); + c.curveTo(w * 0.084, h * 0.145, w * -0.046, h * 0.251, w * 0.072, h * 0.208); + c.curveTo(w * 0.191, h * 0.164, w * 0.522, h * -0.09, w * 0.366, h * 0.062); + c.curveTo(w * 0.21, h * 0.215, w * -0.094, h * 0.38, w * 0.108, h * 0.304); + c.curveTo(w * 0.309, h * 0.228, w * 0.73, h * -0.126, w * 0.544, h * 0.096); + c.curveTo(w * 0.358, h * 0.319, w * -0.168, h * 0.592, w * 0.108, h * 0.476); + c.curveTo(w * 0.382, h * 0.36, w * 0.972, h * -0.138, w * 0.779, h * 0.114); + c.curveTo(w * 0.585, h * 0.365, w * -0.12, h * 0.688, w * 0.071, h * 0.639); + c.curveTo(w * 0.262, h * 0.59, w * 1.174, h * 0.012, w * 0.936, h * 0.238); + c.curveTo(w * 0.699, h * 0.462, w * -0.216, h * 0.855, w * 0.085, h * 0.806); + c.curveTo(w * 0.386, h * 0.758, w * 1.185, h * 0.26, w * 0.935, h * 0.534); + c.curveTo(w * 0.685, h * 0.808, w * -0.186, h * 0.94, w * 0.236, h * 0.895); + c.curveTo(w * 0.659, h * 0.85, w * 1.095, h * 0.608, w * 0.905, h * 0.769); + c.curveTo(w * 0.715, h * 0.93, w * 0.286, h * 0.962, w * 0.661, h * 0.931); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupScratchOut.prototype.cst.SHAPE_SCRATCH_OUT, mxShapeMockupScratchOut); + +//********************************************************************************************************************************************************** +//Red X +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupRedX(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupRedX, mxShape); + +mxShapeMockupRedX.prototype.cst = { + SHAPE_RED_X : 'mxgraph.mockup.markup.redX' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupRedX.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.begin(); + c.moveTo(w * 0.1, 0); + c.lineTo(w * 0.5, h * 0.4); + c.lineTo(w * 0.9, 0); + c.lineTo(w, h * 0.1); + c.lineTo(w * 0.6, h * 0.5); + c.lineTo(w, h * 0.9); + c.lineTo(w * 0.9, h); + c.lineTo(w * 0.5, h * 0.6); + c.lineTo(w * 0.1, h); + c.lineTo(0, h * 0.9); + c.lineTo(w * 0.4, h * 0.5); + c.lineTo(0, h * 0.1); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupRedX.prototype.cst.SHAPE_RED_X, mxShapeMockupRedX); \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupMisc.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupMisc.js new file mode 100644 index 0000000000000..b774719e764de --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupMisc.js @@ -0,0 +1,1680 @@ +/** + * $Id: mxMockupMisc.js,v 1.5 2013/02/28 13:50:11 mate Exp $ + * Copyright (c) 2006-2010, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Playback Controls +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupPlaybackControls(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupPlaybackControls, mxShape); + +mxShapeMockupPlaybackControls.prototype.cst = { + SHAPE_PLAYBACK_CONTROLS : 'mxgraph.mockup.misc.playbackControls', + FILL_COLOR2 : 'fillColor2', + STROKE_COLOR2 : 'strokeColor2', + FILL_COLOR3 : 'fillColor3', + STROKE_COLOR3 : 'strokeColor3' +}; + +mxShapeMockupPlaybackControls.prototype.customProperties = [ + {name: 'fillColor2', dispName: 'Outline Color', type: 'color'}, + {name: 'fillColor3', dispName: 'Symbol Color', type: 'color'}, + {name: 'strokeColor2', dispName: 'Outline Stroke Color', type: 'color'}, + {name: 'strokeColor3', dispName: 'Symbol Stroke Color', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupPlaybackControls.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var controlBarHeight = 30; + var buttonSize = 22; + var h = Math.max(h, controlBarHeight); + var w = Math.max(225, w); + + c.translate(x, y); + this.background(c, w, h, controlBarHeight); + c.setShadow(false); + this.foreground(c, w, h, controlBarHeight, buttonSize); +}; + +mxShapeMockupPlaybackControls.prototype.background = function(c, w, h, controlBarHeight) +{ + c.rect(0, (h - controlBarHeight) * 0.5, w, controlBarHeight); + c.fillAndStroke(); +} + +mxShapeMockupPlaybackControls.prototype.foreground = function(c, w, h, controlBarHeight, buttonSize) +{ + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupPlaybackControls.prototype.cst.FILL_COLOR2, '#99ddff'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeMockupPlaybackControls.prototype.cst.STROKE_COLOR2, 'none'); + var fillColor3 = mxUtils.getValue(this.style, mxShapeMockupPlaybackControls.prototype.cst.FILL_COLOR3, '#ffffff'); + var strokeColor3 = mxUtils.getValue(this.style, mxShapeMockupPlaybackControls.prototype.cst.STROKE_COLOR3, 'none'); + + c.setStrokeColor(strokeColor2); + c.setFillColor(fillColor2); + c.ellipse(10, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize); + c.fillAndStroke(); + c.ellipse(40, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize); + c.fillAndStroke(); + c.ellipse(70, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize); + c.fillAndStroke(); + c.ellipse(100, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize); + c.fillAndStroke(); + c.ellipse(130, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize); + c.fillAndStroke(); + c.ellipse(160, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize); + c.fillAndStroke(); + c.ellipse(190, h * 0.5 - buttonSize * 0.5, buttonSize, buttonSize); + c.fillAndStroke(); + + + c.setStrokeColor(strokeColor3); + c.setFillColor(fillColor3); + // start + var t = h * 0.5 - controlBarHeight * 0.5; + c.begin(); + c.moveTo(16, t + 10); + c.lineTo(16, t + 20); + c.lineTo(18, t + 20); + c.lineTo(18, t + 10); + c.close(); + c.moveTo(20, t + 15); + c.lineTo(25, t + 20); + c.lineTo(25, t + 10); + c.close(); + c.fillAndStroke(); + // rewind + c.begin(); + c.moveTo(44, t + 15); + c.lineTo(49, t + 20); + c.lineTo(49, t + 10); + c.close(); + c.moveTo(51, t + 15); + c.lineTo(56, t + 20); + c.lineTo(56, t + 10); + c.close(); + c.fillAndStroke(); + // back + c.begin(); + c.moveTo(77, t + 15); + c.lineTo(82, t + 20); + c.lineTo(82, t + 10); + c.close(); + c.fillAndStroke(); + // play/pause + c.begin(); + c.moveTo(108, t + 10); + c.lineTo(108, t + 20); + c.lineTo(110, t + 20); + c.lineTo(110, t + 10); + c.close(); + c.moveTo(117, t + 15); + c.lineTo(112, t + 20); + c.lineTo(112, t + 10); + c.close(); + c.fillAndStroke(); + // forward + c.begin(); + c.moveTo(144, t + 15); + c.lineTo(139, t + 20); + c.lineTo(139, t + 10); + c.close(); + c.fillAndStroke(); + // fast forward + c.begin(); + c.moveTo(171, t + 15); + c.lineTo(166, t + 20); + c.lineTo(166, t + 10); + c.close(); + c.moveTo(178, t + 15); + c.lineTo(173, t + 20); + c.lineTo(173, t + 10); + c.close(); + c.fillAndStroke(); + // end + c.begin(); + c.moveTo(203, t + 10); + c.lineTo(203, t + 20); + c.lineTo(205, t + 20); + c.lineTo(205, t + 10); + c.close(); + c.moveTo(201, t + 15); + c.lineTo(196, t + 20); + c.lineTo(196, t + 10); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupPlaybackControls.prototype.cst.SHAPE_PLAYBACK_CONTROLS, mxShapeMockupPlaybackControls); + +//********************************************************************************************************************************************************** +//Progress Bar +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupProgressBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.barPos = 20; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupProgressBar, mxShape); + +mxShapeMockupProgressBar.prototype.cst = { + SHAPE_PROGRESS_BAR : 'mxgraph.mockup.misc.progressBar', + BAR_POS : 'barPos', + FILL_COLOR2 : 'fillColor2' +}; + +mxShapeMockupProgressBar.prototype.customProperties = [ + {name: 'fillColor2', dispName: 'Outline Color', type: 'color'}, + {name: 'barPos', dispName: 'Handle Position', type: 'float', min:0, defVal:80} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupProgressBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupProgressBar.prototype.background = function(c, w, h) +{ + c.roundrect(0, h * 0.5 - 5, w, 10, 5, 5); + c.fillAndStroke(); +}; + +mxShapeMockupProgressBar.prototype.foreground = function(c, w, h) +{ + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupProgressBar.prototype.cst.FILL_COLOR2, '#ddeeff'); + var barPos = mxUtils.getValue(this.style, mxShapeMockupProgressBar.prototype.cst.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var deadzone = 0; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + + c.setFillColor(fillColor2); + c.roundrect(0, h * 0.5 - 5, truePos, 10, 5, 5); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupProgressBar.prototype.cst.SHAPE_PROGRESS_BAR, mxShapeMockupProgressBar); + +Graph.handleFactory[mxShapeMockupProgressBar.prototype.cst.SHAPE_PROGRESS_BAR] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'barPos', this.barPos)))); + + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height * 0.5); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 1000; + })]; + + return handles; +} + +//********************************************************************************************************************************************************** +//Shopping Cart +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupShoppingCart(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupShoppingCart, mxShape); + +mxShapeMockupShoppingCart.prototype.cst = { + SHAPE_SHOPPING_CART : 'mxgraph.mockup.misc.shoppingCart' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupShoppingCart.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.translate(x, y); + + c.setStrokeWidth(3); + c.begin(); + c.moveTo(w * 0.975, h * 0.025); + c.lineTo(w * 0.82, h * 0.055); + c.lineTo(w * 0.59, h * 0.66); + c.lineTo(w * 0.7, h * 0.765); + c.arcTo(w * 0.06, h * 0.06, 0, 0, 1, w * 0.665, h * 0.86); + c.lineTo(w * 0.05, h * 0.86); + c.moveTo(w * 0.74, h * 0.26); + c.lineTo(w * 0.03, h * 0.28); + c.lineTo(w * 0.065, h * 0.61); + c.lineTo(w * 0.59, h * 0.66); + c.stroke(); + + c.setStrokeWidth(1); + c.begin(); + c.moveTo(w * 0.15, h * 0.28); + c.lineTo(w * 0.15, h * 0.62); + c.moveTo(w * 0.265, h * 0.275); + c.lineTo(w * 0.265, h * 0.63); + c.moveTo(w * 0.38, h * 0.27); + c.lineTo(w * 0.38, h * 0.64); + c.moveTo(w * 0.495, h * 0.265); + c.lineTo(w * 0.495, h * 0.65); + c.moveTo(w * 0.61, h * 0.265); + c.lineTo(w * 0.61, h * 0.61); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.69, h * 0.405); + c.lineTo(w * 0.045, h * 0.405); + c.moveTo(w * 0.645, h * 0.52); + c.lineTo(w * 0.055, h * 0.52); + c.stroke(); + c.setFillColor(strokeColor); + c.ellipse(w * 0.075, h * 0.89, w * 0.1, h * 0.1); + c.fillAndStroke(); + c.ellipse(w * 0.62, h * 0.89, w * 0.1, h * 0.1); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupShoppingCart.prototype.cst.SHAPE_SHOPPING_CART, mxShapeMockupShoppingCart); + +//********************************************************************************************************************************************************** +//Rating +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupRating(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupRating, mxShape); + +mxShapeMockupRating.prototype.cst = { + SHAPE_RATING : 'mxgraph.mockup.misc.rating', + RATING_STYLE : 'ratingStyle', + RATING_SCALE : 'ratingScale', + RATING_HEART : 'heart', + RATING_STAR : 'star', + EMPTY_FILL_COLOR : 'emptyFillColor', + GRADE : 'grade' +}; + +mxShapeMockupRating.prototype.customProperties = [ + {name: 'ratingStyle', dispName: 'Style', type: 'enum', + enumList: [{val: 'heart', dispName: 'Heart'}, {val: 'star', dispName: 'Star'}] + }, + {name: 'ratingScale', dispName: 'Max. Rating', type: 'int'}, + {name: 'grade', dispName: 'Current Rating', type: 'int'}, + {name: 'emptyFillColor', dispName: 'Fill2 Color', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupRating.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var ratingStyle = mxUtils.getValue(this.style, mxShapeMockupRating.prototype.cst.RATING_STYLE, mxShapeMockupRating.prototype.cst.RATING_STAR); + var grade = mxUtils.getValue(this.style, mxShapeMockupRating.prototype.cst.GRADE, '5'); + var ratingScale = mxUtils.getValue(this.style, mxShapeMockupRating.prototype.cst.RATING_SCALE, '10'); + + c.translate(x, y); + + if (ratingStyle === mxShapeMockupRating.prototype.cst.RATING_STAR) + { + for (var i = 0; i < grade; i++) + { + c.begin(); + c.moveTo(i * h * 1.5, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.364 * h, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.475 * h, 0); + c.lineTo(i * h * 1.5 + 0.586 * h, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.95 * h, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.66 * h, 0.551 * h); + c.lineTo(i * h * 1.5 + 0.775 * h, 0.9 * h); + c.lineTo(i * h * 1.5 + 0.475 * h, 0.684 * h); + c.lineTo(i * h * 1.5 + 0.175 * h, 0.9 * h); + c.lineTo(i * h * 1.5 + 0.29 * h, 0.551 * h); + c.close(); + c.fillAndStroke(); + } + } + else if (ratingStyle === mxShapeMockupRating.prototype.cst.RATING_HEART) + { + for (var i = 0; i < grade; i++) + { + c.begin(); + c.moveTo(i * h * 1.5 + h * 0.519, h * 0.947); + c.curveTo(i * h * 1.5 + h * 0.558, h * 0.908, i * h * 1.5 + h * 0.778, h * 0.682, i * h * 1.5 + h * 0.916, h * 0.54); + c.curveTo(i * h * 1.5 + h * 1.039, h * 0.414, i * h * 1.5 + h * 1.036, h * 0.229, i * h * 1.5 + h * 0.924, h * 0.115); + c.curveTo(i * h * 1.5 + h * 0.812, 0, i * h * 1.5 + h * 0.631, 0, i * h * 1.5 + h * 0.519, h * 0.115); + c.curveTo(i * h * 1.5 + h * 0.408, 0, i * h * 1.5 + h * 0.227, 0, i * h * 1.5 + h * 0.115, h * 0.115); + c.curveTo(i * h * 1.5 + h * 0.03, h * 0.229, i * h * 1.5, h * 0.414, i * h * 1.5 + h * 0.123, h * 0.54); + c.close(); + c.fillAndStroke(); + } + } + + var emptyFillColor = mxUtils.getValue(this.style, mxShapeMockupRating.prototype.cst.EMPTY_FILL_COLOR, '#ffffff'); + c.setFillColor(emptyFillColor); + + if (ratingStyle === mxShapeMockupRating.prototype.cst.RATING_STAR) + { + for (var i = grade; i < ratingScale; i++) + { + c.begin(); + c.moveTo(i * h * 1.5, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.364 * h, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.475 * h, 0); + c.lineTo(i * h * 1.5 + 0.586 * h, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.95 * h, 0.33 * h); + c.lineTo(i * h * 1.5 + 0.66 * h, 0.551 * h); + c.lineTo(i * h * 1.5 + 0.775 * h, 0.9 * h); + c.lineTo(i * h * 1.5 + 0.475 * h, 0.684 * h); + c.lineTo(i * h * 1.5 + 0.175 * h, 0.9 * h); + c.lineTo(i * h * 1.5 + 0.29 * h, 0.551 * h); + c.close(); + c.fillAndStroke(); + } + } + else if (ratingStyle === mxShapeMockupRating.prototype.cst.RATING_HEART) + { + for (var i = grade; i < ratingScale; i++) + { + c.begin(); + c.moveTo(i * h * 1.5 + h * 0.519, h * 0.947); + c.curveTo(i * h * 1.5 + h * 0.558, h * 0.908, i * h * 1.5 + h * 0.778, h * 0.682, i * h * 1.5 + h * 0.916, h * 0.54); + c.curveTo(i * h * 1.5 + h * 1.039, h * 0.414, i * h * 1.5 + h * 1.036, h * 0.229, i * h * 1.5 + h * 0.924, h * 0.115); + c.curveTo(i * h * 1.5 + h * 0.812, 0, i * h * 1.5 + h * 0.631, 0, i * h * 1.5 + h * 0.519, h * 0.115); + c.curveTo(i * h * 1.5 + h * 0.408, 0, i * h * 1.5 + h * 0.227, 0, i * h * 1.5 + h * 0.115, h * 0.115); + c.curveTo(i * h * 1.5 + h * 0.03, h * 0.229, i * h * 1.5, h * 0.414, i * h * 1.5 + h * 0.123, h * 0.54); + c.close(); + c.fillAndStroke(); + } + } +}; + +mxCellRenderer.registerShape(mxShapeMockupRating.prototype.cst.SHAPE_RATING, mxShapeMockupRating); + +//********************************************************************************************************************************************************** +//Mail +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupMail(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupMail, mxShape); + +mxShapeMockupMail.prototype.cst = { + SHAPE_MAIL : 'mxgraph.mockup.misc.mail2' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupMail.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.rect(0, 0, w, h); + c.fillAndStroke(); + + c.setShadow(false); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupMail.prototype.cst.SHAPE_MAIL, mxShapeMockupMail); + +//********************************************************************************************************************************************************** +//Volume Slider +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupVolumeSlider(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.barPos = 80; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupVolumeSlider, mxShape); + +mxShapeMockupVolumeSlider.prototype.cst = { + SHAPE_VOLUME_SLIDER : 'mxgraph.mockup.misc.volumeSlider', + BAR_POS : 'barPos', + FILL_COLOR2 : 'fillColor2' +}; + +mxShapeMockupVolumeSlider.prototype.customProperties = [ + {name: 'fillColor2', dispName: 'Fill2 Color', type: 'color'}, + {name: 'barPos', dispName: 'Handle Position', type: 'float'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupVolumeSlider.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var barPos = mxUtils.getValue(this.style, mxShapeMockupVolumeSlider.prototype.cst.BAR_POS, '80'); + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupVolumeSlider.prototype.cst.FILL_COLOR2, '#ddeeff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + //only the progress bar handle needs to be drawn + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var controlBarHeight = 25; + var h = Math.max(h, controlBarHeight); + var w = Math.max(w, 3.5 * controlBarHeight); + + var speakerStartX = w - controlBarHeight; + var speakerStartY = (h - controlBarHeight) * 0.5; + c.begin(); + c.moveTo(speakerStartX + controlBarHeight * 0.05, speakerStartY + controlBarHeight * 0.35); + c.lineTo(speakerStartX + controlBarHeight * 0.15, speakerStartY + controlBarHeight * 0.35); + c.lineTo(speakerStartX + controlBarHeight * 0.3, speakerStartY + controlBarHeight * 0.2); + c.lineTo(speakerStartX + controlBarHeight * 0.3, speakerStartY + controlBarHeight * 0.8); + c.lineTo(speakerStartX + controlBarHeight * 0.15, speakerStartY + controlBarHeight * 0.65); + c.lineTo(speakerStartX + controlBarHeight * 0.05, speakerStartY + controlBarHeight * 0.65); + c.close(); + c.fill(); + + //draw the handle based on barPos + var barMin = 0; + var barMax = w - controlBarHeight * 1.3; + var videoBarStartY = (h - controlBarHeight) * 0.5; + var barRange = barMax - barMin; + var barPos = barRange * barPos / 100; + var barEnd = barMin + barPos; + + var soundStartX = w - controlBarHeight; + var soundStartY = (h - controlBarHeight) * 0.5; + c.begin(); + c.moveTo(soundStartX + controlBarHeight * 0.4, soundStartY + controlBarHeight * 0.35); + c.arcTo(controlBarHeight * 0.2, controlBarHeight * 0.3, 0, 0, 1, soundStartX + controlBarHeight * 0.4, soundStartY + controlBarHeight * 0.65); + c.moveTo(soundStartX + controlBarHeight * 0.425, soundStartY + controlBarHeight * 0.25); + c.arcTo(controlBarHeight * 0.225, controlBarHeight * 0.35, 0, 0, 1, soundStartX + controlBarHeight * 0.425, soundStartY + controlBarHeight * 0.75); + c.moveTo(soundStartX + controlBarHeight * 0.5, soundStartY + controlBarHeight * 0.2); + c.arcTo(controlBarHeight * 0.25, controlBarHeight * 0.4, 0, 0, 1, soundStartX + controlBarHeight * 0.5, soundStartY + controlBarHeight * 0.8); + c.fillAndStroke(); + + //now we draw the video progress bar + var videoBarStartX = 0; + var videoBarStartY = (h - controlBarHeight) * 0.5; + var videoBarEndX = w - controlBarHeight * 1.3; + c.roundrect(videoBarStartX, videoBarStartY + controlBarHeight * 0.35, videoBarEndX, controlBarHeight * 0.3, 5, 5); + c.fill(); + c.setShadow(false); + c.setFillColor(fillColor2); + c.roundrect(barMin, videoBarStartY + controlBarHeight * 0.35, barEnd, controlBarHeight * 0.3, 5, 5); + c.fill(); + + + c.ellipse(barEnd - controlBarHeight * 0.25, videoBarStartY + controlBarHeight * 0.25, controlBarHeight * 0.5, controlBarHeight * 0.5); + c.fillAndStroke(); + +}; + +mxCellRenderer.registerShape(mxShapeMockupVolumeSlider.prototype.cst.SHAPE_VOLUME_SLIDER, mxShapeMockupVolumeSlider); + +Graph.handleFactory[mxShapeMockupVolumeSlider.prototype.cst.SHAPE_VOLUME_SLIDER] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'barPos', this.barPos)))); + + return new mxPoint(bounds.x + barPos * (bounds.width - 32.5) / 100, bounds.y + bounds.height * 0.5); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 1000; + })]; + + return handles; +} + +//********************************************************************************************************************************************************** +//Edit Icon +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupEdit(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupEdit, mxShape); + +mxShapeMockupEdit.prototype.cst = { + SHAPE_EDIT : 'mxgraph.mockup.misc.editIcon' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupEdit.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + + c.translate(x, y); + + c.roundrect(0, 0, w, h, w * 0.05, h * 0.05); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.11, h * 0.8); + c.lineTo(w * 0.2, h * 0.89); + c.lineTo(w * 0.05, h * 0.95); + c.close(); + c.moveTo(w * 0.74, h * 0.16); + c.lineTo(w * 0.84, h * 0.26); + c.lineTo(w * 0.22, h * 0.88); + c.lineTo(w * 0.12, h * 0.78); + c.close(); + c.moveTo(w * 0.755, h * 0.145); + c.lineTo(w * 0.82, h * 0.08); + c.lineTo(w * 0.92, h * 0.18); + c.lineTo(w * 0.855, h * 0.245); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupEdit.prototype.cst.SHAPE_EDIT, mxShapeMockupEdit); + +//********************************************************************************************************************************************************** +//Print Icon +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupPrint(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupPrint, mxShape); + +mxShapeMockupPrint.prototype.cst = { + SHAPE_PRINT : 'mxgraph.mockup.misc.printIcon' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupPrint.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + + c.translate(x, y); + + c.roundrect(0, 0, w, h, w * 0.05, h * 0.05); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.15, h * 0.58); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.18, h * 0.55); + c.lineTo(w * 0.82, h * 0.55); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.85, h * 0.58); + c.lineTo(w * 0.85, h * 0.82); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.82, h * 0.85); + c.lineTo(w * 0.18, h * 0.85); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.15, h * 0.82); + c.close(); + c.moveTo(w * 0.7, h * 0.52); + c.lineTo(w * 0.3, h * 0.52); + c.lineTo(w * 0.3, h * 0.15); + c.lineTo(w * 0.55, h * 0.15); + c.lineTo(w * 0.55, h * 0.3); + c.lineTo(w * 0.7, h * 0.3); + c.close(); + c.moveTo(w * 0.57, h * 0.15); + c.lineTo(w * 0.7, h * 0.28); + c.lineTo(w * 0.57, h * 0.28); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupPrint.prototype.cst.SHAPE_PRINT, mxShapeMockupPrint); + +//********************************************************************************************************************************************************** +//Print Icon +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupShare(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupShare, mxShape); + +mxShapeMockupShare.prototype.cst = { + SHAPE_SHARE : 'mxgraph.mockup.misc.shareIcon' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupShare.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + + c.translate(x, y); + + c.roundrect(0, 0, w, h, w * 0.05, h * 0.05); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.15, h * 0.18); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.18, h * 0.15); + c.lineTo(w * 0.82, h * 0.15); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.85, h * 0.18); + c.lineTo(w * 0.85, h * 0.82); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.82, h * 0.85); + c.lineTo(w * 0.18, h * 0.85); + c.arcTo(w * 0.03, h * 0.03, 0, 0, 1, w * 0.15, h * 0.82); + c.close(); + c.fill(); + + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + c.setFillColor(fillColor); + c.begin(); + c.moveTo(w * 0.563, h * 0.34); + c.arcTo(w * 0.095, h * 0.095, 0, 1, 1, w * 0.603, h * 0.42); + c.lineTo(w * 0.44, h * 0.5); + c.lineTo(w * 0.602, h * 0.582); + c.arcTo(w * 0.095, h * 0.095, 0, 1, 1, w * 0.563, h * 0.653); + c.lineTo(w * 0.403, h * 0.575); + c.arcTo(w * 0.095, h * 0.095, 0, 1, 1, w * 0.4, h * 0.42); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupShare.prototype.cst.SHAPE_SHARE, mxShapeMockupShare); + +//********************************************************************************************************************************************************** +//Trashcan Icon +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupTrashcan(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupTrashcan, mxShape); + +mxShapeMockupTrashcan.prototype.cst = { + SHAPE_TRASHCAN : 'mxgraph.mockup.misc.trashcanIcon' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupTrashcan.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + + c.translate(x, y); + + c.roundrect(0, 0, w, h, w * 0.05, h * 0.05); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.24, h * 0.24); + c.arcTo(w * 0.04, h * 0.04, 0, 0, 1, w * 0.24, h * 0.16); + c.lineTo(w * 0.4, h * 0.16); + c.lineTo(w * 0.4, h * 0.12); + c.lineTo(w * 0.6, h * 0.12); + c.lineTo(w * 0.6, h * 0.16); + c.lineTo(w * 0.76, h * 0.16); + c.arcTo(w * 0.04, h * 0.04, 0, 0, 1, w * 0.76, h * 0.24); + c.close(); + c.fill(); + + c.roundrect(w * 0.26, h * 0.3, w * 0.1, h * 0.6, w * 0.06, h * 0.06); + c.fill(); + c.roundrect(w * 0.44, h * 0.3, w * 0.1, h * 0.6, w * 0.06, h * 0.06); + c.fill(); + c.roundrect(w * 0.62, h * 0.3, w * 0.1, h * 0.6, w * 0.06, h * 0.06); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupTrashcan.prototype.cst.SHAPE_TRASHCAN, mxShapeMockupTrashcan); + +//********************************************************************************************************************************************************** +//Copyright Icon +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupCopyright(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupCopyright, mxShape); + +mxShapeMockupCopyright.prototype.cst = { + SHAPE_COPYRIGHT : 'mxgraph.mockup.misc.copyrightIcon' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupCopyright.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + + c.translate(x, y); + + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.713, h * 0.288); + c.arcTo(w * 0.3, h * 0.3, 0, 1, 0, w * 0.713, h * 0.712); + c.lineTo(w * 0.784, h * 0.783); + c.arcTo(w * 0.4, h * 0.4, 0, 1, 1, w * 0.784, h * 0.217); + c.close(); + c.fill(); + +}; + +mxCellRenderer.registerShape(mxShapeMockupCopyright.prototype.cst.SHAPE_COPYRIGHT, mxShapeMockupCopyright); + +//********************************************************************************************************************************************************** +//Registered Icon +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupRegistered(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupRegistered, mxShape); + +mxShapeMockupRegistered.prototype.cst = { + SHAPE_REGISTERED : 'mxgraph.mockup.misc.registeredIcon' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupRegistered.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + + c.translate(x, y); + + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.29, h * 0.9); + c.lineTo(w * 0.29, h * 0.09); + c.lineTo(w * 0.5, h * 0.09); + c.arcTo(w * 0.2195, h * 0.2195, 0, 0, 1, w * 0.545, h * 0.525); + c.lineTo(w * 0.738, h * 0.91); + c.lineTo(w * 0.674, h * 0.91); + c.lineTo(w * 0.4825, h * 0.53); + c.lineTo(w * 0.35, h * 0.53); + c.lineTo(w * 0.35, h * 0.9); + c.close(); + c.moveTo(w * 0.35, h * 0.47); + c.lineTo(w * 0.5, h * 0.47); + c.arcTo(w * 0.15, h * 0.15, 0, 0, 0, w * 0.5, h * 0.15); + c.lineTo(w * 0.35, h * 0.15); + c.close(); + c.fill(); + +}; + +mxCellRenderer.registerShape(mxShapeMockupRegistered.prototype.cst.SHAPE_REGISTERED, mxShapeMockupRegistered); + +//********************************************************************************************************************************************************** +//Volume Icon +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupVolume(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupVolume, mxShape); + +mxShapeMockupVolume.prototype.cst = { + SHAPE_VOLUME : 'mxgraph.mockup.misc.volumeIcon' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupVolume.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#999999'); + + c.translate(x, y); + + c.roundrect(0, 0, w, h, w * 0.05, h * 0.05); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.1, h * 0.3); + c.lineTo(w * 0.3, h * 0.3); + c.lineTo(w * 0.5, h * 0.15); + c.lineTo(w * 0.5, h * 0.85); + c.lineTo(w * 0.3, h * 0.7); + c.lineTo(w * 0.1, h * 0.7); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(w * 0.6, h * 0.4); + c.arcTo(w * 0.2, h * 0.2, 0, 0, 1, w * 0.6, h * 0.6); + + c.moveTo(w * 0.7, h * 0.3); + c.arcTo(w * 0.3, h * 0.3, 0, 0, 1, w * 0.7, h * 0.7); + + c.moveTo(w * 0.8, h * 0.2); + c.arcTo(w * 0.4, h * 0.4, 0, 0, 1, w * 0.8, h * 0.8); + c.stroke(); + +}; + +mxCellRenderer.registerShape(mxShapeMockupVolume.prototype.cst.SHAPE_VOLUME, mxShapeMockupVolume); + +//********************************************************************************************************************************************************** +//Ruler +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupRuler(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupRuler, mxShape); + +mxShapeMockupRuler.prototype.cst = { + SHAPE_RULER : 'mxgraph.mockup.misc.ruler', + ORIENTATION : 'rulerOrient', + UNIT_SIZE : 'unitSize', + FACE_UP : 'up', + FACE_DOWN : 'down' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupRuler.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupRuler.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupRuler.prototype.foreground = function(c, w, h) +{ + var facing = mxUtils.getValue(this.style, mxShapeMockupRuler.prototype.cst.ORIENTATION, mxShapeMockupRuler.prototype.cst.FACE_DOWN); + var unitSize = mxUtils.getValue(this.style, mxShapeMockupRuler.prototype.cst.UNIT_SIZE, '10'); + + unitSize = Math.max(unitSize, 1); + + var currX = unitSize; + var i = 1; + + if (facing === mxShapeMockupRuler.prototype.cst.FACE_DOWN) + { + c.begin(); + + while (currX < w) + { + var remainder = i % 10; + + if (remainder === 0) + { + c.moveTo(currX, h * 0.5); + c.lineTo(currX, h); + } + else if ( remainder === 5) + { + c.moveTo(currX, h * 0.7); + c.lineTo(currX, h); + } + else + { + c.moveTo(currX, h * 0.8); + c.lineTo(currX, h); + } + + currX = currX + unitSize; + i = i + 1; + } + + c.stroke(); + } + else if (facing === mxShapeMockupRuler.prototype.cst.FACE_UP) + { + c.begin(); + + while (currX < w) + { + var remainder = i % 10; + + if (remainder === 0) + { + c.moveTo(currX, h * 0.5); + c.lineTo(currX, 0); + } + else if ( remainder === 5) + { + c.moveTo(currX, h * 0.3); + c.lineTo(currX, 0); + } + else + { + c.moveTo(currX, h * 0.2); + c.lineTo(currX, 0); + } + + currX = currX + unitSize; + i = i + 1; + } + + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupRuler.prototype.cst.SHAPE_RULER, mxShapeMockupRuler); + +//********************************************************************************************************************************************************** +//Advanced Ruler +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupRuler2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupRuler2, mxShape); + +mxShapeMockupRuler2.prototype.cst = { + SHAPE_RULER : 'mxgraph.mockup.misc.ruler2', + ORIENTATION : 'rulerOrient', + UNIT_SIZE : 'dx', + FACE_UP : 'up', + FACE_DOWN : 'down' +}; + +mxShapeMockupRuler2.prototype.customProperties = [ + {name: 'rulerOrient', dispName: 'Orientation', defVal:'up', type: 'enum', + enumList: [{val: 'up', dispName: 'Up'}, {val: 'down', dispName: 'Down'}] + }, + {name: 'dx', dispName: 'Unit Size', type: 'float', min:0, defVal:100} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupRuler2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupRuler2.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupRuler2.prototype.foreground = function(c, x, y, w, h) +{ + var facing = mxUtils.getValue(this.style, mxShapeMockupRuler2.prototype.cst.ORIENTATION, mxShapeMockupRuler2.prototype.cst.FACE_DOWN); + var fontColor = mxUtils.getValue(this.style, mxConstants.STYLE_FONTCOLOR, '#000000'); + var dx = mxUtils.getValue(this.style, 'dx', '100'); + var unitSize = dx / 10; + this.state.style['spacingLeft'] = Math.round(1000 * Math.max(0, Math.min(w, dx))) / 1000 - 4; + + unitSize = Math.max(unitSize, 1); + + c.setFontColor(fontColor); + + var currX = unitSize; + var i = 1; + + if (facing === mxShapeMockupRuler2.prototype.cst.FACE_DOWN) + { + c.begin(); + + while (currX < w) + { + var remainder = i % 10; + + if (remainder === 0) + { + c.moveTo(currX, h - 10); + c.lineTo(currX, h); + + var unit = this.state.view.graph.getLabel(this.state.cell); + + if (!isNaN(unit)) + { + c.stroke(); + + var num = i * Math.round(100 * unit) / 1000; + + if (i != 10 && num != 0) + { + c.text(currX, (h - 10) * 0.5, 0, 0, num.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + c.begin(); + } + } + else if ( remainder === 5) + { + c.moveTo(currX, h - 6); + c.lineTo(currX, h); + } + else + { + c.moveTo(currX, h - 4); + c.lineTo(currX, h); + } + + currX = currX + unitSize; + i = i + 1; + } + + c.stroke(); + } + else if (facing === mxShapeMockupRuler2.prototype.cst.FACE_UP) + { + c.begin(); + + while (currX < w) + { + var remainder = i % 10; + + if (remainder === 0) + { + c.moveTo(currX, 10); + c.lineTo(currX, 0); + + var unit = this.state.view.graph.getLabel(this.state.cell); + + if (!isNaN(unit)) + { + c.stroke(); + + var num = i * Math.round(100 * unit) / 1000; + + if (i != 10 && num != 0) + { + c.text(currX, (h + 10) * 0.5, 0, 0, num.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + c.begin(); + } + } + else if ( remainder === 5) + { + c.moveTo(currX, 6); + c.lineTo(currX, 0); + } + else + { + c.moveTo(currX, 4); + c.lineTo(currX, 0); + } + + currX = currX + unitSize; + i = i + 1; + } + + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupRuler2.prototype.cst.SHAPE_RULER, mxShapeMockupRuler2); + +Graph.handleFactory[mxShapeMockupRuler2.prototype.cst.SHAPE_RULER] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'spacingLeft', 'align', 'varticalAlign', 'spacingBottom', 'spacingTop', 'spacingRight', 'spacing'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + bounds.height - 10); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(1000 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 1000; + this.state.style['spacingLeft'] = Math.round(1000 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 1000 - 4; + this.state.style['align'] = 'left'; + this.state.style['verticalAlign'] = 'middle'; + + var facing = mxUtils.getValue(this.state.style, 'rulerOrient', '1'); + + if (facing == 'down') + { + this.state.style['spacingBottom'] = 10; + this.state.style['spacingTop'] = 0; + } + else + { + this.state.style['spacingBottom'] = 0; + this.state.style['spacingTop'] = 10; + } + + this.state.style['spacingRight'] = 0; + this.state.style['spacing'] = 0; + })]; + + return handles; +} + +//********************************************************************************************************************************************************** +//Revision Table +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupRevisionTable(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupRevisionTable, mxShape); + +mxShapeMockupRevisionTable.prototype.cst = { + SHAPE_REVISION_TABLE : 'mxgraph.mockup.misc.revisionTable', + MAIN_TEXT : 'mainText', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupRevisionTable.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupRevisionTable.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupRevisionTable.prototype.foreground = function(c, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxShapeMockupRevisionTable.prototype.cst.MAIN_TEXT, '').toString().split(','); + var textColor = mxUtils.getValue(this.style, mxShapeMockupRevisionTable.prototype.cst.TEXT_COLOR, '#999999'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupRevisionTable.prototype.cst.TEXT_SIZE, '17'); + + c.begin(); + c.moveTo(0, h * 0.33); + c.lineTo(w, h * 0.33); + c.moveTo(0, h * 0.67); + c.lineTo(w, h * 0.67); + c.moveTo(w * 0.125, h * 0.33); + c.lineTo(w * 0.125, h); + c.moveTo(w * 0.5, h * 0.33); + c.lineTo(w * 0.5, h); + c.stroke(); + + c.setFontSize(textSize); + c.setFontColor(textColor); + + c.text(w * 0.5, h * 0.165, 0, 0, mainText[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.0625, h * 0.5, 0, 0, mainText[1], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.3125, h * 0.5, 0, 0, mainText[2], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.75, h * 0.5, 0, 0, mainText[3], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.0625, h * 0.835, 0, 0, mainText[4], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.3125, h * 0.835, 0, 0, mainText[5], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.75, h * 0.835, 0, 0, mainText[6], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + +}; + +mxCellRenderer.registerShape(mxShapeMockupRevisionTable.prototype.cst.SHAPE_REVISION_TABLE, mxShapeMockupRevisionTable); + +//********************************************************************************************************************************************************** +//Status Bar +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupStatusBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupStatusBar, mxShape); + +mxShapeMockupStatusBar.prototype.cst = { + SHAPE_STATUS_BAR : 'mxgraph.mockup.misc.statusBar', + MAIN_TEXT : 'mainText', + FILL_COLOR2 : 'fillColor2', + STROKE_COLOR2 : 'strokeColor2', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupStatusBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + w = Math.max(w, 105); + + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupStatusBar.prototype.background = function(c, w, h) +{ + c.rect(0, h * 0.5 - 15, w, 30); + c.fillAndStroke(); +}; + +mxShapeMockupStatusBar.prototype.foreground = function(c, w, h) +{ + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupStatusBar.prototype.cst.FILL_COLOR2, '#ddeeff'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeMockupStatusBar.prototype.cst.STROKE_COLOR2, '#008cff'); + var mainText = mxUtils.getValue(this.style, mxShapeMockupStatusBar.prototype.cst.MAIN_TEXT, '').toString().split(','); + var textColor = mxUtils.getValue(this.style, mxShapeMockupStatusBar.prototype.cst.TEXT_COLOR, '#999999'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupStatusBar.prototype.cst.TEXT_SIZE, '17'); + + c.setFillColor(fillColor2); + c.roundrect(5, h * 0.5 - 10, (w - 75) * 0.46, 20, 5, 5); + c.fill(); + + c.roundrect(10 + (w - 75) * 0.46, h * 0.5 - 10, (w - 75) * 0.23, 20, 5, 5); + c.fill(); + c.roundrect(15 + (w - 75) * 0.69, h * 0.5 - 10, (w - 75) * 0.276, 20, 5, 5); + c.fill(); + + c.setFontSize(textSize); + c.setFontColor(textColor); + c.text(10, h * 0.5, 0, 0, mainText[0], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(10 + (w - 75) * 0.575, h * 0.5, 0, 0, mainText[1], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(15 + (w - 75) * 0.828, h * 0.5, 0, 0, mainText[2], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setStrokeColor(strokeColor2); + c.ellipse(w - 25, h * 0.5 - 10, 20, 20); + c.stroke(); + c.begin(); + c.moveTo(w - 55, h * 0.5 + 10); + c.lineTo(w - 35, h * 0.5 + 10); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupStatusBar.prototype.cst.SHAPE_STATUS_BAR, mxShapeMockupStatusBar); + +//********************************************************************************************************************************************************** +//Pin +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupPin(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupPin, mxShape); + +mxShapeMockupPin.prototype.cst = { + SHAPE_PIN : 'mxgraph.mockup.misc.pin', + FILL_COLOR2 : 'fillColor2', + FILL_COLOR3 : 'fillColor3' +}; + +mxShapeMockupPin.prototype.customProperties = [ + {name: 'fillColor2', dispName: 'Fill2 Color', type: 'color'}, + {name: 'fillColor3', dispName: 'Fill3 Color', type: 'color'} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupPin.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupPin.prototype.cst.FILL_COLOR2, '#000000'); + var fillColor3 = mxUtils.getValue(this.style, mxShapeMockupPin.prototype.cst.FILL_COLOR3, '#000000'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setShadow(false); + c.translate(x, y); + + c.setStrokeWidth(3); + c.setStrokeColor('#666666'); + c.begin(); + c.moveTo(w * 0.5, h * 0.4); + c.lineTo(w * 0.5, h); + c.stroke(); + + c.setStrokeWidth(2); + c.setStrokeColor(strokeColor); + c.setGradient(fillColor2, fillColor3, 0, 0, w, h * 0.4, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(0.9); + c.ellipse(0, 0, w, h * 0.4); + c.fillAndStroke(); + + c.setFillColor('#ffffff'); + c.setAlpha(0.5); + c.ellipse(w * 0.2, h * 0.08, w * 0.3, h * 0.12); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupPin.prototype.cst.SHAPE_PIN, mxShapeMockupPin); + +//********************************************************************************************************************************************************** +//Rounded rectangle (adjustable rounding) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupMiscRRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupMiscRRect, mxShape); + +mxShapeMockupMiscRRect.prototype.cst = { + RRECT : 'mxgraph.mockup.misc.rrect', + R_SIZE : 'rSize' +}; + +mxShapeMockupMiscRRect.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupMiscRRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupMiscRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupMiscRRect.prototype.cst.RRECT, mxShapeMockupMiscRRect); + +//********************************************************************************************************************************************************** +//Anchor (a dummy shape without visuals used for anchoring) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupMiscAnchor(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupMiscAnchor, mxShape); + +mxShapeMockupMiscAnchor.prototype.cst = { + ANCHOR : 'mxgraph.mockup.misc.anchor' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupMiscAnchor.prototype.paintVertexShape = function(c, x, y, w, h) +{ +}; + +mxCellRenderer.registerShape(mxShapeMockupMiscAnchor.prototype.cst.ANCHOR, mxShapeMockupMiscAnchor); + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupNavigation.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupNavigation.js new file mode 100644 index 0000000000000..4afe075e49996 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupNavigation.js @@ -0,0 +1,845 @@ +/** + * $Id: mxMockupNavigation.js,v 1.5 2014/01/21 13:11:15 gaudenz Exp $ + * Copyright (c) 2006-2010, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Breadcrumb (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupBreadcrumb(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupBreadcrumb, mxShape); + +mxShapeMockupBreadcrumb.prototype.cst = { + SHAPE_BREADCRUMB : 'mxgraph.mockup.navigation.breadcrumb', + MAIN_TEXT : 'mainText', + TEXT_SIZE : 'textSize', + TEXT_COLOR : 'textColor', + TEXT_COLOR2 : 'textColor2' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupBreadcrumb.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var textStrings = mxUtils.getValue(this.style, mxShapeMockupBreadcrumb.prototype.cst.MAIN_TEXT, 'Layer 1, Layer 2, Layer 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupBreadcrumb.prototype.cst.TEXT_COLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxShapeMockupBreadcrumb.prototype.cst.TEXT_COLOR2, '#008cff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupBreadcrumb.prototype.cst.TEXT_SIZE, '17').toString(); + var separatorColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#c4c4c4'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var labelOffset = 10; + + for (var i = 0; i < buttonNum; i++) + { + buttonWidths[i] = mxUtils.getSizeForString(textStrings[i], fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 20); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + c.translate(x, y); + c.setShadow(false); + + this.separators(c, trueW, trueH, buttonNum, buttonWidths, labelOffset, minW, separatorColor); + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) + { + if (i + 1 === buttonNum) + { + c.setFontColor(selectedFontColor); + } + else + { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeMockupBreadcrumb.prototype.separators = function(c, w, h, buttonNum, buttonWidths, labelOffset, minW, separatorColor) +{ + //draw the button separators + c.setStrokeColor(separatorColor); + var midY = h * 0.5; + var size = 5; + c.begin(); + + for (var i = 1; i < buttonNum; i++) + { + var currWidth = 0; + + for (var j = 0; j < i; j++) + { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth = currWidth * w / minW; + c.moveTo(currWidth - size * 0.5, midY - size); + c.lineTo(currWidth + size * 0.5, midY); + c.lineTo(currWidth - size * 0.5, midY + size); + } + c.stroke(); +}; + +mxShapeMockupBreadcrumb.prototype.buttonText = function(c, w, h, textString, buttonWidth, fontSize, minW, trueW) +{ + c.begin(); + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, h * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupBreadcrumb.prototype.cst.SHAPE_BREADCRUMB, mxShapeMockupBreadcrumb); + +//********************************************************************************************************************************************************** +//Step Bar +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupStepBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupStepBar, mxShape); + +mxShapeMockupStepBar.prototype.cst = { + SHAPE_STEP_BAR : 'mxgraph.mockup.navigation.stepBar', + SELECTED : '+', //must be 1 char + MAIN_TEXT : 'mainText', + TEXT_SIZE : 'textSize', + TEXT_COLOR : 'textColor', + TEXT_COLOR2 : 'textColor2' +}; + +mxShapeMockupStepBar.prototype.customProperties = [ + {name: 'mainText', dispName: 'Text', type: 'string'}, + {name: 'textSize', dispName: 'Text Size', type: 'float'}, + {name: 'textColor', dispName: 'Text Color', type: 'color'}, + {name: 'textColor2', dispName: 'Text2 Color', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupStepBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var textStrings = mxUtils.getValue(this.style, mxShapeMockupStepBar.prototype.cst.MAIN_TEXT, 'Step 1, Step 2, Step 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupStepBar.prototype.cst.TEXT_COLOR, '#666666'); + var currColor = mxUtils.getValue(this.style, mxShapeMockupStepBar.prototype.cst.TEXT_COLOR2, '#008cff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupStepBar.prototype.cst.TEXT_SIZE, '17').toString(); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#c4c4c4'); + var doneColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#666666'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var labelOffset = 10; + var selectedButton = -1; + + for (var i = 0; i < buttonNum; i++) + { + var buttonText = textStrings[i]; + + if(buttonText.charAt(0) === mxShapeMockupStepBar.prototype.cst.SELECTED) + { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + buttonWidths[i] = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 20); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + c.translate(x, y); + + this.stepLineBg(c, trueW, trueH, buttonNum, buttonWidths, labelOffset, minW, bgColor, fontSize, trueW); + c.setShadow(false); + + this.stepLineFg(c, trueW, trueH, buttonNum, buttonWidths, labelOffset, minW, bgColor, doneColor, currColor, fontSize, trueW, selectedButton); + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) + { + if (i >= selectedButton) + { + c.setFontColor(currColor); + } + else + { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeMockupStepBar.prototype.stepLineBg = function(c, w, h, buttonNum, buttonWidths, labelOffset, minW, bgColor, fontSize, trueW) +{ + //draw the button separators + c.setStrokeColor(bgColor); + c.setFillColor(bgColor); + var midY = fontSize * 2; + var size = 10; + var startX = 0; + var endX = 0; + + for (var i = 0; i < buttonNum; i++) + { + var currWidth = 0; + + for (var j = 0; j < i; j++) + { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth += buttonWidths[i] * 0.5 + labelOffset; + + currWidth = currWidth * w / minW; + + if (i === 0) + { + startX = currWidth; + } + else if (i + 1 === buttonNum) + { + endX = currWidth; + } + + c.begin(); + c.ellipse(currWidth - size, midY - size, 2 * size, 2 * size); + c.fillAndStroke(); + } + + c.begin(); + c.rect(startX, midY - size * 0.2, endX - startX, size * 0.4); + c.fillAndStroke(); +}; + +mxShapeMockupStepBar.prototype.stepLineFg = function(c, w, h, buttonNum, buttonWidths, labelOffset, minW, bgColor, doneColor, currColor, fontSize, trueW, selectedButton) +{ + //draw the button separators + c.setStrokeColor(doneColor); + var midY = fontSize * 2; + var size = 10 * 0.75; + var startX = 0; + var endX = 0; + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + + for (var i = 0; i <= selectedButton; i++) + { + var currWidth = 0; + + for (var j = 0; j < i; j++) + { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth += buttonWidths[i] * 0.5 + labelOffset; + + currWidth = currWidth * w / minW; + + if (i === 0) + { + startX = currWidth; + } + else if (i === selectedButton) + { + endX = currWidth; + } + } + + c.setFillColor(doneColor); + c.begin(); + c.rect(startX, midY - size * 0.15, endX - startX, size * 0.3); + c.fill(); + c.setFillColor(bgColor); + + for (var i = 0; i <= selectedButton; i++) + { + var currWidth = 0; + + for (var j = 0; j < i; j++) + { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth += buttonWidths[i] * 0.5 + labelOffset; + + currWidth = currWidth * w / minW; + + if (i === 0) + { + startX = currWidth; + } + else if (i + 1 === selectedButton) + { + endX = currWidth; + } + + if (i < selectedButton) + { + c.setStrokeWidth(strokeWidth); + c.begin(); + c.ellipse(currWidth - size, midY - size, 2 * size, 2 * size); + c.fillAndStroke(); + + c.setStrokeWidth(strokeWidth * 0.5); + c.begin(); + c.ellipse(currWidth - size * 0.6, midY - size * 0.6, 2 * size * 0.6, 2 * size * 0.6); + c.fillAndStroke(); + } + else + { + c.setStrokeWidth(strokeWidth); + c.setFillColor(bgColor); + c.setStrokeColor(bgColor); + c.begin(); + c.ellipse(currWidth - size / 0.75, midY - size / 0.75, 2 * size / 0.75, 2 * size / 0.75); + c.fillAndStroke(); + + c.setStrokeWidth(strokeWidth); + c.setFillColor('#ffffff'); + c.setStrokeColor('#ffffff'); + c.begin(); + c.ellipse(currWidth - size, midY - size, 2 * size, 2 * size); + c.fillAndStroke(); + + c.setFillColor(currColor); + c.setStrokeColor(currColor); + c.setStrokeWidth(strokeWidth * 0.5); + c.begin(); + c.ellipse(currWidth - size * 0.7, midY - size * 0.7, 2 * size * 0.7, 2 * size * 0.7); + c.fillAndStroke(); + } + } +}; + +mxShapeMockupStepBar.prototype.buttonText = function(c, w, h, textString, buttonWidth, fontSize, minW, trueW) +{ + if(textString.charAt(0) === mxShapeMockupStepBar.prototype.cst.SELECTED) + { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, fontSize * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeMockupStepBar.prototype.cst.SHAPE_STEP_BAR, mxShapeMockupStepBar); + +//********************************************************************************************************************************************************** +//Cover Flow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupCoverFlow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupCoverFlow, mxShape); + +mxShapeMockupCoverFlow.prototype.cst = { + SHAPE_COVER_FLOW : 'mxgraph.mockup.navigation.coverFlow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupCoverFlow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(w * 0.0924, h * 0.07); + c.lineTo(w * 0.005, h * 0.01); + c.lineTo(w * 0.005, h * 0.99); + c.lineTo(w * 0.0924, h * 0.93); + + c.moveTo(w * 0.1774, h * 0.09); + c.lineTo(w * 0.0924, h * 0.01); + c.lineTo(w * 0.0924, h * 0.99); + c.lineTo(w * 0.1774, h * 0.91); + + c.moveTo(w * 0.3373, h * 0.22); + c.lineTo(w * 0.1774, h * 0.01); + c.lineTo(w * 0.1774, h * 0.99); + c.lineTo(w * 0.3373, h * 0.78); + + c.moveTo(w * 0.912, h * 0.07); + c.lineTo(w * 0.998, h * 0.01); + c.lineTo(w * 0.998, h * 0.99); + c.lineTo(w * 0.912, h * 0.93); + + c.moveTo(w * 0.8271, h * 0.09); + c.lineTo(w * 0.912, h * 0.01); + c.lineTo(w * 0.912, h * 0.99); + c.lineTo(w * 0.8271, h * 0.91); + + c.moveTo(w * 0.6672, h * 0.22); + c.lineTo(w * 0.8271, h * 0.01); + c.lineTo(w * 0.8271, h * 0.99); + c.lineTo(w * 0.6672, h * 0.78); + + c.moveTo(w * 0.3373, h * 0.005); + c.lineTo(w * 0.3373, h * 0.995); + c.lineTo(w * 0.6672, h * 0.995); + c.lineTo(w * 0.6672, h * 0.005); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupCoverFlow.prototype.cst.SHAPE_COVER_FLOW, mxShapeMockupCoverFlow); + +//********************************************************************************************************************************************************** +//Scroll Bar +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupScrollBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupScrollBar, mxShape); + +mxShapeMockupScrollBar.prototype.cst = { + SHAPE_SCROLL_BAR : 'mxgraph.mockup.navigation.scrollBar', + FILL_COLOR2 : 'fillColor2', + STROKE_COLOR2 : 'strokeColor2', + BAR_POS : 'barPos' +}; + +mxShapeMockupScrollBar.prototype.customProperties = [ + {name: 'barPos', dispName: 'Handle Position', type: 'float'}, + {name: 'fillColor2', dispName: 'Fill2 Color', type: 'color'}, + {name: 'strokeColor2', dispName: 'Stroke2 Color', type: 'color'} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupScrollBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + h = 20; + var buttonX = 20; + w = Math.max(w, 2 * buttonX); + + c.translate(x, y); + this.background(c, w, h, buttonX); + c.setShadow(false); + this.foreground(c, w, h, buttonX); + this.barPos = 20; +}; + +mxShapeMockupScrollBar.prototype.background = function(c, w, h, buttonX) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.begin(); + c.moveTo(buttonX, 0); + c.lineTo(buttonX, h); + c.moveTo(w - buttonX, 0); + c.lineTo(w - buttonX, h); + c.stroke(); +} + +mxShapeMockupScrollBar.prototype.foreground = function(c, w, h, buttonX) +{ + var barPos = mxUtils.getValue(this.style, mxShapeMockupScrollBar.prototype.cst.BAR_POS, '20'); + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupScrollBar.prototype.cst.FILL_COLOR2, '#99ddff'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeMockupScrollBar.prototype.cst.STROKE_COLOR2, 'none'); + + barPos = Math.max(0, barPos); + barPos = Math.min(100, barPos); + + c.setStrokeColor(strokeColor2); + c.setFillColor(fillColor2); + + c.begin(); + c.moveTo(buttonX * 0.2, h * 0.5); + c.lineTo(buttonX * 0.8, h * 0.2); + c.lineTo(buttonX * 0.8, h * 0.8); + c.close(); + c.moveTo(w - buttonX * 0.2, h * 0.5); + c.lineTo(w - buttonX * 0.8, h * 0.2); + c.lineTo(w - buttonX * 0.8, h * 0.8); + c.close(); + c.fillAndStroke(); + + //draw the handle based on arg.barPos + var barWidth = 60; + var barMin = buttonX; + var barMax = w - buttonX; + barWidth = Math.min(barWidth, barMax - barMin); + var barCenterMin = barMin + barWidth / 2; + var barCenterMax = barMax - barWidth / 2; + var barCenterRange = barCenterMax - barCenterMin; + var barCenterPos = barCenterRange * barPos / 100; + var barStart = barMin + barCenterPos; + + c.roundrect(barStart, h * 0.15, barWidth, h * 0.7, 5, 5); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupScrollBar.prototype.cst.SHAPE_SCROLL_BAR, mxShapeMockupScrollBar); + +Graph.handleFactory[mxShapeMockupScrollBar.prototype.cst.SHAPE_SCROLL_BAR] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'barPos', this.barPos)))); + + return new mxPoint(bounds.x + ((bounds.width - 100) * barPos / bounds.width) / 100 * bounds.width + 50, bounds.y + 10); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(1000 * Math.max(0, Math.min(100, (pt.x - bounds.x - 50) * 100 / (bounds.width - 100)))) / 1000; + })]; + + return handles; +} + +//********************************************************************************************************************************************************** +//Pagination +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupPagination(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupPagination, mxShape); + +mxShapeMockupPagination.prototype.cst = { + MAIN_TEXT : 'linkText', + TEXT_SIZE : 'textSize', + TEXT_COLOR : 'textColor', + SHAPE_PAGINATION : 'mxgraph.mockup.navigation.pagination' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupPagination.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxShapeMockupPagination.prototype.cst.MAIN_TEXT, '0-9 A B C D E F G H I J K L M N O P Q R S T U V X Y Z'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupPagination.prototype.cst.TEXT_SIZE, '17'); + var textColor = mxUtils.getValue(this.style, mxShapeMockupPagination.prototype.cst.TEXT_COLOR, '#0000ff'); + + c.translate(x, y); + var width = mxUtils.getSizeForString(mainText, textSize, mxConstants.DEFAULT_FONTFAMILY).width; + c.setStrokeColor(textColor); + c.setFontSize(textSize); + c.setFontColor(textColor); + c.text(w * 0.5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.begin(); + c.moveTo(w * 0.5 - width * 0.5, (h + parseInt(textSize, 10)) * 0.5); + c.lineTo(w * 0.5 + width * 0.5, (h + parseInt(textSize, 10)) * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupPagination.prototype.cst.SHAPE_PAGINATION, mxShapeMockupPagination); + +//********************************************************************************************************************************************************** +//Page Control +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupPageControl(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupPageControl, mxShape); + +mxShapeMockupPageControl.prototype.cst = { + SHAPE_PAGE_CONTROL : 'mxgraph.mockup.navigation.pageControl' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupPageControl.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#000000'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + + var rSize = Math.min(h * 0.5, w * 0.05); + c.setFillColor(strokeColor); + c.ellipse(0, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.setFillColor(fillColor); + c.ellipse(w * 0.35 - rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w * 0.65 - rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w - 2 * rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeMockupPageControl.prototype.cst.SHAPE_PAGE_CONTROL, mxShapeMockupPageControl); + +//********************************************************************************************************************************************************** +//Map Navigator +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupMapNavigator(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupMapNavigator, mxShape); + +mxShapeMockupMapNavigator.prototype.cst = { + SHAPE_MAP_NAVIGATOR : 'mxgraph.mockup.navigation.mapNavigator', + FILL_COLOR2 : 'fillColor2', + STROKE_COLOR2 : 'strokeColor2', + STROKE_COLOR3 : 'strokeColor3' +}; + +mxShapeMockupMapNavigator.prototype.customProperties = [ + {name: 'fillColor2', dispName: 'Fill2 Color', type: 'color'}, + {name: 'strokeColor2', dispName: 'Stroke2 Color', type: 'color'}, + {name: 'strokeColor3', dispName: 'Stroke3 Color', type: 'color'} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupMapNavigator.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupMapNavigator.prototype.background = function(c, w, h) +{ + c.ellipse(0, 0, w, h * 0.6); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.35, h * 0.584); + c.lineTo(w * 0.35, h * 0.95); + c.arcTo(w * 0.083, h * 0.05, 0, 0, 0, w * 0.43, h); + c.lineTo(w * 0.56, h); + c.arcTo(w * 0.083, h * 0.05, 0, 0, 0, w * 0.65, h * 0.95); + c.lineTo(w * 0.65, h * 0.584); + c.fillAndStroke(); +} + +mxShapeMockupMapNavigator.prototype.foreground = function(c, w, h) +{ + var fillColor2 = mxUtils.getValue(this.style, mxShapeMockupMapNavigator.prototype.cst.FILL_COLOR2, '#99ddff'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeMockupMapNavigator.prototype.cst.STROKE_COLOR2, 'none'); + var strokeColor3 = mxUtils.getValue(this.style, mxShapeMockupMapNavigator.prototype.cst.STROKE_COLOR3, '#ffffff'); + + c.setFillColor(fillColor2); + c.setStrokeColor(strokeColor2); + c.ellipse(w * 0.4, h * 0.65, w * 0.2, h * 0.12); + c.fillAndStroke(); + c.ellipse(w * 0.4, h * 0.85, w * 0.2, h * 0.12); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.1806, h * 0.34); + c.lineTo(w * 0.1357, h * 0.366); + c.lineTo(w * 0.0228, h * 0.3); + c.lineTo(w * 0.1357, h * 0.234); + c.lineTo(w * 0.1806, h * 0.26); + c.lineTo(w * 0.1142, h * 0.3); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.433, h * 0.108); + c.lineTo(w * 0.3881, h * 0.08); + c.lineTo(w * 0.4994, h * 0.012); + c.lineTo(w * 0.6123, h * 0.08); + c.lineTo(w * 0.5658, h * 0.108); + c.lineTo(w * 0.4994, h * 0.068); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8198, h * 0.262); + c.lineTo(w * 0.868, h * 0.233); + c.lineTo(w * 0.9776, h * 0.3); + c.lineTo(w * 0.868, h * 0.367); + c.lineTo(w * 0.8198, h * 0.341); + c.lineTo(w * 0.8863, h * 0.3); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5641, h * 0.493); + c.lineTo(w * 0.6123, h * 0.522); + c.lineTo(w * 0.4994, h * 0.588); + c.lineTo(w * 0.3881, h * 0.521); + c.lineTo(w * 0.4363, h * 0.493); + c.lineTo(w * 0.4994, h * 0.533); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.3333, h * 0.32); + c.lineTo(w * 0.3333, h * 0.28); + c.lineTo(w * 0.4163, h * 0.3); + c.close(); + c.moveTo(w * 0.4662, h * 0.2); + c.lineTo(w * 0.5326, h * 0.2); + c.lineTo(w * 0.4994, h * 0.25); + c.close() + c.moveTo(w * 0.6654, h * 0.28); + c.lineTo(w * 0.6654, h * 0.32); + c.lineTo(w * 0.5824, h * 0.3); + c.close(); + c.moveTo(w * 0.5326, h * 0.4); + c.lineTo(w * 0.4662, h * 0.4); + c.lineTo(w * 0.4994, h * 0.35); + c.close(); + c.fillAndStroke(); + + c.setStrokeWidth(2); + c.setStrokeColor(strokeColor3); + + c.begin(); + c.moveTo(w * 0.5, h * 0.67); + c.lineTo(w * 0.5, h * 0.75); + c.moveTo(w * 0.43, h * 0.71); + c.lineTo(w * 0.57, h * 0.71); + c.moveTo(w * 0.43, h * 0.91); + c.lineTo(w * 0.57, h * 0.91); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupMapNavigator.prototype.cst.SHAPE_MAP_NAVIGATOR, mxShapeMockupMapNavigator); + +//********************************************************************************************************************************************************** +//Anchor (a dummy shape without visuals used for anchoring) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupNavigationAnchor(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupNavigationAnchor, mxShape); + +mxShapeMockupNavigationAnchor.prototype.cst = { + ANCHOR : 'mxgraph.mockup.navigation.anchor' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupNavigationAnchor.prototype.paintVertexShape = function(c, x, y, w, h) +{ +}; + +mxCellRenderer.registerShape(mxShapeMockupNavigationAnchor.prototype.cst.ANCHOR, mxShapeMockupNavigationAnchor); + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupText.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupText.js new file mode 100644 index 0000000000000..6b53a743c2e4a --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupText.js @@ -0,0 +1,867 @@ +/** + * $Id: mxMockupText.js,v 1.4 2013/05/24 07:12:36 mate Exp $ + * Copyright (c) 2006-2010, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Link +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupLink(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupLink, mxShape); + +mxShapeMockupLink.prototype.cst = { + LINK_TEXT : 'linkText', + TEXT_SIZE : 'textSize', + TEXT_COLOR : 'textColor', + SHAPE_LINK : 'mxgraph.mockup.text.link' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupLink.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var linkText = mxUtils.getValue(this.style, mxShapeMockupLink.prototype.cst.LINK_TEXT, 'Link'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupLink.prototype.cst.TEXT_SIZE, '17'); + var textColor = mxUtils.getValue(this.style, mxShapeMockupLink.prototype.cst.TEXT_COLOR, '#0000ff'); + + c.translate(x, y); + var width = mxUtils.getSizeForString(linkText, textSize, mxConstants.DEFAULT_FONTFAMILY).width; + c.setStrokeColor(textColor); + c.setFontSize(textSize); + c.setFontColor(textColor); + + c.text(w * 0.5, h * 0.5, 0, 0, linkText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.begin(); + c.moveTo(w * 0.5 - width * 0.5, (h + parseInt(textSize, 10)) * 0.5); + c.lineTo(w * 0.5 + width * 0.5, (h + parseInt(textSize, 10)) * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupLink.prototype.cst.SHAPE_LINK, mxShapeMockupLink); + +//********************************************************************************************************************************************************** +//Link Bar +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupLinkBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupLinkBar, mxShape); + +mxShapeMockupLinkBar.prototype.cst = { + MAIN_TEXT : 'mainText', + SHAPE_LINK_BAR : 'mxgraph.mockup.text.linkBar', + TEXT_COLOR : 'textColor', + TEXT_COLOR2 : 'textColor2', + STROKE_COLOR2 : 'strokeColor2', + FILL_COLOR2 : 'fillColor2', + SELECTED : '+', //must be 1 char + TEXT_SIZE : 'textSize' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupLinkBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var textStrings = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.MAIN_TEXT, '+Button 1, Button 2, Button 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.TEXT_COLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.TEXT_COLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.TEXT_SIZE, '17').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var separatorColor = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.STROKE_COLOR2, '#c4c4c4'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var selectedFillColor = mxUtils.getValue(this.style, mxShapeMockupLinkBar.prototype.cst.FILL_COLOR2, '#008cff'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var selectedButton = -1; + var rSize = 10; //rounding size + var labelOffset = 5; + + for (var i = 0; i < buttonNum; i++) + { + var buttonText = textStrings[i]; + + if(buttonText.charAt(0) === mxShapeMockupLinkBar.prototype.cst.SELECTED) + { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + var currW = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currW === 0) + { + buttonWidths[i] = 42; + } + else + { + buttonWidths[i] = currW; + } + + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 20); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + + c.translate(x, y); + this.background(c, trueW, trueH, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton); + c.setShadow(false); + + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) + { + if (i === selectedButton) + { + c.setFontColor(selectedFontColor); + c.setStrokeColor(selectedFontColor); + } + else + { + c.setFontColor(fontColor); + c.setStrokeColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeMockupLinkBar.prototype.background = function(c, w, h, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton) +{ + c.begin(); + + //draw the frame + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.rect(0, 0, w, h); + c.fillAndStroke(); + + //draw the button separators + c.setStrokeColor(separatorColor); + c.begin(); + + for (var i = 1; i < buttonNum; i++) + { + if (i !== selectedButton && i !== (selectedButton + 1)) + { + var currWidth = 0; + + for (var j = 0; j < i; j++) + { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth = currWidth * w / minW; + c.moveTo(currWidth, 0); + c.lineTo(currWidth, h); + } + } + + c.stroke(); + + //draw the selected button + var buttonLeft = 0; + c.setFillColor(selectedFillColor); + + for (var i = 0; i < selectedButton; i++) + { + buttonLeft += buttonWidths[i] + 2 * labelOffset; + } + + buttonLeft = buttonLeft * w / minW; + var buttonRight = (buttonWidths[selectedButton] + 2 * labelOffset) * w / minW; + buttonRight += buttonLeft; + + if (selectedButton === 0) + { + c.rect(0, 0, buttonRight, h); + c.fill(); + } + else if (selectedButton === buttonNum - 1) + { + c.rect(buttonLeft, 0, buttonRight - buttonLeft, h); + c.fill(); + } + else if (selectedButton !== -1) + { + c.rect(buttonLeft, 0, buttonRight - buttonLeft, h); + c.fill(); + } + + //draw the frame again, to achieve a nicer effect + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.rect(0, 0, w, h); + c.stroke(); +}; + +mxShapeMockupLinkBar.prototype.buttonText = function(c, w, h, textString, buttonWidth, fontSize, minW, trueW) +{ + if(textString.charAt(0) === mxShapeMockupLinkBar.prototype.cst.SELECTED) + { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, h * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + var textW = mxUtils.getSizeForString(textString, fontSize, mxConstants.DEFAULT_FONTFAMILY).width * 0.5; + + if (textString !== null && textString !== '') + { + c.begin(); + c.moveTo((w + buttonWidth * 0.5) * trueW / minW - textW, h * 0.5 + fontSize * 0.5); + c.lineTo((w + buttonWidth * 0.5) * trueW / minW + textW, h * 0.5 + fontSize * 0.5); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupLinkBar.prototype.cst.SHAPE_LINK_BAR, mxShapeMockupLinkBar); + +//********************************************************************************************************************************************************** +//Callout +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupCallout(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupCallout, mxShape); + +mxShapeMockupCallout.prototype.cst = { + CALLOUT_TEXT : 'linkText', + CALLOUT_DIR : 'callDir', + CALLOUT_STYLE : 'callStyle', + STYLE_LINE : 'line', + STYLE_RECT : 'rect', + STYLE_ROUNDRECT : 'roundRect', + DIR_NW : 'NW', + DIR_NE : 'NE', + DIR_SE : 'SE', + DIR_SW : 'SW', + TEXT_SIZE : 'textSize', + TEXT_COLOR : 'textColor', + SHAPE_CALLOUT : 'mxgraph.mockup.text.callout' +}; + +mxShapeMockupCallout.prototype.customProperties = [ + {name: 'callDir', dispName: 'Direction', type: 'enum', + enumList:[{val: 'NW', dispName:'North-West'}, + {val: 'NE', dispName:'North-East'}, + {val: 'SE', dispName:'South-East'}, + {val: 'SW', dispName:'South-West'}]}, + {name: 'callStyle', dispName: 'Style', type: 'enum', + enumList:[{val: 'line', dispName:'Line'}, + {val: 'rect', dispName:'Rectangle'}]} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupCallout.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var calloutText = mxUtils.getValue(this.style, mxShapeMockupCallout.prototype.cst.CALLOUT_TEXT, 'Callout'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupCallout.prototype.cst.TEXT_SIZE, '17'); + var textColor = mxUtils.getValue(this.style, mxShapeMockupCallout.prototype.cst.TEXT_COLOR, '#666666'); + var callStyle = mxUtils.getValue(this.style, mxShapeMockupCallout.prototype.cst.CALLOUT_STYLE, mxShapeMockupCallout.prototype.cst.STYLE_LINE); + var callDir = mxUtils.getValue(this.style, mxShapeMockupCallout.prototype.cst.CALLOUT_DIR, mxShapeMockupCallout.prototype.cst.DIR_NW); + var textWidth = mxUtils.getSizeForString(calloutText, textSize, mxConstants.DEFAULT_FONTFAMILY).width; + textWidth = textWidth * 1.2; + + if (textWidth == 0) + { + textWidth = 70; + } + + c.translate(x, y); + c.setFontSize(textSize); + c.setFontColor(textColor); + var callH = textSize * 1.5; + + if (callDir === mxShapeMockupCallout.prototype.cst.DIR_NW) + { + if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_LINE) + { + c.begin(); + c.moveTo(0, callH); + c.lineTo(textWidth, callH); + c.lineTo(w, h); + c.stroke(); + } + else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_RECT) + { + c.rect(0,0, textWidth, callH); + c.fillAndStroke(); + c.begin(); + c.moveTo(textWidth * 0.5, callH); + c.lineTo(w, h); + c.stroke(); + } + else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT) + { + c.roundrect(0, 0, textWidth, callH, callH * 0.25, callH * 0.25); + c.fillAndStroke(); + c.begin(); + c.moveTo(textWidth * 0.5, callH); + c.lineTo(w, h); + c.stroke(); + } + + c.text(textWidth * 0.5, callH * 0.5, 0, 0, calloutText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (callDir === mxShapeMockupCallout.prototype.cst.DIR_NE) + { + if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_LINE) + { + c.begin(); + c.moveTo(w, callH); + c.lineTo(w - textWidth, callH); + c.lineTo(0, h); + c.stroke(); + } + else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_RECT) + { + c.rect(w - textWidth,0, textWidth, callH); + c.fillAndStroke(); + c.begin(); + c.moveTo(w - textWidth * 0.5, callH); + c.lineTo(0, h); + c.stroke(); + } + else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT) + { + c.roundrect(w - textWidth,0, textWidth, callH, callH * 0.25, callH * 0.25); + c.fillAndStroke(); + c.begin(); + c.moveTo(w - textWidth * 0.5, callH); + c.lineTo(0, h); + c.stroke(); + } + + c.text(w - textWidth * 0.5, callH * 0.5, 0, 0, calloutText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (callDir === mxShapeMockupCallout.prototype.cst.DIR_SE) + { + if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_LINE) + { + c.begin(); + c.moveTo(w, h); + c.lineTo(w - textWidth, h); + c.lineTo(0, 0); + c.stroke(); + } + else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_RECT) + { + c.rect(w - textWidth, h - callH, textWidth, callH); + c.fillAndStroke(); + c.begin(); + c.moveTo(w - textWidth * 0.5, h - callH); + c.lineTo(0, 0); + c.stroke(); + } + else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT) + { + c.roundrect(w - textWidth,h - callH, textWidth, callH, callH * 0.25, callH * 0.25); + c.fillAndStroke(); + c.begin(); + c.moveTo(w - textWidth * 0.5, h - callH); + c.lineTo(0, 0); + c.stroke(); + } + + c.text(w - textWidth * 0.5, h - callH * 0.5, 0, 0, calloutText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (callDir === mxShapeMockupCallout.prototype.cst.DIR_SW) + { + if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_LINE) + { + c.begin(); + c.moveTo(0, h); + c.lineTo(textWidth, h); + c.lineTo(w, 0); + c.stroke(); + } + else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_RECT) + { + c.rect(0, h - callH, textWidth, callH); + c.fillAndStroke(); + c.begin(); + c.moveTo(textWidth * 0.5, h - callH); + c.lineTo(w, 0); + c.stroke(); + } + else if (callStyle === mxShapeMockupCallout.prototype.cst.STYLE_ROUNDRECT) + { + c.roundrect(0, h - callH, textWidth, callH, callH * 0.25, callH * 0.25); + c.fillAndStroke(); + c.begin(); + c.moveTo(textWidth * 0.5, h - callH); + c.lineTo(w, 0); + c.stroke(); + } + + c.text(textWidth * 0.5, h - callH * 0.5, 0, 0, calloutText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + +}; + +mxCellRenderer.registerShape(mxShapeMockupCallout.prototype.cst.SHAPE_CALLOUT, mxShapeMockupCallout); + +//********************************************************************************************************************************************************** +//Sticky Note +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupStickyNote(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupStickyNote, mxShape); + +mxShapeMockupStickyNote.prototype.cst = { + MAIN_TEXT : 'mainText', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize', + SHAPE_STICKY_NOTE : 'mxgraph.mockup.text.stickyNote' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupStickyNote.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupStickyNote.prototype.background = function(c, w, h) +{ + c.setFillColor('#ffffcc'); + c.begin(); + c.moveTo(w * 0.03, h * 0.07); + c.lineTo(w * 0.89, h * 0.06); + c.arcTo(2.81 * w, 2.92 * h, 1, 0, 0, w * 0.99, h * 0.98); + c.lineTo(w * 0.09, h * 0.99); + c.arcTo(2.81 * w, 2.92 * h, 1, 0, 1, w * 0.03, h * 0.07); + c.close(); + c.fill(); +}; + +mxShapeMockupStickyNote.prototype.foreground = function(c, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxShapeMockupStickyNote.prototype.cst.MAIN_TEXT, 'Note line 1,Note line 2,Note line 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupStickyNote.prototype.cst.TEXT_COLOR, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupStickyNote.prototype.cst.TEXT_SIZE, '17').toString(); + + c.setFillColor('#ff3300'); + c.begin(); + c.moveTo(w * 0.28 , 0); + c.lineTo(w * 0.59, 0); + c.lineTo(w * 0.6, h * 0.12); + c.lineTo(w * 0.28, h * 0.13); + c.close(); + c.fill(); + + c.setFontSize(fontSize); + c.setFontColor(fontColor); + var lineNum = mainText.length; + var textH = lineNum * fontSize * 1.5; + + for (var i = 0; i < mainText.length; i++) + { + c.text(w / 2, (h - textH) / 2 + i * fontSize * 1.5 + fontSize * 0.75, 0, 0, mainText[i], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupStickyNote.prototype.cst.SHAPE_STICKY_NOTE, mxShapeMockupStickyNote); + +//********************************************************************************************************************************************************** +//Bulleted List +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupBulletedList(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupBulletedList, mxShape); + +mxShapeMockupBulletedList.prototype.cst = { + MAIN_TEXT : 'mainText', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize', + BULLET_STYLE : 'bulletStyle', + STYLE_HYPHEN : 'hyphen', + STYLE_NUM : 'number', + STYLE_DOT : 'dot', + SHAPE_BULLETED_LIST : 'mxgraph.mockup.text.bulletedList' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupBulletedList.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupBulletedList.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupBulletedList.prototype.foreground = function(c, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxShapeMockupBulletedList.prototype.cst.MAIN_TEXT, 'Note line 1,Note line 2,Note line 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupBulletedList.prototype.cst.TEXT_COLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupBulletedList.prototype.cst.TEXT_SIZE, '17'); + var bulletStyle = mxUtils.getValue(this.style, mxShapeMockupBulletedList.prototype.cst.BULLET_STYLE, 'none'); + + c.setFontColor(fontColor); + c.setFontSize(fontSize); + + var bullet = ''; + + for (var i = 0; i < mainText.length; i++) + { + var currText = ''; + + if (bulletStyle === mxShapeMockupBulletedList.prototype.cst.STYLE_NUM) + { + currText = (i + 1) + ') ' + mainText[i]; + } + else if (bulletStyle === mxShapeMockupBulletedList.prototype.cst.STYLE_HYPHEN) + { + currText = '- ' + mainText[i]; + } + else if(bulletStyle === mxShapeMockupBulletedList.prototype.cst.STYLE_DOT) + { + currText = String.fromCharCode(8226) + ' ' + mainText[i]; + } + else + { + currText = ' ' + mainText[i]; + } + + c.text(10, i * fontSize * 1.5 + fontSize * 0.75, 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupBulletedList.prototype.cst.SHAPE_BULLETED_LIST, mxShapeMockupBulletedList); + +//********************************************************************************************************************************************************** +//Text Box +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupTextBox(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupTextBox, mxShape); + +mxShapeMockupTextBox.prototype.cst = { + MAIN_TEXT : 'mainText', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize', + SHAPE_TEXT_BOX : 'mxgraph.mockup.text.textBox' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupTextBox.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupTextBox.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupTextBox.prototype.foreground = function(c, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxShapeMockupTextBox.prototype.cst.MAIN_TEXT, 'Note line 1').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupTextBox.prototype.cst.TEXT_COLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupTextBox.prototype.cst.TEXT_SIZE, '17'); + + c.setFontColor(fontColor); + c.setFontSize(fontSize); + + for (var i = 0; i < mainText.length; i++) + { + c.text(5, i * fontSize * 1.5 + fontSize * 0.75, 0, 0, mainText[i], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxShapeMockupTextBox.prototype.cst.SHAPE_TEXT_BOX, mxShapeMockupTextBox); + +//********************************************************************************************************************************************************** +//Captcha +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupCaptcha(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupCaptcha, mxShape); + +mxShapeMockupCaptcha.prototype.cst = { + MAIN_TEXT : 'mainText', + TEXT_COLOR : 'textColor', + TEXT_SIZE : 'textSize', + SHAPE_CAPTCHA : 'mxgraph.mockup.text.captcha' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupCaptcha.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxShapeMockupCaptcha.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupCaptcha.prototype.foreground = function(c, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxShapeMockupCaptcha.prototype.cst.MAIN_TEXT, 'Note line 1'); + var fontColor = mxUtils.getValue(this.style, mxShapeMockupCaptcha.prototype.cst.TEXT_COLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxShapeMockupCaptcha.prototype.cst.TEXT_SIZE, '25'); + + c.setFillColor('#88aaff'); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.35, 0); + c.lineTo(w * 0.55, h * 0.85); + c.lineTo(w * 0.4, h * 0.75); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(w * 0.7, h * 0.1); + c.lineTo(w * 0.95, h * 0.23); + c.lineTo(w, h * 0.4); + c.lineTo(w, h * 0.9); + c.lineTo(w, h); + c.lineTo(w * 0.8, h); + c.close(); + c.fill(); + + c.setFontColor(fontColor); + c.setFontSize(fontSize); + + c.text(w * 0.5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.rect(0, 0, w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupCaptcha.prototype.cst.SHAPE_CAPTCHA, mxShapeMockupCaptcha); + +//********************************************************************************************************************************************************** +//Alphanumeric +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupAlphanumeric(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupAlphanumeric, mxShape); + +mxShapeMockupAlphanumeric.prototype.cst = { + MAIN_TEXT : 'linkText', + TEXT_SIZE : 'textSize', + TEXT_COLOR : 'textColor', + SHAPE_ALPHANUMERIC : 'mxgraph.mockup.text.alphanumeric' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupAlphanumeric.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxShapeMockupAlphanumeric.prototype.cst.MAIN_TEXT, '0-9 A B C D E F G H I J K L M N O P Q R S T U V X Y Z'); + var textSize = mxUtils.getValue(this.style, mxShapeMockupAlphanumeric.prototype.cst.TEXT_SIZE, '17'); + var textColor = mxUtils.getValue(this.style, mxShapeMockupAlphanumeric.prototype.cst.TEXT_COLOR, '#0000ff'); + + c.translate(x, y); + var width = mxUtils.getSizeForString(mainText, textSize, mxConstants.DEFAULT_FONTFAMILY).width; + c.setStrokeColor(textColor); + c.setFontSize(textSize); + c.setFontColor(textColor); + c.text(w * 0.5, h * 0.5, 0, 0, mainText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.begin(); + c.moveTo(w * 0.5 - width * 0.5, (h + parseInt(textSize, 10)) * 0.5); + c.lineTo(w * 0.5 + width * 0.5, (h + parseInt(textSize, 10)) * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupAlphanumeric.prototype.cst.SHAPE_ALPHANUMERIC, mxShapeMockupAlphanumeric); + +//********************************************************************************************************************************************************** +//Rounded rectangle (adjustable rounding) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupTextRRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupTextRRect, mxShape); + +mxShapeMockupTextRRect.prototype.cst = { + RRECT : 'mxgraph.mockup.text.rrect', + R_SIZE : 'rSize' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupTextRRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupTextRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupTextRRect.prototype.cst.RRECT, mxShapeMockupTextRRect); + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupiOS.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupiOS.js new file mode 100644 index 0000000000000..15cf29ac18fe9 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mockup/mxMockupiOS.js @@ -0,0 +1,6691 @@ +/** + * $Id: mxMockupiOS.js,v 1.5 2013/11/12 06:25:46 mate Exp $ + * Copyright (c) 2006-2010, JGraph Ltd + */ + +var mxMockupC = +{ + BAR_HEIGHT : 'barHeight', + BAR_POS : 'barPos', + BG_STYLE : 'bgStyle', + BG_FLAT_GREEN : 'bgGreen', + BG_FLAT_WHITE : 'bgWhite', + BG_FLAT_GRAY : 'bgGray', + BG_FLAT_CUSTOM : 'bgFlat', + BG_MAP : 'bgMap', + BG_STRIPED : 'bgStriped', + BUTTON_STYLE : 'buttonStyle', + BUTTON_TEXT : 'buttonText', + BUTTON_STATE : 'buttonState', + CHEVRON : 'chevron', + GRID_SIZE : 'gridSize', + POINTER_BOTTOM : 'bottom', + POINTER_POS : 'pointerPos', + POINTER_TOP : 'top', + ROUND : 'round', + SELECTED : '+', //has to be one character long + STATE_ON : 'on', + STATE_OFF : 'off', + SUB_TEXT : 'subText', + + SHAPE_IADD_ICON : 'mxgraph.ios.iAddIcon', + SHAPE_IALERT_BOX : 'mxgraph.ios.iAlertBox', + SHAPE_IALPHA_LIST : 'mxgraph.ios.iAlphaList', + SHAPE_IAPP_BAR : 'mxgraph.ios.iAppBar', + SHAPE_IARROW_ICON : 'mxgraph.ios.iArrowIcon', + SHAPE_IBG_FLAT : 'mxgraph.ios.iBgFlat', + SHAPE_IBG_MAP : 'mxgraph.ios.iBgMap', + SHAPE_IBG_STRIPED : 'mxgraph.ios.iBgStriped', + SHAPE_IBUTTON : 'mxgraph.ios.iButton', + SHAPE_IBUTTON_BACK : 'mxgraph.ios.iButtonBack', + SHAPE_IBUTTON_FORWARD : 'mxgraph.ios.iButtonFw', + SHAPE_IBUTTON_BAR : 'mxgraph.ios.iButtonBar', + SHAPE_ICALL_BUTTONS : 'mxgraph.ios.iCallButtons', + SHAPE_ICALL_DIALOG : 'mxgraph.ios.iCallDialog', + SHAPE_ICHECKBOX_GROUP : 'mxgraph.ios.iCheckboxGroup', + SHAPE_ICHECK_ICON : 'mxgraph.ios.iCheckIcon', + SHAPE_ICLOUD_PROGRESS_BAR : 'mxgraph.ios.iCloudProgressBar', + SHAPE_ICOMBO_BOX : 'mxgraph.ios.iComboBox', + SHAPE_ICOPY : 'mxgraph.ios.iCopy', + SHAPE_ICOPY_AREA : 'mxgraph.ios.iCopyArea', + SHAPE_IICON_GRID : 'mxgraph.ios.iIconGrid', + SHAPE_IDELETE_APP : 'mxgraph.ios.iDeleteApp', + SHAPE_IDELETE_ICON : 'mxgraph.ios.iDeleteIcon', + SHAPE_IDOWNLOAD_BAR : 'mxgraph.ios.iDownloadBar', + SHAPE_IDIALOG_BOX : 'mxgraph.ios.iDialogBox', + SHAPE_IDIRECTION : 'mxgraph.ios.iDir', + SHAPE_IHOME_PAGE_CONTROL : 'mxgraph.ios.iHomePageControl', + SHAPE_IKEYB_LETTERS : 'mxgraph.ios.iKeybLett', + SHAPE_IKEYB_NUMBERS : 'mxgraph.ios.iKeybNumb', + SHAPE_IKEYB_SYMBOLS : 'mxgraph.ios.iKeybSymb', + SHAPE_ILOCATION_BAR : 'mxgraph.ios.iLocBar', + SHAPE_ILOCK_BUTTON : 'mxgraph.ios.iLockButton', + SHAPE_IHOR_BUTTON_BAR : 'mxgraph.ios.iHorButtonBar', + SHAPE_IINFO_ICON : 'mxgraph.ios.iInfoIcon', + SHAPE_ION_OFF_BUTTON : 'mxgraph.ios.iOnOffButton', + SHAPE_IOPTION : 'mxgraph.ios.iOption', + SHAPE_IPAGE_CONTROL : 'mxgraph.ios.iPageControl', + SHAPE_IPAD : 'mxgraph.ios.iPad', + SHAPE_IPHONE : 'mxgraph.ios.iPhone', + SHAPE_IPIN : 'mxgraph.ios.iPin', + SHAPE_IPREV_NEXT : 'mxgraph.ios.iPrevNext', + SHAPE_IPROGRESS_BAR : 'mxgraph.ios.iProgressBar', + SHAPE_IRADIO_GROUP : 'mxgraph.ios.iRadioGroup', + SHAPE_ISLIDER : 'mxgraph.ios.iSlider', + SHAPE_ISORT_FIND_ICON : 'mxgraph.ios.iSortFindIcon', + SHAPE_ITEXT_INPUT : 'mxgraph.ios.iTextInput', + SHAPE_ITOP_BAR : 'mxgraph.ios.iTopBar', + SHAPE_ITOP_BAR_LOCKED : 'mxgraph.ios.iTopBarLocked', + SHAPE_IURL_BAR : 'mxgraph.ios.iURLBar', + SHAPE_IVIDEO_CONTROLS : 'mxgraph.ios.iVideoControls', + SHAPE_ISCREEN_NAME_BAR: 'mxgraph.ios.iScreenNameBar', + + STYLE_FILLCOLOR2 : 'fillColor2', + STYLE_FILLCOLOR3 : 'fillColor3', + STYLE_TEXTCOLOR : 'textColor', + STYLE_TEXTCOLOR2 : 'textColor2', + STYLE_STROKECOLOR2 : 'strokeColor2', + STYLE_STROKECOLOR3 : 'strokeColor3' +}; + +//********************************************************************************************************************************************************** +//iPhone Vertical +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiPhone(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiPhone, mxShape); + +mxShapeMockupiPhone.prototype.customProperties = [ + {name: 'bgStyle', dispName: 'Background', type: 'enum', + enumList: [{val: 'bgGreen', dispName: 'Green'}, + {val: 'bgWhite', dispName: 'White'}, + {val: 'bgGray', dispName: 'Gray'}, + {val: 'bgFlat', dispName: 'Flat'}, + {val: 'bgMap', dispName: 'Map'}, + {val: 'bgStriped', dispName: 'Striped'}]} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiPhone.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var rSize = 25; + this.background(c, x, y, w, h, rSize); + c.setShadow(false); + this.foreground(c, x, y, w, h, rSize); +}; + +mxShapeMockupiPhone.prototype.background = function(c, x, y, w, h, rSize) +{ + c.setFillColor('#000000'); + c.setStrokeColor('#000000'); + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); +}; + +mxShapeMockupiPhone.prototype.foreground = function(c, x, y, w, h, rSize) +{ + c.setStrokeWidth(1.5); + + c.begin(); + c.setGradient('#808080', '#000000', w * 0.325, 0, w * 0.675, h * 0.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.moveTo(w * 0.325, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.7, h * 0.5); + c.close(); + c.fill(); + + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, ''); + var bgStyle = mxUtils.getValue(this.style, mxMockupC.BG_STYLE, mxMockupC.BG_FLAT_GREEN); + + c.setStrokeWidth(1); + if (bgStyle === mxMockupC.BG_FLAT_WHITE) + { + c.setFillColor('#ffffff'); + c.rect(w * 0.0625, h * 0.15, w * 0.875, h * 0.7); + c.fill(); + } + else if (bgStyle === mxMockupC.BG_FLAT_GREEN) + { + c.setFillColor('#1f2923'); + c.rect(w * 0.0625, h * 0.15, w * 0.875, h * 0.7); + c.fill(); + } + else if (bgStyle === mxMockupC.BG_FLAT_GRAY) + { + c.setFillColor('#dddddd'); + c.rect(w * 0.0625, h * 0.15, w * 0.875, h * 0.7); + c.fill(); + } + else if (bgStyle === mxMockupC.BG_FLAT_CUSTOM) + { + c.setFillColor(fillColor); + c.rect(w * 0.0625, h * 0.15, w * 0.875, h * 0.7); + c.fill(); + } + else if (bgStyle === mxMockupC.BG_STRIPED) + { + var xOld = x; + var yOld = y; + var wOld = w; + var hOld = h; + c.translate(w * 0.0625, h * 0.15); + w = w * 0.875; + h = h * 0.7; + + c.setFillColor('#5D7585'); + c.rect(0, 0, w, h); + c.fillAndStroke(); + + var strokeColor = '#18211b'; + var strokeColor2 = '#657E8F'; + + c.setStrokeColor(strokeColor2); + var i = 5; + c.begin(); + + while (i < w) + { + c.moveTo(i, 0); + c.lineTo(i, h); + i = i + 5; + } + + c.stroke(); + + c.setStrokeColor(strokeColor); + c.begin(); + c.rect(0, 0, w, h); + c.stroke(); + + w = wOld; + h = hOld; + c.translate( - w * 0.0625, - h * 0.15); + } + else if (bgStyle === mxMockupC.BG_MAP) + { + var xOld = x; + var yOld = y; + var wOld = w; + var hOld = h; + c.translate(w * 0.0625, h * 0.15); + w = w * 0.875; + h = h * 0.7; + + c.setFillColor('#ffffff'); + c.rect(0, 0, w, h); + c.fillAndStroke(); + + var fillColor2 = '#96D1FF'; + var strokeColor = '#18211b'; + var strokeColor2 = '#008cff'; + + c.setFillColor(fillColor2); + c.setStrokeColor(strokeColor2); + c.setStrokeWidth(1); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.1171, 0); + c.lineTo(w * 0.1136, h * 0.0438); + c.lineTo(w * 0.0993, h * 0.054); + c.lineTo(0, h * 0.0446); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.1993, 0); + c.lineTo(w * 0.1914, h * 0.03884); + c.lineTo(w * 0.1536, h * 0.0362); + c.lineTo(w * 0.1586, 0); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.24, 0); + c.lineTo(w * 0.2257, h * 0.054); + c.lineTo(w * 0.2414, h * 0.0674); + c.lineTo(w * 0.4707, h * 0.0835); + c.lineTo(w * 0.5264, h * 0.0906); + c.lineTo(w * 0.6429, h * 0.0929); + c.arcTo(w * 0.0857, h * 0.0536, 0, 0, 0, w * 0.7193, h * 0.0621); + c.arcTo(w * 0.48, h * 0.2143, 0, 0, 0, w * 0.7286, 0); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8, 0); + c.lineTo(w * 0.7886, h * 0.04554); + c.arcTo(w * 0.0857, h * 0.0536, 0, 0, 0, w * 0.8164, h * 0.0875); + c.arcTo(w * 0.1429, h * 0.0893, 0, 0, 0, w * 0.88, h * 0.1036); + c.lineTo(w, h * 0.1112); + c.lineTo(w, 0); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.0933); + c.lineTo(w * 0.08, h * 0.1036); + c.lineTo(w * 0.1021, h * 0.1246); + c.lineTo(w * 0.1007, h * 0.1768); + c.lineTo(w * 0.0471, h * 0.2241); + c.lineTo(0, h * 0.2527); + c.close(); + c.fillAndStroke(); + + c.ellipse(w * 0.1214, h * 0.0603, w * 0.0843, h * 0.0576); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.1293, h * 0.1924); + c.lineTo(w * 0.1729, h * 0.142); + c.lineTo(w * 0.1407, h * 0.1411); + c.lineTo(w * 0.14, h * 0.1777); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.4586, h * 0.1241); + c.lineTo(w * 0.455, h * 0.1835); + c.lineTo(w * 0.3893, h * 0.2246); + c.lineTo(w * 0.2171, h * 0.1362); + c.lineTo(w * 0.2171, h * 0.1308); + c.lineTo(w * 0.2293, h * 0.1214); + c.lineTo(w * 0.2857, h * 0.1174); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5079, h * 0.1134); + c.lineTo(w * 0.7307, h * 0.1223); + c.lineTo(w * 0.7279, h * 0.1625); + c.lineTo(w * 0.715, h * 0.1772); + c.lineTo(w * 0.6929, h * 0.1688); + c.lineTo(w * 0.625, h * 0.1795); + c.lineTo(w * 0.4779, h * 0.2835); + c.lineTo(w * 0.395, h * 0.2299); + c.lineTo(w * 0.4657, h * 0.1826); + c.lineTo(w * 0.4707, h * 0.1223); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, h * 0.1362); + c.lineTo(w * 0.7643, h * 0.1237); + c.lineTo(w * 0.7543, h * 0.1562); + c.lineTo(w * 0.7643, h * 0.1585); + c.lineTo(w * 0.9186, h * 0.2366); + c.lineTo(w, h * 0.1732); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.2079, h * 0.1545); + c.lineTo(w * 0.3886, h * 0.2536); + c.lineTo(w * 0.3414, h * 0.2933); + c.lineTo(w * 0.1743, h * 0.1969); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.1579, h * 0.2134); + c.lineTo(w * 0.3221, h * 0.3067); + c.lineTo(w * 0.2957, h * 0.3237); + c.lineTo(w * 0.1157, h * 0.2424); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.405, h * 0.2656); + c.lineTo(w * 0.31, h * 0.3353); + c.lineTo(w * 0.3693, h * 0.3661); + c.lineTo(w * 0.4571, h * 0.2982); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.7121, h * 0.1848); + c.lineTo(w * 0.6879, h * 0.1754); + c.lineTo(w * 0.6329, h * 0.1844); + c.lineTo(w * 0.61, h * 0.2018); + c.lineTo(w * 0.6207, h * 0.2085); + c.lineTo(w * 0.4986, h * 0.2982); + c.lineTo(w * 0.535, h * 0.3237); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5557, h * 0.3379); + c.lineTo(w * 0.7464, h * 0.1826); + c.lineTo(w * 0.8036, h * 0.2076); + c.lineTo(w * 0.595, h * 0.3616); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8293, h * 0.2188); + c.lineTo(w * 0.8979, h * 0.2509); + c.lineTo(w * 0.6936, h * 0.4125); + c.lineTo(w * 0.6171, h * 0.3737); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, h * 0.2138); + c.lineTo(w * 0.6821, h * 0.4603); + c.lineTo(w * 0.815, h * 0.5277); + c.lineTo(w, h * 0.4); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.317); + c.lineTo(w * 0.0971, h * 0.2554); + c.lineTo(w * 0.4121, h * 0.4143); + c.lineTo(w * 0.3736, h * 0.4415); + c.lineTo(w * 0.315, h * 0.4076); + c.lineTo(w * 0.3093, h * 0.4116); + c.lineTo(w * 0.3686, h * 0.4455); + c.lineTo(w * 0.285, h * 0.5045); + c.lineTo(w * 0.1114, h * 0.4134); + c.lineTo(w * 0.025, h * 0.4603); + c.lineTo(w * 0.0371, h * 0.4723); + c.lineTo(w * 0.1114, h * 0.4371); + c.lineTo(w * 0.2871, h * 0.5312); + c.lineTo(w * 0.1929, h * 0.6058); + c.lineTo(w * 0.2271, h * 0.6705); + c.lineTo(w * 0.17, h * 0.7147); + c.lineTo(w * 0.0314, h * 0.6321); + c.lineTo(0, h * 0.6246); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.48, h * 0.3121); + c.lineTo(w * 0.5157, h * 0.3375); + c.lineTo(w * 0.4314, h * 0.3982); + c.lineTo(w * 0.3929, h * 0.3786); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.3086, h * 0.5179); + c.lineTo(w * 0.53, h * 0.3518); + c.lineTo(w * 0.5757, h * 0.3745); + c.lineTo(w * 0.3479, h * 0.5411); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5964, h * 0.3884); + c.lineTo(w * 0.6736, h * 0.4277); + c.lineTo(w * 0.445, h * 0.5991); + c.lineTo(w * 0.3664, h * 0.5531); + c.lineTo(w * 0.5057, h * 0.4545); + c.lineTo(w * 0.5507, h * 0.4754); + c.lineTo(w * 0.5571, h * 0.4723); + c.lineTo(w * 0.5114, h * 0.4504); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.4793, h * 0.6161); + c.lineTo(w * 0.6771, h * 0.4643); + c.lineTo(w * 0.8086, h * 0.5326); + c.lineTo(w * 0.7471, h * 0.5817); + c.lineTo(w * 0.7214, h * 0.567); + c.lineTo(w * 0.715, h * 0.571); + c.lineTo(w * 0.7421, h * 0.5871); + c.lineTo(w * 0.6014, h * 0.6933); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, h * 0.4371); + c.lineTo(w * 0.8443, h * 0.546); + c.lineTo(w * 0.9071, h * 0.5701); + c.lineTo(w, h * 0.5022); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8407, h * 0.5504); + c.lineTo(w * 0.8993, h * 0.5759); + c.lineTo(w * 0.6757, h * 0.7416); + c.lineTo(w * 0.6286, h * 0.7139); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, h * 0.5321); + c.lineTo(w * 0.6979, h * 0.7549); + c.lineTo(w * 0.7457, h * 0.7781); + c.lineTo(w * 0.9814, h * 0.6094); + c.lineTo(w, h * 0.6067); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, h * 0.6254); + c.lineTo(w * 0.7664, h * 0.792); + c.lineTo(w * 0.9586, h * 0.9062); + c.lineTo(w, h * 0.8786); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.3093, h * 0.5464); + c.lineTo(w * 0.4271, h * 0.6152); + c.lineTo(w * 0.245, h * 0.7643); + c.lineTo(w * 0.185, h * 0.7228); + c.lineTo(w * 0.2493, h * 0.6728); + c.lineTo(w * 0.2214, h * 0.6143); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.65); + c.lineTo(w * 0.2179, h * 0.7826); + c.lineTo(w * 0.1136, h * 0.8424); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.7272); + c.lineTo(w * 0.0821, h * 0.859); + c.lineTo(0, h * 0.9085); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.4529, h * 0.6366); + c.lineTo(w * 0.575, h * 0.7143); + c.lineTo(w * 0.39, h * 0.8621); + c.lineTo(w * 0.2657, h * 0.7902); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.9415); + c.lineTo(w * 0.1036, h * 0.8821); + c.lineTo(w * 0.2343, h * 0.959); + c.lineTo(w * 0.1721, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.2586, h * 0.7951); + c.lineTo(w * 0.3829, h * 0.8674); + c.lineTo(w * 0.2543, h * 0.9451); + c.lineTo(w * 0.1279, h * 0.8692); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.2836, h * 0.9639); + c.lineTo(w * 0.4207, h * 0.8772); + c.lineTo(w * 0.605, h * 0.7321); + c.lineTo(w * 0.6521, h * 0.7634); + c.lineTo(w * 0.3486, h); + c.lineTo(w * 0.3393, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.3879, h); + c.lineTo(w * 0.6721, h * 0.7759); + c.lineTo(w * 0.7171, h * 0.7982); + c.lineTo(w * 0.4564, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.4986, h); + c.lineTo(w * 0.7386, h * 0.8125); + c.lineTo(w * 0.9307, h * 0.925); + c.lineTo(w * 0.8264, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8671, h); + c.lineTo(w * 0.9464, h * 0.9491); + c.lineTo(w, h * 0.975); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.2295, h); + c.lineTo(w * 0.2648, h * 0.9792); + c.lineTo(w * 0.2981, h); + c.close(); + c.fillAndStroke(); + + w = wOld; + h = hOld; + c.translate( - w * 0.0625, - h * 0.15); + } + + c.setStrokeWidth(1); + c.setStrokeColor('#18211b'); + c.rect(w * 0.0625, h * 0.15, w * 0.875, h * 0.7); + c.stroke(); + + c.setStrokeWidth(1.5); + c.setAlpha(0.8); + c.setStrokeColor('#dddddd'); + c.roundrect(0, 0, w, h, rSize, rSize); + c.stroke(); + + rSize = 22.5; + c.begin(); + c.setStrokeColor('#666666'); + c.roundrect(5, 5, w - 10, h - 10, rSize, rSize); + c.stroke(); + + c.setAlpha(1); + c.ellipse(w * 0.4875, h * 0.04125, w * 0.025, h * 0.0125); + c.setStrokeWidth(2.5); + c.setStrokeColor('#000000'); + c.setFillColor('#000099'); + c.fillAndStroke(); + + c.begin(); + c.setStrokeWidth(1.5); + c.setFillColor('#444444'); + c.setStrokeColor('#333333'); + rSize = 4; + + c.roundrect(w * 0.375, h * 0.075, w * 0.25, h * 0.01875, w * 0.02, h * 0.01); + c.fillAndStroke(); + + c.setGradient('#bbbbbb', '#000000', w * 0.4, h * 0.875, w * 0.2, h * 0.1, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(w * 0.4, h * 0.875, w * 0.2, h * 0.1); + c.fill(); + + c.setAlpha(0.5); + c.ellipse(w * 0.404, h * 0.876, w * 0.19, h * 0.095); + c.stroke(); + + c.begin(); + c.setAlpha(0.85); + c.setFillColor('#000000'); + c.moveTo(w * 0.4025, h * 0.925); + c.arcTo(w * 0.0975, h * 0.04625, 0, 0, 1, w * 0.5975, h * 0.925); + c.arcTo(w * 0.2, h * 0.1, 0, 0, 1, w * 0.4025, h * 0.925); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.setAlpha(0.7); + c.setStrokeWidth(1.5); + c.setStrokeColor('#dddddd'); + rSize = 4; + c.roundrect(w * 0.4575, h * 0.905, w * 0.0875, h * 0.04375, h * 0.00625, h * 0.00625); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IPHONE, mxShapeMockupiPhone); + +//********************************************************************************************************************************************************** +//iPhone flat colored background +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiBgFlat(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiBgFlat, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiBgFlat.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeMockupiBgFlat.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IBG_FLAT, mxShapeMockupiBgFlat); + +//********************************************************************************************************************************************************** +//iPhone striped background +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiBgStriped(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiBgStriped, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiBgStriped.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiBgStriped.prototype.background = function(c, x, y, w, h) +{ + c.setStrokeWidth(1); + c.begin(); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiBgStriped.prototype.foreground = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, ''); + var strokeColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_STROKECOLOR2, ''); + + c.setStrokeColor(strokeColor2); + var i = 5; + c.begin(); + + while (i < w) + { + c.moveTo(i, 0); + c.lineTo(i, h); + i = i + 5; + } + + c.stroke(); + + c.setStrokeColor(strokeColor); + c.begin(); + c.rect(0, 0, w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IBG_STRIPED, mxShapeMockupiBgStriped); + +//********************************************************************************************************************************************************** +//iPhone map background +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiBgMap(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiBgMap, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiBgMap.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiBgMap.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiBgMap.prototype.foreground = function(c, x, y, w, h) +{ + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, ''); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, ''); + var strokeColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_STROKECOLOR2, ''); + + c.setFillColor(fillColor2); + c.setStrokeColor(strokeColor2); + c.setStrokeWidth(0.5); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.1171, 0); + c.lineTo(w * 0.1136, h * 0.0438); + c.lineTo(w * 0.0993, h * 0.054); + c.lineTo(0, h * 0.0446); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.1993, 0); + c.lineTo(w * 0.1914, h * 0.03884); + c.lineTo(w * 0.1536, h * 0.0362); + c.lineTo(w * 0.1586, 0); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.24, 0); + c.lineTo(w * 0.2257, h * 0.054); + c.lineTo(w * 0.2414, h * 0.0674); + c.lineTo(w * 0.4707, h * 0.0835); + c.lineTo(w * 0.5264, h * 0.0906); + c.lineTo(w * 0.6429, h * 0.0929); + c.arcTo(w * 0.0857, h * 0.0536, 0, 0, 0, w * 0.7193, h * 0.0621); + c.arcTo(w * 0.48, h * 0.2143, 0, 0, 0, w * 0.7286, 0); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8, 0); + c.lineTo(w * 0.7886, h * 0.04554); + c.arcTo(w * 0.0857, h * 0.0536, 0, 0, 0, w * 0.8164, h * 0.0875); + c.arcTo(w * 0.1429, h * 0.0893, 0, 0, 0, w * 0.88, h * 0.1036); + c.lineTo(w, h * 0.1112); + c.lineTo(w, 0); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.0933); + c.lineTo(w * 0.08, h * 0.1036); + c.lineTo(w * 0.1021, h * 0.1246); + c.lineTo(w * 0.1007, h * 0.1768); + c.lineTo(w * 0.0471, h * 0.2241); + c.lineTo(0, h * 0.2527); + c.close(); + c.fillAndStroke(); + + c.ellipse(w * 0.1214, h * 0.0603, w * 0.0843, h * 0.0576); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.1293, h * 0.1924); + c.lineTo(w * 0.1729, h * 0.142); + c.lineTo(w * 0.1407, h * 0.1411); + c.lineTo(w * 0.14, h * 0.1777); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.4586, h * 0.1241); + c.lineTo(w * 0.455, h * 0.1835); + c.lineTo(w * 0.3893, h * 0.2246); + c.lineTo(w * 0.2171, h * 0.1362); + c.lineTo(w * 0.2171, h * 0.1308); + c.lineTo(w * 0.2293, h * 0.1214); + c.lineTo(w * 0.2857, h * 0.1174); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5079, h * 0.1134); + c.lineTo(w * 0.7307, h * 0.1223); + c.lineTo(w * 0.7279, h * 0.1625); + c.lineTo(w * 0.715, h * 0.1772); + c.lineTo(w * 0.6929, h * 0.1688); + c.lineTo(w * 0.625, h * 0.1795); + c.lineTo(w * 0.4779, h * 0.2835); + c.lineTo(w * 0.395, h * 0.2299); + c.lineTo(w * 0.4657, h * 0.1826); + c.lineTo(w * 0.4707, h * 0.1223); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, h * 0.1362); + c.lineTo(w * 0.7643, h * 0.1237); + c.lineTo(w * 0.7543, h * 0.1562); + c.lineTo(w * 0.7643, h * 0.1585); + c.lineTo(w * 0.9186, h * 0.2366); + c.lineTo(w, h * 0.1732); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.2079, h * 0.1545); + c.lineTo(w * 0.3886, h * 0.2536); + c.lineTo(w * 0.3414, h * 0.2933); + c.lineTo(w * 0.1743, h * 0.1969); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.1579, h * 0.2134); + c.lineTo(w * 0.3221, h * 0.3067); + c.lineTo(w * 0.2957, h * 0.3237); + c.lineTo(w * 0.1157, h * 0.2424); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.405, h * 0.2656); + c.lineTo(w * 0.31, h * 0.3353); + c.lineTo(w * 0.3693, h * 0.3661); + c.lineTo(w * 0.4571, h * 0.2982); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.7121, h * 0.1848); + c.lineTo(w * 0.6879, h * 0.1754); + c.lineTo(w * 0.6329, h * 0.1844); + c.lineTo(w * 0.61, h * 0.2018); + c.lineTo(w * 0.6207, h * 0.2085); + c.lineTo(w * 0.4986, h * 0.2982); + c.lineTo(w * 0.535, h * 0.3237); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5557, h * 0.3379); + c.lineTo(w * 0.7464, h * 0.1826); + c.lineTo(w * 0.8036, h * 0.2076); + c.lineTo(w * 0.595, h * 0.3616); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8293, h * 0.2188); + c.lineTo(w * 0.8979, h * 0.2509); + c.lineTo(w * 0.6936, h * 0.4125); + c.lineTo(w * 0.6171, h * 0.3737); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, h * 0.2138); + c.lineTo(w * 0.6821, h * 0.4603); + c.lineTo(w * 0.815, h * 0.5277); + c.lineTo(w, h * 0.4); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.317); + c.lineTo(w * 0.0971, h * 0.2554); + c.lineTo(w * 0.4121, h * 0.4143); + c.lineTo(w * 0.3736, h * 0.4415); + c.lineTo(w * 0.315, h * 0.4076); + c.lineTo(w * 0.3093, h * 0.4116); + c.lineTo(w * 0.3686, h * 0.4455); + c.lineTo(w * 0.285, h * 0.5045); + c.lineTo(w * 0.1114, h * 0.4134); + c.lineTo(w * 0.025, h * 0.4603); + c.lineTo(w * 0.0371, h * 0.4723); + c.lineTo(w * 0.1114, h * 0.4371); + c.lineTo(w * 0.2871, h * 0.5312); + c.lineTo(w * 0.1929, h * 0.6058); + c.lineTo(w * 0.2271, h * 0.6705); + c.lineTo(w * 0.17, h * 0.7147); + c.lineTo(w * 0.0314, h * 0.6321); + c.lineTo(0, h * 0.6246); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.48, h * 0.3121); + c.lineTo(w * 0.5157, h * 0.3375); + c.lineTo(w * 0.4314, h * 0.3982); + c.lineTo(w * 0.3929, h * 0.3786); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.3086, h * 0.5179); + c.lineTo(w * 0.53, h * 0.3518); + c.lineTo(w * 0.5757, h * 0.3745); + c.lineTo(w * 0.3479, h * 0.5411); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5964, h * 0.3884); + c.lineTo(w * 0.6736, h * 0.4277); + c.lineTo(w * 0.445, h * 0.5991); + c.lineTo(w * 0.3664, h * 0.5531); + c.lineTo(w * 0.5057, h * 0.4545); + c.lineTo(w * 0.5507, h * 0.4754); + c.lineTo(w * 0.5571, h * 0.4723); + c.lineTo(w * 0.5114, h * 0.4504); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.4793, h * 0.6161); + c.lineTo(w * 0.6771, h * 0.4643); + c.lineTo(w * 0.8086, h * 0.5326); + c.lineTo(w * 0.7471, h * 0.5817); + c.lineTo(w * 0.7214, h * 0.567); + c.lineTo(w * 0.715, h * 0.571); + c.lineTo(w * 0.7421, h * 0.5871); + c.lineTo(w * 0.6014, h * 0.6933); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, h * 0.4371); + c.lineTo(w * 0.8443, h * 0.546); + c.lineTo(w * 0.9071, h * 0.5701); + c.lineTo(w, h * 0.5022); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8407, h * 0.5504); + c.lineTo(w * 0.8993, h * 0.5759); + c.lineTo(w * 0.6757, h * 0.7416); + c.lineTo(w * 0.6286, h * 0.7139); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, h * 0.5321); + c.lineTo(w * 0.6979, h * 0.7549); + c.lineTo(w * 0.7457, h * 0.7781); + c.lineTo(w * 0.9814, h * 0.6094); + c.lineTo(w, h * 0.6067); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, h * 0.6254); + c.lineTo(w * 0.7664, h * 0.792); + c.lineTo(w * 0.9586, h * 0.9062); + c.lineTo(w, h * 0.8786); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.3093, h * 0.5464); + c.lineTo(w * 0.4271, h * 0.6152); + c.lineTo(w * 0.245, h * 0.7643); + c.lineTo(w * 0.185, h * 0.7228); + c.lineTo(w * 0.2493, h * 0.6728); + c.lineTo(w * 0.2214, h * 0.6143); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.65); + c.lineTo(w * 0.2179, h * 0.7826); + c.lineTo(w * 0.1136, h * 0.8424); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.7272); + c.lineTo(w * 0.0821, h * 0.859); + c.lineTo(0, h * 0.9085); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.4529, h * 0.6366); + c.lineTo(w * 0.575, h * 0.7143); + c.lineTo(w * 0.39, h * 0.8621); + c.lineTo(w * 0.2657, h * 0.7902); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.9415); + c.lineTo(w * 0.1036, h * 0.8821); + c.lineTo(w * 0.2343, h * 0.959); + c.lineTo(w * 0.1721, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.2586, h * 0.7951); + c.lineTo(w * 0.3829, h * 0.8674); + c.lineTo(w * 0.2543, h * 0.9451); + c.lineTo(w * 0.1279, h * 0.8692); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.2836, h * 0.9639); + c.lineTo(w * 0.4207, h * 0.8772); + c.lineTo(w * 0.605, h * 0.7321); + c.lineTo(w * 0.6521, h * 0.7634); + c.lineTo(w * 0.3486, h); + c.lineTo(w * 0.3393, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.3879, h); + c.lineTo(w * 0.6721, h * 0.7759); + c.lineTo(w * 0.7171, h * 0.7982); + c.lineTo(w * 0.4564, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.4986, h); + c.lineTo(w * 0.7386, h * 0.8125); + c.lineTo(w * 0.9307, h * 0.925); + c.lineTo(w * 0.8264, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8671, h); + c.lineTo(w * 0.9464, h * 0.9491); + c.lineTo(w, h * 0.975); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.2295, h); + c.lineTo(w * 0.2648, h * 0.9792); + c.lineTo(w * 0.2981, h); + c.close(); + c.fillAndStroke(); + + c.setStrokeWidth(1); + c.setStrokeColor(strokeColor); + c.begin(); + c.rect(0, 0, w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IBG_MAP, mxShapeMockupiBgMap); + +//********************************************************************************************************************************************************** +//Vertical Button Bar +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiButtonBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiButtonBar, mxShape); + +mxShapeMockupiButtonBar.prototype.customProperties = [ + {name: 'buttonText', dispName: 'Labels', type: 'string'}, + {name: 'textColor', dispName: 'Text Color', type: 'color'}, + {name: 'textColor2', dispName: 'Text2 Color', type: 'color'}, + {name: 'strokeColor2', dispName: 'Stroke2 Color', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiButtonBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var textStrings = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, '+Button 1, Button 2, Button 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var separatorColor = mxUtils.getValue(this.style, mxMockupC.STYLE_STROKECOLOR2, '#c4c4c4'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var buttonNum = textStrings.length; + var maxButtonWidth = 0; + var selectedButton = -1; + var rSize = 2.5; //rounding size + var labelOffset = 2.5; + + for (var i = 0; i < buttonNum; i++) + { + var buttonText = textStrings[i]; + + if(buttonText.charAt(0) === mxMockupC.SELECTED) + { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + var currWidth = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxButtonWidth) + { + maxButtonWidth = currWidth; + } + } + + var minButtonHeight = fontSize * 1.5; + var minH = buttonNum * minButtonHeight; + var trueH = Math.max(h, minH); + var minW = 2 * labelOffset + maxButtonWidth; + var trueW = Math.max(w, minW); + + c.translate(x, y); + + this.background(c, trueW, trueH, rSize, buttonNum, labelOffset, buttonNum * minButtonHeight, frameColor, separatorColor, bgColor, selectedButton, minButtonHeight); + c.setShadow(false); + + this.foreground(c, trueW, trueH, rSize, buttonNum, labelOffset, buttonNum * minButtonHeight, frameColor, separatorColor, bgColor, selectedButton, minButtonHeight); + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) + { + if (i === selectedButton) + { + c.setFontColor(selectedFontColor); + } + else + { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + var currHeight = (i * minButtonHeight + minButtonHeight * 0.5) * trueH / minH; + this.buttonText(c, trueW, currHeight, textStrings[i], fontSize, separatorColor); + } +}; + +mxShapeMockupiButtonBar.prototype.background = function(c, w, h, rSize, buttonNum, labelOffset, minH, frameColor, separatorColor, bgColor, selectedButton, minButtonHeight) +{ + c.begin(); + c.setStrokeWidth(1); + + //draw the frame + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupiButtonBar.prototype.foreground = function(c, w, h, rSize, buttonNum, labelOffset, minH, frameColor, separatorColor, bgColor, selectedButton, minButtonHeight) +{ + //draw the button separators + var strokeWidth = mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1'); + c.setStrokeWidth(strokeWidth); + c.setStrokeColor(separatorColor); + c.begin(); + + for (var i = 1; i < buttonNum; i++) + { + if (i !== selectedButton && i !== (selectedButton + 1)) + { + var currHeight = i * minButtonHeight * h / minH; + + c.moveTo(0, currHeight); + c.lineTo(w, currHeight); + } + } + + c.stroke(); + + //draw the selected button + c.setStrokeColor(mxConstants.NONE); + + if (selectedButton === 0) + { + // we draw a path for the first button + c.begin(); + var buttonBottom = minButtonHeight * h / minH; + c.setGradient('#5D7585', '#008cff', 0, 0, w, buttonBottom, mxConstants.DIRECTION_SOUTH, 1, 1); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, buttonBottom); + c.lineTo(0, buttonBottom); + c.close(); + c.fill(); + } + else if (selectedButton === buttonNum - 1) + { + // we draw a path for the last button + c.begin(); + var buttonTop = h - minButtonHeight * h / minH; + c.setGradient('#5D7585', '#008cff', 0, buttonTop, w, h - buttonTop, mxConstants.DIRECTION_SOUTH, 1, 1); + c.moveTo(0, buttonTop); + c.lineTo(w, buttonTop); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fill(); + } + else if (selectedButton !== -1) + { + // we draw a path rectangle for one of the buttons in the middle + c.begin(); + var buttonTop = minButtonHeight * selectedButton * h / minH; + var buttonBottom = minButtonHeight * (selectedButton + 1) * h / minH; + c.setGradient('#5D7585', '#008cff', 0, buttonTop, w, buttonBottom - buttonTop, mxConstants.DIRECTION_SOUTH, 1, 1); + c.moveTo(0, buttonTop); + c.lineTo(w, buttonTop); + c.lineTo(w, buttonBottom); + c.lineTo(0, buttonBottom); + c.close(); + c.fill(); + } + +// //draw the frame again, to achieve a nicer effect + c.begin(); + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.stroke(); +}; + +mxShapeMockupiButtonBar.prototype.buttonText = function(c, w, h, textString, fontSize, separatorColor) +{ + if(textString.charAt(0) === mxMockupC.SELECTED) + { + textString = textString.substring(1); + } + + c.setFontSize(fontSize); + c.text(10, h, 0, 0, textString, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + var mSize = fontSize * 0.5; + c.setStrokeWidth(fontSize * 0.3); + c.setStrokeColor(separatorColor); + c.begin(); + c.moveTo(w - 20 - mSize, h - mSize); + c.lineTo(w - 20, h); + c.lineTo(w - 20 - mSize, h + mSize); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IBUTTON_BAR, mxShapeMockupiButtonBar); + +//********************************************************************************************************************************************************** +//iPhone Application Bar +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiAppBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiAppBar, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiAppBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiAppBar.prototype.background = function(c, x, y, w, h) +{ + c.setGradient('#eeeeee', '#999999', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeMockupiAppBar.prototype.foreground = function(c, x, y, w, h) +{ + c.setFillColor('#0099ff'); + c.rect(5, h * 0.5 + 1.75, 1.5, 2.5); + c.fill(); + + c.rect(7, h * 0.5 + 0.75, 1.5, 3.5); + c.fill(); + + c.rect(9, h * 0.5 - 0.25, 1.5, 4.5); + c.fill(); + + c.rect(11, h * 0.5 - 1.25, 1.5, 5.5); + c.fill(); + + c.rect(13, h * 0.5 - 2.25, 1.5, 6.5); + c.fill(); + + c.rect(15, h * 0.5 - 3.25, 1.5, 7.5); + c.fill(); + + c.setFillColor('#999999'); + c.ellipse(w - 56.5, h * 0.5 - 4, 8, 8); + c.fill(); + + c.setStrokeColor('#cccccc'); + c.begin(); + c.moveTo(w - 52.5, h * 0.5 - 3); + c.lineTo(w - 52.5, h * 0.5); + c.lineTo(w - 54.5, h * 0.5); + c.stroke(); + + c.setStrokeWidth(0.5); + c.setStrokeColor('#333333'); + c.setFillColor('#990000'); + c.begin(); + c.moveTo(w - 45.5, h * 0.5); + c.lineTo(w - 37.5, h * 0.5 - 5); + c.lineTo(w - 41.5, h * 0.5 + 4); + c.lineTo(w - 42, h * 0.5 + 0.5); + c.close(); + c.fillAndStroke(); + + c.setFillColor('#999999'); + c.setStrokeColor('#999999'); + c.begin(); + c.moveTo(w - 28.5, h * 0.5 + 3.5); + c.arcTo(3.5, 3.5, 0, 1, 1, w - 26.5, h * 0.5 + 1); + c.stroke(); + + c.begin(); + c.moveTo(w - 27.25, h * 0.5 + 0.25); + c.lineTo(w - 25.75, h * 0.5 + 0.25); + c.lineTo(w - 26.5, h * 0.5 + 1.5); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w - 31, h * 0.5 - 0.5); + c.arcTo(1, 1.5, 0, 0, 1, w - 29, h * 0.5 - 0.5); + c.stroke(); + + c.rect(w - 31.5, h * 0.5 - 0.5, 3, 2); + c.fillAndStroke(); + + c.setGradient('#eeeeee', '#444444', w - 20, h * 0.5 - 3, 16.5, 6, mxConstants.DIRECTION_NORTH, 1, 1); + c.begin(); + c.moveTo(w - 20, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 3); + c.lineTo(w - 20, h * 0.5 + 3); + c.close(); + c.fill(); + + c.setGradient('#E2FFEB', '#008215', w - 20, h * 0.5 - 3, 10, 6, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(w - 20, h * 0.5 - 3); + c.lineTo(w - 10, h * 0.5 - 3); + c.lineTo(w - 10, h * 0.5 + 3); + c.lineTo(w - 20, h * 0.5 + 3); + c.close(); + c.fill(); + + c.setStrokeColor('#666666'); + c.begin(); + c.moveTo(w - 20, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 3); + c.lineTo(w - 20, h * 0.5 + 3); + c.close(); + c.stroke(); + +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IAPP_BAR, mxShapeMockupiAppBar); + +//********************************************************************************************************************************************************** +//iPhone Top Bar (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiTopBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiTopBar, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiTopBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiTopBar.prototype.background = function(c, x, y, w, h) +{ + c.setAlpha(0.5); + c.setFillColor('#999999'); + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeMockupiTopBar.prototype.foreground = function(c, x, y, w, h) +{ + c.setFillColor('#cccccc'); + c.setStrokeColor('#cccccc'); + c.setFontColor('#cccccc'); + c.setFontSize(7.5); + + c.rect(5, h * 0.5 + 1.75, 1.5, 2.5); + c.fill(); + + c.rect(7, h * 0.5 + 0.75, 1.5, 3.5); + c.fill(); + + c.rect(9, h * 0.5 - 0.25, 1.5, 4.5); + c.fill(); + + c.rect(11, h * 0.5 - 1.25, 1.5, 5.5); + c.fill(); + + c.rect(13, h * 0.5 - 2.25, 1.5, 6.5); + c.fill(); + + c.rect(15, h * 0.5 - 3.25, 1.5, 7.5); + c.fill(); + + c.text(18, h * 0.5, 0, 0, 'CARRIER', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.5, 0, 0, '11:15AM', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.begin(); + c.moveTo(w - 19, h * 0.5 - 2); + c.lineTo(w - 10, h * 0.5 - 2); + c.lineTo(w - 10, h * 0.5 + 2); + c.lineTo(w - 19, h * 0.5 + 2); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(w - 20, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 3); + c.lineTo(w - 20, h * 0.5 + 3); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ITOP_BAR, mxShapeMockupiTopBar); + +//********************************************************************************************************************************************************** +//iPhone Top Bar 2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupiTopBar2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupiTopBar2, mxShape); + +mxShapeMockupiTopBar2.prototype.cst = { + SHAPE_ITOP_BAR2 : 'mxgraph.ios.iTopBar2' +}; + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupiTopBar2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; +mxShapeMockupiTopBar2.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeMockupiTopBar2.prototype.foreground = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.setStrokeColor(strokeColor); + + c.rect(5, h * 0.5 + 1.75, 1.5, 2.5); + c.fill(); + + c.rect(7, h * 0.5 + 0.75, 1.5, 3.5); + c.fill(); + + c.rect(9, h * 0.5 - 0.25, 1.5, 4.5); + c.fill(); + + c.rect(11, h * 0.5 - 1.25, 1.5, 5.5); + c.fill(); + + c.rect(13, h * 0.5 - 2.25, 1.5, 6.5); + c.fill(); + + c.rect(15, h * 0.5 - 3.25, 1.5, 7.5); + c.fill(); + + c.begin(); + c.moveTo(w - 19, h * 0.5 - 2); + c.lineTo(w - 10, h * 0.5 - 2); + c.lineTo(w - 10, h * 0.5 + 2); + c.lineTo(w - 19, h * 0.5 + 2); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(w - 20, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 3); + c.lineTo(w - 20, h * 0.5 + 3); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupiTopBar2.prototype.cst.SHAPE_ITOP_BAR2, mxShapeMockupiTopBar2); + +//********************************************************************************************************************************************************** +//iPhone Top Bar Locked +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiTopBarLocked(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiTopBarLocked, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiTopBarLocked.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiTopBarLocked.prototype.background = function(c, x, y, w, h) +{ + c.setFillColor('#000000'); + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeMockupiTopBarLocked.prototype.foreground = function(c, x, y, w, h) +{ + c.setFillColor('#cccccc'); + c.setStrokeColor('#cccccc'); + + c.rect(5, h * 0.5 + 1.75, 1.5, 2.5); + c.fill(); + + c.rect(7, h * 0.5 + 0.75, 1.5, 3.5); + c.fill(); + + c.rect(9, h * 0.5 - 0.25, 1.5, 4.5); + c.fill(); + + c.rect(11, h * 0.5 - 1.25, 1.5, 5.5); + c.fill(); + + c.rect(13, h * 0.5 - 2.25, 1.5, 6.5); + c.fill(); + + c.rect(15, h * 0.5 - 3.25, 1.5, 7.5); + c.fill(); + + c.begin(); + c.moveTo(w * 0.5 - 2, h * 0.5 - 1); + c.arcTo(2, 3, 0, 0, 1, w * 0.5 + 2, h * 0.5 - 1); + c.stroke(); + + c.rect(w * 0.5 - 3, h * 0.5 - 1, 6, 4); + c.fillAndStroke(); + + + c.begin(); + c.moveTo(w - 19, h * 0.5 - 2); + c.lineTo(w - 10, h * 0.5 - 2); + c.lineTo(w - 10, h * 0.5 + 2); + c.lineTo(w - 19, h * 0.5 + 2); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(w - 20, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 3); + c.lineTo(w - 5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 - 1); + c.lineTo(w - 3.5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 1); + c.lineTo(w - 5, h * 0.5 + 3); + c.lineTo(w - 20, h * 0.5 + 3); + c.close(); + c.stroke(); + +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ITOP_BAR_LOCKED, mxShapeMockupiTopBarLocked); + +//********************************************************************************************************************************************************** +//Button +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiButton, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Main Text'); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8.5').toString(); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeMockupiButton.prototype.background = function(c, x, y, w, h) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + + c.roundrect(0, 0, w, h, 2.5, 2.5); + c.fill(); +}; + +mxShapeMockupiButton.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w / 2, h / 2, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IBUTTON, mxShapeMockupiButton); + +//********************************************************************************************************************************************************** +//Button Back +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiButtonBack(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiButtonBack, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiButtonBack.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Main Text'); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17').toString(); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeMockupiButtonBack.prototype.background = function(c, x, y, w, h) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + + rSize = 2.5; + c.begin(); + c.moveTo(w, rSize); + c.arcTo(rSize, rSize, 0, 0, 0, w - rSize, 0); + c.lineTo(10, 0); + c.lineTo(0.87, h * 0.5 - 0.75); + c.arcTo(rSize, rSize, 0, 0, 0, 0.87, h * 0.5 + 0.75); + c.lineTo(10, h); + c.lineTo(w - rSize, h); + c.arcTo(rSize, rSize, 0, 0, 0, w, h - rSize); + c.close(); + c.fill(); +}; + +mxShapeMockupiButtonBack.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5 + 2.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IBUTTON_BACK, mxShapeMockupiButtonBack); + +//********************************************************************************************************************************************************** +//Button Forward +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiButtonForward(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiButtonForward, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiButtonForward.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Main Text'); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '17').toString(); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeMockupiButtonForward.prototype.background = function(c, x, y, w, h) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + + rSize = 2.5; + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - 10, 0); + c.lineTo(w - 0.87, h * 0.5 - 0.75); + c.arcTo(rSize, rSize, 0, 0, 1, w - 0.87, h * 0.5 + 0.75); + c.lineTo(w - 10, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fill(); +}; + +mxShapeMockupiButtonForward.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(w * 0.5 - 2.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IBUTTON_FORWARD, mxShapeMockupiButtonForward); + +//********************************************************************************************************************************************************** +//Prev/Next Button +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiPrevNextButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiPrevNextButton, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiPrevNextButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiPrevNextButton.prototype.background = function(c, x, y, w, h) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + + var rSize = 5; + c.roundrect(0, 0, w, h, rSize, rSize); + c.fill(); + + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.stroke(); +}; + +mxShapeMockupiPrevNextButton.prototype.foreground = function(c, x, y, w, h) +{ + var fillColor3 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR3, '').toString(); + c.setFillColor(fillColor3); + + c.begin(); + c.moveTo(w * 0.25, h * 0.25); + c.lineTo(w * 0.35, h * 0.75); + c.lineTo(w * 0.15, h * 0.75); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(w * 0.75, h * 0.75); + c.lineTo(w * 0.85, h * 0.25); + c.lineTo(w * 0.65, h * 0.25); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IPREV_NEXT, mxShapeMockupiPrevNextButton); + +//********************************************************************************************************************************************************** +//Text Input +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiTextInput(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiTextInput, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiTextInput.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Main Text'); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#000000').toString(); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8').toString(); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeMockupiTextInput.prototype.background = function(c, x, y, w, h) +{ + c.roundrect(0, 0, w, h, 2.5, 2.5); + c.fillAndStroke(); +}; + +mxShapeMockupiTextInput.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(2, h * 0.5, 0, 0, text, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ITEXT_INPUT, mxShapeMockupiTextInput); + +//********************************************************************************************************************************************************** +//Radio Button Group (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiRadioGroup(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiRadioGroup, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiRadioGroup.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8').toString(); + var optionText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Option 1').toString().split(','); + var optionNum = optionText.length; + var buttonSize = 5; + var lineH = Math.max(fontSize * 1.5, buttonSize); + var maxTextWidth = 0; + var selected = -1; + var labelOffset = 2.5; + var minH = optionNum * lineH; + var trueH = Math.max(h, minH); + + //get min width and selected option + for (var i = 0; i < optionNum; i++) + { + var currText = optionText[i]; + + if(currText.charAt(0) === mxMockupC.SELECTED) + { + currText = optionText[i].substring(1); + selected = i; + } + + var currWidth = mxUtils.getSizeForString(currText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxTextWidth) + { + maxTextWidth = currWidth; + } + } + + var minW = 2 * labelOffset + maxTextWidth + 2 * buttonSize; + var trueW = Math.max(w, minW); + + //draw the background + c.roundrect(0, 0, trueW, trueH, 2.5, 2.5); + c.fillAndStroke(); + c.setShadow(false); + + c.setFontSize(fontSize); + c.setFontColor(fontColor); + + for (var i = 0; i < optionNum; i++) + { + var currHeight = (i * lineH + lineH * 0.5) * trueH / minH; + + var currText = optionText[i]; + + if(currText.charAt(0) === mxMockupC.SELECTED) + { + currText = optionText[i].substring(1); + selected = i; + } + + c.text(buttonSize * 2 + labelOffset, currHeight, 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + var iconX = buttonSize * 0.5; + var iconY = currHeight - buttonSize * 0.5; + c.setFillColor('#dddddd'); + c.setStrokeColor('#000000'); + + if (selected === i) + { + c.setGradient('#aaaaaa', '#666666', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + c.setFillColor('#333333'); + c.setStrokeColor('#333333'); + c.ellipse(iconX + buttonSize * 0.25, iconY + buttonSize * 0.25, buttonSize * 0.5, buttonSize * 0.5); + c.fillAndStroke(); + } + else + { + c.setGradient('#eeeeee', '#cccccc', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + } + } +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IRADIO_GROUP, mxShapeMockupiRadioGroup); + +//********************************************************************************************************************************************************** +//Checkbox Group (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiCheckboxGroup(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiCheckboxGroup, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiCheckboxGroup.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8').toString(); + var optionText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Option 1').toString().split(','); + var optionNum = optionText.length; + var buttonSize = 5; + var lineH = Math.max(fontSize * 1.5, buttonSize); + var maxTextWidth = 0; + var selected = -1; + var labelOffset = 2.5; + var minH = optionNum * lineH; + var trueH = Math.max(h, minH); + + //get min width and selected option + for (var i = 0; i < optionNum; i++) + { + var currText = optionText[i]; + + if(currText.charAt(0) === mxMockupC.SELECTED) + { + currText = optionText[i].substring(1); + selected = i; + } + + var currWidth = mxUtils.getSizeForString(currText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxTextWidth) + { + maxTextWidth = currWidth; + } + } + + var minW = 2 * labelOffset + maxTextWidth + 2 * buttonSize; + var trueW = Math.max(w, minW); + + //draw the background + c.roundrect(0, 0, trueW, trueH, 2.5, 2.5); + c.fillAndStroke(); + c.setShadow(false); + + c.setFontSize(fontSize); + c.setFontColor(fontColor); + + for (var i = 0; i < optionNum; i++) + { + var currHeight = (i * lineH + lineH * 0.5) * trueH / minH; + + var currText = optionText[i]; + + if(currText.charAt(0) === mxMockupC.SELECTED) + { + currText = optionText[i].substring(1); + selected = i; + } + + c.text(buttonSize * 2 + labelOffset, currHeight, 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + var iconX = buttonSize * 0.5; + var iconY = currHeight - buttonSize * 0.5; + c.setFillColor('#dddddd'); + c.setStrokeColor('#000000'); + + if (selected === i) + { + c.setGradient('#aaaaaa', '#666666', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + c.setStrokeColor('#333333'); + c.begin(); + c.moveTo(iconX + buttonSize * 0.25, iconY + buttonSize * 0.5); + c.lineTo(iconX + buttonSize * 0.5, iconY + buttonSize * 0.75); + c.lineTo(iconX + buttonSize * 0.75, iconY + buttonSize * 0.25); + c.stroke(); + } + else + { + c.setGradient('#eeeeee', '#cccccc', iconX, iconY, buttonSize, buttonSize, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + } + + selected = -1; + } +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICHECKBOX_GROUP, mxShapeMockupiCheckboxGroup); + +//********************************************************************************************************************************************************** +//Combo box +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiComboBox(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiComboBox, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiComboBox.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var mainText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Main Text'); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#666666').toString(); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8.5').toString(); + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); + this.mainText(c, x, y, w, h, mainText, fontSize, fontColor); +}; + +mxShapeMockupiComboBox.prototype.background = function(c, x, y, w, h) +{ + c.setFillColor('#ffffff'); + c.roundrect(0, 0, w, h, 2.5, 2.5); + c.fillAndStroke(); +}; + +mxShapeMockupiComboBox.prototype.foreground = function(c, x, y, w, h) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, w - 30, 0, 30, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(w - 15, 0); + c.lineTo(w - 2.5, 0); + c.arcTo(2.5, 2.5, 0, 0, 1, w, 2.5); + c.lineTo(w, h - 2.5); + c.arcTo(2.5, 2.5, 0, 0, 1, w - 2.5, h); + c.lineTo(w - 15, h); + c.close(); + c.fillAndStroke(); + + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(w - 11, 5); + c.lineTo(w - 7.5, 10); + c.lineTo(w - 4, 5); + c.fill(); +}; + +mxShapeMockupiComboBox.prototype.mainText = function(c, x, y, w, h, text, fontSize, fontColor) +{ + c.begin(); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.text(2.5, h * 0.5, 0, 0, text, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICOMBO_BOX, mxShapeMockupiComboBox); + +//********************************************************************************************************************************************************** +//On-Off Button +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiOnOffButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiOnOffButton, mxShape); + +mxShapeMockupiOnOffButton.prototype.customProperties = [ + { name: 'buttonState', dispName: 'State', type: 'enum', + enumList: [{val: 'on', dispName: 'On'}, {val: 'off', dispName: 'Off'}]} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiOnOffButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + w = Math.max(w, 2 * h); + var state = mxUtils.getValue(this.style, mxMockupC.BUTTON_STATE, mxMockupC.STATE_ON); + this.background(c, x, y, w, h, state); + c.setShadow(false); + this.foreground(c, x, y, w, h, state); + this.mainText(c, x, y, w, h, state); +}; + +mxShapeMockupiOnOffButton.prototype.background = function(c, x, y, w, h, state) +{ + if (state === mxMockupC.STATE_ON) + { + c.setGradient('#E2FFEB', '#008215', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(0, 0, w, h, h * 0.5, h * 0.5); + c.fillAndStroke(); + } + else if (state === mxMockupC.STATE_OFF) + { + c.setGradient('#cc9999', '#881100', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(0, 0, w, h, h * 0.5, h * 0.5); + c.fillAndStroke(); + } +}; + +mxShapeMockupiOnOffButton.prototype.foreground = function(c, x, y, w, h, state) +{ + if (state === mxMockupC.STATE_ON) + { + c.setGradient('#ffffff', '#888888', w - h, 0, h, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(w - h, 0, h, h); + c.fillAndStroke(); + } + else + { + c.setGradient('#ffffff', '#888888', 0, 0, h, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(0, 0, h, h); + c.fillAndStroke(); + } +}; + +mxShapeMockupiOnOffButton.prototype.mainText = function(c, x, y, w, h, state) +{ + var mainText = mxUtils.getValue(this.style, 'mainText', null); + c.setFontColor('#ffffff'); + c.setFontSize(8.5); + + if (mainText != '') + { + if(state === mxMockupC.STATE_ON) + { + c.text(w * 0.5 - h * 0.4, h * 0.5, 0, 0, mainText || 'ON', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (state === mxMockupC.STATE_OFF) + { + c.text(w * 0.5 + h * 0.4, h * 0.5, 0, 0, mainText || 'OFF', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + } +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ION_OFF_BUTTON, mxShapeMockupiOnOffButton); + +//********************************************************************************************************************************************************** +//Alert Box +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiAlertBox(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiAlertBox, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiAlertBox.prototype.paintVertexShape = function(c, x, y, w, h) +{ + w = Math.max(w, 15); + h = Math.max(h, 15); + c.translate(x, y); + rSize = 7.5; + this.background(c, x, y, w, h, rSize); + c.setShadow(false); + this.foreground(c, x, y, w, h, rSize); +}; + +mxShapeMockupiAlertBox.prototype.background = function(c, x, y, w, h, rSize) +{ + c.setGradient('#497198', '#193168', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(0.8); + c.setStrokeWidth(1); + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); +}; + +mxShapeMockupiAlertBox.prototype.foreground = function(c, x, y, w, h, rSize) +{ + var mainText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Main Text').toString().split(','); + + c.setStrokeColor('#497198'); + c.setGradient('#497198', '#c5cee1', 0, 0, w, 22.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(0.5); + c.begin(); + c.moveTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, 17.5); + c.arcTo(w * 1.67, h * 2.5, 0, 0, 1, 0, 17.5); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fillAndStroke(); + + c.setAlpha(0.8); + c.setStrokeColor('#ffffff'); + c.setStrokeWidth(1); + c.roundrect(0, 0, w, h, rSize, rSize); + c.stroke(); + + c.setGradient('#497198', '#c5cee1', 5, h - 50, w - 20, 20, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(5, h - 25, w - 10, 20, 2.5, 2.5); + c.fillAndStroke(); + + c.setAlpha(0.9); + c.setFontSize(9.5); + c.setFontColor('#ffffff'); + c.text(w * 0.5, h * 0.15, 0, 0, mainText[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setFontSize(8); + c.text(w * 0.5, h * 0.4, 0, 0, mainText[2], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.55, 0, 0, mainText[3], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setFontSize(8.5); + c.text(w * 0.5, h - 15, 0, 0, mainText[1], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IALERT_BOX, mxShapeMockupiAlertBox); + +//********************************************************************************************************************************************************** +//Dialog Box +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiDialogBox(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiDialogBox, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiDialogBox.prototype.paintVertexShape = function(c, x, y, w, h) +{ + w = Math.max(w, 15); + h = Math.max(h, 15); + c.translate(x, y); + rSize = 7.5; + this.background(c, x, y, w, h, rSize); + c.setShadow(false); + this.foreground(c, x, y, w, h, rSize); +}; + +mxShapeMockupiDialogBox.prototype.background = function(c, x, y, w, h, rSize) +{ + c.setGradient('#497198', '#193168', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(0.8); + c.setStrokeWidth(1); + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); +}; + +mxShapeMockupiDialogBox.prototype.foreground = function(c, x, y, w, h, rSize) +{ + var mainText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Main Text').toString().split(','); + + c.setStrokeColor('#497198'); + c.setGradient('#497198', '#c5cee1', 0, 0, w, 22.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(0.5); + c.begin(); + c.moveTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, 17.5); + c.arcTo(w * 1.67, h * 2.5, 0, 0, 1, 0, 17.5); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fillAndStroke(); + + c.setAlpha(0.8); + c.setStrokeColor('#ffffff'); + c.setStrokeWidth(1); + c.roundrect(0, 0, w, h, rSize, rSize); + c.stroke(); + + c.setGradient('#497198', '#c5cee1', 5, h - 25, w * 0.5 - 10, 20, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(5, h - 25, w * 0.5 - 10, 20, 2.5, 2.5); + c.fillAndStroke(); + + c.roundrect(w * 0.5 + 2.5, h - 25, w * 0.5 - 10, 20, 2.5, 2.5); + c.fillAndStroke(); + + c.setAlpha(0.9); + c.setFontSize(9.5); + c.setFontColor('#ffffff'); + c.text(w * 0.5, h * 0.15, 0, 0, mainText[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setFontSize(8); + c.text(w * 0.5, h * 0.4, 0, 0, mainText[3], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.55, 0, 0, mainText[4], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setFontSize(8.5); + c.text(w * 0.25, h - 15, 0, 0, mainText[1], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.75, h - 15, 0, 0, mainText[2], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IDIALOG_BOX, mxShapeMockupiDialogBox); + +//********************************************************************************************************************************************************** +//Lock Button +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiLockButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiLockButton, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiLockButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.setShadow(false); + + c.setAlpha(0.7); + c.setGradient('#4A4F56', '#70757B', 0, 0, w, h, mxConstants.DIRECTION_NORTH, 1, 1); + c.rect(0, 0, w, h); + c.fill(); + + c.setAlpha(0.8); + c.setGradient('#18232D', '#1F2933', 10, 10, 154, 30, mxConstants.DIRECTION_NORTH, 1, 1); + c.roundrect(10, h * 0.5 - 15, w - 20, 30, 7.5, 7.5); + c.fill(); + + c.setAlpha(1); + c.setGradient('#E9F3FD', '#ADB7C1', 12.5, 12.5, 40, 25, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(12.5, h * 0.5 - 12.5, 40, 25, 5, 5); + c.fill(); + + c.setAlpha(0.8); + c.setStrokeWidth(0.5); + c.setStrokeColor('#aabbbb'); + c.setGradient('#AEB7C1', '#667079', 20, 17.5, 25, 15, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(20, h * 0.5 - 3.5); + c.lineTo(35, h * 0.5 - 3.5); + c.lineTo(35, h * 0.5 - 7.5); + c.lineTo(45, h * 0.5); + c.lineTo(35, h * 0.5 + 7.5); + c.lineTo(35, h * 0.5 + 3.5); + c.lineTo(20, h * 0.5 + 3.5); + c.close(); + c.fillAndStroke(); + + var mainText = mxUtils.getValue(this.style, 'mainText', null); + + if (mainText != '') + { + c.setFontSize(12.5); + c.setFontColor('#cccccc'); + c.text(w / 2 + 20.5, h / 2, 0, 0, 'slide to unlock', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ILOCK_BUTTON, mxShapeMockupiLockButton); + +//********************************************************************************************************************************************************** +//Arrow Icon +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiArrowIcon(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiArrowIcon, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiArrowIcon.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '').toString(); + + c.translate(x, y); + this.background(c, x, y, w, h, strokeColor); + c.setShadow(false); + this.foreground(c, x, y, w, h, strokeColor); +}; + +mxShapeMockupiArrowIcon.prototype.background = function(c, x, y, w, h, strokeColor) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + + c.setStrokeWidth(1.5); + c.setStrokeColor(strokeColor); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiArrowIcon.prototype.foreground = function(c, x, y, w, h, strokeColor) +{ + c.setStrokeWidth(2.5); + c.begin(); + c.moveTo(w * 0.4, h * 0.22); + c.lineTo(w * 0.65, h * 0.5); + c.lineTo(w * 0.4, h * 0.78); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IARROW_ICON, mxShapeMockupiArrowIcon); + +//********************************************************************************************************************************************************** +//Delete Icon +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiDeleteIcon(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiDeleteIcon, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiDeleteIcon.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '').toString(); + + c.translate(x, y); + this.background(c, x, y, w, h, strokeColor); + c.setShadow(false); + this.foreground(c, x, y, w, h, strokeColor); +}; + +mxShapeMockupiDeleteIcon.prototype.background = function(c, x, y, w, h, strokeColor) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + + c.setStrokeWidth(1.5); + c.setStrokeColor(strokeColor); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiDeleteIcon.prototype.foreground = function(c, x, y, w, h, strokeColor) +{ + c.setStrokeWidth(2.5); + c.begin(); + c.moveTo(w * 0.25, h * 0.5); + c.lineTo(w * 0.75, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IDELETE_ICON, mxShapeMockupiDeleteIcon); + +//********************************************************************************************************************************************************** +//Add Icon +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiAddIcon(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiAddIcon, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiAddIcon.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '').toString(); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setStrokeColor(strokeColor); + + + c.translate(x, y); + this.background(c, x, y, w, h, strokeColor); + c.setShadow(false); + this.foreground(c, x, y, w, h, strokeColor); +}; + +mxShapeMockupiAddIcon.prototype.background = function(c, x, y, w, h, strokeColor) +{ + c.setStrokeWidth(1.5); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiAddIcon.prototype.foreground = function(c, x, y, w, h, strokeColor) +{ + c.setStrokeWidth(2.5); + c.begin(); + c.moveTo(w * 0.25, h * 0.5); + c.lineTo(w * 0.75, h * 0.5); + c.moveTo(w * 0.5, h * 0.25); + c.lineTo(w * 0.5, h * 0.75); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IADD_ICON, mxShapeMockupiAddIcon); + +//********************************************************************************************************************************************************** +//Info Icon +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiInfoIcon(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiInfoIcon, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiInfoIcon.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '').toString(); + + c.translate(x, y); + this.background(c, x, y, w, h, strokeColor); + c.setShadow(false); + this.foreground(c, x, y, w, h, strokeColor); +}; + +mxShapeMockupiInfoIcon.prototype.background = function(c, x, y, w, h, strokeColor) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + + c.setStrokeWidth(1.5); + c.setStrokeColor(strokeColor); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiInfoIcon.prototype.foreground = function(c, x, y, w, h, strokeColor) +{ + c.setStrokeWidth(2.5); + c.begin(); + c.setFillColor('#ffffff'); + c.moveTo(w * 0.47, h * 0.334); + c.arcTo(w * 0.1, h * 0.15, 60, 0, 1, w * 0.61, h * 0.42); + c.lineTo(w * 0.51, h * 0.7); + c.arcTo(w * 0.026, h * 0.03, 30, 0, 0, w * 0.54, h * 0.74); + c.lineTo(w * 0.608, h * 0.684); + c.arcTo(w * 0.02, h * 0.015, 0, 0, 1, w * 0.638, h * 0.706); + c.arcTo(w * 0.45, h * 0.45, 0, 0, 1, w * 0.42, h * 0.865); + c.arcTo(w * 0.1, h * 0.08, -15, 0, 1, w * 0.325, h * 0.77); + c.lineTo(w * 0.358, h * 0.66); + c.lineTo(w * 0.435, h * 0.46); + c.arcTo(w * 0.023, h * 0.03, 0, 0, 0, w * 0.4, h * 0.43); + c.lineTo(w * 0.338, h * 0.484); + c.arcTo(w * 0.01, h * 0.015, 45, 0, 1, w * 0.31, h * 0.47); + c.arcTo(w * 0.3, h * 0.3, 0, 0, 1, w * 0.47, h * 0.334); + c.fill(); + + c.begin(); + c.moveTo(w * 0.5438, h * 0.141); + c.arcTo(w * 0.0776, h * 0.0898, 40, 0, 1, w * 0.6671, h * 0.2308); + c.arcTo(w * 0.0776, h * 0.0898, 40, 0, 1, w * 0.5438, h * 0.141); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IINFO_ICON, mxShapeMockupiInfoIcon); + + +//********************************************************************************************************************************************************** +//Sort/Find Icon +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiSortFindIcon(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiSortFindIcon, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiSortFindIcon.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '').toString(); + + c.translate(x, y); + this.background(c, x, y, w, h, strokeColor); + c.setShadow(false); + this.foreground(c, x, y, w, h, strokeColor); +}; + +mxShapeMockupiSortFindIcon.prototype.background = function(c, x, y, w, h, strokeColor) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + + c.setStrokeWidth(1.5); + c.setStrokeColor(strokeColor); + c.roundrect(0, 0, w, h, w * 0.1, h * 0.1); + c.fillAndStroke(); +}; + +mxShapeMockupiSortFindIcon.prototype.foreground = function(c, x, y, w, h, strokeColor) +{ + c.setStrokeWidth((Math.min(h, w)) / 20); + c.begin(); + c.setFillColor('#ffffff'); + c.moveTo(w * 0.1, h * 0.25); + c.lineTo(w * 0.9, h * 0.25); + c.moveTo(w * 0.1, h * 0.4); + c.lineTo(w * 0.9, h * 0.4); + c.moveTo(w * 0.1, h * 0.55); + c.lineTo(w * 0.6, h * 0.55); + c.moveTo(w * 0.1, h * 0.7); + c.lineTo(w * 0.5, h * 0.7); + c.stroke(); + + c.begin(); + c.ellipse(w * 0.6, h * 0.6, w * 0.2, h * 0.2); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.77, h * 0.77); + c.lineTo(w * 0.85, h * 0.85); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ISORT_FIND_ICON, mxShapeMockupiSortFindIcon); + +//********************************************************************************************************************************************************** +//Check Icon +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiCheckIcon(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiCheckIcon, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiCheckIcon.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '').toString(); + + c.translate(x, y); + this.background(c, x, y, w, h, strokeColor); + c.setShadow(false); + this.foreground(c, x, y, w, h, strokeColor); +}; + +mxShapeMockupiCheckIcon.prototype.background = function(c, x, y, w, h, strokeColor) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + + c.setStrokeWidth(1.5); + c.setStrokeColor(strokeColor); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiCheckIcon.prototype.foreground = function(c, x, y, w, h, strokeColor) +{ + c.setStrokeWidth(2.5); + c.begin(); + c.moveTo(w * 0.25, h * 0.5); + c.lineTo(w * 0.5, h * 0.65); + c.lineTo(w * 0.75, h * 0.25); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICHECK_ICON, mxShapeMockupiCheckIcon); + +//********************************************************************************************************************************************************** +//Keyboard (letters) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiKeybLetters(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiKeybLetters, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiKeybLetters.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiKeybLetters.prototype.background = function(c, x, y, w, h) +{ + c.setGradient('#8A97A7', '#425163', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeMockupiKeybLetters.prototype.foreground = function(c, x, y, w, h, strokeColor) +{ + c.setGradient('#EEF3F9', '#DBE2E9', w * 0.0086, h * 0.03, w * 0.0776, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + rSizeX = w * 0.0144; + rSizeY = h * 0.025; + c.setFontSize(10.5); + c.setFontColor('#000000'); + + c.roundrect(w * 0.0086, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.0474, h * 0.125, 0, 0, 'Q', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.1092, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.148, h * 0.125, 0, 0, 'W', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.2098, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2486, h * 0.125, 0, 0, 'E', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.3103, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3491, h * 0.125, 0, 0, 'R', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.4109, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.4497, h * 0.125, 0, 0, 'T', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.5115, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5503, h * 0.125, 0, 0, 'Y', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.6121, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6509, h * 0.125, 0, 0, 'U', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.7126, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7514, h * 0.125, 0, 0, 'I', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.8132, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.852, h * 0.125, 0, 0, 'O', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.9138, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.9526, h * 0.125, 0, 0, 'P', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.0632, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.102, h * 0.375, 0, 0, 'A', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.1638, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2026, h * 0.375, 0, 0, 'S', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.2644, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3032, h * 0.375, 0, 0, 'D', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.3649, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.4037, h * 0.375, 0, 0, 'F', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.4655, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5043, h * 0.375, 0, 0, 'G', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.5661, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6049, h * 0.375, 0, 0, 'H', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.6667, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7055, h * 0.375, 0, 0, 'J', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.7672, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.806, h * 0.375, 0, 0, 'K', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.8678, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.9066, h * 0.375, 0, 0, 'L', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + + c.roundrect(w * 0.1638, h * 0.53, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2026, h * 0.625, 0, 0, 'Z', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.2644, h * 0.53, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3032, h * 0.625, 0, 0, 'X', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.3649, h * 0.53, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.4037, h * 0.625, 0, 0, 'C', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.4655, h * 0.53, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5043, h * 0.625, 0, 0, 'V', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.5661, h * 0.53, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6049, h * 0.625, 0, 0, 'B', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.6667, h * 0.53, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7055, h * 0.625, 0, 0, 'N', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.7672, h * 0.53, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.806, h * 0.625, 0, 0, 'M', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + + c.roundrect(w * 0.2644, h * 0.78, w * 0.4799, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.setFontColor('#666666'); + c.text(w * 0.5043, h * 0.875, 0, 0, 'space', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setFontColor('#ffffff'); + + c.setGradient('#8B98A8', '#677488', w * 0.0115, h * 0.53, w * 0.1207, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(w * 0.0115, h * 0.53, w * 0.1207, h * 0.19, rSizeX, rSizeY); + c.fill(); + + c.setGradient('#8B98A8', '#677488', w * 0.8736, h * 0.53, w * 0.115, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(w * 0.8736, h * 0.53, w * 0.115, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.setGradient('#8B98A8', '#677488', w * 0.0115, h * 0.78, w * 0.2299, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(w * 0.0115, h * 0.78, w * 0.2299, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.setGradient('#8B98A8', '#677488', w * 0.7672, h * 0.78, w * 0.2213, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(w * 0.7672, h * 0.78, w * 0.2213, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.1264, h * 0.875, 0, 0, '.?123', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8779, h * 0.875, 0, 0, 'return', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setShadow(false); + c.setLineJoin('round'); + c.setStrokeColor('#ffffff'); + c.setFillColor('#ffffff'); + c.setStrokeWidth(1.5); + c.begin(); + c.moveTo(w * 0.0402, h * 0.635); + c.lineTo(w * 0.0718, h * 0.58); + c.lineTo(w * 0.1034, h * 0.635); + c.lineTo(w * 0.0862, h * 0.635); + c.lineTo(w * 0.0862, h * 0.67); + c.lineTo(w * 0.0575, h * 0.67); + c.lineTo(w * 0.0575, h * 0.635); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.9109, h * 0.585); + c.lineTo(w * 0.9655, h * 0.585); + c.lineTo(w * 0.9655, h * 0.665); + c.lineTo(w * 0.9109, h * 0.665); + c.lineTo(w * 0.8879, h * 0.625); + c.close(); + c.fillAndStroke(); + + c.setStrokeColor('#677488'); + c.begin(); + c.moveTo(w * 0.9224, h * 0.605); + c.lineTo(w * 0.9454, h * 0.645); + c.moveTo(w * 0.9224, h * 0.645); + c.lineTo(w * 0.9454, h * 0.605); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IKEYB_LETTERS, mxShapeMockupiKeybLetters); + +//********************************************************************************************************************************************************** +//Keyboard (numbers) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiKeybNumbers(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiKeybNumbers, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiKeybNumbers.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiKeybNumbers.prototype.background = function(c, x, y, w, h) +{ + c.setGradient('#8A97A7', '#425163', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeMockupiKeybNumbers.prototype.foreground = function(c, x, y, w, h, strokeColor) +{ + c.setGradient('#EEF3F9', '#DBE2E9', w * 0.0086, h * 0.03, w * 0.0776, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + rSizeX = w * 0.0144; + rSizeY = h * 0.025; + c.setFontSize(10.5); + c.setFontColor('#000000'); + + c.roundrect(w * 0.0086, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.0474, h * 0.125, 0, 0, '1', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.1092, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.148, h * 0.125, 0, 0, '2', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.2098, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2486, h * 0.125, 0, 0, '3', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.3103, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3491, h * 0.125, 0, 0, '4', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.4109, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.4497, h * 0.125, 0, 0, '5', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.5115, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5503, h * 0.125, 0, 0, '6', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.6121, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6509, h * 0.125, 0, 0, '7', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.7126, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7514, h * 0.125, 0, 0, '8', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.8132, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.852, h * 0.125, 0, 0, '9', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.9138, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.9526, h * 0.125, 0, 0, '0', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.0086, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.0474, h * 0.375, 0, 0, '-', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.1092, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.148, h * 0.375, 0, 0, '/', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.2098, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2486, h * 0.375, 0, 0, ':', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.3103, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3491, h * 0.375, 0, 0, ';', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.4109, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.4497, h * 0.375, 0, 0, '(', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.5115, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5503, h * 0.375, 0, 0, ')', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.6121, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6509, h * 0.375, 0, 0, '$', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.7126, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7514, h * 0.375, 0, 0, '&', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.8132, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.852, h * 0.375, 0, 0, '@', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.9138, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.9526, h * 0.375, 0, 0, '\"', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.1638, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2227, h * 0.625, 0, 0, '.', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.3046, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3635, h * 0.625, 0, 0, ',', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.4454, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5043, h * 0.625, 0, 0, '?', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.5862, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6451, h * 0.625, 0, 0, '!', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.727, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7859, h * 0.625, 0, 0, '\'', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + + c.roundrect(w * 0.2644, h * 0.78, w * 0.4799, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.setFontColor('#666666'); + c.text(w * 0.5043, h * 0.875, 0, 0, 'space', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setGradient('#8B98A8', '#677488', w * 0.0115, h * 0.53, w * 0.1207, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setFontColor('#ffffff'); + + c.roundrect(w * 0.0115, h * 0.53, w * 0.1207, h * 0.19, rSizeX, rSizeY); + c.fill(); + + c.roundrect(w * 0.8736, h * 0.53, w * 0.115, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.roundrect(w * 0.0115, h * 0.78, w * 0.2299, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.roundrect(w * 0.7672, h * 0.78, w * 0.2213, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.0718, h * 0.625, 0, 0, '#+=', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.1264, h * 0.875, 0, 0, 'ABC', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8779, h * 0.875, 0, 0, 'return', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setShadow(false); + c.setLineJoin('round'); + c.setStrokeColor('#ffffff'); + c.setFillColor('#ffffff'); + c.setStrokeWidth(1.5); + c.begin(); + c.moveTo(w * 0.9109, h * 0.585); + c.lineTo(w * 0.9655, h * 0.585); + c.lineTo(w * 0.9655, h * 0.665); + c.lineTo(w * 0.9109, h * 0.665); + c.lineTo(w * 0.8879, h * 0.625); + c.close(); + c.fillAndStroke(); + + c.setStrokeColor('#677488'); + c.begin(); + c.moveTo(w * 0.9224, h * 0.605); + c.lineTo(w * 0.9454, h * 0.645); + c.moveTo(w * 0.9224, h * 0.645); + c.lineTo(w * 0.9454, h * 0.605); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IKEYB_NUMBERS, mxShapeMockupiKeybNumbers); + +//********************************************************************************************************************************************************** +//Keyboard (symbols) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiKeybSymbols(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiKeybSymbols, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiKeybSymbols.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiKeybSymbols.prototype.background = function(c, x, y, w, h) +{ + c.setGradient('#8A97A7', '#425163', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeMockupiKeybSymbols.prototype.foreground = function(c, x, y, w, h, strokeColor) +{ + c.setGradient('#EEF3F9', '#DBE2E9', w * 0.0086, h * 0.03, w * 0.0776, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + rSizeX = w * 0.0144; + rSizeY = h * 0.025; + c.setFontSize(10.5); + c.setFontColor('#000000'); + + c.roundrect(w * 0.0086, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.0474, h * 0.125, 0, 0, '[', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.1092, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.148, h * 0.125, 0, 0, ']', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.2098, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2486, h * 0.125, 0, 0, '{', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.3103, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3491, h * 0.125, 0, 0, '}', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.4109, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.4497, h * 0.125, 0, 0, '#', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.5115, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5503, h * 0.125, 0, 0, '%', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.6121, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6509, h * 0.125, 0, 0, '^', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.7126, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7514, h * 0.125, 0, 0, '*', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.8132, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.852, h * 0.125, 0, 0, '+', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.9138, h * 0.03, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.9526, h * 0.125, 0, 0, '=', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.0086, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.0474, h * 0.375, 0, 0, '_', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.1092, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.148, h * 0.375, 0, 0, '\\', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.2098, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2486, h * 0.375, 0, 0, '|', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.3103, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3491, h * 0.375, 0, 0, '~', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.4109, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.4497, h * 0.375, 0, 0, '<', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.5115, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5503, h * 0.375, 0, 0, '>', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.6121, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6509, h * 0.375, 0, 0, String.fromCharCode(128), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.7126, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7514, h * 0.375, 0, 0, String.fromCharCode(parseInt('00A3', 16)), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.8132, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.852, h * 0.375, 0, 0, String.fromCharCode(parseInt('00A5', 16)), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.9138, h * 0.28, w * 0.0776, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.9526, h * 0.375, 0, 0, String.fromCharCode(parseInt('0095', 16)), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.1638, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.2227, h * 0.625, 0, 0, '.', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.3046, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.3635, h * 0.625, 0, 0, ',', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.4454, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.5043, h * 0.625, 0, 0, '?', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.5862, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.6451, h * 0.625, 0, 0, '!', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.727, h * 0.53, w * 0.1178, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.7859, h * 0.625, 0, 0, '\'', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.roundrect(w * 0.2644, h * 0.78, w * 0.4799, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.setFontColor('#666666'); + c.text(w * 0.5043, h * 0.875, 0, 0, 'space', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setGradient('#8B98A8', '#677488', w * 0.0115, h * 0.53, w * 0.1207, h * 0.19, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setFontColor('#ffffff'); + + c.roundrect(w * 0.0115, h * 0.53, w * 0.1207, h * 0.19, rSizeX, rSizeY); + c.fill(); + + c.roundrect(w * 0.8736, h * 0.53, w * 0.115, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.roundrect(w * 0.0115, h * 0.78, w * 0.2299, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.roundrect(w * 0.7672, h * 0.78, w * 0.2213, h * 0.19, rSizeX, rSizeY); + c.fill(); + c.text(w * 0.0718, h * 0.625, 0, 0, '123', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.1264, h * 0.875, 0, 0, 'ABC', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8779, h * 0.875, 0, 0, 'return', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setShadow(false); + c.setLineJoin('round'); + c.setStrokeColor('#ffffff'); + c.setFillColor('#ffffff'); + c.setStrokeWidth(1.5); + c.begin(); + c.moveTo(w * 0.9109, h * 0.585); + c.lineTo(w * 0.9655, h * 0.585); + c.lineTo(w * 0.9655, h * 0.665); + c.lineTo(w * 0.9109, h * 0.665); + c.lineTo(w * 0.8879, h * 0.625); + c.close(); + c.fillAndStroke(); + + c.setStrokeColor('#677488'); + c.begin(); + c.moveTo(w * 0.9224, h * 0.605); + c.lineTo(w * 0.9454, h * 0.645); + c.moveTo(w * 0.9224, h * 0.645); + c.lineTo(w * 0.9454, h * 0.605); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IKEYB_SYMBOLS, mxShapeMockupiKeybSymbols); + +//********************************************************************************************************************************************************** +//Delete App +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiDeleteApp(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiDeleteApp, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiDeleteApp.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '').toString(); + + c.translate(x, y); + this.background(c, x, y, w, h, strokeColor); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiDeleteApp.prototype.background = function(c, x, y, w, h, strokeColor) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '').toString(); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '').toString(); + c.setGradient(fillColor, fillColor2, 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + + c.setStrokeWidth(1.5); + c.setStrokeColor(strokeColor); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiDeleteApp.prototype.foreground = function(c, x, y, w, h) +{ + c.setStrokeWidth(2.5); + c.begin(); + c.moveTo(w * 0.3, h * 0.3); + c.lineTo(w * 0.7, h * 0.7); + c.moveTo(w * 0.3, h * 0.7); + c.lineTo(w * 0.7, h * 0.3); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IDELETE_APP, mxShapeMockupiDeleteApp); + +//********************************************************************************************************************************************************** +//Direction +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiDirection(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiDirection, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiDirection.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiDirection.prototype.background = function(c, x, y, w, h) +{ + c.setStrokeWidth(0.5); + c.setStrokeColor('#008cff'); + c.ellipse(0, 0, w, h); + c.stroke(); +}; + +mxShapeMockupiDirection.prototype.foreground = function(c, x, y, w, h) +{ + c.setAlpha(1); + c.setGradient('#ffffff', '#ffffff', w * 0.29, h * 0.2, w * 0.42, h * 0.3, mxConstants.DIRECTION_NORTH, 1, 0); + c.begin(); + c.moveTo(w * 0.29, h * 0.2); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.71, h * 0.2); + c.fillAndStroke(); + + c.setStrokeColor('#006cdf'); + c.setGradient('#ffffff', '#007cef', w * 0.47, h * 0.47, w * 0.06, h * 0.06, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(1); + c.ellipse(w * 0.47, h * 0.47, w * 0.06, h * 0.06); + c.fillAndStroke(); + + c.setFillColor('#ffffff'); + c.setAlpha(0.8); + c.ellipse(w * 0.4825, h * 0.4825, w * 0.015, h * 0.015); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IDIRECTION, mxShapeMockupiDirection); + +//********************************************************************************************************************************************************** +//Location Bar +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiLocationBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiLocationBar, mxShape); + +mxShapeMockupiLocationBar.prototype.customProperties = [ + {name: 'buttonText', dispName: 'Text', type: 'string'}, + {name: 'barPos', dispName: 'Callout Position', type: 'float', min:0, defVal:80}, + {name: 'pointerPos', dispName: 'Callout Orientation', type: 'enum', + enumList: [{val: 'bottom', dispName: 'Bottom'}, {val: 'top', dispName: 'Top'}] + } +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiLocationBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiLocationBar.prototype.background = function(c, x, y, w, h) +{ + var barPos = mxUtils.getValue(this.style, mxMockupC.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var pointerPos = mxUtils.getValue(this.style, mxMockupC.POINTER_POS, mxMockupC.POINTER_BOTTOM); + var rSize = 2.5; + var deadzone = rSize + 7.5; // rounding + pointer width / 2 + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + c.setStrokeWidth(0.5); + c.setStrokeColor('#000000'); + c.setAlpha(0.7); + c.begin(); + + if (pointerPos === mxMockupC.POINTER_BOTTOM) + { + c.setGradient('#000000', '#888888', 0, 0, w, h, mxConstants.DIRECTION_NORTH, 1, 1); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize - 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h - 7.5); + c.lineTo(truePos + 7.5, h - 7.5); + c.lineTo(truePos, h); + c.lineTo(truePos - 7.5, h - 7.5); + c.lineTo(rSize, h - 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize - 7.5); + } + else if (pointerPos === mxMockupC.POINTER_TOP) + { + c.setGradient('#000000', '#888888', 0, 0, w, h, mxConstants.DIRECTION_NORTH, 1, 1); + c.moveTo(0, rSize + 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 7.5); + c.lineTo(truePos - 7.5, 7.5); + c.lineTo(truePos, 0); + c.lineTo(truePos + 7.5, 7.5); + c.lineTo(w - rSize, 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize + 7.5); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + } + + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupiLocationBar.prototype.foreground = function(c, x, y, w, h) +{ + var pointerPos = mxUtils.getValue(this.style, mxMockupC.POINTER_POS, mxMockupC.POINTER_BOTTOM); + var locText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Some Location'); + c.setAlpha(1); + c.setFontColor('#ffffff'); + c.setFontSize(9.5); + + if (pointerPos === mxMockupC.POINTER_BOTTOM) + { + c.text(5, (h - 7.5) * 0.5, 0, 0, locText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.translate(w - 20, (h - 7.5) * 0.5 - 7.5); + } + else + { + c.text(5, (h + 7.5) * 0.5, 0, 0, locText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.translate(w - 20, (h + 7.5) * 0.5 - 7.5); + } + + w = 15; + h = 15; + + c.setGradient('#8BbEff', '#135Ec8', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + + c.setStrokeWidth(1.5); + c.setStrokeColor('#ffffff'); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + c.setStrokeWidth(2.5); + c.begin(); + c.moveTo(w * 0.4, h * 0.22); + c.lineTo(w * 0.65, h * 0.5); + c.lineTo(w * 0.4, h * 0.78); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ILOCATION_BAR, mxShapeMockupiLocationBar); + +//********************************************************************************************************************************************************** +//Call Dialog +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiCallDialog(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiCallDialog, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiCallDialog.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var rSize = 5; + c.translate(x, y); + this.background(c, x, y, w, h, rSize); + c.setShadow(false); + this.foreground(c, x, y, w, h, rSize); +}; + +mxShapeMockupiCallDialog.prototype.background = function(c, x, y, w, h, rSize) +{ + c.setAlpha(0.8); + c.setStrokeColor('#888888'); + c.setStrokeWidth(1.5); + c.setFillColor('#000000'); + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); +}; + +mxShapeMockupiCallDialog.prototype.foreground = function(c, x, y, w, h, rSize) +{ + + c.begin(); + c.moveTo(w * 0.33, 0); + c.lineTo(w * 0.33, h); + c.moveTo(w * 0.67, 0); + c.lineTo(w * 0.67, h); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + + c.setStrokeColor('#000000'); + c.setFillColor('#ffffff'); + c.setStrokeWidth(0.5); + c.roundrect(w * 0.1433, h * 0.104, w * 0.0417, h * 0.148, w * 0.02, h * 0.024); + c.fill(); + + c.begin(); + c.moveTo(w * 0.14, h * 0.188); + c.lineTo(w * 0.14, h * 0.228); + c.arcTo(w * 0.025, h * 0.03, 0, 0, 0, w * 0.19, h * 0.228); + c.lineTo(w * 0.19, h * 0.188); + c.lineTo(w * 0.2, h * 0.188); + c.lineTo(w * 0.2, h * 0.228); + c.arcTo(w * 0.0367, h * 0.044, 0, 0, 1, w * 0.17, h * 0.27); + c.lineTo(w * 0.17, h * 0.296); + c.lineTo(w * 0.195, h * 0.296); + c.lineTo(w * 0.195, h * 0.308); + c.lineTo(w * 0.1367, h * 0.308); + c.lineTo(w * 0.1367, h * 0.296); + c.lineTo(w * 0.16, h * 0.296); + c.lineTo(w * 0.16, h * 0.27); + c.arcTo(w * 0.0367, h * 0.044, 0, 0, 1, w * 0.13, h * 0.228); + c.lineTo(w * 0.13, h * 0.188); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.1033, h * 0.108); + c.lineTo(w * 0.24, h * 0.286); + c.lineTo(w * 0.2317, h * 0.298); + c.lineTo(w * 0.095, h * 0.12); + c.close(); + c.fillAndStroke(); + + c.rect(w * 0.44, h * 0.128, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.485, h * 0.128, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.53, h * 0.128, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.44, h * 0.186, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.485, h * 0.186, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.53, h * 0.186, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.44, h * 0.244, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.485, h * 0.244, w * 0.033, h * 0.04); + c.fill(); + c.rect(w * 0.53, h * 0.244, w * 0.033, h * 0.04); + c.fill(); + + c.begin(); + c.moveTo(w * 0.7567, h * 0.18); + c.lineTo(w * 0.785, h * 0.18); + c.lineTo(w * 0.825, h * 0.128); + c.lineTo(w * 0.825, h * 0.28); + c.lineTo(w * 0.79, h * 0.234); + c.lineTo(w * 0.7567, h * 0.234); + c.close(); + c.fill(); + + c.setStrokeWidth(1.5); + c.setStrokeColor('#ffffff'); + c.begin(); + c.moveTo(w * 0.8383, h * 0.16); + c.arcTo(w * 0.0533, h * 0.064, 0, 0, 1, w * 0.8383, h * 0.252); + c.moveTo(w * 0.8583, h * 0.134); + c.arcTo(w * 0.0817, h * 0.098, 0, 0, 1, w * 0.8583, h * 0.276); + c.moveTo(w * 0.8767, h * 0.11); + c.arcTo(w * 0.1133, h * 0.136, 0, 0, 1, w * 0.8767, h * 0.304); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.1467, h * 0.62); + c.lineTo(w * 0.1833, h * 0.62); + c.lineTo(w * 0.1833,h * 0.676); + c.lineTo(w * 0.2267,h * 0.676); + c.lineTo(w * 0.2267,h * 0.724); + c.lineTo(w * 0.1833,h * 0.724); + c.lineTo(w * 0.1833,h * 0.78); + c.lineTo(w * 0.1467,h * 0.78); + c.lineTo(w * 0.1467,h * 0.724); + c.lineTo(w * 0.105,h * 0.724); + c.lineTo(w * 0.105,h * 0.676); + c.lineTo(w * 0.1467,h * 0.676); + c.close(); + c.fill(); + + c.rect(w * 0.4517, h * 0.624, w * 0.0333, h * 0.152); + c.fill(); + + c.rect(w * 0.5183, h * 0.624, w * 0.0333, h * 0.152); + c.fill(); + + c.begin(); + c.moveTo(w * 0.76, h * 0.752); + c.arcTo(w * 0.1, h * 0.12, 0, 0, 1, w * 0.8033, h * 0.728); + c.arcTo(w * 0.0167, h * 0.02, 0, 0, 0, w * 0.8167, h * 0.712); + c.lineTo(w * 0.8175, h * 0.7); + c.arcTo(w * 0.0267, h * 0.06, 0, 0, 1, w * 0.8067, h * 0.644); + c.arcTo(w * 0.0287, h * 0.0344, 0, 0, 1, w * 0.8633, h * 0.644); + c.arcTo(w * 0.0267, h * 0.06, 0, 0, 1, w * 0.855, h * 0.7); + c.arcTo(w * 0.05, h * 0.724, 0, 0, 1, w * 0.8633, h * 0.724); + c.arcTo(w * 0.1667, h * 0.75, 0, 0, 1, w * 0.9083, h * 0.75); + c.lineTo(w * 0.9083, h * 0.78); + c.lineTo(w * 0.76, h * 0.78); + c.close(); + c.fill(); + + c.setFontColor('#ffffff'); + c.setFontSize(8.5); + c.text(w * 0.1667, h * 0.35, 0, 0, 'mute', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.35, 0, 0, 'keypad', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.35, 0, 0, 'speaker', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.1667, h * 0.85, 0, 0, 'add', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.85, 0, 0, 'pause', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.85, 0, 0, 'contacts', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setGradient('#808080', '#ffffff', 0, 0, w, h * 0.308, mxConstants.DIRECTION_NORTH, 1, 1); + c.setAlpha(0.4); + c.begin(); + c.moveTo(0, h * 0.308); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h * 0.308); + c.arcTo(w * 1.5, h * 1.8, 0, 0, 1, 0, h * 0.308); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICALL_DIALOG, mxShapeMockupiCallDialog); + +//********************************************************************************************************************************************************** +//Call Buttons +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiCallButtons(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiCallButtons, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiCallButtons.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiCallButtons.prototype.background = function(c, x, y, w, h) +{ + c.setStrokeWidth(0.5); + c.setStrokeColor('#008cff'); + c.setGradient('#0F1B2B', '#4F5B6B', 0, 0, w, h, mxConstants.DIRECTION_NORTH, 1, 1); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeMockupiCallButtons.prototype.foreground = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, h * 0.1667); + c.lineTo(w, h * 0.1667); + c.moveTo(0, h * 0.3333); + c.lineTo(w, h * 0.3333); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.moveTo(0, h * 0.6667); + c.lineTo(w, h * 0.6667); + c.moveTo(0, h * 0.8333); + c.lineTo(w, h * 0.8333); + c.moveTo(w * 0.3333, h * 0.1667); + c.lineTo(w * 0.3333, h); + c.moveTo(w * 0.6667, h * 0.1667); + c.lineTo(w * 0.6667, h); + c.stroke(); + + c.setFontSize(15.5); + c.setFontColor('#ffffff'); + c.setFontStyle(mxConstants.FONT_BOLD); + + c.text(w * 0.5, h * 0.0834, 0, 0, '(123) 456-7890', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.text(w * 0.1667, h * 0.22, 0, 0, '1', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.22, 0, 0, '2', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.22, 0, 0, '3', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.text(w * 0.1667, h * 0.3867, 0, 0, '3', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.3867, 0, 0, '4', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.3867, 0, 0, '5', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.text(w * 0.1667, h * 0.5534, 0, 0, '6', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.5534, 0, 0, '7', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.5534, 0, 0, '8', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setFontSize(27.5); + c.text(w * 0.1667, h * 0.76, 0, 0, '*', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontSize(15.5); + c.text(w * 0.5, h * 0.72, 0, 0, '0', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.75, 0, 0, '#', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setGradient('#E2FFEB', '#008215', w * 0.3333, h * 0.8333, w * 0.3333, h * 0.1667, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(w * 0.3333, h * 0.8333, w * 0.3333, h * 0.1667); + c.fillAndStroke(); + + c.text(w * 0.5, h * 0.9168, 0, 0, 'Call', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setFontStyle(0); + c.setFontSize(8); + c.setFontColor('#bbbbbb'); + + c.text(w * 0.5, h * 0.28, 0, 0, 'ABC', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.28, 0, 0, 'DEF', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.text(w * 0.1667, h * 0.4467, 0, 0, 'GHI', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.4467, 0, 0, 'JKL', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.4467, 0, 0, 'MNO', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.text(w * 0.1667, h * 0.6134, 0, 0, 'PQRS', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.6134, 0, 0, 'TUV', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.8333, h * 0.6134, 0, 0, 'WXYZ', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.text(w * 0.5, h * 0.78, 0, 0, '+', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(w * 0.1028, h * 0.9464); + c.arcTo(w * 0.0862, h * 0.0652, 0, 0, 1, w * 0.1402, h * 0.9333); + c.arcTo(w * 0.0144, h * 0.0109, 0, 0, 0, w * 0.1517, h * 0.9246); + c.lineTo(w * 0.1524, h * 0.9181); + c.arcTo(w * 0.023, h * 0.0326, 0, 0, 1, w * 0.143, h * 0.8877); + c.arcTo(w * 0.0247, h * 0.0187, 0, 0, 1, w * 0.1919, h * 0.8877); + c.arcTo(w * 0.023, h * 0.0326, 0, 0, 1, w * 0.1847, h * 0.9181); + c.arcTo(w * 0.0431, h * 0.0174, 0, 0, 0, w * 0.1919, h * 0.9311); + c.arcTo(w * 0.1437, h * 0.1087, 0, 0, 1, w * 0.2307, h * 0.9453); + c.lineTo(w * 0.2307, h * 0.9616); + c.lineTo(w * 0.1028, h * 0.9616); + c.close(); + c.fill(); + + c.setStrokeColor('#ffffff'); + c.setStrokeWidth(2.5); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.79, h * 0.89); + c.lineTo(w * 0.9, h * 0.89); + c.lineTo(w * 0.9, h * 0.95); + c.lineTo(w * 0.79, h * 0.95); + c.lineTo(w * 0.76, h * 0.92); + c.close(); + c.fillAndStroke(); + + c.setStrokeColor('#0F1B2B'); + c.begin(); + c.moveTo(w * 0.82, h * 0.907); + c.lineTo(w * 0.85, h * 0.933); + c.moveTo(w * 0.82, h * 0.933); + c.lineTo(w * 0.85, h * 0.907); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICALL_BUTTONS, mxShapeMockupiCallButtons); + +//********************************************************************************************************************************************************** +//Option +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiOption(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiOption, mxShape); + +mxShapeMockupiOption.prototype.customProperties = [ + {name: 'buttonText', dispName: 'Text', type: 'string'}, + {name: 'barPos', dispName: 'Callout Position', type: 'float', min:0, defVal:80}, + {name: 'pointerPos', dispName: 'Callout Orientation', type: 'enum', + enumList: [{val: 'bottom', dispName: 'Bottom'}, {val: 'top', dispName: 'Top'}] + } +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiOption.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeMockupiOption.prototype.background = function(c, x, y, w, h) +{ + var barPos = mxUtils.getValue(this.style, mxMockupC.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var pointerPos = mxUtils.getValue(this.style, mxMockupC.POINTER_POS, mxMockupC.POINTER_BOTTOM); + var rSize = 2.5; + var deadzone = rSize + 7.5; // rounding + pointer width / 2 + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + c.setStrokeWidth(0.5); + c.setStrokeColor('#000000'); + c.setAlpha(0.9); + c.begin(); + + if (pointerPos === mxMockupC.POINTER_BOTTOM) + { + c.setGradient('#000000', '#888888', 0, 0, w, h, mxConstants.DIRECTION_NORTH, 1, 1); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize - 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h - 7.5); + c.lineTo(truePos + 7.5, h - 7.5); + c.lineTo(truePos, h); + c.lineTo(truePos - 7.5, h - 7.5); + c.lineTo(rSize, h - 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize - 7.5); + } + else if (pointerPos === mxMockupC.POINTER_TOP) + { + c.setGradient('#000000', '#888888', 0, 0, w, h, mxConstants.DIRECTION_NORTH, 1, 1); + c.moveTo(0, rSize + 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 7.5); + c.lineTo(truePos - 7.5, 7.5); + c.lineTo(truePos, 0); + c.lineTo(truePos + 7.5, 7.5); + c.lineTo(w - rSize, 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize + 7.5); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + } + + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupiOption.prototype.foreground = function(c, x, y, w, h) +{ + var locText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, 'Some Location'); + var pointerPos = mxUtils.getValue(this.style, mxMockupC.POINTER_POS, mxMockupC.POINTER_BOTTOM); + c.setAlpha(1); + c.setFontColor('#ffffff'); + c.setFontSize(9.5); + + if (pointerPos === mxMockupC.POINTER_BOTTOM) + { + c.text(w * 0.5, (h - 7.5) * 0.5, 0, 0, locText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else + { + c.text(w * 0.5, (h + 7.5) * 0.5, 0, 0, locText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IOPTION, mxShapeMockupiOption); + +//********************************************************************************************************************************************************** +//Alpha List +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiAlphaList(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiAlphaList, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiAlphaList.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.setShadow(false); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8'); + + c.setFontColor('#999999'); + c.setFontSize(fontSize); + c.text(w * 0.5, h * 0.069, 0, 0, 'A', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.1035, 0, 0, 'B', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.138, 0, 0, 'C', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.1725, 0, 0, 'D', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.207, 0, 0, 'E', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.2415, 0, 0, 'F', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.276, 0, 0, 'G', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.3105, 0, 0, 'H', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.345, 0, 0, 'I', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.3795, 0, 0, 'J', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.414, 0, 0, 'K', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.4485, 0, 0, 'L', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.483, 0, 0, 'M', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.5175, 0, 0, 'N', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.552, 0, 0, 'O', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.5865, 0, 0, 'P', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.621, 0, 0, 'Q', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.6555, 0, 0, 'R', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.69, 0, 0, 'S', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.7245, 0, 0, 'T', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.759, 0, 0, 'U', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.7935, 0, 0, 'V', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.828, 0, 0, 'W', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.8625, 0, 0, 'X', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.897, 0, 0, 'Y', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.9315, 0, 0, 'Z', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.text(w * 0.5, h * 0.966, 0, 0, '#', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setStrokeColor('#999999'); + c.ellipse(w * 0.5 - 2.25, h * 0.0345 - 3.5, 4.5, 4.5); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.5 - 4.25, h * 0.0345 + 3); + c.lineTo(w * 0.5 - 1.75, h * 0.0345); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IALPHA_LIST, mxShapeMockupiAlphaList); + +//********************************************************************************************************************************************************** +//Horizontal Button Bar +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiHorButtonBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiHorButtonBar, mxShape); + +mxShapeMockupiHorButtonBar.prototype.customProperties = [ + {name: 'buttonText', dispName: 'Labels', type: 'string'}, + {name: 'textColor', dispName: 'Text Color', type: 'color'}, + {name: 'textColor2', dispName: 'Text2 Color', type: 'color'}, + {name: 'strokeColor2', dispName: 'Stroke2 Color', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiHorButtonBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var textStrings = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, '+Button 1, Button 2, Button 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR, '#666666'); + var selectedFontColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR2, '#ffffff'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8.5').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#666666'); + var separatorColor = mxUtils.getValue(this.style, mxMockupC.STYLE_STROKECOLOR2, '#c4c4c4'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var selectedFillColor = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '#008cff'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var selectedButton = -1; + var rSize = 2.5; //rounding size + var labelOffset = 2.5; + + for (var i = 0; i < buttonNum; i++) + { + var buttonText = textStrings[i]; + + if(buttonText.charAt(0) === mxMockupC.SELECTED) + { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + buttonWidths[i] = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 10); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + + c.translate(x, y); + this.background(c, trueW, trueH, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton); + c.setShadow(false); + + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) + { + if (i === selectedButton) + { + c.setFontColor(selectedFontColor); + } + else + { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeMockupiHorButtonBar.prototype.background = function(c, w, h, rSize, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton) +{ + c.begin(); + + //draw the frame + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); + + //draw the button separators + c.setStrokeColor(separatorColor); + c.begin(); + for (var i = 1; i < buttonNum; i++) + { + if (i !== selectedButton && i !== (selectedButton + 1)) + { + var currWidth = 0; + + for (var j = 0; j < i; j++) + { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth = currWidth * w / minW; + c.moveTo(currWidth, 0); + c.lineTo(currWidth, h); + } + } + + c.stroke(); + + //draw the selected button + var buttonLeft = 0; + c.setStrokeColor(mxConstants.NONE); + + for (var i = 0; i < selectedButton; i++) + { + buttonLeft += buttonWidths[i] + 2 * labelOffset; + } + + buttonLeft = buttonLeft * w / minW; + var buttonRight = (buttonWidths[selectedButton] + 2 * labelOffset) * w / minW; + buttonRight += buttonLeft; + + if (selectedButton === 0) + { + c.setGradient('#5D7585', '#008cff', 0, 0, buttonRight, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + // we draw a path for the first button + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(buttonRight, 0); + c.lineTo(buttonRight, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fill(); + } + else if (selectedButton === buttonNum - 1) + { + c.setGradient('#5D7585', '#008cff', buttonLeft, 0, buttonRight - buttonLeft, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + // we draw a path for the last button + c.moveTo(buttonLeft, 0); + c.lineTo(buttonRight - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, buttonRight, rSize); + c.lineTo(buttonRight, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, buttonRight - rSize, h); + c.lineTo(buttonLeft, h); + c.close(); + c.fill(); + } + else if (selectedButton !== -1) + { + c.setGradient('#5D7585', '#008cff', buttonLeft, 0, buttonRight - buttonLeft, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + // we draw a path rectangle for one of the buttons in the middle + c.moveTo(buttonLeft, 0); + c.lineTo(buttonRight, 0); + c.lineTo(buttonRight, h); + c.lineTo(buttonLeft, h); + c.close(); + c.fill(); + } + + //draw the frame again, to achieve a nicer effect + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.stroke(); +}; + +mxShapeMockupiHorButtonBar.prototype.buttonText = function(c, w, h, textString, buttonWidth, fontSize, minW, trueW) +{ + if(textString.charAt(0) === mxMockupC.SELECTED) + { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, h * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IHOR_BUTTON_BAR, mxShapeMockupiHorButtonBar); + +//********************************************************************************************************************************************************** +//Pin +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiPin(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiPin, mxShape); + +mxShapeMockupiPin.prototype.customProperties = [ + {name: 'fillColor2', dispName: 'Fill2 Color', type: 'color'}, + {name: 'fillColor3', dispName: 'Fill3 Color', type: 'color'} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiPin.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '#000000'); + var fillColor3 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR3, '#000000'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setShadow(false); + c.translate(x, y); + + c.setStrokeWidth(1.5); + c.setStrokeColor('#666666'); + c.begin(); + c.moveTo(w * 0.5, h * 0.4); + c.lineTo(w * 0.5, h); + c.stroke(); + + c.setStrokeWidth(1); + c.setStrokeColor(strokeColor); + c.setGradient(fillColor2, fillColor3, 0, 0, w, h * 0.4, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(0.9); + c.ellipse(0, 0, w, h * 0.4); + c.fillAndStroke(); + + c.setFillColor('#ffffff'); + c.setAlpha(0.5); + c.ellipse(w * 0.2, h * 0.08, w * 0.3, h * 0.12); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IPIN, mxShapeMockupiPin); + +//********************************************************************************************************************************************************** +//Video Controls +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiVideoControls(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiVideoControls, mxShape); + +mxShapeMockupiVideoControls.prototype.customProperties = [ + {name: 'barPos', dispName: 'Handle Position', type: 'float', min:0, defVal:20} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiVideoControls.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var rSize = 5; + c.setStrokeWidth(1); + c.setFillColor('#000000'); + c.setStrokeColor('#bbbbbb'); + c.setAlpha(0.7); + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); + c.setShadow(false); + + this.foreground(c, w, h, rSize); +}; + +mxShapeMockupiVideoControls.prototype.foreground = function(c, w, h, rSize) +{ + c.setGradient('#ffffff', '#ffffff', 0, 0, w, h * 0.5, mxConstants.DIRECTION_SOUTH, 0.8, 0.1); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h * 0.5); + c.lineTo(0, h * 0.5); + c.close(); + c.fill(); + + c.setAlpha(1); + c.setFillColor('#ffffff'); + c.setStrokeColor('#ffffff'); + var iconX = w * 0.1; + var iconY = h * 0.35; + + c.begin(); + c.moveTo(iconX - 7.5, iconY - 2.5); + c.arcTo(6, 6, 0, 0, 1, iconX, iconY - 2.5); + c.arcTo(6, 6, 0, 0, 1, iconX + 7.5, iconY - 2.5); + c.lineTo(iconX + 7.5, iconY + 4); + c.arcTo(6, 6, 0, 0, 0, iconX, iconY + 4); + c.arcTo(6, 6, 0, 0, 0, iconX - 7.5, iconY + 4); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(iconX, iconY - 2.5); + c.lineTo(iconX, iconY + 4); + c.stroke(); + + iconX = w * 0.3; + c.rect(iconX - 7.5, iconY - 5, 1, 10); + c.fill(); + + c.begin(); + c.moveTo(iconX - 6.5, iconY); + c.lineTo(iconX + 0.5, iconY - 5); + c.lineTo(iconX + 0.5, iconY + 5); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(iconX + 0.5, iconY); + c.lineTo(iconX + 7.5, iconY - 5); + c.lineTo(iconX + 7.5, iconY + 5); + c.close(); + c.fill(); + + iconX = w * 0.5; + c.begin(); + c.moveTo(iconX - 6, iconY - 5); + c.lineTo(iconX + 6, iconY); + c.lineTo(iconX - 6, iconY + 5); + c.close(); + c.fill(); + + iconX = w * 0.7; + c.begin(); + c.moveTo(iconX - 7.5, iconY - 5); + c.lineTo(iconX - 0.5, iconY); + c.lineTo(iconX - 7.5, iconY + 5); + c.close(); + c.fill(); + c.begin(); + c.moveTo(iconX - 0.5, iconY - 5); + c.lineTo(iconX + 6.5, iconY); + c.lineTo(iconX - 0.5, iconY + 5); + c.close(); + c.fill(); + c.rect(iconX + 6.5, iconY - 5, 1, 10); + c.fill(); + + iconX = w * 0.9; + c.rect(iconX - 7.5, iconY - 4, 15, 8); + c.stroke(); + c.setStrokeWidth(0.5); + c.begin(); + c.moveTo(iconX - 7.5, iconY - 4); + c.lineTo(iconX, iconY + 1.5); + c.lineTo(iconX + 7.5, iconY - 4); + c.stroke(); + c.begin(); + c.moveTo(iconX - 7.5, iconY + 4); + c.lineTo(iconX - 2, iconY); + c.stroke(); + c.begin(); + c.moveTo(iconX + 7.5, iconY + 4); + c.lineTo(iconX + 2, iconY); + c.stroke(); + + c.setGradient('#444444', '#ffffff', w * 0.1, h * 0.75 - 2.5, w * 0.8, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(w * 0.1, h * 0.75 - 2.5, w * 0.8, 5, 2.5, 2.5); + c.fill(); + + var barPos = mxUtils.getValue(this.style, mxMockupC.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var deadzone = w * 0.1; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + + c.setGradient('#96D1FF', '#003377', w * 0.1, h * 0.75 - 5, truePos - w * 0.1, 10, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(truePos, h * 0.75 - 2.5); + c.lineTo(truePos, h * 0.75 + 2.5); + c.lineTo(w * 0.1 + 2.5, h * 0.75 + 2.5); + c.arcTo(2.5, 2.5, 0, 0, 1, w * 0.1 + 2.5, h * 0.75 - 2.5); + c.close(); + c.fill(); + + c.setStrokeColor('#999999'); + c.setGradient('#444444', '#ffffff', truePos - 5, h * 0.75 - 5, 10, 10, mxConstants.DIRECTION_NORTH, 1, 1); + c.ellipse(truePos - 5, h * 0.75 - 5, 10, 10); + c.fillAndStroke(); + + c.setStrokeColor('#dddddd'); + c.roundrect(0, 0, w, h, rSize, rSize); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IVIDEO_CONTROLS, mxShapeMockupiVideoControls); + +Graph.handleFactory[mxMockupC.SHAPE_IVIDEO_CONTROLS] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 40)))); + + return new mxPoint(bounds.x + bounds.width * 0.1 + barPos * bounds.width * 0.8 / 100, bounds.y + bounds.height * 0.75); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.width * 0.1 - bounds.x) * 100 / (bounds.width * 0.8)))) / 100; + })]; + + return handles; +}; + +//********************************************************************************************************************************************************** +//URL Bar +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiURLBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiURLBar, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiURLBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.setGradient('#cccccc', '#003377', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(0, 0, w, h); + c.fill(); + c.setShadow(false); + + this.foreground(c, w, h); +}; + +mxShapeMockupiURLBar.prototype.foreground = function(c, w, h) +{ + c.setStrokeWidth(0.5); + c.setFillColor('#ffffff'); + c.setStrokeColor('#008cff'); + c.roundrect(w * 0.0287, h * 0.625 - 6.25, w * 0.7184, 12.5, 6.25, 6.25); + c.fillAndStroke(); + + c.setGradient('#cccccc', '#001144', w * 0.7816, h * 0.625 - 6.25, w * 0.1868, 12.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setStrokeColor('#000000'); + c.roundrect(w * 0.7816, h * 0.625 - 6.25, w * 0.1868, 12.5, 2.5, 2.5); + c.fillAndStroke(); + + c.setFillColor('#bbbbbb'); + c.ellipse(w * 0.7471 - 11.5, h * 0.625 - 5, 10, 10); + c.fill(); + + c.setStrokeColor('#ffffff'); + c.setStrokeWidth(1.5); + c.begin(); + c.moveTo(w * 0.7471 - 8.5, h * 0.625 - 2.5); + c.lineTo(w * 0.7471 - 3.5, h * 0.625 + 2.5); + c.moveTo(w * 0.7471 - 8.5, h * 0.625 + 2.5); + c.lineTo(w * 0.7471 - 3.5, h * 0.625 - 2.5); + c.stroke(); + + var fieldText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, '').toString().split(','); + c.setFontColor('#425664'); + c.setFontStyle(mxConstants.FONT_BOLD); + c.setFontSize(8); + c.text(w * 0.5, h * 0.2, 0, 0, fieldText[0], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontColor('#000000'); + c.text(w * 0.06, h * 0.625, 0, 0, fieldText[1], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + c.setFontColor('#ffffff'); + c.text(w * 0.875, h * 0.625, 0, 0, fieldText[2], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IURL_BAR, mxShapeMockupiURLBar); + +//********************************************************************************************************************************************************** +//Slider +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiSlider(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiSlider, mxShape); + +mxShapeMockupiSlider.prototype.customProperties = [ + {name: 'barPos', dispName: 'Handle Position', type: 'float', min:0, defVal:20}, +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiSlider.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.setShadow(false); + + this.foreground(c, w, h); +}; + +mxShapeMockupiSlider.prototype.foreground = function(c, w, h) +{ + c.setStrokeWidth(0.5); + c.setGradient('#444444', '#ffffff', 0, h * 0.5 - 2.5, w, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(0, h * 0.5 - 2.5, w, 5, 2.5, 2.5); + c.fill(); + + var barPos = mxUtils.getValue(this.style, mxMockupC.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var deadzone = 0; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + + c.setGradient('#96D1FF', '#003377', 2.5, h * 0.5 - 2.5, truePos - 2.5, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(truePos, h * 0.5 - 2.5); + c.lineTo(truePos, h * 0.5 + 2.5); + c.lineTo(2.5, h * 0.5 + 2.5); + c.arcTo(2.5, 2.5, 0, 0, 1, 2.5, h * 0.5 - 2.5); + c.close(); + c.fill(); + + c.setStrokeColor('#999999'); + c.setGradient('#444444', '#ffffff', truePos - 5, h * 0.5 - 5, 10, 10, mxConstants.DIRECTION_NORTH, 1, 1); + c.ellipse(truePos - 5, h * 0.5 - 5, 10, 10); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ISLIDER, mxShapeMockupiSlider); + +Graph.handleFactory[mxMockupC.SHAPE_ISLIDER] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + + return handles; +}; + + +//********************************************************************************************************************************************************** +//Progress Bar +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiProgressBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiProgressBar, mxShape); + +mxShapeMockupiProgressBar.prototype.customProperties = [ + {name: 'barPos', dispName: 'Handle Position', type: 'float', min:0, defVal:40}, +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiProgressBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.setShadow(false); + + this.foreground(c, w, h); +}; + +mxShapeMockupiProgressBar.prototype.foreground = function(c, w, h) +{ + c.setStrokeWidth(0.5); + c.setGradient('#444444', '#ffffff', 0, h * 0.5 - 2.5, w, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.roundrect(0, h * 0.5 - 2.5, w, 5, 2.5, 2.5); + c.fill(); + + var barPos = mxUtils.getValue(this.style, mxMockupC.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var deadzone = 0; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + + c.setGradient('#96D1FF', '#003377', 2.5, h * 0.5 - 2.5, truePos - 2.5, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(truePos, h * 0.5 - 2.5); + c.arcTo(2.5, 2.5, 0, 0, 1, truePos, h * 0.5 + 2.5); + c.lineTo(2.5, h * 0.5 + 2.5); + c.arcTo(2.5, 2.5, 0, 0, 1, 2.5, h * 0.5 - 2.5); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IPROGRESS_BAR, mxShapeMockupiProgressBar); + +Graph.handleFactory[mxMockupC.SHAPE_IPROGRESS_BAR] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + + return handles; +}; + +//********************************************************************************************************************************************************** +//iCloud Progress Bar +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiCloudProgressBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiCloudProgressBar, mxShape); + +mxShapeMockupiCloudProgressBar.prototype.customProperties = [ + {name: 'barPos', dispName: 'Handle Position', type: 'float', min:0, defVal:20}, +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiCloudProgressBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.setShadow(false); + + this.foreground(c, w, h); +}; + +mxShapeMockupiCloudProgressBar.prototype.foreground = function(c, w, h) +{ + c.setStrokeWidth(0.5); + c.setFillColor('#5C6E86'); + c.rect(0, h * 0.5 - 2.5, w, 5); + c.fill(); + + var barPos = mxUtils.getValue(this.style, mxMockupC.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var deadzone = 0; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + + c.setFillColor('#8AD155'); + c.rect(0, h * 0.5 - 2.5, truePos, 5); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICLOUD_PROGRESS_BAR, mxShapeMockupiCloudProgressBar); + +Graph.handleFactory[mxMockupC.SHAPE_ICLOUD_PROGRESS_BAR] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + + return handles; +}; + +//********************************************************************************************************************************************************** +//Download Bar +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiDownloadBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiDownloadBar, mxShape); + +mxShapeMockupiDownloadBar.prototype.customProperties = [ + {name: 'barPos', dispName: 'Handle Position', type: 'float', min:0, defVal:30}, +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiDownloadBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.setGradient('#00ccff', '#0066cc', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.rect(0, 0, w, h); + c.fill(); + c.setShadow(false); + + this.foreground(c, w, h); +}; + +mxShapeMockupiDownloadBar.prototype.foreground = function(c, w, h) +{ + var fieldText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, ''); + c.setFontColor('#ffffff'); + c.setFontStyle(mxConstants.FONT_BOLD); + c.setFontSize(8); + c.text(w * 0.5, h * 0.2, 0, 0, fieldText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + var barPos = mxUtils.getValue(this.style, mxMockupC.BAR_POS, '80'); + barPos = Math.min(barPos, 100); + barPos = Math.max(barPos, 0); + var deadzone = w * 0.1; + var virRange = w - 2 * deadzone; + var truePos = deadzone + virRange * barPos / 100; + + c.setStrokeWidth(0.5); + c.setGradient('#96D1FF', '#003377', deadzone, h * 0.65 - 2.5, w - 2 * deadzone, 5, mxConstants.DIRECTION_NORTH, 1, 1); + c.roundrect(deadzone, h * 0.65 - 2.5, w - 2 * deadzone, 5, 2.5, 2.5); + c.fill(); + + c.setGradient('#aaaaaa', '#ffffff', deadzone + 2.5, h * 0.65 - 2.5, truePos - deadzone - 2.5, 5, mxConstants.DIRECTION_NORTH, 1, 1); + c.begin(); + c.moveTo(truePos, h * 0.65 - 2.5); + c.arcTo(2.5, 2.5, 0, 0, 1, truePos, h * 0.65 + 2.5); + c.lineTo(deadzone + 2.5, h * 0.65 + 2.5); + c.arcTo(2.5, 2.5, 0, 0, 1, deadzone + 2.5, h * 0.65 - 2.5); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IDOWNLOAD_BAR, mxShapeMockupiDownloadBar); + +Graph.handleFactory[mxMockupC.SHAPE_IDOWNLOAD_BAR] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 40)))); + + return new mxPoint(bounds.x + bounds.width * 0.1 + barPos * bounds.width * 0.8 / 100, bounds.y + bounds.height * 0.65); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.width * 0.1 - bounds.x) * 100 / (bounds.width * 0.8)))) / 100; + })]; + + return handles; +}; + +//********************************************************************************************************************************************************** +//Screen Name Bar +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiScreenNameBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiScreenNameBar, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiScreenNameBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var rSize = 5; + c.setStrokeWidth(0.5); + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '#00ff00'); + c.setFillColor(fillColor2); + c.rect(0, 0, w, h); + c.fill(); + c.setShadow(false); + + this.foreground(c, w, h, rSize); +}; + +mxShapeMockupiScreenNameBar.prototype.foreground = function(c, w, h, rSize) +{ + var fillColor3 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR3, '#00ff00'); + c.setGradient(fillColor3, fillColor3, 0, 0, w, h * 0.5, mxConstants.DIRECTION_SOUTH, 0.8, 0.1); + c.rect(0, 0, w, h * 0.5); + c.fill(); + + var fieldText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, ''); + var textColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR, '#00ff00'); + c.setFontColor(textColor); + c.setFontSize(9.5); + c.text(w * 0.5, h * 0.45, 0, 0, fieldText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ISCREEN_NAME_BAR, mxShapeMockupiScreenNameBar); + +//********************************************************************************************************************************************************** +//Icon Grid +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiIconGrid(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiIconGrid, mxShape); + +mxShapeMockupiIconGrid.prototype.customProperties = [ + {name: 'gridSize', dispName: 'Grid Size', type: 'string'}, +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiIconGrid.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var gridSize = mxUtils.getValue(this.style, mxMockupC.GRID_SIZE, '3,3').toString().split(','); + this.background(c, w, h, gridSize); + c.setShadow(false); + + this.foreground(c, w, h, gridSize); +}; + +mxShapeMockupiIconGrid.prototype.background = function(c, w, h, gridSize) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#00ff00'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#00ff00'); + c.setStrokeColor(strokeColor); + c.setFillColor(fillColor); + + var boxSizeX = w / (parseInt(gridSize[0],10) + (gridSize[0]-1) * 0.5); + var boxSizeY = h / (parseInt(gridSize[1],10) + (gridSize[1]-1) * 0.5); + + for (var i = 0; i < gridSize[0]; i++) + { + for (var j = 0; j < gridSize[1]; j++) + { + c.rect(boxSizeX * 1.5 * i, boxSizeY * 1.5 * j, boxSizeX, boxSizeY); + c.fillAndStroke(); + } + } +}; + +mxShapeMockupiIconGrid.prototype.foreground = function(c, w, h, gridSize) +{ + var boxSizeX = w / (parseInt(gridSize[0],10) + (gridSize[0]-1) * 0.5); + var boxSizeY = h / (parseInt(gridSize[1],10) + (gridSize[1]-1) * 0.5); + + for (var i = 0; i < gridSize[0]; i++) + { + for (var j = 0; j < gridSize[1]; j++) + { + c.begin(); + c.moveTo(boxSizeX * 1.5 * i, boxSizeY * 1.5 * j); + c.lineTo(boxSizeX * 1.5 * i + boxSizeX, boxSizeY * 1.5 * j + boxSizeY); + c.moveTo(boxSizeX * 1.5 * i + boxSizeX, boxSizeY * 1.5 * j); + c.lineTo(boxSizeX * 1.5 * i, boxSizeY * 1.5 * j + boxSizeY); + c.stroke(); + } + } +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IICON_GRID, mxShapeMockupiIconGrid); + +//********************************************************************************************************************************************************** +//Copy +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiCopy(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiCopy, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiCopy.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var rSize = 5; + c.translate(x, y); + this.background(c, w, h, rSize); + c.setShadow(false); + + this.foreground(c, w, h, rSize); +}; + +mxShapeMockupiCopy.prototype.background = function(c, w, h, rSize) +{ + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize - 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h - 7.5); + c.lineTo(w * 0.5 + 7.5, h - 7.5); + c.lineTo(w * 0.5, h); + c.lineTo(w * 0.5 - 7.5, h - 7.5); + c.lineTo(rSize, h - 7.5); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize - 7.5); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupiCopy.prototype.foreground = function(c, w, h, rSize) +{ + var fillColor3 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR3, '#00ff00'); + c.setGradient(fillColor3, fillColor3, 0, 0, w, h * 0.5, mxConstants.DIRECTION_SOUTH, 0.8, 0.1); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, (h - 7.5) * 0.5); + c.lineTo(0, (h - 7.5) * 0.5); + c.close(); + c.fill(); + + var fieldText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, ''); + var textColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR, '#00ff00'); + c.setFontColor(textColor); + c.setFontSize(8.5); + c.text(w * 0.5, (h - 7.5)* 0.45, 0, 0, fieldText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICOPY, mxShapeMockupiCopy); + +//********************************************************************************************************************************************************** +//Copy Area +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiCopyArea(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiCopyArea, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiCopyArea.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var rSize = 5; + c.translate(x, y); + this.background(c, w, h, rSize); + c.setShadow(false); + + this.foreground(c, w, h, rSize); +}; + +mxShapeMockupiCopyArea.prototype.background = function(c, w, h, rSize) +{ + c.begin(); + c.moveTo(w * 0.5 - 20, 0 + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 - 20 + rSize, 0); + c.lineTo(w * 0.5 + 20 - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 + 20, rSize); + c.lineTo(w * 0.5 + 20, 20 - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 + 20 - rSize, 20); + c.lineTo(w * 0.5 + 7.5, 20); + c.lineTo(w * 0.5, 27.5); + c.lineTo(w * 0.5 - 7.5, 20); + c.lineTo(w * 0.5 - 20 + rSize, 20); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 - 20, 20 - rSize); + c.close(); + c.fillAndStroke(); +}; + +mxShapeMockupiCopyArea.prototype.foreground = function(c, w, h, rSize) +{ + c.setAlpha(0.3); + c.setFillColor('#2266ff'); + c.rect(2.5, 27.5, w - 5, h - 30); + c.fill(); + c.setAlpha(1); + + if (h > 27.5) + { + c.setStrokeColor('#ffffff'); + c.setGradient('#88ddff', '#2266ff', w * 0.5 - 2.5, 25, 5, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(w * 0.5 - 2.5, 25, 5, 5); + c.fillAndStroke(); + c.setGradient('#88ddff', '#2266ff', w * 0.5 - 2.5, h - 5, 5, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(w * 0.5 - 2.5, h - 5, 5, 5); + c.fillAndStroke(); + c.setGradient('#88ddff', '#2266ff', 0, h * 0.5 + 10, 5, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(0, h * 0.5 + 10, 5, 5); + c.fillAndStroke(); + c.setGradient('#88ddff', '#2266ff', w - 5, h * 0.5 + 10, 5, 5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(w - 5, h * 0.5 + 10, 5, 5); + c.fillAndStroke(); + } + + var fillColor2 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR2, '#00ff00'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#00ff00'); + + c.setFillColor(fillColor2); + c.setStrokeColor(strokeColor); + c.begin(); + c.moveTo(w * 0.5 - 20, 0 + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 - 20 + rSize, 0); + c.lineTo(w * 0.5 + 20 - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 + 20, rSize); + c.lineTo(w * 0.5 + 20, 20 - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 + 20 - rSize, 20); + c.lineTo(w * 0.5 + 7.5, 20); + c.lineTo(w * 0.5, 27.5); + c.lineTo(w * 0.5 - 7.5, 20); + c.lineTo(w * 0.5 - 20 + rSize, 20); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 - 20, 20 - rSize); + c.close(); + c.fillAndStroke(); + + var fillColor3 = mxUtils.getValue(this.style, mxMockupC.STYLE_FILLCOLOR3, '#00ff00'); + c.setGradient(fillColor3, fillColor3, w * 0.5 - 20, 0, 40, 10, mxConstants.DIRECTION_SOUTH, 0.8, 0.1); + c.begin(); + c.moveTo(w * 0.5 - 20, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 - 20 + rSize, 0); + c.lineTo(w * 0.5 + 20 - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w * 0.5 + 20, rSize); + c.lineTo(w * 0.5 + 20, 10); + c.lineTo(w * 0.5 - 20, 10); + c.close(); + c.fill(); + + var fieldText = mxUtils.getValue(this.style, mxMockupC.BUTTON_TEXT, ''); + var textColor = mxUtils.getValue(this.style, mxMockupC.STYLE_TEXTCOLOR, '#00ff00'); + c.setFontColor(textColor); + c.setFontSize(8.5); + + c.text(w * 0.5, 8.75, 0, 0, fieldText, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_ICOPY_AREA, mxShapeMockupiCopyArea); + +//********************************************************************************************************************************************************** +//Home Page Control +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiHomePageControl(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiHomePageControl, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiHomePageControl.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#000000'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setStrokeColor(strokeColor); + c.setFillColor(fillColor); + + var rSize = Math.min(h * 0.5, w * 0.05); + c.ellipse(w * 0.35 - rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w * 0.65 - rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w - 2 * rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + + c.ellipse(rSize * 0.2, h * 0.5 - rSize * 0.8, rSize * 1.2, rSize * 1.2); + c.stroke(); + c.begin(); + c.moveTo(rSize * 1.15, h * 0.5 + rSize * 0.25); + c.lineTo(rSize * 1.6, h * 0.5 + rSize * 0.8); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IHOME_PAGE_CONTROL, mxShapeMockupiHomePageControl); + +//********************************************************************************************************************************************************** +//Page Control +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiPageControl(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiPageControl, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiPageControl.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#000000'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + + var rSize = Math.min(h * 0.5, w * 0.05); + c.setFillColor(strokeColor); + c.ellipse(0, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.setFillColor(fillColor); + c.ellipse(w * 0.35 - rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w * 0.65 - rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); + c.ellipse(w - 2 * rSize, h * 0.5 - rSize, 2 * rSize, 2 * rSize); + c.fill(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IPAGE_CONTROL, mxShapeMockupiPageControl); + +//********************************************************************************************************************************************************** +//iPad +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeMockupiPad(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeMockupiPad, mxShape); + +mxShapeMockupiPad.prototype.customProperties = [ + {name: 'bgStyle', dispName: 'Background', type: 'enum', + enumList: [{val: 'bgGreen', dispName: 'Green'}, {val: 'bgWhite', dispName: 'White'}, {val: 'bgGray', dispName: 'Gray'}, {val: 'bgFlat', dispName: 'Flat'}, {val: 'bgMap', dispName: 'Map'}, {val: 'bgStriped', dispName: 'Striped'}] + } +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeMockupiPad.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var rSize = 25; + c.translate(x, y); + this.background(c, x, y, w, h, rSize); + c.setShadow(false); + this.foreground(c, x, y, w, h, rSize); +}; + +mxShapeMockupiPad.prototype.background = function(c, x, y, w, h, rSize) +{ + c.setFillColor('#000000'); + c.setStrokeColor('#000000'); + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); +}; + +mxShapeMockupiPad.prototype.foreground = function(c, x, y, w, h, rSize) +{ + c.setStrokeWidth(1.5); + c.setStrokeColor('#999999'); + + c.begin(); + c.setStrokeColor('none'); + c.setFillColor('#808080'); + c.setGradient('#808080', '#000000', w * 0.325, 0, w * 0.675, h * 0.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.moveTo(w * 0.325, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.7, h * 0.5); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.setFillColor('#1f2923'); + c.setStrokeColor('#18211b'); + c.setStrokeWidth(1); + + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, ''); + var bgStyle = mxUtils.getValue(this.style, mxMockupC.BG_STYLE, mxMockupC.BG_FLAT_GREEN); + + c.setStrokeWidth(1); + + if (bgStyle === mxMockupC.BG_FLAT_WHITE) + { + c.setFillColor('#ffffff'); + c.rect(w * 0.0928, h * 0.08, w * 0.8144, h * 0.816); + c.fill(); + } + else if (bgStyle === mxMockupC.BG_FLAT_GREEN) + { + c.setFillColor('#1f2923'); + c.rect(w * 0.0928, h * 0.08, w * 0.8144, h * 0.816); + c.fill(); + } + else if (bgStyle === mxMockupC.BG_FLAT_GRAY) + { + c.setFillColor('#dddddd'); + c.rect(w * 0.0928, h * 0.08, w * 0.8144, h * 0.816); + c.fill(); + } + else if (bgStyle === mxMockupC.BG_FLAT_CUSTOM) + { + c.setFillColor(fillColor); + c.rect(w * 0.0928, h * 0.08, w * 0.8144, h * 0.816); + c.fill(); + } + else if (bgStyle === mxMockupC.BG_STRIPED) + { + var xOld = x; + var yOld = y; + var wOld = w; + var hOld = h; + c.translate(w * 0.0928, h * 0.08); + w = w * 0.8144; + h = h * 0.816; + + c.setFillColor('#5D7585'); + c.rect(0, 0, w, h); + c.fillAndStroke(); + + var strokeColor = '#18211b'; + var strokeColor2 = '#657E8F'; + + c.setStrokeColor(strokeColor2); + var i = 7; + c.begin(); + + while (i < w) + { + c.moveTo(i, 0); + c.lineTo(i, h); + i = i + 7; + } + + c.stroke(); + + c.setStrokeColor(strokeColor); + c.begin(); + c.rect(0, 0, w, h); + c.stroke(); + + w = wOld; + h = hOld; + c.translate( - w * 0.0928, - h * 0.08); + } + else if (bgStyle === mxMockupC.BG_MAP) + { + var xOld = x; + var yOld = y; + var wOld = w; + var hOld = h; + c.translate(w * 0.0928, h * 0.08); + w = w * 0.8144; + h = h * 0.816; + + c.setFillColor('#ffffff'); + c.rect(0, 0, w, h); + c.fillAndStroke(); + + var fillColor2 = '#96D1FF'; + var strokeColor = '#18211b'; + var strokeColor2 = '#008cff'; + + c.setFillColor(fillColor2); + c.setStrokeColor(strokeColor2); + c.setStrokeWidth(0.5); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.1171, 0); + c.lineTo(w * 0.1136, h * 0.0438); + c.lineTo(w * 0.0993, h * 0.054); + c.lineTo(0, h * 0.0446); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.1993, 0); + c.lineTo(w * 0.1914, h * 0.03884); + c.lineTo(w * 0.1536, h * 0.0362); + c.lineTo(w * 0.1586, 0); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.24, 0); + c.lineTo(w * 0.2257, h * 0.054); + c.lineTo(w * 0.2414, h * 0.0674); + c.lineTo(w * 0.4707, h * 0.0835); + c.lineTo(w * 0.5264, h * 0.0906); + c.lineTo(w * 0.6429, h * 0.0929); + c.arcTo(w * 0.0857, h * 0.0536, 0, 0, 0, w * 0.7193, h * 0.0621); + c.arcTo(w * 0.48, h * 0.2143, 0, 0, 0, w * 0.7286, 0); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8, 0); + c.lineTo(w * 0.7886, h * 0.04554); + c.arcTo(w * 0.0857, h * 0.0536, 0, 0, 0, w * 0.8164, h * 0.0875); + c.arcTo(w * 0.1429, h * 0.0893, 0, 0, 0, w * 0.88, h * 0.1036); + c.lineTo(w, h * 0.1112); + c.lineTo(w, 0); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.0933); + c.lineTo(w * 0.08, h * 0.1036); + c.lineTo(w * 0.1021, h * 0.1246); + c.lineTo(w * 0.1007, h * 0.1768); + c.lineTo(w * 0.0471, h * 0.2241); + c.lineTo(0, h * 0.2527); + c.close(); + c.fillAndStroke(); + + c.ellipse(w * 0.1214, h * 0.0603, w * 0.0843, h * 0.0576); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.1293, h * 0.1924); + c.lineTo(w * 0.1729, h * 0.142); + c.lineTo(w * 0.1407, h * 0.1411); + c.lineTo(w * 0.14, h * 0.1777); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.4586, h * 0.1241); + c.lineTo(w * 0.455, h * 0.1835); + c.lineTo(w * 0.3893, h * 0.2246); + c.lineTo(w * 0.2171, h * 0.1362); + c.lineTo(w * 0.2171, h * 0.1308); + c.lineTo(w * 0.2293, h * 0.1214); + c.lineTo(w * 0.2857, h * 0.1174); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5079, h * 0.1134); + c.lineTo(w * 0.7307, h * 0.1223); + c.lineTo(w * 0.7279, h * 0.1625); + c.lineTo(w * 0.715, h * 0.1772); + c.lineTo(w * 0.6929, h * 0.1688); + c.lineTo(w * 0.625, h * 0.1795); + c.lineTo(w * 0.4779, h * 0.2835); + c.lineTo(w * 0.395, h * 0.2299); + c.lineTo(w * 0.4657, h * 0.1826); + c.lineTo(w * 0.4707, h * 0.1223); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, h * 0.1362); + c.lineTo(w * 0.7643, h * 0.1237); + c.lineTo(w * 0.7543, h * 0.1562); + c.lineTo(w * 0.7643, h * 0.1585); + c.lineTo(w * 0.9186, h * 0.2366); + c.lineTo(w, h * 0.1732); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.2079, h * 0.1545); + c.lineTo(w * 0.3886, h * 0.2536); + c.lineTo(w * 0.3414, h * 0.2933); + c.lineTo(w * 0.1743, h * 0.1969); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.1579, h * 0.2134); + c.lineTo(w * 0.3221, h * 0.3067); + c.lineTo(w * 0.2957, h * 0.3237); + c.lineTo(w * 0.1157, h * 0.2424); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.405, h * 0.2656); + c.lineTo(w * 0.31, h * 0.3353); + c.lineTo(w * 0.3693, h * 0.3661); + c.lineTo(w * 0.4571, h * 0.2982); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.7121, h * 0.1848); + c.lineTo(w * 0.6879, h * 0.1754); + c.lineTo(w * 0.6329, h * 0.1844); + c.lineTo(w * 0.61, h * 0.2018); + c.lineTo(w * 0.6207, h * 0.2085); + c.lineTo(w * 0.4986, h * 0.2982); + c.lineTo(w * 0.535, h * 0.3237); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5557, h * 0.3379); + c.lineTo(w * 0.7464, h * 0.1826); + c.lineTo(w * 0.8036, h * 0.2076); + c.lineTo(w * 0.595, h * 0.3616); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8293, h * 0.2188); + c.lineTo(w * 0.8979, h * 0.2509); + c.lineTo(w * 0.6936, h * 0.4125); + c.lineTo(w * 0.6171, h * 0.3737); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, h * 0.2138); + c.lineTo(w * 0.6821, h * 0.4603); + c.lineTo(w * 0.815, h * 0.5277); + c.lineTo(w, h * 0.4); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.317); + c.lineTo(w * 0.0971, h * 0.2554); + c.lineTo(w * 0.4121, h * 0.4143); + c.lineTo(w * 0.3736, h * 0.4415); + c.lineTo(w * 0.315, h * 0.4076); + c.lineTo(w * 0.3093, h * 0.4116); + c.lineTo(w * 0.3686, h * 0.4455); + c.lineTo(w * 0.285, h * 0.5045); + c.lineTo(w * 0.1114, h * 0.4134); + c.lineTo(w * 0.025, h * 0.4603); + c.lineTo(w * 0.0371, h * 0.4723); + c.lineTo(w * 0.1114, h * 0.4371); + c.lineTo(w * 0.2871, h * 0.5312); + c.lineTo(w * 0.1929, h * 0.6058); + c.lineTo(w * 0.2271, h * 0.6705); + c.lineTo(w * 0.17, h * 0.7147); + c.lineTo(w * 0.0314, h * 0.6321); + c.lineTo(0, h * 0.6246); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.48, h * 0.3121); + c.lineTo(w * 0.5157, h * 0.3375); + c.lineTo(w * 0.4314, h * 0.3982); + c.lineTo(w * 0.3929, h * 0.3786); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.3086, h * 0.5179); + c.lineTo(w * 0.53, h * 0.3518); + c.lineTo(w * 0.5757, h * 0.3745); + c.lineTo(w * 0.3479, h * 0.5411); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5964, h * 0.3884); + c.lineTo(w * 0.6736, h * 0.4277); + c.lineTo(w * 0.445, h * 0.5991); + c.lineTo(w * 0.3664, h * 0.5531); + c.lineTo(w * 0.5057, h * 0.4545); + c.lineTo(w * 0.5507, h * 0.4754); + c.lineTo(w * 0.5571, h * 0.4723); + c.lineTo(w * 0.5114, h * 0.4504); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.4793, h * 0.6161); + c.lineTo(w * 0.6771, h * 0.4643); + c.lineTo(w * 0.8086, h * 0.5326); + c.lineTo(w * 0.7471, h * 0.5817); + c.lineTo(w * 0.7214, h * 0.567); + c.lineTo(w * 0.715, h * 0.571); + c.lineTo(w * 0.7421, h * 0.5871); + c.lineTo(w * 0.6014, h * 0.6933); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, h * 0.4371); + c.lineTo(w * 0.8443, h * 0.546); + c.lineTo(w * 0.9071, h * 0.5701); + c.lineTo(w, h * 0.5022); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8407, h * 0.5504); + c.lineTo(w * 0.8993, h * 0.5759); + c.lineTo(w * 0.6757, h * 0.7416); + c.lineTo(w * 0.6286, h * 0.7139); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, h * 0.5321); + c.lineTo(w * 0.6979, h * 0.7549); + c.lineTo(w * 0.7457, h * 0.7781); + c.lineTo(w * 0.9814, h * 0.6094); + c.lineTo(w, h * 0.6067); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, h * 0.6254); + c.lineTo(w * 0.7664, h * 0.792); + c.lineTo(w * 0.9586, h * 0.9062); + c.lineTo(w, h * 0.8786); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.3093, h * 0.5464); + c.lineTo(w * 0.4271, h * 0.6152); + c.lineTo(w * 0.245, h * 0.7643); + c.lineTo(w * 0.185, h * 0.7228); + c.lineTo(w * 0.2493, h * 0.6728); + c.lineTo(w * 0.2214, h * 0.6143); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.65); + c.lineTo(w * 0.2179, h * 0.7826); + c.lineTo(w * 0.1136, h * 0.8424); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.7272); + c.lineTo(w * 0.0821, h * 0.859); + c.lineTo(0, h * 0.9085); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.4529, h * 0.6366); + c.lineTo(w * 0.575, h * 0.7143); + c.lineTo(w * 0.39, h * 0.8621); + c.lineTo(w * 0.2657, h * 0.7902); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.9415); + c.lineTo(w * 0.1036, h * 0.8821); + c.lineTo(w * 0.2343, h * 0.959); + c.lineTo(w * 0.1721, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.2586, h * 0.7951); + c.lineTo(w * 0.3829, h * 0.8674); + c.lineTo(w * 0.2543, h * 0.9451); + c.lineTo(w * 0.1279, h * 0.8692); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.2836, h * 0.9639); + c.lineTo(w * 0.4207, h * 0.8772); + c.lineTo(w * 0.605, h * 0.7321); + c.lineTo(w * 0.6521, h * 0.7634); + c.lineTo(w * 0.3486, h); + c.lineTo(w * 0.3393, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.3879, h); + c.lineTo(w * 0.6721, h * 0.7759); + c.lineTo(w * 0.7171, h * 0.7982); + c.lineTo(w * 0.4564, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.4986, h); + c.lineTo(w * 0.7386, h * 0.8125); + c.lineTo(w * 0.9307, h * 0.925); + c.lineTo(w * 0.8264, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8671, h); + c.lineTo(w * 0.9464, h * 0.9491); + c.lineTo(w, h * 0.975); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.2295, h); + c.lineTo(w * 0.2648, h * 0.9792); + c.lineTo(w * 0.2981, h); + c.close(); + c.fillAndStroke(); + + w = wOld; + h = hOld; + c.translate( - w * 0.0928, - h * 0.08); + } + + c.setStrokeWidth(1); + c.setStrokeColor('#18211b'); + c.rect(w * 0.0928, h * 0.08, w * 0.8144, h * 0.816); + c.stroke(); + + c.setStrokeWidth(1.5); + c.setAlpha(0.8); + c.setStrokeColor('#dddddd'); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.stroke(); + + rSize = 22.5; + c.begin(); + c.setStrokeColor('#666666'); + c.begin(); + c.moveTo(2.5, 2.5 + rSize); + c.arcTo(rSize, rSize, 0, 0, 1, 2.5 + rSize, 2.5); + c.lineTo(w - rSize - 5, 2.5); + c.arcTo(rSize, rSize, 0, 0, 1, w - 2.5, rSize + 2.5); + c.lineTo(w - 2.5, h - rSize - 2.5); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize - 2.5, h - 2.5); + c.lineTo(rSize + 2.5, h - 2.5); + c.arcTo(rSize, rSize, 0, 0, 1, 2.5, h - rSize - 2.5); + c.close(); + c.stroke(); + + c.setAlpha(1); + c.ellipse(w * 0.4948, h * 0.0444, w * 0.0103, h * 0.008); + c.setStrokeWidth(2.5); + c.setStrokeColor('#000000'); + c.setFillColor('#000099'); + c.fillAndStroke(); + + c.setGradient('#bbbbbb', '#000000', w * 0.4588, h * 0.912, w * 0.0825, h * 0.064, mxConstants.DIRECTION_SOUTH, 1, 1); + c.ellipse(w * 0.4588, h * 0.912, w * 0.0825, h * 0.064); + c.fill(); + + c.setAlpha(0.5); + c.ellipse(w * 0.4588, h * 0.912, w * 0.0825, h * 0.064); + c.stroke(); + + c.begin(); + c.setAlpha(0.85); + c.setFillColor('#000000'); + c.moveTo(w * 0.4598, h * 0.944); + c.arcTo(w * 0.0402, h * 0.0296, 0, 0, 1, w * 0.5402, h * 0.944); + c.arcTo(w * 0.0825, h * 0.064, 0, 0, 1, w * 0.4598, h * 0.944); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.setAlpha(0.7); + c.setStrokeWidth(1.5); + c.setStrokeColor('#dddddd'); + rSize = 4; + c.roundrect(w * 0.4814, h * 0.9296, w * 0.0371, h * 0.0288, h * 0.00515, h * 0.004); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxMockupC.SHAPE_IPAD, mxShapeMockupiPad); + +//********************************************************************************************************************************************************** +//Rounded rectangle (adjustable rounding) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupRRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupRRect, mxShape); + +mxShapeMockupRRect.prototype.cst = { + RRECT : 'mxgraph.ios.rrect', + R_SIZE : 'rSize' +}; + +mxShapeMockupRRect.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:5}, +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupRRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupRRect.prototype.cst.RRECT, mxShapeMockupRRect); + +//********************************************************************************************************************************************************** +//Top Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIosTopButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIosTopButton, mxShape); + +mxShapeIosTopButton.prototype.cst = { + TOP_BUTTON : 'mxgraph.ios.topButton', + R_SIZE : 'rSize' +}; + +mxShapeIosTopButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:5}, +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIosTopButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeIosTopButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeIosTopButton.prototype.cst.TOP_BUTTON, mxShapeIosTopButton); + +//********************************************************************************************************************************************************** +//Bottom Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIosBottomButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIosBottomButton, mxShape); + +mxShapeIosBottomButton.prototype.cst = { + BOTTOM_BUTTON : 'mxgraph.ios.bottomButton', + R_SIZE : 'rSize' +}; + +mxShapeIosBottomButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:5}, +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIosBottomButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeIosBottomButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeIosBottomButton.prototype.cst.BOTTOM_BUTTON, mxShapeIosBottomButton); + +//********************************************************************************************************************************************************** +//Anchor (a dummy shape without visuals used for anchoring) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIosAnchor(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIosAnchor, mxShape); + +mxShapeIosAnchor.prototype.cst = { + ANCHOR : 'mxgraph.ios.anchor' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIosAnchor.prototype.paintVertexShape = function(c, x, y, w, h) +{ +}; + +mxCellRenderer.registerShape(mxShapeIosAnchor.prototype.cst.ANCHOR, mxShapeIosAnchor); + +//********************************************************************************************************************************************************** +//Checkbox +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeIosCheckbox(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeIosCheckbox, mxShape); + +mxShapeIosCheckbox.prototype.cst = { + CHECKBOX : 'mxgraph.ios.checkbox' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeIosCheckbox.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.rect(0, 0, w, h); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8, h * 0.2); + c.lineTo(w * 0.4, h * 0.8); + c.lineTo(w * 0.25, h * 0.6); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeIosCheckbox.prototype.cst.CHECKBOX, mxShapeIosCheckbox); + +//********************************************************************************************************************************************************** +//Fancy Rounded rectangle (adjustable rounding) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeMockupFancyRRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeMockupFancyRRect, mxShape); + +mxShapeMockupFancyRRect.prototype.cst = { + FANCY_RRECT : 'mxgraph.ios.fancyRRect', + R_SIZE : 'rSize' +}; + +mxShapeMockupFancyRRect.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:8} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeMockupFancyRRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeMockupFancyRRect.prototype.cst.R_SIZE, '10')); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + +// c.setAlpha(0.8); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); + + c.setShadow(false); + + c.setStrokeColor(fillColor); + c.setGradient(fillColor, '#ffffff', 0, 0, w, 22.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.setAlpha(0.3); + c.begin(); + c.moveTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, 17.5); + c.arcTo(w * 1.67, h * 2.5, 0, 0, 1, 0, 17.5); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fillAndStroke(); + + c.setAlpha(0.8); + c.setStrokeColor(strokeColor); + c.setStrokeWidth(1); + c.roundrect(0, 0, w, h, rSize, rSize); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeMockupFancyRRect.prototype.cst.FANCY_RRECT, mxShapeMockupFancyRRect); diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxAWS3D.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxAWS3D.js new file mode 100644 index 0000000000000..39e0044b86851 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxAWS3D.js @@ -0,0 +1,9169 @@ +/** + * $Id: mxAws3d.js,v 1.0 2015/10/11 07:05:39 mate Exp $ + * Copyright (c) 2006-2015, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Arrow NE +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dArrowNE(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dArrowNE, mxShape); + +mxShapeAws3dArrowNE.prototype.cst = { + ARROW_NE : 'mxgraph.aws3d.arrowNE' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dArrowNE.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(w - 17, 8); + c.lineTo(w - 21, 5.5); + c.lineTo(w, 0); + c.lineTo(w - 9.7, 12.2); + c.lineTo(w - 13.9, 9.8); + c.lineTo(9.7, h - 3.5); + c.arcTo(6, 3, 0, 0, 1, 9, h - 0.4); + c.arcTo(5.2, 3, 0, 0, 1, 1, h - 1.4); + c.arcTo(6, 2.8, 0, 0, 1, 3, h - 5.4); + c.arcTo(5, 3, 0, 0, 1, 6.7, h - 5.2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dArrowNE.prototype.cst.ARROW_NE, mxShapeAws3dArrowNE); + +//********************************************************************************************************************************************************** +//Arrow SE +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dArrowSE(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dArrowSE, mxShape); + +mxShapeAws3dArrowSE.prototype.cst = { + ARROW_SE : 'mxgraph.aws3d.arrowSE' +}; + + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dArrowSE.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(w - 17, h - 8); + c.lineTo(w - 21, h - 5.5); + c.lineTo(w, h); + c.lineTo(w - 9.7, h - 12.2); + c.lineTo(w - 13.9, h - 9.8); + c.lineTo(9.7, 3.5); + c.arcTo(6, 3, 0, 0, 0, 9, 0.4); + c.arcTo(5.2, 3, 0, 0, 0, 1, 1.4); + c.arcTo(6, 2.8, 0, 0, 0, 3, 5.4); + c.arcTo(5, 3, 0, 0, 0, 6.7, 5.2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dArrowSE.prototype.cst.ARROW_SE, mxShapeAws3dArrowSE); + +//********************************************************************************************************************************************************** +//Arrow SW +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dArrowSW(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dArrowSW, mxShape); + +mxShapeAws3dArrowSW.prototype.cst = { + ARROW_SW : 'mxgraph.aws3d.arrowSW' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dArrowSW.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(17, h - 8); + c.lineTo(21, h - 5.5); + c.lineTo(0, h); + c.lineTo(9.7, h - 12.2); + c.lineTo(13.9, h - 9.8); + c.lineTo(w - 9.7, 3.5); + c.arcTo(6, 3, 0, 0, 1, w - 9, 0.4); + c.arcTo(5.2, 3, 0, 0, 1, w - 1, 1.4); + c.arcTo(6, 2.8, 0, 0, 1, w - 3, 5.4); + c.arcTo(5, 3, 0, 0, 1, w - 6.7, 5.2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dArrowSW.prototype.cst.ARROW_SW, mxShapeAws3dArrowSW); + +//********************************************************************************************************************************************************** +//Arrow NW +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dArrowNW(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dArrowNW, mxShape); + +mxShapeAws3dArrowNW.prototype.cst = { + ARROW_NW : 'mxgraph.aws3d.arrowNW' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dArrowNW.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(17, 8); + c.lineTo(21, 5.5); + c.lineTo(0, 0); + c.lineTo(9.7, 12.2); + c.lineTo(13.9, 9.8); + c.lineTo(w - 9.7, h - 3.5); + c.arcTo(6, 3, 0, 0, 0, w - 9, h - 0.4); + c.arcTo(5.2, 3, 0, 0, 0, w - 1, h - 1.4); + c.arcTo(6, 2.8, 0, 0, 0, w - 3, h - 5.4); + c.arcTo(5, 3, 0, 0, 0, w - 6.7, h - 5.2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dArrowNW.prototype.cst.ARROW_NW, mxShapeAws3dArrowNW); + +//********************************************************************************************************************************************************** +//Arrowless NE +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dArrowlessNE(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dArrowlessNE, mxShape); + +mxShapeAws3dArrowlessNE.prototype.cst = { + ARROWLESS_NE : 'mxgraph.aws3d.arrowlessNE' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dArrowlessNE.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(w - 3.1, 0); + c.lineTo(w, 1.8); + c.lineTo(9.7, h - 3.5); + c.arcTo(6, 3, 0, 0, 1, 9, h - 0.4); + c.arcTo(5.2, 3, 0, 0, 1, 1, h - 1.4); + c.arcTo(6, 2.8, 0, 0, 1, 3, h - 5.4); + c.arcTo(5, 3, 0, 0, 1, 6.7, h - 5.2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dArrowlessNE.prototype.cst.ARROWLESS_NE, mxShapeAws3dArrowlessNE); + +//********************************************************************************************************************************************************** +//Dashed edge with double arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dDashedEdgeDouble(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dDashedEdgeDouble, mxShape); + +mxShapeAws3dDashedEdgeDouble.prototype.cst = { + DASHED_EDGE_DOUBLE : 'mxgraph.aws3d.dashedEdgeDouble' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dDashedEdgeDouble.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.setFillColor('#2D6195'); + c.save(); + c.setStrokeColor('none'); + c.begin(); + c.moveTo(21, 5.5); + c.lineTo(0, 0); + c.lineTo(9.7, 12.2); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w - 21, h - 5.5); + c.lineTo(w, h); + c.lineTo(w - 9.7, h - 12.2); + c.fillAndStroke(); + + c.restore(); + c.setStrokeColor('#2D6195'); + c.setStrokeWidth('4'); + c.setDashed('true'); + c.setLineCap('round'); + + c.begin(); + c.moveTo(7.675, 4.425); + c.lineTo(w - 7.675, h - 4.425); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dDashedEdgeDouble.prototype.cst.DASHED_EDGE_DOUBLE, mxShapeAws3dDashedEdgeDouble); + +//********************************************************************************************************************************************************** +//Dashed arrowless edge +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dDashedArrowlessEdge(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dDashedArrowlessEdge, mxShape); + +mxShapeAws3dDashedArrowlessEdge.prototype.cst = { + DASHED_ARROWLESS_EDGE : 'mxgraph.aws3d.dashedArrowlessEdge' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dDashedArrowlessEdge.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.setStrokeColor('#2D6195'); + c.setStrokeWidth('4'); + c.setDashed('true'); + c.setLineCap('round'); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dDashedArrowlessEdge.prototype.cst.DASHED_ARROWLESS_EDGE, mxShapeAws3dDashedArrowlessEdge); + +//********************************************************************************************************************************************************** +//Dashed edge +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dDashedEdge(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dDashedEdge, mxShape); + +mxShapeAws3dDashedEdge.prototype.cst = { + DASHED_EDGE : 'mxgraph.aws3d.dashedEdge' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dDashedEdge.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.setFillColor('#2D6195'); + c.save(); + c.setStrokeColor('none'); + c.begin(); + c.moveTo(w - 21, 5.5); + c.lineTo(w, 0); + c.lineTo(w - 9.7, 12.2); + c.fillAndStroke(); + + c.restore(); + c.setStrokeColor('#2D6195'); + c.setStrokeWidth('4'); + c.setDashed('true'); + c.setLineCap('round'); + + c.begin(); + c.moveTo(w - 7.675, 4.425); + c.lineTo(0, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dDashedEdge.prototype.cst.DASHED_EDGE, mxShapeAws3dDashedEdge); + +//********************************************************************************************************************************************************** +//Flat edge +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dFlatEdge(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dFlatEdge, mxShape); + +mxShapeAws3dFlatEdge.prototype.cst = { + FLAT_EDGE : 'mxgraph.aws3d.flatEdge' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dFlatEdge.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.setFillColor('#F4B934'); + c.setStrokeColor('none'); + c.begin(); + c.moveTo(w - 46, 8.8); + c.lineTo(w - 61.2, 0); + c.lineTo(w, 0); + c.lineTo(w, 35.5); + c.lineTo(w - 15.4, 26.5); + c.lineTo(30.7, h); + c.lineTo(0, h - 17.7); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dFlatEdge.prototype.cst.FLAT_EDGE, mxShapeAws3dFlatEdge); + +//********************************************************************************************************************************************************** +//Flat double edge +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dFlatDoubleEdge(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dFlatDoubleEdge, mxShape); + +mxShapeAws3dFlatDoubleEdge.prototype.cst = { + FLAT_DOUBLE_EDGE : 'mxgraph.aws3d.flatDoubleEdge' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dFlatDoubleEdge.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.setFillColor('#F4B934'); + c.setStrokeColor('none'); + + c.begin(); + c.moveTo(15.3, 61.9); + c.lineTo(30.8, 53.2); + c.lineTo(15.4, 44.2); + c.lineTo(0, 53.2); + c.lineTo(15.4, 8.8); + c.lineTo(92.1, 0); + c.lineTo(76.5, 8.8); + c.lineTo(92.1, 17.7); + c.lineTo(107.4, 8.8); + + c.lineTo(w - 15.3, h - 61.9); + c.lineTo(w - 30.8, h - 53.2); + c.lineTo(w - 15.4, h - 44.2); + c.lineTo(w, h - 53.2); + c.lineTo(w - 15.4, h - 8.8); + c.lineTo(w - 92.1, h); + c.lineTo(w - 76.5, h - 8.8); + c.lineTo(w - 92.1, h - 17.7); + c.lineTo(w - 107.4, h - 8.8); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dFlatDoubleEdge.prototype.cst.FLAT_DOUBLE_EDGE, mxShapeAws3dFlatDoubleEdge); + +//********************************************************************************************************************************************************** +//AMI +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dAMI(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dAMI, mxShape); + +mxShapeAws3dAMI.prototype.cst = { + AMI : 'mxgraph.aws3d.ami', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dAMI.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + var strokeWidth1 = strokeWidth * w / 92; + var strokeWidth2 = strokeWidth * h / 60; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + c.setStrokeWidth(strokeWidth); + c.setShadow(false); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) + { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.6483); + c.lineTo(w * 0.0684, h * 0.4133); + c.lineTo(w * 0.5326, 0); + c.lineTo(w * 0.6685, 0); + c.lineTo(w * 0.9359, h * 0.2367); + c.lineTo(w, h * 0.465); + c.lineTo(w * 0.4, h); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dAMI.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.65); + c.lineTo(w * 0.0652, h * 0.5); + c.lineTo(w * 0.3326, h * 0.7667); + c.lineTo(w * 0.4663, h * 0.7667); + c.lineTo(w * 0.4, h); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.4, h); + c.lineTo(w * 0.4641, h * 0.77); + c.lineTo(w * 0.9326, h * 0.355); + c.lineTo(w * 0.9347, h * 0.24); + c.lineTo(w, h * 0.4667); + c.close(); + c.fill(); + + c.restore(); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.65); + c.lineTo(w * 0.0652, h * 0.5); + c.lineTo(w * 0.3326, h * 0.7667); + c.lineTo(w * 0.4663, h * 0.7667); + c.lineTo(w * 0.4, h); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.4, h); + c.lineTo(w * 0.4641, h * 0.77); + c.lineTo(w * 0.9326, h * 0.355); + c.lineTo(w * 0.9347, h * 0.24); + c.lineTo(w, h * 0.4667); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.0652, h * 0.42); + c.lineTo(w * 0.0652, h * 0.5); + c.moveTo(w * 0.3337, h * 0.7667); + c.lineTo(w * 0.4, h); + c.moveTo(w * 0.9348, h * 0.355); + c.lineTo(w, h * 0.4733); + c.stroke(); + + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.1935, h * 0.42); + c.lineTo(w * 0.5543, h * 0.0967); + c.lineTo(w * 0.6652, h * 0.1967); + c.lineTo(w * 0.3, h * 0.5133); + c.close(); + c.moveTo(w * 0.2967, h * 0.4633); + c.lineTo(w * 0.3837, h * 0.3883); + c.lineTo(w * 0.3326, h * 0.3417); + c.lineTo(w * 0.2467, h * 0.42); + c.close(); + c.moveTo(w * 0.362, h * 0.32); + c.lineTo(w * 0.412, h * 0.3633); + c.lineTo(w * 0.5054, h * 0.2867); + c.lineTo(w * 0.4522, h * 0.24); + c.close(); + c.moveTo(w * 0.5293, h * 0.26); + c.lineTo(w * 0.6109, h * 0.1933); + c.lineTo(w * 0.5511, h * 0.145); + c.lineTo(w * 0.4739, h * 0.2133); + c.close(); + c.moveTo(w * 0.3528, h * 0.557); + c.lineTo(w * 0.7137, h * 0.2337); + c.lineTo(w * 0.8246, h * 0.3337); + c.lineTo(w * 0.4593, h * 0.6503); + c.close(); + c.moveTo(w * 0.4561, h * 0.6003); + c.lineTo(w * 0.543, h * 0.5253); + c.lineTo(w * 0.492, h * 0.4787); + c.lineTo(w * 0.4061, h * 0.557); + c.close(); + c.moveTo(w * 0.5213, h * 0.457); + c.lineTo(w * 0.5713, h * 0.5003); + c.lineTo(w * 0.6648, h * 0.4237); + c.lineTo(w * 0.6115, h * 0.377); + c.close(); + c.moveTo(w * 0.6887, h * 0.397); + c.lineTo(w * 0.7702, h * 0.3303); + c.lineTo(w * 0.7104, h * 0.282); + c.lineTo(w * 0.6333, h * 0.3503); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.6483); + c.lineTo(w * 0.0684, h * 0.4133); + c.lineTo(w * 0.5326, 0); + c.lineTo(w * 0.6685, 0); + c.lineTo(w * 0.9359, h * 0.2367); + c.lineTo(w, h * 0.465); + c.lineTo(w * 0.4, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dAMI.prototype.cst.AMI, mxShapeAws3dAMI); + +//********************************************************************************************************************************************************** +//Snapshot +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dSnapshot(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dSnapshot, mxShape); + +mxShapeAws3dSnapshot.prototype.cst = { + SNAPSHOT : 'mxgraph.aws3d.snapshot', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dSnapshot.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 92; + var strokeWidth2 = strokeWidth * h / 60; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + c.setStrokeWidth(strokeWidth); + c.setShadow(false); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if(isShadow == 1) + { + c.setShadow(true); + } + + c.begin(); + c.moveTo(w, h * 0.6483); + c.lineTo(w * 0.9316, h * 0.4133); + c.lineTo(w * 0.4674, 0); + c.lineTo(w * 0.3315, 0); + c.lineTo(w * 0.0641, h * 0.2367); + c.lineTo(0, h * 0.465); + c.lineTo(w * 0.6, h); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.setFillColor('#000000'); + + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSnapshot.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + + c.begin(); + c.moveTo(w, h * 0.65); + c.lineTo(w * 0.9348, h * 0.52); + c.lineTo(w * 0.6674, h * 0.7667); + c.lineTo(w * 0.5337, h * 0.7667); + c.lineTo(w * 0.6, h); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.6, h); + c.lineTo(w * 0.5359, h * 0.77); + c.lineTo(w * 0.0674, h * 0.355); + c.lineTo(w * 0.0653, h * 0.24); + c.lineTo(0, h * 0.4667); + c.close(); + c.fill(); + + c.restore(); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w, h * 0.65); + c.lineTo(w * 0.9348, h * 0.52); + c.lineTo(w * 0.6674, h * 0.7667); + c.lineTo(w * 0.5337, h * 0.7667); + c.lineTo(w * 0.6, h); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.6, h); + c.lineTo(w * 0.5359, h * 0.77); + c.lineTo(w * 0.0674, h * 0.355); + c.lineTo(w * 0.0653, h * 0.24); + c.lineTo(0, h * 0.4667); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.9348, h * 0.42); + c.lineTo(w * 0.9348, h * 0.52); + c.moveTo(w * 0.6663, h * 0.7667); + c.lineTo(w * 0.6, h); + c.moveTo(w * 0.0652, h * 0.355); + c.lineTo(0, h * 0.4733); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w, h * 0.6483); + c.lineTo(w * 0.9316, h * 0.4133); + c.lineTo(w * 0.4674, 0); + c.lineTo(w * 0.3315, 0); + c.lineTo(w * 0.0641, h * 0.2367); + c.lineTo(0, h * 0.465); + c.lineTo(w * 0.6, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dSnapshot.prototype.cst.SNAPSHOT, mxShapeAws3dSnapshot); + +//********************************************************************************************************************************************************** +//Application +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dApplication(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dApplication, mxShape); + +mxShapeAws3dApplication.prototype.cst = { + APPLICATION : 'mxgraph.aws3d.application', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dApplication.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 62; + var strokeWidth2 = strokeWidth * h / 68.8; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) + { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.2544); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.2544); + c.lineTo(w, h * 0.7485); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7485); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplication.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.2544); + c.lineTo(w * 0.5, h * 0.5015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7485); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h * 0.5015); + c.lineTo(w, h * 0.2544); + c.lineTo(w, h * 0.7485); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + c.restore(); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.2544); + c.lineTo(w * 0.5, h * 0.5015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7485); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.5, h * 0.5015); + c.lineTo(w, h * 0.2544); + c.lineTo(w, h * 0.7485); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.6694, h * 0.0872); + c.lineTo(w * 0.7629, h * 0.1337); + c.lineTo(w * 0.2661, h * 0.3882); + c.lineTo(w * 0.2661, h * 0.5407); + c.lineTo(w * 0.1742, h * 0.4953); + c.lineTo(w * 0.1742, h * 0.3459); + c.close(); + c.moveTo(w * 0.8629, h * 0.1846); + c.lineTo(w * 0.379, h * 0.4331); + c.lineTo(w * 0.379, h * 0.5945); + c.lineTo(w * 0.2855, h * 0.5494); + c.lineTo(w * 0.2855, h * 0.3953); + c.lineTo(w * 0.7839, h * 0.1439); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.2544); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.2544); + c.lineTo(w, h * 0.7485); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7485); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dApplication.prototype.cst.APPLICATION, mxShapeAws3dApplication); + +//********************************************************************************************************************************************************** +//Application Server +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dApplicationServer(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dApplicationServer, mxShape); + +mxShapeAws3dApplicationServer.prototype.cst = { + APPLICATION_SERVER : 'mxgraph.aws3d.application_server', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dApplicationServer.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 124; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dApplicationServer.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7236); + c.lineTo(0, h * 0.2863); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.2863); + c.lineTo(w, h * 0.7236); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dApplicationServer.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplicationServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.2863); + c.lineTo(w * 0.5, h * 0.5726); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7177); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w, h * 0.2863); + c.lineTo(w * 0.5, h * 0.5726); + c.lineTo(w * 0.5, h); + c.lineTo(w, h * 0.7177); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.2863); + c.lineTo(w * 0.5, h * 0.5726); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7177); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w, h * 0.2863); + c.lineTo(w * 0.5, h * 0.5726); + c.lineTo(w * 0.5, h); + c.lineTo(w, h * 0.7177); + c.close(); + c.stroke(); + + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.374, h * 0.4435); + c.arcTo(w * 0.0325, h * 0.0202, 0, 0, 1, w * 0.374, h * 0.4153); + c.lineTo(w * 0.4797, h * 0.3548); + c.arcTo(w * 0.0325, h * 0.0161, 0, 0, 1, w * 0.5203, h * 0.3548); + c.lineTo(w * 0.626, h * 0.4153); + c.arcTo(w * 0.0325, h * 0.0202, 0, 0, 1, w * 0.626, h * 0.4411); + c.lineTo(w * 0.5203, h * 0.5016); + c.arcTo(w * 0.0325, h * 0.0161, 0, 0, 1, w * 0.4797, h * 0.5016); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7236); + c.lineTo(0, h * 0.2863); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.2863); + c.lineTo(w, h * 0.7236); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dApplicationServer.prototype.cst.APPLICATION_SERVER, mxShapeAws3dApplicationServer); + +//********************************************************************************************************************************************************** +//CloudFront +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dCloudFront(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dCloudFront, mxShape); + +mxShapeAws3dCloudFront.prototype.cst = { + CLOUDFRONT : 'mxgraph.aws3d.cloudfront', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dCloudFront.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 103.8; + var strokeWidth2 = strokeWidth * h / 169.8; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) + { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.7915); + c.lineTo(0, h * 0.7491); + c.lineTo(w * 0.0588, h * 0.7279); + c.lineTo(w * 0.0588, h * 0.1036); + c.lineTo(w * 0.3526, 0); + c.lineTo(w * 0.9422, h * 0.2073); + c.lineTo(w * 0.9422, h * 0.8316); + c.lineTo(w, h * 0.8539); + c.lineTo(w, h * 0.894); + c.lineTo(w * 0.7013, h); + c.lineTo(w * 0.5877, h); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCloudFront.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(w * 0.0588, h * 0.106); + c.lineTo(w * 0.6474, h * 0.3121); + c.lineTo(w * 0.6474, h * 0.9352); + c.lineTo(w * 0.7052, h); + c.lineTo(w * 0.5915, h); + c.lineTo(0, h * 0.7915); + c.lineTo(0, h * 0.7491); + c.lineTo(w * 0.0588, h * 0.7279); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.6474, h * 0.3121); + c.lineTo(w * 0.9422, h * 0.2073); + c.lineTo(w * 0.9422, h * 0.8363); + c.lineTo(w, h * 0.8539); + c.lineTo(w, h * 0.894); + c.lineTo(w * 0.7013, h); + c.lineTo(w * 0.6474, h * 0.9305); + c.close(); + c.fill(); + + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7915); + c.lineTo(w * 0.0559, h * 0.7291); + c.lineTo(w * 0.6474, h * 0.9364); + c.lineTo(w * 0.5896, h); + c.moveTo(w * 0.6493, h * 0.9364); + c.lineTo(w * 0.9412, h * 0.8333); + c.lineTo(w, h * 0.894); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.0588, h * 0.106); + c.lineTo(w * 0.6474, h * 0.3121); + c.lineTo(w * 0.6474, h * 0.9352); + c.lineTo(w * 0.7052, h); + c.lineTo(w * 0.5915, h); + c.lineTo(0, h * 0.7915); + c.lineTo(0, h * 0.7491); + c.lineTo(w * 0.0588, h * 0.7279); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.6474, h * 0.3121); + c.lineTo(w * 0.9422, h * 0.2073); + c.lineTo(w * 0.9422, h * 0.8363); + c.lineTo(w, h * 0.8539); + c.lineTo(w, h * 0.894); + c.lineTo(w * 0.7013, h); + c.lineTo(w * 0.6474, h * 0.9305); + c.close(); + c.stroke(); + + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + + c.begin(); + c.moveTo(w * 0.3333, h * 0.6643); + c.arcTo(w * 0.3372, h * 0.2061, 0, 0, 1, w * 0.2351, h * 0.6042); + c.arcTo(w * 0.4528, h * 0.2768, 0, 0, 1, w * 0.1724, h * 0.523); + c.lineTo(w * 0.2428, h * 0.5677); + c.lineTo(w * 0.2427, h * 0.5895); + c.lineTo(w * 0.2765, h * 0.5995); + c.close(); + c.moveTo(w * 0.1599, h * 0.4935); + c.arcTo(w * 0.3372, h * 0.2061, 0, 0, 1, w * 0.1522, h * 0.4146); + c.arcTo(w * 0.1156, h * 0.0883, 0, 0, 1, w * 0.2071, h * 0.3486); + c.lineTo(w * 0.2013, h * 0.4187); + c.lineTo(w * 0.1859, h * 0.4146); + c.lineTo(w * 0.1859, h * 0.4464); + c.lineTo(w * 0.1907, h * 0.4493); + c.close(); + c.moveTo(w * 0.2235, h * 0.3445); + c.arcTo(w * 0.1927, h * 0.1767, 0, 0, 1, w * 0.368, h * 0.361); + c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.468, h * 0.4299); + c.lineTo(w * 0.368, h * 0.4034); + c.lineTo(w * 0.368, h * 0.394); + c.lineTo(w * 0.3256, h * 0.3799); + c.lineTo(w * 0.3256, h * 0.3887); + c.close(); + c.moveTo(w * 0.4855, h * 0.4499); + c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.5337, h * 0.5395); + c.arcTo(w * 0.3854, h * 0.2356, 0, 0, 1, w * 0.5328, h * 0.6302); + c.lineTo(w * 0.4952, h * 0.5589); + c.lineTo(w * 0.5019, h * 0.5595); + c.lineTo(w * 0.5019, h * 0.5265); + c.lineTo(w * 0.4855, h * 0.5194); + c.close(); + c.moveTo(w * 0.5241, h * 0.6455); + c.arcTo(w * 0.0963, h * 0.0589, 0, 0, 1, w * 0.4663, h * 0.682); + c.arcTo(w * 0.1445, h * 0.0883, 0, 0, 1, w * 0.3642, h * 0.6761); + c.lineTo(w * 0.4239, h * 0.6525); + c.lineTo(w * 0.4566, h * 0.6643); + c.lineTo(w * 0.4566, h * 0.6413); + c.close(); + c.moveTo(w * 0.3507, h * 0.6667); + c.lineTo(w * 0.2871, h * 0.5919); + c.lineTo(w * 0.4123, h * 0.6366); + c.close(); + c.moveTo(w * 0.2563, h * 0.5595); + c.lineTo(w * 0.1753, h * 0.5088); + c.lineTo(w * 0.2052, h * 0.4594); + c.close(); + c.moveTo(w * 0.2139, h * 0.4229); + c.lineTo(w * 0.2197, h * 0.3528); + c.lineTo(w * 0.3256, h * 0.4028); + c.lineTo(w * 0.2283, h * 0.4252); + c.close(); + c.moveTo(w * 0.2264, h * 0.4417); + c.lineTo(w * 0.3218, h * 0.4146); + c.lineTo(w * 0.3353, h * 0.4181); + c.lineTo(w * 0.3353, h * 0.4971); + c.lineTo(w * 0.3208, h * 0.4912); + c.lineTo(w * 0.3208, h * 0.4965); + c.lineTo(w * 0.2264, h * 0.4482); + c.close(); + c.moveTo(w * 0.2697, h * 0.5618); + c.lineTo(w * 0.2245, h * 0.4635); + c.lineTo(w * 0.2331, h * 0.4588); + c.lineTo(w * 0.3256, h * 0.5112); + c.lineTo(w * 0.3237, h * 0.5241); + c.close(); + c.moveTo(w * 0.2852, h * 0.576); + c.lineTo(w * 0.2852, h * 0.5654); + c.lineTo(w * 0.3391, h * 0.53); + c.lineTo(w * 0.3516, h * 0.5347); + c.lineTo(w * 0.4133, h * 0.6213); + c.close(); + c.moveTo(w * 0.368, h * 0.5141); + c.lineTo(w * 0.368, h * 0.5088); + c.lineTo(w * 0.3526, h * 0.5029); + c.lineTo(w * 0.3526, h * 0.4234); + c.lineTo(w * 0.3622, h * 0.4276); + c.lineTo(w * 0.4547, h * 0.5177); + c.lineTo(w * 0.4557, h * 0.5277); + c.close(); + c.moveTo(w * 0.3671, h * 0.417); + c.lineTo(w * 0.4692, h * 0.4411); + c.lineTo(w * 0.4721, h * 0.52); + c.close(); + c.moveTo(w * 0.368, h * 0.5253); + c.lineTo(w * 0.4566, h * 0.5359); + c.lineTo(w * 0.4566, h * 0.5453); + c.lineTo(w * 0.4663, h * 0.5465); + c.lineTo(w * 0.4335, h * 0.6201); + c.lineTo(w * 0.422, h * 0.616); + c.lineTo(w * 0.368, h * 0.5389); + c.close(); + c.moveTo(w * 0.4798, h * 0.5583); + c.lineTo(w * 0.5183, h * 0.629); + c.lineTo(w * 0.4557, h * 0.6313); + c.lineTo(w * 0.4557, h * 0.6237); + c.lineTo(w * 0.447, h * 0.6225); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7915); + c.lineTo(0, h * 0.7491); + c.lineTo(w * 0.0588, h * 0.7279); + c.lineTo(w * 0.0588, h * 0.1036); + c.lineTo(w * 0.3526, 0); + c.lineTo(w * 0.9422, h * 0.2073); + c.lineTo(w * 0.9422, h * 0.8316); + c.lineTo(w, h * 0.8539); + c.lineTo(w, h * 0.894); + c.lineTo(w * 0.7013, h); + c.lineTo(w * 0.5877, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dCloudFront.prototype.cst.CLOUDFRONT, mxShapeAws3dCloudFront); + +//********************************************************************************************************************************************************** +//Data Center +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dDataCenter(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dDataCenter, mxShape); + +mxShapeAws3dDataCenter.prototype.cst = { + DATA_CENTER : 'mxgraph.aws3d.dataCenter', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dDataCenter.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 142; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) + { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.7465); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7465); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDataCenter.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.7465); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w, h * 0.7465); + c.lineTo(w, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.7465); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w, h * 0.7465); + c.lineTo(w, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + + c.setLineCap('round'); + c.setStrokeWidth(3 * strokeWidth); + + c.begin(); + c.moveTo(w * 0.0894, h * 0.3838); + c.lineTo(w * 0.4187, h * 0.5493); + c.moveTo(w * 0.0894, h * 0.4331); + c.lineTo(w * 0.4187, h * 0.5986); + c.moveTo(w * 0.0894, h * 0.4824); + c.lineTo(w * 0.4187, h * 0.6479); + c.moveTo(w * 0.5854, h * 0.5493); + c.lineTo(w * 0.9146, h * 0.3838); + c.moveTo(w * 0.5854, h * 0.5986); + c.lineTo(w * 0.9146, h * 0.4331); + c.moveTo(w * 0.5854, h * 0.6479); + c.lineTo(w * 0.9146, h * 0.4824); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7465); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7465); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dDataCenter.prototype.cst.DATA_CENTER, mxShapeAws3dDataCenter); + +//********************************************************************************************************************************************************** +//Data Server +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dDataServer(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dDataServer, mxShape); + +mxShapeAws3dDataServer.prototype.cst = { + DATA_SERVER : 'mxgraph.aws3d.dataServer', + SHADINC_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dDataServer.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 106; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) + { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.6651); + c.lineTo(0, h * 0.3349); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3349); + c.lineTo(w, h * 0.6651); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDataServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.6651); + c.lineTo(0, h * 0.3349); + c.lineTo(w * 0.5, h * 0.6698); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w, h * 0.6651); + c.lineTo(w, h * 0.3349); + c.lineTo(w * 0.5, h * 0.6698); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.6651); + c.lineTo(0, h * 0.3349); + c.lineTo(w * 0.5, h * 0.6698); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w, h * 0.6651); + c.lineTo(w, h * 0.3349); + c.lineTo(w * 0.5, h * 0.6698); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + + c.setLineCap('round'); + c.setStrokeWidth(3 * strokeWidth); + + c.begin(); + c.moveTo(w * 0.0878, h * 0.4858); + c.lineTo(w * 0.4187, h * 0.7094); + c.moveTo(w * 0.587, h * 0.7094); + c.lineTo(w * 0.9187, h * 0.4858); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.6651); + c.lineTo(0, h * 0.3349); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3349); + c.lineTo(w, h * 0.6651); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dDataServer.prototype.cst.DATA_SERVER, mxShapeAws3dDataServer); + +//********************************************************************************************************************************************************** +//Elastic Load Balancing +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dElasticLoadBalancing(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dElasticLoadBalancing, mxShape); + +mxShapeAws3dElasticLoadBalancing.prototype.cst = { + ELASTIC_LOAD_BALANCING : 'mxgraph.aws3d.elasticLoadBalancing', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dElasticLoadBalancing.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 92; + var strokeWidth2 = strokeWidth * h / 88.17; + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) + { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.7996); + c.lineTo(0, h * 0.1985); + c.lineTo(w * 0.3315, 0); + c.lineTo(w * 0.6685, 0); + c.lineTo(w, h * 0.1985); + c.lineTo(w, h * 0.7996); + c.lineTo(w * 0.6685, h); + c.lineTo(w * 0.3315, h); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticLoadBalancing.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.4026); + c.lineTo(w * 0.3315, h * 0.6011); + c.lineTo(w * 0.6685, h * 0.6011); + c.lineTo(w * 0.6685, h); + c.lineTo(w * 0.3315, h); + c.lineTo(0, h * 0.7996); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.6685, h * 0.6011); + c.lineTo(w, h * 0.4026); + c.lineTo(w, h * 0.7996); + c.lineTo(w * 0.6685, h); + c.close(); + c.fill(); + + c.restore(); + c.setLineJoin('round'); + c.begin(); + c.moveTo(0, h * 0.4026); + c.lineTo(w * 0.3315, h * 0.6011); + c.lineTo(w * 0.6685, h * 0.6011); + c.lineTo(w * 0.6685, h); + c.lineTo(w * 0.3315, h); + c.lineTo(0, h * 0.7996); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.6685, h * 0.6011); + c.lineTo(w, h * 0.4026); + c.lineTo(w, h * 0.7996); + c.lineTo(w * 0.6685, h); + c.close(); + c.moveTo(w * 0.3315, h * 0.6011); + c.lineTo(w * 0.3315, h); + c.stroke(); + + c.restore(); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.337, h * 0.1395); + c.arcTo(w * 0.3043, h * 0.1928, 0, 0, 1, w * 0.5, h * 0.1191); + c.arcTo(w * 0.3043, h * 0.1928, 0, 0, 1, w * 0.6739, h * 0.1645); + c.arcTo(w * 0.3261, h * 0.2155, 0, 0, 1, w * 0.8152, h * 0.3176); + c.arcTo(w * 0.3261, h * 0.1701, 0, 0, 1, w * 0.75, h * 0.4367); + c.arcTo(w * 0.3261, h * 0.3403, 0, 0, 1, w * 0.6033, h * 0.4854); + c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.4348, h * 0.4741); + c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.2848, h * 0.4094); + c.arcTo(w * 0.3261, h * 0.2268, 0, 0, 1, w * 0.2065, h * 0.3062); + c.arcTo(w * 0.3261, h * 0.1701, 0, 0, 1, w * 0.2446, h * 0.1928); + c.arcTo(w * 0.2717, h * 0.1701, 0, 0, 1, w * 0.337, h * 0.1395); + c.fill(); + + c.restore(); + c.begin(); + c.moveTo(w * 0.2826, h * 0.372); + c.lineTo(w * 0.362, h * 0.3232); + c.lineTo(w * 0.4054, h * 0.3482); + c.lineTo(w * 0.4457, h * 0.2654); + c.lineTo(w * 0.4185, h * 0.2643); + c.lineTo(w * 0.4728, h * 0.2132); + c.lineTo(w * 0.4348, h * 0.1928); + c.lineTo(w * 0.5141, h * 0.144); + c.lineTo(w * 0.5837, h * 0.1883); + c.lineTo(w * 0.5043, h * 0.2348); + c.lineTo(w * 0.4848, h * 0.2223); + c.lineTo(w * 0.4967, h * 0.2688); + c.lineTo(w * 0.463, h * 0.2665); + c.lineTo(w * 0.4304, h * 0.3346); + c.lineTo(w * 0.4946, h * 0.2949); + c.lineTo(w * 0.4761, h * 0.2858); + c.lineTo(w * 0.5511, h * 0.2631); + c.lineTo(w * 0.5261, h * 0.2472); + c.lineTo(w * 0.6043, h * 0.1996); + c.lineTo(w * 0.6761, h * 0.2404); + c.lineTo(w * 0.5978, h * 0.2892); + c.lineTo(w * 0.5652, h * 0.2699); + c.lineTo(w * 0.5293, h * 0.3198); + c.lineTo(w * 0.5087, h * 0.3051); + c.lineTo(w * 0.4543, h * 0.3391); + c.lineTo(w * 0.563, h * 0.3221); + c.lineTo(w * 0.5598, h * 0.3017); + c.lineTo(w * 0.6326, h * 0.3096); + c.lineTo(w * 0.6163, h * 0.2994); + c.lineTo(w * 0.6957, h * 0.2529); + c.lineTo(w * 0.7674, h * 0.2938); + c.lineTo(w * 0.687, h * 0.3425); + c.lineTo(w * 0.6489, h * 0.321); + c.lineTo(w * 0.5707, h * 0.3539); + c.lineTo(w * 0.5674, h * 0.3369); + c.lineTo(w * 0.4293, h * 0.3618); + c.lineTo(w * 0.4641, h * 0.3834); + c.lineTo(w * 0.3859, h * 0.4299); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7996); + c.lineTo(0, h * 0.1985); + c.lineTo(w * 0.3315, 0); + c.lineTo(w * 0.6685, 0); + c.lineTo(w, h * 0.1985); + c.lineTo(w, h * 0.7996); + c.lineTo(w * 0.6685, h); + c.lineTo(w * 0.3315, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dElasticLoadBalancing.prototype.cst.ELASTIC_LOAD_BALANCING, mxShapeAws3dElasticLoadBalancing); + +//********************************************************************************************************************************************************** +//Instance +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dInstance(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dInstance, mxShape); + +mxShapeAws3dInstance.prototype.cst = { + INSTANCE : 'mxgraph.aws3d.instance', + SHADIG_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dInstance.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 97; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dInstance.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.634); + c.lineTo(0, h * 0.2732); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.622, 0); + c.lineTo(w, h * 0.2732); + c.lineTo(w, h * 0.634); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dInstance.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInstance.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.2732); + c.lineTo(w * 0.5, h * 0.6392); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.634); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h * 0.6392); + c.lineTo(w, h * 0.2732); + c.lineTo(w, h * 0.6392); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.2732); + c.lineTo(w * 0.5, h * 0.6392); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.634); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.5, h * 0.6392); + c.lineTo(w, h * 0.2732); + c.lineTo(w, h * 0.6392); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.374, h * 0.4742); + c.arcTo(w * 0.0325, h * 0.0258, 0, 0, 1, w * 0.374, h * 0.4381); + c.lineTo(w * 0.4797, h * 0.3608); + c.arcTo(w * 0.0325, h * 0.0206, 0, 0, 1, w * 0.5203, h * 0.3608); + c.lineTo(w * 0.626, h * 0.4381); + c.arcTo(w * 0.0325, h * 0.0258, 0, 0, 1, w * 0.626, h * 0.4711); + c.lineTo(w * 0.5203, h * 0.5485); + c.arcTo(w * 0.0325, h * 0.0206, 0, 0, 1, w * 0.4797, h * 0.5485); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.634); + c.lineTo(0, h * 0.2732); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.622, 0); + c.lineTo(w, h * 0.2732); + c.lineTo(w, h * 0.634); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dInstance.prototype.cst.INSTANCE, mxShapeAws3dInstance); + +//********************************************************************************************************************************************************** +//Internet Gateway +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dInternetGateway(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dInternetGateway, mxShape); + +mxShapeAws3dInternetGateway.prototype.cst = { + INTERNET_GATEWAY : 'mxgraph.aws3d.internetGateway', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dInternetGateway.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 116.7; + var strokeWidth2 = strokeWidth * h / 102.8; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dInternetGateway.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.8946, 0); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6812, h * 0.7247); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.save(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInternetGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.6838, h * 0.2072); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.6838, h * 0.2072); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.6838, h * 0.2072); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.stroke(); + + c.restore(); + c.setLineJoin('round'); + c.setShadow(false); + + c.begin(); + c.moveTo(w * 0.6838, h * 0.2072); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.8946, 0); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6812, h * 0.7247); + c.close(); + c.stroke(); + + c.restore(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.3171, h * 0.1031); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.lineTo(w * 0.1054, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dInternetGateway.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setShadow(false); + c.setLineJoin('round'); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dInternetGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.1054, h); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.1054, h); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.1054, h); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.1054, h); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.close(); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.3171, h * 0.1031); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.lineTo(w * 0.1054, h); + c.close(); + c.stroke(); + + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.7849, h * 0.5039); + c.arcTo(w * 0.0343, h * 0.0632, 0, 0, 1, w * 0.7481, h * 0.4796); + c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.7661, h * 0.3911); + c.arcTo(w * 0.06, h * 0.0681, 0, 0, 1, w * 0.7712, h * 0.3356); + c.arcTo(w * 0.0257, h * 0.0292, 0, 0, 1, w * 0.7952, h * 0.32); + c.arcTo(w * 0.1285, h * 0.1459, 0, 0, 1, w * 0.8166, h * 0.2461); + c.arcTo(w * 0.06, h * 0.0973, 0, 0, 1, w * 0.8595, h * 0.2238); + c.arcTo(w * 0.0514, h * 0.0973, 0, 0, 1, w * 0.8937, h * 0.2743); + c.arcTo(w * 0.0428, h * 0.0778, 0, 0, 1, w * 0.9323, h * 0.3093); + c.arcTo(w * 0.0686, h * 0.0778, 0, 0, 1, w * 0.928, h * 0.3716); + c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.8972, h * 0.4125); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dInternetGateway.prototype.cst.INTERNET_GATEWAY, mxShapeAws3dInternetGateway); + +//********************************************************************************************************************************************************** +//Oracle Data Center +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dOracleDataCenter(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dOracleDataCenter, mxShape); + +mxShapeAws3dOracleDataCenter.prototype.cst = { + ORACLE_DATA_CENTER : 'mxgraph.aws3d.oracleDataCenter' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dOracleDataCenter.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h /142; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dOracleDataCenter.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dOracleDataCenter.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + c.setAlpha('0.1'); + + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + c.setAlpha('0.3'); + c.begin(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.setFillColor('#ff0000'); + + c.begin(); + c.moveTo(0, h * 0.5866); + c.lineTo(w * 0.5, h * 0.8359); + c.lineTo(w, h * 0.5866); + c.lineTo(w, h * 0.6986); + c.lineTo(w * 0.5, h * 0.9486); + c.lineTo(0, h * 0.6986); + c.fill(); + + c.setStrokeWidth(0.5 * strokeWidth); + c.setStrokeColor('#ffffff'); + c.setFillColor('#ffffff'); + + c.begin(); + c.moveTo(0, h * 0.5866); + c.lineTo(w * 0.5, h * 0.8359); + c.lineTo(w, h * 0.5866); + c.moveTo(w, h * 0.6986); + c.lineTo(w * 0.5, h * 0.9486); + c.lineTo(0, h * 0.6986); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.0813, h * 0.7113); + c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.065, h * 0.6831); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.065, h * 0.6613); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.0797, h * 0.6549); + c.lineTo(w * 0.122, h * 0.6754); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.1358, h * 0.6937); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.139, h * 0.7232); + c.arcTo(w * 0.0179, h * 0.0155, 0, 0, 1, w * 0.1187, h * 0.7296); + c.close(); + c.moveTo(w * 0.1163, h * 0.7183); + c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.1285, h * 0.7148); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1293, h * 0.7021); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1179, h * 0.6831); + c.lineTo(w * 0.087, h * 0.6676); + c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.0764, h * 0.6697); + c.arcTo(w * 0.0325, h * 0.0352, 0, 0, 0, w * 0.078, h * 0.6937); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.087, h * 0.7035); + c.close(); + c.moveTo(w * 0.1439, h * 0.743); + c.lineTo(w * 0.1439, h * 0.6866); + c.lineTo(w * 0.1846, h * 0.707); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.1967, h * 0.7183); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2, h * 0.738); + c.arcTo(w * 0.0138, h * 0.0155, 0, 0, 1, w * 0.1813, h * 0.743); + c.lineTo(w * 0.1992, h * 0.769); + c.lineTo(w * 0.187, h * 0.7641); + c.lineTo(w * 0.1577, h * 0.7218); + c.lineTo(w * 0.1854, h * 0.7345); + c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.1911, h * 0.7317); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 0, w * 0.1894, h * 0.7225); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.1821, h * 0.7155); + c.lineTo(w * 0.1528, h * 0.7007); + c.lineTo(w * 0.1528, h * 0.7472); + c.close(); + c.moveTo(w * 0.2008, h * 0.7711); + c.lineTo(w * 0.2293, h * 0.7338); + c.arcTo(w * 0.0065, h * 0.0056, 0, 0, 1, w * 0.2382, h * 0.7324); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2431, h * 0.7415); + c.lineTo(w * 0.2699, h * 0.8035); + c.lineTo(w * 0.2602, h * 0.8007); + c.lineTo(w * 0.252, h * 0.7859); + c.lineTo(w * 0.2293, h * 0.7754); + c.lineTo(w * 0.2244, h * 0.7634); + c.lineTo(w * 0.248, h * 0.7739); + c.lineTo(w * 0.235, h * 0.7444); + c.lineTo(w * 0.2122, h * 0.7768); + c.close(); + c.moveTo(w * 0.3244, h * 0.8225); + c.lineTo(w * 0.3171, h * 0.8289); + c.lineTo(w * 0.2854, h * 0.8127); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2724, h * 0.7986); + c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.265, h * 0.7746); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2683, h * 0.762); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.2829, h * 0.757); + c.lineTo(w * 0.3228, h * 0.7761); + c.lineTo(w * 0.3179, h * 0.7831); + c.lineTo(w * 0.2878, h * 0.7683); + c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.2789, h * 0.7697); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.2748, h * 0.7831); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.2878, h * 0.8042); + c.close(); + c.moveTo(w * 0.3276, h * 0.7789); + c.lineTo(w * 0.3366, h * 0.7831); + c.lineTo(w * 0.3366, h * 0.8289); + c.lineTo(w * 0.3805, h * 0.8507); + c.lineTo(w * 0.3748, h * 0.857); + c.lineTo(w * 0.3317, h * 0.8359); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3276, h * 0.8275); + c.close(); + c.moveTo(w * 0.435, h * 0.8775); + c.lineTo(w * 0.4325, h * 0.8866); + c.lineTo(w * 0.3959, h * 0.8683); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.3862, h * 0.8563); + c.arcTo(w * 0.0528, h * 0.0458, 0, 0, 1, w * 0.3805, h * 0.8183); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3951, h * 0.8134); + c.lineTo(w * 0.435, h * 0.8324); + c.lineTo(w * 0.4285, h * 0.838); + c.lineTo(w * 0.4008, h * 0.8246); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.3878, h * 0.831); + c.lineTo(w * 0.4333, h * 0.8542); + c.lineTo(w * 0.426, h * 0.8606); + c.lineTo(w * 0.3878, h * 0.8415); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.3976, h * 0.8585); + c.close(); + + c.moveTo(w * 0.6171, h * 0.8063); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.6366, h * 0.8092); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 1, w * 0.639, h * 0.8303); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.6211, h * 0.8592); + c.lineTo(w * 0.5894, h * 0.8761); + c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 1, w * 0.565, h * 0.8732); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.5659, h * 0.8458); + c.arcTo(w * 0.0488, h * 0.0422, 0, 0, 1, w * 0.5805, h * 0.8246); + c.close(); + c.moveTo(w * 0.5886, h * 0.8296); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.5748, h * 0.8472); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.574, h * 0.862); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.587, h * 0.8676); + c.lineTo(w * 0.6163, h * 0.8528); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.6285, h * 0.8359); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6293, h * 0.8225); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.6163, h * 0.8155); + c.close(); + + c.moveTo(w * 0.64, h * 0.85); + c.lineTo(w * 0.64, h * 0.7930); + c.lineTo(w * 0.6854, h * 0.7718); + c.arcTo(w * 0.0106, h * 0.0092, 0, 0, 1, w * 0.7008, h * 0.7782); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6959, h * 0.8); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6805, h * 0.8127); + c.lineTo(w * 0.6992, h * 0.8218); + c.lineTo(w * 0.6854, h * 0.8282); + c.lineTo(w * 0.6569, h * 0.8141); + c.lineTo(w * 0.6805, h * 0.8021); + c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 0, w * 0.6894, h * 0.7923); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6894, h * 0.7845); + c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.6837, h * 0.7831); + c.lineTo(w * 0.6528, h * 0.7979); + c.lineTo(w * 0.6528, h * 0.8437); + c.close(); + c.moveTo(w * 0.7, h * 0.8204); + c.lineTo(w * 0.7301, h * 0.7507); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7358, h * 0.7444); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7415, h * 0.7486); + c.lineTo(w * 0.7699, h * 0.7852); + c.lineTo(w * 0.7602, h * 0.7908); + c.lineTo(w * 0.7537, h * 0.7838); + c.lineTo(w * 0.7276, h * 0.7958); + c.lineTo(w * 0.7228, h * 0.788); + c.lineTo(w * 0.748, h * 0.7768); + c.lineTo(w * 0.7358, h * 0.7585); + c.lineTo(w * 0.7114, h * 0.8155); + c.close(); + c.moveTo(w * 0.8244, h * 0.7486); + c.lineTo(w * 0.8171, h * 0.762); + c.lineTo(w * 0.7894, h * 0.7761); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 1, w * 0.7683, h * 0.7746); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.7667, h * 0.7507); + c.arcTo(w * 0.0488, h * 0.0423, 0, 0, 1, w * 0.7937, h * 0.7162); + c.lineTo(w * 0.822, h * 0.7035); + c.lineTo(w * 0.8171, h * 0.7155); + c.lineTo(w * 0.7902, h * 0.7296); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.778, h * 0.743); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.7756, h * 0.7606); + c.arcTo(w * 0.0077, h * 0.0067, 0, 0, 0, w * 0.787, h * 0.767); + c.close(); + c.moveTo(w * 0.8366, h * 0.6949); + c.lineTo(w * 0.8366, h * 0.7423); + c.lineTo(w * 0.878, h * 0.7231); + c.lineTo(w * 0.874, h * 0.7338); + c.lineTo(w * 0.8333, h * 0.7535); + c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 1, w * 0.8268, h * 0.75); + c.lineTo(w * 0.8268, h * 0.7007); + c.close(); + c.moveTo(w * 0.9342, h * 0.6472); + c.lineTo(w * 0.9293, h * 0.6599); + c.lineTo(w * 0.9033, h * 0.6725); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.8927, h * 0.6817); + c.arcTo(w * 0.0406, h * 0.0352, 0, 0, 0, w * 0.887, h * 0.6937); + c.lineTo(w * 0.9309, h * 0.6725); + c.lineTo(w * 0.9268, h * 0.6845); + c.lineTo(w * 0.887, h * 0.7035); + c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.8992, h * 0.7106); + c.lineTo(w * 0.935, h * 0.693); + c.lineTo(w * 0.9285, h * 0.7063); + c.lineTo(w * 0.9008, h * 0.7197); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.8829, h * 0.7204); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.8764, h * 0.7028); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.8959, h * 0.6669); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + + c.restore(); + c.setShadow(false); + c.setStrokeWidth(3 * strokeWidth); + c.setLineCap('round'); + c.begin(); + c.moveTo(w * 0.0894, h * 0.3838); + c.lineTo(w * 0.4187, h * 0.5493); + c.moveTo(w * 0.0894, h * 0.4331); + c.lineTo(w * 0.4187, h * 0.5986); + c.moveTo(w * 0.0894, h * 0.4824); + c.lineTo(w * 0.4187, h * 0.6479); + c.moveTo(w * 0.5854, h * 0.5492); + c.lineTo(w * 0.9146, h * 0.3838); + c.moveTo(w * 0.5854, h * 0.5986); + c.lineTo(w * 0.9146, h * 0.4331); + c.moveTo(w * 0.5854, h * 0.6479); + c.lineTo(w * 0.9146, h * 0.4824); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dOracleDataCenter.prototype.cst.ORACLE_DATA_CENTER, mxShapeAws3dOracleDataCenter); + +//********************************************************************************************************************************************************** +//Oracle Database Server +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dOracleDatabaseServer(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dOracleDatabaseServer, mxShape); + +mxShapeAws3dOracleDatabaseServer.prototype.cst = { + ORACLE_DB_SERVER : 'mxgraph.aws3d.oracleDbServer' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dOracleDatabaseServer.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h /142; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dOracleDatabaseServer.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dOracleDatabaseServer.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + c.setAlpha('0.1'); + + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.close(); + c.moveTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3308); + c.fill(); + + c.setAlpha('0.3'); + c.begin(); + c.moveTo(w * 0.5, h); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w, h * 0.3308); + c.lineTo(w, h * 0.7331); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.setFillColor('#ff0000'); + + c.begin(); + c.moveTo(0, h * 0.5586); + c.lineTo(w * 0.5, h * 0.8248); + c.lineTo(w, h * 0.5586); + c.lineTo(w, h * 0.6782); + c.lineTo(w * 0.5, h * 0.9453); + c.lineTo(0, h * 0.6782); + c.fill(); + + c.setStrokeWidth(0.5 * strokeWidth); + c.setStrokeColor('#ffffff'); + c.setFillColor('#ffffff'); + + c.begin(); + c.moveTo(0, h * 0.5586); + c.lineTo(w * 0.5, h * 0.8248); + c.lineTo(w, h * 0.5586); + c.moveTo(w, h * 0.6782); + c.lineTo(w * 0.5, h * 0.9453); + c.lineTo(0, h * 0.6782); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.0813, h * 0.6918); + c.arcTo(w * 0.0569, h * 0.0526, 0, 0, 1, w * 0.065, h * 0.6616); + c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.065, h * 0.6384); + c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.0797, h * 0.6315); + c.lineTo(w * 0.122, h * 0.6534); + c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.1358, h * 0.673); + c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.139, h * 0.7045); + c.arcTo(w * 0.0179, h * 0.0165, 0, 0, 1, w * 0.1187, h * 0.7113); + c.close(); + c.moveTo(w * 0.1163, h * 0.6992); + c.arcTo(w * 0.0089, h * 0.0082, 0, 0, 0, w * 0.1285, h * 0.6955); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.1293, h * 0.6819); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.1179, h * 0.6616); + c.lineTo(w * 0.087, h * 0.6451); + c.arcTo(w * 0.0081, h * 0.0075, 0, 0, 0, w * 0.0764, h * 0.6473); + c.arcTo(w * 0.0325, h * 0.0376, 0, 0, 0, w * 0.078, h * 0.673); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.087, h * 0.6834); + c.close(); + c.moveTo(w * 0.1439, h * 0.7256); + c.lineTo(w * 0.1439, h * 0.6654); + c.lineTo(w * 0.1846, h * 0.6872); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.1967, h * 0.6992); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2, h * 0.7203); + c.arcTo(w * 0.0138, h * 0.0165, 0, 0, 1, w * 0.1813, h * 0.7256); + c.lineTo(w * 0.1992, h * 0.7534); + c.lineTo(w * 0.187, h * 0.7481); + c.lineTo(w * 0.1577, h * 0.7029); + c.lineTo(w * 0.1854, h * 0.7165); + c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 0, w * 0.1911, h * 0.7135); + c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 0, w * 0.1894, h * 0.7037); + c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.1821, h * 0.6962); + c.lineTo(w * 0.1528, h * 0.6804); + c.lineTo(w * 0.1528, h * 0.7301); + c.close(); + c.moveTo(w * 0.2008, h * 0.7556); + c.lineTo(w * 0.2293, h * 0.7158); + c.arcTo(w * 0.0065, h * 0.006, 0, 0, 1, w * 0.2382, h * 0.7143); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2431, h * 0.724); + c.lineTo(w * 0.2699, h * 0.7902); + c.lineTo(w * 0.2602, h * 0.7872); + c.lineTo(w * 0.252, h * 0.7714); + c.lineTo(w * 0.2293, h * 0.7602); + c.lineTo(w * 0.2244, h * 0.7474); + c.lineTo(w * 0.248, h * 0.7586); + c.lineTo(w * 0.235, h * 0.7271); + c.lineTo(w * 0.2122, h * 0.7617); + c.close(); + c.moveTo(w * 0.3244, h * 0.8105); + c.lineTo(w * 0.3171, h * 0.8173); + c.lineTo(w * 0.2854, h * 0.8); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2724, h * 0.785); + c.arcTo(w * 0.0569, h * 0.0526, 0, 0, 1, w * 0.265, h * 0.7593); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.2683, h * 0.7459); + c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.2829, h * 0.7405); + c.lineTo(w * 0.3228, h * 0.7609); + c.lineTo(w * 0.3179, h * 0.7684); + c.lineTo(w * 0.2878, h * 0.7526); + c.arcTo(w * 0.0081, h * 0.0075, 0, 0, 0, w * 0.2789, h * 0.7541); + c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.2748, h * 0.7684); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.2878, h * 0.7909); + c.close(); + c.moveTo(w * 0.3276, h * 0.7639); + c.lineTo(w * 0.3366, h * 0.7684); + c.lineTo(w * 0.3366, h * 0.8173); + c.lineTo(w * 0.3805, h * 0.8406); + c.lineTo(w * 0.3748, h * 0.8473); + c.lineTo(w * 0.3317, h * 0.8248); + c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.3276, h * 0.8158); + c.close(); + c.moveTo(w * 0.435, h * 0.8692); + c.lineTo(w * 0.4325, h * 0.8789); + c.lineTo(w * 0.3959, h * 0.8594); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.3862, h * 0.8466); + c.arcTo(w * 0.0528, h * 0.0489, 0, 0, 1, w * 0.3805, h * 0.806); + c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.3951, h * 0.8008); + c.lineTo(w * 0.435, h * 0.821); + c.lineTo(w * 0.4285, h * 0.827); + c.lineTo(w * 0.4008, h * 0.8127); + c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.3878, h * 0.8196); + c.lineTo(w * 0.4333, h * 0.8443); + c.lineTo(w * 0.426, h * 0.8512); + c.lineTo(w * 0.3878, h * 0.8308); + c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.3976, h * 0.8489); + c.close(); + + c.moveTo(w * 0.6171, h * 0.7932); + c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.6366, h * 0.7963); + c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 1, w * 0.639, h * 0.8188); + c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.6211, h * 0.8497); + c.lineTo(w * 0.5894, h * 0.8677); + c.arcTo(w * 0.0203, h * 0.0188, 0, 0, 1, w * 0.565, h * 0.8646); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.5659, h * 0.8354); + c.arcTo(w * 0.0488, h * 0.0451, 0, 0, 1, w * 0.5805, h * 0.8127); + c.close(); + c.moveTo(w * 0.5886, h * 0.8181); + c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.5748, h * 0.8368); + c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.574, h * 0.8527); + c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.587, h * 0.8586); + c.lineTo(w * 0.6163, h * 0.8428); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.6285, h * 0.8248); + c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.6293, h * 0.8105); + c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 0, w * 0.6163, h * 0.803); + c.close(); + c.moveTo(w * 0.64, h * 0.8398); + c.lineTo(w * 0.64, h * 0.779); + c.lineTo(w * 0.6854, h * 0.7563); + c.arcTo(w * 0.0106, h * 0.0098, 0, 0, 1, w * 0.7008, h * 0.7632); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.6959, h * 0.7865); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.6805, h * 0.8); + c.lineTo(w * 0.6992, h * 0.8097); + c.lineTo(w * 0.6854, h * 0.8166); + c.lineTo(w * 0.6569, h * 0.8015); + c.lineTo(w * 0.6805, h * 0.7887); + c.arcTo(w * 0.0203, h * 0.0188, 0, 0, 0, w * 0.6894, h * 0.7782); + c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 0, w * 0.6894, h * 0.7699); + c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 0, w * 0.6837, h * 0.7684); + c.lineTo(w * 0.6528, h * 0.7842); + c.lineTo(w * 0.6528, h * 0.8331); + c.close(); + c.moveTo(w * 0.7, h * 0.8082); + c.lineTo(w * 0.7301, h * 0.7338); + c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 1, w * 0.7358, h * 0.7271); + c.arcTo(w * 0.0098, h * 0.0091, 0, 0, 1, w * 0.7415, h * 0.7316); + c.lineTo(w * 0.7699, h * 0.7707); + c.lineTo(w * 0.7602, h * 0.7766); + c.lineTo(w * 0.7537, h * 0.7692); + c.lineTo(w * 0.7276, h * 0.782); + c.lineTo(w * 0.7228, h * 0.7736); + c.lineTo(w * 0.748, h * 0.7617); + c.lineTo(w * 0.7358, h * 0.7421); + c.lineTo(w * 0.7114, h * 0.803); + c.close(); + c.moveTo(w * 0.8244, h * 0.7316); + c.lineTo(w * 0.8171, h * 0.7459); + c.lineTo(w * 0.7894, h * 0.7609); + c.arcTo(w * 0.0244, h * 0.0225, 0, 0, 1, w * 0.7683, h * 0.7593); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.7667, h * 0.7338); + c.arcTo(w * 0.0488, h * 0.0452, 0, 0, 1, w * 0.7937, h * 0.697); + c.lineTo(w * 0.822, h * 0.6834); + c.lineTo(w * 0.8171, h * 0.6962); + c.lineTo(w * 0.7902, h * 0.7113); + c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.778, h * 0.7256); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 0, w * 0.7756, h * 0.7444); + c.arcTo(w * 0.0077, h * 0.0072, 0, 0, 0, w * 0.787, h * 0.7512); + c.close(); + c.moveTo(w * 0.8366, h * 0.6742); + c.lineTo(w * 0.8366, h * 0.7248); + c.lineTo(w * 0.878, h * 0.7043); + c.lineTo(w * 0.874, h * 0.7158); + c.lineTo(w * 0.8333, h * 0.7368); + c.arcTo(w * 0.0041, h * 0.0037, 0, 0, 1, w * 0.8268, h * 0.7324); + c.lineTo(w * 0.8268, h * 0.6804); + c.close(); + c.moveTo(w * 0.9342, h * 0.6233); + c.lineTo(w * 0.9293, h * 0.6369); + c.lineTo(w * 0.9033, h * 0.6503); + c.arcTo(w * 0.0325, h * 0.0301, 0, 0, 0, w * 0.8927, h * 0.6601); + c.arcTo(w * 0.0406, h * 0.0376, 0, 0, 0, w * 0.887, h * 0.6729); + c.lineTo(w * 0.9309, h * 0.6503); + c.lineTo(w * 0.9268, h * 0.6631); + c.lineTo(w * 0.887, h * 0.6834); + c.arcTo(w * 0.0089, h * 0.0082, 0, 0, 0, w * 0.8992, h * 0.691); + c.lineTo(w * 0.935, h * 0.6722); + c.lineTo(w * 0.9285, h * 0.6864); + c.lineTo(w * 0.9008, h * 0.7007); + c.arcTo(w * 0.0163, h * 0.0151, 0, 0, 1, w * 0.8829, h * 0.7015); + c.arcTo(w * 0.0407, h * 0.0376, 0, 0, 1, w * 0.8764, h * 0.6827); + c.arcTo(w * 0.065, h * 0.0601, 0, 0, 1, w * 0.8959, h * 0.6443); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.moveTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.267); + c.moveTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.moveTo(w, h * 0.3346); + c.lineTo(w * 0.87, h * 0.267); + c.moveTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.622, h * 0.4023); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dOracleDatabaseServer.prototype.cst.ORACLE_DB_SERVER, mxShapeAws3dOracleDatabaseServer);//zzz + +//********************************************************************************************************************************************************** +//RDS Master +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dRdsMaster(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dRdsMaster, mxShape); + +mxShapeAws3dRdsMaster.prototype.cst = { + RDS_MASTER : 'mxgraph.aws3d.rdsMaster', + SHADIG_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dRdsMaster.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h /133; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dRdsMaster.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dRdsMaster.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRdsMaster.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.close(); + c.moveTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3308); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w, h * 0.3308); + c.lineTo(w, h * 0.7331); + c.close(); + c.fill(); + + c.restore(); + + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setShadow(false); + + c.begin(); + c.moveTo(w * 0.1878, h * 0.1932); + c.lineTo(w * 0.4854, h * 0.0414); + c.lineTo(w * 0.5886, h * 0.094); + c.lineTo(w * 0.4455, h * 0.2308); + c.lineTo(w * 0.7122, h * 0.1579); + c.lineTo(w * 0.8171, h * 0.2098); + c.lineTo(w * 0.5187, h * 0.3617); + c.lineTo(w * 0.4537, h * 0.3293); + c.lineTo(w * 0.7016, h * 0.2053); + c.lineTo(w * 0.3854, h * 0.2947); + c.lineTo(w * 0.3187, h * 0.2602); + c.lineTo(w * 0.4959, h * 0.0992); + c.lineTo(w * 0.2504, h * 0.2256); + c.close(); + c.fill(); + + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.moveTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.267); + c.moveTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.moveTo(w, h * 0.3346); + c.lineTo(w * 0.87, h * 0.267); + c.moveTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.622, h * 0.4023); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dRdsMaster.prototype.cst.RDS_MASTER, mxShapeAws3dRdsMaster); + +//********************************************************************************************************************************************************** +//RDS +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dRds(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dRds, mxShape); + +mxShapeAws3dRds.prototype.cst = { + RDS : 'mxgraph.aws3d.rds', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dRds.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h /133; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dRds.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dRds.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRds.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.close(); + c.moveTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3308); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w, h * 0.3308); + c.lineTo(w, h * 0.7331); + c.close(); + c.fill(); + + c.restore(); + + c.setFillColor('#ffffff'); + c.setShadow(false); + c.begin(); + c.moveTo(0, h * 0.6053); + c.lineTo(w * 0.5, h * 0.8722); + c.lineTo(w, h * 0.6053); + c.lineTo(w, h * 0.6278); + c.lineTo(w * 0.5, h * 0.8947); + c.lineTo(0, h * 0.6278); + c.close(); + c.fill(); + + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.moveTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.267); + c.moveTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.moveTo(w, h * 0.3346); + c.lineTo(w * 0.87, h * 0.267); + c.moveTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.622, h * 0.4023); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dRds.prototype.cst.RDS, mxShapeAws3dRds); + +//********************************************************************************************************************************************************** +//Route 53 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dRoute53(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dRoute53, mxShape); + +mxShapeAws3dRoute53.prototype.cst = { + ROUTE_53 : 'mxgraph.aws3d.route53', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dRoute53.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 117; + var strokeWidth2 = strokeWidth * h /134.4; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dRoute53.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.6994); + c.lineTo(0, h * 0.2009); + c.lineTo(w * 0.0427, h * 0.0781); + c.lineTo(w * 0.7974, 0); + c.lineTo(w, h * 0.1004); + c.lineTo(w, h * 0.5915); + c.lineTo(w * 0.8376, h * 0.9784); + c.lineTo(w * 0.5983, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dRoute53.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRoute53.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.2009); + c.lineTo(w * 0.6009, h * 0.5007); + c.lineTo(w * 0.8376, h * 0.4799); + c.lineTo(w * 0.8376, h * 0.9784); + c.lineTo(w * 0.5966, h); + c.lineTo(0, h * 0.6979); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.8348, h * 0.4861); + c.lineTo(w * 0.9985, h * 0.0992); + c.lineTo(w, h * 0.5952); + c.lineTo(w * 0.8404, h * 0.9747); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + + c.begin(); + c.moveTo(w * 0.5855, h * 0.1079); + c.arcTo(w * 0.094, h * 0.0744, 0, 0, 0, w * 0.6863, h * 0.1548); + c.arcTo(w * 0.0855, h * 0.0446, 0, 0, 0, w * 0.7761, h * 0.2031); + c.lineTo(w * 0.7726, h * 0.2455); + c.arcTo(w * 0.0769, h * 0.0298, 0, 0, 0, w * 0.694, h * 0.2693); + c.arcTo(w * 0.0684, h * 0.0446, 0, 0, 1, w * 0.5897, h * 0.3051); + c.arcTo(w * 0.4274, h * 0.372, 0, 0, 0, w * 0.4573, h * 0.2753); + c.arcTo(w * 0.0855, h * 0.0744, 0, 0, 0, w * 0.4188, h * 0.2344); + c.lineTo(w * 0.3846, h * 0.2083); + c.arcTo(w * 0.0769, h * 0.0372, 0, 0, 1, w * 0.4103, h * 0.1525); + c.arcTo(w * 0.0855, h * 0.0409, 0, 0, 0, w * 0.4906, h * 0.1079); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(0, h * 0.2009); + c.lineTo(w * 0.6009, h * 0.5007); + c.lineTo(w * 0.8376, h * 0.4799); + c.lineTo(w * 0.8376, h * 0.9784); + c.lineTo(w * 0.5966, h); + c.lineTo(0, h * 0.6979); + c.close(); + c.moveTo(w * 0.8348, h * 0.4861); + c.lineTo(w * 0.9985, h * 0.0992); + c.lineTo(w, h * 0.5952); + c.lineTo(w * 0.8404, h * 0.9747); + c.close(); + c.moveTo(w * 0.6009, h * 0.5007); + c.lineTo(w * 0.6009, h); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(0, h * 0.6994); + c.lineTo(0, h * 0.2009); + c.lineTo(w * 0.0427, h * 0.0781); + c.lineTo(w * 0.7974, 0); + c.lineTo(w, h * 0.1004); + c.lineTo(w, h * 0.5915); + c.lineTo(w * 0.8376, h * 0.9784); + c.lineTo(w * 0.5983, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dRoute53.prototype.cst.ROUTE_53, mxShapeAws3dRoute53); + +//********************************************************************************************************************************************************** +//S3 Bucket +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dS3Bucket(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dS3Bucket, mxShape); + +mxShapeAws3dS3Bucket.prototype.cst = { + S3_BUCKET : 'mxgraph.aws3d.s3Bucket', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dS3Bucket.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 61.5; + var strokeWidth2 = strokeWidth * h / 63.8; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) + { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.2774); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.2774); + c.lineTo(w * 0.7967, h * 0.8307); + c.lineTo(w * 0.5, h); + c.lineTo(w * 0.1951, h * 0.8307); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dS3Bucket.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.2774); + c.lineTo(w * 0.5, h * 0.5564); + c.lineTo(w * 0.5, h); + c.lineTo(w * 0.1984, h * 0.8307); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h * 0.5533); + c.lineTo(w, h * 0.2774); + c.lineTo(w * 0.7967, h * 0.8307); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + c.restore(); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.2774); + c.lineTo(w * 0.5, h * 0.5564); + c.lineTo(w, h * 0.2774); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.5, h * 0.5564); + c.lineTo(w * 0.5, h); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.2774); + c.lineTo(w * 0.5008, 0); + c.lineTo(w, h * 0.2774); + c.lineTo(w * 0.7967, h * 0.8307); + c.lineTo(w * 0.5008, h); + c.lineTo(w * 0.1951, h * 0.8307); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dS3Bucket.prototype.cst.S3_BUCKET, mxShapeAws3dS3Bucket); + +//********************************************************************************************************************************************************** +//S3 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dS3(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dS3, mxShape); + +mxShapeAws3dS3.prototype.cst = { + S3 : 'mxgraph.aws3d.s3', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dS3.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 231.5; + var strokeWidth2 = strokeWidth * h / 239; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dS3.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7782); + c.lineTo(0, h * 0.3406); + c.lineTo(w * 0.5974, 0); + c.lineTo(w, h * 0.2218); + c.lineTo(w, h * 0.6674); + c.lineTo(w * 0.3991, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dS3.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dS3.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.3406); + c.lineTo(w * 0.3991, h * 0.5548); + c.lineTo(w * 0.3991, h); + c.lineTo(0, h * 0.7782); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.3991, h * 0.5548); + c.lineTo(w, h * 0.2218); + c.lineTo(w, h * 0.6661); + c.lineTo(w * 0.3991, h); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.3406); + c.lineTo(w * 0.3991, h * 0.5548); + c.lineTo(w, h * 0.2218); + c.moveTo(w * 0.3991, h * 0.5548); + c.lineTo(w * 0.3991, h); + c.moveTo(w * 0.3991, h * 0.3335); + c.lineTo(w * 0.2009, h * 0.448); + c.lineTo(w * 0.2009, h * 0.8891); + c.moveTo(w * 0.5983, h * 0.2209); + c.lineTo(w * 0.7948, h * 0.1109); + c.moveTo(w * 0.2022, h * 0.2218); + c.lineTo(w * 0.5991, h * 0.4448); + c.lineTo(w * 0.5991, h * 0.8891); + c.moveTo(w * 0.4004, h * 0.1117); + c.lineTo(w * 0.7978, h * 0.3335); + c.lineTo(w * 0.7978, h * 0.7791); + c.stroke(); + + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.4773, h * 0.2155); + c.arcTo(w * 0.0086, h * 0.0046, 0, 0, 1, w * 0.4903, h * 0.2096); + c.arcTo(w * 0.2808, h * 0.272, 0, 0, 1, w * 0.6004, h * 0.2619); + c.arcTo(w * 0.108, h * 0.105, 0, 0, 1, w * 0.6177, h * 0.277); + c.arcTo(w * 0.0065, h * 0.0063, 0, 0, 1, w * 0.6099, h * 0.2879); + c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.5378, h * 0.2607); + c.arcTo(w * 0.216, h * 0.2092, 0, 0, 1, w * 0.4773, h * 0.2155); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(w * 0.4687, h * 0.2138); + c.arcTo(w * 0.1512, h * 0.1464, 0, 0, 0, w * 0.4838, h * 0.2343); + c.arcTo(w * 0.2376, h * 0.2301, 0, 0, 0, w * 0.5529, h * 0.2774); + c.arcTo(w * 0.1728, h * 0.1674, 0, 0, 0, w * 0.6091, h * 0.2954); + c.lineTo(w * 0.4946, h * 0.3339); + c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.4549, h * 0.3205); + c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.419, h * 0.3004); + c.arcTo(w * 0.1944, h * 0.1883, 0, 0, 1, w * 0.3965, h * 0.2795); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7782); + c.lineTo(0, h * 0.3406); + c.lineTo(w * 0.5974, 0); + c.lineTo(w, h * 0.2218); + c.lineTo(w, h * 0.6674); + c.lineTo(w * 0.3991, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dS3.prototype.cst.S3, mxShapeAws3dS3); + +//********************************************************************************************************************************************************** +//SimpleDB +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dSimpleDB(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dSimpleDB, mxShape); + +mxShapeAws3dSimpleDB.prototype.cst = { + SIMPLE_DB : 'mxgraph.aws3d.simpleDb', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dSimpleDB.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h /133; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dSimpleDB.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dSimpleDB.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSimpleDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.close(); + c.moveTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3308); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w, h * 0.3308); + c.lineTo(w, h * 0.7331); + c.close(); + c.fill(); + + c.restore(); + + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setShadow(false); + + c.begin(); + c.moveTo(w * 0.1821, h * 0.182); + c.lineTo(w * 0.4659, h * 0.0308); + c.lineTo(w * 0.822, h * 0.2218); + c.lineTo(w * 0.539, h * 0.3714); + c.close(); + c.fill(); + + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.moveTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.267); + c.moveTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.moveTo(w, h * 0.3346); + c.lineTo(w * 0.87, h * 0.267); + c.moveTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.622, h * 0.4023); + c.stroke(); + + c.restore(); + c.setShadow(false); + var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff'); + c.setStrokeColor(fillColor); + c.setStrokeWidth(2.2 * strokeWidth); + c.begin(); + c.moveTo(w * 0.2382, h * 0.2218); + c.lineTo(w * 0.5415, h * 0.0602); + + c.moveTo(w * 0.3821, h * 0.0564); + c.lineTo(w * 0.7737, h * 0.2656); + + c.moveTo(w * 0.2967, h * 0.0915); + c.lineTo(w * 0.7114, h * 0.312); + + c.moveTo(w * 0.2209, h * 0.1316); + c.lineTo(w * 0.6179, h * 0.3434); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dSimpleDB.prototype.cst.SIMPLE_DB, mxShapeAws3dSimpleDB); + +//********************************************************************************************************************************************************** +//SQS +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dSqs(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dSqs, mxShape); + +mxShapeAws3dSqs.prototype.cst = { + SQS : 'mxgraph.aws3d.sqs', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dSqs.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 184; + var strokeWidth2 = strokeWidth * h / 212.75; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dSqs.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7485); + c.lineTo(0, h * 0.584); + c.lineTo(w * 0.1658, h * 0.1666); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.8337, h * 0.1666); + c.lineTo(w, h * 0.584); + c.lineTo(w, h * 0.7485); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dSqs.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSqs.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(w * 0.1658, h * 0.1671); + c.lineTo(w * 0.5, h * 0.334); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7485); + c.lineTo(0, h * 0.584); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h * 0.3344); + c.lineTo(w * 0.8332, h * 0.1671); + c.lineTo(w, h * 0.584); + c.lineTo(w, h * 0.7509); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.6674, h * 0.0844); + c.lineTo(w * 0.3337, h * 0.2512); + c.lineTo(w * 0.25, h * 0.7109); + c.lineTo(w * 0.25, h * 0.8736); + + c.moveTo(w * 0.3326, h * 0.0839); + c.lineTo(w * 0.6674, h * 0.2512); + c.lineTo(w * 0.75, h * 0.7053); + c.lineTo(w * 0.75, h * 0.874); + + c.moveTo(0, h * 0.584); + c.lineTo(w * 0.5, h * 0.8331); + c.lineTo(w, h * 0.584); + + c.moveTo(w * 0.1658, h * 0.1671); + c.lineTo(w * 0.5, h * 0.334); + c.lineTo(w * 0.8332, h * 0.1671); + + c.moveTo(w * 0.5, h * 0.334); + c.lineTo(w * 0.5, h); + c.stroke(); + + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.3337, h * 0.1511); + c.lineTo(w * 0.4668, h * 0.0848); + c.lineTo(w * 0.6663, h * 0.184); + c.lineTo(w * 0.5337, h * 0.2503); + c.close(); + c.fill(); + + var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#000000'); + c.setFillColor(fillColor); + + c.begin(); + c.moveTo(w * 0.3902, h * 0.153); + c.lineTo(w * 0.4701, h * 0.113); + c.lineTo(w * 0.4701, h * 0.153); + c.close(); + c.moveTo(w * 0.4402, h * 0.1784); + c.lineTo(w * 0.5196, h * 0.1384); + c.lineTo(w * 0.5196, h * 0.1784); + c.close(); + c.moveTo(w * 0.4908, h * 0.2033); + c.lineTo(w * 0.5701, h * 0.1633); + c.lineTo(w * 0.5701, h * 0.2033); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7485); + c.lineTo(0, h * 0.584); + c.lineTo(w * 0.1658, h * 0.1666); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.8337, h * 0.1666); + c.lineTo(w, h * 0.584); + c.lineTo(w, h * 0.7485); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dSqs.prototype.cst.SQS, mxShapeAws3dSqs); + +//********************************************************************************************************************************************************** +//VPC Gateway +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dVpcGateway(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dVpcGateway, mxShape); + +mxShapeAws3dVpcGateway.prototype.cst = { + VPC_GATEWAY : 'mxgraph.aws3d.vpcGateway', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dVpcGateway.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 116.7; + var strokeWidth2 = strokeWidth * h / 102.8; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dVpcGateway.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.5801, h * 0.5447); + c.lineTo(w * 0.5801, h * 0.035); + c.lineTo(w * 0.1054, 0); + c.lineTo(0, h * 0.0691); + c.lineTo(0, h * 0.4134); + c.lineTo(w * 0.3188, h * 0.7247); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.save(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dVpcGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5801, h * 0.5447); + c.lineTo(w * 0.5801, h * 0.035); + c.lineTo(w * 0.3162, h * 0.2072); + c.lineTo(w * 0.3162, h * 0.7247); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.3162, h * 0.2072); + c.lineTo(0, h * 0.0691); + c.lineTo(0, h * 0.4134); + c.lineTo(w * 0.3162, h * 0.7247); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.5801, h * 0.5447); + c.lineTo(w * 0.5801, h * 0.035); + c.lineTo(w * 0.3162, h * 0.2072); + c.lineTo(w * 0.3162, h * 0.7247); + c.close(); + c.stroke(); + + c.restore(); + c.setLineJoin('round'); + c.setShadow(false); + + c.begin(); + c.moveTo(w * 0.3162, h * 0.2072); + c.lineTo(0, h * 0.0691); + c.lineTo(0, h * 0.4134); + c.lineTo(w * 0.3162, h * 0.7247); + c.close(); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(w * 0.5801, h * 0.5447); + c.lineTo(w * 0.5801, h * 0.035); + c.lineTo(w * 0.1054, 0); + c.lineTo(0, h * 0.0691); + c.lineTo(0, h * 0.4134); + c.lineTo(w * 0.3188, h * 0.7247); + c.close(); + c.stroke(); + + c.restore(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w, h * 0.929); + c.lineTo(w, h * 0.5866); + c.lineTo(w * 0.6829, h * 0.1031); + c.lineTo(w * 0.4216, h * 0.2753); + c.lineTo(w * 0.4216, h * 0.7928); + c.lineTo(w * 0.8946, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dVpcGateway.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setShadow(false); + c.setLineJoin('round'); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dVpcGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + + c.begin(); + c.moveTo(w, h * 0.929); + c.lineTo(w, h * 0.5866); + c.lineTo(w * 0.8946, h * 0.6537); + c.lineTo(w * 0.8946, h); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.8946, h); + c.lineTo(w * 0.8946, h * 0.6537); + c.lineTo(w * 0.4216, h * 0.2753); + c.lineTo(w * 0.4216, h * 0.7928); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w, h * 0.929); + c.lineTo(w, h * 0.5866); + c.lineTo(w * 0.8946, h * 0.6537); + c.lineTo(w * 0.8946, h); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.8946, h); + c.lineTo(w * 0.8946, h * 0.6537); + c.lineTo(w * 0.4216, h * 0.2753); + c.lineTo(w * 0.4216, h * 0.7928); + c.close(); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w, h * 0.929); + c.lineTo(w, h * 0.5866); + c.lineTo(w * 0.6829, h * 0.1031); + c.lineTo(w * 0.4216, h * 0.2753); + c.lineTo(w * 0.4216, h * 0.7928); + c.lineTo(w * 0.8946, h); + c.close(); + c.stroke(); + + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.5587, h * 0.7743); + c.lineTo(w * 0.5587, h * 0.6274); + c.lineTo(w * 0.5775, h * 0.6342); + c.lineTo(w * 0.5775, h * 0.57); + c.arcTo(w * 0.0428, h * 0.0486, 0, 0, 1, w * 0.6058, h * 0.5253); + c.arcTo(w * 0.0686, h * 0.0778, 0, 0, 1, w * 0.6564, h * 0.5447); + c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.6847, h * 0.607); + c.lineTo(w * 0.6847, h * 0.6877); + c.lineTo(w * 0.7001, h * 0.6946); + c.lineTo(w * 0.7001, h * 0.8405); + c.close(); + c.moveTo(w * 0.6564, h * 0.6741); + c.lineTo(w * 0.6564, h * 0.6177); + c.arcTo(w * 0.06, h * 0.0681, 0, 0, 0, w * 0.6392, h * 0.57); + c.arcTo(w * 0.0343, h * 0.0389, 0, 0, 0, w * 0.6195, h * 0.5574); + c.arcTo(w * 0.0111, h * 0.0126, 0, 0, 0, w * 0.6058, h * 0.5691); + c.lineTo(w * 0.6058, h * 0.6498); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dVpcGateway.prototype.cst.VPC_GATEWAY, mxShapeAws3dVpcGateway); + +//********************************************************************************************************************************************************** +//Web Server +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dWebServer(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dWebServer, mxShape); + +mxShapeAws3dWebServer.prototype.cst = { + WEB_SERVER : 'mxgraph.aws3d.webServer', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dWebServer.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h / 106; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dWebServer.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.6651); + c.lineTo(0, h * 0.3349); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3349); + c.lineTo(w, h * 0.6651); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dWebServer.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWebServer.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.3349); + c.lineTo(w * 0.5, h * 0.6651); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.6651); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h * 0.6651); + c.lineTo(w, h * 0.3349); + c.lineTo(w, h * 0.6651); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.3349); + c.lineTo(w * 0.5, h * 0.6651); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.6651); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.5, h * 0.6651); + c.lineTo(w, h * 0.3349); + c.lineTo(w, h * 0.6651); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.374, h * 0.5189); + c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.374, h * 0.4858); + c.lineTo(w * 0.4797, h * 0.4151); + c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.5203, h * 0.4151); + c.lineTo(w * 0.626, h * 0.4858); + c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.626, h * 0.516); + c.lineTo(w * 0.5203, h * 0.5868); + c.arcTo(w * 0.0325, h * 0.0236, 0, 0, 1, w * 0.4797, h * 0.5868); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.6651); + c.lineTo(0, h * 0.3349); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3349); + c.lineTo(w, h * 0.6651); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dWebServer.prototype.cst.WEB_SERVER, mxShapeAws3dWebServer); + +//********************************************************************************************************************************************************** +//DynamoDB +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dDynamoDB(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dDynamoDB, mxShape); + +mxShapeAws3dDynamoDB.prototype.cst = { + DYNAMO_DB : 'mxgraph.aws3d.dynamoDb', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dDynamoDB.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 181.5; + var strokeWidth2 = strokeWidth * h / 210; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dDynamoDB.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.8333); + c.lineTo(0, h * 0.1667); + c.lineTo(w * 0.3333, h * 0.0014); + c.lineTo(w * 0.4986, h * 0.1667); + c.lineTo(w * 0.6639, 0); + c.lineTo(w, h * 0.169); + c.lineTo(w, h * 0.8333); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5014, h * 0.9162); + c.lineTo(w * 0.3333, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dDynamoDB.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDynamoDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(w * 0.168, h * 0.3333); + c.lineTo(0, h * 0.3333); + c.lineTo(w * 0.3333, h * 0.5); + c.lineTo(w * 0.3333, h); + c.lineTo(0, h * 0.8333); + c.lineTo(0, h * 0.1714); + c.close(); + c.moveTo(w * 0.4986, h * 0.1667); + c.lineTo(w * 0.6667, 0); + c.lineTo(w, h * 0.169); + c.lineTo(w * 0.832, h * 0.3348);// + c.lineTo(w, h * 0.3333); + c.lineTo(w * 0.6667, h * 0.5); + c.lineTo(w * 0.5014, h * 0.5); + c.lineTo(w * 0.832, h * 0.3348); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.3333, h * 0.5); + c.lineTo(w * 0.4986, h * 0.5); + c.lineTo(w * 0.4986, h * 0.9162); + c.lineTo(w * 0.3333, h); + c.close(); + c.moveTo(w * 0.6667, h); + c.lineTo(w * 0.6667, h * 0.5); + c.lineTo(w, h * 0.3333); + c.lineTo(w * 0.832, h * 0.3348); + c.lineTo(w, h * 0.169); + c.lineTo(w, h * 0.831); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.168, h * 0.3333); + c.lineTo(0, h * 0.3333); + c.lineTo(w * 0.3333, h * 0.5); + c.lineTo(w * 0.3333, h); + c.lineTo(0, h * 0.8333); + c.lineTo(0, h * 0.1714); + c.close(); + c.moveTo(w * 0.4986, h * 0.1667); + c.lineTo(w * 0.6667, 0); + c.lineTo(w, h * 0.169); + c.lineTo(w * 0.832, h * 0.3348); + c.lineTo(w, h * 0.3333); + c.lineTo(w * 0.6667, h * 0.5); + c.lineTo(w * 0.5014, h * 0.5); + c.lineTo(w * 0.832, h * 0.3348); + c.close(); + c.moveTo(w * 0.3333, h * 0.5); + c.lineTo(w * 0.4986, h * 0.5); + c.lineTo(w * 0.4986, h * 0.9162); + c.lineTo(w * 0.3333, h); + c.close(); + c.moveTo(w * 0.6667, h); + c.lineTo(w * 0.6667, h * 0.5); + c.lineTo(w, h * 0.3333); + c.lineTo(w, h * 0.831); + c.close(); + c.moveTo(w * 0.168, h * 0.3333); + c.lineTo(w * 0.5, h * 0.1667); + c.moveTo(w * 0.168, h * 0.3333); + c.lineTo(w * 0.5014, h * 0.5); + c.stroke(); + + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.4876, h * 0.2262); + c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.5647, h * 0.25); + c.arcTo(w * 0.4407, h * 0.381, 0, 0, 1, w * 0.6419, h * 0.2905); + c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.6799, h * 0.32); + c.arcTo(w * 0.0132, h * 0.0076, 0, 0, 1, w * 0.6634, h * 0.3314); + c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.5978, h * 0.3119); + c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.508, h * 0.2667); + c.arcTo(w * 0.303, h * 0.2619, 0, 0, 1, w * 0.4711, h * 0.2343); + c.arcTo(w * 0.0132, h * 0.0076, 0, 0, 1, w * 0.4876, h * 0.2262); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(w * 0.5124, h * 0.4143); + c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 1, w * 0.4683, h * 0.4095); + c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.3829, h * 0.3757); + c.arcTo(w * 0.4408, h * 0.381, 0, 0, 1, w * 0.3196, h * 0.3371); + c.arcTo(w * 0.0661, h * 0.0357, 0, 0, 1, w * 0.3058, h * 0.3081); + c.lineTo(w * 0.4612, h * 0.2333); + c.arcTo(w * 0.0661, h * 0.0476, 0, 0, 0, w * 0.4744, h * 0.2548); + c.arcTo(w * 0.3306, h * 0.2857, 0, 0, 0, w * 0.53, h * 0.2905); + c.arcTo(w * 0.4408, h * 0.381, 0, 0, 0, w * 0.6198, h * 0.3295); + c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.665, h * 0.3367); + c.close(); + c.moveTo(w * 0.5052, h * 0.3714); + c.arcTo(w * 0.0275, h * 0.019, 0, 0, 1, w * 0.5135, h * 0.3581); + c.arcTo(w * 0.0275, h * 0.0238, 0, 0, 1, w * 0.5344, h * 0.3571); + c.lineTo(w * 0.5405, h * 0.3471); + c.arcTo(w * 0.0275, h * 0.0143, 0, 0, 1, w * 0.5278, h * 0.3381); + c.arcTo(w * 0.022, h * 0.0119, 0, 0, 1, w * 0.5372, h * 0.3271); + c.lineTo(w * 0.5306, h * 0.3186); + c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.5041, h * 0.3143); + c.arcTo(w * 0.0275, h * 0.0143, 0, 0, 1, w * 0.4975, h * 0.3029); + c.lineTo(w * 0.4777, h * 0.2995); + c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4628, h * 0.3033); + c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4408, h * 0.2967); + c.lineTo(w * 0.4187, h * 0.3); + c.arcTo(w * 0.011, h * 0.0081, 0, 0, 1, w * 0.4132, h * 0.3124); + c.arcTo(w * 0.0386, h * 0.0333, 0, 0, 1, w * 0.395, h * 0.3129); + c.lineTo(w * 0.3873, h * 0.3224); + c.arcTo(w * 0.0165, h * 0.0143, 0, 0, 1, w * 0.3994, h * 0.3333); + c.arcTo(w * 0.0138, h * 0.0119, 0, 0, 1, w * 0.3901, h * 0.3433); + c.lineTo(w * 0.3994, h * 0.3514); + c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4215, h * 0.3548); + c.arcTo(w * 0.0165, h * 0.0119, 0, 0, 1, w * 0.4298, h * 0.3667); + c.lineTo(w * 0.449, h * 0.3714); + c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4711, h * 0.3657); + c.arcTo(w * 0.0331, h * 0.0286, 0, 0, 1, w * 0.4887, h * 0.3724); + c.close(); + c.moveTo(w * 0.4986, h * 0.351); + c.arcTo(w * 0.0441, h * 0.0381, 0, 0, 1, w * 0.4804, h * 0.3552); + c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 1, w * 0.443, h * 0.349); + c.lineTo(w * 0.4413, h * 0.3529); + c.lineTo(w * 0.4242, h * 0.3371); + c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4545, h * 0.3462); + c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4793, h * 0.3476); + c.arcTo(w * 0.0441, h * 0.0381, 0, 0, 0, w * 0.4986, h * 0.3448); + c.close(); + c.moveTo(w * 0.503, h * 0.3349); + c.arcTo(w * 0.1102, h * 0.0952, 0, 0, 0, w * 0.4766, h * 0.3233); + c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 0, w * 0.4529, h * 0.32); + c.arcTo(w * 0.0551, h * 0.0476, 0, 0, 0, w * 0.4325, h * 0.3238); + c.lineTo(w * 0.427, h * 0.3195); + c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 1, w * 0.4556, h * 0.3157); + c.arcTo(w * 0.0826, h * 0.0714, 0, 0, 1, w * 0.4851, h * 0.3232); + c.lineTo(w * 0.4876, h * 0.3181); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.8333); + c.lineTo(0, h * 0.1667); + c.lineTo(w * 0.3333, h * 0.0014); + c.lineTo(w * 0.4986, h * 0.1667); + c.lineTo(w * 0.6639, 0); + c.lineTo(w, h * 0.169); + c.lineTo(w, h * 0.8333); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5014, h * 0.9162); + c.lineTo(w * 0.3333, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dDynamoDB.prototype.cst.DYNAMO_DB, mxShapeAws3dDynamoDB); + +//********************************************************************************************************************************************************** +//Elastic MapReduce +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dElasticMapReduce(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dElasticMapReduce, mxShape); + +mxShapeAws3dElasticMapReduce.prototype.cst = { + ELASTIC_MAP_REDUCE : 'mxgraph.aws3d.elasticMapReduce', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dElasticMapReduce.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h /133; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dElasticMapReduce.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dElasticMapReduce.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDynamoDB.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.close(); + c.moveTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3308); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w, h * 0.3308); + c.lineTo(w, h * 0.7331); + c.close(); + c.fill(); + + c.restore(); + + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setShadow(false); + + c.begin(); + c.moveTo(w * 0.3336, h * 0.1789); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.359, h * 0.1789); + c.lineTo(w * 0.4001, h * 0.2015); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4008, h * 0.2135); + c.lineTo(w * 0.3574, h * 0.2368); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.3352, h * 0.2368); + c.lineTo(w * 0.2934, h * 0.2143); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.2934, h * 0.2015); + c.close(); + c.moveTo(w * 0.3705, h * 0.1729); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.3705, h * 0.1602); + c.lineTo(w * 0.4139, h * 0.1368); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4336, h * 0.1368); + c.lineTo(w * 0.4811, h * 0.1617); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4811, h * 0.1708); + c.lineTo(w * 0.4328, h * 0.1955); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4156, h * 0.1955); + c.close(); + c.moveTo(w * 0.4467, h * 0.1308); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.4467, h * 0.1203); + c.lineTo(w * 0.491, h * 0.0962); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5123, h * 0.0962); + c.lineTo(w * 0.559, h * 0.1203); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.559, h * 0.1293); + c.lineTo(w * 0.5123, h * 0.1549); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4918, h * 0.1549); + c.close(); + c.moveTo(w * 0.568, h * 0.1383); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5918, h * 0.1383); + c.lineTo(w * 0.6361, h * 0.1624); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6366, h * 0.1714); + c.lineTo(w * 0.5885, h * 0.1955); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.568, h * 0.1955); + c.lineTo(w * 0.523, h * 0.1714); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.523, h * 0.1616); + c.close(); + c.moveTo(w * 0.6451, h * 0.1789); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.6697, h * 0.1789); + c.lineTo(w * 0.7123, h * 0.2023); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.7123, h * 0.2128); + c.lineTo(w * 0.6664, h * 0.2376); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.6492, h * 0.2376); + c.lineTo(w * 0.6016, h * 0.2135); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6016, h * 0.2023); + c.close(); + c.moveTo(w * 0.6369, h * 0.2451); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.6369, h * 0.2526); + c.lineTo(w * 0.5172, h * 0.3173); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.4893, h * 0.3173); + c.lineTo(w * 0.3697, h * 0.2541); + c.arcTo(w * 0.0074, h * 0.0068, 0, 0, 1, w * 0.3697, h * 0.2436); + c.lineTo(w * 0.4918, h * 0.1782); + c.arcTo(w * 0.0328, h * 0.0301, 0, 0, 1, w * 0.5131, h * 0.1782); + c.close(); + c.fill(); + + c.moveTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.arcTo(w * 0., h * 0., 0, 0, 1, w * 0., h * 0.); + + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.moveTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.267); + c.moveTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.moveTo(w, h * 0.3346); + c.lineTo(w * 0.87, h * 0.267); + c.moveTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.622, h * 0.4023); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dElasticMapReduce.prototype.cst.ELASTIC_MAP_REDUCE, mxShapeAws3dElasticMapReduce); + +//********************************************************************************************************************************************************** +//RDS Slave +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dRdsSlave(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dRdsSlave, mxShape); + +mxShapeAws3dRdsSlave.prototype.cst = { + RDS_SLAVE : 'mxgraph.aws3d.rdsSlave' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dRdsSlave.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h /133; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dRdsSlave.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dRdsSlave.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + c.setAlpha('0.1'); + + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.close(); + c.moveTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3308); + c.fill(); + + c.setAlpha('0.3'); + c.begin(); + c.moveTo(w * 0.5, h); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w, h * 0.3308); + c.lineTo(w, h * 0.7331); + c.close(); + c.fill(); + + c.restore(); + + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setShadow(false); + + c.begin(); + c.moveTo(w * 0.2457, h * 0.2137); + c.lineTo(w * 0.5393, h * 0.0593); + c.lineTo(w * 0.6875, h * 0.1377); + c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 1, w * 0.7137, h * 0.1625); + c.arcTo(w * 0.0348, h * 0.032, 0, 0, 1, w * 0.7076, h * 0.1968); + c.arcTo(w * 0.1743, h * 0.1599, 0, 0, 1, w * 0.6597, h * 0.2249); + c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 1, w * 0.5943, h * 0.232); + c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 1, w * 0.5542, h * 0.2225); + c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 1, w * 0.5673, h * 0.2353); + c.arcTo(w * 0.0261, h * 0.024, 0, 0, 1, w * 0.5611, h * 0.2729); + c.lineTo(w * 0.4889, h * 0.316); + c.arcTo(w * 0.0261, h * 0.024, 0, 0, 0, w * 0.4766, h * 0.3352); + c.lineTo(w * 0.4052, h * 0.2992); + c.arcTo(w * 0.0173, h * 0.0159, 0, 0, 1, w * 0.4121, h * 0.2841); + c.lineTo(w * 0.4914, h * 0.2368); + c.arcTo(w * 0.0218, h * 0.02, 0, 0, 0, w * 0.4897, h * 0.2129); + c.lineTo(w * 0.4409, h * 0.1857); + c.lineTo(w * 0.3145, h * 0.2529); + c.close(); + c.moveTo(w * 0.4801, h * 0.1633); + c.lineTo(w * 0.5263, h * 0.1865); + c.arcTo(w * 0.0871, h * 0.0799, 0, 0, 0, w * 0.583, h * 0.1905); + c.arcTo(w * 0.1307, h * 0.1199, 0, 0, 0, w * 0.6196, h * 0.1721); + c.arcTo(w * 0.0261, h * 0.024, 0, 0, 0, w * 0.6117, h * 0.1441); + c.lineTo(w * 0.5655, h * 0.1193); + c.fill(); + + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.126, h * 0.267); + c.lineTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.622, h * 0.4023); + c.lineTo(w * 0.874, h * 0.267); + c.lineTo(w * 0.874, h * 0.1316); + c.moveTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.267); + c.moveTo(w * 0.5, h * 0.6015); + c.lineTo(w * 0.5, h); + c.moveTo(w, h * 0.3346); + c.lineTo(w * 0.87, h * 0.267); + c.moveTo(w * 0.378, h * 0.4023); + c.lineTo(w * 0.622, h * 0.4023); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(0, h * 0.7331); + c.lineTo(0, h * 0.3346); + c.lineTo(w * 0.126, h * 0.1316); + c.lineTo(w * 0.374, 0); + c.lineTo(w * 0.626, 0); + c.lineTo(w * 0.874, h * 0.1316); + c.lineTo(w, h * 0.3346); + c.lineTo(w, h * 0.7331); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dRdsSlave.prototype.cst.RDS_SLAVE, mxShapeAws3dRdsSlave); + +//********************************************************************************************************************************************************** +//AMI +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dAMI2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dAMI2, mxShape); + +mxShapeAws3dAMI2.prototype.cst = { + AMI_2 : 'mxgraph.aws3d.ami2', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dAMI2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + var strokeWidth1 = strokeWidth * w / 92; + var strokeWidth2 = strokeWidth * h / 60; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + c.setStrokeWidth(strokeWidth); + c.setShadow(false); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) + { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0865, h * 0.284); + c.lineTo(w * 0.4203, 0); + c.lineTo(w * 0.5865, 0); + c.lineTo(w * 0.919, h * 0.286); + c.lineTo(w, h * 0.566); + c.lineTo(w * 0.5027, h); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dAMI2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.566); + c.lineTo(w * 0.0892, h * 0.282); + c.lineTo(w * 0.0878, h * 0.426); + c.lineTo(w * 0.4216, h * 0.712); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.5027, h); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.9176, h * 0.43); + c.lineTo(w, h * 0.566); + c.close(); + c.fill(); + + c.restore(); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.566); + c.lineTo(w * 0.0892, h * 0.282); + c.lineTo(w * 0.0878, h * 0.426); + c.lineTo(w * 0.4216, h * 0.712); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.5027, h); + c.close(); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.9176, h * 0.43); + c.lineTo(w, h * 0.566); + c.close(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0892, h * 0.422); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.4189, h * 0.708); + c.moveTo(w * 0.9176, h * 0.43); + c.lineTo(w * 0.9176, h * 0.29); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.2095, h * 0.376); + c.lineTo(w * 0.527, h * 0.104); + c.lineTo(w * 0.6338, h * 0.194); + c.lineTo(w * 0.3149, h * 0.468); + c.close(); + c.moveTo(w * 0.3716, h * 0.518); + c.lineTo(w * 0.6892, h * 0.246); + c.lineTo(w * 0.796, h * 0.336); + c.lineTo(w * 0.477, h * 0.61); + c.close(); + c.moveTo(w * 0.3108, h * 0.282); + c.lineTo(w * 0.4257, h * 0.38); + c.moveTo(w * 0.4189, h * 0.194); + c.lineTo(w * 0.5297, h * 0.288); + c.moveTo(w * 0.5838, h * 0.338); + c.lineTo(w * 0.6892, h * 0.426); + c.moveTo(w * 0.4757, h * 0.426); + c.lineTo(w * 0.5838, h * 0.518); + c.stroke(); + + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0865, h * 0.284); + c.lineTo(w * 0.4203, 0); + c.lineTo(w * 0.5865, 0); + c.lineTo(w * 0.919, h * 0.286); + c.lineTo(w, h * 0.566); + c.lineTo(w * 0.5027, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dAMI2.prototype.cst.AMI_2, mxShapeAws3dAMI2); + +//********************************************************************************************************************************************************** +//EBS +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dEbs(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dEbs, mxShape); + +mxShapeAws3dEbs.prototype.cst = { + EBS : 'mxgraph.aws3d.ebs', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dEbs.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 92; + var strokeWidth2 = strokeWidth * h / 60; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + c.setStrokeWidth(strokeWidth); + c.setShadow(false); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if(isShadow == 1) + { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.5276); + c.lineTo(0, h * 0.4188); + c.lineTo(w * 0.071, h * 0.2898); + c.lineTo(w * 0.4033, 0); + c.lineTo(w * 0.9301, h * 0.464); + c.lineTo(w, h * 0.5863); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.setFillColor('#000000'); + + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEbs.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(w * 0.071, h * 0.2948); + c.lineTo(w * 0.6011, h * 0.7621); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.lineTo(0, h * 0.5276); + c.lineTo(0, h * 0.4137); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.6011, h * 0.7655); + c.lineTo(w * 0.9344, h * 0.4724); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.close(); + c.fill(); + + c.restore(); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.071, h * 0.2948); + c.lineTo(w * 0.6011, h * 0.7621); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.lineTo(0, h * 0.5276); + c.lineTo(0, h * 0.4137); + c.close(); + c.moveTo(w * 0.6011, h * 0.7655); + c.lineTo(w * 0.9344, h * 0.4724); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.close(); + c.moveTo(w * 0.0033, h * 0.5276); + c.lineTo(w * 0.071, h * 0.2898); + c.moveTo(w * 0.5325, h * 0.9976); + c.lineTo(w * 0.603, h * 0.7593); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.5276); + c.lineTo(0, h * 0.4188); + c.lineTo(w * 0.071, h * 0.2898); + c.lineTo(w * 0.4033, 0); + c.lineTo(w * 0.9301, h * 0.464); + c.lineTo(w, h * 0.5863); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dEbs.prototype.cst.EBS, mxShapeAws3dEbs); + +//********************************************************************************************************************************************************** +//Oracle Server +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dOracleServer(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dOracleServer, mxShape); + +mxShapeAws3dOracleServer.prototype.cst = { + ORACLE_SERVER : 'mxgraph.aws3d.oracleServer' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dOracleServer.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 123; + var strokeWidth2 = strokeWidth * h /133; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dOracleServer.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dOracleServer.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + c.setAlpha('0.1'); + + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + c.setAlpha('0.3'); + c.begin(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.setFillColor('#ff0000'); + + c.begin(); + c.moveTo(0, h * 0.5866); + c.lineTo(w * 0.5, h * 0.8359); + c.lineTo(w, h * 0.5866); + c.lineTo(w, h * 0.6986); + c.lineTo(w * 0.5, h * 0.9486); + c.lineTo(0, h * 0.6986); + c.fill(); + + c.setStrokeWidth(0.5 * strokeWidth); + c.setStrokeColor('#ffffff'); + c.setFillColor('#ffffff'); + + c.begin(); + c.moveTo(0, h * 0.5866); + c.lineTo(w * 0.5, h * 0.8359); + c.lineTo(w, h * 0.5866); + c.moveTo(w, h * 0.6986); + c.lineTo(w * 0.5, h * 0.9486); + c.lineTo(0, h * 0.6986); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.0813, h * 0.7113); + c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.065, h * 0.6831); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.065, h * 0.6613); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.0797, h * 0.6549); + c.lineTo(w * 0.122, h * 0.6754); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.1358, h * 0.6937); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.139, h * 0.7232); + c.arcTo(w * 0.0179, h * 0.0155, 0, 0, 1, w * 0.1187, h * 0.7296); + c.close(); + c.moveTo(w * 0.1163, h * 0.7183); + c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.1285, h * 0.7148); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1293, h * 0.7021); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.1179, h * 0.6831); + c.lineTo(w * 0.087, h * 0.6676); + c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.0764, h * 0.6697); + c.arcTo(w * 0.0325, h * 0.0352, 0, 0, 0, w * 0.078, h * 0.6937); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.087, h * 0.7035); + c.close(); + c.moveTo(w * 0.1439, h * 0.743); + c.lineTo(w * 0.1439, h * 0.6866); + c.lineTo(w * 0.1846, h * 0.707); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.1967, h * 0.7183); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2, h * 0.738); + c.arcTo(w * 0.0138, h * 0.0155, 0, 0, 1, w * 0.1813, h * 0.743); + c.lineTo(w * 0.1992, h * 0.769); + c.lineTo(w * 0.187, h * 0.7641); + c.lineTo(w * 0.1577, h * 0.7218); + c.lineTo(w * 0.1854, h * 0.7345); + c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.1911, h * 0.7317); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 0, w * 0.1894, h * 0.7225); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.1821, h * 0.7155); + c.lineTo(w * 0.1528, h * 0.7007); + c.lineTo(w * 0.1528, h * 0.7472); + c.close(); + c.moveTo(w * 0.2008, h * 0.7711); + c.lineTo(w * 0.2293, h * 0.7338); + c.arcTo(w * 0.0065, h * 0.0056, 0, 0, 1, w * 0.2382, h * 0.7324); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2431, h * 0.7415); + c.lineTo(w * 0.2699, h * 0.8035); + c.lineTo(w * 0.2602, h * 0.8007); + c.lineTo(w * 0.252, h * 0.7859); + c.lineTo(w * 0.2293, h * 0.7754); + c.lineTo(w * 0.2244, h * 0.7634); + c.lineTo(w * 0.248, h * 0.7739); + c.lineTo(w * 0.235, h * 0.7444); + c.lineTo(w * 0.2122, h * 0.7768); + c.close(); + c.moveTo(w * 0.3244, h * 0.8225); + c.lineTo(w * 0.3171, h * 0.8289); + c.lineTo(w * 0.2854, h * 0.8127); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2724, h * 0.7986); + c.arcTo(w * 0.0569, h * 0.0493, 0, 0, 1, w * 0.265, h * 0.7746); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.2683, h * 0.762); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.2829, h * 0.757); + c.lineTo(w * 0.3228, h * 0.7761); + c.lineTo(w * 0.3179, h * 0.7831); + c.lineTo(w * 0.2878, h * 0.7683); + c.arcTo(w * 0.0081, h * 0.007, 0, 0, 0, w * 0.2789, h * 0.7697); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.2748, h * 0.7831); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.2878, h * 0.8042); + c.close(); + c.moveTo(w * 0.3276, h * 0.7789); + c.lineTo(w * 0.3366, h * 0.7831); + c.lineTo(w * 0.3366, h * 0.8289); + c.lineTo(w * 0.3805, h * 0.8507); + c.lineTo(w * 0.3748, h * 0.857); + c.lineTo(w * 0.3317, h * 0.8359); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3276, h * 0.8275); + c.close(); + c.moveTo(w * 0.435, h * 0.8775); + c.lineTo(w * 0.4325, h * 0.8866); + c.lineTo(w * 0.3959, h * 0.8683); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.3862, h * 0.8563); + c.arcTo(w * 0.0528, h * 0.0458, 0, 0, 1, w * 0.3805, h * 0.8183); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.3951, h * 0.8134); + c.lineTo(w * 0.435, h * 0.8324); + c.lineTo(w * 0.4285, h * 0.838); + c.lineTo(w * 0.4008, h * 0.8246); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.3878, h * 0.831); + c.lineTo(w * 0.4333, h * 0.8542); + c.lineTo(w * 0.426, h * 0.8606); + c.lineTo(w * 0.3878, h * 0.8415); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.3976, h * 0.8585); + c.close(); + + c.moveTo(w * 0.6171, h * 0.8063); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.6366, h * 0.8092); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 1, w * 0.639, h * 0.8303); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.6211, h * 0.8592); + c.lineTo(w * 0.5894, h * 0.8761); + c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 1, w * 0.565, h * 0.8732); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.5659, h * 0.8458); + c.arcTo(w * 0.0488, h * 0.0422, 0, 0, 1, w * 0.5805, h * 0.8246); + c.close(); + c.moveTo(w * 0.5886, h * 0.8296); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.5748, h * 0.8472); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.574, h * 0.862); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.587, h * 0.8676); + c.lineTo(w * 0.6163, h * 0.8528); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.6285, h * 0.8359); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6293, h * 0.8225); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 0, w * 0.6163, h * 0.8155); + c.close(); + + c.moveTo(w * 0.64, h * 0.85); + c.lineTo(w * 0.64, h * 0.7930); + c.lineTo(w * 0.6854, h * 0.7718); + c.arcTo(w * 0.0106, h * 0.0092, 0, 0, 1, w * 0.7008, h * 0.7782); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6959, h * 0.8); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.6805, h * 0.8127); + c.lineTo(w * 0.6992, h * 0.8218); + c.lineTo(w * 0.6854, h * 0.8282); + c.lineTo(w * 0.6569, h * 0.8141); + c.lineTo(w * 0.6805, h * 0.8021); + c.arcTo(w * 0.0203, h * 0.0176, 0, 0, 0, w * 0.6894, h * 0.7923); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 0, w * 0.6894, h * 0.7845); + c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 0, w * 0.6837, h * 0.7831); + c.lineTo(w * 0.6528, h * 0.7979); + c.lineTo(w * 0.6528, h * 0.8437); + c.close(); + c.moveTo(w * 0.7, h * 0.8204); + c.lineTo(w * 0.7301, h * 0.7507); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7358, h * 0.7444); + c.arcTo(w * 0.0098, h * 0.0085, 0, 0, 1, w * 0.7415, h * 0.7486); + c.lineTo(w * 0.7699, h * 0.7852); + c.lineTo(w * 0.7602, h * 0.7908); + c.lineTo(w * 0.7537, h * 0.7838); + c.lineTo(w * 0.7276, h * 0.7958); + c.lineTo(w * 0.7228, h * 0.788); + c.lineTo(w * 0.748, h * 0.7768); + c.lineTo(w * 0.7358, h * 0.7585); + c.lineTo(w * 0.7114, h * 0.8155); + c.close(); + c.moveTo(w * 0.8244, h * 0.7486); + c.lineTo(w * 0.8171, h * 0.762); + c.lineTo(w * 0.7894, h * 0.7761); + c.arcTo(w * 0.0244, h * 0.0211, 0, 0, 1, w * 0.7683, h * 0.7746); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.7667, h * 0.7507); + c.arcTo(w * 0.0488, h * 0.0423, 0, 0, 1, w * 0.7937, h * 0.7162); + c.lineTo(w * 0.822, h * 0.7035); + c.lineTo(w * 0.8171, h * 0.7155); + c.lineTo(w * 0.7902, h * 0.7296); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.778, h * 0.743); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 0, w * 0.7756, h * 0.7606); + c.arcTo(w * 0.0077, h * 0.0067, 0, 0, 0, w * 0.787, h * 0.767); + c.close(); + c.moveTo(w * 0.8366, h * 0.6949); + c.lineTo(w * 0.8366, h * 0.7423); + c.lineTo(w * 0.878, h * 0.7231); + c.lineTo(w * 0.874, h * 0.7338); + c.lineTo(w * 0.8333, h * 0.7535); + c.arcTo(w * 0.0041, h * 0.0035, 0, 0, 1, w * 0.8268, h * 0.75); + c.lineTo(w * 0.8268, h * 0.7007); + c.close(); + c.moveTo(w * 0.9342, h * 0.6472); + c.lineTo(w * 0.9293, h * 0.6599); + c.lineTo(w * 0.9033, h * 0.6725); + c.arcTo(w * 0.0325, h * 0.0282, 0, 0, 0, w * 0.8927, h * 0.6817); + c.arcTo(w * 0.0406, h * 0.0352, 0, 0, 0, w * 0.887, h * 0.6937); + c.lineTo(w * 0.9309, h * 0.6725); + c.lineTo(w * 0.9268, h * 0.6845); + c.lineTo(w * 0.887, h * 0.7035); + c.arcTo(w * 0.0089, h * 0.0077, 0, 0, 0, w * 0.8992, h * 0.7106); + c.lineTo(w * 0.935, h * 0.693); + c.lineTo(w * 0.9285, h * 0.7063); + c.lineTo(w * 0.9008, h * 0.7197); + c.arcTo(w * 0.0163, h * 0.0141, 0, 0, 1, w * 0.8829, h * 0.7204); + c.arcTo(w * 0.0407, h * 0.0352, 0, 0, 1, w * 0.8764, h * 0.7028); + c.arcTo(w * 0.065, h * 0.0563, 0, 0, 1, w * 0.8959, h * 0.6669); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.374, h * 0.3873); + c.arcTo(w * 0.0325, h * 0.01764, 0, 0, 1, w * 0.374, h * 0.3626); + c.lineTo(w * 0.4797, h * 0.3098); + c.arcTo(w * 0.0325, h * 0.0141, 0, 0, 1, w * 0.5203, h * 0.3098); + c.lineTo(w * 0.626, h * 0.3626); + c.arcTo(w * 0.0325, h * 0.01764, 0, 0, 1, w * 0.626, h * 0.3852); + c.lineTo(w * 0.5203, h * 0.438); + c.arcTo(w * 0.0325, h * 0.0141, 0, 0, 1, w * 0.4797, h * 0.438); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7464); + c.lineTo(0, h * 0.25); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.25); + c.lineTo(w, h * 0.7464); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dOracleServer.prototype.cst.ORACLE_SERVER, mxShapeAws3dOracleServer); + +//********************************************************************************************************************************************************** +//Secure Connection +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dSecureConnection(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dSecureConnection, mxShape); + +mxShapeAws3dSecureConnection.prototype.cst = { + SECURE_CONNECTION : 'mxgraph.aws3d.secureConnection' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dSecureConnection.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 57; + var strokeWidth2 = strokeWidth * h /34; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + c.setStrokeWidth(strokeWidth); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dSecureConnection.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.begin(); + c.moveTo(w * 0.0058, h * 0.3889); + c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.0774, h * 0.1856); + c.arcTo(w * 0.5241, h * 0.8839, 0, 0, 1, w * 0.308, h * 0.0262); + c.arcTo(w * 0.8735, h * 1.4732, 0, 0, 1, w * 0.6417, h * 0.056); + c.arcTo(w * 0.6988, h * 1.1786, 0, 0, 1, w * 0.9106, h * 0.277); + c.arcTo(w * 0.2621, h * 0.442, 0, 0, 1, w, h * 0.5451); + c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.9474, h * 0.7808); + c.arcTo(w * 0.4368, h * 0.7366, 0, 0, 1, w * 0.7186, h * 0.9605); + c.arcTo(w * 0.8735, h * 1.4732, 0, 0, 1, w * 0.3045, h * 0.9104); + c.arcTo(w * 0.6115, h * 1.0312, 0, 0, 1, w * 0.0687, h * 0.6747); + c.arcTo(w * 0.2096, h * 0.3536, 0, 0, 1, w * 0.0058, h * 0.3889); + c.close(); + c.fill(); +}; + +mxShapeAws3dSecureConnection.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + + c.begin(); + c.moveTo(w * 0.2661, h * 0.5068); + c.lineTo(w * 0.5002, h * 0.7336); + c.lineTo(w * 0.6626, h * 0.5775); + c.lineTo(w * 0.6469, h * 0.5539); + c.lineTo(w * 0.6958, h * 0.5097); + c.arcTo(w * 0.0874, h * 0.1473, 0, 0, 0, w * 0.7325, h * 0.4066); + c.arcTo(w * 0.0874, h * 0.1473, 0, 0, 0, w * 0.6889, h * 0.3153); + c.arcTo(w * 0.1747, h * 0.2946, 0, 0, 0, w * 0.5928, h * 0.2622); + c.arcTo(w * 0.1398, h * 0.2357, 0, 0, 0, w * 0.5107, h * 0.3005); + c.lineTo(w * 0.446, h * 0.3654); + c.lineTo(w * 0.4268, h * 0.3477); + c.close(); + c.moveTo(w * 0.4949, h * 0.4184); + c.lineTo(w * 0.5491, h * 0.3624); + c.arcTo(w * 0.1222, h * 0.2062, 0, 0, 1, w * 0.6277, h * 0.3536); + c.arcTo(w * 0.0874, h * 0.1179, 0, 0, 1, w * 0.6679, h * 0.3978); + c.arcTo(w * 0.0175, h * 0.0295, 0, 0, 1, w * 0.6626, h * 0.439); + c.lineTo(w * 0.5928, h * 0.5068); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dSecureConnection.prototype.cst.SECURE_CONNECTION, mxShapeAws3dSecureConnection); + +//********************************************************************************************************************************************************** +//Email Service +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dEmailService(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dEmailService, mxShape); + +mxShapeAws3dEmailService.prototype.cst = { + EMAIL_SERVICE : 'mxgraph.aws3d.email_service', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dEmailService.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 151; + var strokeWidth2 = strokeWidth * h / 192; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dEmailService.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.8182); + c.lineTo(0, h * 0.1818); + c.lineTo(w * 0.4007, 0); + c.lineTo(w * 0.606, 0); + c.lineTo(w, h * 0.1792); + c.lineTo(w, h * 0.8182); + c.lineTo(w * 0.5993, h); + c.lineTo(w * 0.4007, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dEmailService.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEmailService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.2727); + c.lineTo(w * 0.4007, h * 0.4546); + c.lineTo(w * 0.5993, h * 0.4546); + c.lineTo(w * 0.5993, h); + c.lineTo(w * 0.4007, h); + c.lineTo(0, h * 0.8182); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5993, h * 0.4546); + c.lineTo(w, h * 0.2727); + c.lineTo(w * 0.8013, h * 0.1792); + c.lineTo(w * 0.8013, h * 0.0883); + c.lineTo(w, h * 0.1792); + c.lineTo(w, h * 0.8182); + c.lineTo(w * 0.5993, h); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.2727); + c.lineTo(w * 0.4007, h * 0.4546); + c.lineTo(w * 0.5993, h * 0.4546); + c.lineTo(w * 0.5993, h); + c.lineTo(w * 0.4007, h); + c.lineTo(0, h * 0.8182); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.5993, h * 0.4546); + c.lineTo(w, h * 0.2727); + c.lineTo(w * 0.8013, h * 0.1792); + c.lineTo(w * 0.8013, h * 0.0883); + c.lineTo(w, h * 0.1792); + c.lineTo(w, h * 0.8182); + c.lineTo(w * 0.5993, h); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.202, h * 0.0883); + c.lineTo(w * 0.202, h * 0.1818); + c.lineTo(w * 0.4007, h * 0.2727); + c.lineTo(w * 0.5993, h * 0.2727); + c.lineTo(w * 0.798, h * 0.1818); + c.moveTo(w * 0.2053, h * 0.1818); + c.lineTo(w * 0.0033, h * 0.2714); + c.moveTo(w * 0.4007, h * 0.2727); + c.lineTo(w * 0.4007, h * 0.9961); + c.moveTo(w * 0.5993, h * 0.2727); + c.lineTo(w * 0.5993, h * 0.4546); + c.stroke(); + + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.4437, h * 0.0779); + c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 1, w * 0.404, h * 0.0706); + c.arcTo(w * 0.0464, h * 0.0364, 0, 0, 1, w * 0.3815, h * 0.0421); + c.arcTo(w * 0.053, h * 0.026, 0, 0, 1, w * 0.4205, h * 0.0187); + c.arcTo(w * 0.1987, h * 0.1558, 0, 0, 1, w * 0.4768, h * 0.0203); + c.arcTo(w * 0.0795, h * 0.0364, 0, 0, 1, w * 0.5199, h * 0.0494); + c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.5099, h * 0.0649); + c.arcTo(w * 0.0795, h * 0.0623, 0, 0, 1, w * 0.4536, h * 0.0727); + c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4404, h * 0.0597); + c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.4219, h * 0.0566); + c.arcTo(w * 0.0199, h * 0.0114, 0, 0, 1, w * 0.4172, h * 0.0431); + c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 1, w * 0.4483, h * 0.0416); + c.arcTo(w * 0.0132, h * 0.0104, 0, 0, 1, w * 0.457, h * 0.053); + c.arcTo(w * 0.0132, h * 0.0104, 0, 0, 0, w * 0.4669, h * 0.0431); + c.arcTo(w * 0.0166, h * 0.0166, 0, 0, 0, w * 0.4464, h * 0.0358); + c.lineTo(w * 0.4437, h * 0.0338); + c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4603, h * 0.0322); + c.arcTo(w * 0.0397, h * 0.0156, 0, 0, 1, w * 0.4755, h * 0.0462); + c.arcTo(w * 0.0199, h * 0.0156, 0, 0, 1, w * 0.4669, h * 0.0545); + c.arcTo(w * 0.053, h * 0.0416, 0, 0, 1, w * 0.453, h * 0.0608); + c.arcTo(w * 0.0099, h * 0.0078, 0, 0, 0, w * 0.4636, h * 0.0675); + c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 0, w * 0.498, h * 0.0623); + c.arcTo(w * 0.0185, h * 0.0145, 0, 0, 0, w * 0.5079, h * 0.0457); + c.arcTo(w * 0.053, h * 0.0416, 0, 0, 0, w * 0.4848, h * 0.0296); + c.arcTo(w * 0.0993, h * 0.0779, 0, 0, 0, w * 0.455, h * 0.0234); + c.arcTo(w * 0.1325, h * 0.1039, 0, 0, 0, w * 0.4172, h * 0.026); + c.arcTo(w * 0.0397, h * 0.0312, 0, 0, 0, w * 0.3927, h * 0.039); + c.arcTo(w * 0.0265, h * 0.0208, 0, 0, 0, w * 0.3974, h * 0.0571); + c.arcTo(w * 0.053, h * 0.0416, 0, 0, 0, w * 0.4205, h * 0.0701); + c.arcTo(w * 0.0331, h * 0.026, 0, 0, 0, w * 0.4404, h * 0.0722); + c.moveTo(w * 0.42, h * 0.049); + c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.435, h * 0.055); + c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.45, h * 0.049); + c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.435, h * 0.043); + c.arcTo(w * 0.02, h * 0.02, 0, 0, 0, w * 0.42, h * 0.049); + c.close(); + c.moveTo(w * 0.4669, h * 0.0894); + c.arcTo(w * 0.1325, h * 0.1039, 0, 0, 0, w * 0.5099, h * 0.0831); + c.lineTo(w * 0.6689, h * 0.1543); + c.lineTo(w * 0.4887, h * 0.1371); + c.close(); + c.moveTo(w * 0.3887, h * 0.0769); + c.arcTo(w * 0.0662, h * 0.0519, 0, 0, 0, w * 0.4205, h * 0.0888); + c.arcTo(w * 0.0662, h * 0.026, 0, 0, 0, w * 0.447, h * 0.0894); + c.lineTo(w * 0.4735, h * 0.1512); + c.lineTo(w * 0.6689, h * 0.1688); + c.lineTo(w * 0.5199, h * 0.2364); + c.lineTo(w * 0.2815, h * 0.1273); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.8182); + c.lineTo(0, h * 0.1818); + c.lineTo(w * 0.4007, 0); + c.lineTo(w * 0.606, 0); + c.lineTo(w, h * 0.1792); + c.lineTo(w, h * 0.8182); + c.lineTo(w * 0.5993, h); + c.lineTo(w * 0.4007, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dEmailService.prototype.cst.EMAIL_SERVICE, mxShapeAws3dEmailService); + +//********************************************************************************************************************************************************** +//Worker +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dWorker(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dWorker, mxShape); + +mxShapeAws3dWorker.prototype.cst = { + WORKER : 'mxgraph.aws3d.worker', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dWorker.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + var strokeWidth1 = strokeWidth * w / 74; + var strokeWidth2 = strokeWidth * h / 50; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + c.setStrokeWidth(strokeWidth); + c.setShadow(false); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) + { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0865, h * 0.284); + c.lineTo(w * 0.4203, 0); + c.lineTo(w * 0.5865, 0); + c.lineTo(w * 0.919, h * 0.286); + c.lineTo(w, h * 0.566); + c.lineTo(w * 0.5027, h); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWorker.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.566); + c.lineTo(w * 0.0892, h * 0.282); + c.lineTo(w * 0.0878, h * 0.426); + c.lineTo(w * 0.4216, h * 0.712); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.5027, h); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.9176, h * 0.43); + c.lineTo(w, h * 0.566); + c.close(); + c.fill(); + + c.restore(); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.566); + c.lineTo(w * 0.0892, h * 0.282); + c.lineTo(w * 0.0878, h * 0.426); + c.lineTo(w * 0.4216, h * 0.712); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.5027, h); + c.close(); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.9176, h * 0.43); + c.lineTo(w, h * 0.566); + c.close(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0892, h * 0.422); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.4189, h * 0.708); + c.moveTo(w * 0.9176, h * 0.43); + c.lineTo(w * 0.9176, h * 0.29); + c.stroke(); + + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setLineJoin('round'); + c.begin(); + c.moveTo(w * 0.2892, h * 0.2104); + c.lineTo(w * 0.3595, h * 0.1503); + c.lineTo(w * 0.3973, h * 0.1844); + c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.4486, h * 0.1703); + c.lineTo(w * 0.4486, h * 0.1242); + c.lineTo(w * 0.5527, h * 0.1242); + c.lineTo(w * 0.5527, h * 0.1703); + c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.6149, h * 0.1924); + c.lineTo(w * 0.6527, h * 0.1603); + c.lineTo(w * 0.7257, h * 0.2224); + c.lineTo(w * 0.6892, h * 0.2545); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.7162, h * 0.3106); + c.lineTo(w * 0.7676, h * 0.3106); + c.lineTo(w * 0.7676, h * 0.3988); + c.lineTo(w * 0.7162, h * 0.3988); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.6973, h * 0.4409); + c.lineTo(w * 0.7378, h * 0.475); + c.lineTo(w * 0.6635, h * 0.5371); + c.lineTo(w * 0.6297, h * 0.505); + c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.5527, h * 0.5351); + c.lineTo(w * 0.5527, h * 0.5812); + c.lineTo(w * 0.45, h * 0.5812); + c.lineTo(w * 0.45, h * 0.5351); + c.arcTo(w * 0.2703, h * 0.4008, 0, 0, 1, w * 0.3878, h * 0.513); + c.lineTo(w * 0.3514, h * 0.5431); + c.lineTo(w * 0.2784, h * 0.481); + c.lineTo(w * 0.3149, h * 0.4509); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.2865, h * 0.3968); + c.lineTo(w * 0.2351, h * 0.3968); + c.lineTo(w * 0.2351, h * 0.3086); + c.lineTo(w * 0.2865, h * 0.3086); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.3203, h * 0.2425); + c.close(); + c.moveTo(w * 0.4054, h * 0.2445); + c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.3554, h * 0.2986); + c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 0, w * 0.3432, h * 0.3567); + c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 0, w * 0.3635, h * 0.4208); + c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.4122, h * 0.4649); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.4122, h * 0.4649); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.5676, h * 0.4749); + c.arcTo(w * 0.1351, h * 0.2004, 0, 0, 0, w * 0.6351, h * 0.4228); + c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 0, w * 0.6595, h * 0.3467); + c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 0, w * 0.6149, h * 0.2605); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.5419, h * 0.2204); + c.arcTo(w * 0.3378, h * 0.501, 0, 0, 0, w * 0.4649, h * 0.2184); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 0, w * 0.4054, h * 0.2445); + c.close(); + c.moveTo(w * 0.473, h * 0.2806); + c.arcTo(w * 0.2027, h * 0.3006, 0, 0, 1, w * 0.55, h * 0.2866); + c.arcTo(w * 0.0676, h * 0.1002, 0, 0, 1, w * 0.5892, h * 0.3307); + c.arcTo(w * 0.0338, h * 0.0501, 0, 0, 1, w * 0.5824, h * 0.3888); + c.arcTo(w * 0.0946, h * 0.1403, 0, 0, 1, w * 0.5216, h * 0.4269); + c.arcTo(w * 0.1622, h * 0.2405, 0, 0, 1, w * 0.4432, h * 0.4128); + c.arcTo(w * 0.0541, h * 0.0802, 0, 0, 1, w * 0.4108, h * 0.3527); + c.arcTo(w * 0.0541, h * 0.0802, 0, 0, 1, w * 0.4351, h * 0.2986); + c.arcTo(w * 0.0811, h * 0.1202, 0, 0, 1, w * 0.473, h * 0.2806); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0865, h * 0.284); + c.lineTo(w * 0.4203, 0); + c.lineTo(w * 0.5865, 0); + c.lineTo(w * 0.919, h * 0.286); + c.lineTo(w, h * 0.566); + c.lineTo(w * 0.5027, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dWorker.prototype.cst.WORKER, mxShapeAws3dWorker); + +//********************************************************************************************************************************************************** +//Application +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dApplication2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dApplication2, mxShape); + +mxShapeAws3dApplication2.prototype.cst = { + APPLICATION2 : 'mxgraph.aws3d.application2', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dApplication2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 62; + var strokeWidth2 = strokeWidth * h / 53.5; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) + { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.6766); + c.lineTo(0, h * 0.3271); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3271); + c.lineTo(w, h * 0.6766); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dApplication2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.3271); + c.lineTo(w * 0.5, h * 0.6449); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.6766); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h * 0.6449); + c.lineTo(w, h * 0.3271); + c.lineTo(w, h * 0.6766); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + c.restore(); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.3271); + c.lineTo(w * 0.5, h * 0.6449); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.6766); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.5, h * 0.6449); + c.lineTo(w, h * 0.3271); + c.lineTo(w, h * 0.6766); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.1742, h * 0.6355); + c.lineTo(w * 0.1742, h * 0.4393); + c.lineTo(w * 0.6726, h * 0.1121); + c.lineTo(w * 0.7661, h * 0.1738); + c.lineTo(w * 0.2661, h * 0.4991); + c.lineTo(w * 0.2661, h * 0.6916); + c.close(); + c.moveTo(w * 0.2871, h * 0.7084); + c.lineTo(w * 0.2871, h * 0.514); + c.lineTo(w * 0.7823, h * 0.1869); + c.lineTo(w * 0.8629, h * 0.2374); + c.lineTo(w * 0.379, h * 0.5626); + c.lineTo(w * 0.379, h * 0.7607); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.6766); + c.lineTo(0, h * 0.3271); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3271); + c.lineTo(w, h * 0.6766); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dApplication2.prototype.cst.APPLICATION2, mxShapeAws3dApplication2); + +//********************************************************************************************************************************************************** +//Elastic Beanstalk +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dElasticBeanstalk(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dElasticBeanstalk, mxShape); + +mxShapeAws3dElasticBeanstalk.prototype.cst = { + ELASTIC_BEANSTALK : 'mxgraph.aws3d.elasticBeanstalk', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dElasticBeanstalk.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 181.5; + var strokeWidth2 = strokeWidth * h / 140; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + c.setShadow(false); + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) + { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.6239); + c.lineTo(0, h * 0.3754); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3754); + c.lineTo(w, h * 0.6239); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticBeanstalk.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.3754); + c.lineTo(w * 0.5, h * 0.7514); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.6239); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5, h * 0.7514); + c.lineTo(w, h * 0.3754); + c.lineTo(w, h * 0.6239); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + c.restore(); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.3754); + c.lineTo(w * 0.5, h * 0.7514); + c.lineTo(w * 0.5, h); + c.lineTo(0, h * 0.6239); + c.close(); + c.moveTo(w * 0.5, h * 0.7514); + c.lineTo(w, h * 0.3754); + c.lineTo(w, h * 0.6239); + c.lineTo(w * 0.5, h); + c.close(); + c.moveTo(w * 0.2485, h * 0.187); + c.lineTo(w * 0.7493, h * 0.5623); + c.lineTo(w * 0.7493, h * 0.8123); + c.stroke(); + + c.setLineJoin('miter'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.7763, h * 0.2063); + c.lineTo(w * 0.2749, h * 0.5817); + c.lineTo(w * 0.2749, h * 0.8309); + c.lineTo(w * 0.2204, h * 0.7894); + c.lineTo(w * 0.2204, h * 0.5394); + c.lineTo(w * 0.7185, h * 0.1619); + c.close(); + c.fill(); + + c.restore(); + c.begin(); + c.moveTo(w * 0.1713, h * 0.543); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2028, h * 0.5723); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2281, h * 0.6096); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.2402, h * 0.644); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.2424, h * 0.6848); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.216, h * 0.6612); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.1895, h * 0.6239); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.1719, h * 0.5824); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.1713, h * 0.543); + c.close(); + c.moveTo(w * 0.2507, h * 0.7794); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.254, h * 0.7421); + c.arcTo(w * 0.022, h * 0.0287, 0, 0, 1, w * 0.27, h * 0.7264); + c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.2986, h * 0.73); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3234, h * 0.7457); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3218, h * 0.7815); + c.arcTo(w * 0.022, h * 0.0287, 0, 0, 1, w * 0.3019, h * 0.7987); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.27, h * 0.7923); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2507, h * 0.7794); + c.close(); + c.moveTo(w * 0.2799, h * 0.5265); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.3003, h * 0.515); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3317, h * 0.515); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3774, h * 0.5315); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4033, h * 0.5487); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3906, h * 0.5595); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.3493, h * 0.5616); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3069, h * 0.5444); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2799, h * 0.5265); + c.close(); + c.moveTo(w * 0.2887, h * 0.3933); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.314, h * 0.414); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.3322, h * 0.4391); + c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.3344, h * 0.4699); + c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.3196, h * 0.485); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.2887, h * 0.4592); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.27, h * 0.4269); + c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.2727, h * 0.4054); + c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.2887, h * 0.3933); + c.close(); + c.moveTo(w * 0.4613, h * 0.262); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4867, h * 0.2827); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.5049, h * 0.3078); + c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.5071, h * 0.3386); + c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.4922, h * 0.3537); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4613, h * 0.3279); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.4426, h * 0.2956); + c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.4453, h * 0.2741); + c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.4613, h * 0.262); + c.close(); + c.moveTo(w * 0.4525, h * 0.3952); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.4729, h * 0.3837); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5043, h * 0.3837); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.55, h * 0.4002); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.5759, h * 0.4174); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5633, h * 0.4282); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.5219, h * 0.4303); + c.arcTo(w * 0.1653, h * 0.1074, 0, 0, 1, w * 0.4795, h * 0.4131); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.4525, h * 0.3952); + c.close(); + c.moveTo(w * 0.6217, h * 0.1426); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6471, h * 0.1633); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6652, h * 0.1884); + c.arcTo(w * 0.0193, h * 0.0251, 0, 0, 1, w * 0.6674, h * 0.2192); + c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.6526, h * 0.2342); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6217, h * 0.2085); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.603, h * 0.1762); + c.arcTo(w * 0.0165, h * 0.0215, 0, 0, 1, w * 0.6057, h * 0.1547); + c.arcTo(w * 0.0551, h * 0.0716, 0, 0, 1, w * 0.6217, h * 0.1426); + c.close(); + c.moveTo(w * 0.6129, h * 0.2758); + c.arcTo(w * 0.1102, h * 0.1433, 0, 0, 1, w * 0.6333, h * 0.2643); + c.arcTo(w * 0.0826, h * 0.1433, 0, 0, 1, w * 0.6647, h * 0.2643); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.7104, h * 0.2808); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.7363, h * 0.298); + c.arcTo(w * 0.0826, h * 0.2149, 0, 0, 1, w * 0.7363, h * 0.298); + c.arcTo(w * 0.0826, h * 0.1074, 0, 0, 1, w * 0.6823, h * 0.3109); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6399, h * 0.2937); + c.arcTo(w * 0.1653, h * 0.2149, 0, 0, 1, w * 0.6129, h * 0.2758); + c.close(); + c.fillAndStroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.6239); + c.lineTo(0, h * 0.3754); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.3754); + c.lineTo(w, h * 0.6239); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dElasticBeanstalk.prototype.cst.ELASTIC_BEANSTALK, mxShapeAws3dElasticBeanstalk); + +//********************************************************************************************************************************************************** +//SimpleDB 2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dSimpleDB2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dSimpleDB2, mxShape); + +mxShapeAws3dSimpleDB2.prototype.cst = { + SIMPLE_DB_2 : 'mxgraph.aws3d.simpleDb2', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dSimpleDB2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 181.5; + var strokeWidth2 = strokeWidth * h / 210; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dSimpleDB2.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.8183); + c.lineTo(0, h * 0.1848); + c.lineTo(w * 0.3366, 0); + c.lineTo(w * 0.6293, h * 0.0021); + c.lineTo(w, h * 0.1833); + c.lineTo(w, h * 0.8183); + c.lineTo(w * 0.6694, h); + c.lineTo(w * 0.4986, h * 0.9091); + c.lineTo(w * 0.3333, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dSimpleDB2.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSimpleDB2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.1848); + c.lineTo(w * 0.168, h * 0.1833); + c.lineTo(0, h * 0.365); + c.lineTo(w * 0.3333, h * 0.5467); + c.lineTo(w * 0.3333, h); + c.lineTo(0, h * 0.8183); + c.close(); + c.moveTo(w * 0.4986, h * 0.9078); + c.lineTo(w * 0.4986, h * 0.3655); + c.lineTo(w * 0.6667, h * 0.5457); + c.lineTo(w * 0.6667, h); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.3333, h * 0.5467); + c.lineTo(w * 0.4986, h * 0.3655); + c.lineTo(w * 0.4986, h * 0.9076); + c.lineTo(w * 0.3333, h); + c.close(); + c.moveTo(w * 0.8292, h * 0.1822); + c.lineTo(w, h * 0.1848); + c.lineTo(w, h * 0.8183); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.6667, h * 0.5441); + c.lineTo(w, h * 0.3666); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.1848); + c.lineTo(w * 0.168, h * 0.1833); + c.lineTo(0, h * 0.365); + c.lineTo(w * 0.3333, h * 0.5467); + c.lineTo(w * 0.3333, h); + c.lineTo(0, h * 0.8183); + c.close(); + c.moveTo(w * 0.4986, h * 0.9078); + c.lineTo(w * 0.4986, h * 0.3655); + c.lineTo(w * 0.6667, h * 0.5457); + c.lineTo(w * 0.6667, h); + c.close(); + c.moveTo(w * 0.3333, h * 0.5467); + c.lineTo(w * 0.4986, h * 0.3655); + c.lineTo(w * 0.4986, h * 0.9076); + c.lineTo(w * 0.3333, h); + c.close(); + c.moveTo(w * 0.8292, h * 0.1822); + c.lineTo(w, h * 0.1848); + c.lineTo(w, h * 0.8183); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.6667, h * 0.5441); + c.lineTo(w, h * 0.3666); + c.close(); + c.moveTo(w * 0.1669, h * 0.1828); + c.lineTo(w * 0.4986, h * 0.3655); + c.lineTo(w * 0.8314, h * 0.1833); + c.lineTo(w * 0.4986, h * 0.0031); + c.close(); + c.stroke(); + + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.2634, h * 0.1833); + c.lineTo(w * 0.5003, h * 0.0535); + c.lineTo(w * 0.7394, h * 0.1833); + c.lineTo(w * 0.5003, h * 0.3136); + c.close(); + c.fill(); + + var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#000000'); + c.restore(); + c.setShadow(false); + c.setStrokeWidth(3 * strokeWidth); + c.setStrokeColor(fillColor); + + c.begin(); + c.moveTo(w * 0.3003, h * 0.2108); + c.lineTo(w * 0.5642, h * 0.068); + c.moveTo(w * 0.4429, h * 0.0693); + c.lineTo(w * 0.7059, h * 0.2121); + c.moveTo(w * 0.6667, h * 0.2458); + c.lineTo(w * 0.3974, h * 0.0992); + c.moveTo(w * 0.3499, h * 0.1277); + c.lineTo(w * 0.6088, h * 0.2698); + c.moveTo(w * 0.3009, h * 0.1556); + c.lineTo(w * 0.5496, h * 0.2913); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.8183); + c.lineTo(0, h * 0.1848); + c.lineTo(w * 0.3366, 0); + c.lineTo(w * 0.6293, h * 0.0021); + c.lineTo(w, h * 0.1833); + c.lineTo(w, h * 0.8183); + c.lineTo(w * 0.6694, h); + c.lineTo(w * 0.4986, h * 0.9091); + c.lineTo(w * 0.3333, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dSimpleDB2.prototype.cst.SIMPLE_DB_2, mxShapeAws3dSimpleDB2); + +//********************************************************************************************************************************************************** +//Workflow Service +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dWorkflowService(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dWorkflowService, mxShape); + +mxShapeAws3dWorkflowService.prototype.cst = { + WORKFLOW_SERVICE : 'mxgraph.aws3d.workflowService', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dWorkflowService.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 181.5; + var strokeWidth2 = strokeWidth * h / 210; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dWorkflowService.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.6456); + c.lineTo(w * 0.2481, 0); + c.lineTo(w * 0.7497, 0); + c.lineTo(w, h * 0.6456); + c.lineTo(w * 0.4984, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dWorkflowService.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dWorkflowService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.6456); + c.lineTo(w * 0.2486, 0); + c.lineTo(w * 0.2486, h * 0.3531); + c.lineTo(w * 0.4984, h); + c.close(); + c.moveTo(w * 0.7497, h * 0.3531); + c.lineTo(w * 0.7497, 0); + c.lineTo(w, h * 0.6456); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.4984, h); + c.lineTo(w * 0.7486, h * 0.3531); + c.lineTo(w, h * 0.6456); + c.lineTo(w * 0.4967, h); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.7497, h * 0.3531); + c.lineTo(w * 0.7497, 0); + c.lineTo(w, h * 0.6456); + c.close(); + c.moveTo(0, h * 0.6456); + c.lineTo(w * 0.2486, 0); + c.lineTo(w * 0.2486, h * 0.3531); + c.lineTo(w * 0.4984, h); + c.lineTo(w * 0.7486, h * 0.3531); + c.lineTo(w, h * 0.6456); + c.lineTo(w * 0.4967, h); + c.close(); + c.moveTo(w * 0.2486, h * 0.3531); + c.lineTo(w * 0.7508, h * 0.3531); + c.moveTo(w * 0.2488, h * 0.353); + c.lineTo(0, h * 0.6486); + c.stroke(); + + c.restore(); + c.setShadow(false); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setStrokeWidth(2 * strokeWidth); + + c.begin(); + c.ellipse(w * 0.2925, h * 0.031, w * 0.4116, h * 0.2925); + c.fill(); + + var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff'); + c.setStrokeColor(fillColor); + + c.begin(); + c.moveTo(w * 0.5252, h * 0.0465); + c.lineTo(w * 0.5873, h * 0.0903); + c.lineTo(w * 0.5483, h * 0.1173); + c.lineTo(w * 0.4874, h * 0.0728); + c.close(); + c.moveTo(w * 0.4896, h * 0.1132); + c.lineTo(w * 0.5005, h * 0.1705); + c.lineTo(w * 0.4182, h * 0.1631); + c.lineTo(w * 0.4122, h * 0.1058); + c.close(); + c.moveTo(w * 0.3584, h * 0.1631); + c.lineTo(w * 0.4204, h * 0.2062); + c.lineTo(w * 0.3825, h * 0.2332); + c.lineTo(w * 0.32, h * 0.19); + c.close(); + c.moveTo(w * 0.4594, h * 0.2338); + c.lineTo(w * 0.5214, h * 0.2783); + c.lineTo(w * 0.4835, h * 0.3053); + c.lineTo(w * 0.4215, h * 0.2608); + c.close(); + c.moveTo(w * 0.5187, h * 0.0943); + c.lineTo(w * 0.4879, h * 0.1152); + c.moveTo(w * 0.421, h * 0.1624); + c.lineTo(w * 0.3895, h * 0.1846); + c.moveTo(w * 0.5, h * 0.1698); + c.lineTo(w * 0.5554, h * 0.2089); + c.lineTo(w * 0.4885, h * 0.2567); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.6456); + c.lineTo(w * 0.2481, 0); + c.lineTo(w * 0.7497, 0); + c.lineTo(w, h * 0.6456); + c.lineTo(w * 0.4984, h); + c.close(); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dWorkflowService.prototype.cst.WORKFLOW_SERVICE, mxShapeAws3dWorkflowService); + +//********************************************************************************************************************************************************** +//Decider +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dDecider(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dDecider, mxShape); + +mxShapeAws3dDecider.prototype.cst = { + DECIDER : 'mxgraph.aws3d.decider', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dDecider.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + var strokeWidth1 = strokeWidth * w / 74; + var strokeWidth2 = strokeWidth * h / 50; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + c.setStrokeWidth(strokeWidth); + c.setShadow(false); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if (isShadow == 1) + { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0865, h * 0.284); + c.lineTo(w * 0.4203, 0); + c.lineTo(w * 0.5865, 0); + c.lineTo(w * 0.919, h * 0.286); + c.lineTo(w, h * 0.566); + c.lineTo(w * 0.5027, h); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dDecider.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.566); + c.lineTo(w * 0.0892, h * 0.282); + c.lineTo(w * 0.0878, h * 0.426); + c.lineTo(w * 0.4216, h * 0.712); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.5027, h); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.9176, h * 0.43); + c.lineTo(w, h * 0.566); + c.close(); + c.fill(); + + c.restore(); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.566); + c.lineTo(w * 0.0892, h * 0.282); + c.lineTo(w * 0.0878, h * 0.426); + c.lineTo(w * 0.4216, h * 0.712); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.5027, h); + c.close(); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.5865, h * 0.712); + c.lineTo(w * 0.9176, h * 0.43); + c.lineTo(w, h * 0.566); + c.close(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0892, h * 0.422); + c.moveTo(w * 0.5027, h); + c.lineTo(w * 0.4189, h * 0.708); + c.moveTo(w * 0.9176, h * 0.43); + c.lineTo(w * 0.9176, h * 0.29); + c.stroke(); + + c.setStrokeWidth(1.6 * strokeWidth); + c.setLineJoin('square'); + c.begin(); + c.moveTo(w * 0.4973, h * 0.1523); + c.lineTo(w * 0.5608, h * 0.0982); + c.lineTo(w * 0.6581, h * 0.1844); + c.lineTo(w * 0.5986, h * 0.2365); + c.close(); + c.moveTo(w * 0.3784, h * 0.2164); + c.lineTo(w * 0.5054, h * 0.2305); + c.lineTo(w * 0.5203, h * 0.3407); + c.lineTo(w * 0.3892, h * 0.3246); + c.close(); + c.moveTo(w * 0.2932, h * 0.3246); + c.lineTo(w * 0.3919, h * 0.4128); + c.lineTo(w * 0.3334, h * 0.4647); + c.lineTo(w * 0.2357, h * 0.38); + c.close(); + c.moveTo(w * 0.4568, h * 0.4649); + c.lineTo(w * 0.5554, h * 0.5511); + c.lineTo(w * 0.4932, h * 0.6032); + c.lineTo(w * 0.3946, h * 0.517); + c.close(); + c.moveTo(w * 0.5473, h * 0.1924); + c.lineTo(w * 0.5027, h * 0.2365); + c.moveTo(w * 0.4, h * 0.3186); + c.lineTo(w * 0.3446, h * 0.3667); + c.moveTo(w * 0.5189, h * 0.3387); + c.lineTo(w * 0.6081, h * 0.4148); + c.lineTo(w * 0.5068, h * 0.501); + c.stroke(); + + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(0, h * 0.572); + c.lineTo(w * 0.0865, h * 0.284); + c.lineTo(w * 0.4203, 0); + c.lineTo(w * 0.5865, 0); + c.lineTo(w * 0.919, h * 0.286); + c.lineTo(w, h * 0.566); + c.lineTo(w * 0.5027, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dDecider.prototype.cst.DECIDER, mxShapeAws3dDecider); + +//********************************************************************************************************************************************************** +//Search Engine +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dSearchEngine(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dSearchEngine, mxShape); + +mxShapeAws3dSearchEngine.prototype.cst = { + SEARCH_ENGINE : 'mxgraph.aws3d.searchEngine', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dSearchEngine.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 180; + var strokeWidth2 = strokeWidth * h / 192; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dSearchEngine.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7281); + c.lineTo(w * 0.1667, h * 0.5444); + c.lineTo(w * 0.1667, h * 0.1832); + c.lineTo(w * 0.5011, 0); + c.lineTo(w * 0.8333, h * 0.1832); + c.lineTo(w * 0.8333, h * 0.5446); + c.lineTo(w, h * 0.7281); + c.lineTo(w * 0.7486, h * 0.7735); + c.lineTo(w * 0.5819, h * 0.8617); + c.lineTo(w * 0.5011, h); + c.lineTo(w * 0.4169, h * 0.8653); + c.lineTo(w * 0.2475, h * 0.7704); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dSearchEngine.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSearchEngine.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(w * 0.1672, h * 0.1837); + c.lineTo(w * 0.4989, h * 0.3638); + c.lineTo(w * 0.4989, h * 0.7291); + c.lineTo(w * 0.5825, h * 0.8633); + c.lineTo(w * 0.4989, h); + c.lineTo(w * 0.4164, h * 0.8622); + c.lineTo(w * 0.2458, h * 0.7719); + c.lineTo(0, h * 0.7276); + c.lineTo(w * 0.1661, h * 0.5454); + c.close(); + c.moveTo(w * 0.7486, h * 0.7714); + c.lineTo(w * 0.8317, h * 0.5459); + c.lineTo(w, h * 0.727); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.4989, h * 0.3643); + c.lineTo(w * 0.8317, h * 0.1827); + c.lineTo(w * 0.8317, h * 0.5465); + c.lineTo(w * 0.7508, h * 0.7714); + c.lineTo(w * 0.5836, h * 0.8633); + c.lineTo(w * 0.4989, h * 0.727); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.1672, h * 0.1837); + c.lineTo(w * 0.4989, h * 0.3638); + c.lineTo(w * 0.4989, h * 0.7291); + c.lineTo(w * 0.5825, h * 0.8633); + c.lineTo(w * 0.4989, h); + c.lineTo(w * 0.4164, h * 0.8622); + c.lineTo(w * 0.2458, h * 0.7719); + c.lineTo(0, h * 0.7276); + c.lineTo(w * 0.1661, h * 0.5454); + c.close(); + c.moveTo(w * 0.7486, h * 0.7714); + c.lineTo(w * 0.8317, h * 0.5459); + c.lineTo(w, h * 0.727); + c.close(); + c.moveTo(w * 0.4989, h * 0.3643); + c.lineTo(w * 0.8317, h * 0.1827); + c.lineTo(w * 0.8317, h * 0.5465); + c.lineTo(w * 0.7508, h * 0.7714); + c.lineTo(w * 0.5836, h * 0.8633); + c.lineTo(w * 0.4989, h * 0.727); + c.close(); + c.moveTo(w * 0.1667, h * 0.5459); + c.lineTo(w * 0.2486, h * 0.7704); + c.moveTo(w * 0.4164, h * 0.8633); + c.lineTo(w * 0.4989, h * 0.727); + c.lineTo(w * 0.4989, h); + c.stroke(); + + c.restore(); + c.setShadow(false); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + + c.begin(); + c.moveTo(w * 0.3427, h * 0.179); + c.arcTo(w * 0.0277, h * 0.0261, 0, 0, 1, w * 0.3267, h * 0.1487); + c.arcTo(w * 0.0664, h * 0.0365, 0, 0, 1, w * 0.3621, h * 0.1227); + c.arcTo(w * 0.1052, h * 0.0992, 0, 0, 1, w * 0.4247, h * 0.1195); + c.arcTo(w * 0.1274, h * 0.12, 0, 0, 1, w * 0.4884, h * 0.1018); + c.arcTo(w * 0.1329, h * 0.1253, 0, 0, 1, w * 0.5548, h * 0.1112); + c.arcTo(w * 0.0377, h * 0.0344, 0, 0, 1, w * 0.572, h * 0.166); + c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.6047, h * 0.1775); + c.arcTo(w * 0.021, h * 0.0198, 0, 0, 1, w * 0.5936, h * 0.2046); + c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.6008, h * 0.2416); + c.arcTo(w * 0.072, h * 0.0678, 0, 0, 1, w * 0.5437, h * 0.2677); + c.arcTo(w * 0.1052, h * 0.0939, 0, 0, 1, w * 0.4828, h * 0.2563); + c.close(); + c.moveTo(w * 0.448, h * 0.2156); + c.arcTo(w * 0.0111, h * 0.0104, 0, 0, 0, w * 0.459, h * 0.2255); + c.arcTo(w * 0.0138, h * 0.013, 0, 0, 0, w * 0.4729, h * 0.2182); + c.lineTo(w * 0.4773, h * 0.1874); + c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.5116, h * 0.1759); + c.arcTo(w * 0.0277, h * 0.0626, 0, 0, 0, w * 0.5233, h * 0.1503); + c.arcTo(w * 0.0554, h * 0.0261, 0, 0, 0, w * 0.5022, h * 0.1336); + c.arcTo(w * 0.0886, h * 0.0835, 0, 0, 0, w * 0.4607, h * 0.1305); + c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.4313, h * 0.142); + c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 0, w * 0.4175, h * 0.1597); + c.arcTo(w * 0.0249, h * 0.0235, 0, 0, 0, w * 0.4313, h * 0.1822); + c.arcTo(w * 0.0443, h * 0.0418, 0, 0, 0, w * 0.4535, h * 0.1884); + c.close(); + c.moveTo(w * 0.4718, h * 0.1764); + c.arcTo(w * 0.0443, h * 0.0418, 0, 0, 1, w * 0.4496, h * 0.1754); + c.arcTo(w * 0.0221, h * 0.0157, 0, 0, 1, w * 0.4369, h * 0.1634); + c.arcTo(w * 0.0221, h * 0.0183, 0, 0, 1, w * 0.4496, h * 0.1467); + c.arcTo(w * 0.0609, h * 0.0574, 0, 0, 1, w * 0.4759, h * 0.1414); + c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.5033, h * 0.1514); + c.arcTo(w * 0.0443, h * 0.0209, 0, 0, 1, w * 0.495, h * 0.1701); + c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 1, w * 0.4718, h * 0.1764); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7281); + c.lineTo(w * 0.1667, h * 0.5444); + c.lineTo(w * 0.1667, h * 0.1832); + c.lineTo(w * 0.5011, 0); + c.lineTo(w * 0.8333, h * 0.1832); + c.lineTo(w * 0.8333, h * 0.5446); + c.lineTo(w, h * 0.7281); + c.lineTo(w * 0.7486, h * 0.7735); + c.lineTo(w * 0.5819, h * 0.8617); + c.lineTo(w * 0.5011, h); + c.lineTo(w * 0.4169, h * 0.8653); + c.lineTo(w * 0.2475, h * 0.7704); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dSearchEngine.prototype.cst.SEARCH_ENGINE, mxShapeAws3dSearchEngine); + +//********************************************************************************************************************************************************** +//Security Token Service +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dSecurityTokenService(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dSecurityTokenService, mxShape); + +mxShapeAws3dSecurityTokenService.prototype.cst = { + SECURITY_TOKEN_SERVICE : 'mxgraph.aws3d.securityTokenService', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dSecurityTokenService.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 180; + var strokeWidth2 = strokeWidth * h / 192; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dSecurityTokenService.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.7281); + c.lineTo(w * 0.1667, h * 0.5444); + c.lineTo(w * 0.1667, h * 0.1832); + c.lineTo(w * 0.5011, 0); + c.lineTo(w * 0.8333, h * 0.1832); + c.lineTo(w * 0.8333, h * 0.5446); + c.lineTo(w, h * 0.7281); + c.lineTo(w * 0.7486, h * 0.7735); + c.lineTo(w * 0.5819, h * 0.8617); + c.lineTo(w * 0.5011, h); + c.lineTo(w * 0.4169, h * 0.8653); + c.lineTo(w * 0.2475, h * 0.7704); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dSecurityTokenService.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSecurityTokenService.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(w * 0.1672, h * 0.1837); + c.lineTo(w * 0.4989, h * 0.3638); + c.lineTo(w * 0.4989, h * 0.7291); + c.lineTo(w * 0.5825, h * 0.8633); + c.lineTo(w * 0.4989, h); + c.lineTo(w * 0.4164, h * 0.8622); + c.lineTo(w * 0.2458, h * 0.7719); + c.lineTo(0, h * 0.7276); + c.lineTo(w * 0.1661, h * 0.5454); + c.close(); + c.moveTo(w * 0.7486, h * 0.7714); + c.lineTo(w * 0.8317, h * 0.5459); + c.lineTo(w, h * 0.727); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.4989, h * 0.3643); + c.lineTo(w * 0.8317, h * 0.1827); + c.lineTo(w * 0.8317, h * 0.5465); + c.lineTo(w * 0.7508, h * 0.7714); + c.lineTo(w * 0.5836, h * 0.8633); + c.lineTo(w * 0.4989, h * 0.727); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.1672, h * 0.1837); + c.lineTo(w * 0.4989, h * 0.3638); + c.lineTo(w * 0.4989, h * 0.7291); + c.lineTo(w * 0.5825, h * 0.8633); + c.lineTo(w * 0.4989, h); + c.lineTo(w * 0.4164, h * 0.8622); + c.lineTo(w * 0.2458, h * 0.7719); + c.lineTo(0, h * 0.7276); + c.lineTo(w * 0.1661, h * 0.5454); + c.close(); + c.moveTo(w * 0.7486, h * 0.7714); + c.lineTo(w * 0.8317, h * 0.5459); + c.lineTo(w, h * 0.727); + c.close(); + c.moveTo(w * 0.4989, h * 0.3643); + c.lineTo(w * 0.8317, h * 0.1827); + c.lineTo(w * 0.8317, h * 0.5465); + c.lineTo(w * 0.7508, h * 0.7714); + c.lineTo(w * 0.5836, h * 0.8633); + c.lineTo(w * 0.4989, h * 0.727); + c.close(); + c.moveTo(w * 0.1667, h * 0.5459); + c.lineTo(w * 0.2486, h * 0.7704); + c.moveTo(w * 0.4164, h * 0.8633); + c.lineTo(w * 0.4989, h * 0.727); + c.lineTo(w * 0.4989, h); + c.stroke(); + + c.restore(); + c.setShadow(false); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + + c.begin(); + c.moveTo(w * 0.4773, h * 0.1915); + c.arcTo(w * 0.1274, h * 0.12, 0, 0, 1, w * 0.4358, h * 0.1968); + c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.3937, h * 0.1905); + c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 1, w * 0.3682, h * 0.1707); + c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.3699, h * 0.1414); + c.arcTo(w * 0.0775, h * 0.0731, 0, 0, 1, w * 0.4009, h * 0.118); + c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.4524, h * 0.1059); + c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 1, w * 0.5028, h * 0.1112); + c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 1, w * 0.531, h * 0.1315); + c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 1, w * 0.531, h * 0.1597); + c.lineTo(w * 0.5615, h * 0.1754); + c.lineTo(w * 0.5526, h * 0.1905); + c.lineTo(w * 0.5759, h * 0.1999); + c.lineTo(w * 0.5753, h * 0.2109); + c.lineTo(w * 0.5792, h * 0.2161); + c.lineTo(w * 0.6135, h * 0.2182); + c.lineTo(w * 0.6113, h * 0.2416); + c.lineTo(w * 0.5819, h * 0.2474); + c.close(); + + c.moveTo(w * 0.4756, h * 0.1816); + c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.5, h * 0.1691); + c.arcTo(w * 0.0332, h * 0.0313, 0, 0, 0, w * 0.5144, h * 0.1435); + c.arcTo(w * 0.0277, h * 0.0261, 0, 0, 0, w * 0.4967, h * 0.1247); + c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.4729, h * 0.1174); + c.arcTo(w * 0.1107, h * 0.1044, 0, 0, 0, w * 0.4452, h * 0.1169); + c.arcTo(w * 0.0831, h * 0.0783, 0, 0, 0, w * 0.4197, h * 0.1232); + c.arcTo(w * 0.0554, h * 0.0522, 0, 0, 0, w * 0.397, h * 0.1357); + c.arcTo(w * 0.0388, h * 0.0365, 0, 0, 0, w * 0.3859, h * 0.1555); + c.arcTo(w * 0.0305, h * 0.0287, 0, 0, 0, w * 0.4053, h * 0.178); + c.arcTo(w * 0.072, h * 0.0678, 0, 0, 0, w * 0.4385, h * 0.1863); + c.arcTo(w * 0.0831, h * 0.0783, 0, 0, 0, w * 0.4596, h * 0.1848); + c.arcTo(w * 0.0664, h * 0.0626, 0, 0, 0, w * 0.4756, h * 0.1816); + c.fill(); + + c.setStrokeWidth(1.5 * strokeWidth); + c.setLineJoin('round'); + c.setLineCap('round'); + c.begin(); + c.moveTo(w * 0.4939, h * 0.1326); + c.lineTo(w * 0.4474, h * 0.1508); + c.lineTo(w * 0.4812, h * 0.1576); + c.moveTo(w * 0.4889, h * 0.1733); + c.lineTo(w * 0.4939, h * 0.1775); + c.moveTo(w * 0.5061, h * 0.1576); + c.lineTo(w * 0.5199, h * 0.1597); + c.moveTo(w * 0.5094, h * 0.1394); + c.lineTo(w * 0.5244, h * 0.1378); + c.moveTo(w * 0.4945, h * 0.1247); + c.lineTo(w * 0.4994, h * 0.1185); + c.moveTo(w * 0.4679, h * 0.1175); + c.lineTo(w * 0.4707, h * 0.1117); + c.moveTo(w * 0.4396, h * 0.1195); + c.lineTo(w * 0.4374, h * 0.1138); + c.moveTo(w * 0.412, h * 0.1284); + c.lineTo(w * 0.4059, h * 0.1232); + c.moveTo(w * 0.3948, h * 0.1441); + c.lineTo(w * 0.3804, h * 0.1425); + c.moveTo(w * 0.3931, h * 0.1608); + c.lineTo(w * 0.3804, h * 0.1649); + c.moveTo(w * 0.4059, h * 0.1754); + c.lineTo(w * 0.3998, h * 0.1801); + c.moveTo(w * 0.4308, h * 0.1822); + c.lineTo(w * 0.4286, h * 0.1884); + c.moveTo(w * 0.4618, h * 0.1827); + c.lineTo(w * 0.4635, h * 0.1868); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(0, h * 0.7281); + c.lineTo(w * 0.1667, h * 0.5444); + c.lineTo(w * 0.1667, h * 0.1832); + c.lineTo(w * 0.5011, 0); + c.lineTo(w * 0.8333, h * 0.1832); + c.lineTo(w * 0.8333, h * 0.5446); + c.lineTo(w, h * 0.7281); + c.lineTo(w * 0.7486, h * 0.7735); + c.lineTo(w * 0.5819, h * 0.8617); + c.lineTo(w * 0.5011, h); + c.lineTo(w * 0.4169, h * 0.8653); + c.lineTo(w * 0.2475, h * 0.7704); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dSecurityTokenService.prototype.cst.SECURITY_TOKEN_SERVICE, mxShapeAws3dSecurityTokenService); + +//********************************************************************************************************************************************************** +//Glacier +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dGlacier(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dGlacier, mxShape); + +mxShapeAws3dGlacier.prototype.cst = { + GLACIER : 'mxgraph.aws3d.glacier', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dGlacier.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 180; + var strokeWidth2 = strokeWidth * h / 192; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dGlacier.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.8177); + c.lineTo(0, h * 0.5448); + c.lineTo(w * 0.168, h * 0.1792); + c.lineTo(w * 0.5008, 0); + c.lineTo(w * 0.8309, h * 0.1812); + c.lineTo(w, h * 0.5469); + c.lineTo(w, h * 0.8188); + c.lineTo(w * 0.6661, h); + c.lineTo(w * 0.3333, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dGlacier.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dGlacier.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(w * 0.1658, h * 0.1802); + c.lineTo(w * 0.5008, h * 0.3651); + c.lineTo(w * 0.6661, h * 0.9089); + c.lineTo(w * 0.6661, h); + c.lineTo(w * 0.3339, h); + c.lineTo(0, h * 0.8177); + c.lineTo(0, h * 0.5427); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.5008, h * 0.362); + c.lineTo(w * 0.8314, h * 0.1823); + c.lineTo(w, h * 0.5469); + c.lineTo(w, h * 0.8177); + c.lineTo(w * 0.6661, h); + c.lineTo(w * 0.6661, h * 0.9089); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.1658, h * 0.1802); + c.lineTo(w * 0.5008, h * 0.3651); + c.lineTo(w * 0.6661, h * 0.9089); + c.lineTo(w * 0.6661, h); + c.lineTo(w * 0.3339, h); + c.lineTo(0, h * 0.8177); + c.lineTo(0, h * 0.5427); + c.close(); + c.moveTo(w * 0.5008, h * 0.362); + c.lineTo(w * 0.8314, h * 0.1823); + c.lineTo(w, h * 0.5469); + c.lineTo(w, h * 0.8177); + c.lineTo(w * 0.6661, h); + c.lineTo(w * 0.6661, h * 0.9089); + c.close(); + c.moveTo(w * 0.1675, h * 0.1797); + c.lineTo(0, h * 0.7281); + c.lineTo(w * 0.3284, h * 0.9089); + c.lineTo(w * 0.6661, h * 0.9089); + c.lineTo(w, h * 0.7266); + c.lineTo(w * 0.8309, h * 0.1823); + c.moveTo(w * 0.5003, h * 0.362); + c.lineTo(w * 0.3311, h * 0.9089); + c.lineTo(w * 0.3311, h); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(0, h * 0.8177); + c.lineTo(0, h * 0.5448); + c.lineTo(w * 0.168, h * 0.1792); + c.lineTo(w * 0.5008, 0); + c.lineTo(w * 0.8309, h * 0.1812); + c.lineTo(w, h * 0.5469); + c.lineTo(w, h * 0.8188); + c.lineTo(w * 0.6661, h); + c.lineTo(w * 0.3333, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dGlacier.prototype.cst.GLACIER, mxShapeAws3dGlacier); + +//********************************************************************************************************************************************************** +//Customer Gateway +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dCustomerGateway(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dCustomerGateway, mxShape); + +mxShapeAws3dCustomerGateway.prototype.cst = { + CUSTOMER_GATEWAY : 'mxgraph.aws3d.customerGateway', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dCustomerGateway.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 116.7; + var strokeWidth2 = strokeWidth * h / 102.8; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dCustomerGateway.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.8946, 0); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6812, h * 0.7247); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.save(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCustomerGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.6838, h * 0.2072); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.6838, h * 0.2072); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.6838, h * 0.2072); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.stroke(); + + c.restore(); + c.setLineJoin('round'); + c.setShadow(false); + + c.begin(); + c.moveTo(w * 0.6838, h * 0.2072); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6838, h * 0.7247); + c.close(); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(w * 0.4199, h * 0.5447); + c.lineTo(w * 0.4199, h * 0.035); + c.lineTo(w * 0.8946, 0); + c.lineTo(w, h * 0.0691); + c.lineTo(w, h * 0.4134); + c.lineTo(w * 0.6812, h * 0.7247); + c.close(); + c.stroke(); + + c.restore(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.3171, h * 0.1031); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.lineTo(w * 0.1054, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dCustomerGateway.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setShadow(false); + c.setLineJoin('round'); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dCustomerGateway.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.1054, h); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.1054, h); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.1054, h); + c.close(); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.1054, h); + c.lineTo(w * 0.1054, h * 0.6537); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.close(); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.929); + c.lineTo(0, h * 0.5866); + c.lineTo(w * 0.3171, h * 0.1031); + c.lineTo(w * 0.5784, h * 0.2753); + c.lineTo(w * 0.5784, h * 0.7928); + c.lineTo(w * 0.1054, h); + c.close(); + c.stroke(); + + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.7575, h * 0.3969); + c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.7686, h * 0.3259); + c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.8055, h * 0.2481); + c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.8406, h * 0.2091); + c.lineTo(w * 0.8269, h * 0.2665); + c.lineTo(w * 0.8372, h * 0.2607); + c.lineTo(w * 0.8372, h * 0.3444); + c.lineTo(w * 0.7832, h * 0.3804); + c.lineTo(w * 0.7832, h * 0.3658); + c.close(); + c.moveTo(w * 0.8466, h * 0.2082); + c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.8766, h * 0.1955); + c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.9186, h * 0.2286); + c.arcTo(w * 0.12, h * 0.1362, 0, 0, 1, w * 0.9297, h * 0.2821); + c.lineTo(w * 0.9006, h * 0.2831); + c.lineTo(w * 0.9006, h * 0.3016); + c.lineTo(w * 0.85, h * 0.3366); + c.lineTo(w * 0.85, h * 0.251); + c.lineTo(w * 0.8586, h * 0.2471); + c.close(); + c.moveTo(w * 0.9297, h * 0.2967); + c.arcTo(w * 0.2142, h * 0.2432, 0, 0, 1, w * 0.9195, h * 0.3667); + c.arcTo(w * 0.2571, h * 0.2918, 0, 0, 1, w * 0.8869, h * 0.4436); + c.arcTo(w * 0.1714, h * 0.1946, 0, 0, 1, w * 0.8466, h * 0.4903); + c.lineTo(w * 0.8595, h * 0.4358); + c.lineTo(w * 0.8492, h * 0.4416); + c.lineTo(w * 0.8492, h * 0.357); + c.lineTo(w * 0.9006, h * 0.32004); + c.lineTo(w * 0.9006, h * 0.3346); + c.close(); + c.moveTo(w * 0.838, h * 0.4942); + c.arcTo(w * 0.0857, h * 0.0973, 0, 0, 1, w * 0.8072, h * 0.5049); + c.arcTo(w * 0.0514, h * 0.0584, 0, 0, 1, w * 0.7712, h * 0.4815); + c.arcTo(w * 0.1714, h * 0.1946, 0, 0, 1, w * 0.7566, h * 0.4163); + c.lineTo(w * 0.7832, h * 0.4173); + c.lineTo(w * 0.7832, h * 0.4008); + c.lineTo(w * 0.8372, h * 0.3638); + c.lineTo(w * 0.8372, h * 0.4494); + c.lineTo(w * 0.8278, h * 0.4562); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dCustomerGateway.prototype.cst.CUSTOMER_GATEWAY, mxShapeAws3dCustomerGateway); + +//********************************************************************************************************************************************************** +//Redshift +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dRedshift(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dRedshift, mxShape); + +mxShapeAws3dRedshift.prototype.cst = { + REDSHIFT : 'mxgraph.aws3d.redshift', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dRedshift.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 149.5; + var strokeWidth2 = strokeWidth * h / 187.5; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dRedshift.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.6517); + c.lineTo(0, h * 0.0912); + c.lineTo(w * 0.0368, h * 0.0155); + c.lineTo(w * 0.2047, 0); + c.lineTo(w * 0.3378, h * 0.0619); + c.lineTo(w * 0.3378, h * 0.0912); + c.lineTo(w * 0.3819, h * 0.0693); + c.lineTo(w * 0.6154, h * 0.0693); + c.lineTo(w * 0.8502, h * 0.1776); + c.lineTo(w * 0.8502, h * 0.3083); + c.lineTo(w * 0.8682, h * 0.3061); + c.lineTo(w, h * 0.3664); + c.lineTo(w, h * 0.9099); + c.lineTo(w * 0.9672, h * 0.9861); + c.lineTo(w * 0.7926, h); + c.lineTo(w * 0.6629, h * 0.9392); + c.lineTo(w * 0.6629, h * 0.9099); + c.lineTo(w * 0.6167, h * 0.9317); + c.lineTo(w * 0.3813, h * 0.9317); + c.lineTo(w * 0.1478, h * 0.8219); + c.lineTo(w * 0.1478, h * 0.7093); + c.lineTo(w * 0.1365, h * 0.7163); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dRedshift.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dRedshift.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.6541); + c.lineTo(0, h * 0.0933); + c.lineTo(w * 0.1371, h * 0.1573); + c.lineTo(w * 0.1371, h * 0.7157); + c.close(); + c.moveTo(w * 0.1485, h * 0.8219); + c.lineTo(w * 0.1485, h * 0.2864); + c.lineTo(w * 0.3846, h * 0.3941); + c.lineTo(w * 0.3846, h * 0.9317); + c.close(); + c.moveTo(w * 0.6642, h * 0.9392); + c.lineTo(w * 0.6642, h * 0.4011); + c.lineTo(w * 0.796, h * 0.4597); + c.lineTo(w * 0.796, h); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.1371, h * 0.7157); + c.lineTo(w * 0.1371, h * 0.1568); + c.lineTo(w * 0.2027, h * 0.1525); + c.lineTo(w * 0.1498, h * 0.1771); + c.lineTo(w * 0.1498, h * 0.7061); + c.close(); + c.moveTo(w * 0.3846, h * 0.3941); + c.lineTo(w * 0.614, h * 0.3941); + c.lineTo(w * 0.6809, h * 0.3632); + c.lineTo(w * 0.6642, h * 0.4); + c.lineTo(w * 0.6642, h * 0.9067); + c.lineTo(w * 0.6191, h * 0.9317); + c.lineTo(w * 0.3833, h * 0.9317); + c.close(); + c.moveTo(w * 0.796, h * 0.4608); + c.lineTo(w * 0.9639, h * 0.4469); + c.lineTo(w, h * 0.3691); + c.lineTo(w, h * 0.9077); + c.lineTo(w * 0.9686, h * 0.9856); + c.lineTo(w * 0.796, h); + c.close(); + c.moveTo(w * 0.3378, h * 0.0608); + c.lineTo(w * 0.3378, h * 0.0907); + c.lineTo(w * 0.3197, h * 0.1008); + c.close(); + c.moveTo(w * 0.8502, h * 0.2843); + c.lineTo(w * 0.8502, h * 0.3083); + c.lineTo(w * 0.794, h * 0.3136); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.6541); + c.lineTo(0, h * 0.0933); + c.lineTo(w * 0.1371, h * 0.1573); + c.lineTo(w * 0.1371, h * 0.7157); + c.close(); + c.moveTo(w * 0.1485, h * 0.8219); + c.lineTo(w * 0.1485, h * 0.2864); + c.lineTo(w * 0.3846, h * 0.3941); + c.lineTo(w * 0.3846, h * 0.9317); + c.close(); + c.moveTo(w * 0.6642, h * 0.9392); + c.lineTo(w * 0.6642, h * 0.4011); + c.lineTo(w * 0.796, h * 0.4597); + c.lineTo(w * 0.796, h); + c.close(); + c.moveTo(w * 0.1371, h * 0.7157); + c.lineTo(w * 0.1371, h * 0.1568); + c.lineTo(w * 0.2027, h * 0.1525); + c.lineTo(w * 0.1498, h * 0.1771); + c.lineTo(w * 0.1498, h * 0.7061); + c.close(); + c.moveTo(w * 0.3846, h * 0.3941); + c.lineTo(w * 0.614, h * 0.3941); + c.lineTo(w * 0.6809, h * 0.3632); + c.lineTo(w * 0.6642, h * 0.4); + c.lineTo(w * 0.6642, h * 0.9067); + c.lineTo(w * 0.6191, h * 0.9317); + c.lineTo(w * 0.3833, h * 0.9317); + c.close(); + c.moveTo(w * 0.796, h * 0.4608); + c.lineTo(w * 0.9639, h * 0.4469); + c.lineTo(w, h * 0.3691); + c.lineTo(w, h * 0.9077); + c.lineTo(w * 0.9686, h * 0.9856); + c.lineTo(w * 0.796, h); + c.close(); + c.moveTo(w * 0.3378, h * 0.0608); + c.lineTo(w * 0.3378, h * 0.0907); + c.lineTo(w * 0.3197, h * 0.1008); + c.close(); + c.moveTo(w * 0.8502, h * 0.2843); + c.lineTo(w * 0.8502, h * 0.3083); + c.lineTo(w * 0.794, h * 0.3136); + c.close(); + c.moveTo(w * 0.6167, h * 0.3941); + c.lineTo(w * 0.6167, h * 0.9317); + c.moveTo(w * 0.9652, h * 0.4448); + c.lineTo(w * 0.9652, h * 0.9851); + c.stroke(); + + c.restore(); + c.setShadow(false); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + + c.begin(); + c.moveTo(w * 0.4903, h * 0.1259); + c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.5023, h * 0.1189); + c.arcTo(w * 0.2007, h * 0.16, 0, 0, 1, w * 0.5639, h * 0.1333); + c.arcTo(w * 0.602, h * 0.48, 0, 0, 1, w * 0.7157, h * 0.2005); + c.arcTo(w * 0.2006, h * 0.16, 0, 0, 1, w * 0.7565, h * 0.2315); + c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.7445, h * 0.2421); + c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 1, w * 0.6742, h * 0.2251); + c.arcTo(w * 0.602, h * 0.48, 0, 0, 1, w * 0.5204, h * 0.1541); + c.arcTo(w * 0.1338, h * 0.1067, 0, 0, 1, w * 0.4903, h * 0.1259); + c.close(); + c.moveTo(w * 0.4789, h * 0.1275); + c.arcTo(w * 0.0334, h * 0.0267, 0, 0, 0, w * 0.487, h * 0.1461); + c.arcTo(w * 0.1672, h * 0.1333, 0, 0, 0, w * 0.5237, h * 0.1728); + c.arcTo(w * 0.6689, h * 0.5333, 0, 0, 0, w * 0.6609, h * 0.2352); + c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 0, w * 0.7244, h * 0.2501); + c.arcTo(w * 0.0201, h * 0.016, 0, 0, 0, w * 0.7411, h * 0.2475); + c.lineTo(w * 0.5385, h * 0.3408); + c.arcTo(w * 0.0669, h * 0.05333, 0, 0, 1, w * 0.512, h * 0.3397); + c.arcTo(w * 0.2676, h * 0.2133, 0, 0, 1, w * 0.4548, h * 0.3248); + c.arcTo(w * 0.6689, h * 0.5333, 0, 0, 1, w * 0.3084, h * 0.2565); + c.arcTo(w * 0.1672, h * 0.1333, 0, 0, 1, w * 0.2776, h * 0.2304); + c.arcTo(w * 0.01, h * 0.008, 0, 0, 1, w * 0.2776, h * 0.2197); + c.close(); + c.fill(); + + var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff'); + c.setFillColor(fillColor); + c.setLineJoin('round'); + c.setLineCap('round'); + c.begin(); + c.moveTo(w * 0.3398, h * 0.2421); + c.lineTo(w * 0.4769, h * 0.1797); + c.lineTo(w * 0.6341, h * 0.2512); + c.lineTo(w * 0.4936, h * 0.3147); + c.fill(); + + c.begin(); + c.moveTo(w * 0.4334, h * 0.1941); + c.lineTo(w * 0.6207, h * 0.2811); + c.moveTo(w * 0.5338, h * 0.1995); + c.lineTo(w * 0.3866, h * 0.2688); + c.moveTo(w * 0.5873, h * 0.2235); + c.lineTo(w * 0.4334, h * 0.2955); + c.stroke(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(0, h * 0.6517); + c.lineTo(0, h * 0.0912); + c.lineTo(w * 0.0368, h * 0.0155); + c.lineTo(w * 0.2047, 0); + c.lineTo(w * 0.3378, h * 0.0619); + c.lineTo(w * 0.3378, h * 0.0912); + c.lineTo(w * 0.3819, h * 0.0693); + c.lineTo(w * 0.6154, h * 0.0693); + c.lineTo(w * 0.8502, h * 0.1776); + c.lineTo(w * 0.8502, h * 0.3083); + c.lineTo(w * 0.8682, h * 0.3061); + c.lineTo(w, h * 0.3664); + c.lineTo(w, h * 0.9099); + c.lineTo(w * 0.9672, h * 0.9861); + c.lineTo(w * 0.7926, h); + c.lineTo(w * 0.6629, h * 0.9392); + c.lineTo(w * 0.6629, h * 0.9099); + c.lineTo(w * 0.6167, h * 0.9317); + c.lineTo(w * 0.3813, h * 0.9317); + c.lineTo(w * 0.1478, h * 0.8219); + c.lineTo(w * 0.1478, h * 0.7093); + c.lineTo(w * 0.1365, h * 0.7163); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dRedshift.prototype.cst.REDSHIFT, mxShapeAws3dRedshift); + +//********************************************************************************************************************************************************** +//Lambda +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dLambda(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dLambda, mxShape); + +mxShapeAws3dLambda.prototype.cst = { + LAMBDA : 'mxgraph.aws3d.lambda', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dLambda.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 92; + var strokeWidth2 = strokeWidth * h / 109.5; + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + this.background(c, 0, 0, w, h, strokeWidth); + c.setShadow(false); + this.foreground(c, 0, 0, w, h, strokeWidth); +}; + +mxShapeAws3dLambda.prototype.background = function(c, x, y, w, h, strokeWidth) +{ + c.setStrokeWidth(strokeWidth); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.1671); + c.lineTo(w * 0.3424, 0); + c.lineTo(w * 0.663, 0); + c.lineTo(w, h * 0.1671); + c.lineTo(w, h * 0.8365); + c.lineTo(w * 0.663, h); + c.lineTo(w * 0.3424, h); + c.lineTo(0, h * 0.8365); + c.close(); + c.fillAndStroke(); +}; + +mxShapeAws3dLambda.prototype.foreground = function(c, x, y, w, h, strokeWidth) +{ + c.restore(); + c.setShadow(false); + c.setFillColor('#000000'); + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dLambda.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(0, h * 0.3242); + c.lineTo(w * 0.3424, h * 0.4895); + c.lineTo(w * 0.663, h * 0.4895); + c.lineTo(w * 0.663, h); + c.lineTo(w * 0.3424, h); + c.lineTo(0, h * 0.8365); + c.close(); + c.moveTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.close(); + c.moveTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.lineTo(w * 0., h * 0.); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.663, h * 0.4895); + c.lineTo(w, h * 0.3242); + c.lineTo(w, h * 0.8365); + c.lineTo(w * 0.663, h); + c.close(); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.3242); + c.lineTo(w * 0.3424, h * 0.4895); + c.lineTo(w * 0.663, h * 0.4895); + c.lineTo(w, h * 0.3242); + c.moveTo(w * 0.3424, h * 0.4895); + c.lineTo(w * 0.3424, h); + c.moveTo(w * 0.663, h * 0.4895); + c.lineTo(w * 0.663, h); + c.stroke(); + + c.setFillColor("#5E5E5E"); + + c.begin(); + c.moveTo(w * 0.3804, h * 0.1169); + c.arcTo(w * 0.5435, h * 0.4566, 0, 0, 1, w * 0.6087, h * 0.1123); + c.arcTo(w * 0.33804, h * 0.3196, 0, 0, 1, w * 0.725, h * 0.1553); + c.arcTo(w * 0.1304, h * 0.1096, 0, 0, 1, w * 0.7924, h * 0.2402); + c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.725, h * 0.3333); + c.arcTo(w * 0.4416, h * 0.274, 0, 0, 1, w * 0.6087, h * 0.3772); + c.arcTo(w * 0.5435, h * 0.4566, 0, 0, 1, w * 0.3804, h * 0.3708); + c.arcTo(w * 0.3804, h * 0.3196, 0, 0, 1, w * 0.2772, h * 0.3324); + c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.2163, h * 0.2539); + c.arcTo(w * 0.1522, h * 0.1279, 0, 0, 1, w * 0.2663, h * 0.1644); + c.arcTo(w * 0.3804, h * 0.3196, 0, 0, 1, w * 0.3804, h * 0.1169); + c.fill(); + + c.setFillColor("#ffffff"); + + c.begin(); + c.moveTo(w * 0.5565, h * 0.2174); + c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 0, w * 0.5837, h * 0.1945); + c.arcTo(w * 0.0326, h * 0.0274, 0, 0, 0, w * 0.5793, h * 0.1671); + c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 0, w * 0.525, h * 0.1598); + c.arcTo(w * 0.0652, h * 0.0548, 0, 0, 1, w * 0.5543, h * 0.1443); + c.arcTo(w * 0.0761, h * 0.0639, 0, 0, 1, w * 0.6163, h * 0.1662); + c.arcTo(w * 0.0598, h * 0.0502, 0, 0, 1, w * 0.6087, h * 0.2091); + c.lineTo(w * 0.5, h * 0.3032); + c.arcTo(w * 0.0978, h * 0.0822, 0, 0, 0, w * 0.4728, h * 0.3379); + c.arcTo(w * 0.0272, h * 0.0228, 0, 0, 0, w * 0.4924, h * 0.3571); + c.arcTo(w * 0.0326, h * 0.0274, 0, 0, 1, w * 0.4489, h * 0.3571); + c.arcTo(w * 0.038, h * 0.032, 0, 0, 1, w * 0.437, h * 0.3242); + c.arcTo(w * 0.1087, h * 0.0913, 0, 0, 1, w * 0.4674, h * 0.2886); + c.lineTo(w * 0.5141, h * 0.2557); + c.lineTo(w * 0.3185, h * 0.2895); + c.lineTo(w * 0.2641, h * 0.2648); + c.close(); + c.fill(); + + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + + c.begin(); + c.moveTo(0, h * 0.1671); + c.lineTo(w * 0.3424, 0); + c.lineTo(w * 0.663, 0); + c.lineTo(w, h * 0.1671); + c.lineTo(w, h * 0.8365); + c.lineTo(w * 0.663, h); + c.lineTo(w * 0.3424, h); + c.lineTo(0, h * 0.8365); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dLambda.prototype.cst.LAMBDA, mxShapeAws3dLambda); + +//********************************************************************************************************************************************************** +//EBS 2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws3dEbs2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws3dEbs2, mxShape); + +mxShapeAws3dEbs2.prototype.cst = { + EBS2 : 'mxgraph.aws3d.ebs2', + SHADING_COLORS : 'shadingCols' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws3dEbs2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); + var strokeWidth1 = strokeWidth * w / 92; + var strokeWidth2 = strokeWidth * h / 60; + var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); + + strokeWidth = Math.min(strokeWidth1, strokeWidth2); + + c.setStrokeWidth(strokeWidth); + c.setShadow(false); + c.save(); + c.save(); + c.setStrokeWidth(2 * strokeWidth); + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + if(isShadow == 1) + { + c.setShadow(true); + } + + c.begin(); + c.moveTo(0, h * 0.5276); + c.lineTo(0, h * 0.4188); + c.lineTo(w * 0.071, h * 0.2898); + c.lineTo(w * 0.4033, 0); + c.lineTo(w * 0.9301, h * 0.464); + c.lineTo(w, h * 0.5863); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.close(); + c.fillAndStroke(); + + c.restore(); + c.setFillColor('#000000'); + + var shading = mxUtils.getValue(this.state.style, mxShapeAws3dEbs2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); + var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); + (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); + + c.begin(); + c.moveTo(w * 0.071, h * 0.2948); + c.lineTo(w * 0.6011, h * 0.7621); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.lineTo(0, h * 0.5276); + c.lineTo(0, h * 0.4137); + c.close(); + c.fill(); + + (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); + c.begin(); + c.moveTo(w * 0.6011, h * 0.7655); + c.lineTo(w * 0.9344, h * 0.4724); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.close(); + c.fill(); + + c.restore(); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(w * 0.071, h * 0.2948); + c.lineTo(w * 0.6011, h * 0.7621); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.lineTo(0, h * 0.5276); + c.lineTo(0, h * 0.4137); + c.close(); + c.moveTo(w * 0.6011, h * 0.7655); + c.lineTo(w * 0.9344, h * 0.4724); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.close(); + c.moveTo(w * 0.0033, h * 0.5276); + c.lineTo(w * 0.071, h * 0.2898); + c.moveTo(w * 0.5325, h * 0.9976); + c.lineTo(w * 0.603, h * 0.7593); + c.stroke(); + + c.setStrokeWidth(2 * strokeWidth); + c.setLineCap('round'); + + c.begin(); + c.moveTo(w * 0.3388, h * 0.3802); + c.lineTo(w * 0.5027, h * 0.2345); + c.lineTo(w * 0.6667, h * 0.3802); + c.lineTo(w * 0.5027, h * 0.526); + c.close(); + c.moveTo(w * 0.4426, h * 0.3802); + c.lineTo(w * 0.5027, h * 0.3266); + c.lineTo(w * 0.5628, h * 0.3802); + c.lineTo(w * 0.5027, h * 0.4338); + c.close(); + c.moveTo(w * 0.3867, h * 0.3284); + c.lineTo(w * 0.3541, h * 0.2998); + c.moveTo(w * 0.4436, h * 0.2748); + c.lineTo(w * 0.4077, h * 0.2412); + c.moveTo(w * 0.5704, h * 0.2803); + c.lineTo(w * 0.5992, h * 0.2513); + c.moveTo(w * 0.6231, h * 0.3284); + c.lineTo(w * 0.6503, h * 0.3032); + c.moveTo(w * 0.622, h * 0.4338); + c.lineTo(w * 0.6557, h * 0.4606); + c.moveTo(w * 0.5667, h * 0.4845); + c.lineTo(w * 0.5992, h * 0.5156); + c.moveTo(w * 0.4414, h * 0.4874); + c.lineTo(w * 0.412, h * 0.5159); + c.moveTo(w * 0.3889, h * 0.4405); + c.lineTo(w * 0.3607, h * 0.4657); + c.stroke(); + + c.setStrokeColor('#292929'); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h * 0.5276); + c.lineTo(0, h * 0.4188); + c.lineTo(w * 0.071, h * 0.2898); + c.lineTo(w * 0.4033, 0); + c.lineTo(w * 0.9301, h * 0.464); + c.lineTo(w, h * 0.5863); + c.lineTo(w, h * 0.7035); + c.lineTo(w * 0.6667, h); + c.lineTo(w * 0.5355, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAws3dEbs2.prototype.cst.EBS2, mxShapeAws3dEbs2); + +//********************************************************************************************************************************************************** +//Elasticache +//********************************************************************************************************************************************************** +///** +//* Extends mxShape. +//*/ +//function mxShapeAws3dElasticache(bounds, fill, stroke, strokewidth) +//{ +// mxShape.call(this); +// this.bounds = bounds; +// this.fill = fill; +// this.stroke = stroke; +// this.strokewidth = (strokewidth != null) ? strokewidth : 1; +//}; +// +///** +//* Extends mxShape. +//*/ +//mxUtils.extend(mxShapeAws3dElasticache, mxShape); +// +//mxShapeAws3dElasticache.prototype.cst = { +// ELASTICACHE : 'mxgraph.aws3d.elasticache', +// SHADING_COLORS : 'shadingCols' +//}; +// +///** +//* Function: paintVertexShape +//* +//* Paints the vertex shape. +//*/ +//mxShapeAws3dElasticache.prototype.paintVertexShape = function(c, x, y, w, h) +//{ +// c.translate(x, y); +// +// var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); +// var strokeWidth1 = strokeWidth * w / 123; +// var strokeWidth2 = strokeWidth * h / 143; +// var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); +// +// strokeWidth = Math.min(strokeWidth1, strokeWidth2); +// +// c.setStrokeWidth(strokeWidth); +// c.setShadow(false); +// c.save(); +// c.save(); +// c.setStrokeWidth(2 * strokeWidth); +// c.setStrokeColor('#292929'); +// c.setLineJoin('round'); +// +// if(isShadow == 1) +// { +// c.setShadow(true); +// } +// +// c.begin(); +// c.moveTo(0, h * 0.7483); +// c.lineTo(0, h * 0.6294); +// c.lineTo(w * 0.061, h * 0.5944); +// c.lineTo(0, h * 0.563); +// c.lineTo(0, h * 0.4406); +// c.lineTo(w * 0.061, h * 0.4091); +// c.lineTo(0, h * 0.3776); +// c.lineTo(0, h * 0.2517); +// c.lineTo(w * 0.5041, 0); +// c.lineTo(w, h * 0.2483); +// c.lineTo(w, h * 0.3741); +// c.lineTo(w * 0.939, h * 0.4091); +// c.lineTo(w, h * 0.4406); +// c.lineTo(w, h * 0.563); +// c.lineTo(w * 0.939, h * 0.5944); +// c.lineTo(w, h * 0.6294); +// c.lineTo(w, h * 0.751); +// c.lineTo(w * 0.5041, h); +// c.close(); +// c.fillAndStroke(); +// +// c.restore(); +// c.setFillColor('#000000'); +// +// var shading = mxUtils.getValue(this.state.style, mxShapeAws3dElasticache.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); +// var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); +// (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); +// +// c.begin(); +// c.moveTo(0, h * 0.2517); +// c.lineTo(w * 0.5041, h * 0.4965); +// c.lineTo(w * 0.5041, h * 0.6294); +// c.lineTo(0, h * 0.3776); +// c.close(); +// c.moveTo(0, h * 0.4406); +// c.lineTo(w * 0.5041, h * 0.6853); +// c.lineTo(w * 0.5041, h * 0.8112); +// c.lineTo(0, h * 0.5629); +// c.close(); +// c.moveTo(0, h * 0.6294); +// c.lineTo(w * 0.5041, h * 0.8741); +// c.lineTo(w * 0.5041, h); +// c.lineTo(0, h * 0.7483); +// c.close(); +// c.moveTo(w * 0.6179, h * 0.2517); +// c.lineTo(w * 0.752, h * 0.1853); +// c.lineTo(w * 0.752, h * 0.3217); +// c.close(); +// c.fill(); +// +// (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); +// c.begin(); +// c.moveTo(w * 0.5041, h * 0.4965); +// c.lineTo(w, h * 0.2517); +// c.lineTo(w, h * 0.3741); +// c.lineTo(w * 0.5041, h * 0.6294); +// c.close(); +// c.moveTo(w * 0.5041, h * 0.6853); +// c.lineTo(w, h * 0.4406); +// c.lineTo(w, h * 0.5629); +// c.lineTo(w * 0.5041, h * 0.8112); +// c.close(); +// c.moveTo(w * 0.5041, h * 0.8741); +// c.lineTo(w, h * 0.6294); +// c.lineTo(w, h * 0.7483); +// c.lineTo(w * 0.5041, h); +// c.close(); +// c.moveTo(w * 0.752, h * 0.1853); +// c.lineTo(w * 0.8821, h * 0.2517); +// c.lineTo(w * 0.752, h * 0.3217); +// c.close(); +// c.fill(); +// +// c.restore(); +// c.setLineJoin('round'); +// +// c.begin(); +// c.moveTo(0, h * 0.2517); +// c.lineTo(w * 0.5041, h * 0.4965); +// c.lineTo(w * 0.5041, h * 0.6294); +// c.lineTo(0, h * 0.3776); +// c.close(); +// c.moveTo(0, h * 0.4406); +// c.lineTo(w * 0.5041, h * 0.6853); +// c.lineTo(w * 0.5041, h * 0.8112); +// c.lineTo(0, h * 0.5629); +// c.close(); +// c.moveTo(0, h * 0.6294); +// c.lineTo(w * 0.5041, h * 0.8741); +// c.lineTo(w * 0.5041, h); +// c.lineTo(0, h * 0.7483); +// c.close(); +// c.moveTo(w * 0.5041, h * 0.4965); +// c.lineTo(w, h * 0.2517); +// c.lineTo(w, h * 0.3741); +// c.lineTo(w * 0.5041, h * 0.6294); +// c.close(); +// c.moveTo(w * 0.5041, h * 0.6853); +// c.lineTo(w, h * 0.4406); +// c.lineTo(w, h * 0.5629); +// c.lineTo(w * 0.5041, h * 0.8112); +// c.close(); +// c.moveTo(w * 0.5041, h * 0.8741); +// c.lineTo(w, h * 0.6294); +// c.lineTo(w, h * 0.7483); +// c.lineTo(w * 0.5041, h); +// c.close(); +// c.stroke(); +// +// c.setStrokeWidth(2 * strokeWidth); +// c.setLineCap('round'); +// var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); +// c.setFillColor(strokeColor); +// +// c.begin(); +// c.moveTo(w * 0.222, h * 0.2028); +// c.arcTo(w * 0.1463, h * 0.1259, 0, 0, 1, w * 0.3154, h * 0.2014); +// c.arcTo(w * 0.122, h * 0.1049, 0, 0, 1, w * 0.3642, h * 0.2245); +// c.arcTo(w * 0.0325, h * 0.028, 0, 0, 1, w * 0.3618, h * 0.2552); +// c.arcTo(w * 0.122, h * 0.1049, 0, 0, 1, w * 0.3252, h * 0.2798); +// c.arcTo(w * 0.1626, h * 0.1399, 0, 0, 1, w * 0.2276, h * 0.2797); +// c.arcTo(w * 0.0976, h * 0.0839, 0, 0, 1, w * 0.187, h * 0.2622); +// c.arcTo(w * 0.0325, h * 0.028, 0, 0, 1, w * 0.187, h * 0.2238); +// c.arcTo(w * 0.0976, h * 0.0839, 0, 0, 1, w * 0.222, h * 0.2028); +// c.close(); +// c.moveTo(w * 0.3618, h * 0.1434); +// c.lineTo(w * 0.4309, h * 0.1189); +// c.lineTo(w * 0.4309, h * 0.0755); +// c.lineTo(w * 0.4992, h * 0.1014); +// c.lineTo(w * 0.5813, h * 0.0874); +// c.lineTo(w * 0.5488, h * 0.1294); +// c.lineTo(w * 0.6057, h * 0.1608); +// c.lineTo(w * 0.5163, h * 0.1608); +// c.lineTo(w * 0.4634, h * 0.2028); +// c.lineTo(w * 0.4431, h * 0.1538); +// c.close(); +// c.moveTo(w * 0.3821, h * 0.3601); +// c.lineTo(w * 0.5894, h * 0.3322); +// c.lineTo(w * 0.5325, h * 0.4394); +// c.close(); +// c.fill(); +// +// c.setStrokeColor('#292929'); +// c.setLineJoin('round'); +// +// c.begin(); +// c.moveTo(0, h * 0.7483); +// c.lineTo(0, h * 0.6294); +// c.lineTo(w * 0.061, h * 0.5944); +// c.lineTo(0, h * 0.563); +// c.lineTo(0, h * 0.4406); +// c.lineTo(w * 0.061, h * 0.4091); +// c.lineTo(0, h * 0.3776); +// c.lineTo(0, h * 0.2517); +// c.lineTo(w * 0.5041, 0); +// c.lineTo(w, h * 0.2483); +// c.lineTo(w, h * 0.3741); +// c.lineTo(w * 0.939, h * 0.4091); +// c.lineTo(w, h * 0.4406); +// c.lineTo(w, h * 0.563); +// c.lineTo(w * 0.939, h * 0.5944); +// c.lineTo(w, h * 0.6294); +// c.lineTo(w, h * 0.751); +// c.lineTo(w * 0.5041, h); +// c.close(); +// c.stroke(); +//}; +// +//mxCellRenderer.registerShape(mxShapeAws3dElasticache.prototype.cst.ELASTICACHE, mxShapeAws3dElasticache); + +//********************************************************************************************************************************************************** +//Kinesis Stream +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +//function mxShapeAws3dKinesisStream(bounds, fill, stroke, strokewidth) +//{ +// mxShape.call(this); +// this.bounds = bounds; +// this.fill = fill; +// this.stroke = stroke; +// this.strokewidth = (strokewidth != null) ? strokewidth : 1; +//}; +// +///** +//* Extends mxShape. +//*/ +//mxUtils.extend(mxShapeAws3dKinesisStream, mxShape); +// +//mxShapeAws3dKinesisStream.prototype.cst = { +// KINESIS_STREAM : 'mxgraph.aws3d.kinesisStream', +// SHADING_COLORS : 'shadingCols' +//}; +// +///** +//* Function: paintVertexShape +//* +//* Paints the vertex shape. +//*/ +//mxShapeAws3dKinesisStream.prototype.paintVertexShape = function(c, x, y, w, h) +//{ +// c.translate(x, y); +// +// var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); +// var strokeWidth1 = strokeWidth * w / 220; +// var strokeWidth2 = strokeWidth * h / 160; +// var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); +// +// strokeWidth = Math.min(strokeWidth1, strokeWidth2); +// +// c.setStrokeWidth(strokeWidth); +// c.setShadow(false); +// c.save(); +// c.save(); +// c.setStrokeWidth(2 * strokeWidth); +// c.setStrokeColor('#292929'); +// c.setLineJoin('round'); +// +// if(isShadow == 1) +// { +// c.setShadow(true); +// } +// +// c.begin(); +// c.moveTo(0, h * 0.5503); +// c.lineTo(w * 0.0455, h * 0.4623); +// c.lineTo(w * 0.6054, h * 0.0157); +// c.lineTo(w * 0.6623, h * 0.0629); +// c.lineTo(w * 0.7396, 0); +// c.lineTo(w * 0.8239, h * 0.0692); +// c.lineTo(w * 0.8671, h * 0.2233); +// c.lineTo(w * 0.9513, h * 0.2943); +// c.lineTo(w, h * 0.4528); +// c.lineTo(w * 0.9595, h * 0.5365); +// c.lineTo(w * 0.396, h * 0.9843); +// c.lineTo(w * 0.3391, h * 0.9403); +// c.lineTo(w * 0.2617, h); +// c.lineTo(w * 0.173, h * 0.9308); +// c.lineTo(w * 0.1297, h * 0.7736); +// c.lineTo(w * 0.0432, h * 0.7044); +// c.close(); +// c.fillAndStroke(); +// +// c.restore(); +// c.setFillColor('#000000'); +// +// var shading = mxUtils.getValue(this.state.style, mxShapeAws3dKinesisStream.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); +// var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); +// (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); +// +// c.begin(); +// c.moveTo(w * 0.0432, h * 0.4654); +// c.lineTo(w * 0.132, h * 0.5314); +// c.lineTo(w * 0.1775, h * 0.4465); +// c.lineTo(w * 0.264, h * 0.5189); +// c.lineTo(w * 0.3072, h * 0.673); +// c.lineTo(w * 0.396, h * 0.7453); +// c.lineTo(w * 0.4392, h * 0.8994); +// c.lineTo(w * 0.396, h * 0.9843); +// c.lineTo(w * 0.305, h * 0.9151); +// c.lineTo(w * 0.2617, h); +// c.lineTo(w * 0.173, h * 0.9308); +// c.lineTo(w * 0.1297, h * 0.7736); +// c.lineTo(w * 0.0432, h * 0.7044); +// c.lineTo(0, h * 0.5503); +// c.close(); +// c.fill(); +// +// (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); +// c.begin(); +// c.moveTo(w * 0.264, h * 0.5204); +// c.lineTo(w * 0.8239, h * 0.0676); +// c.lineTo(w * 0.8694, h * 0.228); +// c.lineTo(w * 0.3072, h * 0.673); +// c.close(); +// c.moveTo(w * 0.3937, h * 0.7453); +// c.lineTo(w * 0.9536, h * 0.2956); +// c.lineTo(w, h * 0.4528); +// c.lineTo(w * 0.9558, h * 0.5377); +// c.lineTo(w * 0.396, h * 0.9843); +// c.lineTo(w * 0.4392, h * 0.8994); +// c.close(); +// c.moveTo(w * 0.2617, h); +// c.lineTo(w * 0.305, h * 0.9151); +// c.lineTo(w * 0.3368, h * 0.9403); +// c.close(); +// c.fill(); +// +// c.setAlpha('0.5'); +// c.begin(); +// c.moveTo(w * 0.0546, h * 0.5094); +// c.lineTo(w * 0.1161, h * 0.5597); +// c.lineTo(w * 0.1479, h * 0.6761); +// c.lineTo(w * 0.1183, h * 0.7264); +// c.lineTo(w * 0.0569, h * 0.6792); +// c.lineTo(w * 0.025, h * 0.566); +// c.close(); +// c.moveTo(w * 0.1889, h * 0.4937); +// c.lineTo(w * 0.2503, h * 0.544); +// c.lineTo(w * 0.2822, h * 0.6572); +// c.lineTo(w * 0.2526, h * 0.717); +// c.lineTo(w * 0.1934, h * 0.6667); +// c.lineTo(w * 0.1593, h * 0.5566); +// c.close(); +// c.moveTo(w * 0.3195, h * 0.7201); +// c.lineTo(w * 0.3801, h * 0.7704); +// c.lineTo(w * 0.4137, h * 0.8805); +// c.lineTo(w * 0.3819, h * 0.9403); +// c.lineTo(w * 0.3209, h * 0.8912); +// c.lineTo(w * 0.2904, h * 0.783); +// c.close(); +// c.moveTo(w * 0.1866, h * 0.7358); +// c.lineTo(w * 0.2458, h * 0.783); +// c.lineTo(w * 0.2776, h * 0.8962); +// c.lineTo(w * 0.2481, h * 0.956); +// c.lineTo(w * 0.1866, h * 0.9057); +// c.lineTo(w * 0.157, h * 0.7893); +// c.close(); +// c.fill(); +// +// c.restore(); +// c.setLineJoin('round'); +// +// c.begin(); +// c.moveTo(w * 0.0432, h * 0.4654); +// c.lineTo(w * 0.132, h * 0.5314); +// c.lineTo(w * 0.1775, h * 0.4465); +// c.lineTo(w * 0.264, h * 0.5189); +// c.lineTo(w * 0.3072, h * 0.673); +// c.lineTo(w * 0.396, h * 0.7453); +// c.lineTo(w * 0.4392, h * 0.8994); +// c.lineTo(w * 0.396, h * 0.9843); +// c.lineTo(w * 0.305, h * 0.9151); +// c.lineTo(w * 0.2617, h); +// c.lineTo(w * 0.173, h * 0.9308); +// c.lineTo(w * 0.1297, h * 0.7736); +// c.lineTo(w * 0.0432, h * 0.7044); +// c.lineTo(0, h * 0.5503); +// c.close(); +// c.moveTo(w * 0.264, h * 0.5204); +// c.lineTo(w * 0.8239, h * 0.0676); +// c.lineTo(w * 0.8694, h * 0.228); +// c.lineTo(w * 0.3072, h * 0.673); +// c.close(); +// c.moveTo(w * 0.3937, h * 0.7453); +// c.lineTo(w * 0.9536, h * 0.2956); +// c.lineTo(w, h * 0.4528); +// c.lineTo(w * 0.9558, h * 0.5377); +// c.lineTo(w * 0.396, h * 0.9843); +// c.lineTo(w * 0.4392, h * 0.8994); +// c.close(); +// c.moveTo(w * 0.2617, h); +// c.lineTo(w * 0.305, h * 0.9151); +// c.lineTo(w * 0.3368, h * 0.9403); +// c.close(); +// c.moveTo(w * 0.0546, h * 0.5094); +// c.lineTo(w * 0.1161, h * 0.5597); +// c.lineTo(w * 0.1479, h * 0.6761); +// c.lineTo(w * 0.1183, h * 0.7264); +// c.lineTo(w * 0.0569, h * 0.6792); +// c.lineTo(w * 0.025, h * 0.566); +// c.close(); +// c.moveTo(w * 0.1889, h * 0.4937); +// c.lineTo(w * 0.2503, h * 0.544); +// c.lineTo(w * 0.2822, h * 0.6572); +// c.lineTo(w * 0.2526, h * 0.717); +// c.lineTo(w * 0.1934, h * 0.6667); +// c.lineTo(w * 0.1593, h * 0.5566); +// c.close(); +// c.moveTo(w * 0.3195, h * 0.7201); +// c.lineTo(w * 0.3801, h * 0.7704); +// c.lineTo(w * 0.4137, h * 0.8805); +// c.lineTo(w * 0.3819, h * 0.9403); +// c.lineTo(w * 0.3209, h * 0.8912); +// c.lineTo(w * 0.2904, h * 0.783); +// c.close(); +// c.moveTo(w * 0.1866, h * 0.7358); +// c.lineTo(w * 0.2458, h * 0.783); +// c.lineTo(w * 0.2776, h * 0.8962); +// c.lineTo(w * 0.2481, h * 0.956); +// c.lineTo(w * 0.1866, h * 0.9057); +// c.lineTo(w * 0.157, h * 0.7893); +// c.close(); +// c.moveTo(w * 0.1775, h * 0.4465); +// c.lineTo(w * 0.7374, 0); +// c.moveTo(w * 0.4392, h * 0.8994); +// c.lineTo(w, h * 0.4528); +// c.moveTo(w * 0.1331, h * 0.533); +// c.lineTo(w * 0.1809, h * 0.6934); +// c.lineTo(w * 0.2617, h * 0.7626); +// c.lineTo(w * 0.3061, h * 0.9151); +// c.moveTo(w * 0.1295, h * 0.7764); +// c.lineTo(w * 0.1807, h * 0.6928); +// c.moveTo(w * 0.264, h * 0.7642); +// c.lineTo(w * 0.3095, h * 0.673); +// c.moveTo(w * 0.3641, h * 0.2327); +// c.lineTo(w * 0.3241, h * 0.2673); +// c.lineTo(w * 0.3619, h * 0.2987); +// c.moveTo(w * 0.3468, h * 0.2736); +// c.lineTo(w * 0.3596, h * 0.261); +// c.moveTo(w * 0.3573, h * 0.283); +// c.lineTo(w * 0.3823, h * 0.261); +// c.moveTo(w * 0.4916, h * 0.217); +// c.lineTo(w * 0.4483, h * 0.2547); +// c.lineTo(w * 0.5052, h * 0.3019); +// c.moveTo(w * 0.4679, h * 0.2591); +// c.lineTo(w * 0.4802, h * 0.2478); +// c.moveTo(w * 0.4811, h * 0.2673); +// c.lineTo(w * 0.5098, h * 0.2421); +// c.moveTo(w * 0.4939, h * 0.2767); +// c.lineTo(w * 0.5121, h * 0.261); +// c.moveTo(w * 0.5043, h * 0.2868); +// c.lineTo(w * 0.5371, h * 0.2579); +// c.moveTo(w * 0.6259, h * 0.4371); +// c.lineTo(w * 0.5826, h * 0.4717); +// c.lineTo(w * 0.6418, h * 0.522); +// c.moveTo(w * 0.6039, h * 0.4755); +// c.lineTo(w * 0.6187, h * 0.463); +// c.moveTo(w * 0.6158, h * 0.4862); +// c.lineTo(w * 0.6418, h * 0.4623); +// c.moveTo(w * 0.6281, h * 0.4969); +// c.lineTo(w * 0.6486, h * 0.478); +// c.moveTo(w * 0.6395, h * 0.5063); +// c.lineTo(w * 0.6736, h * 0.478); +// +// c.stroke(); +// +// c.setStrokeWidth(2 * strokeWidth); +// c.setLineCap('round'); +// +// c.setStrokeColor('#292929'); +// c.setLineJoin('round'); +// +// c.begin(); +// c.moveTo(0, h * 0.5503); +// c.lineTo(w * 0.0455, h * 0.4623); +// c.lineTo(w * 0.6054, h * 0.0157); +// c.lineTo(w * 0.6623, h * 0.0629); +// c.lineTo(w * 0.7396, 0); +// c.lineTo(w * 0.8239, h * 0.0692); +// c.lineTo(w * 0.8671, h * 0.2233); +// c.lineTo(w * 0.9513, h * 0.2943); +// c.lineTo(w, h * 0.4528); +// c.lineTo(w * 0.9595, h * 0.5365); +// c.lineTo(w * 0.396, h * 0.9843); +// c.lineTo(w * 0.3391, h * 0.9403); +// c.lineTo(w * 0.2617, h); +// c.lineTo(w * 0.173, h * 0.9308); +// c.lineTo(w * 0.1297, h * 0.7736); +// c.lineTo(w * 0.0432, h * 0.7044); +// c.close(); +// c.stroke(); +//}; +// +//mxCellRenderer.registerShape(mxShapeAws3dKinesisStream.prototype.cst.KINESIS_STREAM, mxShapeAws3dKinesisStream); + +//********************************************************************************************************************************************************** +//SQS 2 +//********************************************************************************************************************************************************** +///** +//* Extends mxShape. +//*/ +//function mxShapeAws3dSqs2(bounds, fill, stroke, strokewidth) +//{ +// mxShape.call(this); +// this.bounds = bounds; +// this.fill = fill; +// this.stroke = stroke; +// this.strokewidth = (strokewidth != null) ? strokewidth : 1; +//}; +// +///** +//* Extends mxShape. +//*/ +//mxUtils.extend(mxShapeAws3dSqs2, mxShape); +// +//mxShapeAws3dSqs2.prototype.cst = { +// SQS2 : 'mxgraph.aws3d.sqs2', +// SHADING_COLORS : 'shadingCols' +//}; +// +///** +//* Function: paintVertexShape +//* +//* Paints the vertex shape. +//*/ +//mxShapeAws3dSqs2.prototype.paintVertexShape = function(c, x, y, w, h) +//{ +// c.translate(x, y); +// +// var strokeWidth = parseFloat(mxUtils.getValue(this.state.style, 'strokeWidth', '1')); +// var strokeWidth1 = strokeWidth * w / 160; +// var strokeWidth2 = strokeWidth * h / 93; +// var isShadow = parseFloat(mxUtils.getValue(this.state.style, 'shadow', '0')); +// +// strokeWidth = Math.min(strokeWidth1, strokeWidth2); +// +// c.setStrokeWidth(strokeWidth); +// c.setShadow(false); +// c.save(); +// c.save(); +// c.setStrokeWidth(2 * strokeWidth); +// c.setStrokeColor('#292929'); +// c.setLineJoin('round'); +// +// if(isShadow == 1) +// { +// c.setShadow(true); +// } +// +// c.begin(); +// c.moveTo(0, h * 0.4737); +// c.lineTo(w * 0.4652, 0); +// c.lineTo(w * 0.6231, h * 0.0602); +// c.lineTo(w * 0.6231, h * 0.1676); +// c.lineTo(w * 0.1567, h * 0.6316); +// c.close(); +// c.moveTo(w * 0.3756, h * 0.8443); +// c.lineTo(w * 0.3756, h * 0.7454); +// c.lineTo(w * 0.8439, h * 0.275); +// c.lineTo(w, h * 0.5328); +// c.lineTo(w * 0.5311, h); +// c.close(); +// c.fillAndStroke(); +// +// c.restore(); +// c.setFillColor('#000000'); +// +// var shading = mxUtils.getValue(this.state.style, mxShapeAws3dSqs2.prototype.cst.SHADING_COLORS, '0.1,0.3').toString().split(','); +// var flipH = mxUtils.getValue(this.state.style, 'flipH', '0'); +// (flipH == '0') ? c.setAlpha(shading[0]) : c.setAlpha(shading[1]); +// +// c.begin(); +// c.moveTo(0, h * 0.4737); +// c.lineTo(w * 0.1567, h * 0.5274); +// c.lineTo(w * 0.1567, h * 0.6394); +// c.close(); +// c.moveTo(w * 0.3756, h * 0.7454); +// c.lineTo(w * 0.5311, h); +// c.lineTo(w * 0.3756, h * 0.8443); +// c.close(); +// c.fill(); +// +// (flipH == '0') ? c.setAlpha(shading[1]) : c.setAlpha(shading[0]); +// c.begin(); +// c.moveTo(w * 0.1567, h * 0.5274); +// c.lineTo(w * 0.6231, h * 0.0602); +// c.lineTo(w * 0.6231, h * 0.1676); +// c.lineTo(w * 0.1567, h * 0.6294); +// c.close(); +// c.fill(); +// +// c.restore(); +// c.setLineJoin('round'); +// +// c.begin(); +// c.moveTo(0, h * 0.4737); +// c.lineTo(w * 0.1567, h * 0.5274); +// c.lineTo(w * 0.1567, h * 0.6294); +// c.close(); +// c.moveTo(w * 0.3756, h * 0.7454); +// c.lineTo(w * 0.5311, h); +// c.lineTo(w * 0.3756, h * 0.8443); +// c.close(); +// c.moveTo(w * 0.1567, h * 0.5274); +// c.lineTo(w * 0.6231, h * 0.0602); +// c.lineTo(w * 0.6231, h * 0.1676); +// c.lineTo(w * 0.1567, h * 0.6294); +// c.close(); +// c.stroke(); +// +// c.setStrokeWidth(2 * strokeWidth); +// c.setLineCap('round'); +// +// c.setStrokeColor('#292929'); +// c.setLineJoin('round'); +// +// c.begin(); +// c.moveTo(0, h * 0.4737); +// c.lineTo(w * 0.4652, 0); +// c.lineTo(w * 0.6231, h * 0.0602); +// c.lineTo(w * 0.6231, h * 0.1676); +// c.lineTo(w * 0.1567, h * 0.6316); +// c.close(); +// c.moveTo(w * 0.3756, h * 0.8443); +// c.lineTo(w * 0.3756, h * 0.7454); +// c.lineTo(w * 0.8439, h * 0.275); +// c.lineTo(w, h * 0.5328); +// c.lineTo(w * 0.5311, h); +// c.close(); +// c.stroke(); +// +// c.setFillColor('#F4B934'); +// +// c.begin(); +// c.moveTo(w * 0.1256, h * 0.812); +// c.lineTo(w * 0.24, h * 0.7605); +// c.lineTo(w * 0.1853, h * 0.8829); +// c.close(); +// c.moveTo(w * 0.2417, h * 0.6957); +// c.lineTo(w * 0.3562, h * 0.6441); +// c.lineTo(w * 0.3014, h * 0.7666); +// c.close(); +// c.moveTo(w * 0.3588, h * 0.5793); +// c.lineTo(w * 0.4733, h * 0.5277); +// c.lineTo(w * 0.4185, h * 0.6502); +// c.close(); +// c.moveTo(w * 0.477, h * 0.4611); +// c.lineTo(w * 0.5914, h * 0.4096); +// c.lineTo(w * 0.5367, h * 0.532); +// c.close(); +// c.moveTo(w * 0.591, h * 0.343); +// c.lineTo(w * 0.7054, h * 0.2914); +// c.lineTo(w * 0.6507, h * 0.4139); +// c.close(); +// c.moveTo(w * 0.7091, h * 0.2302); +// c.lineTo(w * 0.8236, h * 0.1786); +// c.lineTo(w * 0.7688, h * 0.3011); +// c.close(); +// c.fillAndStroke(); +//}; +// +//mxCellRenderer.registerShape(mxShapeAws3dSqs2.prototype.cst.SQS2, mxShapeAws3dSqs2); + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxAWS4.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxAWS4.js new file mode 100644 index 0000000000000..44b40508bdc27 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxAWS4.js @@ -0,0 +1,421 @@ +/** + * $Id: mxAws4.js,v 1.0 2018/16/11 07:05:39 mate Exp $ + * Copyright (c) 2006-2018, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Product Icon +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws4ProductIcon(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws4ProductIcon, mxShape); + +mxShapeAws4ProductIcon.prototype.cst = { + PRODUCT_ICON : 'mxgraph.aws4.productIcon' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws4ProductIcon.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var opacity = parseFloat(mxUtils.getValue(this.style, 'opacity', '100')); + var op1 = opacity; + var op2 = opacity; + + if (fillColor == 'none') + { + op1 = 0; + } + + if (gradientColor == 'none') + { + op2 = 0; + } + + var ind = 1; + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', 'none'); + c.setFillColor(strokeColor); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fill(); + + c.setShadow(false); + var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff'); + var gradientColor = mxUtils.getValue(this.state.style, 'gradientColor', fillColor); + var gradientDir = mxUtils.getValue(this.state.style, 'gradientDirection', 'south'); + + c.setFillColor(fillColor); + c.setGradient(fillColor, gradientColor, 0, 0, w, h, gradientDir, op1, op2); + + c.begin(); + c.moveTo(ind, ind); + c.lineTo(w - ind, ind); + c.lineTo(w - ind, w - ind); + c.lineTo(ind, w - ind); + c.close(); + c.fill(); + + + var prIcon = mxUtils.getValue(this.state.style, 'prIcon', ''); + var stencil = mxStencilRegistry.getStencil(prIcon); + + if (stencil != null) + { + c.setFillColor(strokeColor); + c.setStrokeColor('none'); +// stencil.drawShape(c, this, w * 0.1, h * 0.1, w * 0.8, h * 0.8); + stencil.drawShape(c, this, ind + w * 0.15, ind + w * 0.15, w * 0.7 - 2 * ind, w * 0.7 - 2 * ind); + } + +}; + +mxCellRenderer.registerShape(mxShapeAws4ProductIcon.prototype.cst.PRODUCT_ICON, mxShapeAws4ProductIcon); + +//********************************************************************************************************************************************************** +//Resource Icon +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws4ResourceIcon(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws4ResourceIcon, mxShape); + +mxShapeAws4ResourceIcon.prototype.cst = { + RESOURCE_ICON : 'mxgraph.aws4.resourceIcon' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws4ResourceIcon.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fill(); + + c.setShadow(false); + + var prIcon = mxUtils.getValue(this.state.style, 'resIcon', ''); + var stencil = mxStencilRegistry.getStencil(prIcon); + + if (stencil != null) + { + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setStrokeColor('none'); + stencil.drawShape(c, this, w * 0.1, h * 0.1, w * 0.8, h * 0.8); + } + +}; + +mxCellRenderer.registerShape(mxShapeAws4ResourceIcon.prototype.cst.RESOURCE_ICON, mxShapeAws4ResourceIcon); + +//********************************************************************************************************************************************************** +//Group +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws4Group(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws4Group, mxShape); + +mxShapeAws4Group.prototype.cst = { + GROUP : 'mxgraph.aws4.group' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws4Group.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var grStroke = mxUtils.getValue(this.state.style, 'grStroke', '1'); + + var size = 25; + + if (this.style != null && mxUtils.getValue(this.style, mxConstants.STYLE_POINTER_EVENTS, '1') == '0') + { + c.pointerEvents = false; + } + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + + if (grStroke == '1') + { + c.fillAndStroke(); + } + else + { + c.fill(); + } + + c.pointerEvents = true; + c.setShadow(false); + + var grIcon = mxUtils.getValue(this.state.style, 'grIcon', ''); + var stencil = mxStencilRegistry.getStencil(grIcon); + + if (stencil != null) + { + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setStrokeColor('none'); + stencil.drawShape(c, this, 0, 0, size, size); + } + +}; + +mxCellRenderer.registerShape(mxShapeAws4Group.prototype.cst.GROUP, mxShapeAws4Group); + +//********************************************************************************************************************************************************** +//Group Center +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws4GroupCenter(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws4GroupCenter, mxShape); + +mxShapeAws4GroupCenter.prototype.cst = { + GROUP_CENTER : 'mxgraph.aws4.groupCenter' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws4GroupCenter.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var grStroke = mxUtils.getValue(this.state.style, 'grStroke', '1'); + + var size = 25; + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + + if (grStroke == '1') + { + c.fillAndStroke(); + } + else + { + c.fill(); + } + + c.setShadow(false); + var grIcon = mxUtils.getValue(this.state.style, 'grIcon', ''); + var stencil = mxStencilRegistry.getStencil(grIcon); + + if (stencil != null) + { + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + c.setStrokeColor('none'); + stencil.drawShape(c, this, (w - size) * 0.5, 0, size, size); + } + +}; + +mxCellRenderer.registerShape(mxShapeAws4GroupCenter.prototype.cst.GROUP_CENTER, mxShapeAws4GroupCenter); + +////********************************************************************************************************************************************************** +////Resource Icon +////********************************************************************************************************************************************************** +///** +//* Extends mxShape. +//*/ +//function mxShapeAws4ResourceIcon(bounds, fill, stroke, strokewidth) +//{ +// mxShape.call(this); +// this.bounds = bounds; +// this.fill = fill; +// this.stroke = stroke; +// this.strokewidth = (strokewidth != null) ? strokewidth : 1; +//}; +// +///** +//* Extends mxShape. +//*/ +//mxUtils.extend(mxShapeAws4ResourceIcon, mxShape); +// +//mxShapeAws4ResourceIcon.prototype.cst = { +// RESOURCE_ICON : 'mxgraph.aws4.resourceIcon' +//}; +// +///** +//* Function: paintVertexShape +//* +//* Paints the vertex shape. +//*/ +//mxShapeAws4ResourceIcon.prototype.paintVertexShape = function(c, x, y, w, h) +//{ +// c.translate(x, y); +// +// c.begin(); +// c.moveTo(0, 0); +// c.lineTo(w, 0); +// c.lineTo(w, h); +// c.lineTo(0, h); +// c.close(); +// c.fillAndStroke(); +// +// var prIcon = mxUtils.getValue(this.state.style, 'resIcon', ''); +// var stencil = mxStencilRegistry.getStencil(prIcon); +// +// if (stencil != null) +// { +// var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); +// c.setFillColor(strokeColor); +// c.setStrokeColor('none'); +// stencil.drawShape(c, this, w * 0.1, h * 0.1, w * 0.8, h * 0.8); +// } +// +//}; + +//********************************************************************************************************************************************************** +//Group2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAws4Group2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAws4Group2, mxShape); + +mxShapeAws4Group2.prototype.cst = { + GROUP2 : 'mxgraph.aws4.group2' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAws4Group2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var size = 25; + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', '#000000'); + c.setFillColor(strokeColor); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(size, 0); + c.lineTo(size, size); + c.lineTo(0, size); + c.close(); + c.fill(); + + var grIcon = mxUtils.getValue(this.state.style, 'grIcon', ''); + var stencil = mxStencilRegistry.getStencil(grIcon); + + if (stencil != null) + { + c.setFillColor('#ffffff'); + c.setStrokeColor('none'); + stencil.drawShape(c, this, size * 0.1, size * 0.1, size * 0.8, size * 0.8); + } + +}; + +mxCellRenderer.registerShape(mxShapeAws4Group2.prototype.cst.GROUP2, mxShapeAws4Group2); + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxAndroid.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxAndroid.js new file mode 100644 index 0000000000000..c119435976acc --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxAndroid.js @@ -0,0 +1,1510 @@ +/** + * $Id: mxAndroid.js,v 1.5 2014/01/21 12:32:06 mate Exp $ + * Copyright (c) 2006-2013, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Horizontal Tab Bar (LEGACY) +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeAndroidTabBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeAndroidTabBar, mxShape); + +mxShapeAndroidTabBar.prototype.cst = { + MAIN_TEXT : 'mainText', + SHAPE_TAB_BAR : 'mxgraph.android.tabBar', + TEXT_COLOR : 'textColor', + TEXT_COLOR2 : 'textColor2', + STROKE_COLOR2 : 'strokeColor2', + FILL_COLOR2 : 'fillColor2', + SELECTED : '+', //must be 1 char + TEXT_SIZE : 'textSize' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeAndroidTabBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var textStrings = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.MAIN_TEXT, '+Tab 1, Tab 2, Tab 3').toString().split(','); + var fontColor = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.TEXT_COLOR, 'none'); + var selectedFontColor = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.TEXT_COLOR2, 'none'); + var fontSize = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.TEXT_SIZE, '17').toString(); + var frameColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, 'none'); + var separatorColor = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.STROKE_COLOR2, 'none'); + var bgColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'); + var selectedFillColor = mxUtils.getValue(this.style, mxShapeAndroidTabBar.prototype.cst.FILL_COLOR2, 'none'); + var buttonNum = textStrings.length; + var buttonWidths = new Array(buttonNum); + var buttonTotalWidth = 0; + var selectedButton = -1; + var labelOffset = 5; + + for (var i = 0; i < buttonNum; i++) + { + var buttonText = textStrings[i]; + + if(buttonText.charAt(0) === mxShapeAndroidTabBar.prototype.cst.SELECTED) + { + buttonText = textStrings[i].substring(1); + selectedButton = i; + } + + buttonWidths[i] = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + buttonTotalWidth += buttonWidths[i]; + } + + var trueH = Math.max(h, fontSize * 1.5, 7); + var minW = 2 * labelOffset * buttonNum + buttonTotalWidth; + var trueW = Math.max(w, minW); + + c.translate(x, y); + this.background(c, trueW, trueH, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton); + c.setShadow(false); + + c.setFontStyle(mxConstants.FONT_BOLD); + var currWidth = 0; + + for (var i = 0; i < buttonNum; i++) + { + if (i === selectedButton) + { + c.setFontColor(selectedFontColor); + } + else + { + c.setFontColor(fontColor); + } + + currWidth = currWidth + labelOffset; + this.buttonText(c, currWidth, trueH, textStrings[i], buttonWidths[i], fontSize, minW, trueW); + currWidth = currWidth + buttonWidths[i] + labelOffset; + } +}; + +mxShapeAndroidTabBar.prototype.background = function(c, w, h, buttonNum, buttonWidths, labelOffset, minW, frameColor, separatorColor, bgColor, selectedFillColor, selectedButton) +{ + c.begin(); + + //draw the frame + c.setStrokeColor(frameColor); + c.setFillColor(bgColor); + c.rect(0, 0, w, h); + c.fillAndStroke(); + + //draw the button separators + c.setStrokeColor(separatorColor); + c.begin(); + for (var i = 1; i < buttonNum; i++) + { + if (i !== selectedButton && i !== (selectedButton + 1)) + { + var currWidth = 0; + + for (var j = 0; j < i; j++) + { + currWidth += buttonWidths[j] + 2 * labelOffset; + } + + currWidth = currWidth * w / minW; + c.moveTo(currWidth, h * 0.2); + c.lineTo(currWidth, h * 0.8); + } + } + + c.stroke(); + + //draw the selected button + var buttonLeft = 0; + c.setFillColor(selectedFillColor); + + for (var i = 0; i < selectedButton; i++) + { + buttonLeft += buttonWidths[i] + 2 * labelOffset; + } + + buttonLeft = buttonLeft * w / minW; + var buttonRight = (buttonWidths[selectedButton] + 2 * labelOffset) * w / minW; + buttonRight += buttonLeft; + + c.rect(buttonLeft, 0, buttonRight - buttonLeft, h); + c.fill(); + + c.setAlpha(1); + c.setFillColor('#33b5e5'); + c.rect(buttonLeft, h * 0.9, buttonRight - buttonLeft, h * 0.1); + c.fill(); +}; + +mxShapeAndroidTabBar.prototype.buttonText = function(c, w, h, textString, buttonWidth, fontSize, minW, trueW) +{ + if(textString.charAt(0) === mxShapeAndroidTabBar.prototype.cst.SELECTED) + { + textString = textString.substring(1); + } + + c.begin(); + c.setFontSize(fontSize); + c.text((w + buttonWidth * 0.5) * trueW / minW, h * 0.5, 0, 0, textString, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeAndroidTabBar.prototype.cst.SHAPE_TAB_BAR, mxShapeAndroidTabBar); + +//********************************************************************************************************************************************************** +//Android Phone Vertical +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidPhone(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidPhone, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidPhone.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var rSize = 25; + + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); + + c.setShadow(false); + + this.foreground(c, x, y, w, h, rSize); +}; + +mxShapeAndroidPhone.prototype.foreground = function(c, x, y, w, h, rSize) +{ + c.rect(w * 0.0625, h * 0.15, w * 0.875, h * 0.7); + c.stroke(); + + c.ellipse(w * 0.4875, h * 0.04125, w * 0.025, h * 0.0125); + c.stroke(); + + c.roundrect(w * 0.375, h * 0.075, w * 0.25, h * 0.01875, w * 0.02, h * 0.01); + c.stroke(); + c.ellipse(w * 0.4, h * 0.875, w * 0.2, h * 0.1); + c.stroke(); + c.roundrect(w * 0.4575, h * 0.905, w * 0.085, h * 0.04375, h * 0.00625, h * 0.00625); + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.android.phone', mxShapeAndroidPhone); + +//********************************************************************************************************************************************************** +//Android Status Bar +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidStatusBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidStatusBar, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidStatusBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeAndroidStatusBar.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fill(); +}; + +mxShapeAndroidStatusBar.prototype.foreground = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fill(); + + c.setFontColor(mxUtils.getValue(this.style, mxConstants.STYLE_FONTCOLOR, '#222222')); + c.setFontSize(mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '5')); + c.text(w - 30, h * 0.5 + 1, 0, 0, '12:00', mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setFillColor('#444444'); + c.begin(); + c.moveTo(w - 37, h * 0.5 + 6); + c.lineTo(w - 37, h * 0.5 - 5); + c.lineTo(w - 36, h * 0.5 - 5); + c.lineTo(w - 36, h * 0.5 - 6); + c.lineTo(w - 32, h * 0.5 - 6); + c.lineTo(w - 32, h * 0.5 - 5); + c.lineTo(w - 31, h * 0.5 - 5); + c.lineTo(w - 31, h * 0.5 + 6); + c.close(); + c.fill(); + + c.setFillColor(mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, 'none')); + c.ellipse(w - 56, h * 0.5 + 2, 2, 2); + c.fillAndStroke(); + + c.setStrokeWidth(2); + c.begin(); + c.moveTo(w - 52, h * 0.5 + 1); + c.arcTo(3.5, 3.5, 0, 0, 0, w - 58, h * 0.5 + 1); + c.stroke(); + + c.begin(); + c.moveTo(w - 50, h * 0.5 - 1); + c.arcTo(6, 6, 0, 0, 0, w - 60, h * 0.5 - 1); + c.stroke(); + + c.setStrokeWidth(1); + + c.rect(w - 51, h * 0.5 + 5, 2, 1); + c.fill(); + + c.rect(w - 48, h * 0.5 + 2, 2, 4); + c.fill(); + + c.rect(w - 45, h * 0.5 - 1, 2, 7); + c.fill(); + + c.rect(w - 42, h * 0.5 - 4, 2, 10); + c.fill(); + + c.rect(w - 37, h * 0.5 - 2, 6, 8); + c.fill(); + +}; + +mxCellRenderer.registerShape('mxgraph.android.statusBar', mxShapeAndroidStatusBar); + +//********************************************************************************************************************************************************** +//Checkbox Button Group +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidCheckboxGroup(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidCheckboxGroup, mxShape); + +mxShapeAndroidCheckboxGroup.prototype.cst = { + STYLE_TEXTCOLOR2 : 'textColor2', + STYLE_STROKECOLOR2 : 'strokeColor2', + BUTTON_TEXT : 'buttonText', + SELECTED : '+' //has to be one character long +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidCheckboxGroup.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var fontColor = mxUtils.getValue(this.style, mxConstants.STYLE_TEXTCOLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8').toString(); + var optionText = mxUtils.getValue(this.style, mxShapeAndroidCheckboxGroup.prototype.cst.BUTTON_TEXT, 'Option 1').toString().split(','); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, 'none'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeAndroidCheckboxGroup.prototype.cst.STYLE_STROKECOLOR2, 'none'); + + c.setStrokeColor(strokeColor2); + var optionNum = optionText.length; + var buttonSize = 5; + var lineH = Math.max(fontSize * 1.5, buttonSize); + var maxTextWidth = 0; + var selected = -1; + var labelOffset = 2.5; + var minH = optionNum * lineH; + var trueH = Math.max(h, minH); + + //get min width and selected option + for (var i = 0; i < optionNum; i++) + { + var currText = optionText[i]; + + if(currText.charAt(0) === mxShapeAndroidCheckboxGroup.prototype.cst.SELECTED) + { + currText = optionText[i].substring(1); + selected = i; + } + + var currWidth = mxUtils.getSizeForString(currText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxTextWidth) + { + maxTextWidth = currWidth; + } + } + + var minW = 2 * labelOffset + maxTextWidth + 2 * buttonSize; + var trueW = Math.max(w, minW); + + //draw the background + c.roundrect(0, 0, trueW, trueH, 2.5, 2.5); + c.fillAndStroke(); + c.setShadow(false); + + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.setStrokeColor(strokeColor); + + for (var i = 0; i < optionNum; i++) + { + var currHeight = (i * lineH + lineH * 0.5) * trueH / minH; + + var currText = optionText[i]; + + if(currText.charAt(0) === mxShapeAndroidCheckboxGroup.prototype.cst.SELECTED) + { + currText = optionText[i].substring(1); + selected = i; + } + + c.text(buttonSize * 2 + labelOffset, currHeight, 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + var iconX = buttonSize * 0.5; + var iconY = currHeight - buttonSize * 0.5; + + if (selected === i) + { + c.rect(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + c.begin(); + c.moveTo(iconX + buttonSize * 0.25, iconY + buttonSize * 0.5); + c.lineTo(iconX + buttonSize * 0.5, iconY + buttonSize * 0.75); + c.lineTo(iconX + buttonSize * 0.75, iconY + buttonSize * 0.25); + c.stroke(); + } + else + { + c.rect(iconX, iconY, buttonSize, buttonSize); + c.fillAndStroke(); + } + + selected = -1; + } +}; + +mxCellRenderer.registerShape('mxgraph.android.checkboxGroup', mxShapeAndroidCheckboxGroup); + +//********************************************************************************************************************************************************** +//Radio Button Group +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidRadioGroup(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidRadioGroup, mxShape); + +mxShapeAndroidRadioGroup.prototype.cst = { + STYLE_TEXTCOLOR2 : 'textColor2', + STYLE_STROKECOLOR2 : 'strokeColor2', + BUTTON_TEXT : 'buttonText', + SELECTED : '+' //has to be one character long +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidRadioGroup.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var fontColor = mxUtils.getValue(this.style, mxConstants.STYLE_TEXTCOLOR, '#666666'); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8').toString(); + var optionText = mxUtils.getValue(this.style, mxShapeAndroidRadioGroup.prototype.cst.BUTTON_TEXT, 'Option 1').toString().split(','); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, 'none'); + var strokeColor2 = mxUtils.getValue(this.style, mxShapeAndroidRadioGroup.prototype.cst.STYLE_STROKECOLOR2, 'none'); + + c.setStrokeColor(strokeColor2); + + var optionNum = optionText.length; + var buttonSize = 5; + var lineH = Math.max(fontSize * 1.5, buttonSize); + var maxTextWidth = 0; + var selected = -1; + var labelOffset = 2.5; + var minH = optionNum * lineH; + var trueH = Math.max(h, minH); + + //get min width and selected option + for (var i = 0; i < optionNum; i++) + { + var currText = optionText[i]; + + if(currText.charAt(0) === mxShapeAndroidRadioGroup.prototype.cst.SELECTED) + { + currText = optionText[i].substring(1); + selected = i; + } + + var currWidth = mxUtils.getSizeForString(currText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxTextWidth) + { + maxTextWidth = currWidth; + } + } + + var minW = 2 * labelOffset + maxTextWidth + 2 * buttonSize; + var trueW = Math.max(w, minW); + + //draw the background + c.roundrect(0, 0, trueW, trueH, 2.5, 2.5); + c.fillAndStroke(); + c.setShadow(false); + + c.setFontSize(fontSize); + c.setFontColor(fontColor); + c.setStrokeColor(strokeColor); + c.setFillColor(strokeColor); + + for (var i = 0; i < optionNum; i++) + { + var currHeight = (i * lineH + lineH * 0.5) * trueH / minH; + + var currText = optionText[i]; + + if(currText.charAt(0) === mxShapeAndroidRadioGroup.prototype.cst.SELECTED) + { + currText = optionText[i].substring(1); + selected = i; + } + + c.text(buttonSize * 2 + labelOffset, currHeight, 0, 0, currText, mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + var iconX = buttonSize * 0.5; + var iconY = currHeight - buttonSize * 0.5; + + if (selected === i) + { + c.ellipse(iconX, iconY, buttonSize, buttonSize); + c.stroke(); + c.ellipse(iconX + buttonSize * 0.25, iconY + buttonSize * 0.25, buttonSize * 0.5, buttonSize * 0.5); + c.fillAndStroke(); + } + else + { + c.ellipse(iconX, iconY, buttonSize, buttonSize); + c.stroke(); + } + } +}; + +mxCellRenderer.registerShape('mxgraph.android.radioGroup', mxShapeAndroidRadioGroup); + +//********************************************************************************************************************************************************** +//Menu Bar (LEGACY) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidMenuBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidMenuBar, mxShape); + +mxShapeAndroidMenuBar.prototype.cst = { + MENU_TEXT : 'menuText' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidMenuBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var textStrings = mxUtils.getValue(this.style, mxShapeAndroidMenuBar.prototype.cst.MENU_TEXT, 'Item 1, Item 2, Item 3').toString().split(','); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '12'); + var buttonNum = textStrings.length; + var maxButtonWidth = 0; + var labelOffset = 2.5; + + for (var i = 0; i < buttonNum; i++) + { + var buttonText = textStrings[i]; + + var currWidth = mxUtils.getSizeForString(buttonText, fontSize, mxConstants.DEFAULT_FONTFAMILY).width; + + if (currWidth > maxButtonWidth) + { + maxButtonWidth = currWidth; + } + } + + var minButtonHeight = fontSize * 1.5; + var minH = buttonNum * minButtonHeight; + var trueH = Math.max(h, minH); + var minW = 2 * labelOffset + maxButtonWidth; + var trueW = Math.max(w, minW); + + c.translate(x, y); + + c.rect(0, 0, w, trueH); + c.fillAndStroke(); + + c.setShadow(false); + + //draw the button separators + c.begin(); + + for (var i = 1; i < buttonNum; i++) + { + var currHeight = i * minButtonHeight * trueH / minH; + c.moveTo(0, currHeight); + c.lineTo(w, currHeight); + } + + c.stroke(); + + for (var i = 0; i < buttonNum; i++) + { + currWidth = currWidth + labelOffset; + var currHeight = (i * minButtonHeight + minButtonHeight * 0.5) * trueH / minH; + c.text(10, currHeight, 0, 0, textStrings[i], mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape('mxgraph.android.menuBar', mxShapeAndroidMenuBar); + +//********************************************************************************************************************************************************** +//Text Selection Handles +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidTextSelHandles(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidTextSelHandles, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidTextSelHandles.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, 'none'); + c.translate(x, y); + + var handleSizeX = 15; + var barH = Math.max(0, h - handleSizeX * 1.5); + c.setAlpha(0.5); + + c.rect(handleSizeX, 0, w - 2 * handleSizeX, barH); + c.fill(); + + c.begin(); + c.moveTo(0, h - handleSizeX); + c.lineTo(handleSizeX * 0.5, h - handleSizeX * 1.5); + c.lineTo(handleSizeX, h - handleSizeX); + c.close(); + c.moveTo(w - handleSizeX, h - handleSizeX); + c.lineTo(w - handleSizeX * 0.5, h - handleSizeX * 1.5); + c.lineTo(w, h - handleSizeX); + c.close(); + c.fill(); + + c.setFillColor(strokeColor); + c.rect(0, h - handleSizeX, handleSizeX, handleSizeX); + c.fill(); + c.rect(w - handleSizeX, h - handleSizeX, handleSizeX, handleSizeX); + c.fill(); +}; + +mxCellRenderer.registerShape('mxgraph.android.textSelHandles', mxShapeAndroidTextSelHandles); + +//********************************************************************************************************************************************************** +//Android Indeterminate Spinner +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidIndeterminateSpinner(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidIndeterminateSpinner, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidIndeterminateSpinner.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeAndroidIndeterminateSpinner.prototype.background = function(c, x, y, w, h) +{ + c.setGradient('#aaaaaa', '#dddddd', w * 0.325, 0, w * 0.675, h * 0.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(w * 0.5, h * 0.1); + c.arcTo(w * 0.4, h * 0.4, 0, 0, 0, w * 0.5, h * 0.9); + c.lineTo(w * 0.5, h); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, w * 0.5, 0); + c.close(); + c.fill(); + + c.setGradient('#ffffff', '#dddddd', w * 0.325, 0, w * 0.675, h * 0.5, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(w * 0.5, h * 0.1); + c.arcTo(w * 0.4, h * 0.4, 0, 0, 1, w * 0.5, h * 0.9); + c.lineTo(w * 0.5, h); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 0, w * 0.5, 0); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape('mxgraph.android.indeterminateSpinner', mxShapeAndroidIndeterminateSpinner); + +//********************************************************************************************************************************************************** +//Anchor (a dummy shape without visuals used for anchoring) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidAnchor(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidAnchor, mxShape); + +mxShapeAndroidAnchor.prototype.cst = { + ANCHOR : 'mxgraph.android.anchor' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidAnchor.prototype.paintVertexShape = function(c, x, y, w, h) +{ +}; + +mxCellRenderer.registerShape(mxShapeAndroidAnchor.prototype.cst.ANCHOR, mxShapeAndroidAnchor); + +//********************************************************************************************************************************************************** +//Rounded rectangle (adjustable rounding) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidRRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidRRect, mxShape); + +mxShapeAndroidRRect.prototype.cst = { + RRECT : 'mxgraph.android.rrect', + R_SIZE : 'rSize' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidRRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeAndroidRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAndroidRRect.prototype.cst.RRECT, mxShapeAndroidRRect); + +//********************************************************************************************************************************************************** +//Checkbox +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidCheckbox(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidCheckbox, mxShape); + +mxShapeAndroidCheckbox.prototype.cst = { + CHECKBOX : 'mxgraph.android.checkbox' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidCheckbox.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.rect(0, 0, w, h); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8, h * 0.2); + c.lineTo(w * 0.4, h * 0.8); + c.lineTo(w * 0.25, h * 0.6); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAndroidCheckbox.prototype.cst.CHECKBOX, mxShapeAndroidCheckbox); + +//********************************************************************************************************************************************************** +//Progress Bar +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidProgressBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx1 = 0.8; + this.dx2 = 0.6; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidProgressBar, mxShape); + +mxShapeAndroidProgressBar.prototype.customProperties = [ + {name: 'dx1', dispName: 'Middle Bar Length', type: 'float', min:0, max:1, defVal:0.8}, + {name: 'dx2', dispName: 'Left Bar Length', type: 'float', min:0, max:1, defVal:0.6} +]; + +mxShapeAndroidProgressBar.prototype.cst = { + PROGRESS_BAR : 'mxgraph.android.progressBar' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidProgressBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var dx1 = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + + c.translate(x, y); + + c.save(); + c.save(); + c.setStrokeColor('#444444'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w , h * 0.5); + c.stroke(); + + c.restore(); + c.setShadow(false); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(dx1, h * 0.5); + c.stroke(); + + c.setStrokeColor('#000000'); + c.setAlpha('0.2'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(dx1, h * 0.5); + c.stroke(); + + c.restore(); + c.setShadow(false); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(dx2, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeAndroidProgressBar.prototype.cst.PROGRESS_BAR, mxShapeAndroidProgressBar); + +mxShapeAndroidProgressBar.prototype.constraints = null; + +Graph.handleFactory[mxShapeAndroidProgressBar.prototype.cst.PROGRESS_BAR] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx1'], function(bounds) + { + var dx1 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + + return new mxPoint(bounds.x + dx1 * bounds.width, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['dx2'], function(bounds) + { + var dx2 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx1)))); + + return new mxPoint(bounds.x + dx2 * bounds.width, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + }); + + handles.push(handle2); + + return handles; +} + +//********************************************************************************************************************************************************** +//Progress Scrubber Disabled +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidProgressScrubberDisabled(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.3; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidProgressScrubberDisabled, mxShape); + +mxShapeAndroidProgressScrubberDisabled.prototype.customProperties = [ + {name: 'dx', dispName: 'Handle Position', type: 'float', min:0, max:1, defVal:0.3} +]; + +mxShapeAndroidProgressScrubberDisabled.prototype.cst = { + PROGRESS_SCRUBBER_DISABLED : 'mxgraph.android.progressScrubberDisabled' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidProgressScrubberDisabled.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + c.translate(x, y); + + c.save(); + c.save(); + c.setStrokeColor('#444444'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + + c.restore(); + c.setShadow(false); + c.setAlpha('0.5'); + c.setFillColor('#666666'); + c.begin(); + var r = Math.min(h, w * 0.1) / 2; + c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r); + c.fill(); + + c.restore(); + c.setShadow(false); + c.begin(); + var r = Math.min(h, w * 0.1) / 8; + c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r); + c.fill(); + +}; + +mxCellRenderer.registerShape(mxShapeAndroidProgressScrubberDisabled.prototype.cst.PROGRESS_SCRUBBER_DISABLED, mxShapeAndroidProgressScrubberDisabled); + +mxShapeAndroidProgressScrubberDisabled.prototype.constraints = null; + +Graph.handleFactory[mxShapeAndroidProgressScrubberDisabled.prototype.cst.PROGRESS_SCRUBBER_DISABLED] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx * bounds.width, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + + return handles; +} + +//********************************************************************************************************************************************************** +//Progress Scrubber Focused +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidProgressScrubberFocused(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.3; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidProgressScrubberFocused, mxShape); + +mxShapeAndroidProgressScrubberFocused.prototype.customProperties = [ + {name: 'dx', dispName: 'Handle Position', type: 'float', min:0, max:1, defVal:0.3} +]; + +mxShapeAndroidProgressScrubberFocused.prototype.cst = { + PROGRESS_SCRUBBER_FOCUSED : 'mxgraph.android.progressScrubberFocused' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidProgressScrubberFocused.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var fillColor = mxUtils.getValue(this.style, 'fillColor', '#ffffff'); + + c.translate(x, y); + + c.save(); + c.save(); + c.setStrokeColor('#444444'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + + c.restore(); + c.setShadow(false); + c.setAlpha('0.75'); + c.begin(); + var r = Math.min(h, w * 0.1) / 2; + c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r); + c.fill(); + + c.restore(); + c.setShadow(false); + c.setStrokeColor(fillColor); + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(dx, h * 0.5); + c.stroke(); + + c.begin(); + var r = Math.min(h, w * 0.1) / 8; + c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r); + c.fill(); + +}; + +mxCellRenderer.registerShape(mxShapeAndroidProgressScrubberFocused.prototype.cst.PROGRESS_SCRUBBER_FOCUSED, mxShapeAndroidProgressScrubberFocused); + +mxShapeAndroidProgressScrubberFocused.prototype.constraints = null; + +Graph.handleFactory[mxShapeAndroidProgressScrubberFocused.prototype.cst.PROGRESS_SCRUBBER_FOCUSED] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx * bounds.width, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + + return handles; +} + +//********************************************************************************************************************************************************** +//Progress Scrubber Pressed +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidProgressScrubberPressed(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.3; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidProgressScrubberPressed, mxShape); + +mxShapeAndroidProgressScrubberPressed.prototype.customProperties = [ + {name: 'dx', dispName: 'Handle Position', type: 'float', min:0, max:1, defVal:0.3} +]; + +mxShapeAndroidProgressScrubberPressed.prototype.cst = { + PROGRESS_SCRUBBER_PRESSED : 'mxgraph.android.progressScrubberPressed' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidProgressScrubberPressed.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var fillColor = mxUtils.getValue(this.style, 'fillColor', '#ffffff'); + + c.translate(x, y); + + c.save(); + c.save(); + c.setStrokeColor('#444444'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + + c.restore(); + c.setShadow(false); + c.setStrokeColor(fillColor); + c.setAlpha('0.5'); + c.begin(); + var r = Math.min(h, w * 0.1) / 2; + c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r); + c.fillAndStroke(); + + c.restore(); + c.setShadow(false); + c.setStrokeColor(fillColor); + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(dx, h * 0.5); + c.stroke(); + + c.begin(); + var r = Math.min(h, w * 0.1) / 8; + c.ellipse(dx - r, h * 0.5 - r, 2 * r, 2 * r); + c.fill(); + +}; + +mxCellRenderer.registerShape(mxShapeAndroidProgressScrubberPressed.prototype.cst.PROGRESS_SCRUBBER_PRESSED, mxShapeAndroidProgressScrubberPressed); + +mxShapeAndroidProgressScrubberPressed.prototype.constraints = null; + +Graph.handleFactory[mxShapeAndroidProgressScrubberPressed.prototype.cst.PROGRESS_SCRUBBER_PRESSED] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx * bounds.width, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + + return handles; +} + +//********************************************************************************************************************************************************** +//Quickscroll +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidQuickscroll2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidQuickscroll2, mxShape); + +mxShapeAndroidQuickscroll2.prototype.customProperties = [ + {name: 'dy', dispName: 'Handle Position', type: 'float', min:0, max:1, defVal:0.5} +]; + +mxShapeAndroidQuickscroll2.prototype.cst = { + QUICKSCROLL : 'mxgraph.android.quickscroll2' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidQuickscroll2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var dy = Math.min(h - 20, Math.max(20, h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))))); + var fillColor = mxUtils.getValue(this.style, 'fillColor', '#ffffff'); + + c.translate(x, y); + + c.save(); + c.save(); + c.setStrokeColor('#cccccc'); + c.begin(); + c.moveTo(w - 3, 0); + c.lineTo(w - 3, h); + c.stroke(); + + c.restore(); + c.begin(); + c.roundrect(w - 6, dy - 10, 6, 20, 1, 1); + c.fillAndStroke(); + + c.setFillColor('#cccccc'); + c.begin(); + c.rect(0, dy - 20, w - 18, 40); + c.fill(); + + c.setFillColor('#666666'); + c.begin(); + c.moveTo(w - 18, dy - 20); + c.lineTo(w - 6, dy); + c.lineTo(w - 18, dy + 20); + c.close(); + c.fill(); + + c.setFontSize('12'); + c.text((w - 18) * 0.5, dy, 0, 0, 'Aa', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeAndroidQuickscroll2.prototype.cst.QUICKSCROLL, mxShapeAndroidQuickscroll2); + +mxShapeAndroidQuickscroll2.prototype.constraints = null; + +Graph.handleFactory[mxShapeAndroidQuickscroll2.prototype.cst.QUICKSCROLL] = function(state) +{ + var handles = [Graph.createHandle(state, ['dy'], function(bounds) + { + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width - 3, bounds.y + Math.min(bounds.height - 20, Math.max(20, dy * bounds.height))); + }, function(bounds, pt) + { + this.state.style['dy'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + })]; + + return handles; +} + +//********************************************************************************************************************************************************** +//Quickscroll2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidQuickscroll3(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidQuickscroll3, mxShape); + +mxShapeAndroidQuickscroll3.prototype.customProperties = [ + {name: 'dy', dispName: 'Handle Position', type: 'float', min:0, max:1, defVal:0.5} +]; + +mxShapeAndroidQuickscroll3.prototype.cst = { + QUICKSCROLL : 'mxgraph.android.quickscroll3' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidQuickscroll3.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var dy = Math.min(h - 10, Math.max(10, h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))))); + var fillColor = mxUtils.getValue(this.style, 'fillColor', '#ffffff'); + + c.translate(x, y); + + c.save(); + c.setStrokeColor('#cccccc'); + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.stroke(); + + c.restore(); + c.begin(); + c.roundrect(w * 0.5 - 3, dy - 10, 6, 20, 1, 1); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAndroidQuickscroll3.prototype.cst.QUICKSCROLL, mxShapeAndroidQuickscroll3); + +mxShapeAndroidQuickscroll3.prototype.constraints = null; + +Graph.handleFactory[mxShapeAndroidQuickscroll3.prototype.cst.QUICKSCROLL] = function(state) +{ + var handles = [Graph.createHandle(state, ['dy'], function(bounds) + { + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width * 0.5, bounds.y + Math.min(bounds.height - 10, Math.max(10, dy * bounds.height))); + }, function(bounds, pt) + { + this.state.style['dy'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + })]; + + return handles; +} + +//********************************************************************************************************************************************************** +//Scrollbars +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidScrollbars2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidScrollbars2, mxShape); + +mxShapeAndroidScrollbars2.prototype.cst = { + SCROLLBARS : 'mxgraph.android.scrollbars2' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidScrollbars2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + + c.translate(x, y); + + c.begin(); + c.rect(w - 5, 0, 5, h - 7); + c.fillAndStroke(); + + c.begin(); + c.rect(0, h - 5, w - 7, 5); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAndroidScrollbars2.prototype.cst.SCROLLBARS, mxShapeAndroidScrollbars2); + +mxShapeAndroidScrollbars2.prototype.constraints = null; + +//********************************************************************************************************************************************************** +//Spinner +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeAndroidSpinner2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeAndroidSpinner2, mxShape); + +mxShapeAndroidSpinner2.prototype.cst = { + SPINNER : 'mxgraph.android.spinner2' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeAndroidSpinner2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + + c.translate(x, y); + + c.begin(); + c.moveTo(0, h); + c.lineTo(w, h); + c.stroke(); + + var s = Math.min(w / 10, h) + c.begin(); + c.moveTo(w - s, h); + c.lineTo(w, h - s); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeAndroidSpinner2.prototype.cst.SPINNER, mxShapeAndroidSpinner2); + +mxShapeAndroidSpinner2.prototype.constraints = null; + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxArchiMate.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxArchiMate.js new file mode 100644 index 0000000000000..0861d4ab9bee8 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxArchiMate.js @@ -0,0 +1,1220 @@ +/** + * $Id: mxArchiMate.js,v 1.0 2014/03/17 07:05:39 mate Exp $ + * Copyright (c) 2006-2014, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Location +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMateLocation(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMateLocation, mxShape); + +mxArchiMateLocation.prototype.cst = { + LOCATION : 'mxgraph.archimate.location' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMateLocation.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMateLocation.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMateLocation.prototype.foreground = function(c, x, y, w, h) +{ + c.setDashed(false); + + c.translate(3 ,0); + w = w - 6; + c.begin(); + c.moveTo(w * 0.5, h); + c.arcTo(w * 0.1775, h * 0.3, 0, 0, 0, w * 0.345, h * 0.7); + c.arcTo(w * 0.538, h * 0.364, 0, 0, 1, w * 0.5, 0); + c.arcTo(w * 0.538, h * 0.364, 0, 0, 1, w * 0.655, h * 0.7); + c.arcTo(w * 0.1775, h * 0.3, 0, 0, 0, w * 0.5, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMateLocation.prototype.cst.LOCATION, mxArchiMateLocation); + +mxArchiMateLocation.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Business +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMateBusiness(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMateBusiness, mxShape); + +mxArchiMateBusiness.prototype.cst = { + BUSINESS : 'mxgraph.archimate.business', + TYPE : 'busType', + PROCESS : 'process', + FUNCTION : 'function', + INTERACTION : 'interaction', + EVENT : 'event', + SERVICE : 'service' +}; + +mxArchiMateBusiness.prototype.customProperties = [ + {name: 'busType', dispName: 'Business Type', type: 'enum', + enumList: [{val: 'process', dispName: 'Process'}, + {val: 'function', dispName: 'Function'}, + {val: 'interaction', dispName: 'Interaction'}, + {val: 'event', dispName: 'Event'}, + {val: 'service', dispName: 'Service'}] + } +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMateBusiness.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMateBusiness.prototype.background = function(c, x, y, w, h) +{ + c.roundrect(0, 0, w, h, 10, 10); + c.fillAndStroke(); +}; + +mxArchiMateBusiness.prototype.foreground = function(c, x, y, w, h) +{ + var type = mxUtils.getValue(this.style, mxArchiMateBusiness.prototype.cst.TYPE, mxArchiMateBusiness.prototype.cst.PROCESS); + + c.setDashed(false); + + if (type === mxArchiMateBusiness.prototype.cst.PROCESS) + { + c.translate(0, 2); + h = h - 4; + + c.begin(); + c.moveTo(0, h * 0.15); + c.lineTo(w * 0.65, h * 0.15); + c.lineTo(w * 0.65, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.65, h); + c.lineTo(w * 0.65, h * 0.85); + c.lineTo(0, h * 0.85); + c.close(); + c.stroke(); + } + else if (type === mxArchiMateBusiness.prototype.cst.FUNCTION) + { + c.translate(2, 0); + w = w - 4; + + c.begin(); + c.moveTo(0, h * 0.15); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.15); + c.lineTo(w, h); + c.lineTo(w * 0.5, h * 0.85); + c.lineTo(0, h); + c.close(); + c.stroke(); + } + else if (type === mxArchiMateBusiness.prototype.cst.INTERACTION) + { + c.begin(); + c.moveTo(w * 0.55, 0); + c.arcTo(w * 0.45, h * 0.5, 0, 0, 1, w * 0.55, h); + c.close(); + c.moveTo(w * 0.45, 0); + c.arcTo(w * 0.45, h * 0.5, 0, 0, 0, w * 0.45, h); + c.close(); + c.stroke(); + } + else if (type === mxArchiMateBusiness.prototype.cst.EVENT) + { + c.translate(0, 3); + h = h - 6; + + c.begin(); + c.moveTo(w - h * 0.5, 0); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, w - h * 0.5, h); + c.lineTo(0, h); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 0, 0, 0); + c.close(); + c.stroke(); + } + else if (type === mxArchiMateBusiness.prototype.cst.SERVICE) + { + c.translate(0, 3); + h = h - 6; + + c.begin(); + c.moveTo(w - h * 0.5, 0); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, w - h * 0.5, h); + c.lineTo(0, h); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, 0, 0); + c.close(); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxArchiMateBusiness.prototype.cst.BUSINESS, mxArchiMateBusiness); + +mxArchiMateBusiness.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -2.9, -2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, 2.9, -2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Business Object +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMateBusinessObject(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMateBusinessObject, mxShape); + +mxArchiMateBusinessObject.prototype.cst = { + BUSINESS_OBJECT : 'mxgraph.archimate.businessObject' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMateBusinessObject.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + this.foreground(c, 0, 0, w, h); +}; + +mxArchiMateBusinessObject.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMateBusinessObject.prototype.foreground = function(c, x, y, w, h) +{ + if (h >= 15) + { + c.begin(); + c.moveTo(0, 15); + c.lineTo(w, 15); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxArchiMateBusinessObject.prototype.cst.BUSINESS_OBJECT, mxArchiMateBusinessObject); + +mxArchiMateBusinessObject.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -2.9, -2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, 2.9, -2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Representation +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMateRepresentation(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMateRepresentation, mxShape); + +mxArchiMateRepresentation.prototype.cst = { + REPRESENTATION : 'mxgraph.archimate.representation' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMateRepresentation.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); +}; + +mxArchiMateRepresentation.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 0, w * 0.5, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 1, 0, h * 0.85); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMateRepresentation.prototype.cst.REPRESENTATION, mxArchiMateRepresentation); + +mxArchiMateRepresentation.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.85), false, null)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.745), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.955), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Product +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMateProduct(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMateProduct, mxShape); + +mxArchiMateProduct.prototype.cst = { + PRODUCT : 'mxgraph.archimate.product' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMateProduct.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + this.foreground(c, 0, 0, w, h); +}; + +mxArchiMateProduct.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMateProduct.prototype.foreground = function(c, x, y, w, h) +{ + if (h >= 15) + { + c.begin(); + c.moveTo(0, 15); + c.lineTo(w * 0.6, 15); + c.lineTo(w * 0.6, 0); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxArchiMateProduct.prototype.cst.PRODUCT, mxArchiMateProduct); + +//********************************************************************************************************************************************************** +//Application +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMateApplication(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMateApplication, mxShape); + +mxArchiMateApplication.prototype.cst = { + APPLICATION : 'mxgraph.archimate.application', + TYPE : 'appType', + COMPONENT : 'comp', + INTERFACE : 'interface', + INTERFACE2 : 'interface2', + FUNCTION : 'function', + INTERACTION : 'interaction', + SERVICE : 'service', + NODE : 'node', + NETWORK : 'network', + COMM_PATH : 'commPath', + SYS_SW : 'sysSw', + ARTIFACT : 'artifact', + ACTOR : 'actor', + ROLE : 'role', + COLLABORATION : 'collab' +}; + +mxArchiMateApplication.prototype.customProperties = [ + {name: 'appType', dispName: 'App Type', type: 'enum', + enumList: [{val: 'comp', dispName: 'Component'}, + {val: 'interface', dispName: 'Interface'}, + {val: 'interface2', dispName: 'Interface2'}, + {val: 'function', dispName: 'Function'}, + {val: 'interaction', dispName: 'Interaction'}, + {val: 'service', dispName: 'Service'}, + {val: 'node', dispName: 'Node'}, + {val: 'network', dispName: 'Network'}, + {val: 'commPath', dispName: 'Comm Path'}, + {val: 'artifact', dispName: 'Artifact'}, + {val: 'sysSw', dispName: 'System Sw'}, + {val: 'path', dispName: 'Path'}, + {val: 'actor', dispName: 'Actor'}, + {val: 'role', dispName: 'Role'}, + {val: 'collab', dispName: 'Collaboration'}] + } +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMateApplication.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMateApplication.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMateApplication.prototype.foreground = function(c, x, y, w, h) +{ + var type = mxUtils.getValue(this.style, mxArchiMateApplication.prototype.cst.TYPE, mxArchiMateApplication.prototype.cst.COMPONENT); + + c.setDashed(false); + + if (type === mxArchiMateApplication.prototype.cst.COMPONENT) + { + c.translate(1, 0); + w = w - 2; + + c.rect(w * 0.25, 0, w * 0.75, h); + c.stroke(); + + c.rect(0, h * 0.25, w * 0.5, h * 0.15); + c.fillAndStroke(); + + c.rect(0, h * 0.6, w * 0.5, h * 0.15); + c.fillAndStroke(); + } + else if (type === mxArchiMateApplication.prototype.cst.COLLABORATION) + { + c.translate(0, 3); + h = h - 6; + + c.ellipse(0, 0, w * 0.6, h); + c.stroke(); + c.ellipse(w * 0.4, 0, w * 0.6, h); + c.fillAndStroke(); + } + else if (type === mxArchiMateApplication.prototype.cst.INTERFACE) + { + c.translate(0, 4); + h = h - 8; + + c.ellipse(w * 0.5, 0, w * 0.5, h); + c.stroke(); + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, h * 0.5); + c.stroke(); + } + else if (type === mxArchiMateApplication.prototype.cst.INTERFACE2) + { + c.translate(0, 1); + h = h - 2; + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.6, h * 0.5); + c.moveTo(w, 0); + c.arcTo(w * 0.4, h * 0.5, 0, 0, 0, w, h); + c.stroke(); + } + else if (type === mxArchiMateApplication.prototype.cst.FUNCTION) + { + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w, h * 0.2); + c.lineTo(w, h); + c.lineTo(w * 0.5, h * 0.8); + c.lineTo(0, h); + c.lineTo(0, h * 0.2); + c.close(); + c.stroke(); + } + else if (type === mxArchiMateApplication.prototype.cst.INTERACTION) + { + c.begin(); + c.moveTo(w * 0.55, 0); + c.arcTo(w * 0.45, h * 0.5, 0, 0, 1, w * 0.55, h); + c.close(); + c.moveTo(w * 0.45, 0); + c.arcTo(w * 0.45, h * 0.5, 0, 0, 0, w * 0.45, h); + c.close(); + c.stroke(); + } + else if (type === mxArchiMateApplication.prototype.cst.SERVICE) + { + c.translate(0, 3); + h = h - 6; + + c.begin(); + c.moveTo(w - h * 0.5, 0); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, w - h * 0.5, h); + c.lineTo(0, h); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, 0, 0); + c.close(); + c.stroke(); + } + else if (type === mxArchiMateApplication.prototype.cst.NODE) + { + c.begin(); + c.moveTo(0, h * 0.25); + c.lineTo(w * 0.25, 0); + c.lineTo(w, 0); + c.lineTo(w, h * 0.75); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.moveTo(0, h * 0.25); + c.lineTo(w * 0.75, h * 0.25); + c.lineTo(w * 0.75, h); + c.moveTo(w, 0); + c.lineTo(w * 0.75, h * 0.25); + c.stroke(); + } + else if (type === mxArchiMateApplication.prototype.cst.NETWORK) + { + c.translate(0, 2); + h = h - 4; + + c.begin(); + c.moveTo(w * 0.4, h * 0.2); + c.lineTo(w * 0.85, h * 0.2); + c.lineTo(w * 0.6, h * 0.8); + c.lineTo(w * 0.15, h * 0.8); + c.close(); + c.stroke(); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + + c.ellipse(w * 0.25, 0, w * 0.3, h * 0.4); + c.fill(); + + c.ellipse(w * 0.7, 0, w * 0.3, h * 0.4); + c.fill(); + + c.ellipse(0, h * 0.6, w * 0.3, h * 0.4); + c.fill(); + + c.ellipse(w * 0.45, h * 0.6, w * 0.3, h * 0.4); + c.fill(); + } + else if (type === mxArchiMateApplication.prototype.cst.COMM_PATH) + { + c.translate(0, 5); + h = h - 10; + + c.begin(); + c.moveTo(w * 0.1, 0); + c.lineTo(0, h * 0.5); + c.lineTo(w * 0.1, h); + c.moveTo(w * 0.9, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.9, h); + c.stroke(); + + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } + else if (type === mxArchiMateApplication.prototype.cst.SYS_SW) + { + c.ellipse(w * 0.3, 0, w * 0.7, h * 0.7); + c.stroke(); + + c.ellipse(0, h * 0.02, w * 0.98, h * 0.98); + c.fillAndStroke(); + } + else if (type === mxArchiMateApplication.prototype.cst.ARTIFACT) + { + c.translate(2, 0); + w = w - 4; + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.7, 0); + c.lineTo(w, h * 0.22); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.moveTo(w * 0.7, 0); + c.lineTo(w * 0.7, h * 0.22); + c.lineTo(w, h * 0.22); + c.stroke(); + } + else if (type === mxArchiMateApplication.prototype.cst.ACTOR) + { + c.translate(3, 0); + w = w - 6; + c.ellipse(w * 0.2, 0, w * 0.6, h * 0.3); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.5, h * 0.3); + c.lineTo(w * 0.5, h * 0.75); + c.moveTo(0, h * 0.45); + c.lineTo(w, h * 0.45); + c.moveTo(0, h); + c.lineTo(w * 0.5, h * 0.75); + c.lineTo(w, h); + c.stroke(); + } + if (type === mxArchiMateApplication.prototype.cst.ROLE) + { + c.translate(0, 4); + h = h - 8; + + c.begin(); + c.moveTo(w * 0.8, 0); + c.lineTo(w * 0.2, 0); + c.arcTo(w * 0.2, h * 0.5, 0, 0, 0, w * 0.2, h); + c.lineTo(w * 0.8, h); + c.stroke(); + + c.ellipse(w * 0.6, 0, w * 0.4, h); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxArchiMateApplication.prototype.cst.APPLICATION, mxArchiMateApplication); + +mxArchiMateApplication.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Tech +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMateTech(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMateTech, mxShape); + +mxArchiMateTech.prototype.cst = { + TECH : 'mxgraph.archimate.tech', + TYPE : 'techType', + DEVICE : 'device', + PLATEAU : 'plateau' +}; + +mxArchiMateTech.prototype.customProperties = [ + {name: 'techType', dispName: 'Tech Type', type: 'enum', + enumList: [{val: 'device', dispName: 'Device'}, + {val: 'plateau', dispName: 'Plateau'}] + } +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMateTech.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 30, 15); + this.foreground(c, w - 30, 15, 15, 15); +}; + +mxArchiMateTech.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 10); + c.lineTo(10, 0); + c.lineTo(w, 0); + c.lineTo(w, h - 10); + c.lineTo(w - 10, h); + c.lineTo(0, h); + c.close(); + c.moveTo(0, 10); + c.lineTo(w - 10, 10); + c.lineTo(w - 10, h); + c.moveTo(w, 0); + c.lineTo(w - 10, 10); + c.fillAndStroke(); +}; + +mxArchiMateTech.prototype.foreground = function(c, x, y, w, h) +{ + var type = mxUtils.getValue(this.style, mxArchiMateTech.prototype.cst.TYPE, mxArchiMateTech.prototype.cst.DEVICE); + + c.setDashed(false); + + if (type === mxArchiMateTech.prototype.cst.DEVICE) + { + c.roundrect(0, 0, w, h * 0.88, w * 0.05, h * 0.05); + c.stroke(); + c.begin(); + c.moveTo(w * 0.1, h * 0.88); + c.lineTo(0, h); + c.lineTo(w, h); + c.lineTo(w * 0.9, h * 0.88); + c.stroke(); + } + else if (type === mxArchiMateTech.prototype.cst.PLATEAU) + { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + + c.rect(w * 0.4, 0, w * 0.6, h * 0.2); + c.fill(); + + c.rect(w * 0.2, h * 0.4, w * 0.6, h * 0.2); + c.fill(); + + c.rect(0, h * 0.8, w * 0.6, h * 0.2); + c.fill(); + } +}; + +mxCellRenderer.registerShape(mxArchiMateTech.prototype.cst.TECH, mxArchiMateTech); + +mxArchiMateTech.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, 10)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, 0, -10)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Motivational +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMateMotivational(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMateMotivational, mxShape); + +mxArchiMateMotivational.prototype.cst = { + MOTIV : 'mxgraph.archimate.motiv', + TYPE : 'motivType', + STAKE : 'stake', + DRIVER : 'driver', + ASSESSMENT : 'assess', + GOAL : 'goal', + REQUIREMENT : 'req', + CONSTRAINT : 'const', + PRINCIPLE : 'princ' +}; + +mxArchiMateMotivational.prototype.customProperties = [ + {name: 'motivType', dispName: 'Motivational Type', type: 'enum', + enumList: [{val: 'stake', dispName: 'Stake'}, + {val: 'driver', dispName: 'Driver'}, + {val: 'assess', dispName: 'Assessment'}, + {val: 'goal', dispName: 'Goal'}, + {val: 'req', dispName: 'Requirement'}, + {val: 'const', dispName: 'Constraint'}, + {val: 'princ', dispName: 'Principle'}] + } +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMateMotivational.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMateMotivational.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(10, 0); + c.lineTo(w - 10, 0); + c.lineTo(w, 10); + c.lineTo(w, h - 10); + c.lineTo(w - 10, h); + c.lineTo(10, h); + c.lineTo(0, h - 10); + c.lineTo(0, 10); + c.close(); + c.fillAndStroke(); +}; + +mxArchiMateMotivational.prototype.foreground = function(c, x, y, w, h) +{ + var type = mxUtils.getValue(this.style, mxArchiMateMotivational.prototype.cst.TYPE, mxArchiMateMotivational.prototype.cst.STAKE); + + c.setDashed(false); + + if (type === mxArchiMateMotivational.prototype.cst.STAKE) + { + c.translate(0, 4); + h = h - 8; + + c.begin(); + c.moveTo(w * 0.8, 0); + c.lineTo(w * 0.2, 0); + c.arcTo(w * 0.2, h * 0.5, 0, 0, 0, w * 0.2, h); + c.lineTo(w * 0.8, h); + c.stroke(); + + c.ellipse(w * 0.6, 0, w * 0.4, h); + c.stroke(); + } + else if (type === mxArchiMateMotivational.prototype.cst.DRIVER) + { + c.ellipse(w * 0.1, h * 0.1, w * 0.8, h * 0.8); + c.stroke(); + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.moveTo(w * 0.145, h * 0.145); + c.lineTo(w * 0.855, h * 0.855); + c.moveTo(w * 0.145, h * 0.855); + c.lineTo(w * 0.855, h * 0.145); + c.stroke(); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + + c.ellipse(w * 0.35, h * 0.35, w * 0.3, h * 0.3); + c.fillAndStroke(); + } + else if (type === mxArchiMateMotivational.prototype.cst.ASSESSMENT) + { + c.ellipse(w * 0.2, 0, w * 0.8, h * 0.8); + c.stroke(); + + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.32, h * 0.68); + c.stroke(); + } + else if (type === mxArchiMateMotivational.prototype.cst.GOAL) + { + c.ellipse(0, 0, w, h); + c.stroke(); + c.ellipse(w * 0.15, h * 0.15, w * 0.7, h * 0.7); + c.stroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.ellipse(w * 0.3, h * 0.3, w * 0.4, h * 0.4); + c.fillAndStroke(); + } + else if (type === mxArchiMateMotivational.prototype.cst.REQUIREMENT) + { + c.translate(0, 4); + h = h - 8; + + c.begin(); + c.moveTo(w * 0.25, 0); + c.lineTo(w, 0); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.stroke(); + } + else if (type === mxArchiMateMotivational.prototype.cst.CONSTRAINT) + { + c.translate(0, 4); + h = h - 8; + + c.begin(); + c.moveTo(w * 0.25, 0); + c.lineTo(w, 0); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.moveTo(w * 0.45, 0); + c.lineTo(w * 0.2, h); + c.stroke(); + } + else if (type === mxArchiMateMotivational.prototype.cst.PRINCIPLE) + { + c.begin(); + c.moveTo(w * 0.05, h * 0.05); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.95, h * 0.05); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.95, h * 0.95); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.05, h * 0.95); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.05, h * 0.05); + c.close(); + c.stroke(); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + + c.begin(); + c.moveTo(w * 0.45, h * 0.7); + c.lineTo(w * 0.42, h * 0.15); + c.lineTo(w * 0.58, h * 0.15); + c.lineTo(w * 0.55, h * 0.7); + c.close(); + c.fill(); + + c.rect(w * 0.45, h * 0.75, w * 0.1, h * 0.1); + c.fill(); + } +}; + +mxCellRenderer.registerShape(mxArchiMateMotivational.prototype.cst.MOTIV, mxArchiMateMotivational); + +mxArchiMateMotivational.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 5, 5)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -5, 5)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -5, -5)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, 5, -5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Gap +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMateGap(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMateGap, mxShape); + +mxArchiMateGap.prototype.cst = { + GAP : 'mxgraph.archimate.gap' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMateGap.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMateGap.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 0, w * 0.5, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 1, 0, h * 0.85); + c.close(); + c.fillAndStroke(); +}; + +mxArchiMateGap.prototype.foreground = function(c, x, y, w, h) +{ + c.setDashed(false); + + c.translate(0, 2); + h = h - 4; + + c.ellipse(w * 0.15, 0, w * 0.7, h); + c.stroke(); + + c.begin(); + c.moveTo(0, h * 0.35); + c.lineTo(w, h * 0.35); + c.moveTo(0, h * 0.65); + c.lineTo(w, h * 0.65); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMateGap.prototype.cst.GAP, mxArchiMateGap); + +mxArchiMateGap.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.85), false, null)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.745), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.955), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxArchiMate3.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxArchiMate3.js new file mode 100644 index 0000000000000..4849bcb7ac1f0 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxArchiMate3.js @@ -0,0 +1,2849 @@ +/** + * $Id: mxArchiMate3.js,v 1.0 2016/08/18 07:05:39 mate Exp $ + * Copyright (c) 2006-2016, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Application +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Application(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Application, mxShape); + +mxArchiMate3Application.prototype.cst = { + APPLICATION : 'mxgraph.archimate3.application', + TYPE : 'appType', + COMPONENT : 'comp', + COLLABORATION : 'collab', + INTERFACE : 'interface', + INTERFACE2 : 'interface2', + LOCATION : 'location', + FUNCTION : 'func', + INTERACTION : 'interaction', + SERVICE : 'serv', + EVENT : 'event', + EVENT2 : 'event2', + NODE : 'node', + NETWORK : 'netw', + COMM_PATH : 'commPath', + ACTOR : 'actor', + ASSESSMENT : 'assess', + GOAL : 'goal', + OUTCOME : 'outcome', + ROLE : 'role', + PROCESS : 'proc', + DRIVER : 'driver', + PRINCIPLE : 'principle', + REQUIREMENT : 'requirement', + CONSTRAINT : 'constraint', + RESOURCE : 'resource', + CAPABILITY : 'capability', + COURSE : 'course', + MATERIAL : 'material', + DISTRIBUTION : 'distribution', + SYS_SW : 'sysSw', + ARTIFACT : 'artifact', + PATH : 'path', + ARCHI_TYPE : 'archiType', + TYPE_SQUARE : 'square', + TYPE_ROUNDED : 'rounded', + TYPE_OCT : 'oct' +}; + +mxArchiMate3Application.prototype.customProperties = [ + {name: 'archiType', dispName: 'Type', type: 'enum', + enumList: [{val: 'square', dispName: 'Square'}, + {val: 'rounded', dispName: 'Rounded'}, + {val: 'oct', dispName: 'Octagonal'}] + }, + {name: 'appType', dispName: 'App Type', type: 'enum', + enumList: [{val: 'comp', dispName: 'Component'}, + {val: 'collab', dispName: 'Collaboration'}, + {val: 'interface', dispName: 'Interface'}, + {val: 'interface2', dispName: 'Interface2'}, + {val: 'func', dispName: 'Function'}, + {val: 'interaction', dispName: 'Interaction'}, + {val: 'location', dispName: 'Location'}, + {val: 'serv', dispName: 'Service'}, + {val: 'event', dispName: 'Event'}, + {val: 'event2', dispName: 'Event2'}, + {val: 'node', dispName: 'Node'}, + {val: 'netw', dispName: 'Network'}, + {val: 'commPath', dispName: 'Comm Path'}, + {val: 'actor', dispName: 'Actor'}, + {val: 'assess', dispName: 'Assessment'}, + {val: 'goal', dispName: 'Goal'}, + {val: 'outcome', dispName: 'Outcome'}, + {val: 'role', dispName: 'Role'}, + {val: 'proc', dispName: 'Process'}, + {val: 'driver', dispName: 'Driver'}, + {val: 'principle', dispName: 'Principle'}, + {val: 'requirement', dispName: 'Requirement'}, + {val: 'constraint', dispName: 'Constraint'}, + {val: 'resource', dispName: 'Resource'}, + {val: 'capability', dispName: 'Capability'}, + {val: 'course', dispName: 'Course'}, + {val: 'material', dispName: 'Material'}, + {val: 'distribution', dispName: 'Distribution'}, + {val: 'sysSw', dispName: 'System Sw'}, + {val: 'artifact', dispName: 'Artifact'}, + {val: 'path', dispName: 'Path'}] +}]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Application.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMate3Application.prototype.background = function(c, x, y, w, h) +{ + var archiType = mxUtils.getValue(this.style, mxArchiMate3Application.prototype.cst.ARCHI_TYPE, 'square'); + + if (archiType === 'rounded') + { + c.roundrect(0, 0, w, h, 10, 10); + } + else if ((archiType === 'oct') && w >= 20 && h >= 20) + { + c.begin(); + c.moveTo(0, 10); + c.lineTo(10, 0); + c.lineTo(w - 10, 0); + c.lineTo(w, 10); + c.lineTo(w, h - 10); + c.lineTo(w - 10, h); + c.lineTo(10, h); + c.lineTo(0, h - 10); + c.close(); + c.fillAndStroke(); + } + else + { + c.rect(0, 0, w, h); + } + + c.fillAndStroke(); +}; + +mxArchiMate3Application.prototype.foreground = function(c, x, y, w, h) +{ + var type = mxUtils.getValue(this.style, mxArchiMate3Application.prototype.cst.TYPE, ''); + + c.setDashed(false); + + if (type === mxArchiMate3Application.prototype.cst.COMPONENT) + { + c.translate(1, 0); + w = w - 2; + + mxArchiMate3Component.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.COLLABORATION) + { + c.translate(0, 3); + h = h - 6; + + mxArchiMate3Collaboration.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.INTERFACE) + { + c.translate(0, 4); + h = h - 8; + + mxArchiMate3Interface.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.INTERFACE2) + { + c.translate(0, 1); + h = h - 2; + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.6, h * 0.5); + c.moveTo(w, 0); + c.arcTo(w * 0.4, h * 0.5, 0, 0, 0, w, h); + c.stroke(); + } + else if (type === mxArchiMate3Application.prototype.cst.FUNCTION) + { + mxArchiMate3Function.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.INTERACTION) + { + mxArchiMate3Interaction.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.LOCATION) + { + c.translate(3, 0); + w = w - 6; + c.begin(); + c.moveTo(w * 0.5, h); + c.arcTo(w * 0.1775, h * 0.3, 0, 0, 0, w * 0.345, h * 0.7); + c.arcTo(w * 0.538, h * 0.364, 0, 0, 1, w * 0.5, 0); + c.arcTo(w * 0.538, h * 0.364, 0, 0, 1, w * 0.655, h * 0.7); + c.arcTo(w * 0.1775, h * 0.3, 0, 0, 0, w * 0.5, h); + c.stroke(); + } + else if (type === mxArchiMate3Application.prototype.cst.SERVICE) + { + c.translate(0, 3); + h = h - 6; + + mxArchiMate3Service.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.EVENT) + { + c.translate(0, 3); + h = h - 6; + + mxArchiMate3Event.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.EVENT2) + { + c.translate(0, 3); + h = h - 6; + + mxArchiMate3Event2.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.NODE) + { + mxArchiMate3Node.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.NETWORK) + { + c.translate(0, 2); + h = h - 4; + + c.begin(); + c.moveTo(w * 0.4, h * 0.2); + c.lineTo(w * 0.85, h * 0.2); + c.lineTo(w * 0.6, h * 0.8); + c.lineTo(w * 0.15, h * 0.8); + c.close(); + c.stroke(); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + + c.ellipse(w * 0.25, 0, w * 0.3, h * 0.4); + c.fill(); + + c.ellipse(w * 0.7, 0, w * 0.3, h * 0.4); + c.fill(); + + c.ellipse(0, h * 0.6, w * 0.3, h * 0.4); + c.fill(); + + c.ellipse(w * 0.45, h * 0.6, w * 0.3, h * 0.4); + c.fill(); + } + else if (type === mxArchiMate3Application.prototype.cst.COMM_PATH) + { + c.translate(0, 5); + h = h - 10; + + c.begin(); + c.moveTo(w * 0.1, 0); + c.lineTo(0, h * 0.5); + c.lineTo(w * 0.1, h); + c.moveTo(w * 0.9, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.9, h); + c.stroke(); + + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } + else if (type === mxArchiMate3Application.prototype.cst.ARTIFACT) + { + c.translate(2, 0); + w = w - 4; + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.7, 0); + c.lineTo(w, h * 0.22); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.moveTo(w * 0.7, 0); + c.lineTo(w * 0.7, h * 0.22); + c.lineTo(w, h * 0.22); + c.stroke(); + } + else if (type === mxArchiMate3Application.prototype.cst.ACTOR) + { + c.translate(3, 0); + w = w - 6; + + mxArchiMate3Actor.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.ROLE) + { + c.translate(0, 4); + h = h - 8; + + mxArchiMate3Role.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.PROCESS) + { + c.translate(0, 3); + h = h - 6; + + mxArchiMate3Process.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.DRIVER) + { + c.ellipse(w * 0.1, h * 0.1, w * 0.8, h * 0.8); + c.stroke(); + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.moveTo(w * 0.145, h * 0.145); + c.lineTo(w * 0.855, h * 0.855); + c.moveTo(w * 0.145, h * 0.855); + c.lineTo(w * 0.855, h * 0.145); + c.stroke(); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + + c.ellipse(w * 0.35, h * 0.35, w * 0.3, h * 0.3); + c.fillAndStroke(); + } + else if (type === mxArchiMate3Application.prototype.cst.ASSESSMENT) + { + c.ellipse(w * 0.2, 0, w * 0.8, h * 0.8); + c.stroke(); + + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.32, h * 0.68); + c.stroke(); + } + else if (type === mxArchiMate3Application.prototype.cst.GOAL) + { + c.ellipse(0, 0, w, h); + c.stroke(); + c.ellipse(w * 0.15, h * 0.15, w * 0.7, h * 0.7); + c.stroke(); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.ellipse(w * 0.3, h * 0.3, w * 0.4, h * 0.4); + c.fillAndStroke(); + } + else if (type === mxArchiMate3Application.prototype.cst.OUTCOME) + { + c.ellipse(0, w * 0.2, w * 0.8, h * 0.8); + c.stroke(); + c.ellipse(w * 0.15, w * 0.35, w * 0.5, h * 0.5); + c.stroke(); + c.ellipse(w * 0.3, w * 0.5, w * 0.2, h * 0.2); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.4, h * 0.6); + c.lineTo(w * 0.9, h * 0.1); + c.moveTo(w * 0.42, h * 0.4); + c.lineTo(w * 0.4, h * 0.6); + c.lineTo(w * 0.6, h * 0.58); + c.moveTo(w * 0.8, 0); + c.lineTo(w * 0.75, h * 0.25); + c.lineTo(w, h * 0.2); + c.stroke(); + } + else if (type === mxArchiMate3Application.prototype.cst.PRINCIPLE) + { + c.begin(); + c.moveTo(w * 0.05, h * 0.05); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.95, h * 0.05); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.95, h * 0.95); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.05, h * 0.95); + c.arcTo(w * 2.3, h * 2.3, 0, 0, 1, w * 0.05, h * 0.05); + c.close(); + c.stroke(); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + + c.begin(); + c.moveTo(w * 0.45, h * 0.7); + c.lineTo(w * 0.42, h * 0.15); + c.lineTo(w * 0.58, h * 0.15); + c.lineTo(w * 0.55, h * 0.7); + c.close(); + c.fill(); + + c.rect(w * 0.45, h * 0.75, w * 0.1, h * 0.1); + c.fill(); + } + else if (type === mxArchiMate3Application.prototype.cst.REQUIREMENT) + { + c.translate(0, 4); + h = h - 8; + + mxArchiMate3Requirement.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.CONSTRAINT) + { + c.translate(0, 4); + h = h - 8; + + mxArchiMate3Constraint.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.MATERIAL) + { + c.translate(0, 1); + h = h - 2; + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.25, 0); + c.lineTo(w * 0.75, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.75, h); + c.lineTo(w * 0.25, h); + c.close(); + c.moveTo(w * 0.15, h * 0.5); + c.lineTo(w * 0.31, h * 0.2); + c.moveTo(w * 0.69, h * 0.2); + c.lineTo(w * 0.85, h * 0.5); + c.moveTo(w * 0.68, h * 0.80); + c.lineTo(w * 0.32, h * 0.80); + c.stroke(); + } + else if (type === mxArchiMate3Application.prototype.cst.DISTRIBUTION) + { + c.translate(0, 4); + h = h - 8; + + mxArchiMate3Distribution.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.RESOURCE) + { + c.translate(0, 1); + h = h - 2; + + mxArchiMate3Resource.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.CAPABILITY) + { + mxArchiMate3Capability.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.COURSE) + { + mxArchiMate3Course.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.SYS_SW) + { + mxArchiMate3SysSw.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.ARTIFACT) + { + c.translate(2, 0); + w = w - 4; + + mxArchiMate3Artifact.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Application.prototype.cst.PATH) + { + c.translate(0, 5); + h = h - 10; + + mxArchiMate3Path.prototype.background(c, x, y, w, h); + } +}; + +mxCellRenderer.registerShape(mxArchiMate3Application.prototype.cst.APPLICATION, mxArchiMate3Application); + +mxArchiMate3Application.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var archiType = mxUtils.getValue(this.style, mxArchiMate3Application.prototype.cst.ARCHI_TYPE, 'square'); + + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + if (archiType === 'rounded') + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -2.9, -2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, 2.9, -2.9)); + } + else if ((archiType === 'oct') && w >= 20 && h >= 20) + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 5, 5)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -5, 5)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -5, -5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, 5, -5)); + } + else + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + } + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Component +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Component(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Component, mxShape); + +mxArchiMate3Component.prototype.cst = { + COMPONENT : 'mxgraph.archimate3.component' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Component.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Component.prototype.background = function(c, x, y, w, h) +{ + c.rect(w * 0.25, 0, w * 0.75, h); + c.fillAndStroke(); + + c.rect(0, h * 0.25, w * 0.5, h * 0.15); + c.fillAndStroke(); + + c.rect(0, h * 0.6, w * 0.5, h * 0.15); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Component.prototype.cst.COMPONENT, mxArchiMate3Component); + +mxArchiMate3Component.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.625, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.625, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.325), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.675), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Collaboration +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Collaboration(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Collaboration, mxShape); + +mxArchiMate3Collaboration.prototype.cst = { + COLLABORATION : 'mxgraph.archimate3.collaboration' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Collaboration.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Collaboration.prototype.background = function(c, x, y, w, h) +{ + c.ellipse(0, 0, w * 0.6, h); + c.fillAndStroke(); + c.ellipse(w * 0.4, 0, w * 0.6, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Collaboration.prototype.cst.COLLABORATION, mxArchiMate3Collaboration); + +mxArchiMate3Collaboration.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.11, 0.11), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.125), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.89, 0.11), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.11, 0.89), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.875), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.89, 0.89), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.3, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.7, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.3, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.7, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Interface +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Interface(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Interface, mxShape); + +mxArchiMate3Interface.prototype.cst = { + INTERFACE : 'mxgraph.archimate3.interface' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Interface.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Interface.prototype.background = function(c, x, y, w, h) +{ + c.ellipse(w * 0.5, 0, w * 0.5, h); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Interface.prototype.cst.INTERFACE, mxArchiMate3Interface); + +mxArchiMate3Interface.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Process +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Process(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Process, mxShape); + +mxArchiMate3Process.prototype.cst = { + PROCESS : 'mxgraph.archimate3.process' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Process.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Process.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, h * 0.3); + c.lineTo(w * 0.6, h * 0.3); + c.lineTo(w * 0.6, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.6, h); + c.lineTo(w * 0.6, h * 0.7); + c.lineTo(0, h * 0.7); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Process.prototype.cst.PROCESS, mxArchiMate3Process); + +mxArchiMate3Process.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.3), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.3, 0.3), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.6, 0.3), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.6, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.6, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.6, 0.7), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.3, 0.7), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.7), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Function +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Function(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Function, mxShape); + +mxArchiMate3Function.prototype.cst = { + FUNCTION : 'mxgraph.archimate3.function' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Function.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Function.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w, h * 0.2); + c.lineTo(w, h); + c.lineTo(w * 0.5, h * 0.8); + c.lineTo(0, h); + c.lineTo(0, h * 0.2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Function.prototype.cst.FUNCTION, mxArchiMate3Function); + +mxArchiMate3Function.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.2), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.6), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.8), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.6), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.2), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Interaction +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Interaction(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Interaction, mxShape); + +mxArchiMate3Interaction.prototype.cst = { + INTERACTION : 'mxgraph.archimate3.interaction' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Interaction.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Interaction.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(w * 0.55, 0); + c.arcTo(w * 0.45, h * 0.5, 0, 0, 1, w * 0.55, h); + c.close(); + c.moveTo(w * 0.45, 0); + c.arcTo(w * 0.45, h * 0.5, 0, 0, 0, w * 0.45, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Interaction.prototype.cst.INTERACTION, mxArchiMate3Interaction); + +mxArchiMate3Interaction.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.86, 0.14), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.86, 0.86), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.14, 0.86), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.14, 0.14), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Service +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Service(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Service, mxShape); + +mxArchiMate3Service.prototype.cst = { + SERVICE : 'mxgraph.archimate3.service' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Service.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Service.prototype.background = function(c, x, y, w, h) +{ + var w1 = Math.max(w - h * 0.5, w * 0.5); + var w2 = Math.min(h * 0.5, w * 0.5); + + c.begin(); + c.moveTo(w1, 0); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, w1, h); + c.lineTo(w2, h); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, w2, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Service.prototype.cst.SERVICE, mxArchiMate3Service); + +mxArchiMate3Service.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var w1 = Math.max(w - h * 0.5, w * 0.5); + var w2 = Math.min(h * 0.5, w * 0.5); + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w1, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w1, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w1 + h * 0.355, h * 0.145)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w1 + h * 0.5, h * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w1 + h * 0.355, h * 0.855)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 - h * 0.355, h * 0.145)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 - h * 0.5, h * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 - h * 0.355, h * 0.855)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Requirement +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Requirement(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Requirement, mxShape); + +mxArchiMate3Requirement.prototype.cst = { + REQUIREMENT : 'mxgraph.archimate3.requirement' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Requirement.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Requirement.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(w * 0.25, 0); + c.lineTo(w, 0); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Requirement.prototype.cst.REQUIREMENT, mxArchiMate3Requirement); + +mxArchiMate3Requirement.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.9375, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.875, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.8125, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.0625, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.125, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.1875, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Constraint +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Constraint(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Constraint, mxShape); + +mxArchiMate3Constraint.prototype.cst = { + CONSTRAINT : 'mxgraph.archimate3.constraint' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Constraint.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Constraint.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(w * 0.25, 0); + c.lineTo(w, 0); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.moveTo(w * 0.45, 0); + c.lineTo(w * 0.2, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Constraint.prototype.cst.CONSTRAINT, mxArchiMate3Constraint); + +mxArchiMate3Constraint.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.9375, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.875, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.8125, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.0625, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.125, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.1875, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Event +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Event(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Event, mxShape); + +mxArchiMate3Event.prototype.cst = { + EVENT : 'mxgraph.archimate3.event' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Event.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Event.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(w - h * 0.5, 0); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, w - h * 0.5, h); + c.lineTo(0, h); + c.lineTo(h * 0.5, h * 0.5); + c.lineTo(0, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Event.prototype.cst.EVENT, mxArchiMate3Event); + +mxArchiMate3Event.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var w1 = Math.max(w - h * 0.5, w * 0.5); + var w2 = Math.min(h * 0.5, w * 0.5); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - h * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - h * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, h * 0.5, h * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - h * 0.5) * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - h * 0.5) * 0.5, h)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Event 2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Event2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Event2, mxShape); + +mxArchiMate3Event2.prototype.cst = { + EVENT2 : 'mxgraph.archimate3.event2' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Event2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Event2.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(w - h * 0.5, 0); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 1, w - h * 0.5, h); + c.lineTo(0, h); + c.arcTo(h * 0.5, h * 0.5, 0, 0, 0, 0, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Event2.prototype.cst.EVENT2, mxArchiMate3Event2); + +//********************************************************************************************************************************************************** +//Actor +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Actor(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Actor, mxShape); + +mxArchiMate3Actor.prototype.cst = { + ACTOR : 'mxgraph.archimate3.actor' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Actor.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Actor.prototype.background = function(c, x, y, w, h) +{ + c.ellipse(w * 0.2, 0, w * 0.6, h * 0.3); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5, h * 0.3); + c.lineTo(w * 0.5, h * 0.75); + c.moveTo(0, h * 0.45); + c.lineTo(w, h * 0.45); + c.moveTo(0, h); + c.lineTo(w * 0.5, h * 0.75); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Actor.prototype.cst.ACTOR, mxArchiMate3Actor); + +mxArchiMate3Actor.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.2, 0.15), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.8, 0.15), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.45), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.45), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Role +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Role(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Role, mxShape); + +mxArchiMate3Role.prototype.cst = { + ROLE : 'mxgraph.archimate3.role' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Role.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Role.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(w * 0.8, 0); + c.lineTo(w * 0.2, 0); + c.arcTo(w * 0.2, h * 0.5, 0, 0, 0, w * 0.2, h); + c.lineTo(w * 0.8, h); + c.fillAndStroke(); + + c.ellipse(w * 0.6, 0, w * 0.4, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Role.prototype.cst.ROLE, mxArchiMate3Role); + +mxArchiMate3Role.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.2, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.8, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.8, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.2, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Business Object +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3BusinessObject(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3BusinessObject, mxShape); + +mxArchiMate3BusinessObject.prototype.cst = { + BUSINESS_OBJECT : 'mxgraph.archimate3.businessObject' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3BusinessObject.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + this.foreground(c, 0, 0, w, h); +}; + +mxArchiMate3BusinessObject.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMate3BusinessObject.prototype.foreground = function(c, x, y, w, h) +{ + if (h >= 15) + { + c.begin(); + c.moveTo(0, 15); + c.lineTo(w, 15); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxArchiMate3BusinessObject.prototype.cst.BUSINESS_OBJECT, mxArchiMate3BusinessObject); + +mxArchiMate3BusinessObject.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Contract +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Contract(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Contract, mxShape); + +mxArchiMate3Contract.prototype.cst = { + CONTRACT : 'mxgraph.archimate3.contract' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Contract.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + this.foreground(c, 0, 0, w, h); +}; + +mxArchiMate3Contract.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMate3Contract.prototype.foreground = function(c, x, y, w, h) +{ + if (h >= 15) + { + c.begin(); + c.moveTo(0, 15); + c.lineTo(w, 15); + c.stroke(); + } + + if (h >= 30) + { + c.begin(); + c.moveTo(0, h - 15); + c.lineTo(w, h - 15); + c.stroke(); + } + +}; + +mxCellRenderer.registerShape(mxArchiMate3Contract.prototype.cst.CONTRACT, mxArchiMate3Contract); + +mxArchiMate3Contract.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Product +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Product(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Product, mxShape); + +mxArchiMate3Product.prototype.cst = { + PRODUCT : 'mxgraph.archimate3.product' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Product.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + this.foreground(c, 0, 0, w, h); +}; + +mxArchiMate3Product.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMate3Product.prototype.foreground = function(c, x, y, w, h) +{ + if (h >= 15) + { + c.begin(); + c.moveTo(0, 15); + c.lineTo(w * 0.6, 15); + c.lineTo(w * 0.6, 0); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxArchiMate3Product.prototype.cst.PRODUCT, mxArchiMate3Product); + +mxArchiMate3Product.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Representation +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Representation(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Representation, mxShape); + +mxArchiMate3Representation.prototype.cst = { + REPRESENTATION : 'mxgraph.archimate3.representation' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Representation.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); +}; + +mxArchiMate3Representation.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 0, w * 0.5, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 1, 0, h * 0.85); + c.close(); + c.fillAndStroke(); + + if (h >= 20) + c.begin(); + c.moveTo(0, 15); + c.lineTo(w, 15); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Representation.prototype.cst.REPRESENTATION, mxArchiMate3Representation); + +mxArchiMate3Representation.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.745), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.955), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Deliverable +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Deliverable(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Deliverable, mxShape); + +mxArchiMate3Deliverable.prototype.cst = { + DELIVERABLE : 'mxgraph.archimate3.deliverable' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Deliverable.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); +}; + +mxArchiMate3Deliverable.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 0, w * 0.5, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 1, 0, h * 0.85); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Deliverable.prototype.cst.DELIVERABLE, mxArchiMate3Deliverable); + +mxArchiMate3Deliverable.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.745), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.955), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Location +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Location(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Location, mxShape); + +mxArchiMate3Location.prototype.cst = { + LOCATION : 'mxgraph.archimate3.location' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Location.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMate3Location.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxArchiMate3Location.prototype.foreground = function(c, x, y, w, h) +{ + c.setDashed(false); + + c.translate(3 ,0); + w = w - 6; + c.begin(); + c.moveTo(w * 0.5, h); + c.arcTo(w * 0.1775, h * 0.3, 0, 0, 0, w * 0.345, h * 0.7); + c.arcTo(w * 0.538, h * 0.364, 0, 0, 1, w * 0.5, 0); + c.arcTo(w * 0.538, h * 0.364, 0, 0, 1, w * 0.655, h * 0.7); + c.arcTo(w * 0.1775, h * 0.3, 0, 0, 0, w * 0.5, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Location.prototype.cst.LOCATION, mxArchiMate3Location); + +//********************************************************************************************************************************************************** +//Gap +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Gap(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Gap, mxShape); + +mxArchiMate3Gap.prototype.cst = { + GAP : 'mxgraph.archimate3.gap' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Gap.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 20, 5); + this.foreground(c, w - 20, 5, 15, 15); +}; + +mxArchiMate3Gap.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 0, w * 0.5, h * 0.85); + c.arcTo(w * 0.35, h * 0.35, 0, 0, 1, 0, h * 0.85); + c.close(); + c.fillAndStroke(); +}; + +mxArchiMate3Gap.prototype.foreground = function(c, x, y, w, h) +{ + c.setDashed(false); + + c.translate(0, 2); + h = h - 4; + + c.ellipse(w * 0.15, 0, w * 0.7, h); + c.stroke(); + + c.begin(); + c.moveTo(0, h * 0.35); + c.lineTo(w, h * 0.35); + c.moveTo(0, h * 0.65); + c.lineTo(w, h * 0.65); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Gap.prototype.cst.GAP, mxArchiMate3Gap); + +mxArchiMate3Gap.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.745), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.955), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.85), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Tech +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Tech(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Tech, mxShape); + +mxArchiMate3Tech.prototype.cst = { + TECH : 'mxgraph.archimate3.tech', + TYPE : 'techType', + DEVICE : 'device', + PLATEAU : 'plateau', + FACILITY : 'facility', + EQUIPMENT : 'equipment', + SYS_SW : 'sysSw' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Tech.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + c.translate(w - 30, 15); + this.foreground(c, w - 30, 15, 15, 15); +}; + +mxArchiMate3Tech.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 10); + c.lineTo(10, 0); + c.lineTo(w, 0); + c.lineTo(w, h - 10); + c.lineTo(w - 10, h); + c.lineTo(0, h); + c.close(); + c.moveTo(0, 10); + c.lineTo(w - 10, 10); + c.lineTo(w - 10, h); + c.moveTo(w, 0); + c.lineTo(w - 10, 10); + c.fillAndStroke(); +}; + +mxArchiMate3Tech.prototype.foreground = function(c, x, y, w, h) +{ + var type = mxUtils.getValue(this.style, mxArchiMate3Tech.prototype.cst.TYPE, mxArchiMate3Tech.prototype.cst.DEVICE); + + c.setDashed(false); + + if (type === mxArchiMate3Tech.prototype.cst.PLATEAU) + { + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + + c.rect(w * 0.4, 0, w * 0.6, h * 0.2); + c.fill(); + + c.rect(w * 0.2, h * 0.4, w * 0.6, h * 0.2); + c.fill(); + + c.rect(0, h * 0.8, w * 0.6, h * 0.2); + c.fill(); + } + else if (type === mxArchiMate3Tech.prototype.cst.FACILITY) + { + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(w * 0.13, 0); + c.lineTo(w * 0.13, h * 0.7); + c.lineTo(w * 0.42, h * 0.55); + c.lineTo(w * 0.42, h * 0.7); + c.lineTo(w * 0.71, h * 0.55); + c.lineTo(w * 0.71, h * 0.7); + c.lineTo(w, h * 0.55); + c.lineTo(w, h); + c.close(); + c.stroke(); + } + else if (type === mxArchiMate3Tech.prototype.cst.EQUIPMENT) + { + c.begin(); + c.moveTo(w * 0.72, h * 0.38); + c.curveTo(w * 0.78, w * 0.38, w * 0.85, h * 0.34, w * 0.85, h * 0.26); + c.curveTo(w * 0.85, w * 0.18, w * 0.78, h * 0.14, w * 0.73, h * 0.14); + c.curveTo(w * 0.64, w * 0.14, w * 0.59, h * 0.2, w * 0.59, h * 0.26); + c.curveTo(w * 0.59, h * 0.33, w * 0.65, w * 0.38, w * 0.72, h * 0.38); + c.close(); + c.moveTo(w * 0.68, h * 0.52); + c.lineTo(w * 0.67, h * 0.45); + c.lineTo(w * 0.61, h * 0.43); + c.lineTo(w * 0.56, h * 0.48); + c.lineTo(w * 0.5, h * 0.42); + c.lineTo(w * 0.54, h * 0.36); + c.lineTo(w * 0.52, h * 0.31); + c.lineTo(w * 0.45, h * 0.31); + c.lineTo(w * 0.45, h * 0.22); + c.lineTo(w * 0.52, h * 0.21); + c.lineTo(w * 0.54, h * 0.16); + c.lineTo(w * 0.5, h * 0.11); + c.lineTo(w * 0.56, h * 0.05); + c.lineTo(w * 0.62, h * 0.09); + c.lineTo(w * 0.67, h * 0.07); + c.lineTo(w * 0.68, 0); + c.lineTo(w * 0.77, 0); + c.lineTo(w * 0.78, h * 0.07); + c.lineTo(w * 0.83, h * 0.09); + c.lineTo(w * 0.89, h * 0.05); + c.lineTo(w * 0.95, h * 0.11); + c.lineTo(w * 0.91, h * 0.16); + c.lineTo(w * 0.93, h * 0.21); + c.lineTo(w, h * 0.22); + c.lineTo(w, h * 0.31); + c.lineTo(w * 0.93, h * 0.31); + c.lineTo(w * 0.91, h * 0.36); + c.lineTo(w * 0.95, h * 0.41); + c.lineTo(w * 0.89, h * 0.47); + c.lineTo(w * 0.83, h * 0.43); + c.lineTo(w * 0.78, h * 0.45); + c.lineTo(w * 0.77, h * 0.52); + c.lineTo(w * 0.68, h * 0.52); + c.close(); + c.moveTo(w * 0.36, h * 0.81); + c.curveTo(w * 0.44, h * 0.81, w * 0.52, h * 0.75, w * 0.52, h * 0.67); + c.curveTo(w * 0.52, h * 0.59, w * 0.45, h * 0.51, w * 0.35, h * 0.51); + c.curveTo(w * 0.27, h * 0.51, w * 0.19, h * 0.58, w * 0.19, h * 0.67); + c.curveTo(w * 0.19, h * 0.74, w * 0.27, h * 0.82, w * 0.36, h * 0.81); + c.close(); + c.moveTo(w * 0.21, h * 0.98); + c.lineTo(w * 0.22, h * 0.89); + c.lineTo(w * 0.16, h * 0.85); + c.lineTo(w * 0.08, h * 0.88); + c.lineTo(w * 0.02, h * 0.79); + c.lineTo(w * 0.09, h * 0.74); + c.lineTo(w * 0.08, h * 0.67); + c.lineTo(0, h * 0.63); + c.lineTo(w * 0.03, h * 0.53); + c.lineTo(w * 0.12, h * 0.54); + c.lineTo(w * 0.16, h * 0.48); + c.lineTo(w * 0.13, h * 0.4); + c.lineTo(w * 0.22, h * 0.35); + c.lineTo(w * 0.28, h * 0.42); + c.lineTo(w * 0.36, h * 0.41); + c.lineTo(w * 0.39, h * 0.33); + c.lineTo(w * 0.5, h * 0.36); + c.lineTo(w * 0.49, h * 0.45); + c.lineTo(w * 0.55, h * 0.49); + c.lineTo(w * 0.63, h * 0.45); + c.lineTo(w * 0.69, h * 0.54); + c.lineTo(w * 0.62, h * 0.6); + c.lineTo(w * 0.63, h * 0.67); + c.lineTo(w * 0.71, h * 0.7); + c.lineTo(w * 0.68, h * 0.8); + c.lineTo(w * 0.59, h * 0.79); + c.lineTo(w * 0.55, h * 0.85); + c.lineTo(w * 0.59, h * 0.79); + c.lineTo(w * 0.55, h * 0.85); + c.lineTo(w * 0.59, h * 0.93); + c.lineTo(w * 0.49, h * 0.98); + c.lineTo(w * 0.43, h * 0.91); + c.lineTo(w * 0.36, h * 0.92); + c.lineTo(w * 0.32, h); + c.lineTo(w * 0.21, h * 0.98); + c.close(); + c.stroke(); + } + else if (type === mxArchiMate3Tech.prototype.cst.SYS_SW) + { + mxArchiMate3SysSw.prototype.background(c, x, y, w, h); + } + else if (type === mxArchiMate3Tech.prototype.cst.DEVICE) + { + mxArchiMate3Device.prototype.background(c, x, y, w, h); + } +}; + +mxCellRenderer.registerShape(mxArchiMate3Tech.prototype.cst.TECH, mxArchiMate3Tech); + +mxArchiMate3Tech.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, 0, -10)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, 10)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Distribution +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Distribution(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Distribution, mxShape); + +mxArchiMate3Distribution.prototype.cst = { + DISTRIBUTION : 'mxgraph.archimate3.distribution' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Distribution.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Distribution.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(w * 0.1, h * 0.25); + c.lineTo(w * 0.9, h * 0.25); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.9, h * 0.75); + c.lineTo(w * 0.1, h * 0.75); + c.lineTo(0, h * 0.5); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.2, 0); + c.lineTo(0, h * 0.5); + c.lineTo(w * 0.2, h); + c.moveTo(w * 0.8, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.8, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Distribution.prototype.cst.DISTRIBUTION, mxArchiMate3Distribution); + +mxArchiMate3Distribution.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.2, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.8, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.8, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.2, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Resource +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Resource(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Resource, mxShape); + +mxArchiMate3Resource.prototype.cst = { + RESOURCE : 'mxgraph.archimate3.resource' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Resource.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Resource.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(w * 0.51, h * 0.34); + c.lineTo(w * 0.51, h * 0.65); + c.moveTo(w * 0.35, h * 0.34); + c.lineTo(w * 0.35, h * 0.65); + c.moveTo(w * 0.19, h * 0.34); + c.lineTo(w * 0.19, h * 0.65); + c.moveTo(w * 0.91, h * 0.4); + c.curveTo(w * 0.93, h * 0.39, w * 0.95, h * 0.39, w * 0.97, h * 0.40); + c.curveTo(w * 0.99, h * 0.4, w, h * 0.41, w, h * 0.43); + c.curveTo(w, h * 0.48, w, h * 0.52, w, h * 0.57); + c.curveTo(w, h * 0.58, w * 0.99, h * 0.59, w * 0.98, h * 0.6); + c.curveTo(w * 0.96, h * 0.6, w * 0.93, h * 0.6, w * 0.91, h * 0.6); + c.moveTo(0, h * 0.73); + c.curveTo(0, h * 0.6, 0, h * 0.43, 0, h * 0.27); + c.curveTo(0, h * 0.24, w * 0.03, h * 0.21, w * 0.08, h * 0.21); + c.curveTo(w * 0.33, h * 0.2, w * 0.61, h * 0.2, w * 0.84, h * 0.21); + c.curveTo(w * 0.88, h * 0.22, w * 0.89, h * 0.24, w * 0.9, h * 0.26); + c.curveTo(w * 0.91, h * 0.41, w * 0.91, h * 0.57, w * 0.9, h * 0.72); + c.curveTo(w * 0.9, h * 0.74, w * 0.88, h * 0.78, w * 0.83, h * 0.79); + c.curveTo(w * 0.57, h * 0.79, w * 0.32, h * 0.79, w * 0.06, h * 0.79); + c.curveTo(w * 0.02, h * 0.78, 0, h * 0.76, 0, h * 0.73); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Resource.prototype.cst.RESOURCE, mxArchiMate3Resource); + +//********************************************************************************************************************************************************** +//Capability +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Capability(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Capability, mxShape); + +mxArchiMate3Capability.prototype.cst = { + CAPABILITY : 'mxgraph.archimate3.capability' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Capability.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Capability.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.lineTo(0, h * 0.67); + c.lineTo(w * 0.33, h * 0.67); + c.lineTo(w * 0.33, h * 0.33); + c.lineTo(w * 0.67, h * 0.33); + c.lineTo(w * 0.67, 0); + c.close(); + c.moveTo(w * 0.67, h * 0.33); + c.lineTo(w, h * 0.33); + c.moveTo(w * 0.33, h * 0.67); + c.lineTo(w, h * 0.67); + c.moveTo(w * 0.33, h * 0.67); + c.lineTo(w * 0.33, h); + c.moveTo(w * 0.67, h * 0.33); + c.lineTo(w * 0.67, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Capability.prototype.cst.CAPABILITY, mxArchiMate3Capability); + +//********************************************************************************************************************************************************** +//Course of Action +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Course(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Course, mxShape); + +mxArchiMate3Course.prototype.cst = { + COURSE : 'mxgraph.archimate3.course' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Course.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Course.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, h); + c.arcTo(w * 0.7, h * 0.7, 0, 0, 1, w * 0.41, h * 0.56); + c.moveTo(w * 0.14, h * 0.54); + c.lineTo(w * 0.41, h * 0.56); + c.lineTo(w * 0.3, h * 0.78); + c.stroke(); + + c.ellipse(w * 0.4, 0, w * 0.6, h * 0.6); + c.stroke(); + c.ellipse(w * 0.5, h * 0.1, w * 0.4, h * 0.4); + c.stroke(); + + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#000000'); + c.setFillColor(fillColor); + c.ellipse(w * 0.6, h * 0.2, w * 0.2, h * 0.2); + c.fill(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Course.prototype.cst.COURSE, mxArchiMate3Course); + +//********************************************************************************************************************************************************** +//Node +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Node(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Node, mxShape); + +mxArchiMate3Node.prototype.cst = { + NODE : 'mxgraph.archimate3.node' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Node.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Node.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, h * 0.25); + c.lineTo(w * 0.25, 0); + c.lineTo(w, 0); + c.lineTo(w, h * 0.75); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.moveTo(0, h * 0.25); + c.lineTo(w * 0.75, h * 0.25); + c.lineTo(w * 0.75, h); + c.moveTo(w, 0); + c.lineTo(w * 0.75, h * 0.25); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Node.prototype.cst.NODE, mxArchiMate3Node); + +mxArchiMate3Node.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Device +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Device(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Device, mxShape); + +mxArchiMate3Device.prototype.cst = { + DEVICE : 'mxgraph.archimate3.device' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Device.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Device.prototype.background = function(c, x, y, w, h) +{ + c.roundrect(0, 0, w, h * 0.88, w * 0.1, h * 0.1); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.1, h * 0.88); + c.lineTo(0, h); + c.lineTo(w, h); + c.lineTo(w * 0.9, h * 0.88); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Device.prototype.cst.DEVICE, mxArchiMate3Device); + +mxArchiMate3Device.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.03, 0.03), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.97, 0.03), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//System Software +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3SysSw(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3SysSw, mxShape); + +mxArchiMate3SysSw.prototype.cst = { + SYS_SW : 'mxgraph.archimate3.sysSw' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3SysSw.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3SysSw.prototype.background = function(c, x, y, w, h) +{ + c.ellipse(w * 0.3, 0, w * 0.7, h * 0.7); + c.stroke(); + + c.ellipse(0, h * 0.02, w * 0.98, h * 0.98); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3SysSw.prototype.cst.SYS_SW, mxArchiMate3SysSw); + +//********************************************************************************************************************************************************** +//Artifact +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Artifact(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Artifact, mxShape); + +mxArchiMate3Artifact.prototype.cst = { + ARTIFACT : 'mxgraph.archimate3.artifact' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Artifact.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Artifact.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.7, 0); + c.lineTo(w, h * 0.22); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.7, 0); + c.lineTo(w * 0.7, h * 0.22); + c.lineTo(w, h * 0.22); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Artifact.prototype.cst.ARTIFACT, mxArchiMate3Artifact); + +mxArchiMate3Artifact.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.7, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.85, 0.11), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.22), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Communication Network +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3CommNetw(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3CommNetw, mxShape); + +mxArchiMate3CommNetw.prototype.cst = { + COMM_NETW : 'mxgraph.archimate3.commNetw' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3CommNetw.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3CommNetw.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(w * 0.2, h); + c.lineTo(0, h * 0.5); + c.lineTo(w * 0.2, 0); + c.moveTo(w * 0.8, h); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.8, 0); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3CommNetw.prototype.cst.COMM_NETW, mxArchiMate3CommNetw); + +mxArchiMate3CommNetw.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Path +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxArchiMate3Path(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxArchiMate3Path, mxShape); + +mxArchiMate3Path.prototype.cst = { + PATH : 'mxgraph.archimate3.path' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxArchiMate3Path.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); +}; + +mxArchiMate3Path.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(w * 0.2, h); + c.lineTo(0, h * 0.5); + c.lineTo(w * 0.2, 0); + c.moveTo(w * 0.8, h); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.8, 0); + c.stroke(); + + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxArchiMate3Path.prototype.cst.PATH, mxArchiMate3Path); + +mxArchiMate3Path.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + + return (constr); +}; diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxArrows.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxArrows.js new file mode 100644 index 0000000000000..ddceed3346269 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxArrows.js @@ -0,0 +1,2691 @@ +/** + * $Id: mxArrows.js,v 1.5 2016/03/23 12:32:06 mate Exp $ + * Copyright (c) 2006-2016, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2Arrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2Arrow, mxActor); + +mxShapeArrows2Arrow.prototype.customProperties = [ + {name: 'dx', dispName: 'Arrowhead Length', type: 'float', min: 0, defVal: 40}, + {name: 'dy', dispName: 'Arrow Width', type: 'float', min:0, max:1, defVal: 0.6}, + {name: 'notch', dispName: 'Notch', type: 'float', min:0, defVal: 0} +]; + +mxShapeArrows2Arrow.prototype.cst = { + ARROW : 'mxgraph.arrows2.arrow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2Arrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + + c.begin(); + c.moveTo(0, dy); + c.lineTo(w - dx, dy); + c.lineTo(w - dx, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(0, h - dy); + c.lineTo(notch, h * 0.5); + c.close(); + c.fillAndStroke(); +}; + +mxShapeArrows2Arrow.prototype.getLabelBounds = function(rect) +{ + if (mxUtils.getValue(this.style, "boundedLbl", false)) + { + var w = rect.width; + var h = rect.height; + + var dy, dx; + var direction = this.direction || mxConstants.DIRECTION_EAST; + + if (mxUtils.getValue(this.style, "flipH", false)) + { + if (direction == mxConstants.DIRECTION_WEST) + direction = mxConstants.DIRECTION_EAST; + else if (direction == mxConstants.DIRECTION_EAST) + direction = mxConstants.DIRECTION_WEST; + } + + if (mxUtils.getValue(this.style, "flipV", false)) + { + if (direction == mxConstants.DIRECTION_NORTH) + direction = mxConstants.DIRECTION_SOUTH; + else if (direction == mxConstants.DIRECTION_SOUTH) + direction = mxConstants.DIRECTION_NORTH; + } + + + if (direction == mxConstants.DIRECTION_NORTH + || direction == mxConstants.DIRECTION_SOUTH) + { + dy = w * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + dx = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + } + else + { + dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + } + + if (direction == mxConstants.DIRECTION_EAST) + { + return new mxRectangle(rect.x, rect.y + dy, w - dx, h - 2 * dy); + } + else if (direction == mxConstants.DIRECTION_WEST) + { + return new mxRectangle(rect.x + dx, rect.y + dy, w - dx, h - 2 * dy); + } + else if (direction == mxConstants.DIRECTION_NORTH) + { + return new mxRectangle(rect.x + dy, rect.y + dx, w - 2 * dy, h - dx); + } + else + { + return new mxRectangle(rect.x + dy, rect.y, w - 2 * dy, h - dx); + } + } + + return rect; +}; + +mxCellRenderer.registerShape(mxShapeArrows2Arrow.prototype.cst.ARROW, mxShapeArrows2Arrow); + +Graph.handleFactory[mxShapeArrows2Arrow.prototype.cst.ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dy * bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(1, (((pt.y - bounds.y) / bounds.height) * 2)))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), pt.x - bounds.x))) / 100; + }); + + handles.push(handle2); + + return handles; + +} + +mxShapeArrows2Arrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, h - dy)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Two Way Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2TwoWayArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2TwoWayArrow, mxActor); + +mxShapeArrows2TwoWayArrow.prototype.cst = { + TWO_WAY_ARROW : 'mxgraph.arrows2.twoWayArrow' +}; + +mxShapeArrows2TwoWayArrow.prototype.customProperties = [ + {name: 'dx', dispName: 'Arrowhead Length', type: 'float', min:0, defVal: 35}, + {name: 'dy', dispName: 'Arrow Width', type: 'float', min:0, max:1, defVal: 0.6} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2TwoWayArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + c.begin(); + c.moveTo(dx, dy); + c.lineTo(w - dx, dy); + c.lineTo(w - dx, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(dx, h - dy); + c.lineTo(dx, h); + c.lineTo(0, h * 0.5); + c.lineTo(dx, 0); + c.close(); + c.fillAndStroke(); +}; + +mxShapeArrows2TwoWayArrow.prototype.getLabelBounds = function(rect) +{ + if (mxUtils.getValue(this.style, "boundedLbl", false)) + { + var w = rect.width; + var h = rect.height; + var vertical = this.direction == mxConstants.DIRECTION_NORTH + || this.direction == mxConstants.DIRECTION_SOUTH; + + var dy, dx; + + if (vertical) + { + dy = w * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + dx = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + } + else + { + dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + } + + if (vertical) + { + return new mxRectangle(rect.x + dy, rect.y + dx, w - 2 * dy, h - 2 * dx); + } + else + { + return new mxRectangle(rect.x + dx, rect.y + dy, w - 2 * dx, h - 2 * dy); + } + } + + return rect; +}; + +mxCellRenderer.registerShape(mxShapeArrows2TwoWayArrow.prototype.cst.TWO_WAY_ARROW, mxShapeArrows2TwoWayArrow); + +mxShapeArrows2TwoWayArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2TwoWayArrow.prototype.cst.TWO_WAY_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dy * bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2, bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(1, (((pt.y - bounds.y) / bounds.height) * 2)))) / 100; + })]; + + return handles; + +} + +mxShapeArrows2TwoWayArrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, h - dy)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Stylised Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2StylisedArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.feather = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2StylisedArrow, mxActor); + +mxShapeArrows2StylisedArrow.prototype.customProperties = [ + {name: 'dx', dispName: 'Arrowhead Length', type: 'float', min:0, defVal:40}, + {name: 'dy', dispName: 'Arrow Width', type: 'float', min:0, max:1, defVal:0.6}, + {name: 'notch', dispName: 'Notch', type: 'float', min:0, defVal:0}, + {name: 'feather', dispName: 'Feather', type: 'float', min:0, max:1, defVal:0.4}, +]; + +mxShapeArrows2StylisedArrow.prototype.cst = { + STYLISED_ARROW : 'mxgraph.arrows2.stylisedArrow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2StylisedArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var feather = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'feather', this.feather)))); + + c.begin(); + c.moveTo(0, feather); + c.lineTo(w - dx, dy); + c.lineTo(w - dx - 10, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx - 10, h); + c.lineTo(w - dx, h - dy); + c.lineTo(0, h - feather); + c.lineTo(notch, h * 0.5); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2StylisedArrow.prototype.cst.STYLISED_ARROW, mxShapeArrows2StylisedArrow); + +mxShapeArrows2StylisedArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2StylisedArrow.prototype.cst.STYLISED_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width - 10, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dy * bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width - 10, bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(1, (((pt.y - bounds.y) / bounds.height) * 2)))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var notch = Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), pt.x - bounds.x))) / 100; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['feather'], function(bounds) + { + var feather = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'feather', this.dy)))); + + return new mxPoint(bounds.x, bounds.y + feather * bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['feather'] = Math.round(100 * Math.max(0, Math.min(1, (((pt.y - bounds.y) / bounds.height) * 2)))) / 100; + }); + + handles.push(handle3); + + return handles; + +} + +mxShapeArrows2StylisedArrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var feather = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'feather', this.feather)))); + + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, feather)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - feather)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx - 10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx - 10, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, (dy + feather) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, h - (dy + feather) * 0.5)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Sharp Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2SharpArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy1 = 0.5; + this.dx1 = 0.5; + this.dx2 = 0.5; + this.notch = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2SharpArrow, mxActor); + +mxShapeArrows2SharpArrow.prototype.cst = { + SHARP_ARROW : 'mxgraph.arrows2.sharpArrow' +}; + +mxShapeArrows2SharpArrow.prototype.customProperties = [ + {name: 'dx1', dispName: 'Arrowhead Arrow Width', type: 'float', min:0, defVal:18}, + {name: 'dy1', dispName: 'Arrow Arrow Width', type: 'float', min:0, max:1, defVal:0.67}, + {name: 'dx2', dispName: 'Arrowhead Angle', type: 'float', min:0, defVal:18}, + {name: 'notch', dispName: 'Notch', type: 'float', min:0, defVal:0} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2SharpArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy1 = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var dx1a = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy1a = h * 0.5 * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var x2 = 0; + + if (h != 0) + { + x2 = dx1a + dx2 * dy1a * 2 / h; + } + + c.begin(); + c.moveTo(0, dy1); + c.lineTo(w - dx1, dy1); + c.lineTo(w - x2, 0); + c.lineTo(w - dx2, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx2, h); + c.lineTo(w - x2, h); + c.lineTo(w - dx1, h - dy1); + c.lineTo(0, h - dy1); + c.lineTo(notch, h * 0.5); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2SharpArrow.prototype.cst.SHARP_ARROW, mxShapeArrows2SharpArrow); + +mxShapeArrows2SharpArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2SharpArrow.prototype.cst.SHARP_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx1', 'dy1'], function(bounds) + { + var dx1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + dy1 * bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy1'] = Math.round(100 * Math.max(0, Math.min(1, (((pt.y - bounds.y) / bounds.height) * 2)))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), pt.x - bounds.x))) / 100; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['dx2'], function(bounds) + { + var dx2 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + + return new mxPoint(bounds.x + bounds.width - dx2, bounds.y); + }, function(bounds, pt) + { + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + }); + + handles.push(handle3); + + return handles; +}; + +mxShapeArrows2SharpArrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy1 = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var dx1a = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy1a = h * 0.5 * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var x2 = 0; + + if (h != 0) + { + x2 = dx1a + dx2 * dy1a * 2 / h; + } + + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - x2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, h - dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - x2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1) * 0.5, dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1) * 0.5, h - dy1)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Sharp Arrow2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2SharpArrow2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy1 = 0.5; + this.dx1 = 0.5; + this.dx2 = 0.5; + this.dy3 = 0.5; + this.dx3 = 0.5; + + this.notch = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2SharpArrow2, mxActor); + +mxShapeArrows2SharpArrow2.prototype.customProperties = [ + {name: 'dx1', dispName: 'Arrowhead Arrow Width', type: 'float', min:0, defVal:18}, + {name: 'dy1', dispName: 'Arrow Width', type: 'float', min:0, max:1, defVal:0.67}, + {name: 'dx2', dispName: 'Arrowhead Angle', type: 'float', min:0, defVal:18}, + {name: 'dx3', dispName: 'Arrowhead Edge X', type: 'float', min:0, defVal:27}, + {name: 'dy3', dispName: 'Arrowhead Edge Y', type: 'float', min:0, max:1, defVal:0.15}, + {name: 'notch', dispName: 'Notch', type: 'float', min:0, defVal:0} +]; + +mxShapeArrows2SharpArrow2.prototype.cst = { + SHARP_ARROW2 : 'mxgraph.arrows2.sharpArrow2' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2SharpArrow2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy1 = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var dy3 = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy3', this.dy3)))); + var dx3 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx3', this.dx3)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var dx1a = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy1a = h * 0.5 * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + + c.begin(); + c.moveTo(0, dy1); + c.lineTo(w - dx1, dy1); + c.lineTo(w - dx3, dy3); + c.lineTo(w - dx2, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx2, h); + c.lineTo(w - dx3, h - dy3); + c.lineTo(w - dx1, h - dy1); + c.lineTo(0, h - dy1); + c.lineTo(notch, h * 0.5); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2SharpArrow2.prototype.cst.SHARP_ARROW2, mxShapeArrows2SharpArrow2); + +mxShapeArrows2SharpArrow2.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2SharpArrow2.prototype.cst.SHARP_ARROW2] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx1', 'dy1'], function(bounds) + { + var dx1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + dy1 * bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy1'] = Math.round(100 * Math.max(0, Math.min(1, (((pt.y - bounds.y) / bounds.height) * 2)))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), pt.x - bounds.x))) / 100; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['dx2'], function(bounds) + { + var dx2 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + + return new mxPoint(bounds.x + bounds.width - dx2, bounds.y); + }, function(bounds, pt) + { + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + }); + + handles.push(handle3); + + var handle4 = Graph.createHandle(state, ['dx3', 'dy3'], function(bounds) + { + var dx3 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx3', this.dx3)))); + var dy3 = Math.max(0, Math.min(1 - parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)) / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy3', this.dy3)))); + + return new mxPoint(bounds.x + bounds.width - dx3, bounds.y + dy3 * bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx3'] = Math.round(100 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)), Math.min(bounds.width, bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy3'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)), (((pt.y - bounds.y) / bounds.height) * 2)))) / 100; + }); + + handles.push(handle4); + + return handles; +}; + +mxShapeArrows2SharpArrow2.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy1 = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var dy3 = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy3', this.dy3)))); + var dx3 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx3', this.dx3)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var dx1a = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy1a = h * 0.5 * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx3, dy3)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, h - dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx3, h - dy3)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1) * 0.5, dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1) * 0.5, h - dy1)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Callout Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2CalloutArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2CalloutArrow, mxActor); + +mxShapeArrows2CalloutArrow.prototype.customProperties = [ + {name: 'dx', dispName: 'Arrowhead Length', type: 'float', min:0, defVal:20}, + {name: 'arrowHead', dispName: 'Arrowhead Width', type: 'float', min:0, defVal:10}, + {name: 'dy', dispName: 'Arrow Width', type: 'float', min:0, defVal:10}, + {name: 'notch', dispName: 'Rectangle Width', type: 'float', min:0, defVal:60} +]; + +mxShapeArrows2CalloutArrow.prototype.cst = { + CALLOUT_ARROW : 'mxgraph.arrows2.calloutArrow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2CalloutArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(notch, 0); + c.lineTo(notch, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy - arrowHead); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx, h * 0.5 + dy + arrowHead); + c.lineTo(w - dx, h * 0.5 + dy); + c.lineTo(notch, h * 0.5 + dy); + c.lineTo(notch, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2CalloutArrow.prototype.cst.CALLOUT_ARROW, mxShapeArrows2CalloutArrow); + +mxShapeArrows2CalloutArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2CalloutArrow.prototype.cst.CALLOUT_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2 - arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), bounds.y + bounds.height / 2 - pt.y))) / 100; + + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), pt.x - bounds.x))) / 100; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['arrowHead'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy - arrowHead); + }, function(bounds, pt) + { + this.state.style['arrowHead'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), bounds.y + bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)) - pt.y))) / 100; + }); + + handles.push(handle3); + + return handles; +}; + +mxShapeArrows2CalloutArrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null,notch, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 - dy - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 + dy + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, notch, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, notch, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, notch * 0.5 , 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, notch * 0.5 , h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, (notch + w - dx) * 0.5, -dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, (notch + w - dx) * 0.5, dy)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Bend Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2BendArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 40; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2BendArrow, mxActor); + +mxShapeArrows2BendArrow.prototype.customProperties = [ + {name: 'dx', dispName: 'Arrowhead Length', type: 'float', min:0, defVal: 38}, + {name: 'dy', dispName: 'Arrow Width', type: 'float', min:0, defVal: 15}, + {name: 'notch', dispName: 'Notch', type: 'float', min:0, defVal: 0}, + {name: 'arrowHead', dispName: 'Arrowhead Width', type: 'float', min:0, defVal:55}, + {name: 'rounded', dispName: 'Rounded', type: 'boolean', defVal: false} +]; + +mxShapeArrows2BendArrow.prototype.cst = { + BEND_ARROW : 'mxgraph.arrows2.bendArrow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2BendArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var rounded = mxUtils.getValue(this.style, 'rounded', '0'); + + c.begin(); + c.moveTo(w - dx, 0); + c.lineTo(w, arrowHead * 0.5); + c.lineTo(w - dx, arrowHead); + c.lineTo(w - dx, arrowHead / 2 + dy); + + if (rounded == '1') + { + c.lineTo(dy * 2.2, arrowHead / 2 + dy); + c.arcTo(dy * 0.2, dy * 0.2, 0, 0, 0, dy * 2, arrowHead / 2 + dy * 1.2); + } + else + { + c.lineTo(dy * 2, arrowHead / 2 + dy); + } + + c.lineTo(dy * 2, h); + c.lineTo(dy, h - notch); + c.lineTo(0, h); + + if (rounded == '1') + { + c.lineTo(0, arrowHead / 2 + dy); + c.arcTo(dy * 2, dy * 2, 0, 0, 1, dy * 2, arrowHead / 2 - dy); + } + else + { + c.lineTo(0, arrowHead / 2 - dy); + } + + c.lineTo(w - dx, arrowHead / 2 - dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2BendArrow.prototype.cst.BEND_ARROW, mxShapeArrows2BendArrow); + +mxShapeArrows2BendArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2BendArrow.prototype.cst.BEND_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + arrowHead / 2 - dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)) * 2.2, bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2, bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2 - pt.y))) / 100; + + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + var notch = Math.max(0, Math.min(bounds.height - arrowHead / 2 - dy, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + dy, bounds.y + bounds.height - notch); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.height - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), bounds.y + bounds.height - pt.y))) / 100; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['arrowHead'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + arrowHead); + }, function(bounds, pt) + { + this.state.style['arrowHead'] = Math.round(100 * Math.max(2 * parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), Math.min(bounds.height, pt.y - bounds.y))) / 100; + }); + + handles.push(handle3); + + return handles; +}; + +mxShapeArrows2BendArrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var rounded = mxUtils.getValue(this.style, 'rounded', '0'); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx + dy * 2) * 0.5, arrowHead / 2 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, arrowHead / 2 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, arrowHead * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, arrowHead / 2 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx + dy * 2) * 0.5, arrowHead / 2 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dy * 2, (h - arrowHead / 2 - dy) * 0.5 + arrowHead / 2 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dy * 2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dy, h - notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - arrowHead / 2 - dy) * 0.5 + arrowHead / 2 + dy)); + + if (rounded == '1') + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dy * 0.586, arrowHead / 2 - dy * 0.414)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2 * dy + dy * 0.0586, arrowHead / 2 + dy + dy * 0.0586)); + } + else + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, arrowHead / 2 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dy * 2, arrowHead / 2 + dy)); + } + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Bend Double Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2BendDoubleArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 40; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2BendDoubleArrow, mxActor); + +mxShapeArrows2BendDoubleArrow.prototype.customProperties = [ + {name: 'dx', dispName: 'Arrowhead Length', type: 'float', min:0, defVal:38}, + {name: 'dy', dispName: 'Arrow Width', type: 'float', min:0, defVal:15}, + {name: 'arrowHead', dispName: 'Arrowhead Width', type: 'float', min:0, defVal:55}, + {name: 'rounded', dispName: 'Rounded', type: 'boolean', defVal:false} +]; + +mxShapeArrows2BendDoubleArrow.prototype.cst = { + BEND_DOUBLE_ARROW : 'mxgraph.arrows2.bendDoubleArrow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2BendDoubleArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var rounded = mxUtils.getValue(this.style, 'rounded', '0'); + + c.begin(); + c.moveTo(w - dx, 0); + c.lineTo(w, arrowHead * 0.5); + c.lineTo(w - dx, arrowHead); + c.lineTo(w - dx, arrowHead / 2 + dy); + + if (rounded == '1') + { + c.lineTo(arrowHead / 2 + dy * 1.2, arrowHead / 2 + dy); + c.arcTo(dy * 0.2, dy * 0.2, 0, 0, 0, arrowHead /2 + dy, arrowHead / 2 + dy * 1.2); + } + else + { + c.lineTo(arrowHead / 2 + dy, arrowHead / 2 + dy); + } + + c.lineTo(arrowHead / 2 + dy, h - dx); + c.lineTo(arrowHead, h - dx); + c.lineTo(arrowHead / 2, h); + c.lineTo(0, h - dx); + c.lineTo(arrowHead / 2 - dy, h - dx); + + if (rounded == '1') + { + c.lineTo(arrowHead / 2 - dy, arrowHead / 2 + dy); + c.arcTo(dy * 2, dy * 2, 0, 0, 1, arrowHead / 2 + dy, arrowHead / 2 - dy); + } + else + { + c.lineTo(arrowHead / 2 - dy, arrowHead / 2 - dy); + } + + c.lineTo(w - dx, arrowHead / 2 - dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2BendDoubleArrow.prototype.cst.BEND_DOUBLE_ARROW, mxShapeArrows2BendDoubleArrow); + +mxShapeArrows2BendDoubleArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2BendDoubleArrow.prototype.cst.BEND_DOUBLE_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var arrowHead = Math.max(0, Math.min(Math.min(bounds.height, bounds.width) - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(Math.min(bounds.width, bounds.height) - arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + arrowHead / 2 - dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(Math.min(bounds.width, bounds.height) - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2, bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2 - pt.y))) / 100; + + })]; + + var handle2 = Graph.createHandle(state, ['arrowHead'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(Math.min(bounds.height, bounds.width) - dx, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + arrowHead); + }, function(bounds, pt) + { + this.state.style['arrowHead'] = Math.round(100 * Math.max(2 * parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), Math.min(Math.min(bounds.height, bounds.width) - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), pt.y - bounds.y))) / 100; + }); + + handles.push(handle2); + + return handles; +}; + +mxShapeArrows2BendDoubleArrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var rounded = mxUtils.getValue(this.style, 'rounded', '0'); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx , 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, arrowHead * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, arrowHead / 2 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (arrowHead / 2 + dy + w - dx) * 0.5, arrowHead / 2 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (arrowHead / 2 + dy + w - dx) * 0.5, arrowHead / 2 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 + dy, (arrowHead / 2 + dy + h - dx) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 - dy, (arrowHead / 2 + dy + h - dx) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 + dy, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 - dy, h - dx)); + + if (rounded == '1') + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 - dy * 0.414, arrowHead / 2 - dy * 0.414)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 + dy + dy * 0.0586, arrowHead / 2 + dy + dy * 0.0586)); + } + else + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 - dy, arrowHead / 2 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead / 2 + dy, arrowHead / 2 + dy)); + } + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Callout Double Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2CalloutDoubleArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2CalloutDoubleArrow, mxActor); + +mxShapeArrows2CalloutDoubleArrow.prototype.customProperties = [ + {name: 'dx', dispName: 'Arrowhead Length', type: 'float', min:0, defVal:20}, + {name: 'dy', dispName: 'Arrow Width', type: 'float', min:0, defVal:10}, + {name: 'arrowHead', dispName: 'Arrowhead Width', type: 'float', min:0, defVal:10}, + {name: 'notch', dispName: 'Rect Size', type: 'float', min:0, defVal:24} +]; + +mxShapeArrows2CalloutDoubleArrow.prototype.cst = { + CALLOUT_DOUBLE_ARROW : 'mxgraph.arrows2.calloutDoubleArrow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2CalloutDoubleArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + + c.begin(); + c.moveTo(w / 2 - notch, 0); + c.lineTo(w / 2 + notch, 0); + c.lineTo(w / 2 + notch, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy - arrowHead); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx, h * 0.5 + dy + arrowHead); + c.lineTo(w - dx, h * 0.5 + dy); + c.lineTo(w / 2 + notch, h * 0.5 + dy); + c.lineTo(w / 2 + notch, h); + c.lineTo(w / 2 - notch, h); + c.lineTo(w / 2 - notch, h * 0.5 + dy); + c.lineTo(dx, h * 0.5 + dy); + c.lineTo(dx, h * 0.5 + dy + arrowHead); + c.lineTo(0, h * 0.5); + c.lineTo(dx, h * 0.5 - dy - arrowHead); + c.lineTo(dx, h * 0.5 - dy); + c.lineTo(w / 2 - notch, h * 0.5 - dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2CalloutDoubleArrow.prototype.cst.CALLOUT_DOUBLE_ARROW, mxShapeArrows2CalloutDoubleArrow); + +mxShapeArrows2CalloutDoubleArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2CalloutDoubleArrow.prototype.cst.CALLOUT_DOUBLE_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2 - arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2 - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), bounds.y + bounds.height / 2 - pt.y))) / 100; + + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + bounds.width / 2 + notch, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), pt.x - bounds.x - bounds.width / 2))) / 100; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['arrowHead'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy - arrowHead); + }, function(bounds, pt) + { + this.state.style['arrowHead'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), bounds.y + bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)) - pt.y))) / 100; + }); + + handles.push(handle3); + + return handles; +}; + +mxShapeArrows2CalloutDoubleArrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w / 2 - notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w / 2 + notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, w / 2 - notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, w / 2 + notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 - dy - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 + dy + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h * 0.5 - dy - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h * 0.5 + dy + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 1.5 - dx + notch) * 0.5, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 1.5 - dx + notch) * 0.5, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 0.5 + dx - notch) * 0.5, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 0.5 + dx - notch) * 0.5, h * 0.5 + dy)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Callout Quad Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2CalloutQuadArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2CalloutQuadArrow, mxActor); + +mxShapeArrows2CalloutQuadArrow.prototype.customProperties = [ + {name: 'dx', dispName: 'Arrowhead Length', type: 'float', min:0, defVal:20}, + {name: 'dy', dispName: 'Arrow Width', type: 'float', min:0, defVal: 10}, + {name: 'notch', dispName: 'Rect Size', type: 'float', min:0, defVal:24}, + {name: 'arrowHead', dispName: 'Arrowhead Width', type: 'float', min:0, defVal:10} +]; + +mxShapeArrows2CalloutQuadArrow.prototype.cst = { + CALLOUT_QUAD_ARROW : 'mxgraph.arrows2.calloutQuadArrow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2CalloutQuadArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + + c.begin(); + c.moveTo(w * 0.5 + dy, h * 0.5 - notch); + c.lineTo(w * 0.5 + notch, h * 0.5 - notch); + c.lineTo(w * 0.5 + notch, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy - arrowHead); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx, h * 0.5 + dy + arrowHead); + c.lineTo(w - dx, h * 0.5 + dy); + c.lineTo(w * 0.5 + notch, h * 0.5 + dy); + c.lineTo(w * 0.5 + notch, h * 0.5 + notch); + c.lineTo(w * 0.5 + dy, h * 0.5 + notch); + c.lineTo(w * 0.5 + dy, h - dx); + c.lineTo(w * 0.5 + dy + arrowHead, h - dx); + c.lineTo(w * 0.5, h); + c.lineTo(w * 0.5 - dy - arrowHead, h - dx); + c.lineTo(w * 0.5 - dy, h - dx); + c.lineTo(w * 0.5 - dy, h * 0.5 + notch); + c.lineTo(w * 0.5 - notch, h * 0.5 + notch); + c.lineTo(w * 0.5 - notch, h * 0.5 + dy); + c.lineTo(dx, h * 0.5 + dy); + c.lineTo(dx, h * 0.5 + dy + arrowHead); + c.lineTo(0, h * 0.5); + c.lineTo(dx, h * 0.5 - dy - arrowHead); + c.lineTo(dx, h * 0.5 - dy); + c.lineTo(w * 0.5 - notch, h * 0.5 - dy); + c.lineTo(w * 0.5 - notch, h * 0.5 - notch); + c.lineTo(w * 0.5 - dy, h * 0.5 - notch); + c.lineTo(w * 0.5 - dy, dx); + c.lineTo(w * 0.5 - dy - arrowHead, dx); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.5 + dy + arrowHead, dx); + c.lineTo(w * 0.5 + dy, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2CalloutQuadArrow.prototype.cst.CALLOUT_QUAD_ARROW, mxShapeArrows2CalloutQuadArrow); + +mxShapeArrows2CalloutQuadArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2CalloutQuadArrow.prototype.cst.CALLOUT_QUAD_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(Math.min(bounds.width, bounds.height) / 2 - Math.max(parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead))), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.y + bounds.height / 2 - pt.y))) / 100; + + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var notch = Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), Math.min(Math.min(bounds.width, bounds.height), parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + bounds.width / 2 + notch, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), Math.min(Math.min(bounds.width, bounds.height) / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), pt.x - bounds.x - bounds.width / 2))) / 100; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['arrowHead'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy - arrowHead); + }, function(bounds, pt) + { + this.state.style['arrowHead'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), bounds.y + bounds.height / 2 - pt.y))) / 100; + }); + + handles.push(handle3); + + return handles; +}; + +mxShapeArrows2CalloutQuadArrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy, h * 0.5 - notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + notch, h * 0.5 - notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + notch, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy, h * 0.5 + notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + notch, h * 0.5 + notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + notch, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy, h * 0.5 + notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - notch, h * 0.5 + notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - notch, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy, h * 0.5 - notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - notch, h * 0.5 - notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - notch, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 - dy - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 + dy + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy - arrowHead, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy + arrowHead, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h * 0.5 - dy - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h * 0.5 + dy + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy - arrowHead, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy + arrowHead, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75 + (notch - dx) * 0.5, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75 + (notch - dx) * 0.5, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy, h * 0.75 + (notch - dx) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy, h * 0.75 + (notch - dx) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25 - (notch - dx) * 0.5, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25 - (notch - dx) * 0.5, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy, h * 0.25 - (notch - dx) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy, h * 0.25 - (notch - dx) * 0.5)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Callout Double 90 Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2CalloutDouble90Arrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy1 = 0.5; + this.dx1 = 0.5; + this.dx2 = 0; + this.dy2 = 0; + this.arrowHead = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2CalloutDouble90Arrow, mxActor); + +mxShapeArrows2CalloutDouble90Arrow.prototype.customProperties = [ + {name: 'dx1', dispName: 'Arrowhead Length', type: 'float', min:0, defVal:20}, + {name: 'dy1', dispName: 'Arrow Width', type: 'float', min:0, defVal: 10}, + {name: 'dx2', dispName: 'Callout Width', type: 'float', min:0, defVal:70}, + {name: 'dy2', dispName: 'Callout Height', type: 'float', min:0, defVal:70}, + {name: 'arrowHead', dispName: 'ArrowHead Width', type: 'float', min:0, defVal:10} +]; + +mxShapeArrows2CalloutDouble90Arrow.prototype.cst = { + CALLOUT_DOUBLE_90_ARROW : 'mxgraph.arrows2.calloutDouble90Arrow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2CalloutDouble90Arrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy1 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var dy2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(dx2, 0); + c.lineTo(dx2, dy2 * 0.5 - dy1); + c.lineTo(w - dx1, dy2 * 0.5 - dy1); + c.lineTo(w - dx1, dy2 * 0.5 - dy1 - arrowHead); + c.lineTo(w, dy2 * 0.5); + c.lineTo(w - dx1, dy2 * 0.5 + dy1 + arrowHead); + c.lineTo(w - dx1, dy2 * 0.5 + dy1); + c.lineTo(dx2, dy2 * 0.5 + dy1); + c.lineTo(dx2, dy2); + c.lineTo(dx2 / 2 + dy1, dy2); + c.lineTo(dx2 / 2 + dy1, h - dx1); + c.lineTo(dx2 / 2 + dy1 + arrowHead, h - dx1); + c.lineTo(dx2 / 2, h); + c.lineTo(dx2 / 2 - dy1 - arrowHead, h - dx1); + c.lineTo(dx2 / 2 - dy1, h - dx1); + c.lineTo(dx2 / 2 - dy1, dy2); + c.lineTo(0, dy2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2CalloutDouble90Arrow.prototype.cst.CALLOUT_DOUBLE_90_ARROW, mxShapeArrows2CalloutDouble90Arrow); + +mxShapeArrows2CalloutDouble90Arrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2CalloutDouble90Arrow.prototype.cst.CALLOUT_DOUBLE_90_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx1', 'dy1'], function(bounds) + { + var arrowHead = Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx1 = Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)), parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2 - arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2 - dy1); + }, function(bounds, pt) + { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)), bounds.height - parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy1'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2 - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2 - pt.y))) / 100; + + })]; + + var handle2 = Graph.createHandle(state, ['dx2', 'dy2'], function(bounds) + { + var dx2 = Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)) + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + var dy2 = Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)) + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), Math.min(bounds.height - parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)), parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)))); + + return new mxPoint(bounds.x + dx2, bounds.y + dy2); + }, function(bounds, pt) + { + this.state.style['dx2'] = Math.round(100 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)) + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), pt.x - bounds.x))) / 100; + this.state.style['dy2'] = Math.round(100 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)) + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), Math.min(bounds.height - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), pt.y - bounds.y))) / 100; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['arrowHead'], function(bounds) + { + var dx1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + var arrowHead = Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2 - dy1 - arrowHead); + }, function(bounds, pt) + { + this.state.style['arrowHead'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)), bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)) - pt.y))) / 100; + }); + + handles.push(handle3); + + return handles; +}; + +mxShapeArrows2CalloutDouble90Arrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy1 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var dy2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1 + dx2) * 0.5, dy2 * 0.5 - dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, dy2 * 0.5 - dy1 - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy2 * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, dy2 * 0.5 + dy1 + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1 + dx2) * 0.5, dy2 * 0.5 + dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 * 0.5 + dy1, (h - dx1 + dy2) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 * 0.5 - dy1, (h - dx1 + dy2) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 / 2 + dy1 + arrowHead, h - dx1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 / 2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 / 2 - dy1 - arrowHead, h - dx1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy2)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Quad Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2QuadArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2QuadArrow, mxActor); + +mxShapeArrows2QuadArrow.prototype.customProperties = [ + {name: 'dx', dispName: 'Arrowhead Length', type: 'float', min:0, defVal:20}, + {name: 'dy', dispName: 'Arrow Width', type: 'float', min:0, defVal:10}, + {name: 'arrowHead', dispName: 'Arrowhead Width', type: 'float', min:0, defVal:10} +]; + +mxShapeArrows2QuadArrow.prototype.cst = { + QUAD_ARROW : 'mxgraph.arrows2.quadArrow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2QuadArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + + c.begin(); + c.moveTo(w * 0.5 + dy, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy); + c.lineTo(w - dx, h * 0.5 - dy - arrowHead); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx, h * 0.5 + dy + arrowHead); + c.lineTo(w - dx, h * 0.5 + dy); + c.lineTo(w * 0.5 + dy, h * 0.5 + dy); + c.lineTo(w * 0.5 + dy, h - dx); + c.lineTo(w * 0.5 + dy + arrowHead, h - dx); + c.lineTo(w * 0.5, h); + c.lineTo(w * 0.5 - dy - arrowHead, h - dx); + c.lineTo(w * 0.5 - dy, h - dx); + c.lineTo(w * 0.5 - dy, h * 0.5 + dy); + c.lineTo(dx, h * 0.5 + dy); + c.lineTo(dx, h * 0.5 + dy + arrowHead); + c.lineTo(0, h * 0.5); + c.lineTo(dx, h * 0.5 - dy - arrowHead); + c.lineTo(dx, h * 0.5 - dy); + c.lineTo(w * 0.5 - dy, h * 0.5 - dy); + c.lineTo(w * 0.5 - dy, dx); + c.lineTo(w * 0.5 - dy - arrowHead, dx); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.5 + dy + arrowHead, dx); + c.lineTo(w * 0.5 + dy, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2QuadArrow.prototype.cst.QUAD_ARROW, mxShapeArrows2QuadArrow); + +mxShapeArrows2QuadArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2QuadArrow.prototype.cst.QUAD_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(Math.min(bounds.width, bounds.height) / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)) - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), bounds.y + bounds.height / 2 - pt.y))) / 100; + + })]; + + var handle2 = Graph.createHandle(state, ['arrowHead'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height / 2 - dy - arrowHead); + }, function(bounds, pt) + { + this.state.style['arrowHead'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), bounds.y + bounds.height / 2 - pt.y))) / 100; + }); + + handles.push(handle2); + + return handles; +}; + +mxShapeArrows2QuadArrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 - dy - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h * 0.5 + dy + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h * 0.5 - dy - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h * 0.5 + dy + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy - arrowHead, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy + arrowHead, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy - arrowHead, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy + arrowHead, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy, (dx - dy) * 0.5 + h * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy, (dx - dy) * 0.5 + h * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - dy, (dy - dx) * 0.5 + h * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + dy, (dy - dx) * 0.5 + h * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (dx - dy) * 0.5 + w * 0.25, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (dx - dy) * 0.5 + w * 0.25, h * 0.5 + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (dy - dx) * 0.5 + w * 0.75, h * 0.5 - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (dy - dx) * 0.5 + w * 0.75, h * 0.5 + dy)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Triad Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2TriadArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.arrowHead = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2TriadArrow, mxActor); + +mxShapeArrows2TriadArrow.prototype.customProperties = [ + {name: 'dx', dispName: 'Arrowhead Length', type: 'float', min:0, defVal:20}, + {name: 'dy', dispName: 'Arrow Width', type: 'float', min:0, defVal:10}, + {name: 'arrowHead', dispName: 'Arrowhead Width', type: 'float', min:0, defVal:40} +]; + +mxShapeArrows2TriadArrow.prototype.cst = { + TRIAD_ARROW : 'mxgraph.arrows2.triadArrow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2TriadArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + + c.begin(); + c.moveTo(w * 0.5 + arrowHead * 0.5 - dy, h - arrowHead + dy); + c.lineTo(w - dx, h - arrowHead + dy); + c.lineTo(w - dx, h - arrowHead); + c.lineTo(w, h - arrowHead * 0.5); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(dx, h - dy); + c.lineTo(dx, h); + c.lineTo(0, h - arrowHead * 0.5); + c.lineTo(dx, h - arrowHead); + c.lineTo(dx, h - arrowHead + dy); + c.lineTo(w * 0.5 - arrowHead * 0.5 + dy, h - arrowHead + dy); + c.lineTo(w * 0.5 - arrowHead * 0.5 + dy, dx); + c.lineTo(w * 0.5 - arrowHead * 0.5, dx); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.5 + arrowHead * 0.5, dx); + c.lineTo(w * 0.5 + arrowHead * 0.5 - dy, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2TriadArrow.prototype.cst.TRIAD_ARROW, mxShapeArrows2TriadArrow); + +mxShapeArrows2TriadArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2TriadArrow.prototype.cst.TRIAD_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height - dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(Math.min(bounds.height - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), bounds.width / 2 - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2, bounds.y + bounds.height - pt.y))) / 100; + + })]; + + var handle2 = Graph.createHandle(state, ['arrowHead'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height - arrowHead); + }, function(bounds, pt) + { + this.state.style['arrowHead'] = Math.round(100 * Math.max(2 * parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), Math.min(bounds.height - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)) * 2, bounds.y + bounds.height - pt.y))) / 100; + }); + + handles.push(handle2); + + return handles; +}; + +mxShapeArrows2TriadArrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, - arrowHead * 0.5, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, arrowHead * 0.5, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - arrowHead * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - arrowHead * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 1.5 - dx + arrowHead * 0.5 - dy) * 0.5, h - arrowHead + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 1.5 - dx + arrowHead * 0.5 - dy) * 0.5, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 0.5 + dx - arrowHead * 0.5 + dy) * 0.5, h - arrowHead + dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 0.5 + dx - arrowHead * 0.5 + dy) * 0.5, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - arrowHead * 0.5 + dy, (dx + h - arrowHead + dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + arrowHead * 0.5 - dy, (dx + h - arrowHead + dy) * 0.5)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Tailed Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2TailedArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2TailedArrow, mxActor); + +mxShapeArrows2TailedArrow.prototype.customProperties = [ + {name: 'dx1', dispName: 'Arrowhead Length', type: 'float', min:0, defVal: 20}, + {name: 'dy1', dispName: 'Arrow Width', type: 'float', min:0, defVal: 10}, + {name: 'dx2', dispName: 'Tail Length', type: 'float', min:0, defVal: 25}, + {name: 'dy2', dispName: 'Tail Width', type: 'float', min:0, defVal:30}, + {name: 'notch', dispName: 'Notch', type: 'float', min:0, defVal: 0}, + {name: 'arrowHead', dispName: 'Arrowhead Width', type: 'float', min:0, defVal:20} +]; + +mxShapeArrows2TailedArrow.prototype.cst = { + TAILED_ARROW : 'mxgraph.arrows2.tailedArrow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2TailedArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy1 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy2 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var x2 = 0; + + if (dy2 != 0) + { + x2 = dx2 + dy2 * (dy2 - dy1) / dy2; + } + + c.begin(); + c.moveTo(0, h * 0.5 - dy2); + c.lineTo(dx2, h * 0.5 - dy2); + c.lineTo(x2, h * 0.5 - dy1); + c.lineTo(w - dx1, h * 0.5 - dy1); + c.lineTo(w - dx1, h * 0.5 - dy1 - arrowHead); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx1, h * 0.5 + dy1 + arrowHead); + c.lineTo(w - dx1, h * 0.5 + dy1); + c.lineTo(x2, h * 0.5 + dy1); + c.lineTo(dx2, h * 0.5 + dy2); + c.lineTo(0, h * 0.5 + dy2); + c.lineTo(notch, h * 0.5); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2TailedArrow.prototype.cst.TAILED_ARROW, mxShapeArrows2TailedArrow); + +mxShapeArrows2TailedArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2TailedArrow.prototype.cst.TAILED_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx1', 'dy1'], function(bounds) + { + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(bounds.height / 2 - arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + bounds.height / 2 - dy1); + }, function(bounds, pt) + { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy1'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)), bounds.y + bounds.height / 2 - pt.y))) / 100; + + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)), pt.x - bounds.x))) / 100; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['arrowHead'], function(bounds) + { + var dx1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + bounds.height / 2 - dy1 - arrowHead); + }, function(bounds, pt) + { + this.state.style['arrowHead'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)), bounds.y + bounds.height / 2 - pt.y))) / 100; + }); + + handles.push(handle3); + + var handle4 = Graph.createHandle(state, ['dx2', 'dy2'], function(bounds) + { + var dx2 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + var dy2 = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)))); + + return new mxPoint(bounds.x + dx2, bounds.y + bounds.height / 2 - dy2); + }, function(bounds, pt) + { + this.state.style['dx2'] = Math.round(100 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)) - parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)) + parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)) - 1, pt.x - bounds.x))) / 100; + this.state.style['dy2'] = Math.round(100 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)), Math.min(bounds.height / 2, bounds.y + bounds.height / 2 - pt.y))) / 100; + + }); + + handles.push(handle4); + + return handles; +}; + +mxShapeArrows2TailedArrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy1 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy2 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var x2 = 0; + + if (dy2 != 0) + { + x2 = dx2 + dy2 * (dy2 - dy1) / dy2; + } + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h * 0.5 - dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, h * 0.5 - dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1 + x2) * 0.5, h * 0.5 - dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, h * 0.5 - dy1 - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h * 0.5 + dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, h * 0.5 + dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1 + x2) * 0.5, h * 0.5 + dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, h * 0.5 + dy1 + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Tailed Arrow with Notch +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2TailedNotchedArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; + this.arrowHead = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2TailedNotchedArrow, mxActor); + +mxShapeArrows2TailedNotchedArrow.prototype.customProperties = [ + {name: 'dx1', dispName: 'Arrowhead Length', type: 'float', mix:0, defVal:20}, + {name: 'dy1', dispName: 'Arrow Width', type: 'float', min:0, defVal:10}, + {name: 'dx2', dispName: 'Tail Length', type: 'float', min:0, defVal:25}, + {name: 'dy2', dispName: 'Tail Width', type: 'float', min:0, defVal:30}, + {name: 'notch', dispName: 'Notch', type: 'float', min:0, defVal:20}, + {name: 'arrowHead', dispName: 'Arrowhead Width', type: 'float', min:0, defVal:20} +]; + +mxShapeArrows2TailedNotchedArrow.prototype.cst = { + TAILED_NOTCHED_ARROW : 'mxgraph.arrows2.tailedNotchedArrow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2TailedNotchedArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy1 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy2 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var x2 = 0; + + if (dy2 != 0) + { + x2 = dx2 + notch * (dy2 - dy1) / dy2; + } + + c.begin(); + c.moveTo(0, h * 0.5 - dy2); + c.lineTo(dx2, h * 0.5 - dy2); + c.lineTo(x2, h * 0.5 - dy1); + c.lineTo(w - dx1, h * 0.5 - dy1); + c.lineTo(w - dx1, h * 0.5 - dy1 - arrowHead); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx1, h * 0.5 + dy1 + arrowHead); + c.lineTo(w - dx1, h * 0.5 + dy1); + c.lineTo(x2, h * 0.5 + dy1); + c.lineTo(dx2, h * 0.5 + dy2); + c.lineTo(0, h * 0.5 + dy2); + c.lineTo(notch, h * 0.5); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2TailedNotchedArrow.prototype.cst.TAILED_NOTCHED_ARROW, mxShapeArrows2TailedNotchedArrow); + +mxShapeArrows2TailedNotchedArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2TailedNotchedArrow.prototype.cst.TAILED_NOTCHED_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx1', 'dy1'], function(bounds) + { + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(bounds.height / 2 - arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + bounds.height / 2 - dy1); + }, function(bounds, pt) + { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch))- parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy1'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)), parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)), bounds.y + bounds.height / 2 - pt.y))) / 100; + + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), pt.x - bounds.x))) / 100; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['arrowHead'], function(bounds) + { + var dx1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + var dy1 = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + var arrowHead = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + + return new mxPoint(bounds.x + bounds.width - dx1, bounds.y + bounds.height / 2 - dy1 - arrowHead); + }, function(bounds, pt) + { + this.state.style['arrowHead'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2 - parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)), bounds.y + bounds.height / 2 - pt.y))) / 100; + }); + + handles.push(handle3); + + var handle4 = Graph.createHandle(state, ['dx2', 'dy2'], function(bounds) + { + var dx2 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + var dy2 = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)))); + + return new mxPoint(bounds.x + dx2, bounds.y + bounds.height / 2 - dy2); + }, function(bounds, pt) + { + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)) - parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)), pt.x - bounds.x))) / 100; + this.state.style['dy2'] = Math.round(100 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)), Math.min(bounds.height / 2, bounds.y + bounds.height / 2 - pt.y))) / 100; + + }); + + handles.push(handle4); + + return handles; +}; + +mxShapeArrows2TailedNotchedArrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy1 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dx1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dy2 = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + var dx2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var x2 = 0; + + if (dy2 != 0) + { + x2 = dx2 + notch * (dy2 - dy1) / dy2; + } + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, notch, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h * 0.5 - dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, h * 0.5 - dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1 + x2) * 0.5, h * 0.5 - dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, h * 0.5 - dy1 - arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h * 0.5 + dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, h * 0.5 + dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx1 + x2) * 0.5, h * 0.5 + dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx1, h * 0.5 + dy1 + arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Striped Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2StripedArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.notch = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2StripedArrow, mxActor); + +mxShapeArrows2StripedArrow.prototype.customProperties = [ + {name: 'dx', dispName: 'Arrowhead Length', type: 'float', min:0, defVal:40}, + {name: 'dy', dispName: 'Arrow Width', type: 'float', min:0, max:1, defVal:0.6}, + {name: 'notch', dispName: 'Stripes Length', type: 'float', min:0, defVal:25} +]; + +mxShapeArrows2StripedArrow.prototype.cst = { + STRIPED_ARROW : 'mxgraph.arrows2.stripedArrow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2StripedArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + + c.begin(); + c.moveTo(notch, dy); + c.lineTo(w - dx, dy); + c.lineTo(w - dx, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(notch, h - dy); + c.close(); + c.moveTo(0, h - dy); + c.lineTo(notch * 0.16, h - dy); + c.lineTo(notch * 0.16, dy); + c.lineTo(0, dy); + c.close(); + c.moveTo(notch * 0.32, h - dy); + c.lineTo(notch * 0.8, h - dy); + c.lineTo(notch * 0.8, dy); + c.lineTo(notch * 0.32, dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2StripedArrow.prototype.cst.STRIPED_ARROW, mxShapeArrows2StripedArrow); + +mxShapeArrows2StripedArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2StripedArrow.prototype.cst.STRIPED_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dy * bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)), bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(1, (((pt.y - bounds.y) / bounds.height) * 2)))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + notch, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width - parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)), pt.x - bounds.x))) / 100; + }); + + handles.push(handle2); + + return handles; +}; + +mxShapeArrows2StripedArrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = h * 0.5 * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 0, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, h - dy)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Jump-In Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2JumpInArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.arrowHead = 40; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2JumpInArrow, mxActor); + +mxShapeArrows2JumpInArrow.prototype.customProperties = [ + {name: 'dx', dispName: 'Arrowhead Length', type: 'float', min:0, defVal:38}, + {name: 'dy', dispName: 'Arrow Width', type: 'float', min:0, defVal:15}, + {name: 'arrowHead', dispName: 'Arrowhead Width', type: 'float', min:0, defVal:55} +]; + +mxShapeArrows2JumpInArrow.prototype.cst = { + JUMP_IN_ARROW : 'mxgraph.arrows2.jumpInArrow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2JumpInArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + + c.begin(); + c.moveTo(w - dx, 0); + c.lineTo(w, arrowHead * 0.5); + c.lineTo(w - dx, arrowHead); + c.lineTo(w - dx, arrowHead / 2 + dy); + c.arcTo(w - dx, h - arrowHead / 2 - dy, 0, 0, 0, 0, h); + c.arcTo(w - dx, h - arrowHead / 2 + dy, 0, 0, 1, w - dx, arrowHead / 2 - dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2JumpInArrow.prototype.cst.JUMP_IN_ARROW, mxShapeArrows2JumpInArrow); + +mxShapeArrows2JumpInArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2JumpInArrow.prototype.cst.JUMP_IN_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + arrowHead / 2 - dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2, bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2 - pt.y))) / 100; + + })]; + + var handle2 = Graph.createHandle(state, ['arrowHead'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + arrowHead); + }, function(bounds, pt) + { + this.state.style['arrowHead'] = Math.round(100 * Math.max(2 * parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), Math.min(bounds.height, pt.y - bounds.y))) / 100; + }); + + handles.push(handle2); + + return handles; +}; + +mxShapeArrows2JumpInArrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, arrowHead * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, arrowHead)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//U Turn Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeArrows2UTurnArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.arrowHead = 40; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeArrows2UTurnArrow, mxActor); + +mxShapeArrows2UTurnArrow.prototype.customProperties = [ + {name: 'dx2', dispName: 'Arrowhead Length', type: 'float', min:0, defVal:25}, + {name: 'dy', dispName: 'Arrow Width', type: 'float', min:0, defVal:11}, + {name: 'arrowHead', dispName: 'Arrowhead Width', type: 'float', min:0, defVal:43} +]; + +mxShapeArrows2UTurnArrow.prototype.cst = { + U_TURN_ARROW : 'mxgraph.arrows2.uTurnArrow' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeArrows2UTurnArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var dx = (h - arrowHead / 2 + dy) / 2; + var dx2 = Math.max(0, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2))); + + c.begin(); + c.moveTo(dx, 0); + c.lineTo(dx + dx2, arrowHead * 0.5); + c.lineTo(dx, arrowHead); + c.lineTo(dx, arrowHead / 2 + dy); + c.arcTo(dx - 2 * dy, dx - 2 * dy, 0, 0, 0, dx, h - 2 * dy); + c.lineTo(Math.max(w, dx), h - 2 * dy); + c.lineTo(Math.max(w, dx), h); + c.lineTo(dx, h); + c.arcTo(dx, dx, 0, 0, 1, dx, arrowHead / 2 - dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeArrows2UTurnArrow.prototype.cst.U_TURN_ARROW, mxShapeArrows2UTurnArrow); + +mxShapeArrows2UTurnArrow.prototype.constraints = null; + +Graph.handleFactory[mxShapeArrows2UTurnArrow.prototype.cst.U_TURN_ARROW] = function(state) +{ + var handles = [Graph.createHandle(state, ['dy'], function(bounds) + { + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var dx = (bounds.height - arrowHead / 2 + dy) / 2; + + return new mxPoint(bounds.x + dx, bounds.y + arrowHead / 2 - dy); + }, function(bounds, pt) + { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2, bounds.y + parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)) / 2 - pt.y))) / 100; + + })]; + + var handle2 = Graph.createHandle(state, ['dx2'], function(bounds) + { + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var dx = (bounds.height - arrowHead / 2 + dy) / 2; + + var dx2 = Math.max(0, Math.min(bounds.width - dx, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + + return new mxPoint(bounds.x + dx + dx2, bounds.y + arrowHead / 2); + }, function(bounds, pt) + { + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var dx = (bounds.height - arrowHead / 2 + dy) / 2; + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(Math.max(bounds.width, dx), pt.x - bounds.x - dx))) / 100; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['arrowHead'], function(bounds) + { + var arrowHead = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'arrowHead', this.arrowHead)))); + var dy = Math.max(0, Math.min(arrowHead, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var dx = (bounds.height - arrowHead / 2 + dy) / 2; + + return new mxPoint(bounds.x + dx, bounds.y + arrowHead); + }, function(bounds, pt) + { + this.state.style['arrowHead'] = Math.round(100 * Math.max(2 * parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)), Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + }); + + handles.push(handle3); + + return handles; +}; + +mxShapeArrows2UTurnArrow.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var arrowHead = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'arrowHead', this.arrowHead)))); + var dx = (h - arrowHead / 2 + dy) / 2; + var dx2 = Math.max(0, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2))); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + dx2, arrowHead * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, arrowHead)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (dx + w) * 0.5, h - 2 * dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, Math.max(w, dx), h - 2 * dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, Math.max(w, dx), h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, Math.max(w, dx), h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (dx + w) * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h + arrowHead * 0.5 - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, arrowHead - 2 * dy, (h + arrowHead * 0.5 - dy) * 0.5)); + + return (constr); +}; diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxAtlassian.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxAtlassian.js new file mode 100644 index 0000000000000..d112d1288b5cf --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxAtlassian.js @@ -0,0 +1,291 @@ +/** + * $Id: mxAtlassian.js,v 1.0 2018/24/05 12:32:06 mate Exp $ + * Copyright (c) 2006-2018, JGraph Ltd + */ +//********************************************************************************************************************************************************** +// Issue +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxAtlassianJiraIssue(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxAtlassianJiraIssue, mxRectangleShape); + +mxAtlassianJiraIssue.prototype.customProperties = [ + {name: 'issueType', dispName: 'Issue Type', type: 'enum', + enumList: [{val: 'story', dispName: 'Story'}, + {val: 'task', dispName: 'Task'}, + {val: 'subTask', dispName: 'Sub-Task'}, + {val: 'feature', dispName: 'Feature'}, + {val: 'bug', dispName: 'Bug'}, + {val: 'techTask', dispName: 'Tech Task'}, + {val: 'epic', dispName: 'Epic'}, + {val: 'improvement', dispName: 'Improvement'}, + {val: 'fault', dispName: 'Fault'}, + {val: 'change', dispName: 'Change'}, + {val: 'access', dispName: 'Access'}, + {val: 'purchase', dispName: 'Purchase'}, + {val: 'itHelp', dispName: 'IT Help'}] + }, + {name: 'issuePriority', dispName: 'Issue Priority', type: 'enum', + enumList: [{val: 'blocker', dispName: 'Blocker'}, + {val: 'critical', dispName: 'Critical'}, + {val: 'major', dispName: 'Major'}, + {val: 'minor', dispName: 'Minor'}, + {val: 'trivial', dispName: 'Trivial'}] + }, + {name: 'issueStatus', dispName: 'Issue Status', type: 'enum', + enumList: [{val: 'todo', dispName: 'TODO'}, + {val: 'inProgress', dispName: 'In Progress'}, + {val: 'inReview', dispName: 'In Review'}, + {val: 'done', dispName: 'Done'}] + } +]; + +mxAtlassianJiraIssue.prototype.cst = {ISSUE : 'mxgraph.atlassian.issue'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxAtlassianJiraIssue.prototype.paintForeground = function(c, x, y, w, h) +{ + c.translate(x, y); + + var issueType = mxUtils.getValue(this.style, 'issueType', 'task'); + var issuePriority = mxUtils.getValue(this.style, 'issuePriority', 'minor'); + var issueStatus = mxUtils.getValue(this.style, 'issueStatus', 'todo'); + + c.setStrokeColor('none'); + + switch (issueType) { + case 'story': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.story'); + + if (stencil != null) + { + c.setFillColor('#61B659'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + case 'task': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.task'); + + if (stencil != null) + { + c.setFillColor('#5EA3E4'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + case 'subTask': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.subtask'); + + if (stencil != null) + { + c.setFillColor('#5EA3E4'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + case 'feature': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.new_feature'); + + if (stencil != null) + { + c.setFillColor('#61B659'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + case 'bug': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.bug'); + + if (stencil != null) + { + c.setFillColor('#CE0000'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + case 'techTask': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.tech_task'); + + if (stencil != null) + { + c.setFillColor('#999C95'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + case 'epic': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.epic'); + + if (stencil != null) + { + c.setFillColor('#9E4ADD'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + case 'improvement': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.improvement'); + + if (stencil != null) + { + c.setFillColor('#61B659'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + case 'fault': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.fault'); + + if (stencil != null) + { + c.setFillColor('#F8902F'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + case 'change': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.change'); + + if (stencil != null) + { + c.setFillColor('#9E4ADD'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + case 'access': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.access'); + + if (stencil != null) + { + c.setFillColor('#F8902F'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + case 'purchase': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.purchase'); + + if (stencil != null) + { + c.setFillColor('#61B659'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + case 'itHelp': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.it_help'); + + if (stencil != null) + { + c.setFillColor('#5EA3E4'); + stencil.drawShape(c, this, 5, 5, 10, 10); + } + + break; + } + + switch (issuePriority) { + case 'blocker': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.no'); + + if (stencil != null) + { + c.setFillColor('#CE0000'); + stencil.drawShape(c, this, 85, 5, 10, 10); + } + break; + case 'critical': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.critical'); + + if (stencil != null) + { + c.setFillColor('#CE0000'); + stencil.drawShape(c, this, 86, 3, 8, 14); + } + break; + case 'major': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.double_up'); + + if (stencil != null) + { + c.setFillColor('#CE0000'); + stencil.drawShape(c, this, 85, 5, 10, 10); + } + break; + case 'minor': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.double'); + + if (stencil != null) + { + c.setFillColor('#2A8735'); + stencil.drawShape(c, this, 85, 5, 10, 10); + } + break; + case 'trivial': + var stencil = mxStencilRegistry.getStencil('mxgraph.atlassian.single'); + + if (stencil != null) + { + c.setFillColor('#9AA1B2'); + stencil.drawShape(c, this, 85, 5, 10, 10); + } + break; + } + + c.setFillColor('#FFFFFD'); + c.setFontColor('#4E6B89'); + + switch (issueStatus) { + case 'todo': + c.rect(w - 45, 5, 40, 20); + c.fill(); + + c.text(w - 25, 15, 0, 0, 'TO DO', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + break; + case 'inProgress': + c.rect(w - 85, 5, 80, 20); + c.fill(); + + c.text(w - 45, 15, 0, 0, 'IN PROGRESS', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + break; + case 'inReview': + c.rect(w - 75, 5, 70, 20); + c.fill(); + + c.text(w - 40, 15, 0, 0, 'IN REVIEW', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + break; + case 'done': + c.rect(w - 45, 5, 40, 20); + c.fill(); + + c.text(w - 25, 15, 0, 0, 'DONE', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + break; + default: + var tw = mxUtils.getValue(this.style, 'issueStatusWidth', issueStatus.length * 6.5); + c.rect(w - tw - 5, 5, tw, 20); + c.fill(); + c.text(w - 7, 15, 0, 0, issueStatus, mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxAtlassianJiraIssue.prototype.cst.ISSUE, mxAtlassianJiraIssue); diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxBasic.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxBasic.js new file mode 100644 index 0000000000000..169de727351ab --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxBasic.js @@ -0,0 +1,4600 @@ +/** + * $Id: mxBasic.js,v 1.5 2016/04/1 12:32:06 mate Exp $ + * Copyright (c) 2006-2018, JGraph Ltd + */ +//********************************************************************************************************************************************************** +// Cross +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicCross(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicCross, mxActor); + +mxShapeBasicCross.prototype.cst = {CROSS : 'mxgraph.basic.cross2'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicCross.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + c.begin(); + c.moveTo(w * 0.5 + dx, 0); + c.lineTo(w * 0.5 + dx, h * 0.5 - dx); + c.lineTo(w, h * 0.5 - dx); + c.lineTo(w, h * 0.5 + dx); + c.lineTo(w * 0.5 + dx, h * 0.5 + dx); + c.lineTo(w * 0.5 + dx, h); + c.lineTo(w * 0.5 - dx, h); + c.lineTo(w * 0.5 - dx, h * 0.5 + dx); + c.lineTo(0, h * 0.5 + dx); + c.lineTo(0, h * 0.5 - dx); + c.lineTo(w * 0.5 - dx, h * 0.5 - dx); + c.lineTo(w * 0.5 - dx, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicCross.prototype.cst.CROSS, mxShapeBasicCross); + +mxShapeBasicCross.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicCross.prototype.cst.CROSS] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + bounds.width / 2 + dx, bounds.y + bounds.height / 2 - dx); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x - bounds.width / 2))) / 100; + })]; + + return handles; +}; + +//********************************************************************************************************************************************************** +// Rectangular Callout +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicRectCallout(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicRectCallout, mxActor); + +mxShapeBasicRectCallout.prototype.customProperties = [ + {name: 'dx', dispName: 'Callout Position', type: 'float', min:0, defVal:30}, + {name: 'dy', dispName: 'Callout Size', type: 'float', min:0, defVal:15} +]; + +mxShapeBasicRectCallout.prototype.cst = {RECT_CALLOUT : 'mxgraph.basic.rectCallout'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicRectCallout.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + c.begin(); + c.moveTo(dx - dy * 0.5, h - dy); + c.lineTo(0, h - dy); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h - dy); + c.lineTo(dx + dy * 0.5, h - dy); + c.lineTo(dx - dy, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapeBasicRectCallout.prototype.getLabelMargins = function() +{ + if (mxUtils.getValue(this.style, 'boundedLbl', false)) + { + return new mxRectangle(0, 0, 0, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)) * this.scale); + } + + return null; +}; + +mxCellRenderer.registerShape(mxShapeBasicRectCallout.prototype.cst.RECT_CALLOUT, mxShapeBasicRectCallout); + +mxShapeBasicRectCallout.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicRectCallout.prototype.cst.RECT_CALLOUT] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + dx, bounds.y + bounds.height - dy); + }, function(bounds, pt) + { + var y = parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)) * 0.6; + this.state.style['dx'] = Math.round(100 * Math.max(y, Math.min(bounds.width - y, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, bounds.y + bounds.height - pt.y))); + })]; + + return handles; +}; + +mxShapeBasicRectCallout.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx - dy, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dy) * 0.5)); + + return (constr); +} + +//********************************************************************************************************************************************************** +// Rounded Rectangular Callout +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicRoundRectCallout(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; + this.dx = 0.5; + this.size = 10; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicRoundRectCallout, mxActor); + +mxShapeBasicRoundRectCallout.prototype.cst = {ROUND_RECT_CALLOUT : 'mxgraph.basic.roundRectCallout'}; + +mxShapeBasicRoundRectCallout.prototype.getLabelMargins = mxShapeBasicRectCallout.prototype.getLabelMargins; + +mxShapeBasicRoundRectCallout.prototype.customProperties = [ + {name: 'size', dispName: 'Arc Size', type: 'float', min:0, defVal:5}, + {name: 'dx', dispName: 'Callout Position', type: 'float', min:0, defVal:30}, + {name: 'dy', dispName: 'Callout Size', type: 'float', min:0, defVal:15} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicRoundRectCallout.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var r = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + + r = Math.min((h - dy) / 2, w / 2, r); + dx = Math.max(r + dy * 0.5, dx); + dx = Math.min(w - r - dy * 0.5, dx); + + c.begin(); + c.moveTo(dx - dy * 0.5, h - dy); + c.lineTo(r, h - dy); + c.arcTo(r, r, 0, 0, 1, 0, h - dy - r); + c.lineTo(0, r); + c.arcTo(r, r, 0, 0, 1, r, 0); + c.lineTo(w - r, 0); + c.arcTo(r, r, 0, 0, 1, w, r); + c.lineTo(w, h - dy - r); + c.arcTo(r, r, 0, 0, 1, w - r, h - dy); + c.lineTo(dx + dy * 0.5, h - dy); + c.arcTo(1.9 * dy, 1.4 * dy, 0, 0, 1, dx - dy, h); + c.arcTo(0.9 * dy, 1.4 * dy, 0, 0, 0, dx - dy * 0.5, h - dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicRoundRectCallout.prototype.cst.ROUND_RECT_CALLOUT, mxShapeBasicRoundRectCallout); + +mxShapeBasicRoundRectCallout.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicRoundRectCallout.prototype.cst.ROUND_RECT_CALLOUT] = function(state) +{ + return [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + dx, bounds.y + bounds.height - dy); + }, function(bounds, pt) + { + var y = parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)) * 0.6; + this.state.style['dx'] = Math.round(100 * Math.max(y, Math.min(bounds.width - y, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(Math.max(0, Math.min(bounds.height, bounds.y + bounds.height - pt.y))); + }), Graph.createHandle(state, ['size'], function(bounds) + { + var size = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'size', this.size)))); + + return new mxPoint(bounds.x + bounds.width - size, bounds.y + 10); + }, function(bounds, pt) + { + var dy = parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)); + this.state.style['size'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2, (bounds.height - dy) / 2, bounds.x + bounds.width - pt.x))) / 100; + })]; +}; + +mxShapeBasicRoundRectCallout.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var r = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + + r = Math.min((h - dy) / 2, w / 2, r); + dx = Math.max(r + dy * 0.5, dx); + dx = Math.min(w - r - dy * 0.5, dx); + + if (r < w * 0.25) + { + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + } + + if (r < (h - dy) * 0.25) + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dy) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dy) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dy) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dy) * 0.75)); + } + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.293, r * 0.293)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.293, r * 0.293)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.293, h - dy - r * 0.293)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.293, h - dy - r * 0.293)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx - dy, h)); + + return (constr); +} + +//********************************************************************************************************************************************************** +// Wave +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicWave(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicWave, mxActor); + +mxShapeBasicWave.prototype.customProperties = [ + {name: 'dy', dispName: 'Wave Size', type: 'float', min:0, max:1, defVal: 0.3} +]; + +mxShapeBasicWave.prototype.cst = {WAVE : 'mxgraph.basic.wave2'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicWave.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var fy = 1.4 + + c.begin(); + c.moveTo(0, dy / 2); + c.quadTo(w / 6, dy * (1 - fy), w / 3, dy / 2); + c.quadTo(w / 2, dy * fy, w * 2 / 3, dy / 2); + c.quadTo(w * 5 / 6, dy * (1 - fy), w, dy / 2); + c.lineTo(w, h - dy / 2); + c.quadTo(w * 5 / 6, h - dy * fy, w * 2 / 3, h - dy / 2); + c.quadTo(w / 2, h - dy * (1 - fy), w / 3, h - dy / 2); + c.quadTo(w / 6, h - dy * fy, 0, h - dy / 2); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicWave.prototype.cst.WAVE, mxShapeBasicWave); + +mxShapeBasicWave.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicWave.prototype.cst.WAVE] = function(state) +{ + var handles = [Graph.createHandle(state, ['dy'], function(bounds) + { + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width / 2, bounds.y + dy * bounds.height); + }, function(bounds, pt) + { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 100; + })]; + + return handles; +}; + +mxShapeBasicWave.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var fy = 1.4 + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w / 6, h * 0.015)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w / 3, dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, dy * 0.95)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.67, dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.83, h * 0.015)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.83, h - dy * 0.95)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.67, h - dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, h - dy * 0.04)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w / 3, h - dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w / 6, h - dy * 0.95)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h * 0.5)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Octagon +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicOctagon(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicOctagon, mxActor); + +mxShapeBasicOctagon.prototype.customProperties = [ + {name: 'dx', dispName: 'Cutoff Size', type: 'float', min:0, defVal:15} +]; + +mxShapeBasicOctagon.prototype.cst = {OCTAGON : 'mxgraph.basic.octagon2'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicOctagon.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + + dx = Math.min(w * 0.5, h * 0.5, dx); + + c.begin(); + c.moveTo(dx, 0); + c.lineTo(w - dx, 0); + c.lineTo(w, dx); + c.lineTo(w, h - dx); + c.lineTo(w - dx, h); + c.lineTo(dx, h); + c.lineTo(0, h - dx); + c.lineTo(0, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicOctagon.prototype.cst.OCTAGON, mxShapeBasicOctagon); + +mxShapeBasicOctagon.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicOctagon.prototype.cst.OCTAGON] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + + return handles; +}; + +mxShapeBasicOctagon.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + + dx = Math.min(w * 0.5, h * 0.5, dx) * 0.5; + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h - dx)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Isometric Cube +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicIsoCube(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.isoAngle = 15; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicIsoCube, mxActor); + +mxShapeBasicIsoCube.prototype.customProperties = [ + {name: 'isoAngle', dispName: 'Perspective Angle', type: 'float', min:0, defVal:15} +]; + +mxShapeBasicIsoCube.prototype.cst = {ISO_CUBE : 'mxgraph.basic.isocube'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicIsoCube.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var isoAngle = Math.max(0.01, Math.min(94, parseFloat(mxUtils.getValue(this.style, 'isoAngle', this.isoAngle)))) * Math.PI / 200 ; + var isoH = Math.min(w * Math.tan(isoAngle), h * 0.5); + + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w, isoH); + c.lineTo(w, h - isoH); + c.lineTo(w * 0.5, h); + c.lineTo(0, h - isoH); + c.lineTo(0, isoH); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + + c.begin(); + c.moveTo(0, isoH); + c.lineTo(w * 0.5, 2 * isoH); + c.lineTo(w, isoH); + c.moveTo(w * 0.5, 2 * isoH); + c.lineTo(w * 0.5, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicIsoCube.prototype.cst.ISO_CUBE, mxShapeBasicIsoCube); + +mxShapeBasicIsoCube.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicIsoCube.prototype.cst.ISO_CUBE] = function(state) +{ + var handles = [Graph.createHandle(state, ['isoAngle'], function(bounds) + { + var isoAngle = Math.max(0.01, Math.min(94, parseFloat(mxUtils.getValue(this.state.style, 'isoAngle', this.isoAngle)))) * Math.PI / 200 ; + var isoH = Math.min(bounds.width * Math.tan(isoAngle), bounds.height * 0.5); + + return new mxPoint(bounds.x, bounds.y + isoH); + }, function(bounds, pt) + { + this.state.style['isoAngle'] = Math.round(100 * Math.max(0, Math.min(100, pt.y - bounds.y))) / 100; + })]; + + return handles; +}; + +mxShapeBasicIsoCube.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var isoAngle = Math.max(0.01, Math.min(94, parseFloat(mxUtils.getValue(this.style, 'isoAngle', this.isoAngle)))) * Math.PI / 200 ; + var isoH = Math.min(w * Math.tan(isoAngle), h * 0.5); + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, isoH)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Acute Triangle +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicTriangleAcute(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicTriangleAcute, mxActor); + +mxShapeBasicTriangleAcute.prototype.customProperties = [ + {name: 'dx', dispName: 'Top', type: 'float', min:0, max:1, defVal:0.5} +]; + +mxShapeBasicTriangleAcute.prototype.cst = {ACUTE_TRIANGLE : 'mxgraph.basic.acute_triangle'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicTriangleAcute.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + c.begin(); + c.moveTo(0, h); + c.lineTo(dx, 0); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicTriangleAcute.prototype.cst.ACUTE_TRIANGLE, mxShapeBasicTriangleAcute); + +mxShapeBasicTriangleAcute.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicTriangleAcute.prototype.cst.ACUTE_TRIANGLE] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx * bounds.width, bounds.y + 10); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + + return handles; +}; + +mxShapeBasicTriangleAcute.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx * 0.5, h * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - (w - dx) * 0.5, h * 0.5)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Obtuse Triangle +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicTriangleObtuse(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicTriangleObtuse, mxActor); + +mxShapeBasicTriangleObtuse.prototype.customProperties = [ + {name: 'dx', dispName: 'Bottom', type: 'float', min:0, max:1, defVal:0.25} +]; + +mxShapeBasicTriangleObtuse.prototype.cst = {OBTUSE_TRIANGLE : 'mxgraph.basic.obtuse_triangle'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicTriangleObtuse.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + c.begin(); + c.moveTo(dx, h); + c.lineTo(0, 0); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicTriangleObtuse.prototype.cst.OBTUSE_TRIANGLE, mxShapeBasicTriangleObtuse); + +mxShapeBasicTriangleObtuse.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicTriangleObtuse.prototype.cst.OBTUSE_TRIANGLE] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx * bounds.width, bounds.y + bounds.height - 10); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + + return handles; +}; + +mxShapeBasicTriangleObtuse.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, h * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w + dx) * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx * 0.5, h * 0.5)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Drop +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicDrop(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicDrop, mxActor); + +mxShapeBasicDrop.prototype.cst = {DROP : 'mxgraph.basic.drop'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicDrop.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var r = Math.min(h, w) * 0.5; + var d = h - r; + var a = Math.sqrt(d * d - r * r); + + var angle = Math.atan(a / r); + + var x1 = r * Math.sin(angle); + var y1 = r * Math.cos(angle); + + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5 + x1, h - r - y1); + c.arcTo(r, r, 0, 0, 1, w * 0.5 + r, h - r); + c.arcTo(r, r, 0, 0, 1, w * 0.5, h); + c.arcTo(r, r, 0, 0, 1, w * 0.5 - r, h - r); + c.arcTo(r, r, 0, 0, 1, w * 0.5 - x1, h - r - y1); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicDrop.prototype.cst.DROP, mxShapeBasicDrop); + +mxShapeBasicDrop.prototype.constraints = null; + +//********************************************************************************************************************************************************** +//Cone 2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicCone2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; + this.dy = 0.9; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicCone2, mxActor); + +mxShapeBasicCone2.prototype.customProperties = [ + {name: 'dx', dispName: 'Top', type: 'float', min:0, max:1, defVal:0.5}, + {name: 'dy', dispName: 'Bottom', type: 'float', min:0, max:1, defVal:0.9} +]; + +mxShapeBasicCone2.prototype.cst = {CONE2 : 'mxgraph.basic.cone2'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicCone2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + var ry = h - dy; + + c.begin(); + c.moveTo(dx, 0); + + if (ry > 0) + { + c.lineTo(w, h - ry); + c.arcTo(w * 0.5, ry, 0, 0, 1, w * 0.5, h); + c.arcTo(w * 0.5, ry, 0, 0, 1, 0, h - ry); + } + else + { + c.lineTo(w, h); + c.lineTo(0, h); + } + + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicCone2.prototype.cst.CONE2, mxShapeBasicCone2); + +mxShapeBasicCone2.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicCone2.prototype.cst.CONE2] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx * bounds.width, bounds.y + 10); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['dy'], function(bounds) + { + var dy = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + 10, bounds.y + dy * bounds.height); + }, function(bounds, pt) + { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 100; + }); + + handles.push(handle2); + + return handles; +}; + +mxShapeBasicCone2.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var ry = h - dy; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - ry)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - ry)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Pyramid +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicPyramid(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx1 = 0.5; + this.dx2 = 0.6; + this.dy1 = 0.9; + this.dy2 = 0.8; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicPyramid, mxActor); + +mxShapeBasicPyramid.prototype.customProperties = [ + {name: 'dx1', dispName: 'Top', type: 'float', min:0, max:1, defVal:0.4}, + {name: 'dx2', dispName: 'Bottom', type: 'float', min:0, max:1, defVal:0.6}, + {name: 'dy1', dispName: 'Perspective Left', type: 'float', min:0, max:1, defVal:0.9}, + {name: 'dy2', dispName: 'Perspective Right', type: 'float', min:0, max:1, defVal:0.8} +]; + +mxShapeBasicPyramid.prototype.cst = {PYRAMID : 'mxgraph.basic.pyramid'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicPyramid.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx1 = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var dy1 = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dy2 = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + + c.begin(); + c.moveTo(dx1, 0); + c.lineTo(w, dy2); + c.lineTo(dx2, h); + c.lineTo(0, dy1); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + + c.begin(); + c.moveTo(dx1, 0); + c.lineTo(dx2, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicPyramid.prototype.cst.PYRAMID, mxShapeBasicPyramid); + +mxShapeBasicPyramid.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicPyramid.prototype.cst.PYRAMID] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx1'], function(bounds) + { + var dx1 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + + return new mxPoint(bounds.x + dx1 * bounds.width, bounds.y + 10); + }, function(bounds, pt) + { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['dx2'], function(bounds) + { + var dx2 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + + return new mxPoint(bounds.x + dx2 * bounds.width, bounds.y + bounds.height - 10); + }, function(bounds, pt) + { + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['dy1'], function(bounds) + { + var dy1 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy1', this.dy1)))); + + return new mxPoint(bounds.x + 10, bounds.y + dy1 * bounds.height); + }, function(bounds, pt) + { + this.state.style['dy1'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 100; + }); + + handles.push(handle3); + + var handle4 = Graph.createHandle(state, ['dy2'], function(bounds) + { + var dy2 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dy2', this.dy2)))); + + return new mxPoint(bounds.x + bounds.width - 10, bounds.y + dy2 * bounds.height); + }, function(bounds, pt) + { + this.state.style['dy2'] = Math.round(100 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 100; + }); + + handles.push(handle4); + + return handles; +}; + +mxShapeBasicPyramid.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx1 = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + var dx2 = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var dy1 = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy1', this.dy1)))); + var dy2 = h * Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy2', this.dy2)))); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx1, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w + dx1) * 0.5, dy2 * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w + dx2) * 0.5, (h + dy2) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 * 0.5, (h + dy1) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx1 * 0.5, dy1 * 0.5)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//4 Point Star 2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasic4PointStar2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.8; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasic4PointStar2, mxActor); + +mxShapeBasic4PointStar2.prototype.customProperties = [ + {name: 'dx', dispName: 'Thickness', type: 'float', min:0, max:1, defVal:0.8} +]; + +mxShapeBasic4PointStar2.prototype.cst = {FOUR_POINT_STAR_2 : 'mxgraph.basic.4_point_star_2'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasic4PointStar2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = 0.5 * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(dx * w, dx * h); + c.lineTo(w * 0.5, 0); + c.lineTo(w - dx * w, dx * h); + c.lineTo(w, h * 0.5); + c.lineTo(w - dx * w, h - dx * h); + c.lineTo(w * 0.5, h); + c.lineTo(dx * w, h - dx * h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasic4PointStar2.prototype.cst.FOUR_POINT_STAR_2, mxShapeBasic4PointStar2); + +mxShapeBasic4PointStar2.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasic4PointStar2.prototype.cst.FOUR_POINT_STAR_2] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx * bounds.width / 2, bounds.y + dx * bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(1, 2 * (pt.x - bounds.x) / bounds.width))) / 100; + })]; + + return handles; +}; + +mxShapeBasic4PointStar2.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = 0.5 * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(dx, dx), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1 - dx, dx), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1 - dx, 1 - dx), false)); + constr.push(new mxConnectionConstraint(new mxPoint(dx, 1 - dx), false)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Diagonal Snip Rectangle +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicDiagSnipRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicDiagSnipRect, mxActor); + +mxShapeBasicDiagSnipRect.prototype.customProperties = [ + {name: 'dx', dispName: 'Snip', type: 'float', min:0, deVal:6}, +]; + +mxShapeBasicDiagSnipRect.prototype.cst = {DIAG_SNIP_RECT : 'mxgraph.basic.diag_snip_rect'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicDiagSnipRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + + dx = Math.min(w * 0.5, h * 0.5, dx); + + c.begin(); + c.moveTo(dx, 0); + c.lineTo(w, 0); + c.lineTo(w, h - dx); + c.lineTo(w - dx, h); + c.lineTo(0, h); + c.lineTo(0, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicDiagSnipRect.prototype.cst.DIAG_SNIP_RECT, mxShapeBasicDiagSnipRect); + +mxShapeBasicDiagSnipRect.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicDiagSnipRect.prototype.cst.DIAG_SNIP_RECT] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + + return handles; +}; + +mxShapeBasicDiagSnipRect.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + + dx = Math.min(w * 0.5, h * 0.5, dx) * 0.5; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Diagonal Round Rectangle +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicDiagRoundRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicDiagRoundRect, mxActor); + +mxShapeBasicDiagRoundRect.prototype.customProperties = [ + {name: 'dx', dispName: 'Rounding Size', type: 'float', min:0, defVal:6}, +]; + +mxShapeBasicDiagRoundRect.prototype.cst = {DIAG_ROUND_RECT : 'mxgraph.basic.diag_round_rect'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicDiagRoundRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + + dx = Math.min(w * 0.5, h * 0.5, dx); + + c.begin(); + c.moveTo(dx, 0); + c.lineTo(w, 0); + c.lineTo(w, h - dx); + c.arcTo(dx, dx, 0, 0, 1, w - dx, h); + c.lineTo(0, h); + c.lineTo(0, dx); + c.arcTo(dx, dx, 0, 0, 1, dx, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicDiagRoundRect.prototype.cst.DIAG_ROUND_RECT, mxShapeBasicDiagRoundRect); + +mxShapeBasicDiagRoundRect.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicDiagRoundRect.prototype.cst.DIAG_ROUND_RECT] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + + return handles; +}; + +mxShapeBasicDiagRoundRect.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Corner Round Rectangle +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicCornerRoundRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicCornerRoundRect, mxActor); + +mxShapeBasicCornerRoundRect.prototype.customProperties = [ + {name: 'dx', dispName: 'Rounding Size', type: 'float', min:0, defVal:6}, +]; + +mxShapeBasicCornerRoundRect.prototype.cst = {CORNER_ROUND_RECT : 'mxgraph.basic.corner_round_rect'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicCornerRoundRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + + dx = Math.min(w * 0.5, h * 0.5, dx); + + c.begin(); + c.moveTo(dx, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.lineTo(0, dx); + c.arcTo(dx, dx, 0, 0, 1, dx, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicCornerRoundRect.prototype.cst.CORNER_ROUND_RECT, mxShapeBasicCornerRoundRect); + +mxShapeBasicCornerRoundRect.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicCornerRoundRect.prototype.cst.CORNER_ROUND_RECT] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + + return handles; +}; + +mxShapeBasicCornerRoundRect.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Plaque +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicPlaque(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicPlaque, mxActor); + +mxShapeBasicPlaque.prototype.customProperties = [ + {name: 'dx', dispName: 'Cutoff Size', type: 'float', min:0, defVal:6}, +]; + +mxShapeBasicPlaque.prototype.cst = {PLAQUE : 'mxgraph.basic.plaque'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicPlaque.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + + dx = Math.min(w * 0.5, h * 0.5, dx); + + c.begin(); + c.moveTo(w - dx, 0); + c.arcTo(dx, dx, 0, 0, 0, w, dx); + c.lineTo(w, h - dx); + c.arcTo(dx, dx, 0, 0, 0, w - dx, h); + c.lineTo(dx, h); + c.arcTo(dx, dx, 0, 0, 0, 0, h - dx); + c.lineTo(0, dx); + c.arcTo(dx, dx, 0, 0, 0, dx, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicPlaque.prototype.cst.PLAQUE, mxShapeBasicPlaque); + +mxShapeBasicPlaque.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicPlaque.prototype.cst.PLAQUE] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx * 1.41, bounds.y + dx * 1.41); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + + return handles; +}; + +mxShapeBasicPlaque.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Frame +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicFrame(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicFrame, mxActor); + +mxShapeBasicFrame.prototype.customProperties = [ + {name: 'dx', dispName: 'Width', type: 'float', min:0, defVal:10}, +]; + +mxShapeBasicFrame.prototype.cst = {FRAME : 'mxgraph.basic.frame'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicFrame.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + dx = Math.min(w * 0.5, h * 0.5, dx); + + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.lineTo(0, 0); + c.close(); + c.moveTo(dx, dx); + c.lineTo(dx, h - dx); + c.lineTo(w - dx, h - dx); + c.lineTo(w - dx, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicFrame.prototype.cst.FRAME, mxShapeBasicFrame); + +mxShapeBasicFrame.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicFrame.prototype.cst.FRAME] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + + return handles; +}; + +mxShapeBasicFrame.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.5, h * 0.5, dx); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - 2 * dx)* 0.25 + dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w * 1.5 - dx) * 0.5, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, (h - 2 * dx)* 0.25 + dx)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, -dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, (h - 2 * dx) * 0.75 + dx)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -dx, -dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - 2 * dx) * 0.75 + dx, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false, null, 0, -dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - 2 * dx) * 0.25 + dx, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, dx, -dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, (h - 2 * dx) * 0.75 + dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, (h - 2 * dx) * 0.25 + dx)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Plaque Frame +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicPlaqueFrame(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +*/ +mxUtils.extend(mxShapeBasicPlaqueFrame, mxActor); + +mxShapeBasicPlaqueFrame.prototype.customProperties = [ + {name: 'dx', dispName: 'Width', type: 'float', mix:0, defVal:10}, +]; + +mxShapeBasicPlaqueFrame.prototype.cst = {PLAQUE_FRAME : 'mxgraph.basic.plaque_frame'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicPlaqueFrame.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + dx = Math.min(w * 0.25, h * 0.25, dx); + + c.begin(); + c.moveTo(w - dx, 0); + c.arcTo(dx, dx, 0, 0, 0, w, dx); + c.lineTo(w, h - dx); + c.arcTo(dx, dx, 0, 0, 0, w - dx, h); + c.lineTo(dx, h); + c.arcTo(dx, dx, 0, 0, 0, 0, h - dx); + c.lineTo(0, dx); + c.arcTo(dx, dx, 0, 0, 0, dx, 0); + c.close(); + + c.moveTo(dx * 2, dx); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, dx, dx * 2); + c.lineTo(dx, h - 2 * dx); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, dx * 2, h - dx); + c.lineTo(w - 2 * dx, h - dx); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, w - dx, h - 2 * dx); + c.lineTo(w - dx, dx * 2); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, w - 2 * dx, dx); + c.close(); + + c.fillAndStroke(); + +}; + +mxCellRenderer.registerShape(mxShapeBasicPlaqueFrame.prototype.cst.PLAQUE_FRAME, mxShapeBasicPlaqueFrame); + +mxShapeBasicPlaqueFrame.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicPlaqueFrame.prototype.cst.PLAQUE_FRAME] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + + return handles; +}; + +mxShapeBasicPlaqueFrame.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.5, h * 0.5, dx); + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, -dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false, null, 0, -dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, dx, 0)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Rounded Frame +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicRoundedFrame(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicRoundedFrame, mxActor); + +mxShapeBasicRoundedFrame.prototype.customProperties = [ + {name: 'dx', dispName: 'Width', type: 'float', min:0, defVal:10}, +]; + +mxShapeBasicRoundedFrame.prototype.cst = {ROUNDED_FRAME : 'mxgraph.basic.rounded_frame'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicRoundedFrame.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + dx = Math.min(w * 0.25, h * 0.25, dx); + + c.begin(); + c.moveTo(w - 2 * dx, 0); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, w, 2 * dx); + c.lineTo(w, h - 2 * dx); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, w - 2 * dx, h); + c.lineTo(dx * 2, h); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, 0, h - 2 * dx); + c.lineTo(0, 2 * dx); + c.arcTo(dx * 2, dx * 2, 0, 0, 1, 2 * dx, 0); + c.close(); + + c.moveTo(dx * 2, dx); + c.arcTo(dx, dx, 0, 0, 0, dx, dx * 2); + c.lineTo(dx, h - 2 * dx); + c.arcTo(dx, dx, 0, 0, 0, dx * 2, h - dx); + c.lineTo(w - 2 * dx, h - dx); + c.arcTo(dx, dx, 0, 0, 0, w - dx, h - 2 * dx); + c.lineTo(w - dx, dx * 2); + c.arcTo(dx, dx, 0, 0, 0, w - 2 * dx, dx); + c.close(); + + c.fillAndStroke(); + +}; + +mxCellRenderer.registerShape(mxShapeBasicRoundedFrame.prototype.cst.ROUNDED_FRAME, mxShapeBasicRoundedFrame); + +mxShapeBasicRoundedFrame.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicRoundedFrame.prototype.cst.ROUNDED_FRAME] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + + return handles; +}; + +mxShapeBasicRoundedFrame.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.5, h * 0.5, dx); + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, -dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false, null, 0, -dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, dx, 0)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Frame Corner +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicFrameCorner(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicFrameCorner, mxActor); + +mxShapeBasicFrameCorner.prototype.customProperties = [ + {name: 'dx', dispName: 'Width', type: 'float', min:0, defVal:10}, +]; + +mxShapeBasicFrameCorner.prototype.cst = {FRAME_CORNER : 'mxgraph.basic.frame_corner'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicFrameCorner.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + dx = Math.min(w * 0.5, h * 0.5, dx); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w - dx, dx); + c.lineTo(dx, dx); + c.lineTo(dx, h - dx); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicFrameCorner.prototype.cst.FRAME_CORNER, mxShapeBasicFrameCorner); + +mxShapeBasicFrameCorner.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicFrameCorner.prototype.cst.FRAME_CORNER] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + + return handles; +}; + +mxShapeBasicFrameCorner.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + dx = Math.min(w * 0.5, h * 0.5, dx); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - 2 * dx) * 0.5 + dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, (h - 2 * dx) * 0.5 + dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, dx, -dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Diagonal Stripe +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicDiagStripe(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicDiagStripe, mxActor); + +mxShapeBasicDiagStripe.prototype.customProperties = [ + {name: 'dx', dispName: 'Width', type: 'float', mix:0, defVal:10}, +]; + +mxShapeBasicDiagStripe.prototype.cst = {DIAG_STRIPE : 'mxgraph.basic.diag_stripe'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicDiagStripe.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + dx = Math.min(w, h, dx); + + c.begin(); + c.moveTo(0, h); + c.lineTo(w, 0); + c.lineTo(w, Math.min(dx * 100 / w, h)); + c.lineTo(Math.min(dx * 100 / h, w), h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicDiagStripe.prototype.cst.DIAG_STRIPE, mxShapeBasicDiagStripe); + +mxShapeBasicDiagStripe.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicDiagStripe.prototype.cst.DIAG_STRIPE] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + bounds.height); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + + return handles; +}; + +mxShapeBasicDiagStripe.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w, h, dx); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, Math.min(dx * 100 / w, h) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, Math.min(dx * 100 / w, h))); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w + Math.min(dx * 100 / h, w)) * 0.5, (Math.min(dx * 100 / w, h) + h) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, Math.min(dx * 100 / h, w), h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, Math.min(dx * 100 / h, w) * 0.5, h)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Donut +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicDonut(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicDonut, mxActor); + +mxShapeBasicDonut.prototype.customProperties = [ + {name: 'dx', dispName: 'Width', type: 'float', min:0, defVal:25} +]; + +mxShapeBasicDonut.prototype.cst = {DONUT : 'mxgraph.basic.donut'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicDonut.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + dx = Math.min(w * 0.5, h * 0.5, dx); + + c.begin(); + c.moveTo(0, h * 0.5); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, w * 0.5, 0); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, w, h * 0.5); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, w * 0.5, h); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, 0, h * 0.5); + c.close(); + c.moveTo(w * 0.5, dx); + c.arcTo(w * 0.5 - dx, h * 0.5 - dx, 0, 0, 0, dx, h * 0.5); + c.arcTo(w * 0.5 - dx, h * 0.5 - dx, 0, 0, 0, w * 0.5, h - dx); + c.arcTo(w * 0.5 - dx, h * 0.5 - dx, 0, 0, 0, w - dx, h * 0.5); + c.arcTo(w * 0.5 - dx, h * 0.5 - dx, 0, 0, 0, w * 0.5, dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicDonut.prototype.cst.DONUT, mxShapeBasicDonut); + +mxShapeBasicDonut.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicDonut.prototype.cst.DONUT] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + + return handles; +}; + +//********************************************************************************************************************************************************** +//Layered Rect +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicLayeredRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicLayeredRect, mxActor); + +mxShapeBasicLayeredRect.prototype.customProperties = [ + {name: 'dx', dispName: 'Layer Distance', type: 'float', mix:0, defVal:10} +]; + +mxShapeBasicLayeredRect.prototype.cst = {LAYERED_RECT : 'mxgraph.basic.layered_rect'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicLayeredRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + dx = Math.min(w * 0.5, h * 0.5, dx); + + c.begin(); + c.moveTo(dx, dx); + c.lineTo(w, dx); + c.lineTo(w, h); + c.lineTo(dx, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(dx * 0.5, dx * 0.5); + c.lineTo(w - dx * 0.5, dx * 0.5); + c.lineTo(w - dx * 0.5, h - dx * 0.5); + c.lineTo(dx * 0.5, h - dx * 0.5); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - dx, 0); + c.lineTo(w - dx, h - dx); + c.lineTo(0, h - dx); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicLayeredRect.prototype.cst.LAYERED_RECT, mxShapeBasicLayeredRect); + +mxShapeBasicLayeredRect.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicLayeredRect.prototype.cst.LAYERED_RECT] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + bounds.height - dx); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, - pt.x + bounds.width + bounds.x))) / 100; + })]; + + return handles; +}; + +mxShapeBasicLayeredRect.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + dx = Math.min(w * 0.5, h * 0.5, dx); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.75, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx * 0.5, dx * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dx) * 0.25 + dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dx) * 0.5 + dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dx) * 0.75 + dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.75 + dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.5 + dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - dx) * 0.25 + dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx * 0.5, h - dx * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dx) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dx) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dx) * 0.25)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicButton, mxActor); + +mxShapeBasicButton.prototype.customProperties = [ + {name: 'dx', dispName: 'Button Height', type: 'float', min:0, defVal:10} +]; + +mxShapeBasicButton.prototype.cst = {BUTTON : 'mxgraph.basic.button'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + dx = Math.min(w * 0.5, h * 0.5, dx); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + c.setLineJoin('round'); + + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(dx, dx); + c.lineTo(dx, h - dx); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w - dx, dx); + c.lineTo(dx, dx); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(w - dx, h - dx); + c.lineTo(w - dx, dx); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h); + c.lineTo(dx, h - dx); + c.lineTo(w - dx, h - dx); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(dx, dx); + c.lineTo(dx, h - dx); + c.close(); + c.fillAndStroke(); + + +}; + +mxCellRenderer.registerShape(mxShapeBasicButton.prototype.cst.BUTTON, mxShapeBasicButton); + +mxShapeBasicButton.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicButton.prototype.cst.BUTTON] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + + return handles; +}; + +//********************************************************************************************************************************************************** +//Shaded Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicShadedButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicShadedButton, mxActor); + +mxShapeBasicShadedButton.prototype.customProperties = [ + {name: 'dx', dispName: 'Button Height', type: 'float', min:0, defVal:10} +]; + +mxShapeBasicShadedButton.prototype.cst = {SHADED_BUTTON : 'mxgraph.basic.shaded_button'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicShadedButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.setShadow(false); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + dx = Math.min(w * 0.5, h * 0.5, dx); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fill(); + + c.setFillColor('#ffffff'); + c.setAlpha(0.25); + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(dx, dx); + c.lineTo(dx, h - dx); + c.close(); + c.fill(); + + c.setAlpha(0.5); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w - dx, dx); + c.lineTo(dx, dx); + c.close(); + c.fill(); + + c.setFillColor('#000000'); + c.setAlpha(0.25); + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(w - dx, h - dx); + c.lineTo(w - dx, dx); + c.close(); + c.fill(); + + c.setAlpha(0.5); + c.begin(); + c.moveTo(0, h); + c.lineTo(dx, h - dx); + c.lineTo(w - dx, h - dx); + c.lineTo(w, h); + c.close(); + c.fill(); + + +}; + +mxCellRenderer.registerShape(mxShapeBasicShadedButton.prototype.cst.SHADED_BUTTON, mxShapeBasicShadedButton); + +mxShapeBasicShadedButton.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicShadedButton.prototype.cst.SHADED_BUTTON] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + + return handles; +}; + +//********************************************************************************************************************************************************** +//Pie +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicPie(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.startAngle = 0.25; + this.endAngle = 0.75; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicPie, mxActor); + +mxShapeBasicPie.prototype.customProperties = [ + {name: 'startAngle', dispName: 'Start Angle', type: 'float', min:0, max:1, defVal: 0.2}, + {name: 'endAngle', dispName: 'End Angle', type: 'float', min:0, max:1, defVal: 0.9} +]; + +mxShapeBasicPie.prototype.cst = {PIE : 'mxgraph.basic.pie'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicPie.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'startAngle', this.startAngle)))); + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'endAngle', this.endAngle)))); + var rx = w * 0.5; + var ry = h * 0.5; + + var startX = rx + Math.sin(startAngle) * rx; + var startY = ry - Math.cos(startAngle) * ry; + var endX = rx + Math.sin(endAngle) * rx; + var endY = ry - Math.cos(endAngle) * ry; + + var angDiff = endAngle - startAngle; + + if (angDiff < 0) + { + angDiff = angDiff + Math.PI * 2; + } + + var bigArc = 0; + + if (angDiff > Math.PI) + { + bigArc = 1; + } + + c.begin(); + c.moveTo(rx, ry); + c.lineTo(startX, startY); + c.arcTo(rx, ry, 0, bigArc, 1, endX, endY); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicPie.prototype.cst.PIE, mxShapeBasicPie); + +mxShapeBasicPie.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicPie.prototype.cst.PIE] = function(state) +{ + var handles = [Graph.createHandle(state, ['startAngle'], function(bounds) + { + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'startAngle', this.startAngle)))); + + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(startAngle) * bounds.height * 0.5); + }, function(bounds, pt) + { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) + { + res = 1 + res; + } + + this.state.style['startAngle'] = res; + + })]; + + var handle2 = Graph.createHandle(state, ['endAngle'], function(bounds) + { + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'endAngle', this.endAngle)))); + + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(endAngle) * bounds.height * 0.5); + }, function(bounds, pt) + { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) + { + res = 1 + res; + } + + this.state.style['endAngle'] = res; + }); + + handles.push(handle2); + + return handles; +}; + +//********************************************************************************************************************************************************** +//Arc +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicArc(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.startAngle = 0.25; + this.endAngle = 0.75; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicArc, mxActor); + +mxShapeBasicArc.prototype.customProperties = [ + {name: 'startAngle', dispName: 'Start Angle', type: 'float', min:0, max:1, defVal: 0.3}, + {name: 'endAngle', dispName: 'End Angle', type: 'float', min:0, max:1, defVal:0.1} +]; + +mxShapeBasicArc.prototype.cst = {ARC : 'mxgraph.basic.arc'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicArc.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'startAngle', this.startAngle)))); + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'endAngle', this.endAngle)))); + var rx = w * 0.5; + var ry = h * 0.5; + + var startX = rx + Math.sin(startAngle) * rx; + var startY = ry - Math.cos(startAngle) * ry; + var endX = rx + Math.sin(endAngle) * rx; + var endY = ry - Math.cos(endAngle) * ry; + + var angDiff = endAngle - startAngle; + + if (angDiff < 0) + { + angDiff = angDiff + Math.PI * 2; + } + + var bigArc = 0; + + if (angDiff > Math.PI) + { + bigArc = 1; + } + + c.begin(); + c.moveTo(startX, startY); + c.arcTo(rx, ry, 0, bigArc, 1, endX, endY); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicArc.prototype.cst.ARC, mxShapeBasicArc); + +mxShapeBasicArc.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicArc.prototype.cst.ARC] = function(state) +{ + var handles = [Graph.createHandle(state, ['startAngle'], function(bounds) + { + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'startAngle', this.startAngle)))); + + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(startAngle) * bounds.height * 0.5); + }, function(bounds, pt) + { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) + { + res = 1 + res; + } + + this.state.style['startAngle'] = res; + + })]; + + var handle2 = Graph.createHandle(state, ['endAngle'], function(bounds) + { + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'endAngle', this.endAngle)))); + + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(endAngle) * bounds.height * 0.5); + }, function(bounds, pt) + { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) + { + res = 1 + res; + } + + this.state.style['endAngle'] = res; + }); + + handles.push(handle2); + + return handles; +}; + +//********************************************************************************************************************************************************** +//Partial Concentric Ellipse +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicPartConcEllipse(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.startAngle = 0.25; + this.endAngle = 0.75; + this.arcWidth = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicPartConcEllipse, mxActor); + +mxShapeBasicPartConcEllipse.prototype.customProperties = [ + {name: 'startAngle', dispName: 'Start Angle', type: 'float', min:0, max:1, defVal:0.25}, + {name: 'endAngle', dispName: 'End Angle', type: 'float', min:0, max:1, defVal:0.1}, + {name: 'arcWidth', dispName: 'Arc Width', type: 'float', min:0, max:1, defVal:0.5} +]; + +mxShapeBasicPartConcEllipse.prototype.cst = {PART_CONC_ELLIPSE : 'mxgraph.basic.partConcEllipse'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicPartConcEllipse.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'startAngle', this.startAngle)))); + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'endAngle', this.endAngle)))); + var arcWidth = 1 - Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arcWidth', this.arcWidth)))); + var rx = w * 0.5; + var ry = h * 0.5; + var rx2 = rx * arcWidth; + var ry2 = ry * arcWidth; + + var angDiff = endAngle - startAngle; + + if (angDiff < 0) + { + angDiff = angDiff + Math.PI * 2; + } + else if (angDiff == Math.PI) + { + endAngle = endAngle + 0.00001; + } + + var startX = rx + Math.sin(startAngle) * rx; + var startY = ry - Math.cos(startAngle) * ry; + var innerStartX = rx + Math.sin(startAngle) * rx2; + var innerStartY = ry - Math.cos(startAngle) * ry2; + var endX = rx + Math.sin(endAngle) * rx; + var endY = ry - Math.cos(endAngle) * ry; + var innerEndX = rx + Math.sin(endAngle) * rx2; + var innerEndY = ry - Math.cos(endAngle) * ry2; + + + var bigArc = 0; + + if (angDiff >= Math.PI) + { + bigArc = 1; + } + + c.begin(); + c.moveTo(startX, startY); + c.arcTo(rx, ry, 0, bigArc, 1, endX, endY); + c.lineTo(innerEndX, innerEndY); + c.arcTo(rx2, ry2, 0, bigArc, 0, innerStartX, innerStartY); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicPartConcEllipse.prototype.cst.PART_CONC_ELLIPSE, mxShapeBasicPartConcEllipse); + +mxShapeBasicPartConcEllipse.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicPartConcEllipse.prototype.cst.PART_CONC_ELLIPSE] = function(state) +{ + var handles = [Graph.createHandle(state, ['startAngle'], function(bounds) + { + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'startAngle', this.startAngle)))); + + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(startAngle) * bounds.height * 0.5); + }, function(bounds, pt) + { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) + { + res = 1 + res; + } + + this.state.style['startAngle'] = res; + + })]; + + var handle2 = Graph.createHandle(state, ['endAngle'], function(bounds) + { + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'endAngle', this.endAngle)))); + + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(endAngle) * bounds.height * 0.5); + }, function(bounds, pt) + { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) + { + res = 1 + res; + } + + this.state.style['endAngle'] = res; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['arcWidth'], function(bounds) + { + var arcWidth = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'arcWidth', this.arcWidth)))); + + return new mxPoint(bounds.x + bounds.width / 2, bounds.y + arcWidth * bounds.height * 0.5); + }, function(bounds, pt) + { + this.state.style['arcWidth'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, (pt.y - bounds.y) / (bounds.height * 0.5)))) / 100; + }); + + handles.push(handle3); + + return handles; +}; + +//********************************************************************************************************************************************************** +//Numbered entry (vertical) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicNumEntryVert(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicNumEntryVert, mxActor); + +mxShapeBasicNumEntryVert.prototype.cst = {NUM_ENTRY_VERT : 'mxgraph.basic.numberedEntryVert'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicNumEntryVert.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + var inset = 5; + + var d = Math.min(dy, w - 2 * inset, h - inset); + + c.ellipse(w * 0.5 - d * 0.5, 0, d, d); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, d * 0.5); + c.lineTo(w * 0.5 - d * 0.5 - inset, d * 0.5); + c.arcTo(d * 0.5 + inset, d * 0.5 + inset, 0, 0, 0, w * 0.5 + d * 0.5 + inset, d * 0.5); + c.lineTo(w, d * 0.5); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicNumEntryVert.prototype.cst.NUM_ENTRY_VERT, mxShapeBasicNumEntryVert); + +mxShapeBasicNumEntryVert.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicNumEntryVert.prototype.cst.NUM_ENTRY_VERT] = function(state) +{ + var handles = [Graph.createHandle(state, ['dy'], function(bounds) + { + var dy = Math.max(0, Math.min(bounds.width, bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width / 2, bounds.y + dy); + }, function(bounds, pt) + { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height, bounds.width, pt.y - bounds.y))) / 100; + })]; + + return handles; +}; + +//********************************************************************************************************************************************************** +//Bending Arch +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicBendingArch(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.startAngle = 0.25; + this.endAngle = 0.75; + this.arcWidth = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicBendingArch, mxActor); + +mxShapeBasicBendingArch.prototype.cst = {BENDING_ARCH : 'mxgraph.basic.bendingArch'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicBendingArch.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'startAngle', this.startAngle)))); + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'endAngle', this.endAngle)))); + var arcWidth = 1 - Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arcWidth', this.arcWidth)))); + var rx = w * 0.5; + var ry = h * 0.5; + var rx2 = rx * arcWidth; + var ry2 = ry * arcWidth; + + var startX = rx + Math.sin(startAngle) * rx; + var startY = ry - Math.cos(startAngle) * ry; + var innerStartX = rx + Math.sin(startAngle) * rx2; + var innerStartY = ry - Math.cos(startAngle) * ry2; + var endX = rx + Math.sin(endAngle) * rx; + var endY = ry - Math.cos(endAngle) * ry; + var innerEndX = rx + Math.sin(endAngle) * rx2; + var innerEndY = ry - Math.cos(endAngle) * ry2; + + var angDiff = endAngle - startAngle; + + if (angDiff < 0) + { + angDiff = angDiff + Math.PI * 2; + } + + var bigArc = 0; + + if (angDiff > Math.PI) + { + bigArc = 1; + } + + var rx3 = rx2 - 5; + var ry3 = ry2 - 5; + + c.ellipse(w * 0.5 - rx3, h * 0.5 - ry3, 2 * rx3, 2 * ry3); + c.fillAndStroke(); + + c.begin(); + c.moveTo(startX, startY); + c.arcTo(rx, ry, 0, bigArc, 1, endX, endY); + c.lineTo(innerEndX, innerEndY); + c.arcTo(rx2, ry2, 0, bigArc, 0, innerStartX, innerStartY); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicBendingArch.prototype.cst.BENDING_ARCH, mxShapeBasicBendingArch); + +mxShapeBasicBendingArch.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicBendingArch.prototype.cst.BENDING_ARCH] = function(state) +{ + var handles = [Graph.createHandle(state, ['startAngle'], function(bounds) + { + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'startAngle', this.startAngle)))); + + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(startAngle) * bounds.height * 0.5); + }, function(bounds, pt) + { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) + { + res = 1 + res; + } + + this.state.style['startAngle'] = res; + + })]; + + var handle2 = Graph.createHandle(state, ['endAngle'], function(bounds) + { + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'endAngle', this.endAngle)))); + + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(endAngle) * bounds.height * 0.5); + }, function(bounds, pt) + { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) + { + res = 1 + res; + } + + this.state.style['endAngle'] = res; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['arcWidth'], function(bounds) + { + var arcWidth = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'arcWidth', this.arcWidth)))); + + return new mxPoint(bounds.x + bounds.width / 2, bounds.y + arcWidth * bounds.height * 0.5); + }, function(bounds, pt) + { + this.state.style['arcWidth'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, (pt.y - bounds.y) / (bounds.height * 0.5)))) / 100; + }); + + handles.push(handle3); + + return handles; +}; + +//********************************************************************************************************************************************************** +//Three Corner Round Rectangle +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicThreeCornerRoundRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicThreeCornerRoundRect, mxActor); + +mxShapeBasicThreeCornerRoundRect.prototype.customProperties = [ + {name: 'dx', dispName: 'Rounding Size', type: 'float', min:0, defVal:6} +]; + +mxShapeBasicThreeCornerRoundRect.prototype.cst = {THREE_CORNER_ROUND_RECT : 'mxgraph.basic.three_corner_round_rect'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicThreeCornerRoundRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))) * 2; + + dx = Math.min(w * 0.5, h * 0.5, dx); + + c.begin(); + c.moveTo(dx, 0); + c.lineTo(w - dx, 0); + c.arcTo(dx, dx, 0, 0, 1, w, dx); + c.lineTo(w, h - dx); + c.arcTo(dx, dx, 0, 0, 1, w - dx, h); + c.lineTo(0, h); + c.lineTo(0, dx); + c.arcTo(dx, dx, 0, 0, 1, dx, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBasicThreeCornerRoundRect.prototype.cst.THREE_CORNER_ROUND_RECT, mxShapeBasicThreeCornerRoundRect); + +mxShapeBasicThreeCornerRoundRect.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicThreeCornerRoundRect.prototype.cst.THREE_CORNER_ROUND_RECT] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 4, bounds.width / 4, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + dx); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 4, bounds.width / 4, pt.x - bounds.x))) / 100; + })]; + + return handles; +}; + +mxShapeBasicThreeCornerRoundRect.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Rectangle v2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBasicRect2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.rectStyle = 'square'; + this.size = 10; + this.absoluteCornerSize = true; + this.indent = 2; + this.rectOutline = 'single'; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBasicRect2, mxActor); + +mxShapeBasicRect2.prototype.cst = {RECT2 : 'mxgraph.basic.rect'}; + +mxShapeBasicRect2.prototype.customProperties = [ + {name: 'rectStyle', dispName: 'Style', type: 'enum', defVal:'square', + enumList:[ + {val:'square', dispName:'Square'}, + {val:'rounded', dispName:'Round'}, + {val:'snip', dispName:'Snip'}, + {val:'invRound', dispName:'Inv. Round'}, + {val:'fold', dispName:'Fold'} + ]}, + {name: 'size', dispName: 'Corner Size', type: 'float', defVal:10}, + {name: 'absoluteCornerSize', dispName: 'Abs. Corner Size', type: 'bool', defVal:true}, + {name: 'indent', dispName:'Indent', type:'float', defVal:2}, + {name: 'rectOutline', dispName: 'Outline', type: 'enum', defVal:'single', + enumList:[ + {val:'single', dispName:'Single'}, + {val:'double', dispName:'Double'}, + {val:'frame', dispName:'Frame'} + ]}, + {name: 'fillColor2', dispName:'Inside Fill Color', type:'color', defVal:'none'}, + {name: 'gradientColor2', dispName:'Inside Gradient Color', type:'color', defVal:'none'}, + {name: 'gradientDirection2', dispName: 'Inside Gradient Direction', type: 'enum', defVal:'south', + enumList:[ + {val:'south', dispName:'South'}, + {val:'west', dispName:'West'}, + {val:'north', dispName:'North'}, + {val:'east', dispName:'East'} + ]}, + {name: 'top', dispName:'Top Line', type:'bool', defVal:true}, + {name: 'right', dispName:'Right', type:'bool', defVal:true}, + {name: 'bottom', dispName:'Bottom Line', type:'bool', defVal:true}, + {name: 'left', dispName:'Left ', type:'bool', defVal:true}, + {name: 'topLeftStyle', dispName: 'Top Left Style', type: 'enum', defVal:'default', + enumList:[ + {val:'default', dispName:'Default'}, + {val:'square', dispName:'Square'}, + {val:'rounded', dispName:'Round'}, + {val:'snip', dispName:'Snip'}, + {val:'invRound', dispName:'Inv. Round'}, + {val:'fold', dispName:'Fold'} + ]}, + {name: 'topRightStyle', dispName: 'Top Right Style', type: 'enum', defVal:'default', + enumList:[ + {val:'default', dispName:'Default'}, + {val:'square', dispName:'Square'}, + {val:'rounded', dispName:'Round'}, + {val:'snip', dispName:'Snip'}, + {val:'invRound', dispName:'Inv. Round'}, + {val:'fold', dispName:'Fold'} + ]}, + {name: 'bottomRightStyle', dispName: 'Bottom Right Style', type: 'enum', defVal:'default', + enumList:[ + {val:'default', dispName:'Default'}, + {val:'square', dispName:'Square'}, + {val:'rounded', dispName:'Round'}, + {val:'snip', dispName:'Snip'}, + {val:'invRound', dispName:'Inv. Round'}, + {val:'fold', dispName:'Fold'} + ]}, + {name: 'bottomLeftStyle', dispName: 'Bottom Left Style', type: 'enum', defVal:'default', + enumList:[ + {val:'default', dispName:'Default'}, + {val:'square', dispName:'Square'}, + {val:'rounded', dispName:'Round'}, + {val:'snip', dispName:'Snip'}, + {val:'invRound', dispName:'Inv. Round'}, + {val:'fold', dispName:'Fold'} + ]}, +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBasicRect2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rectStyle = mxUtils.getValue(this.style, 'rectStyle', this.rectStyle); + var absoluteCornerSize = mxUtils.getValue(this.style, 'absoluteCornerSize', this.absoluteCornerSize); + + var size = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var relSize = Math.max(0, Math.min(50, size)); + + size = Math.min(h * 0.5, w * 0.5, size); + + if (!absoluteCornerSize) + { + size = relSize * Math.min(w, h) / 100; + } + + var rectOutline = mxUtils.getValue(this.style, 'rectOutline', this.rectOutline); + var indent = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'indent', this.indent)))); + var relIndent = Math.max(0, Math.min(50, indent)); + + size = Math.min(size, Math.min(w, h) * 0.5); + + if (!absoluteCornerSize) + { + indent = Math.min(relIndent * Math.min(w, h) / 100); + } + +// indent = Math.min(indent, 2 * size, Math.min(w, h) - size); + indent = Math.min(indent, Math.min(w, h) * 0.5 - size); + + var top = mxUtils.getValue(this.style, 'top', true); + var right = mxUtils.getValue(this.style, 'right', true); + var bottom = mxUtils.getValue(this.style, 'bottom', true); + var left = mxUtils.getValue(this.style, 'left', true); + + var topLeftStyle = mxUtils.getValue(this.style, 'topLeftStyle', 'default'); + var topRightStyle = mxUtils.getValue(this.style, 'topRightStyle', 'default'); + var bottomRightStyle = mxUtils.getValue(this.style, 'bottomRightStyle', 'default'); + var bottomLeftStyle = mxUtils.getValue(this.style, 'bottomLeftStyle', 'default'); + var fillColor = mxUtils.getValue(this.style, 'fillColor', 'none'); + var fillColor2 = mxUtils.getValue(this.style, 'fillColor2', 'none'); + var gradientColor2 = mxUtils.getValue(this.style, 'gradientColor2', 'none'); + var gdir2 = mxUtils.getValue(this.style, 'gradientDirection2', 'south'); + var opacity = mxUtils.getValue(this.style, 'opacity', '100'); + + if ((top || right || bottom || left) && rectOutline != 'frame') + { + + //outline fill + c.begin(); + if (!top) + { + c.moveTo(0,0); + } + else + { + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + } + + if (top) + { + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + } + + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + + if (right) + { + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + } + + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + + if (bottom) + { + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + } + + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + + if (left) + { + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + } + + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + c.close(); + c.fill(); + + c.setShadow(false); + + //inner fill + var fillColor2 = mxUtils.getValue(this.style, 'fillColor2', 'none'); + c.setFillColor(fillColor2); + var op1 = opacity; + var op2 = opacity; + + if (fillColor2 == 'none') + { + op1 = 0; + } + + if (gradientColor2 == 'none') + { + op2 = 0; + } + + + c.setGradient(fillColor2, gradientColor2, 0, 0, w, h, gdir2, op1, op2); + + c.begin(); + + if (!top) + { + c.moveTo(indent,0); + } + else + { + mxShapeBasicRect2.prototype.moveNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + } + + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + + if (left && bottom) + { + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + } + + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + + if (bottom && right) + { + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + } + + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + + if (right && top) + { + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + } + + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + + if (top && left) + { + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + } + + c.fill(); + + if (fillColor == 'none') + { + c.begin(); + mxShapeBasicRect2.prototype.paintFolds(c, x, y, w, h, rectStyle, topLeftStyle, topRightStyle, bottomRightStyle, bottomLeftStyle, size, top, right, bottom, left); + c.stroke(); + } + } + + //draw all the combinations + if (!top && !right && !bottom && left) + { + + if (rectOutline != 'frame') + { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, topLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + } + + c.stroke(); + } + else + { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, topLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.lineNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + c.close(); + c.fillAndStroke(); + } + } + else if (!top && !right && bottom && !left) + { + if (rectOutline != 'frame') + { + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + } + + c.stroke(); + } + else + { + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.lineSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + c.close(); + c.fillAndStroke(); + } + } + else if (!top && !right && bottom && left) + { + if (rectOutline != 'frame') + { + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + } + + c.stroke(); + } + else + { + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.lineNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + c.close(); + c.fillAndStroke(); + } + } + else if (!top && right && !bottom && !left) + { + if (rectOutline != 'frame') + { + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + } + + c.stroke(); + } + else + { + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.lineSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + c.close(); + c.fillAndStroke(); + } + } + else if (!top && right && !bottom && left) + { + if (rectOutline != 'frame') + { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, topLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + } + + c.stroke(); + + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + } + + c.stroke(); + } + else + { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, topLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.lineNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + c.close(); + c.fillAndStroke(); + + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.lineSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + c.close(); + c.fillAndStroke(); + } + } + else if (!top && right && bottom && !left) + { + if (rectOutline != 'frame') + { + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + } + + c.stroke(); + } + else + { + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.lineSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + c.close(); + c.fillAndStroke(); + } + } + else if (!top && right && bottom && left) + { + if (rectOutline != 'frame') + { + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + } + + c.stroke(); + } + else + { + c.begin(); + mxShapeBasicRect2.prototype.moveNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.lineNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + c.close(); + c.fillAndStroke(); + } + } + else if (top && !right && !bottom && !left) + { + if (rectOutline != 'frame') + { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + } + + c.stroke(); + } + else + { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.lineNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + c.close(); + c.fillAndStroke(); + } + } + else if (top && !right && !bottom && left) + { + if (rectOutline != 'frame') + { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + } + + c.stroke(); + } + else + { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.lineNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + c.close(); + c.fillAndStroke(); + } + } + else if (top && !right && bottom && !left) + { + if (rectOutline != 'frame') + { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + } + + c.stroke(); + + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + } + + c.stroke(); + } + else + { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.lineNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + c.close(); + c.fillAndStroke(); + + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.lineSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + c.close(); + c.fillAndStroke(); + } + } + else if (top && !right && bottom && left) + { + if (rectOutline != 'frame') + { + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + } + + c.stroke(); + } + else + { + c.begin(); + mxShapeBasicRect2.prototype.moveSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.lineNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + c.close(); + c.fillAndStroke(); + } + } + else if (top && right && !bottom && !left) + { + if (rectOutline != 'frame') + { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + } + + c.stroke(); + } + else + { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.lineSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + c.close(); + c.fillAndStroke(); + } + } + else if (top && right && !bottom && left) + { + if (rectOutline != 'frame') + { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + } + + c.stroke(); + } + else + { + c.begin(); + mxShapeBasicRect2.prototype.moveSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.lineSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + c.close(); + c.fillAndStroke(); + } + } + else if (top && right && bottom && !left) + { + if (rectOutline != 'frame') + { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + } + + c.stroke(); + } + else + { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.lineSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + c.close(); + c.fillAndStroke(); + } + } + else if (top && right && bottom && left) + { + if (rectOutline != 'frame') + { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + c.close(); + + if (rectOutline == 'double') + { + mxShapeBasicRect2.prototype.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + c.close(); + } + + c.stroke(); + } + else + { + c.begin(); + mxShapeBasicRect2.prototype.moveNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintNW(c, x, y, w, h, rectStyle, topLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintTop(c, x, y, w, h, rectStyle, topRightStyle, size, right); + mxShapeBasicRect2.prototype.paintNE(c, x, y, w, h, rectStyle, topRightStyle, size, top); + mxShapeBasicRect2.prototype.paintRight(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom); + mxShapeBasicRect2.prototype.paintSE(c, x, y, w, h, rectStyle, bottomRightStyle, size, right); + mxShapeBasicRect2.prototype.paintBottom(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left); + mxShapeBasicRect2.prototype.paintSW(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom); + mxShapeBasicRect2.prototype.paintLeft(c, x, y, w, h, rectStyle, topLeftStyle, size, top); + c.close(); + mxShapeBasicRect2.prototype.moveSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left); + mxShapeBasicRect2.prototype.paintSWInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom); + mxShapeBasicRect2.prototype.paintBottomInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom); + mxShapeBasicRect2.prototype.paintSEInner(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintRightInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right); + mxShapeBasicRect2.prototype.paintNEInner(c, x, y, w, h, rectStyle, topRightStyle, size, indent); + mxShapeBasicRect2.prototype.paintTopInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top); + mxShapeBasicRect2.prototype.paintNWInner(c, x, y, w, h, rectStyle, topLeftStyle, size, indent); + mxShapeBasicRect2.prototype.paintLeftInner(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left); + c.close(); + c.fillAndStroke(); + } + } + + c.begin(); + mxShapeBasicRect2.prototype.paintFolds(c, x, y, w, h, rectStyle, topLeftStyle, topRightStyle, bottomRightStyle, bottomLeftStyle, size, top, right, bottom, left); + c.stroke(); +}; + +mxShapeBasicRect2.prototype.moveNW = function(c, x, y, w, h, rectStyle, topLeftStyle, size, left) +{ + if((topLeftStyle == 'square' || (topLeftStyle == 'default' && rectStyle == 'square' )) || !left) + { + c.moveTo(0, 0); + } + else + { + c.moveTo(0, size); + } +}; + +mxShapeBasicRect2.prototype.moveNE = function(c, x, y, w, h, rectStyle, topRightStyle, size, top) +{ + if((topRightStyle == 'square' || (topRightStyle == 'default' && rectStyle == 'square' )) || !top) + { + c.moveTo(w, 0); + } + else + { + c.moveTo(w - size, 0); + } +}; + +mxShapeBasicRect2.prototype.moveSE = function(c, x, y, w, h, rectStyle, bottomRightStyle, size, right) +{ + if((bottomRightStyle == 'square' || (bottomRightStyle == 'default' && rectStyle == 'square' )) || !right) + { + c.moveTo(w, h); + } + else + { + c.moveTo(w, h - size); + } +}; + +mxShapeBasicRect2.prototype.moveSW = function(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom) +{ + if((bottomLeftStyle == 'square' || (bottomLeftStyle == 'default' && rectStyle == 'square' )) || !bottom) + { + c.moveTo(0, h); + } + else + { + c.moveTo(size, h); + } +}; + +mxShapeBasicRect2.prototype.paintNW = function(c, x, y, w, h, rectStyle, topLeftStyle, size, left) +{ + if (!left) + { + c.lineTo(0, 0); + } + else if((topLeftStyle == 'rounded' || (topLeftStyle == 'default' && rectStyle == 'rounded' )) || + (topLeftStyle == 'invRound' || (topLeftStyle == 'default' && rectStyle == 'invRound' )) ) + { + var inv = 0; + + if (topLeftStyle == 'rounded' || (topLeftStyle == 'default' && rectStyle == 'rounded' )) + { + inv = 1; + } + + c.arcTo(size, size, 0, 0, inv, size, 0); + } + else if((topLeftStyle == 'snip' || (topLeftStyle == 'default' && rectStyle == 'snip' )) || + (topLeftStyle == 'fold' || (topLeftStyle == 'default' && rectStyle == 'fold' ))) + { + c.lineTo(size, 0); + } +}; + +mxShapeBasicRect2.prototype.paintTop = function(c, x, y, w, h, rectStyle, topRightStyle, size, right) +{ + if((topRightStyle == 'square' || (topRightStyle == 'default' && rectStyle == 'square' )) || !right) + { + c.lineTo(w, 0); + } + else + { + c.lineTo(w - size, 0); + } +}; + +mxShapeBasicRect2.prototype.paintNE = function(c, x, y, w, h, rectStyle, topRightStyle, size, top) +{ + if (!top) + { + c.lineTo(w, 0); + } + else if((topRightStyle == 'rounded' || (topRightStyle == 'default' && rectStyle == 'rounded' )) || + (topRightStyle == 'invRound' || (topRightStyle == 'default' && rectStyle == 'invRound' )) ) + { + var inv = 0; + + if (topRightStyle == 'rounded' || (topRightStyle == 'default' && rectStyle == 'rounded' )) + { + inv = 1; + } + + c.arcTo(size, size, 0, 0, inv, w, size); + } + else if((topRightStyle == 'snip' || (topRightStyle == 'default' && rectStyle == 'snip' )) || + (topRightStyle == 'fold' || (topRightStyle == 'default' && rectStyle == 'fold' ))) + { + c.lineTo(w, size); + } +}; + +mxShapeBasicRect2.prototype.paintRight = function(c, x, y, w, h, rectStyle, bottomRightStyle, size, bottom) +{ + if((bottomRightStyle == 'square' || (bottomRightStyle == 'default' && rectStyle == 'square' )) || !bottom) + { + c.lineTo(w, h); + } + else + { + c.lineTo(w, h - size); + } +}; + +mxShapeBasicRect2.prototype.paintLeft = function(c, x, y, w, h, rectStyle, topLeftStyle, size, top) +{ + if((topLeftStyle == 'square' || (topLeftStyle == 'default' && rectStyle == 'square' )) || !top) + { + c.lineTo(0, 0); + } + else + { + c.lineTo(0, size); + } +}; + +mxShapeBasicRect2.prototype.paintSE = function(c, x, y, w, h, rectStyle, bottomRightStyle, size, right) +{ + if (!right) + { + c.lineTo(w, h); + } + else if((bottomRightStyle == 'rounded' || (bottomRightStyle == 'default' && rectStyle == 'rounded' )) || + (bottomRightStyle == 'invRound' || (bottomRightStyle == 'default' && rectStyle == 'invRound' )) ) + { + var inv = 0; + + if (bottomRightStyle == 'rounded' || (bottomRightStyle == 'default' && rectStyle == 'rounded' )) + { + inv = 1; + } + + c.arcTo(size, size, 0, 0, inv, w - size, h); + } + else if((bottomRightStyle == 'snip' || (bottomRightStyle == 'default' && rectStyle == 'snip' )) || + (bottomRightStyle == 'fold' || (bottomRightStyle == 'default' && rectStyle == 'fold' ))) + { + c.lineTo(w - size, h); + } +}; + +mxShapeBasicRect2.prototype.paintBottom = function(c, x, y, w, h, rectStyle, bottomLeftStyle, size, left) +{ + if((bottomLeftStyle == 'square' || (bottomLeftStyle == 'default' && rectStyle == 'square' )) || !left) + { + c.lineTo(0, h); + } + else + { + c.lineTo(size, h); + } +}; + +mxShapeBasicRect2.prototype.paintSW = function(c, x, y, w, h, rectStyle, bottomLeftStyle, size, bottom) +{ + if (!bottom) + { + c.lineTo(0, h); + } + else if((bottomLeftStyle == 'rounded' || (bottomLeftStyle == 'default' && rectStyle == 'rounded' )) || + (bottomLeftStyle == 'invRound' || (bottomLeftStyle == 'default' && rectStyle == 'invRound' )) ) + { + var inv = 0; + + if (bottomLeftStyle == 'rounded' || (bottomLeftStyle == 'default' && rectStyle == 'rounded' )) + { + inv = 1; + } + + c.arcTo(size, size, 0, 0, inv, 0, h - size); + } + else if((bottomLeftStyle == 'snip' || (bottomLeftStyle == 'default' && rectStyle == 'snip' )) || + (bottomLeftStyle == 'fold' || (bottomLeftStyle == 'default' && rectStyle == 'fold' ))) + { + c.lineTo(0, h - size); + } +}; + +mxShapeBasicRect2.prototype.paintNWInner = function(c, x, y, w, h, rectStyle, topLeftStyle, size, indent) +{ + if(topLeftStyle == 'rounded' || (topLeftStyle == 'default' && rectStyle == 'rounded' )) + { + c.arcTo(size - indent * 0.5, size - indent * 0.5, 0, 0, 0, indent, indent * 0.5 + size); + } + else if(topLeftStyle == 'invRound' || (topLeftStyle == 'default' && rectStyle == 'invRound' )) + { + c.arcTo(size + indent, size + indent, 0, 0, 1, indent, indent + size); + } + else if(topLeftStyle == 'snip' || (topLeftStyle == 'default' && rectStyle == 'snip' )) + { + c.lineTo(indent, indent * 0.5 + size); + } + else if(topLeftStyle == 'fold' || (topLeftStyle == 'default' && rectStyle == 'fold' )) + { + c.lineTo(indent + size, indent + size); + c.lineTo(indent, indent + size); + } +}; + +mxShapeBasicRect2.prototype.paintTopInner = function(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, left, top) +{ + if (!left && !top) + { + c.lineTo(0, 0); + } + else if (!left && top) + { + c.lineTo(0, indent); + } + else if (left && !top) + { + c.lineTo(indent, 0); + } + else if (!left) + { + c.lineTo(0, indent); + } + else if(topLeftStyle == 'square' || (topLeftStyle == 'default' && rectStyle == 'square' )) + { + c.lineTo(indent, indent); + } + else if((topLeftStyle == 'rounded' || (topLeftStyle == 'default' && rectStyle == 'rounded' )) || + (topLeftStyle == 'snip' || (topLeftStyle == 'default' && rectStyle == 'snip' ))) + { + c.lineTo(size + indent * 0.5, indent); + } + else + { + c.lineTo(size + indent, indent); + } +}; + +mxShapeBasicRect2.prototype.paintNEInner = function(c, x, y, w, h, rectStyle, topRightStyle, size, indent) +{ + if(topRightStyle == 'rounded' || (topRightStyle == 'default' && rectStyle == 'rounded' )) + { + c.arcTo(size - indent * 0.5, size - indent * 0.5, 0, 0, 0, w - size - indent * 0.5, indent); + } + else if(topRightStyle == 'invRound' || (topRightStyle == 'default' && rectStyle == 'invRound' )) + { + c.arcTo(size + indent, size + indent, 0, 0, 1, w - size - indent, indent); + } + else if(topRightStyle == 'snip' || (topRightStyle == 'default' && rectStyle == 'snip' )) + { + c.lineTo(w - size - indent * 0.5, indent); + } + else if(topRightStyle == 'fold' || (topRightStyle == 'default' && rectStyle == 'fold' )) + { + c.lineTo(w - size - indent, size + indent); + c.lineTo(w - size - indent, indent); + } +}; + +mxShapeBasicRect2.prototype.paintRightInner = function(c, x, y, w, h, rectStyle, topRightStyle, size, indent, top, right) +{ + if (!top && !right) + { + c.lineTo(w, 0); + } + else if (!top && right) + { + c.lineTo(w - indent, 0); + } + else if (top && !right) + { + c.lineTo(w, indent); + } + else if (!top) + { + c.lineTo(w - indent, 0); + } + else if(topRightStyle == 'square' || (topRightStyle == 'default' && rectStyle == 'square' )) + { + c.lineTo(w - indent, indent); + } + else if((topRightStyle == 'rounded' || (topRightStyle == 'default' && rectStyle == 'rounded' )) || + (topRightStyle == 'snip' || (topRightStyle == 'default' && rectStyle == 'snip' ))) + { + c.lineTo(w - indent, size + indent * 0.5); + } + else + { + c.lineTo(w - indent, size + indent); + } +}; + +mxShapeBasicRect2.prototype.paintLeftInner = function(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom, left) +{ + if (!bottom && !left) + { + c.lineTo(0, h); + } + else if (!bottom && left) + { + c.lineTo(indent, h); + } + else if (bottom && !left) + { + c.lineTo(0, h - indent); + } + else if (!bottom) + { + c.lineTo(indent, h); + } + else if(bottomLeftStyle == 'square' || (bottomLeftStyle == 'default' && rectStyle == 'square' )) + { + c.lineTo(indent, h - indent); + } + else if((bottomLeftStyle == 'rounded' || (bottomLeftStyle == 'default' && rectStyle == 'rounded' )) || + (bottomLeftStyle == 'snip' || (bottomLeftStyle == 'default' && rectStyle == 'snip' ))) + { + c.lineTo(indent, h - size - indent * 0.5); + } + else + { + c.lineTo(indent, h - size - indent); + } +}; + +mxShapeBasicRect2.prototype.paintSEInner = function(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent) +{ + if(bottomRightStyle == 'rounded' || (bottomRightStyle == 'default' && rectStyle == 'rounded' )) + { + c.arcTo(size - indent * 0.5, size - indent * 0.5, 0, 0, 0, w - indent, h - size - indent * 0.5); + } + else if(bottomRightStyle == 'invRound' || (bottomRightStyle == 'default' && rectStyle == 'invRound' )) + { + c.arcTo(size + indent, size + indent, 0, 0, 1, w - indent, h - size - indent); + } + else if(bottomRightStyle == 'snip' || (bottomRightStyle == 'default' && rectStyle == 'snip' )) + { + c.lineTo(w - indent, h - size - indent * 0.5); + } + else if(bottomRightStyle == 'fold' || (bottomRightStyle == 'default' && rectStyle == 'fold' )) + { + c.lineTo(w - size - indent, h - size - indent); + c.lineTo(w - indent, h - size - indent); + } +}; + +mxShapeBasicRect2.prototype.paintBottomInner = function(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, right, bottom) +{ + if (!right && !bottom) + { + c.lineTo(w, h); + } + else if (!right && bottom) + { + c.lineTo(w, h - indent); + } + else if (right && !bottom) + { + c.lineTo(w - indent, h); + } + else if((bottomRightStyle == 'square' || (bottomRightStyle == 'default' && rectStyle == 'square' )) || !right) + { + c.lineTo(w - indent, h - indent); + } + else if((bottomRightStyle == 'rounded' || (bottomRightStyle == 'default' && rectStyle == 'rounded' )) || + (bottomRightStyle == 'snip' || (bottomRightStyle == 'default' && rectStyle == 'snip' ))) + { + c.lineTo(w - size - indent * 0.5, h - indent); + } + else + { + c.lineTo(w - size - indent, h - indent); + } +}; + +mxShapeBasicRect2.prototype.paintSWInner = function(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, bottom) +{ + if (!bottom) + { + c.lineTo(indent, h); + } + else if(bottomLeftStyle == 'square' || (bottomLeftStyle == 'default' && rectStyle == 'square' )) + { + c.lineTo(indent, h - indent); + } + else if(bottomLeftStyle == 'rounded' || (bottomLeftStyle == 'default' && rectStyle == 'rounded' )) + { + c.arcTo(size - indent * 0.5, size - indent * 0.5, 0, 0, 0, size + indent * 0.5, h - indent); + } + else if(bottomLeftStyle == 'invRound' || (bottomLeftStyle == 'default' && rectStyle == 'invRound' )) + { + c.arcTo(size + indent, size + indent, 0, 0, 1, size + indent, h - indent); + } + else if(bottomLeftStyle == 'snip' || (bottomLeftStyle == 'default' && rectStyle == 'snip' )) + { + c.lineTo(size + indent * 0.5, h - indent); + } + else if(bottomLeftStyle == 'fold' || (bottomLeftStyle == 'default' && rectStyle == 'fold' )) + { + c.lineTo(indent + size, h - size - indent); + c.lineTo(indent + size, h - indent); + } +}; + +mxShapeBasicRect2.prototype.moveSWInner = function(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left) +{ + if (!left) + { + c.moveTo(0, h - indent); + } + else if(bottomLeftStyle == 'square' || (bottomLeftStyle == 'default' && rectStyle == 'square' )) + { + c.moveTo(indent, h - indent); + } + else if((bottomLeftStyle == 'rounded' || (bottomLeftStyle == 'default' && rectStyle == 'rounded' )) || + (bottomLeftStyle == 'snip' || (bottomLeftStyle == 'default' && rectStyle == 'snip' ))) + { + c.moveTo(indent, h - size - indent * 0.5); + } + else if((bottomLeftStyle == 'invRound' || (bottomLeftStyle == 'default' && rectStyle == 'invRound' )) || + (bottomLeftStyle == 'fold' || (bottomLeftStyle == 'default' && rectStyle == 'fold' ))) + { + c.moveTo(indent, h - size - indent); + } +}; + +mxShapeBasicRect2.prototype.lineSWInner = function(c, x, y, w, h, rectStyle, bottomLeftStyle, size, indent, left) +{ + if (!left) + { + c.lineTo(0, h - indent); + } + else if(bottomLeftStyle == 'square' || (bottomLeftStyle == 'default' && rectStyle == 'square' )) + { + c.lineTo(indent, h - indent); + } + else if((bottomLeftStyle == 'rounded' || (bottomLeftStyle == 'default' && rectStyle == 'rounded' )) || + (bottomLeftStyle == 'snip' || (bottomLeftStyle == 'default' && rectStyle == 'snip' ))) + { + c.lineTo(indent, h - size - indent * 0.5); + } + else if((bottomLeftStyle == 'invRound' || (bottomLeftStyle == 'default' && rectStyle == 'invRound' )) || + (bottomLeftStyle == 'fold' || (bottomLeftStyle == 'default' && rectStyle == 'fold' ))) + { + c.lineTo(indent, h - size - indent); + } +}; + +mxShapeBasicRect2.prototype.moveSEInner = function(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom) +{ + if (!bottom) + { + c.moveTo(w - indent, h); + } + else if(bottomRightStyle == 'square' || (bottomRightStyle == 'default' && rectStyle == 'square' )) + { + c.moveTo(w - indent, h - indent); + } + else if((bottomRightStyle == 'rounded' || (bottomRightStyle == 'default' && rectStyle == 'rounded' )) || + (bottomRightStyle == 'snip' || (bottomRightStyle == 'default' && rectStyle == 'snip' ))) + { + c.moveTo(w - indent, h - size - indent * 0.5); + } + else if((bottomRightStyle == 'invRound' || (bottomRightStyle == 'default' && rectStyle == 'invRound' )) || + (bottomRightStyle == 'fold' || (bottomRightStyle == 'default' && rectStyle == 'fold' ))) + { + c.moveTo(w - indent, h - size - indent); + } +}; + +mxShapeBasicRect2.prototype.lineSEInner = function(c, x, y, w, h, rectStyle, bottomRightStyle, size, indent, bottom) +{ + if (!bottom) + { + c.lineTo(w - indent, h); + } + else if(bottomRightStyle == 'square' || (bottomRightStyle == 'default' && rectStyle == 'square' )) + { + c.lineTo(w - indent, h - indent); + } + else if((bottomRightStyle == 'rounded' || (bottomRightStyle == 'default' && rectStyle == 'rounded' )) || + (bottomRightStyle == 'snip' || (bottomRightStyle == 'default' && rectStyle == 'snip' ))) + { + c.lineTo(w - indent, h - size - indent * 0.5); + } + else if((bottomRightStyle == 'invRound' || (bottomRightStyle == 'default' && rectStyle == 'invRound' )) || + (bottomRightStyle == 'fold' || (bottomRightStyle == 'default' && rectStyle == 'fold' ))) + { + c.lineTo(w - indent, h - size - indent); + } +}; + +mxShapeBasicRect2.prototype.moveNEInner = function(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right) +{ + if (!right) + { + c.moveTo(w, indent); + } + else if((topRightStyle == 'square' || (topRightStyle == 'default' && rectStyle == 'square' )) || right) + { + c.moveTo(w - indent, indent); + } + else if((topRightStyle == 'rounded' || (topRightStyle == 'default' && rectStyle == 'rounded' )) || + (topRightStyle == 'snip' || (topRightStyle == 'default' && rectStyle == 'snip' ))) + { + c.moveTo(w - indent, size + indent * 0.5); + } + else if((topRightStyle == 'invRound' || (topRightStyle == 'default' && rectStyle == 'invRound' )) || + (topRightStyle == 'fold' || (topRightStyle == 'default' && rectStyle == 'fold' ))) + { + c.moveTo(w - indent, size + indent); + } +}; + +mxShapeBasicRect2.prototype.lineNEInner = function(c, x, y, w, h, rectStyle, topRightStyle, size, indent, right) +{ + if (!right) + { + c.lineTo(w, indent); + } + else if((topRightStyle == 'square' || (topRightStyle == 'default' && rectStyle == 'square' )) || right) + { + c.lineTo(w - indent, indent); + } + else if((topRightStyle == 'rounded' || (topRightStyle == 'default' && rectStyle == 'rounded' )) || + (topRightStyle == 'snip' || (topRightStyle == 'default' && rectStyle == 'snip' ))) + { + c.lineTo(w - indent, size + indent * 0.5); + } + else if((topRightStyle == 'invRound' || (topRightStyle == 'default' && rectStyle == 'invRound' )) || + (topRightStyle == 'fold' || (topRightStyle == 'default' && rectStyle == 'fold' ))) + { + c.lineTo(w - indent, size + indent); + } +}; + +mxShapeBasicRect2.prototype.moveNWInner = function(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left) +{ + if (!top && !left) + { + c.moveTo(0, 0); + } + else if (!top && left) + { + c.moveTo(indent, 0); + } + else if (top && !left) + { + c.moveTo(0, indent); + } + else if(topLeftStyle == 'square' || (topLeftStyle == 'default' && rectStyle == 'square' )) + { + c.moveTo(indent, indent); + } + else if((topLeftStyle == 'rounded' || (topLeftStyle == 'default' && rectStyle == 'rounded' )) || + (topLeftStyle == 'snip' || (topLeftStyle == 'default' && rectStyle == 'snip' ))) + { + c.moveTo(indent, size + indent * 0.5); + } + else if((topLeftStyle == 'invRound' || (topLeftStyle == 'default' && rectStyle == 'invRound' )) || + (topLeftStyle == 'fold' || (topLeftStyle == 'default' && rectStyle == 'fold' ))) + { + c.moveTo(indent, size + indent); + } +}; + +mxShapeBasicRect2.prototype.lineNWInner = function(c, x, y, w, h, rectStyle, topLeftStyle, size, indent, top, left) +{ + if (!top && !left) + { + c.lineTo(0, 0); + } + else if (!top && left) + { + c.lineTo(indent, 0); + } + else if (top && !left) + { + c.lineTo(0, indent); + } + else if(topLeftStyle == 'square' || (topLeftStyle == 'default' && rectStyle == 'square' )) + { + c.lineTo(indent, indent); + } + else if((topLeftStyle == 'rounded' || (topLeftStyle == 'default' && rectStyle == 'rounded' )) || + (topLeftStyle == 'snip' || (topLeftStyle == 'default' && rectStyle == 'snip' ))) + { + c.lineTo(indent, size + indent * 0.5); + } + else if((topLeftStyle == 'invRound' || (topLeftStyle == 'default' && rectStyle == 'invRound' )) || + (topLeftStyle == 'fold' || (topLeftStyle == 'default' && rectStyle == 'fold' ))) + { + c.lineTo(indent, size + indent); + } +}; + +mxShapeBasicRect2.prototype.paintFolds = function(c, x, y, w, h, rectStyle, topLeftStyle, topRightStyle, bottomRightStyle, bottomLeftStyle, size, top, right, bottom, left) +{ + if (rectStyle == 'fold' || topLeftStyle == 'fold' || topRightStyle == 'fold' || bottomRightStyle == 'fold' || bottomLeftStyle == 'fold') + { + if ((topLeftStyle == 'fold' || (topLeftStyle == 'default' && rectStyle == 'fold' )) && (top && left)) + { + c.moveTo(0, size); + c.lineTo(size, size); + c.lineTo(size, 0); + } + + if ((topRightStyle == 'fold' || (topRightStyle == 'default' && rectStyle == 'fold' )) && (top && right)) + { + c.moveTo(w - size, 0); + c.lineTo(w - size, size); + c.lineTo(w, size); + } + + if ((bottomRightStyle == 'fold' || (bottomRightStyle == 'default' && rectStyle == 'fold' )) && (bottom && right)) + { + c.moveTo(w - size, h); + c.lineTo(w - size, h - size); + c.lineTo(w, h - size); + } + + if ((bottomLeftStyle == 'fold' || (bottomLeftStyle == 'default' && rectStyle == 'fold' )) && (bottom && left)) + { + c.moveTo(0, h - size); + c.lineTo(size, h - size); + c.lineTo(size, h); + } + } +}; + +mxCellRenderer.registerShape(mxShapeBasicRect2.prototype.cst.RECT2, mxShapeBasicRect2); + +mxShapeBasicRect2.prototype.constraints = null; + +Graph.handleFactory[mxShapeBasicRect2.prototype.cst.DIAG_ROUND_RECT] = function(state) +{ + var handles = [Graph.createHandle(state, ['size'], function(bounds) + { + var size = Math.max(0, Math.min(bounds.width / 2, bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'size', this.size)))); + + return new mxPoint(bounds.x + size, bounds.y + size); + }, function(bounds, pt) + { + this.state.style['size'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['indent'], function(bounds) + { + var dx2 = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'indent', this.dx2)))); + + return new mxPoint(bounds.x + bounds.width * 0.75, bounds.y + dx2 * bounds.height / 200); + }, function(bounds, pt) + { + this.state.style['indent'] = Math.round(100 * Math.max(0, Math.min(100, 200 * (pt.y - bounds.y) / bounds.height))) / 100; + }); + + handles.push(handle2); + + return handles; +}; diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxBootstrap.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxBootstrap.js new file mode 100644 index 0000000000000..2e808e3a2b71c --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxBootstrap.js @@ -0,0 +1,1003 @@ +/** + * $Id: mxBootstrap.js,v 1.0 2014/09/10 07:05:39 mate Exp $ + * Copyright (c) 2006-2014, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Rounded rectangle (adjustable rounding) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBootstrapRRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBootstrapRRect, mxShape); + +mxShapeBootstrapRRect.prototype.cst = { + PACKAGE : 'mxgraph.bootstrap.rrect', + R_SIZE : 'rSize' +}; + +mxShapeBootstrapRRect.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBootstrapRRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeBootstrapRRect.prototype.cst.R_SIZE, '10')); + c.roundrect(0, 0, w, h, rSize); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapRRect.prototype.cst.PACKAGE, mxShapeBootstrapRRect); + +//********************************************************************************************************************************************************** +//Top Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBootstrapTopButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBootstrapTopButton, mxShape); + +mxShapeBootstrapTopButton.prototype.cst = { + TOP_BUTTON : 'mxgraph.bootstrap.topButton', + R_SIZE : 'rSize' +}; + +mxShapeBootstrapTopButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBootstrapTopButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeBootstrapTopButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapTopButton.prototype.cst.TOP_BUTTON, mxShapeBootstrapTopButton); + +//********************************************************************************************************************************************************** +//Bottom Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBootstrapBottomButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBootstrapBottomButton, mxShape); + +mxShapeBootstrapBottomButton.prototype.cst = { + BOTTOM_BUTTON : 'mxgraph.bootstrap.bottomButton', + R_SIZE : 'rSize' +}; + +mxShapeBootstrapBottomButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBootstrapBottomButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeBootstrapBottomButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapBottomButton.prototype.cst.BOTTOM_BUTTON, mxShapeBootstrapBottomButton); + +//********************************************************************************************************************************************************** +//Right Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBootstrapRightButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBootstrapRightButton, mxShape); + +mxShapeBootstrapRightButton.prototype.cst = { + RIGHT_BUTTON : 'mxgraph.bootstrap.rightButton', + R_SIZE : 'rSize' +}; + +mxShapeBootstrapRightButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBootstrapRightButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeBootstrapRightButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapRightButton.prototype.cst.RIGHT_BUTTON, mxShapeBootstrapRightButton); + +//********************************************************************************************************************************************************** +//Left Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBootstrapLeftButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBootstrapLeftButton, mxShape); + +mxShapeBootstrapLeftButton.prototype.cst = { + LEFT_BUTTON : 'mxgraph.bootstrap.leftButton', + R_SIZE : 'rSize' +}; + +mxShapeBootstrapLeftButton.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBootstrapLeftButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeBootstrapLeftButton.prototype.cst.R_SIZE, '10')); + + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapLeftButton.prototype.cst.LEFT_BUTTON, mxShapeBootstrapLeftButton); + +//********************************************************************************************************************************************************** +//Left Button (Striped) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBootstrapLeftButtonStriped(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBootstrapLeftButtonStriped, mxShape); + +mxShapeBootstrapLeftButtonStriped.prototype.cst = { + LEFT_BUTTON_STRIPED : 'mxgraph.bootstrap.leftButtonStriped' +}; + + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBootstrapLeftButtonStriped.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + rSize = 5; + c.begin(); + c.moveTo(w, 0); + c.lineTo(w, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.close(); + c.fill(); + + + var fillColor = '#ffffff'; + c.setAlpha('0.2'); + var stripeW = h * 0.5; + + c.setFillColor(fillColor); + c.begin(); + c.moveTo(0, h * 0.75); + c.lineTo(0, h * 0.25); + c.lineTo(h * 0.75, h); + c.lineTo(h * 0.25, h); + c.close(); + c.fill(); + + var end = false; + var startX = stripeW * 0.5; + + while (!end) + { + c.begin(); + c.moveTo(startX, 0); + + if (startX + stripeW >= w) + { + c.lineTo(w, 0); + c.lineTo(w, w - startX); + } + else + { + c.lineTo(startX + stripeW, 0); + + if (startX + stripeW + h > w) + { + c.lineTo(w, w - startX - stripeW); + + if (w - startX > h) + { + c.lineTo(w, h); + c.lineTo(startX + h, h); + } + else + { + c.lineTo(w, w - startX); + } + } + else + { + c.lineTo(startX + stripeW + h, h); + c.lineTo(startX + h, h); + } + } + + c.close(); + c.fill(); + + startX = startX + 2 * stripeW; + + if (startX > w) + { + end = true; + } + } +}; + +mxCellRenderer.registerShape(mxShapeBootstrapLeftButtonStriped.prototype.cst.LEFT_BUTTON_STRIPED, mxShapeBootstrapLeftButtonStriped); + +//********************************************************************************************************************************************************** +//Rounded Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBootstrapRoundedButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBootstrapRoundedButton, mxShape); + +mxShapeBootstrapRoundedButton.prototype.cst = { + ROUNDED_BUTTON : 'mxgraph.bootstrap.roundedButton' +}; + + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBootstrapRoundedButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + if (w > h) + { + var r = h * 0.5; + + c.begin(); + c.moveTo(w - r, 0); + c.arcTo(r, r, 0, 0, 1, w - r, h); + c.lineTo(r, h); + c.arcTo(r, r, 0, 0, 1, r, 0); + c.close(); + c.fillAndStroke(); + } + else + { + var r = w * 0.5; + + c.begin(); + c.moveTo(0, h - r); + c.arcTo(r, r, 0, 0, 0, w, h - r); + c.lineTo(w, r); + c.arcTo(r, r, 0, 0, 0, 0, r); + c.close(); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeBootstrapRoundedButton.prototype.cst.ROUNDED_BUTTON, mxShapeBootstrapRoundedButton); + +//********************************************************************************************************************************************************** +//Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBootstrapArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBootstrapArrow, mxShape); + +mxShapeBootstrapArrow.prototype.cst = { + ARROW : 'mxgraph.bootstrap.arrow' +}; + + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBootstrapArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.moveTo(w * 0.9, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.9, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapArrow.prototype.cst.ARROW, mxShapeBootstrapArrow); + +//********************************************************************************************************************************************************** +//Tab Top +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBootstrapTabTop(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBootstrapTabTop, mxShape); + +mxShapeBootstrapTabTop.prototype.cst = { + TAB_TOP : 'mxgraph.bootstrap.tabTop', + R_SIZE : 'rSize' +}; + +mxShapeBootstrapTabTop.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:5} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBootstrapTabTop.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var rSize = parseInt(mxUtils.getValue(this.style, mxShapeBootstrapTopButton.prototype.cst.R_SIZE, '10')); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + + c.setStrokeColor(fillColor); + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + + c.setStrokeColor(strokeColor); + c.begin(); + c.moveTo(0, h); + c.lineTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapTabTop.prototype.cst.TAB_TOP, mxShapeBootstrapTabTop); + +//********************************************************************************************************************************************************** +//Image +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBootstrapImage(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBootstrapImage, mxShape); + +mxShapeBootstrapImage.prototype.cst = { + IMAGE : 'mxgraph.bootstrap.image', + R_SIZE : 'rSize' +}; + +mxShapeBootstrapImage.prototype.customProperties = [ + {name: 'rSize', dispName: 'Arc Size', type: 'float', min:0, defVal:5} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBootstrapImage.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var rSize = Math.max(0, parseInt(mxUtils.getValue(this.style, mxShapeBootstrapTopButton.prototype.cst.R_SIZE, '10'))); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + + c.begin(); + c.moveTo(0, rSize); + c.arcTo(rSize, rSize, 0, 0, 1, rSize, 0); + c.lineTo(w - rSize, 0); + c.arcTo(rSize, rSize, 0, 0, 1, w, rSize); + c.lineTo(w, h - rSize); + c.arcTo(rSize, rSize, 0, 0, 1, w - rSize, h); + c.lineTo(rSize, h); + c.arcTo(rSize, rSize, 0, 0, 1, 0, h - rSize); + c.close(); + c.stroke(); + + var rsHalf = rSize * 0.5; + c.translate(rsHalf, rsHalf); + w = Math.max(0, w - rSize); + h = Math.max(0, h - rSize); + + c.begin(); + c.moveTo(0, rsHalf); + c.arcTo(rsHalf, rsHalf, 0, 0, 1, rsHalf, 0); + c.lineTo(w - rsHalf, 0); + c.arcTo(rsHalf, rsHalf, 0, 0, 1, w, rsHalf); + c.lineTo(w, h - rsHalf); + c.arcTo(rsHalf, rsHalf, 0, 0, 1, w - rsHalf, h); + c.lineTo(rsHalf, h); + c.arcTo(rsHalf, rsHalf, 0, 0, 1, 0, h - rsHalf); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapImage.prototype.cst.IMAGE, mxShapeBootstrapImage); + +//********************************************************************************************************************************************************** +//Checkbox +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBootstrapCheckbox(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBootstrapCheckbox, mxShape); + +mxShapeBootstrapCheckbox.prototype.cst = { + CHECKBOX : 'mxgraph.bootstrap.checkbox' +}; + + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBootstrapCheckbox.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var rSize = 3; + c.roundrect(0, 0, w, h, rSize, rSize); + c.fillAndStroke(); + + c.setStrokeWidth('3'); + c.begin(); + c.moveTo(w * 0.8, h * 0.2); + c.lineTo(w * 0.4, h * 0.8); + c.lineTo(w * 0.25, h * 0.6); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapCheckbox.prototype.cst.CHECKBOX, mxShapeBootstrapCheckbox); + +//********************************************************************************************************************************************************** +//Radio Button +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBootstrapRadioButton(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBootstrapRadioButton, mxShape); + +mxShapeBootstrapRadioButton.prototype.cst = { + RADIO_BUTTON : 'mxgraph.bootstrap.radioButton' +}; + + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBootstrapRadioButton.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + c.setFillColor(strokeColor); + c.ellipse(w * 0.25, h * 0.25, w * 0.5, h * 0.5); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapRadioButton.prototype.cst.RADIO_BUTTON, mxShapeBootstrapRadioButton); + +//********************************************************************************************************************************************************** +//Horizontal Lines +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBootstrapHorLines(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBootstrapHorLines, mxShape); + +mxShapeBootstrapHorLines.prototype.cst = { + HOR_LINES : 'mxgraph.bootstrap.horLines' +}; + + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBootstrapHorLines.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.rect(0, 0, w, h); + c.fill(); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.moveTo(0, h); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapHorLines.prototype.cst.HOR_LINES, mxShapeBootstrapHorLines); + +//********************************************************************************************************************************************************** +//User 2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBootstrapUserTwo(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBootstrapUserTwo, mxShape); + +mxShapeBootstrapUserTwo.prototype.cst = { + USER2 : 'mxgraph.bootstrap.user2' +}; + + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBootstrapUserTwo.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(0, h * 0.95); + c.arcTo(w * 0.3, h * 0.3, 0, 0, 1, w * 0.02, h * 0.87); + c.arcTo(w * 0.1, h * 0.1, 0, 0, 1, w * 0.08, h * 0.812); + c.arcTo(w * 3, h * 3, 0, 0, 1, w * 0.29, h * 0.732); + c.arcTo(w * 0.15, h * 0.15, 0, 0, 0, w * 0.385, h * 0.607); + c.arcTo(w * 0.11, h * 0.11, 0, 0, 0, w * 0.355, h * 0.53); + c.arcTo(w * 0.3, h * 0.3, 0, 0, 1, w * 0.305, h * 0.44); + c.arcTo(w * 0.33, h * 0.38, 0, 0, 1, w * 0.312, h * 0.15); + c.arcTo(w * 0.218, h * 0.218 , 0, 0, 1, w * 0.688, h * 0.15); + c.arcTo(w * 0.33, h * 0.38, 0, 0, 1, w * 0.693, h * 0.44); + c.arcTo(w * 0.25, h * 0.25, 0, 0, 1, w * 0.645, h * 0.53); + c.arcTo(w * 0.1, h * 0.1, 0, 0, 0, w * 0.612, h * 0.6); + c.arcTo(w * 0.15, h * 0.15, 0, 0, 0, w * 0.7, h * 0.726); + c.arcTo(w * 3, h * 3, 0, 0, 1, w * 0.92, h * 0.812); + c.arcTo(w * 0.1, h * 0.1, 0, 0, 1, w * 0.97, h * 0.865); + c.arcTo(w * 0.2, h * 0.2, 0, 0, 1, w * 0.995, h * 0.952); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeBootstrapUserTwo.prototype.cst.USER2, mxShapeBootstrapUserTwo); + +//********************************************************************************************************************************************************** +//Rating +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBootstrapRating(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBootstrapRating, mxShape); + +mxShapeBootstrapRating.prototype.cst = { + RATING : 'mxgraph.bootstrap.rating', + RATING_STYLE : 'ratingStyle', + RATING_SCALE : 'ratingScale', + RATING_HEART : 'heart', + RATING_STAR : 'star', + EMPTY_FILL_COLOR : 'emptyFillColor', + GRADE : 'grade' +}; + +mxShapeBootstrapRating.prototype.customProperties = [ + {name: 'ratingStyle', dispName: 'Rating Style', type: 'enum', + enumList: [{val: 'heart', dispName: 'Heart'}, + {val: 'star', dispName: 'Star'}] + }, + {name: 'ratingScale', dispName: 'Rating Scale', type: 'int', min:1, defVal:5}, + {name: 'emptyFillColor', dispName: 'Inactive Color', type: 'color', defVal:'none'}, + {name: 'grade', dispName: 'Grade', type: 'int', min:1, defVal:3} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBootstrapRating.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var ratingStyle = mxUtils.getValue(this.style, mxShapeBootstrapRating.prototype.cst.RATING_STYLE, mxShapeBootstrapRating.prototype.cst.RATING_STAR); + var grade = mxUtils.getValue(this.style, mxShapeBootstrapRating.prototype.cst.GRADE, '5'); + var ratingScale = mxUtils.getValue(this.style, mxShapeBootstrapRating.prototype.cst.RATING_SCALE, '10'); + + c.translate(x, y); + + if (ratingStyle === mxShapeBootstrapRating.prototype.cst.RATING_STAR) + { + for (var i = 0; i < grade; i++) + { + c.begin(); + c.moveTo(i * h * 1.2, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.364 * h, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.475 * h, 0); + c.lineTo(i * h * 1.2 + 0.586 * h, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.95 * h, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.66 * h, 0.551 * h); + c.lineTo(i * h * 1.2 + 0.775 * h, 0.9 * h); + c.lineTo(i * h * 1.2 + 0.475 * h, 0.684 * h); + c.lineTo(i * h * 1.2 + 0.175 * h, 0.9 * h); + c.lineTo(i * h * 1.2 + 0.29 * h, 0.551 * h); + c.close(); + c.fillAndStroke(); + } + } + else if (ratingStyle === mxShapeBootstrapRating.prototype.cst.RATING_HEART) + { + for (var i = 0; i < grade; i++) + { + c.begin(); + c.moveTo(i * h * 1.2 + h * 0.519, h * 0.947); + c.curveTo(i * h * 1.2 + h * 0.558, h * 0.908, + i * h * 1.2 + h * 0.778, h * 0.682, + i * h * 1.2 + h * 0.916, h * 0.54); + c.curveTo(i * h * 1.2 + h * 1.039, h * 0.414, + i * h * 1.2 + h * 1.036, h * 0.229, + i * h * 1.2 + h * 0.924, h * 0.115); + c.curveTo(i * h * 1.2 + h * 0.812, 0, + i * h * 1.2 + h * 0.631, 0, + i * h * 1.2 + h * 0.519, h * 0.115); + c.curveTo(i * h * 1.2 + h * 0.408, 0, + i * h * 1.2 + h * 0.227, 0, + i * h * 1.2 + h * 0.115, h * 0.115); + c.curveTo(i * h * 1.2 + h * 0.03, h * 0.229, + i * h * 1.2, h * 0.414, + i * h * 1.2 + h * 0.123, h * 0.54); + c.close(); + c.fillAndStroke(); + } + } + + var emptyFillColor = mxUtils.getValue(this.style, mxShapeBootstrapRating.prototype.cst.EMPTY_FILL_COLOR, '#ffffff'); + c.setFillColor(emptyFillColor); + + if (ratingStyle === mxShapeBootstrapRating.prototype.cst.RATING_STAR) + { + for (var i = grade; i < ratingScale; i++) + { + c.begin(); + c.moveTo(i * h * 1.2, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.364 * h, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.475 * h, 0); + c.lineTo(i * h * 1.2 + 0.586 * h, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.95 * h, 0.33 * h); + c.lineTo(i * h * 1.2 + 0.66 * h, 0.551 * h); + c.lineTo(i * h * 1.2 + 0.775 * h, 0.9 * h); + c.lineTo(i * h * 1.2 + 0.475 * h, 0.684 * h); + c.lineTo(i * h * 1.2 + 0.175 * h, 0.9 * h); + c.lineTo(i * h * 1.2 + 0.29 * h, 0.551 * h); + c.close(); + c.fillAndStroke(); + } + } + else if (ratingStyle === mxShapeBootstrapRating.prototype.cst.RATING_HEART) + { + for (var i = grade; i < ratingScale; i++) + { + c.begin(); + c.moveTo(i * h * 1.2 + h * 0.519, h * 0.947); + c.curveTo(i * h * 1.2 + h * 0.558, h * 0.908, + i * h * 1.2 + h * 0.778, h * 0.682, + i * h * 1.2 + h * 0.916, h * 0.54); + c.curveTo(i * h * 1.2 + h * 1.039, h * 0.414, + i * h * 1.2 + h * 1.036, h * 0.229, + i * h * 1.2 + h * 0.924, h * 0.115); + c.curveTo(i * h * 1.2 + h * 0.812, 0, + i * h * 1.2 + h * 0.631, 0, + i * h * 1.2 + h * 0.519, h * 0.115); + c.curveTo(i * h * 1.2 + h * 0.408, 0, + i * h * 1.2 + h * 0.227, 0, + i * h * 1.2 + h * 0.115, h * 0.115); + c.curveTo(i * h * 1.2 + h * 0.03, h * 0.229, + i * h * 1.2, h * 0.414, + i * h * 1.2 + h * 0.123, h * 0.54); + c.close(); + c.fillAndStroke(); + } + } +}; + +mxCellRenderer.registerShape(mxShapeBootstrapRating.prototype.cst.RATING, mxShapeBootstrapRating); + +//********************************************************************************************************************************************************** +//Anchor (a dummy shape without visuals used for anchoring) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeBoostrapAnchor(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeBoostrapAnchor, mxShape); + +mxShapeBoostrapAnchor.prototype.cst = { + ANCHOR : 'mxgraph.bootstrap.anchor' +}; + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeBoostrapAnchor.prototype.paintVertexShape = function(c, x, y, w, h) +{ +}; + +mxCellRenderer.registerShape(mxShapeBoostrapAnchor.prototype.cst.ANCHOR, mxShapeBoostrapAnchor); + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxCabinets.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxCabinets.js new file mode 100644 index 0000000000000..2be6c8300d8f8 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxCabinets.js @@ -0,0 +1,257 @@ +/** + * $Id: mxCabinets.js,v 1.0 2014/04/15 07:05:39 mate Exp $ + * Copyright (c) 2006-2014, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Cabinet +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxCabinetsCabinet(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxCabinetsCabinet, mxShape); + +mxCabinetsCabinet.prototype.cst = { + HAS_STAND : 'hasStand', + CABINET : 'mxgraph.cabinets.cabinet' +}; + +mxCabinetsCabinet.prototype.customProperties = [ + {name: 'hasStand', dispName:'Has Stand', type:'bool', defVal:true} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxCabinetsCabinet.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + this.foreground(c, 0, 0, w, h); +}; + +mxCabinetsCabinet.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxCabinetsCabinet.prototype.foreground = function(c, x, y, w, h) +{ + var wallTh = 15; + c.rect(0, 0, w, wallTh); + c.stroke(); + + c.begin(); + c.moveTo(wallTh, wallTh); + c.lineTo(wallTh, h); + c.moveTo(w - wallTh, wallTh); + c.lineTo(w - wallTh, h); + c.stroke(); + + var hasStand = mxUtils.getValue(this.style, mxCabinetsCabinet.prototype.cst.HAS_STAND, '1'); + + if (hasStand === 1) + { + c.rect(0, h - 40, w, 40); + c.fillAndStroke(); + } + else + { + c.rect(0, h - wallTh, w, wallTh); + c.fillAndStroke(); + }; +}; + +mxCellRenderer.registerShape(mxCabinetsCabinet.prototype.cst.CABINET, mxCabinetsCabinet); + +//********************************************************************************************************************************************************** +//Cover Plate +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxCabinetsCoverPlate(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxCabinetsCoverPlate, mxShape); + +mxCabinetsCoverPlate.prototype.cst = { + COVER_PLATE : 'mxgraph.cabinets.coverPlate' +}; + + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxCabinetsCoverPlate.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, 0, 0, w, h); + c.setShadow(false); + this.foreground(c, 0, 0, w, h); +}; + +mxCabinetsCoverPlate.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.moveTo(10, h * 0.5 - 12.5); + c.lineTo(10, h * 0.5 + 12.5); + c.lineTo(w - 10, h * 0.5 + 12.5); + c.lineTo(w - 10, h * 0.5 - 12.5); + c.close(); + c.fillAndStroke(); +}; + +mxCabinetsCoverPlate.prototype.foreground = function(c, x, y, w, h) +{ +}; + +mxCellRenderer.registerShape(mxCabinetsCoverPlate.prototype.cst.COVER_PLATE, mxCabinetsCoverPlate); + +//********************************************************************************************************************************************************** +//Dimension +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxCabinetsDimension(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxCabinetsDimension, mxShape); + +mxCabinetsDimension.prototype.cst = { + DIMENSION : 'mxgraph.cabinets.dimension' +}; + + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxCabinetsDimension.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxCabinetsDimension.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 20); + c.lineTo(w, 20); + c.moveTo(10, 15); + c.lineTo(0, 20); + c.lineTo(10, 25); + c.moveTo(w - 10, 15); + c.lineTo(w, 20); + c.lineTo(w - 10, 25); + c.moveTo(0, 15); + c.lineTo(0, h); + c.moveTo(w, 15); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxCabinetsDimension.prototype.cst.DIMENSION, mxCabinetsDimension); + +//********************************************************************************************************************************************************** +//Dimension Bottom +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxCabinetsDimensionBottom(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxCabinetsDimensionBottom, mxShape); + +mxCabinetsDimensionBottom.prototype.cst = { + DIMENSION : 'mxgraph.cabinets.dimensionBottom' +}; + + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxCabinetsDimensionBottom.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxCabinetsDimensionBottom.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, h - 20); + c.lineTo(w, h - 20); + c.moveTo(10, h - 15); + c.lineTo(0, h - 20); + c.lineTo(10, h - 25); + c.moveTo(w - 10, h - 15); + c.lineTo(w, h - 20); + c.lineTo(w - 10, h - 25); + c.moveTo(0, h - 15); + c.lineTo(0, 0); + c.moveTo(w, h - 15); + c.lineTo(w, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxCabinetsDimensionBottom.prototype.cst.DIMENSION, mxCabinetsDimensionBottom); + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxDFD.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxDFD.js new file mode 100644 index 0000000000000..899710f243fe4 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxDFD.js @@ -0,0 +1,447 @@ +/** + * $Id: mxDFD.js,v 1.5 2018/26/11 12:32:06 mate Exp $ + * Copyright (c) 2006-2018, JGraph Ltd + */ +//********************************************************************************************************************************************************** +// Start +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeDFDStart(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeDFDStart, mxShape); + +mxShapeDFDStart.prototype.cst = {START : 'mxgraph.dfd.start'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeDFDStart.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var r = Math.min(h * 0.5, w * 0.5); + + c.begin(); + c.moveTo(w - r, h * 0.5 - r); + c.arcTo(r, r, 0, 0, 1, w, h * 0.5); + c.arcTo(r, r, 0, 0, 1, w - r, h * 0.5 + r); + c.lineTo(r, h * 0.5 + r); + c.arcTo(r, r, 0, 0, 1, 0, h * 0.5); + c.arcTo(r, r, 0, 0, 1, r, h * 0.5 - r); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeDFDStart.prototype.cst.START, mxShapeDFDStart); + +mxShapeDFDStart.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var r = Math.min(h * 0.5, w * 0.5); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.5), false, null, 0, -r)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.5), false, null, 0, r)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.293, h * 0.5 - r * 0.707)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.293, h * 0.5 - r * 0.707)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.293, h * 0.5 + r * 0.707)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.293, h * 0.5 + r * 0.707)); + + if (w >= 4 * h) + { + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + } + + return (constr); +} + +//********************************************************************************************************************************************************** +//Archive +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeDFDArchive(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeDFDArchive, mxShape); + +mxShapeDFDArchive.prototype.cst = {ARCHIVE : 'mxgraph.dfd.archive'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeDFDArchive.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(0,0); + c.lineTo(w, 0); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + + c.begin(); + c.moveTo(w * 0.1, h * 0.2); + c.lineTo(w * 0.9, h * 0.2); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeDFDArchive.prototype.cst.ARCHIVE, mxShapeDFDArchive); + +mxShapeDFDArchive.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.875, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.625, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.375, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.125, 0.25), false)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Check2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeDFDCheck2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeDFDCheck2, mxShape); + +mxShapeDFDCheck2.prototype.cst = {CHECK2 : 'mxgraph.dfd.check2'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeDFDCheck2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var size = Math.min(h * 0.5, w * 0.5); + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(size, 0); + c.lineTo(w - size, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - size, h); + c.lineTo(size, h); + c.lineTo(0, h * 0.5); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + + c.begin(); + c.moveTo(w - size, 0); + c.lineTo(w - 2 * size, h * 0.5); + c.lineTo(w - size, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeDFDCheck2.prototype.cst.CHECK2, mxShapeDFDCheck2); + +mxShapeDFDCheck2.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var size = Math.min(h * 0.5, w * 0.5); + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, size * 0.5, h * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - size * 0.5, h * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, size * 0.5, h * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - size * 0.5, h * 0.75)); + + if (w > h) + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, size, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - size, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, size, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - size, h)); + } + + if(size * 4 <= w) + { + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + } + + return (constr); +} + +//********************************************************************************************************************************************************** +//Data Store with ID +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeDFDDataStoreID(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeDFDDataStoreID, mxShape); + +mxShapeDFDDataStoreID.prototype.cst = {DATA_STORE_ID : 'mxgraph.dfd.dataStoreID'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeDFDDataStoreID.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var size = Math.min(h * 0.5, w * 0.5); + + c.begin(); + c.moveTo(w, h); + c.lineTo(0, h); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.stroke(); + + c.setShadow(false); + + var s = Math.min(30, w); + + c.begin(); + c.moveTo(s, 0); + c.lineTo(s, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeDFDDataStoreID.prototype.cst.DATA_STORE_ID, mxShapeDFDDataStoreID); + +mxShapeDFDDataStoreID.prototype.constraints = null; + +//********************************************************************************************************************************************************** +//External Entity +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeDFDExternalEntity(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeDFDExternalEntity, mxShape); + +mxShapeDFDExternalEntity.prototype.cst = {EXTERNAL_ENTITY : 'mxgraph.dfd.externalEntity'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeDFDExternalEntity.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var size = 10; + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - size, 0); + c.lineTo(w, size); + c.lineTo(w, h); + c.lineTo(size, h); + c.lineTo(0, h - size); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + + + c.setFillColor('#000000'); + c.setAlpha(0.5); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - size, 0); + c.lineTo(w, size); + c.lineTo(size, size); + c.lineTo(size, h); + c.lineTo(0, h - size); + c.close(); + c.fill(); + + var opacity = parseFloat(mxUtils.getValue(this.style, 'opacity', '100')); + + c.setAlpha(opacity / 100); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w - size, 0); + c.lineTo(w, size); + c.lineTo(w, h); + c.lineTo(size, h); + c.lineTo(0, h - size); + c.close(); + c.moveTo(size, h); + c.lineTo(size, size); + c.lineTo(w, size); + c.moveTo(0, 0); + c.lineTo(size, size); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeDFDExternalEntity.prototype.cst.EXTERNAL_ENTITY, mxShapeDFDExternalEntity); + +mxShapeDFDExternalEntity.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var size = 10; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - size) * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - size) * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - size) * 0.75, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - size, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, size, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - size) * 0.25 + size, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - size) * 0.5 + size, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, (w - size) * 0.75 + size, h)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, size)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, size + (h - size) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, size + (h - size) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, size + (h - size) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - size) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - size) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - size) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - size)); + + return (constr); +} + +//********************************************************************************************************************************************************** +//Loop +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeDFDLoop(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeDFDLoop, mxShape); + +mxShapeDFDLoop.prototype.cst = {LOOP : 'mxgraph.dfd.loop'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeDFDLoop.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var r = Math.min(h * 0.8, w * 0.8); + + c.begin(); + c.moveTo(w - r * 0.25, 0); + c.arcTo(r, r, 0, 0, 1, w - r * 0.25, h); + c.lineTo(r * 0.25, h); + c.arcTo(r, r, 0, 0, 1, r * 0.25, 0); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeDFDLoop.prototype.cst.LOOP, mxShapeDFDLoop); + +mxShapeDFDLoop.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var r = Math.min(h * 0.8, w * 0.8); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.25, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.25, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + + return (constr); +} + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxEip.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxEip.js new file mode 100644 index 0000000000000..563c5c1fd9d0e --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxEip.js @@ -0,0 +1,570 @@ +/** + * $Id: mxEip.js,v 1.0 2014/11/27 06:09:21 mate Exp $ + * Copyright (c) 2006-2015, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Message Expiration +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapeEipMessageExpiration(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapeEipMessageExpiration, mxShape); + +mxShapeEipMessageExpiration.prototype.cst = { + SHAPE_MESS_EXP : 'mxgraph.eip.messExp' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapeEipMessageExpiration.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeEipMessageExpiration.prototype.background = function(c, x, y, w, h) +{ + c.ellipse(0, 0, w, h); + c.stroke(); + + c.setStrokeColor("#808080"); + c.begin(); + c.moveTo(w * 0.5, h * 0.1); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.6, h * 0.8); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeEipMessageExpiration.prototype.cst.SHAPE_MESS_EXP, mxShapeEipMessageExpiration); + +mxShapeEipMessageExpiration.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Return Address +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeEipReturnAddress(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeEipReturnAddress, mxShape); + +mxShapeEipReturnAddress.prototype.cst = { + SHAPE_RET_ADDR : 'mxgraph.eip.retAddr' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeEipReturnAddress.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeEipReturnAddress.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeEipReturnAddress.prototype.foreground = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(w * 0.05, h * 0.11); + c.lineTo(w * 0.25, h * 0.11); + c.moveTo(w * 0.05, h * 0.18); + c.lineTo(w * 0.25, h * 0.18); + c.moveTo(w * 0.05, h * 0.25); + c.lineTo(w * 0.25, h * 0.25); + + c.setStrokeWidth(2); + c.moveTo(w * 0.3, h * 0.63); + c.lineTo(w * 0.8, h * 0.63); + c.moveTo(w * 0.3, h * 0.72); + c.lineTo(w * 0.8, h * 0.72); + c.moveTo(w * 0.3, h * 0.80); + c.lineTo(w * 0.8, h * 0.80); + c.stroke(); + + c.setFillColor("#EDEDED"); + c.rect(w * 0.8, h * 0.1, w * 0.12, h * 0.19); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeEipReturnAddress.prototype.cst.SHAPE_RET_ADDR, mxShapeEipReturnAddress); + +mxShapeEipReturnAddress.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Anchor +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeEipAnchor(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeEipAnchor, mxShape); + +mxShapeEipAnchor.prototype.cst = { + SHAPE_ANCHOR : 'mxgraph.eip.anchor' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeEipAnchor.prototype.paintVertexShape = function(c, x, y, w, h) +{ +}; + +mxCellRenderer.registerShape(mxShapeEipAnchor.prototype.cst.SHAPE_ANCHOR, mxShapeEipAnchor); + +//********************************************************************************************************************************************************** +//Message Channel +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeEipMessageChannel(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeEipMessageChannel, mxShape); + +mxShapeEipMessageChannel.prototype.cst = { + SHAPE_MESSAGE_CHANNEL : 'mxgraph.eip.messageChannel' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeEipMessageChannel.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeEipMessageChannel.prototype.background = function(c, x, y, w, h) +{ + c.setGradient('#e6e6e6', '#808080', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, 8, h * 0.5 - 10); + c.lineTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.close(); + c.fillAndStroke(); +}; + +mxShapeEipMessageChannel.prototype.foreground = function(c, x, y, w, h) +{ + c.setFillColor('#e6e6e6'); + c.begin(); + c.moveTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 - 10); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeEipMessageChannel.prototype.cst.SHAPE_MESSAGE_CHANNEL, mxShapeEipMessageChannel); + + +mxShapeEipMessageChannel.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 2.7, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, -2.7, 0)); + + var currW = 10; + + while (currW < w) + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, currW, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, currW, 0)); + + currW = currW + 10; + } + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Datatype Channel +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeEipDatatypeChannel(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeEipDatatypeChannel, mxShape); + +mxShapeEipDatatypeChannel.prototype.cst = { + SHAPE_DATATYPE_CHANNEL : 'mxgraph.eip.dataChannel' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeEipDatatypeChannel.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeEipDatatypeChannel.prototype.background = function(c, x, y, w, h) +{ + c.setGradient('#e6e6e6', '#808080', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, 8, h * 0.5 - 10); + c.lineTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.close(); + c.fillAndStroke(); +}; + +mxShapeEipDatatypeChannel.prototype.foreground = function(c, x, y, w, h) +{ + c.setFillColor('#e6e6e6'); + c.begin(); + c.moveTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 - 10); + c.fillAndStroke(); + + c.setFillColor("#fffbc0"); + c.setStrokeWidth("1"); + + for(var i = 1; i * 20 + 10 < w - 14; i++) + { + c.rect(i * 20, h * 0.5 - 5, 10, 10); + c.fillAndStroke(); + }; +}; + +mxCellRenderer.registerShape(mxShapeEipDatatypeChannel.prototype.cst.SHAPE_DATATYPE_CHANNEL, mxShapeEipDatatypeChannel); + +mxShapeEipDatatypeChannel.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 2.7, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, -2.7, 0)); + + var currW = 10; + + while (currW < w) + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, currW, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, currW, 0)); + + currW = currW + 10; + } + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Dead Letter Channel +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeEipDeadLetterChannel(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeEipDeadLetterChannel, mxShape); + +mxShapeEipDeadLetterChannel.prototype.cst = { + SHAPE_DEAD_LETTER_CHANNEL : 'mxgraph.eip.deadLetterChannel' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeEipDeadLetterChannel.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeEipDeadLetterChannel.prototype.background = function(c, x, y, w, h) +{ + c.setGradient('#e6e6e6', '#808080', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, 8, h * 0.5 - 10); + c.lineTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.close(); + c.fillAndStroke(); +}; + +mxShapeEipDeadLetterChannel.prototype.foreground = function(c, x, y, w, h) +{ + c.setFillColor('#e6e6e6'); + c.begin(); + c.moveTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 - 10); + c.fillAndStroke(); + + c.setFillColor("#ff0000"); + c.setStrokeWidth("1"); + c.begin(); + c.moveTo(w * 0.5 - 6, h * 0.5 - 3); + c.lineTo(w * 0.5 - 3, h * 0.5 - 6); + c.lineTo(w * 0.5 + 3, h * 0.5 - 6); + c.lineTo(w * 0.5 + 6, h * 0.5 - 3); + c.lineTo(w * 0.5 + 6, h * 0.5 + 3); + c.lineTo(w * 0.5 + 3, h * 0.5 + 6); + c.lineTo(w * 0.5 - 3, h * 0.5 + 6); + c.lineTo(w * 0.5 - 6, h * 0.5 + 3); + c.close(); + c.fillAndStroke(); + + c.setStrokeWidth("2"); + c.setStrokeColor("#ffffff"); + c.begin(); + c.moveTo(w * 0.5 - 4, h * 0.5); + c.lineTo(w * 0.5 + 4, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeEipDeadLetterChannel.prototype.cst.SHAPE_DEAD_LETTER_CHANNEL, mxShapeEipDeadLetterChannel); + +mxShapeEipDeadLetterChannel.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 2.7, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, -2.7, 0)); + + var currW = 10; + + while (currW < w) + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, currW, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, currW, 0)); + + currW = currW + 10; + } + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Invalid Message Channel +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeEipInvalidMessageChannel(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeEipInvalidMessageChannel, mxShape); + +mxShapeEipInvalidMessageChannel.prototype.cst = { + SHAPE_INVALID_MESSAGE_CHANNEL : 'mxgraph.eip.invalidMessageChannel' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeEipInvalidMessageChannel.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeEipInvalidMessageChannel.prototype.background = function(c, x, y, w, h) +{ + c.setGradient('#e6e6e6', '#808080', 0, 0, w, h, mxConstants.DIRECTION_SOUTH, 1, 1); + c.begin(); + c.moveTo(8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, 8, h * 0.5 - 10); + c.lineTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.close(); + c.fillAndStroke(); +}; + +mxShapeEipInvalidMessageChannel.prototype.foreground = function(c, x, y, w, h) +{ + c.setFillColor('#e6e6e6'); + c.begin(); + c.moveTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 - 10); + c.fillAndStroke(); + + c.setFillColor("#ffe040"); + c.setStrokeWidth("1"); + c.begin(); + c.moveTo(w * 0.5 - 6, h * 0.5 + 5); + c.lineTo(w * 0.5, h * 0.5 - 5); + c.lineTo(w * 0.5 + 6, h * 0.5 + 5); + c.close(); + c.fillAndStroke(); + + c.setStrokeWidth("1"); + c.begin(); + c.moveTo(w * 0.5, h * 0.5 - 2); + c.lineTo(w * 0.5, h * 0.5 + 2); + c.moveTo(w * 0.5, h * 0.5 + 3); + c.lineTo(w * 0.5, h * 0.5 + 4); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeEipInvalidMessageChannel.prototype.cst.SHAPE_INVALID_MESSAGE_CHANNEL, mxShapeEipInvalidMessageChannel); + +mxShapeEipInvalidMessageChannel.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 2.7, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, -2.7, 0)); + + var currW = 10; + + while (currW < w) + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, currW, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, currW, 0)); + + currW = currW + 10; + } + + return (constr); +}; diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxElectrical.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxElectrical.js new file mode 100644 index 0000000000000..59f120aac339d --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxElectrical.js @@ -0,0 +1,1776 @@ +/** + * $Id: mxElectrical.js,v 1.0 2016/10/25 17:05:39 mate Exp $ + * Copyright (c) 2006-2016, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Test Point +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeElectricalTestPoint(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeElectricalTestPoint, mxShape); + +mxShapeElectricalTestPoint.prototype.cst = { + SHAPE_TEST_POINT : 'mxgraph.electrical.transmission.testPoint' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeElectricalTestPoint.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + + var size = Math.min(w, h); + + c.setFillColor(strokeColor); + c.begin(); + c.ellipse(w * 0.5 - size / 2, 0, size, size); + c.fillAndStroke(); + + if (h > w) + { + c.begin(); + c.moveTo(w * 0.5, size); + c.lineTo(w * 0.5, h); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeElectricalTestPoint.prototype.cst.SHAPE_TEST_POINT, mxShapeElectricalTestPoint); + +mxShapeElectricalTestPoint.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Straight Bus +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeElectricalStraightBus(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeElectricalStraightBus, mxShape); + +mxShapeElectricalStraightBus.prototype.cst = { + SHAPE_STRAIGHT_BUS : 'mxgraph.electrical.transmission.straightBus' +}; + + + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeElectricalStraightBus.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var size = Math.min(w, h); + var x1 = w * 0.2; + var y1 = 0; + + if (w > h) + { + y1 = h * 0.5; + } + else + { + y1 = w / 2; + } + + c.begin(); + c.moveTo(w - x1, 0); + c.lineTo(w - x1, h - y1); + c.lineTo(w, h - y1); + c.lineTo(w * 0.5, h); + c.lineTo(0, h - y1); + c.lineTo(x1, h - y1); + c.lineTo(x1, 0); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeElectricalStraightBus.prototype.cst.SHAPE_STRAIGHT_BUS, mxShapeElectricalStraightBus); + +mxShapeElectricalStraightBus.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Two-Line Bus Elbow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeElectricalTwoLineBusElbow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.notch = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeElectricalTwoLineBusElbow, mxShape); + +mxShapeElectricalTwoLineBusElbow.prototype.cst = { + SHAPE_TWO_LINE_BUS_ELBOW : 'mxgraph.electrical.transmission.twoLineBusElbow' +}; + +mxShapeElectricalTwoLineBusElbow.prototype.customProperties = [ + {name:'notch', dispName:'Spacing', type:'float', min:0, defVal:25} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeElectricalTwoLineBusElbow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + + c.translate(x, y); + + c.begin(); + c.moveTo(0, h); + c.lineTo(w, h); + c.lineTo(w, 0); + c.stroke(); + + var wn = Math.min(w, notch); + var hn = Math.min(h, notch); + + c.begin(); + c.moveTo(0, h - hn); + c.lineTo(w - wn, h - hn); + c.lineTo(w - wn, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeElectricalTwoLineBusElbow.prototype.cst.SHAPE_TWO_LINE_BUS_ELBOW, mxShapeElectricalTwoLineBusElbow); + +mxShapeElectricalTwoLineBusElbow.prototype.constraints = null; + +Graph.handleFactory[mxShapeElectricalTwoLineBusElbow.prototype.cst.SHAPE_TWO_LINE_BUS_ELBOW] = function(state) +{ + var handles = [Graph.createHandle(state, ['notch'], function(bounds) + { + var notch = Math.max(Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch))), 0); + + return new mxPoint(bounds.x + bounds.width / 4, bounds.y + bounds.height - notch); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(0.2 * Math.max(0, bounds.width - pt.y + bounds.y)) / 0.2; + })]; + + return handles; + +} + +//********************************************************************************************************************************************************** +//Three-Line Bus Elbow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeElectricalThreeLineBusElbow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.notch = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeElectricalThreeLineBusElbow, mxShape); + +mxShapeElectricalThreeLineBusElbow.prototype.cst = { + SHAPE_THREE_LINE_BUS_ELBOW : 'mxgraph.electrical.transmission.threeLineBusElbow' +}; + +mxShapeElectricalThreeLineBusElbow.prototype.customProperties = [ + {name:'notch', dispName:'Spacing', type:'float', min:0, defVal:30} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeElectricalThreeLineBusElbow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + + c.translate(x, y); + + c.begin(); + c.moveTo(0, h); + c.lineTo(w, h); + c.lineTo(w, 0); + c.stroke(); + + var wn = Math.min(w, notch); + var hn = Math.min(h, notch); + + c.begin(); + c.moveTo(0, h - hn); + c.lineTo(w - wn, h - hn); + c.lineTo(w - wn, 0); + c.stroke(); + + c.begin(); + c.moveTo(0, h - hn / 2); + c.lineTo(w - wn / 2, h - hn / 2); + c.lineTo(w - wn / 2, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeElectricalThreeLineBusElbow.prototype.cst.SHAPE_THREE_LINE_BUS_ELBOW, mxShapeElectricalThreeLineBusElbow); + +mxShapeElectricalThreeLineBusElbow.prototype.constraints = null; + +Graph.handleFactory[mxShapeElectricalThreeLineBusElbow.prototype.cst.SHAPE_THREE_LINE_BUS_ELBOW] = function(state) +{ + var handles = [Graph.createHandle(state, ['notch'], function(bounds) + { + var notch = Math.max(Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch))), 0); + + return new mxPoint(bounds.x + bounds.width / 4, bounds.y + bounds.height - notch); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(0.2 * Math.max(0, bounds.width - pt.y + bounds.y)) / 0.2; + })]; + + return handles; + +} + +//********************************************************************************************************************************************************** +//Four-Line Bus Elbow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeElectricalFourLineBusElbow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.notch = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeElectricalFourLineBusElbow, mxShape); + +mxShapeElectricalFourLineBusElbow.prototype.cst = { + SHAPE_FOUR_LINE_BUS_ELBOW : 'mxgraph.electrical.transmission.fourLineBusElbow' +}; + +mxShapeElectricalFourLineBusElbow.prototype.customProperties = [ + {name:'notch', dispName:'Spacing', type:'float', min:0, defVal:75} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeElectricalFourLineBusElbow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + + c.translate(x, y); + + c.begin(); + c.moveTo(0, h); + c.lineTo(w, h); + c.lineTo(w, 0); + c.stroke(); + + var wn = Math.min(w, notch); + var hn = Math.min(h, notch); + + c.begin(); + c.moveTo(0, h - hn); + c.lineTo(w - wn, h - hn); + c.lineTo(w - wn, 0); + c.stroke(); + + c.begin(); + c.moveTo(0, h - hn / 3); + c.lineTo(w - wn / 3, h - hn / 3); + c.lineTo(w - wn / 3, 0); + c.stroke(); + + c.begin(); + c.moveTo(0, h - hn * 2 / 3); + c.lineTo(w - wn * 2 / 3, h - hn * 2 / 3); + c.lineTo(w - wn * 2 / 3, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeElectricalFourLineBusElbow.prototype.cst.SHAPE_FOUR_LINE_BUS_ELBOW, mxShapeElectricalFourLineBusElbow); + +mxShapeElectricalFourLineBusElbow.prototype.constraints = null; + +Graph.handleFactory[mxShapeElectricalFourLineBusElbow.prototype.cst.SHAPE_FOUR_LINE_BUS_ELBOW] = function(state) +{ + var handles = [Graph.createHandle(state, ['notch'], function(bounds) + { + var notch = Math.max(Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch))), 0); + + return new mxPoint(bounds.x + bounds.width / 4, bounds.y + bounds.height - notch); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(0.2 * Math.max(0, bounds.width - pt.y + bounds.y)) / 0.2; + })]; + + return handles; +} + +//********************************************************************************************************************************************************** +//Four-Line Bus Elbow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeElectricalEightLineBusElbow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.notch = 0; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeElectricalEightLineBusElbow, mxShape); + +mxShapeElectricalEightLineBusElbow.prototype.cst = { + SHAPE_EIGHT_LINE_BUS_ELBOW : 'mxgraph.electrical.transmission.eightLineBusElbow' +}; + +mxShapeElectricalEightLineBusElbow.prototype.customProperties = [ + {name:'notch', dispName:'Spacing', type:'float', min:0, defVal:180} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeElectricalEightLineBusElbow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + + c.translate(x, y); + + c.begin(); + c.moveTo(0, h); + c.lineTo(w, h); + c.lineTo(w, 0); + c.stroke(); + + var wn = Math.min(w, notch); + var hn = Math.min(h, notch); + + c.begin(); + c.moveTo(0, h - hn); + c.lineTo(w - wn, h - hn); + c.lineTo(w - wn, 0); + c.stroke(); + + c.begin(); + c.moveTo(0, h - hn / 7); + c.lineTo(w - wn / 7, h - hn / 7); + c.lineTo(w - wn / 7, 0); + c.stroke(); + + c.begin(); + c.moveTo(0, h - hn * 2 / 7); + c.lineTo(w - wn * 2 / 7, h - hn * 2 / 7); + c.lineTo(w - wn * 2 / 7, 0); + c.stroke(); + + c.begin(); + c.moveTo(0, h - hn * 3 / 7); + c.lineTo(w - wn * 3 / 7, h - hn * 3 / 7); + c.lineTo(w - wn * 3 / 7, 0); + c.stroke(); + + c.begin(); + c.moveTo(0, h - hn * 4 / 7); + c.lineTo(w - wn * 4 / 7, h - hn * 4 / 7); + c.lineTo(w - wn * 4 / 7, 0); + c.stroke(); + + c.begin(); + c.moveTo(0, h - hn * 5 / 7); + c.lineTo(w - wn * 5 / 7, h - hn * 5 / 7); + c.lineTo(w - wn * 5 / 7, 0); + c.stroke(); + + c.begin(); + c.moveTo(0, h - hn * 6 / 7); + c.lineTo(w - wn * 6 / 7, h - hn * 6 / 7); + c.lineTo(w - wn * 6 / 7, 0); + c.stroke(); + +}; + +mxCellRenderer.registerShape(mxShapeElectricalEightLineBusElbow.prototype.cst.SHAPE_EIGHT_LINE_BUS_ELBOW, mxShapeElectricalEightLineBusElbow); + +mxShapeElectricalEightLineBusElbow.prototype.constraints = null; + +Graph.handleFactory[mxShapeElectricalEightLineBusElbow.prototype.cst.SHAPE_EIGHT_LINE_BUS_ELBOW] = function(state) +{ + var handles = [Graph.createHandle(state, ['notch'], function(bounds) + { + var notch = Math.max(Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch))), 0); + + return new mxPoint(bounds.x + bounds.width / 4, bounds.y + bounds.height - notch); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(0.2 * Math.max(0, bounds.width - pt.y + bounds.y)) / 0.2; + })]; + + return handles; +} + +//********************************************************************************************************************************************************** +//Logic Gate +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeElectricalLogicGate(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeElectricalLogicGate, mxShape); + +mxShapeElectricalLogicGate.prototype.cst = { + SHAPE_LOGIC_GATE : 'mxgraph.electrical.logic_gates.logic_gate' +}; + +mxShapeElectricalLogicGate.prototype.customProperties = [ + {name: 'operation', dispName: 'Operation', type: 'enum', defVal:'and', + enumList:[ + {val:'and', dispName:'And'}, + {val:'or', dispName:'Or'}, + {val:'xor', dispName:'Xor'} + ]}, + {name: 'numInputs', dispName: 'Inputs', type: 'int', min:2, defVal:2}, + {name: 'negating', dispName: 'Negating', type: 'bool', defVal:0} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeElectricalLogicGate.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var numInputs = parseInt(mxUtils.getValue(this.style, 'numInputs', '2')); + var spacing = h / numInputs; + var currH = spacing * 0.5; + + c.begin(); + c.moveTo(w * 0.8, h * 0.5); + c.lineTo(w, h * 0.5); + + var operation = mxUtils.getValue(this.style, 'operation', 'and'); + + for (var i = 0; i < numInputs; i++) + { + c.moveTo(0, currH); + + if (operation == 'and') + { + c.lineTo(w * 0.2, currH); + } + else + { + c.lineTo(w * 0.23, currH); + } + + currH = currH + spacing; + } + + c.stroke(); + + + switch(operation) { + case 'xor': + c.begin(); + c.moveTo(w * 0.1, 0); + c.arcTo(w * 0.6, h, 0, 0, 1, w * 0.1, h); + c.stroke(); + case 'or': + c.begin(); + c.moveTo(w * 0.4, 0); + c.arcTo(w * 0.45, h * 0.83, 0, 0, 1, w * 0.8, h * 0.5); + c.arcTo(w * 0.45, h * 0.83, 0, 0, 1, w * 0.4, h); + c.lineTo(w * 0.15, h); + c.arcTo(w * 0.6, h, 0, 0, 0, w * 0.15, 0); + c.close(); + c.fillAndStroke(); + break; + default: + c.begin(); + c.moveTo(w * 0.2, 0); + c.lineTo(w * 0.5, 0); + c.arcTo(w * 0.3, h * 0.5, 0, 0, 1, w * 0.5, h); + c.lineTo(w * 0.2, h); + c.close(); + c.fillAndStroke(); + }; + + + var negating = mxUtils.getValue(this.style, 'negating', '0'); + + if (negating == '1') + { + var negSize = Math.min(w * 0.04, h * 0.07); + c.begin(); + c.ellipse(w * 0.8, h * 0.5 - negSize * 0.5, negSize, negSize); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeElectricalLogicGate.prototype.cst.SHAPE_LOGIC_GATE, mxShapeElectricalLogicGate); + +mxShapeElectricalLogicGate.prototype.getConstraints = function(style) +{ + var constr = [new mxConnectionConstraint(new mxPoint(1, 0.5), false)]; + + var numInputs = parseInt(mxUtils.getValue(style, 'numInputs', '2')); + var spacing = 1 / numInputs; + var currH = spacing * 0.5; + + for (var i = 0; i < numInputs; i++) + { + constr.push(new mxConnectionConstraint(new mxPoint(0, currH), false)); + currH = currH + spacing; + } + + return (constr); +} + +//********************************************************************************************************************************************************** +//Buffer +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeElectricalBuffer(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeElectricalBuffer, mxShape); + +mxShapeElectricalBuffer.prototype.cst = { + SHAPE_BUFFER2 : 'mxgraph.electrical.logic_gates.buffer2' +}; + +mxShapeElectricalBuffer.prototype.customProperties = [ + {name: 'negating', dispName: 'Negating', type: 'bool', defVal:0} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeElectricalBuffer.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.2, h * 0.5); + c.moveTo(w * 0.8, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.2, 0); + c.lineTo(w * 0.8, h * 0.5); + c.lineTo(w * 0.2, h); + c.close(); + c.fillAndStroke(); + + var negating = mxUtils.getValue(this.style, 'negating', '0'); + + if (negating == '1') + { + var negSize = Math.min(w * 0.04, h * 0.07); + c.begin(); + c.ellipse(w * 0.8, h * 0.5 - negSize * 0.5, negSize, negSize); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeElectricalBuffer.prototype.cst.SHAPE_BUFFER2, mxShapeElectricalBuffer); + +mxShapeElectricalBuffer.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true) + ]; + +//********************************************************************************************************************************************************** +//Dual In-Line IC +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeElectricalDualInLineIC(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeElectricalDualInLineIC, mxShape); + +mxShapeElectricalDualInLineIC.prototype.cst = { + SHAPE_DUAL_INLINE_IC : 'mxgraph.electrical.logic_gates.dual_inline_ic' +}; + +mxShapeElectricalDualInLineIC.prototype.customProperties = [ + {name: 'pinStyle', dispName: 'Pin Style', type: 'enum', defVal:'line', + enumList:[ + {val:'line', dispName:'Line'}, + {val:'square', dispName:'Square'} + ]}, + {name: 'startPin', dispName: 'Starting Pin', type: 'enum', defVal:'n', + enumList:[ + {val:'n', dispName:'N'}, + {val:'e', dispName:'E'}, + {val:'s', dispName:'S'}, + {val:'w', dispName:'W'} + ]}, + {name: 'pinSpacing', dispName: 'Pin Spacing', type: 'float', min:1, defVal:20}, + {name: 'pinLabelType', dispName: 'Pin Label Type', type: 'enum', defVal:'gen', + enumList:[ + {val:'gen', dispName:'Generated'}, + {val:'cust', dispName:'Custom'} + ]}, + {name: 'labelCount', dispName: 'Number of Labels', type: 'int', defVal: 20, dependentProps: ['labelNames']}, + {name: 'labelNames', dispName: 'Label Names', type: 'staticArr', subType: 'string', sizeProperty: 'labelCount', subDefVal: 'a'} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeElectricalDualInLineIC.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var fontColor = mxUtils.getValue(this.style, 'fontColor', '#000000'); + c.setFontColor(fontColor); + var startPin = mxUtils.getValue(this.style, 'startPin', 'n'); + var pinLabelType = mxUtils.getValue(this.style, 'pinLabelType', 'gen'); + var labelNames = mxUtils.getValue(this.style, 'labelNames', '').toString().split(','); + + c.begin(); + + if (startPin == 'n' || startPin == 's') + { + c.rect(10, 0, w - 20, h); + } + else + { + c.rect(0, 10, w, h - 20); + } + + c.fillAndStroke(); + + var pinSpacing = parseFloat(mxUtils.getValue(this.style, 'pinSpacing', '20')); + var pinStyle = mxUtils.getValue(this.style, 'pinStyle', 'line'); + var fontSize = parseFloat(mxUtils.getValue(this.style, 'fontSize', '12')); + + if (startPin == 'n' || startPin == 's') + { + var pinsOne = parseInt(h / pinSpacing); + } + else + { + var pinsOne = parseInt(w / pinSpacing); + } + + if (pinStyle == 'line') + { + c.setFontSize(fontSize * 0.8); + var pinCount = 1; + var currH = pinSpacing * 0.5; + + c.begin(); + + if (startPin == 'n' || startPin == 's') + { + while (pinCount * pinSpacing <= h) + { + c.moveTo(0, currH); + c.lineTo(10, currH); + c.moveTo(w - 10, currH); + c.lineTo(w, currH); + + if (startPin == 'n') + { + var currPinNum = pinCount; + } + else + { + var currPinNum = pinsOne + pinCount; + } + + if (pinLabelType == 'gen') + { + c.text(20, currH, 0, 0, currPinNum.toString(), mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (currPinNum - 1 < labelNames.length) + { + c.text(20, currH, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_LEFT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + if (startPin == 'n') + { + var pc2 = 2 * pinsOne - pinCount + 1; + } + else + { + var pc2 = pinsOne - pinCount + 1; + } + + if (pinLabelType == 'gen') + { + c.text(w - 20, currH, 0, 0, pc2.toString(), mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (pc2 - 1 < labelNames.length) + { + c.text(w - 20, currH, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_RIGHT, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + } + else + { + while (pinCount * pinSpacing <= w) + { + c.moveTo(currH, 0); + c.lineTo(currH, 10); + c.moveTo(currH, h - 10); + c.lineTo(currH, h); + + if (startPin == 'e') + { + var currPinNum = pinsOne - pinCount + 1; + } + else + { + var currPinNum = 2 * pinsOne - pinCount + 1; + } + + if (pinLabelType == 'gen') + { + c.text(currH, 20, 0, 0, currPinNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (currPinNum - 1 < labelNames.length) + { + c.text(currH, 20, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + if (startPin == 'e') + { + var pc2 = pinsOne + pinCount; + } + else + { + var pc2 = pinCount; + } + + if (pinLabelType == 'gen') + { + c.text(currH, h - 20, 0, 0, pc2.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (pc2 - 1 < labelNames.length) + { + c.text(currH, h - 20, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + } + + c.stroke(); + } + else + { + c.setFontSize(fontSize * 0.5); + var pinCount = 1; + var currH = pinSpacing * 0.5; + + if (startPin == 'n' || startPin == 's') + { + while (pinCount * pinSpacing <= h) + { + c.begin(); + c.rect(0, currH - pinSpacing * 0.25, 10, pinSpacing * 0.5); + c.fillAndStroke(); + + c.begin(); + c.rect(w - 10, currH - pinSpacing * 0.25, 10, pinSpacing * 0.5); + c.fillAndStroke(); + + if (startPin == 'n') + { + var currPinNum = pinCount; + } + else + { + var currPinNum = pinsOne + pinCount; + } + + if (pinLabelType == 'gen') + { + c.text(5, currH + 1, 0, 0, currPinNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (currPinNum - 1 < labelNames.length) + { + c.text(5, currH + 1, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + if (startPin == 'n') + { + var pc2 = 2 * pinsOne - pinCount + 1; + } + else + { + var pc2 = pinsOne - pinCount + 1; + } + + if (pinLabelType == 'gen') + { + c.text(w - 5, currH + 1, 0, 0, pc2.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (pc2 - 1 < labelNames.length) + { + c.text(w - 5, currH + 1, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + } + else + { + while (pinCount * pinSpacing <= w) + { + c.begin(); + c.rect(currH - pinSpacing * 0.25, 0, pinSpacing * 0.5, 10); + c.fillAndStroke(); + + c.begin(); + c.rect(currH - pinSpacing * 0.25, h - 10, pinSpacing * 0.5, 10); + c.fillAndStroke(); + + if (startPin == 'e') + { + var currPinNum = pinsOne - pinCount + 1; + } + else + { + var currPinNum = 2 * pinsOne - pinCount + 1; + } + + if (pinLabelType == 'gen') + { + c.text(currH, 5, 0, 0, currPinNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (currPinNum - 1 < labelNames.length) + { + c.text(currH, 5, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + if (startPin == 'e') + { + var pc2 = pinsOne + pinCount; + } + else + { + var pc2 = pinCount; + } + + if (pinLabelType == 'gen') + { + c.text(currH, h - 5, 0, 0, pc2.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (pc2 - 1 < labelNames.length) + { + c.text(currH, h - 5, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + } + + } + + c.setShadow(false); + + c.begin(); + + switch(startPin) { + case 'e': + if (h > 40) + { + c.moveTo(w, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 0, w, h * 0.5 + 10); + } + break; + case 's': + if (w > 40) + { + c.moveTo(w * 0.5 - 10, h); + c.arcTo(12, 12, 0, 0, 1, w * 0.5 + 10, h); + } + break; + case 'w': + if (h > 40) + { + c.moveTo(0, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, 0, h * 0.5 + 10); + } + break; + default: + if (w > 40) + { + c.moveTo(w * 0.5 - 10, 0); + c.arcTo(12, 12, 0, 0, 0, w * 0.5 + 10, 0); + } + } + + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeElectricalDualInLineIC.prototype.cst.SHAPE_DUAL_INLINE_IC, mxShapeElectricalDualInLineIC); + +mxShapeElectricalDualInLineIC.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + var pinSpacing = parseFloat(mxUtils.getValue(this.style, 'pinSpacing', '20')); + var startPin = mxUtils.getValue(this.style, 'startPin', 'n'); + var pinCount = 1; + var currH = pinSpacing * 0.5; + var pinsOne = parseInt(h / pinSpacing); + + if (startPin == 'n' || startPin == 's') + { + while (pinCount * pinSpacing <= h) + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, currH)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, currH)); + currH = currH + pinSpacing; + pinCount++; + } + } + else + { + while (pinCount * pinSpacing <= w) + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, currH, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, currH, 0)); + currH = currH + pinSpacing; + pinCount++; + } + } + + return (constr); +} + +//********************************************************************************************************************************************************** +//Quad Flat Package IC +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeElectricalQFPIC(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeElectricalQFPIC, mxShape); + +mxShapeElectricalQFPIC.prototype.cst = { + SHAPE_QFP_IC : 'mxgraph.electrical.logic_gates.qfp_ic' +}; + +mxShapeElectricalQFPIC.prototype.customProperties = [ + {name: 'pinStyle', dispName: 'Pin Style', type: 'enum', defVal:'line', + enumList:[ + {val:'line', dispName:'Line'}, + {val:'square', dispName:'Square'} + ]}, + {name: 'startPin', dispName: 'Starting Pin', type: 'enum', defVal:'sw', + enumList:[ + {val:'sw', dispName:'SW'}, + {val:'nw', dispName:'NW'}, + {val:'ne', dispName:'NE'}, + {val:'se', dispName:'SE'} + ]}, + {name: 'pinSpacing', dispName: 'Pin Spacing', type: 'float', min:1, defVal:20}, + {name: 'pinLabelType', dispName: 'Pin Label Type', type: 'enum', defVal:'gen', + enumList:[ + {val:'gen', dispName:'Generated'}, + {val:'cust', dispName:'Custom'} + ]}, + {name: 'labelCount', dispName: 'Number of Labels', type: 'int', defVal: 40, dependentProps: ['labelNames']}, + {name: 'labelNames', dispName: 'Label Names', type: 'staticArr', subType: 'string', sizeProperty: 'labelCount', subDefVal: 'a'} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeElectricalQFPIC.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(15, 10); + c.lineTo(w - 15, 10); + c.lineTo(w - 10, 15); + c.lineTo(w - 10, h - 15); + c.lineTo(w - 15, h - 10); + c.lineTo(15, h - 10); + c.lineTo(10, h - 15); + c.lineTo(10, 15); + c.close(); + c.fillAndStroke(); + + var pinSpacing = parseFloat(mxUtils.getValue(this.style, 'pinSpacing', '20')); + var pinStyle = mxUtils.getValue(this.style, 'pinStyle', 'line'); + var pinLabelType = mxUtils.getValue(this.style, 'pinLabelType', 'gen'); + var labelNames = mxUtils.getValue(this.style, 'labelNames', '').toString().split(','); + var fontSize = parseFloat(mxUtils.getValue(this.style, 'fontSize', '12')); + var fontColor = mxUtils.getValue(this.style, 'fontColor', '#000000'); + c.setFontColor(fontColor); + var startPin = mxUtils.getValue(this.style, 'startPin', 'sw'); + + if (pinStyle == 'line') + { + c.setFontSize(fontSize * 0.8); + var pinCount = 1; + var currH = pinSpacing * 0.5 + 20; + + c.begin(); + + var pinsVOne = parseInt((h - pinSpacing - 40) / pinSpacing) + 1; + var pinsHOne = parseInt((w - pinSpacing - 40) / pinSpacing) + 1; + + while (currH <= h - pinSpacing * 0.5 - 20) + { + c.moveTo(0, currH); + c.lineTo(10, currH); + c.moveTo(w - 10, currH); + c.lineTo(w, currH); + + //west pins + switch(startPin) { + case 'nw': + var currPinNum = pinCount; + break; + case 'ne': + var currPinNum = pinsHOne + pinCount; + break; + case 'se': + var currPinNum = pinsVOne + pinsHOne + pinCount; + break; + default: + var currPinNum = pinsVOne + 2 * pinsHOne + pinCount; + } + + if (pinLabelType == 'gen') + { + c.text(20, currH, 0, 0, currPinNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (currPinNum - 1 < labelNames.length) + { + c.text(20, currH, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + //east pins + switch(startPin) { + case 'nw': + var pc2 = pinsHOne + 2 * pinsVOne - pinCount + 1; + break; + case 'ne': + var pc2 = 2 * pinsHOne + 2 * pinsVOne - pinCount + 1; + break; + case 'se': + var pc2 = pinsVOne - pinCount + 1; + break; + default: + var pc2 = pinsHOne + pinsVOne - pinCount + 1; + } + + if (pinLabelType == 'gen') + { + c.text(w - 20, currH, 0, 0, pc2.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (pc2 - 1 < labelNames.length) + { + c.text(w - 20, currH, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + + var pinCount = 1; + var currH = pinSpacing * 0.5 + 20; + + while (currH <= w - pinSpacing * 0.5 - 20) + { + c.moveTo(currH, 0); + c.lineTo(currH, 10); + c.moveTo(currH, h - 10); + c.lineTo(currH, h); + + //south pins + switch(startPin) { + case 'nw': + var currPinNum = pinsVOne + pinCount; + break; + case 'ne': + var currPinNum = pinsVOne + pinsHOne + pinCount; + break; + case 'se': + var currPinNum = 2 * pinsVOne + pinsHOne + pinCount; + break; + default: + var currPinNum = pinCount; + } + + if (pinLabelType == 'gen') + { + c.text(currH, h - 20, 0, 0, currPinNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (currPinNum - 1 < labelNames.length) + { + c.text(currH, h - 20, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + //north pins + switch(startPin) { + case 'nw': + var pc2 = 2 * pinsHOne + 2 * pinsVOne - pinCount + 1; + break; + case 'ne': + var pc2 = pinsHOne - pinCount + 1; + break; + case 'se': + var pc2 = pinsHOne + pinsVOne - pinCount + 1; + break; + default: + var pc2 = 2 * pinsHOne + pinsVOne - pinCount + 1; + } + + if (pinLabelType == 'gen') + { + c.text(currH, 20, 0, 0, pc2.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (pc2 - 1 < labelNames.length) + { + c.text(currH, 20, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + + c.stroke(); + } + else + { + c.setFontSize(fontSize * 0.5); + var pinCount = 1; + var currH = pinSpacing * 0.5 + 20; + var pinsVOne = parseInt((h - pinSpacing - 40) / pinSpacing) + 1; + var pinsHOne = parseInt((w - pinSpacing - 40) / pinSpacing) + 1; + + while (currH <= h - pinSpacing * 0.5 - 20) + { + c.begin(); + c.rect(0, currH - pinSpacing * 0.25, 10, pinSpacing * 0.5); + c.fillAndStroke(); + + c.begin(); + c.rect(w - 10, currH - pinSpacing * 0.25, 10, pinSpacing * 0.5); + c.fillAndStroke(); + + //west pins + switch(startPin) { + case 'nw': + var currPinNum = pinCount; + break; + case 'ne': + var currPinNum = pinsHOne + pinCount; + break; + case 'se': + var currPinNum = pinsVOne + pinsHOne + pinCount; + break; + default: + var currPinNum = pinsVOne + 2 * pinsHOne + pinCount; + } + + if (pinLabelType == 'gen') + { + c.text(5, currH + 1, 0, 0, currPinNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (currPinNum - 1 < labelNames.length) + { + c.text(5, currH + 1, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + //east pins + switch(startPin) { + case 'nw': + var pc2 = pinsHOne + 2 * pinsVOne - pinCount + 1; + break; + case 'ne': + var pc2 = 2 * pinsHOne + 2 * pinsVOne - pinCount + 1; + break; + case 'se': + var pc2 = pinsVOne - pinCount + 1; + break; + default: + var pc2 = pinsHOne + pinsVOne - pinCount + 1; + } + + if (pinLabelType == 'gen') + { + c.text(w - 5, currH + 1, 0, 0, pc2.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (pc2 - 1 < labelNames.length) + { + c.text(w - 5, currH + 1, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + + var pinCount = 1; + var currH = pinSpacing * 0.5 + 20; + + while (currH <= w - pinSpacing * 0.5 - 20) + { + c.begin(); + c.rect(currH - pinSpacing * 0.25, 0, pinSpacing * 0.5, 10); + c.fillAndStroke(); + + c.begin(); + c.rect(currH - pinSpacing * 0.25, h - 10, pinSpacing * 0.5, 10); + c.fillAndStroke(); + + //south pins + switch(startPin) { + case 'nw': + var currPinNum = pinsVOne + pinCount; + break; + case 'ne': + var currPinNum = pinsVOne + pinsHOne + pinCount; + break; + case 'se': + var currPinNum = 2 * pinsVOne + pinsHOne + pinCount; + break; + default: + var currPinNum = pinCount; + } + + if (pinLabelType == 'gen') + { + c.text(currH, h - 4, 0, 0, currPinNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (currPinNum - 1 < labelNames.length) + { + c.text(currH, h - 4, 0, 0, labelNames[currPinNum - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + //north pins + switch(startPin) { + case 'nw': + var pc2 = 2 * pinsHOne + 2 * pinsVOne - pinCount + 1; + break; + case 'ne': + var pc2 = pinsHOne - pinCount + 1; + break; + case 'se': + var pc2 = pinsHOne + pinsVOne - pinCount + 1; + break; + default: + var pc2 = 2 * pinsHOne + pinsVOne - pinCount + 1; + } + + if (pinLabelType == 'gen') + { + c.text(currH, 6, 0, 0, pc2.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else if (pc2 - 1 < labelNames.length) + { + c.text(currH, 6, 0, 0, labelNames[pc2 - 1].toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + currH = currH + pinSpacing; + pinCount++; + } + } + + c.setShadow(false); + + if (w > 40) + { + c.setFillColor(mxUtils.getValue(this.style, 'strokeColor', '#000000')); + + c.begin(); + + switch(startPin) { + case 'nw': + c.ellipse(15, 15, 10, 10); + break; + case 'ne': + c.ellipse(w - 25, 15, 10, 10); + break; + case 'se': + c.ellipse(w - 25, h - 25, 10, 10); + break; + default: + c.ellipse(15, h - 25, 10, 10); + } + + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeElectricalQFPIC.prototype.cst.SHAPE_QFP_IC, mxShapeElectricalQFPIC); + +mxShapeElectricalQFPIC.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + var pinSpacing = parseFloat(mxUtils.getValue(this.style, 'pinSpacing', '20')); + var pinCount = 1; + var currH = pinSpacing * 0.5 + 20; + + var pinsOne = parseInt(h / pinSpacing); + + while (currH <= h - pinSpacing * 0.5 - 20) + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, currH)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, currH)); + currH = currH + pinSpacing; + } + + var pinCount = 1; + var currH = pinSpacing * 0.5 + 20; + + while (currH <= w - pinSpacing * 0.5 - 20) + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, currH, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, currH, 0)); + currH = currH + pinSpacing; + } + + + return (constr); +} + +//********************************************************************************************************************************************************** +//Mux +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeElectricalMux(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeElectricalMux, mxShape); + +mxShapeElectricalMux.prototype.cst = { + SHAPE_MUX : 'mxgraph.electrical.abstract.mux2' +}; + +mxShapeElectricalMux.prototype.customProperties = [ + {name: 'operation', dispName: 'Operation', type: 'enum', defVal:'mux', + enumList:[ + {val:'mux', dispName:'Mux'}, + {val:'demux', dispName:'Demux'} + ]}, + {name: 'selectorPins', dispName: 'Selector Pins', type: 'int', min:1, max:8, defVal:1}, +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeElectricalMux.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var selectorPins = parseInt(mxUtils.getValue(this.style, 'selectorPins', '1')); + var operation = mxUtils.getValue(this.style, 'operation', 'mux'); + var fontSize = parseFloat(mxUtils.getValue(this.style, 'fontSize', '12')); + c.setFontSize(fontSize * 0.5); + var fontColor = mxUtils.getValue(this.style, 'fontColor', '#000000'); + c.setFontColor(fontColor); + var dir = mxUtils.getValue(this.style, 'direction', 'east'); + var txtRot = 0; + + switch(dir) + { + case 'south' : + txtRot = 270; + break; + case 'west' : + txtRot = 180; + break; + case 'north' : + txtRot = 90; + break; + } + + switch(operation) + { + case 'demux': + c.begin(); + c.moveTo(w - 10, 0); + c.lineTo(10, h * 0.1); + c.lineTo(10, h * 0.9 - 10); + c.lineTo(w - 10, h - 10); + c.close(); + c.fillAndStroke(); + break; + default: + c.begin(); + c.moveTo(10, 0); + c.lineTo(w - 10, h * 0.1); + c.lineTo(w - 10, h * 0.9 - 10); + c.lineTo(10, h - 10); + c.close(); + c.fillAndStroke(); + }; + + var numInputs = 1; + var numOutputs = 1; + + if (operation == 'mux') + { + numInputs = Math.pow(2, selectorPins); + var spacing = (h - 16) / numInputs; + } + else + { + numOutputs = Math.pow(2, selectorPins); + var spacing = (h - 16) / numOutputs; + } + + var currH = 3 + spacing * 0.5; + + c.begin(); + + if (numInputs == 1) + { + c.moveTo(0, (h - 10) * 0.5); + c.lineTo(10, (h - 10) * 0.5); + } + else + { + for (var i = 0; i < numInputs; i++) + { + c.moveTo(0, currH); + c.lineTo(10, currH); + c.text(14, currH + 1, 0, 0, '' + i.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, txtRot); + currH = currH + spacing; + } + } + + if (numOutputs == 1) + { + c.moveTo(w - 10, (h - 10) * 0.5); + c.lineTo(w, (h - 10) * 0.5); + } + else + { + for (var i = 0; i < numOutputs; i++) + { + c.moveTo(w - 10, currH); + c.lineTo(w, currH); + c.text(w - 14, currH + 1, 0, 0, '' + i.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, txtRot); + currH = currH + spacing; + } + } + + var spacing = (w - 20) / selectorPins; + var currW = 10 + spacing * 0.5; + + for (var i = 0; i < selectorPins; i++) + { + if (operation == 'mux') + { + c.moveTo(currW, h - 10 - (currW - 10) / (w - 20) * h * 0.1); + } + else + { + c.moveTo(currW, h - 10 - (w - currW - 10) / (w - 20) * h * 0.1); + } + + c.lineTo(currW, h); + + c.text(currW + 5, h -4, 0, 0, 'S' + (selectorPins - i - 1).toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, txtRot); + currW = currW + spacing; + } + + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeElectricalMux.prototype.cst.SHAPE_MUX, mxShapeElectricalMux); + +mxShapeElectricalMux.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var pinRange = (h - 16) / h; + var selectorPins = parseInt(mxUtils.getValue(this.style, 'selectorPins', '1')); + var operation = mxUtils.getValue(this.style, 'operation', 'mux'); + var dir = mxUtils.getValue(this.style, 'direction', 'east'); + + var numInputs = 1; + var numOutputs = 1; + + if (operation == 'mux') + { + numInputs = Math.pow(2, selectorPins); + var spacing = pinRange / numInputs; + } + else + { + numOutputs = Math.pow(2, selectorPins); + var spacing = pinRange / numOutputs; + } + + var currH = spacing * 0.5; + + if (numInputs == 1) + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5 * (h - 10) / h), false, 0, 0)); + } + else + { + for (var i = 0; i < numInputs; i++) + { + constr.push(new mxConnectionConstraint(new mxPoint(0, currH), false, null, 0, 3)); + currH = currH + spacing; + } + } + + if (numOutputs == 1) + { + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, 0, -5)); + } + else + { + for (var i = 0; i < numOutputs; i++) + { + constr.push(new mxConnectionConstraint(new mxPoint(1, currH), false, null, 0, 3)); + currH = currH + spacing; + } + } + + var spacing = (w - 20) / (w * selectorPins); + var currW = spacing * 0.5; + + for (var i = 0; i < selectorPins; i++) + { + constr.push(new mxConnectionConstraint(new mxPoint(currW, 1), false, null, 10, 0)); + currW = currW + spacing; + } + + return (constr); +} + +//********************************************************************************************************************************************************** +//Battery stack +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeElectricalBatteryStack(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeElectricalBatteryStack, mxShape); + +mxShapeElectricalBatteryStack.prototype.cst = { + SHAPE_BATTERY_STACK : 'mxgraph.electrical.miscellaneous.batteryStack' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeElectricalBatteryStack.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var bw = h * 0.3; + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var dashed = mxUtils.getValue(this.style, mxConstants.STYLE_DASHED, '0'); + + var bNum = Math.floor((w - 20) / bw); + var startX = (w - bNum * bw) * 0.5; + + if (bNum > 0) + { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(startX + bw * 0.2, h * 0.5); + c.moveTo(w - startX - bw * 0.2, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + + var currX = startX; + c.setFillColor(strokeColor); + + for (var i = 0; i < bNum; i++) + { + + c.rect(currX + bw * 0.2, h * 0.25, bw * 0.2, h * 0.5); + c.fillAndStroke(); + + c.begin(); + c.moveTo(currX + bw * 0.8, 0); + c.lineTo(currX + bw * 0.8, h); + c.stroke(); + + if (i > 0) + { + c.setDashed('1'); + c.begin(); + c.moveTo(currX - bw * 0.2, h * 0.5); + c.lineTo(currX + bw * 0.2, h * 0.5); + c.stroke(); + c.setDashed(dashed); + } + + currX = currX + bw; + } + } +}; + +mxCellRenderer.registerShape(mxShapeElectricalBatteryStack.prototype.cst.SHAPE_BATTERY_STACK, mxShapeElectricalBatteryStack); + +mxShapeElectricalBatteryStack.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true) + ]; diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxFloorplan.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxFloorplan.js new file mode 100644 index 0000000000000..898ca0957bd72 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxFloorplan.js @@ -0,0 +1,763 @@ +/** + * $Id: mxFloorplan.js,v 1.3 2014/02/17 17:05:39 mate Exp $ + * Copyright (c) 2006-2014, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Wall +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxFloorplanWall(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxFloorplanWall, mxShape); + +mxFloorplanWall.prototype.cst = { + WALL : 'mxgraph.floorplan.wall', + WALL_THICKNESS : "wallThickness" +}; + +mxFloorplanWall.prototype.customProperties = [ + {name:'wallThickness', dispName:'Thickness', type:'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxFloorplanWall.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanWall.prototype.background = function(c, x, y, w, h) +{ + var wallTh = parseFloat(mxUtils.getValue(this.style, mxFloorplanWall.prototype.cst.WALL_THICKNESS, '10')); + c.rect(0, h * 0.5 - wallTh * 0.5, w, wallTh); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanWall.prototype.cst.WALL, mxFloorplanWall); + +//********************************************************************************************************************************************************** +//Wall Corner +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxFloorplanWallCorner(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxFloorplanWallCorner, mxShape); + +mxFloorplanWallCorner.prototype.cst = { + WALL_CORNER : 'mxgraph.floorplan.wallCorner', + WALL_THICKNESS : "wallThickness" +}; + +mxFloorplanWallCorner.prototype.customProperties = [ + {name:'wallThickness', dispName:'Thickness', type:'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxFloorplanWallCorner.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanWallCorner.prototype.background = function(c, x, y, w, h) +{ + var wallTh = parseFloat(mxUtils.getValue(this.style, mxFloorplanWallCorner.prototype.cst.WALL_THICKNESS, '10')); + + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, wallTh); + c.lineTo(wallTh, wallTh); + c.lineTo(wallTh, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanWallCorner.prototype.cst.WALL_CORNER, mxFloorplanWallCorner); + +//********************************************************************************************************************************************************** +//Wall U +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxFloorplanWallU(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxFloorplanWallU, mxShape); + +mxFloorplanWallU.prototype.cst = { + WALL_U : 'mxgraph.floorplan.wallU', + WALL_THICKNESS : "wallThickness" +}; + +mxFloorplanWallU.prototype.customProperties = [ + {name:'wallThickness', dispName:'Thickness', type:'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxFloorplanWallU.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanWallU.prototype.background = function(c, x, y, w, h) +{ + var wallTh = parseFloat(mxUtils.getValue(this.style, mxFloorplanWallU.prototype.cst.WALL_THICKNESS, '10')); + + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(w - wallTh, h); + c.lineTo(w - wallTh, wallTh); + c.lineTo(wallTh, wallTh); + c.lineTo(wallTh, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanWallU.prototype.cst.WALL_U, mxFloorplanWallU); + +//********************************************************************************************************************************************************** +//Room +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxFloorplanRoom(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxFloorplanRoom, mxShape); + +mxFloorplanRoom.prototype.cst = { + ROOM : 'mxgraph.floorplan.room', + WALL_THICKNESS : "wallThickness" +}; + +mxFloorplanRoom.prototype.customProperties = [ + {name:'wallThickness', dispName:'Thickness', type:'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxFloorplanRoom.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanRoom.prototype.background = function(c, x, y, w, h) +{ + var wallTh = parseFloat(mxUtils.getValue(this.style, mxFloorplanRoom.prototype.cst.WALL_THICKNESS, '10')); + + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.close(); + c.moveTo(wallTh, wallTh); + c.lineTo(wallTh, h - wallTh); + c.lineTo(w - wallTh, h - wallTh); + c.lineTo(w - wallTh, wallTh); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanRoom.prototype.cst.ROOM, mxFloorplanRoom); + +//********************************************************************************************************************************************************** +//Window +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxFloorplanWindow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxFloorplanWindow, mxShape); + +mxFloorplanWindow.prototype.cst = { + WINDOW : 'mxgraph.floorplan.window', + WALL_THICKNESS : "wallThickness" +}; + +mxFloorplanWindow.prototype.customProperties = [ + {name:'wallThickness', dispName:'Thickness', type:'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxFloorplanWindow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanWindow.prototype.background = function(c, x, y, w, h) +{ + var wallTh = parseFloat(mxUtils.getValue(this.style, mxFloorplanWindow.prototype.cst.WALL_THICKNESS, '10')); + c.rect(0, h * 0.5 - wallTh * 0.5, w, wallTh); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanWindow.prototype.cst.WINDOW, mxFloorplanWindow); + +//********************************************************************************************************************************************************** +//Dimension +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxFloorplanDimension(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxFloorplanDimension, mxShape); + +mxFloorplanDimension.prototype.cst = { + DIMENSION : 'mxgraph.floorplan.dimension' +}; + +mxFloorplanDimension.prototype.customProperties = [ + {name:'wallThickness', dispName:'Thickness', type:'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxFloorplanDimension.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanDimension.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 20); + c.lineTo(w, 20); + c.moveTo(10, 15); + c.lineTo(0, 20); + c.lineTo(10, 25); + c.moveTo(w - 10, 15); + c.lineTo(w, 20); + c.lineTo(w - 10, 25); + c.moveTo(0, 15); + c.lineTo(0, h); + c.moveTo(w, 15); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanDimension.prototype.cst.DIMENSION, mxFloorplanDimension); + +//********************************************************************************************************************************************************** +//Dimension Bottom +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxFloorplanDimensionBottom(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxFloorplanDimensionBottom, mxShape); + +mxFloorplanDimensionBottom.prototype.cst = { + DIMENSION : 'mxgraph.floorplan.dimensionBottom' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxFloorplanDimensionBottom.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanDimensionBottom.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, h - 20); + c.lineTo(w, h - 20); + c.moveTo(10, h - 15); + c.lineTo(0, h - 20); + c.lineTo(10, h - 25); + c.moveTo(w - 10, h - 15); + c.lineTo(w, h - 20); + c.lineTo(w - 10, h - 25); + c.moveTo(0, h - 15); + c.lineTo(0, 0); + c.moveTo(w, h - 15); + c.lineTo(w, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanDimensionBottom.prototype.cst.DIMENSION, mxFloorplanDimensionBottom); + +//********************************************************************************************************************************************************** +//Stairs +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxFloorplanStairs(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxFloorplanStairs, mxShape); + +mxFloorplanStairs.prototype.cst = { + STAIRS : 'mxgraph.floorplan.stairs' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxFloorplanStairs.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var minW = Math.max(w, 50); + this.background(c, x, y, minW, h); +}; + +mxFloorplanStairs.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); + + var step = 25; + c.setShadow(false); + + c.begin(); + + for (var i = 25; i < w; i = i + step) + { + c.moveTo(i, 0); + c.lineTo(i, h); + } + + c.stroke(); + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.moveTo(w - step, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - step, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanStairs.prototype.cst.STAIRS, mxFloorplanStairs); + +////********************************************************************************************************************************************************** +////Stairs Double +////********************************************************************************************************************************************************** +///** +//* Extends mxShape. +//*/ +//function mxFloorplanStairsRest(bounds, fill, stroke, strokewidth) +//{ +// mxShape.call(this); +// this.bounds = bounds; +// this.fill = fill; +// this.stroke = stroke; +// this.strokewidth = (strokewidth != null) ? strokewidth : 1; +//}; +// +///** +//* Extends mxShape. +//*/ +//mxUtils.extend(mxFloorplanStairsRest, mxShape); +// +//mxFloorplanStairsRest.prototype.cst = { +// STAIRS : 'mxgraph.floorplan.stairsRest' +//}; +// +// +// +///** +//* Function: paintVertexShape +//* +//* Paints the vertex shape. +//*/ +//mxFloorplanStairsRest.prototype.paintVertexShape = function(c, x, y, w, h) +//{ +// c.translate(x, y); +// var minW = Math.max(w, 50, h); +// var minH = Math.min(w, h); +// this.background(c, x, y, minW, h); +//}; +// +//mxFloorplanStairsRest.prototype.background = function(c, x, y, w, h) +//{ +// c.rect(0, 0, w, h); +// c.fillAndStroke(); +// +// var step = 25; +// c.setShadow(false); +// +// c.begin(); +// +// for (var i = 25; i < w - h * 0.5; i = i + step) +// { +// c.moveTo(i, 0); +// c.lineTo(i, h); +// } +// +// c.stroke(); +// +// c.begin(); +// c.moveTo(0, h * 0.5); +// c.lineTo(w, h * 0.5); +// +// c.moveTo(w, 0); +// c.lineTo(w - h * 0.5, h * 0.5); +// c.lineTo(w, h); +// +// c.moveTo(w - h * 0.5, 0); +// c.lineTo(w - h * 0.5, h); +// +// c.moveTo(0, h * 0.5); +// c.lineTo(w, h * 0.5); +// c.stroke(); +//}; +// +//mxCellRenderer.registerShape(mxFloorplanStairsRest.prototype.cst.STAIRS, mxFloorplanStairsRest); + +//********************************************************************************************************************************************************** +//Stairs +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxFloorplanStairsRest(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxFloorplanStairsRest, mxShape); + +mxFloorplanStairsRest.prototype.cst = { + STAIRS : 'mxgraph.floorplan.stairsRest' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxFloorplanStairsRest.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var minW = Math.max(w, 50, h); + var minH = Math.min(w, h); + this.background(c, x, y, minW, h); +}; + +mxFloorplanStairsRest.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); + + var step = 25; + c.setShadow(false); + + c.begin(); + + for (var i = 25; i < w - h * 0.5; i = i + step) + { + c.moveTo(i, 0); + c.lineTo(i, h); + } + + c.stroke(); + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + + c.moveTo(w, 0); + c.lineTo(w - h * 0.5, h * 0.5); + c.lineTo(w, h); + + c.moveTo(w - h * 0.5, 0); + c.lineTo(w - h * 0.5, h); + + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanStairsRest.prototype.cst.STAIRS, mxFloorplanStairsRest); + +//********************************************************************************************************************************************************** +//Door, Left +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxFloorplanDoorLeft(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxFloorplanDoorLeft, mxShape); + +mxFloorplanDoorLeft.prototype.cst = { + DOOR_LEFT : 'mxgraph.floorplan.doorLeft' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxFloorplanDoorLeft.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanDoorLeft.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, 5); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w, 5); + c.arcTo(w, w, 0, 0, 1, 0, 5 + w); + c.lineTo(0, 5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanDoorLeft.prototype.cst.DOOR_LEFT, mxFloorplanDoorLeft); + +//********************************************************************************************************************************************************** +//Door, Right +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxFloorplanDoorRight(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxFloorplanDoorRight, mxShape); + +mxFloorplanDoorRight.prototype.cst = { + DOOR_RIGHT : 'mxgraph.floorplan.doorRight' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxFloorplanDoorRight.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanDoorRight.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, 5); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, 5); + c.arcTo(w, w, 0, 0, 0, w, 5 + w); + c.lineTo(w, 5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanDoorRight.prototype.cst.DOOR_RIGHT, mxFloorplanDoorRight); + +//********************************************************************************************************************************************************** +//Door, Double +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxFloorplanDoorDouble(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxFloorplanDoorDouble, mxShape); + +mxFloorplanDoorDouble.prototype.cst = { + DOOR_DOUBLE : 'mxgraph.floorplan.doorDouble' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxFloorplanDoorDouble.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxFloorplanDoorDouble.prototype.background = function(c, x, y, w, h) +{ + var halfW = w * 0.5; + c.rect(0, 0, w, 5); + c.fillAndStroke(); + + c.begin(); + c.moveTo(halfW, 0); + c.lineTo(halfW, 5); + c.moveTo(halfW, 5); + c.arcTo(halfW, halfW, 0, 0, 1, 0, 5 + halfW); + c.lineTo(0, 5); + c.moveTo(halfW, 5); + c.arcTo(halfW, halfW, 0, 0, 0, w, 5 + halfW); + c.lineTo(w, 5); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxFloorplanDoorDouble.prototype.cst.DOOR_DOUBLE, mxFloorplanDoorDouble); diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxFlowchart.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxFlowchart.js new file mode 100644 index 0000000000000..07a2ea5793bba --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxFlowchart.js @@ -0,0 +1,77 @@ +/** + * $Id: mxFlowchart.js,v 1.5 2016/04/1 12:32:06 mate Exp $ + * Copyright (c) 2006-2018, JGraph Ltd + */ +//********************************************************************************************************************************************************** +// Document 2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeFlowchartDocument2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.size = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeFlowchartDocument2, mxActor); + +mxShapeFlowchartDocument2.prototype.cst = {DOCUMENT2 : 'mxgraph.flowchart.document2'}; + +mxShapeFlowchartDocument2.prototype.customProperties = [ + {name: 'size', dispName: 'Wave Size', type: 'float', min:0, max:1, defVal:0.25}, +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeFlowchartDocument2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = h * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))); + var fy = 1.4; + var r = 5; + + c.begin(); + c.moveTo(w - r, 0); + c.arcTo(r, r, 0, 0, 1, w, r); + c.lineTo(w, h - dy / 2); + c.quadTo(w * 3 / 4, h - dy * fy, w / 2, h - dy / 2); + c.quadTo(w / 4, h - dy * (1 - fy), 0, h - dy / 2); + c.lineTo(0, dy / 2); + c.lineTo(0, r); + c.arcTo(r, r, 0, 0, 1, r, 0); + c.close(); + c.fillAndStroke(); + +}; + +mxCellRenderer.registerShape(mxShapeFlowchartDocument2.prototype.cst.DOCUMENT2, mxShapeFlowchartDocument2); + +mxShapeFlowchartDocument2.prototype.constraints = null; + +Graph.handleFactory[mxShapeFlowchartDocument2.prototype.cst.DOCUMENT2] = function(state) +{ + var handles = [Graph.createHandle(state, ['size'], function(bounds) + { + var size = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'size', this.size)))); + + return new mxPoint(bounds.x + 3 * bounds.width / 4, bounds.y + (1 - size) * bounds.height); + + }, function(bounds, pt) + { + this.state.style['size'] = Math.max(0, Math.min(1, (bounds.y + bounds.height - pt.y) / bounds.height)); + })]; + + return handles; +}; diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxGCP2.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxGCP2.js new file mode 100644 index 0000000000000..48b640876e0f4 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxGCP2.js @@ -0,0 +1,370 @@ +/** + * $Id: mxGCP2.js,v 1.0 2018/08/21 13:05:39 mate Exp $ + * Copyright (c) 2006-2018, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//double rect +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeGCP2DoubleRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeGCP2DoubleRect, mxShape); + +mxShapeGCP2DoubleRect.prototype.cst = { + SHAPE_DOUBLE_RECT : 'mxgraph.gcp2.doubleRect' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeGCP2DoubleRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var dx = 8; + var dy = 8; + + w = w - dx; + h = h - dy; + + c.translate(x, y); + c.begin(); + c.roundrect(dx, dy, w , h, 1, 1); + c.fillAndStroke(); + c.roundrect(0, 0, w, h, 1, 1); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeGCP2DoubleRect.prototype.cst.SHAPE_DOUBLE_RECT, mxShapeGCP2DoubleRect); +mxShapeGCP2DoubleRect.prototype.constraints = mxRectangleShape.prototype.constraints; + +//********************************************************************************************************************************************************** +//hexagonal icon +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeGCP2HexIcon(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeGCP2HexIcon, mxShape); + +mxShapeGCP2HexIcon.prototype.cst = { + HEX_ICON : 'mxgraph.gcp2.hexIcon' +}; + +mxShapeGCP2HexIcon.prototype.customProperties = [ + {name: 'instNum', dispName: 'Number of instances', type: 'int', min: 0, defVal: 0}, + {name: 'prType', dispName: 'Instance Type', defVal: 'standard', type: 'enum', + enumList: [{val: 'standard', dispName: 'Standard'}, + {val: 'dynamic', dispName: 'Dynamic'}, + {val: 'multiple', dispName: 'Multiple'}, + {val: 'shared', dispName: 'Shared'}, + {val: 'replica', dispName: 'Replica'}, + {val: 'dynamic2', dispName: 'Dynamic 2'}, + {val: 'dynamic3', dispName: 'Dynamic 3'}, + {val: 'highmem', dispName: 'High-Mem'}, + {val: 'highcomp', dispName: 'High-Comp'}, + {val: 'backend', dispName: 'Backend'}, + {val: 'input', dispName: 'Input'}]}, + {name: 'prIcon', dispName: 'Instance Icon', defVal: 'compute_engine', type: 'enum', + enumList: [{val: 'compute_engine', dispName: 'Compute Engine'}, + {val: 'gpu', dispName: 'GPU'}, + {val: 'app_engine', dispName: 'App Engine'}, + {val: 'cloud_functions', dispName: 'Cloud Functions'}, + {val: 'container_engine', dispName: 'Kubernetes Engine'}, + {val: 'container_optimized_os', dispName: 'Container-Optimized OS'}, + {val: 'api_analytics', dispName: 'API Analytics'}, + {val: 'apigee_sense', dispName: 'Apigee Sense'}, + {val: 'api_monetization', dispName: 'API Monetization'}, + {val: 'cloud_endpoints', dispName: 'Cloud Endpoints'}, + {val: 'apigee_api_platform', dispName: 'Apigee API Platform'}, + {val: 'developer_portal', dispName: 'Developer Portal'}, + {val: 'cloud_iam', dispName: 'Cloud IAM'}, + {val: 'beyondcorp', dispName: 'BeyondCorp'}, + {val: 'cloud_iam', dispName: 'Cloud Resource Manager'}, + {val: 'data_loss_prevention_api', dispName: 'Data Loss Prevention API'}, + {val: 'cloud_security_scanner', dispName: 'Cloud Security Scanner'}, + {val: 'key_management_service', dispName: 'Key Management Service'}, + {val: 'identity_aware_proxy', dispName: 'Identity-Aware Proxy'}, + {val: 'security_key_enforcement', dispName: 'Security Key Enforcement'}, + {val: 'bigquery', dispName: 'BigQuery'}, + {val: 'cloud_datalab', dispName: 'Cloud Datalab'}, + {val: 'cloud_dataflow', dispName: 'Cloud Dataflow'}, + {val: 'cloud_pubsub', dispName: 'Cloud Pub/Sub'}, + {val: 'cloud_dataproc', dispName: 'Cloud Dataproc'}, + {val: 'genomics', dispName: 'Genomics'}, + {val: 'cloud_dataprep', dispName: 'Cloud Dataprep'}, + {val: 'data_studio', dispName: 'Data Studio'}, + {val: 'transfer_appliance', dispName: 'Transfer Appliance'}, + {val: 'cloud_machine_learning', dispName: 'Cloud Machine Learning'}, + {val: 'cloud_natural_language_api', dispName: 'Cloud Natural Language API'}, + {val: 'cloud_vision_api', dispName: 'Vision API'}, + {val: 'cloud_translation_api', dispName: 'Translation API'}, + {val: 'cloud_speech_api', dispName: 'Speech API'}, + {val: 'cloud_jobs_api', dispName: 'Jobs API'}, + {val: 'cloud_video_intelligence_api', dispName: 'Cloud Video Intelligence API'}, + {val: 'advanced_solutions_lab', dispName: 'Advanced Solutions Lab'}, + {val: 'cloud_iot_core', dispName: 'Cloud IoT Core'}, + {val: 'cloud_storage', dispName: 'Cloud Storage'}, + {val: 'cloud_sql', dispName: 'Cloud SQL'}, + {val: 'cloud_bigtable', dispName: 'Cloud Bigtable'}, + {val: 'cloud_spanner', dispName: 'Cloud Spanner'}, + {val: 'cloud_datastore', dispName: 'Cloud Datastore'}, + {val: 'persistent_disk', dispName: 'Persistent Disk'}, + {val: 'cloud_memorystore', dispName: 'Cloud Memorystore'}, + {val: 'cloud_filestore', dispName: 'Cloud Filestore'}, + {val: 'stackdriver', dispName: 'Stackdriver'}, + {val: 'cloud_deployment_manager', dispName: 'Monitoring'}, + {val: 'cloud_deployment_manager', dispName: 'Deployment Manager'}, + {val: 'logging', dispName: 'Logging'}, + {val: 'placeholder', dispName: 'Cloud Console'}, + {val: 'error_reporting', dispName: 'Error Reporting'}, + {val: 'placeholder', dispName: 'Cloud Shell'}, + {val: 'trace', dispName: 'Trace'}, + {val: 'placeholder', dispName: 'Cloud Mobile App'}, + {val: 'profiler', dispName: 'Profiler'}, + {val: 'placeholder', dispName: 'Billing API'}, + {val: 'cloud_apis', dispName: 'Cloud APIs'}, + {val: 'virtual_private_cloud', dispName: 'Virtual Private Cloud'}, + {val: 'dedicated_interconnect', dispName: 'Dedicated Interconnect'}, + {val: 'cloud_load_balancing', dispName: 'Cloud Load Balancing'}, + {val: 'cloud_dns', dispName: 'Cloud DNS'}, + {val: 'cloud_cdn', dispName: 'Cloud CDN'}, + {val: 'cloud_network', dispName: 'Cloud Network'}, + {val: 'cloud_external_ip_addresses', dispName: 'Cloud External IP Addresses'}, + {val: 'cloud_routes', dispName: 'Cloud Routes'}, + {val: 'cloud_firewall_rules', dispName: 'Cloud Firewall Rules'}, + {val: 'cloud_vpn', dispName: 'Cloud VPN'}, + {val: 'cloud_router', dispName: 'Cloud Router'}, + {val: 'cloud_armor', dispName: 'Cloud Armor'}, + {val: 'standard_network_tier', dispName: 'Standard Network Tier'}, + {val: 'premium_network_tier', dispName: 'Premium Network Tier'}, + {val: 'partner_interconnect', dispName: 'Partner Interconnect'}, + {val: 'placeholder', dispName: 'Cloud SDK'}, + {val: 'container_builder', dispName: 'Cloud Build'}, + {val: 'cloud_tools_for_powershell', dispName: 'Cloud Tools for Visual Studio'}, + {val: 'placeholder', dispName: 'Cloud Source Repositories'}, + {val: 'placeholder', dispName: 'Maven App Engine Plugin'}, + {val: 'placeholder', dispName: 'Cloud Tools for Eclipse'}, + {val: 'placeholder', dispName: 'Cloud Tools for IntelliJ'}, + {val: 'placeholder', dispName: 'Cloud Test Lab'}, + {val: 'cloud_tools_for_powershell', dispName: 'Cloud Tools for PowerShell'}, + {val: 'cloud_tools_for_powershell', dispName: 'IDE Plugins'}, + {val: 'container_registry', dispName: 'Container Registry'}, + {val: 'cloud_iot_edge', dispName: 'Cloud IoT Edge'}, + {val: 'cloud_firestore', dispName: 'Cloud Firestore'}, + {val: 'cloud_run', dispName: 'Cloud Run'}, + {val: 'gke_on_prem', dispName: 'GKE-on-Prem'}, + {val: 'cloud_data_catalog', dispName: 'Cloud Data Catalog'}, + {val: 'cloud_data_fusion', dispName: 'Cloud Data Fusion'}, + {val: 'ai_hub', dispName: 'AI Hub'}, + {val: 'automl_video_intelligence', dispName: 'AutoML Video Intelligence'}, + {val: 'automl_natural_language', dispName: 'AutoML Natural Language'}, + {val: 'automl_tables', dispName: 'AutoML Tables'}, + {val: 'automl_translation', dispName: 'AutoML Translation'}, + {val: 'automl_vision', dispName: 'AutoML Vision'}, + {val: 'recommendations_ai', dispName: 'Recommendations AI'}, + {val: 'cloud_inference_api', dispName: 'Cloud Inference API'}, + {val: 'cloud_service_mesh', dispName: 'Cloud Service Mesh'}, + {val: 'cloud_nat', dispName: 'Cloud NAT'}, + {val: 'traffic_director', dispName: 'Traffic Director'}, + {val: 'cloud_test_lab', dispName: 'Cloud Test Lab'}, + {val: 'cloud_code', dispName: 'Cloud Code'}, + {val: 'cloud_tasks', dispName: 'Cloud Tasks'}, + {val: 'placeholder', dispName: 'Gradle App Engine Plugin'}]} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeGCP2HexIcon.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var prIcon = mxUtils.getValue(this.state.style, 'prIcon', 'compute_engine'); + var prType = mxUtils.getValue(this.state.style, 'prType', ''); + var instNum = parseInt(mxUtils.getValue(this.state.style, 'instNum', 0)); + var fillColor = mxUtils.getValue(this.state.style, 'fillColor', '#ffffff'); + var opacity = mxUtils.getValue(this.state.style, 'opacity', '100'); + var strokeColor = mxUtils.getValue(this.state.style, 'strokeColor', 'none'); + var strokeWidth = mxUtils.getValue(this.state.style, 'strokeWidth', 1); + var iconSize = Math.min(w, h); + + switch(prType) + { + case 'dynamic': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_2'); + c.setAlpha(opacity * 0.5 / 100); + c.setStrokeColor('none'); + bgSt1.drawShape(c, this, w * 0.21, h * 0.12, w * 0.58, h * 0.76); + break; + case 'multiple': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_2'); + c.setAlpha(opacity * 0.5 / 100); + c.setStrokeColor('none'); + bgSt1.drawShape(c, this, w * 0.21, h * 0.12, w * 0.58, h * 0.76); + var bgSt2 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_3'); + c.setAlpha(opacity * 0.7 / 100); + c.setStrokeColor('none'); + bgSt2.drawShape(c, this, w * 0.17, h * 0.13, w * 0.66, h * 0.74); + break; + case 'shared': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_1'); + this.style[mxConstants.STYLE_STROKEWIDTH] = iconSize * 0.038; + c.setAlpha(opacity * 0.4 / 100); + c.setStrokeColor(fillColor); + c.setFillColor('none'); + bgSt1.drawShape(c, this, w * 0.02, h * 0, w * 0.96, h); + var bgSt2 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_2'); + c.setAlpha(opacity * 0.7 / 100); + bgSt2.drawShape(c, this, w * 0.14, h * 0.01, w * 0.72, h * 0.98); + c.setAlpha(opacity / 100); + c.setFillColor('#ffffff'); + bgSt1.drawShape(c, this, w * 0.13, h * 0.12, w * 0.74, h * 0.76); + this.style[mxConstants.STYLE_STROKEWIDTH] = strokeWidth; + break; + case 'replica': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_1'); + this.style[mxConstants.STYLE_STROKEWIDTH] = iconSize * 0.038; + c.setAlpha(opacity * 0.4 / 100); + c.setStrokeColor(fillColor); + c.setFillColor('none'); + bgSt1.drawShape(c, this, w * 0.02, h * 0, w * 0.96, h); + c.setAlpha(opacity * 0.7 / 100); + bgSt1.drawShape(c, this, w * 0.075, h * 0.06, w * 0.85, h * 0.88); + c.setAlpha(opacity / 100); + c.setFillColor('#ffffff'); + bgSt1.drawShape(c, this, w * 0.13, h * 0.12, w * 0.74, h * 0.76); + this.style[mxConstants.STYLE_STROKEWIDTH] = strokeWidth; + break; + case 'dynamic2': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_2'); + c.setAlpha(opacity * 0.5 / 100); + c.setStrokeColor('none'); + bgSt1.drawShape(c, this, w * 0.14, h * 0.01, w * 0.72, h * 0.98); + var bgSt2 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_1'); + this.style[mxConstants.STYLE_STROKEWIDTH] = iconSize * 0.01; + c.setStrokeColor(fillColor); + c.setAlpha(opacity / 100); + c.setFillColor('#ffffff'); + bgSt2.drawShape(c, this, w * 0.13, h * 0.12, w * 0.74, h * 0.76); + this.style[mxConstants.STYLE_STROKEWIDTH] = strokeWidth; + break; + case 'dynamic3': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_2'); + c.setStrokeColor('none'); + bgSt1.drawShape(c, this, w * 0.14, h * 0.01, w * 0.72, h * 0.98); + var bgSt2 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_1'); + this.style[mxConstants.STYLE_STROKEWIDTH] = iconSize * 0.01; + c.setStrokeColor(fillColor); + c.setAlpha(opacity / 100); + c.setFillColor('#ffffff'); + bgSt2.drawShape(c, this, w * 0.13, h * 0.12, w * 0.74, h * 0.76); + this.style[mxConstants.STYLE_STROKEWIDTH] = strokeWidth; + break; + case 'highmem': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_highmem'); + c.setAlpha(opacity * 0.5 / 100); + c.setStrokeColor('none'); + bgSt1.drawShape(c, this, 0, h * 0.56, w, h * 0.28); + break; + case 'highcomp': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_highcomp'); + c.setAlpha(opacity * 0.5 / 100); + c.setStrokeColor('none'); + bgSt1.drawShape(c, this, 0, h * 0.16, w, h * 0.28); + break; + case 'backend': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_1'); + c.setFillColor('#FCC64D'); + bgSt1.drawShape(c, this, w * 0.12, h * 0.11, w * 0.76, h * 0.78); + break; + case 'input': + var bgSt1 = mxStencilRegistry.getStencil('mxgraph.gcp2.outline_blank_1'); + c.setFillColor('#A5DA40'); + bgSt1.drawShape(c, this, w * 0.12, h * 0.11, w * 0.76, h * 0.78); + break; + case 'standard': + default: + break; + } + + c.setAlpha(opacity / 100); + var stencil = mxStencilRegistry.getStencil('mxgraph.gcp2.' + prIcon); + + if (stencil != null) + { + c.setFillColor(fillColor); + c.setStrokeColor('none'); + stencil.drawShape(c, this, w * 0.17, h * 0.16, w * 0.66, h * 0.68); + } + + if (instNum > 0) + { + c.setFillColor('#ffffff'); + c.setStrokeColor('#ffffff'); + c.setStrokeWidth(iconSize * 0.038); + c.ellipse(w * 0.2, 0, w * 0.18, h * 0.22); + c.fillAndStroke(); + + c.setAlpha(opacity * 0.5 / 100); + c.setStrokeColor(fillColor); + c.ellipse(w * 0.2, 0, w * 0.18, h * 0.22); + c.stroke(); + + c.setAlpha(opacity / 100); + c.setFontColor('#4E6B89'); + c.setFontStyle(1); + c.setFontSize(Math.min(w, h) * 0.1); + + c.text(w * 0.29, h * 0.11 + 1, 0, 0, instNum.toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } +}; + +mxCellRenderer.registerShape(mxShapeGCP2HexIcon.prototype.cst.HEX_ICON, mxShapeGCP2HexIcon); + +mxShapeGCP2HexIcon.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.825, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.175, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.16), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.84), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.66, 0.17), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.66, 0.83), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.34, 0.17), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.34, 0.83), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.33), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.67), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.33), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.67), false)); + + return (constr); +}; + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxGmdl.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxGmdl.js new file mode 100644 index 0000000000000..0231090e85b16 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxGmdl.js @@ -0,0 +1,967 @@ +/** + * $Id: mxGmdl.js,v 1.0 2015/09/09 17:05:39 mate Exp $ + * Copyright (c) 2006-2015, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//player +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeGmdlPlayer(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeGmdlPlayer, mxShape); + +mxShapeGmdlPlayer.prototype.cst = { + SHAPE_PLAYER : 'mxgraph.gmdl.player' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeGmdlPlayer.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.begin(); + c.rect(0, 0, w, h); + c.fill(); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeGmdlPlayer.prototype.foreground = function(c, x, y, w, h) +{ + + if ( h >= 4) + { + c.setFillColor('#FFED00'); + c.begin(); + c.rect(0, 0, w * 0.8, 4); + c.fill(); + } + + if ( h >= 14 && w >= 33) + { + c.setFillColor('#717171'); + c.begin(); + c.rect(w - 33, h * 0.5 - 7, 4, 14); + c.fill(); + c.begin(); + c.rect(w - 25, h * 0.5 - 7, 4, 14); + c.fill(); + } + +}; + +mxCellRenderer.registerShape(mxShapeGmdlPlayer.prototype.cst.SHAPE_PLAYER, mxShapeGmdlPlayer); + +//********************************************************************************************************************************************************** +//switch +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeGmdlSwitch(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeGmdlSwitch, mxShape); + +mxShapeGmdlSwitch.prototype.cst = { + SHAPE_SWITCH : 'mxgraph.gmdl.switch', + STATE : 'switchState', + STATE_ON : 'on', + STATE_OFF : 'off' +}; + +mxShapeGmdlSwitch.prototype.customProperties = [ + {name:'switchState', dispName:'State', type:'enum', defVal:'on', + enumList:[{val:'on', dispName: 'On'}, {val:'off', dispName: 'Off'}]} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeGmdlSwitch.prototype.paintVertexShape = function(c, x, y, w, h) +{ + + c.translate(x, y); + var state = mxUtils.getValue(this.style, mxShapeGmdlSwitch.prototype.cst.STATE, mxShapeGmdlSwitch.prototype.cst.STATE_ON); + this.background(c, x, y, w, h, state); + c.setShadow(true); + this.foreground(c, x, y, w, h, state); +}; + +mxShapeGmdlSwitch.prototype.background = function(c, x, y, w, h, state) +{ + c.begin(); + + if (state === mxShapeGmdlSwitch.prototype.cst.STATE_ON) + { + c.save(); + c.setAlpha('0.5'); + c.moveTo(w * 0.135, h * 0.8); + c.arcTo(w * 0.135, h * 0.3, 0, 0, 1, w * 0.135, h * 0.2); + c.lineTo(w * 0.675, h * 0.2); + c.arcTo(w * 0.135, h * 0.3, 0, 0, 1, w * 0.675, h * 0.8); + c.close(); + c.fillAndStroke(); + c.restore(); + } + else + { + c.setFillColor('#BCBBBB'); + c.moveTo(w * 0.225, h * 0.8); + c.arcTo(w * 0.135, h * 0.3, 0, 0, 1, w * 0.225, h * 0.2); + c.lineTo(w * 0.865, h * 0.2); + c.arcTo(w * 0.135, h * 0.3, 0, 0, 1, w * 0.865, h * 0.8); + c.close(); + c.fillAndStroke(); + } + +}; + +mxShapeGmdlSwitch.prototype.foreground = function(c, x, y, w, h, state) +{ + c.begin(); + + if (state === mxShapeGmdlSwitch.prototype.cst.STATE_ON) + { + c.ellipse(w * 0.36, 0, w * 0.64, h); + } + else + { + c.setFillColor('#F1F1F1'); + c.ellipse(0, 0, w * 0.64, h); + } + + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeGmdlSwitch.prototype.cst.SHAPE_SWITCH, mxShapeGmdlSwitch); + +//********************************************************************************************************************************************************** +//rect with margins +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeGmdlMarginRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeGmdlMarginRect, mxShape); + +mxShapeGmdlMarginRect.prototype.cst = { + SHAPE_MARGIN_RECT : 'mxgraph.gmdl.marginRect', + MARGIN : 'rectMargin', + MARGIN_TOP : 'rectMarginTop', + MARGIN_LEFT : 'rectMarginLeft', + MARGIN_BOTTOM : 'rectMarginBottom', + MARGIN_RIGHT : 'rectMarginRight' +}; + +mxShapeGmdlMarginRect.prototype.customProperties = [ + {name:'rectMargin', dispName:'Margin', type:'float', min:0, defVal:0}, + {name:'rectMarginTop', dispName:'Margin Top', type:'float', defVal:0}, + {name:'rectMarginLeft', dispName:'Margin Left', type:'float', defVal:0}, + {name:'rectMarginBottom', dispName:'Margin Bottom', type:'float', defVal:0}, + {name:'rectMarginRight', dispName:'Margin Right', type:'float', defVal:0} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeGmdlMarginRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeGmdlMarginRect.prototype.background = function(c, x, y, w, h, state) +{ + var margin = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlMarginRect.prototype.cst.MARGIN, '0')); + var marginTop = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlMarginRect.prototype.cst.MARGIN_TOP, '0')); + var marginLeft = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlMarginRect.prototype.cst.MARGIN_LEFT, '0')); + var marginBottom = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlMarginRect.prototype.cst.MARGIN_BOTTOM, '0')); + var marginRight = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlMarginRect.prototype.cst.MARGIN_RIGHT, '0')); + + var x1 = margin + marginLeft; + var y1 = margin + marginTop; + var w1 = w - marginRight - x1 - margin; + var h1 = h - marginBottom - y1 - margin; + + if (w1 >0 && h1 > 0) + { + c.begin(); + c.rect(x1, y1, w1, h1); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeGmdlMarginRect.prototype.cst.SHAPE_MARGIN_RECT, mxShapeGmdlMarginRect); + +//********************************************************************************************************************************************************** +//slider normal +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeGmdlSliderNormal(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeGmdlSliderNormal, mxShape); + +mxShapeGmdlSliderNormal.prototype.cst = { + SHAPE_SLIDER_NORMAL : 'mxgraph.gmdl.sliderNormal', + HANDLE_SIZE : 'handleSize' +}; + +mxShapeGmdlSliderNormal.prototype.customProperties = [ + {name:'handleSize', dispName:'Handle Size', type:'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeGmdlSliderNormal.prototype.paintVertexShape = function(c, x, y, w, h) +{ + + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeGmdlSliderNormal.prototype.background = function(c, x, y, w, h) +{ + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderNormal.prototype.cst.HANDLE_SIZE, '10')); + + c.ellipse(0, h * 0.5 - hSize * 0.5, hSize, hSize); + c.stroke(); + + c.begin(); + c.moveTo(hSize, h * 0.5); + c.lineTo(w, h * 0.5); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeGmdlSliderNormal.prototype.cst.SHAPE_SLIDER_NORMAL, mxShapeGmdlSliderNormal); + +//********************************************************************************************************************************************************** +//slider normal v2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeGmdlSlider2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeGmdlSlider2, mxShape); + +mxShapeGmdlSlider2.prototype.cst = { + SHAPE_SLIDER : 'mxgraph.gmdl.slider2', + BAR_POS : 'barPos', + HANDLE_SIZE : 'handleSize' +}; + +mxShapeGmdlSlider2.prototype.customProperties = [ + {name:'barPos', dispName:'Handle Position', type:'float', min:0, defVal:40}, + {name:'handleSize', dispName:'Handle Size', type:'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeGmdlSlider2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeGmdlSlider2.prototype.background = function(c, x, y, w, h) +{ + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSlider2.prototype.cst.HANDLE_SIZE, '10')); + var barPos = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSlider2.prototype.cst.BAR_POS, '40')) / 100; + + barPos = Math.max(0, Math.min(1, barPos)); + + c.save(); + c.setStrokeColor('#bbbbbb'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.fillAndStroke(); + + c.restore(); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(barPos * w, h * 0.5); + c.fillAndStroke(); + + c.begin(); + c.ellipse(barPos * w - hSize * 0.5, h * 0.5 - hSize * 0.5, hSize, hSize); + c.fillAndStroke(); + +}; + +mxCellRenderer.registerShape(mxShapeGmdlSlider2.prototype.cst.SHAPE_SLIDER, mxShapeGmdlSlider2); + +mxShapeGmdlSlider2.prototype.constraints = null; + +Graph.handleFactory[mxShapeGmdlSlider2.prototype.cst.SHAPE_SLIDER] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + + return handles; +}; + +//********************************************************************************************************************************************************** +//slider focused v2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeGmdlSliderFocused(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeGmdlSliderFocused, mxShape); + +mxShapeGmdlSliderFocused.prototype.cst = { + SHAPE_SLIDER_FOCUSED : 'mxgraph.gmdl.sliderFocused', + BAR_POS : 'barPos', + HANDLE_SIZE : 'handleSize' +}; + +mxShapeGmdlSliderFocused.prototype.customProperties = [ + {name:'barPos', dispName:'Handle Position', type:'float', min:0, defVal:40}, + {name:'handleSize', dispName:'Handle Size', type:'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeGmdlSliderFocused.prototype.paintVertexShape = function(c, x, y, w, h) +{ + + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeGmdlSliderFocused.prototype.background = function(c, x, y, w, h) +{ + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderFocused.prototype.cst.HANDLE_SIZE, '10')); + var barPos = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderFocused.prototype.cst.BAR_POS, '40')) / 100; + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#ffffff'); + + barPos = Math.max(0, Math.min(1, barPos)); + + c.save(); + c.setStrokeColor('#bbbbbb'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.fillAndStroke(); + + c.restore(); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(barPos * w, h * 0.5); + c.fillAndStroke(); + + c.begin(); + c.ellipse(barPos * w - hSize * 0.167, h * 0.5 - hSize * 0.167, hSize * 0.33, hSize * 0.33); + c.fillAndStroke(); + + c.setFillColor(strokeColor); + c.setAlpha(0.15); + c.begin(); + c.ellipse(barPos * w - hSize * 0.5, h * 0.5 - hSize * 0.5, hSize, hSize); + c.fill(); + +}; + +mxCellRenderer.registerShape(mxShapeGmdlSliderFocused.prototype.cst.SHAPE_SLIDER_FOCUSED, mxShapeGmdlSliderFocused); + +mxShapeGmdlSliderFocused.prototype.constraints = null; + +Graph.handleFactory[mxShapeGmdlSliderFocused.prototype.cst.SHAPE_SLIDER_FOCUSED] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + + return handles; + +}; + +//********************************************************************************************************************************************************** +//slider disabled +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeGmdlSliderDisabled(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeGmdlSliderDisabled, mxShape); + +mxShapeGmdlSliderDisabled.prototype.cst = { + SHAPE_SLIDER_DISABLED : 'mxgraph.gmdl.sliderDisabled', + HANDLE_POSITION : 'hPos', + HANDLE_SIZE : 'handleSize' +}; + +mxShapeGmdlSliderDisabled.prototype.customProperties = [ + {name:'hPos', dispName:'Handle Position', type:'float', min:0, defVal:40}, + {name:'handleSize', dispName:'Handle Size', type:'float', min:0, defVal:10} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeGmdlSliderDisabled.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeGmdlSliderDisabled.prototype.background = function(c, x, y, w, h) +{ + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDisabled.prototype.cst.HANDLE_SIZE, '10')); + var hPos = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDisabled.prototype.cst.HANDLE_POSITION, '50')) / 100; + + hPos = Math.max(hPos, 0); + hPos = Math.min(hPos, 1); + + c.ellipse(w * hPos - hSize * 0.5, (h - hSize) * 0.5, hSize, hSize); + c.fillAndStroke(); + + var endL = w * hPos - 7; + var startR = w * hPos + 7; + + if (endL > 0) + { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(endL, h * 0.5); + c.stroke(); + } + + if (startR < w) + { + c.begin(); + c.moveTo(startR, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeGmdlSliderDisabled.prototype.cst.SHAPE_SLIDER_DISABLED, mxShapeGmdlSliderDisabled); + +//********************************************************************************************************************************************************** +//slider disabled v2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeGmdlSliderDisabled2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeGmdlSliderDisabled2, mxShape); + +mxShapeGmdlSliderDisabled2.prototype.cst = { + SHAPE_SLIDER_DISABLED : 'mxgraph.gmdl.sliderDisabled2', + HANDLE_POSITION : 'hPos', + HANDLE_SIZE : 'handleSize' +}; + +mxShapeGmdlSliderDisabled2.prototype.customProperties = [ + {name:'hPos', dispName:'Handle Position', type:'float', min:0, defVal:'40'}, + {name:'handleSize', dispName:'Handle Size', type:'float', min:0, defVal:'10'} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeGmdlSliderDisabled2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeGmdlSliderDisabled2.prototype.background = function(c, x, y, w, h) +{ + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDisabled2.prototype.cst.HANDLE_SIZE, '10')); + var hPos = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDisabled2.prototype.cst.HANDLE_POSITION, '50')) / 100; + + hPos = Math.min(Math.max(hPos, 0), 1); + + c.ellipse(w * hPos - hSize * 0.5, (h - hSize) * 0.5, hSize, hSize); + c.fillAndStroke(); + + var endL = w * hPos - 7; + var startR = w * hPos + 7; + + if (endL > 0) + { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(endL, h * 0.5); + c.stroke(); + } + + if (startR < w) + { + c.begin(); + c.moveTo(startR, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeGmdlSliderDisabled2.prototype.cst.SHAPE_SLIDER_DISABLED, mxShapeGmdlSliderDisabled2); + +mxShapeGmdlSlider2.prototype.constraints = null; + +Graph.handleFactory[mxShapeGmdlSliderDisabled2.prototype.cst.SHAPE_SLIDER_DISABLED] = function(state) +{ + var handles = [Graph.createHandle(state, ['hPos'], function(bounds) + { + var hPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'hPos', 0.4)))); + + return new mxPoint(bounds.x + hPos * bounds.width / 100, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['hPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + + return handles; +}; + +//********************************************************************************************************************************************************** +//slider discrete +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeGmdlSliderDiscrete(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeGmdlSliderDiscrete, mxShape); + +mxShapeGmdlSliderDiscrete.prototype.cst = { + SHAPE_DISCRETE : 'mxgraph.gmdl.sliderDiscrete', + BAR_POS : 'barPos', + HANDLE_SIZE : 'handleSize' +}; + +mxShapeGmdlSliderDiscrete.prototype.customProperties = [ + {name:'barPos', dispName:'Handle Position', type:'int', min:0, defVal:'40'}, + {name:'handleSize', dispName:'Handle Size', type:'float', min:0, defVal:'10'} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeGmdlSliderDiscrete.prototype.paintVertexShape = function(c, x, y, w, h) +{ + + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeGmdlSliderDiscrete.prototype.background = function(c, x, y, w, h) +{ + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDiscrete.prototype.cst.HANDLE_SIZE, '10')); + var barPos = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDiscrete.prototype.cst.BAR_POS, '40')) / 100; + var fontSize = parseFloat(mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '12')); + var fontColor = mxUtils.getValue(this.style, mxConstants.STYLE_FONTCOLOR, '#000000'); + + barPos = Math.max(0, Math.min(1, barPos)); + + c.save(); + c.setStrokeColor('#bbbbbb'); + c.begin(); + c.moveTo(0, h * 0.5 + 22.5); + c.lineTo(w, h * 0.5 + 22.5); + c.fillAndStroke(); + + c.restore(); + c.begin(); + c.moveTo(0, h * 0.5 + 22.5); + c.lineTo(barPos * w, h * 0.5 + 22.5); + c.fillAndStroke(); + + c.begin(); + c.moveTo(barPos * w, h * 0.5 + 15.5); + c.lineTo(barPos * w - 10.5, h * 0.5 + 2.5); + c.arcTo(15, 15, 0, 0, 1, barPos * w, h * 0.5 - 22.5); + c.arcTo(15, 15, 0, 0, 1, barPos * w + 10.5, h * 0.5 + 2.5); + c.close(); + c.fillAndStroke(); + + c.setFontSize(fontSize); + c.setFontColor(fontColor); + var p = Math.round(barPos * 100); + c.text(barPos * w, h * 0.5 - 9, 0, 0, p.toString() , mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeGmdlSliderDiscrete.prototype.cst.SHAPE_DISCRETE, mxShapeGmdlSliderDiscrete); + +mxShapeGmdlSliderDiscrete.prototype.constraints = null; + +Graph.handleFactory[mxShapeGmdlSliderDiscrete.prototype.cst.SHAPE_DISCRETE] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2 + 22.5); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(100 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 100; + })]; + + return handles; +}; + +//********************************************************************************************************************************************************** +//slider discrete with dots +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeGmdlSliderDiscreteDots(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeGmdlSliderDiscreteDots, mxShape); + +mxShapeGmdlSliderDiscreteDots.prototype.cst = { + SHAPE_DISCRETE_DOTS : 'mxgraph.gmdl.sliderDiscreteDots', + BAR_POS : 'barPos', + HANDLE_SIZE : 'handleSize' +}; + +mxShapeGmdlSliderDiscreteDots.prototype.customProperties = [ + {name:'barPos', dispName:'Handle Position', type:'int', min:0, defVal:'40'}, + {name:'handleSize', dispName:'Handle Size', type:'float', min:0, defVal:'10'} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeGmdlSliderDiscreteDots.prototype.paintVertexShape = function(c, x, y, w, h) +{ + + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(true); +}; + +mxShapeGmdlSliderDiscreteDots.prototype.background = function(c, x, y, w, h) +{ + var hSize = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDiscreteDots.prototype.cst.HANDLE_SIZE, '10')); + var barPos = parseFloat(mxUtils.getValue(this.style, mxShapeGmdlSliderDiscreteDots.prototype.cst.BAR_POS, '40')) / 100; + var fontSize = parseFloat(mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '12')); + var fontColor = mxUtils.getValue(this.style, mxConstants.STYLE_FONTCOLOR, '#000000'); + var bright = mxUtils.getValue(this.style, 'bright', '1'); + + barPos = Math.max(0, Math.min(1, barPos)); + + c.save(); + c.setStrokeColor('#bebebe'); + c.begin(); + c.moveTo(0, h * 0.5 + 22.5); + c.lineTo(w, h * 0.5 + 22.5); + c.fillAndStroke(); + + c.restore(); + + if (barPos <= 0.1) + { + c.setFillColor('#bebebe'); + } + + c.begin(); + c.moveTo(0, h * 0.5 + 22.5); + c.lineTo(barPos * w, h * 0.5 + 22.5); + c.fillAndStroke(); + + c.begin(); + c.moveTo(barPos * w, h * 0.5 + 15.5); + c.lineTo(barPos * w - 10.5, h * 0.5 + 2.5); + c.arcTo(15, 15, 0, 0, 1, barPos * w, h * 0.5 - 22.5); + c.arcTo(15, 15, 0, 0, 1, barPos * w + 10.5, h * 0.5 + 2.5); + c.close(); + c.fill(); + + if (bright == '1') + { + c.setFillColor('#000000'); + } + else + { + c.setFillColor('#ffffff'); + } + + c.ellipse(-1.5, h * 0.5 + 21, 3, 3); + c.fill(); + + c.ellipse(w * 0.2 - 1.5, h * 0.5 + 21, 3, 3); + c.fill(); + + c.ellipse(w * 0.4 - 1.5, h * 0.5 + 21, 3, 3); + c.fill(); + + c.ellipse(w * 0.6 - 1.5, h * 0.5 + 21, 3, 3); + c.fill(); + + c.ellipse(w * 0.8 - 1.5, h * 0.5 + 21, 3, 3); + c.fill(); + + c.ellipse(w - 1.5, h * 0.5 + 21, 3, 3); + c.fill(); + + c.setFontSize(fontSize); + c.setFontColor(fontColor); + var p = Math.round(barPos * 100); + c.text(barPos * w, h * 0.5 - 9, 0, 0, p.toString() , mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape(mxShapeGmdlSliderDiscreteDots.prototype.cst.SHAPE_DISCRETE_DOTS, mxShapeGmdlSliderDiscreteDots); + +mxShapeGmdlSliderDiscreteDots.prototype.constraints = null; + +Graph.handleFactory[mxShapeGmdlSliderDiscreteDots.prototype.cst.SHAPE_DISCRETE_DOTS] = function(state) +{ + var handles = [Graph.createHandle(state, ['barPos'], function(bounds) + { + var barPos = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'barPos', 0.4)))); + + return new mxPoint(bounds.x + barPos * bounds.width / 100, bounds.y + bounds.height / 2 + 22.5); + }, function(bounds, pt) + { + this.state.style['barPos'] = Math.round(0.05 * Math.max(0, Math.min(100, (pt.x - bounds.x) * 100 / bounds.width))) / 0.05; + })]; + + return handles; +}; + +//********************************************************************************************************************************************************** +//Progress Bar +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeGmdlProgressBar(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx1 = 0.8; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeGmdlProgressBar, mxShape); + +mxShapeGmdlProgressBar.prototype.cst = { + PROGRESS_BAR : 'mxgraph.gmdl.progressBar' +}; + +mxShapeGmdlProgressBar.prototype.customProperties = [ + {name:'dx1', dispName:'Handle Position', type:'int', min:0, defVal:0.8} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeGmdlProgressBar.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var dx1 = w * Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx1', this.dx1)))); + + c.translate(x, y); + + c.save(); + c.setStrokeColor('#aaaaaa'); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w , h * 0.5); + c.stroke(); + + c.restore(); + c.setShadow(false); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(dx1, h * 0.5); + c.stroke(); + +}; + +mxCellRenderer.registerShape(mxShapeGmdlProgressBar.prototype.cst.PROGRESS_BAR, mxShapeGmdlProgressBar); + +mxShapeGmdlProgressBar.prototype.constraints = null; + +Graph.handleFactory[mxShapeGmdlProgressBar.prototype.cst.PROGRESS_BAR] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx1'], function(bounds) + { + var dx1 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx1', this.dx1)))); + + return new mxPoint(bounds.x + dx1 * bounds.width, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx1'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['dx2'], function(bounds) + { + var dx2 = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx1)))); + + return new mxPoint(bounds.x + dx2 * bounds.width, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(1, (pt.x - bounds.x) / bounds.width))) / 100; + }); + + handles.push(handle2); + + return handles; +}; + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxInfographic.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxInfographic.js new file mode 100644 index 0000000000000..122fb2a30846f --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxInfographic.js @@ -0,0 +1,2668 @@ +/** + * $Id: mxInfographic.js,v 1.5 2016/04/1 12:32:06 mate Exp $ + * Copyright (c) 2006-2018, JGraph Ltd + */ +//********************************************************************************************************************************************************** +//Numbered entry (vertical) +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicNumEntryVert(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicNumEntryVert, mxActor); + +mxShapeInfographicNumEntryVert.prototype.cst = {NUM_ENTRY_VERT : 'mxgraph.infographic.numberedEntryVert'}; + +mxShapeInfographicNumEntryVert.prototype.customProperties = [ + {name:'dy', dispName:'Circle Size', min:0, defVal: 25} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicNumEntryVert.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + var inset = 5; + + var d = Math.min(dy, w - 2 * inset, h - inset); + + c.ellipse(w * 0.5 - d * 0.5, 0, d, d); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, d * 0.5); + c.lineTo(w * 0.5 - d * 0.5 - inset, d * 0.5); + c.arcTo(d * 0.5 + inset, d * 0.5 + inset, 0, 0, 0, w * 0.5 + d * 0.5 + inset, d * 0.5); + c.lineTo(w, d * 0.5); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicNumEntryVert.prototype.cst.NUM_ENTRY_VERT, mxShapeInfographicNumEntryVert); + +Graph.handleFactory[mxShapeInfographicNumEntryVert.prototype.cst.NUM_ENTRY_VERT] = function(state) +{ + var handles = [Graph.createHandle(state, ['dy'], function(bounds) + { + var dy = Math.max(0, Math.min(bounds.width, bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width / 2, bounds.y + dy); + }, function(bounds, pt) + { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height, bounds.width, pt.y - bounds.y))) / 100; + })]; + + return handles; +}; + +mxShapeInfographicNumEntryVert.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var inset = 5; + var d = Math.min(dy, w - 2 * inset, h - inset); + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, d * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, d * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 0, d * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, 0, d * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Bending Arch +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicBendingArch(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.startAngle = 0.25; + this.endAngle = 0.75; + this.arcWidth = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicBendingArch, mxActor); + +mxShapeInfographicBendingArch.prototype.cst = {BENDING_ARCH : 'mxgraph.infographic.bendingArch'}; + +mxShapeInfographicBendingArch.prototype.customProperties = [ + {name:'startAngle', dispName:'Start Angle', min:0, max:1, defVal: 0.75}, + {name:'endAngle', dispName:'End Angle', min:0, max:1, defVal: 0.25}, + {name:'arcWidth', dispName:'Arc Width', min:0, max:1, defVal: 0.25} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicBendingArch.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'startAngle', this.startAngle)))); + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'endAngle', this.endAngle)))); + var arcWidth = 1 - Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arcWidth', this.arcWidth)))); + var rx = w * 0.5; + var ry = h * 0.5; + var rx2 = rx * arcWidth; + var ry2 = ry * arcWidth; + + var startX = rx + Math.sin(startAngle) * rx; + var startY = ry - Math.cos(startAngle) * ry; + var innerStartX = rx + Math.sin(startAngle) * rx2; + var innerStartY = ry - Math.cos(startAngle) * ry2; + var endX = rx + Math.sin(endAngle) * rx; + var endY = ry - Math.cos(endAngle) * ry; + var innerEndX = rx + Math.sin(endAngle) * rx2; + var innerEndY = ry - Math.cos(endAngle) * ry2; + + var angDiff = endAngle - startAngle; + + if (angDiff < 0) + { + angDiff = angDiff + Math.PI * 2; + } + + var bigArc = 0; + + if (angDiff > Math.PI) + { + bigArc = 1; + } + + var rx3 = rx2 - 5; + var ry3 = ry2 - 5; + + c.ellipse(w * 0.5 - rx3, h * 0.5 - ry3, 2 * rx3, 2 * ry3); + c.fillAndStroke(); + + c.begin(); + c.moveTo(startX, startY); + c.arcTo(rx, ry, 0, bigArc, 1, endX, endY); + c.lineTo(innerEndX, innerEndY); + c.arcTo(rx2, ry2, 0, bigArc, 0, innerStartX, innerStartY); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicBendingArch.prototype.cst.BENDING_ARCH, mxShapeInfographicBendingArch); + +mxShapeInfographicBendingArch.prototype.constraints = null; + +Graph.handleFactory[mxShapeInfographicBendingArch.prototype.cst.BENDING_ARCH] = function(state) +{ + var handles = [Graph.createHandle(state, ['startAngle'], function(bounds) + { + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'startAngle', this.startAngle)))); + + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(startAngle) * bounds.height * 0.5); + }, function(bounds, pt) + { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) + { + res = 1 + res; + } + + this.state.style['startAngle'] = res; + + })]; + + var handle2 = Graph.createHandle(state, ['endAngle'], function(bounds) + { + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'endAngle', this.endAngle)))); + + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(endAngle) * bounds.height * 0.5); + }, function(bounds, pt) + { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) + { + res = 1 + res; + } + + this.state.style['endAngle'] = res; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['arcWidth'], function(bounds) + { + var arcWidth = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'arcWidth', this.arcWidth)))); + + return new mxPoint(bounds.x + bounds.width / 2, bounds.y + arcWidth * bounds.height * 0.5); + }, function(bounds, pt) + { + this.state.style['arcWidth'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, (pt.y - bounds.y) / (bounds.height * 0.5)))) / 100; + }); + + handles.push(handle3); + + return handles; +}; + +//********************************************************************************************************************************************************** +//Parallelogram +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicParallelogram(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 10; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicParallelogram, mxActor); + +mxShapeInfographicParallelogram.prototype.cst = {PARALLELOGRAM : 'mxgraph.infographic.parallelogram'}; + +mxShapeInfographicParallelogram.prototype.customProperties = [ + {name:'dx', dispName:'Angle', min:0, defVal: 15} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicParallelogram.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w * 0.5, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + + c.begin(); + c.moveTo(0, h); + c.lineTo(2 * dx, 0); + c.lineTo(w, 0); + c.lineTo(w - 2 * dx, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicParallelogram.prototype.cst.PARALLELOGRAM, mxShapeInfographicParallelogram); + +Graph.handleFactory[mxShapeInfographicParallelogram.prototype.cst.PARALLELOGRAM] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + dx, bounds.y + bounds.height / 2); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2, pt.x - bounds.x))) / 100; + })]; + + return handles; +}; + +mxShapeInfographicParallelogram.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w * 0.5, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var w2 = w - 2 * dx; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2 * dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2 * dx + w2 * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 2 * dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 * 0.5, h)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Ribbon Rolled +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicRibbonRolled(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 185; + this.dy = 15; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicRibbonRolled, mxActor); + +mxShapeInfographicRibbonRolled.prototype.cst = {RIBBON_ROLLED : 'mxgraph.infographic.ribbonRolled'}; + +mxShapeInfographicRibbonRolled.prototype.customProperties = [ + {name:'dx', dispName:'Roll Length', min:0, defVal: 185}, + {name:'dy', dispName:'Ribbon Width', min:0, defVal: 15} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicRibbonRolled.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w, h - dy); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(0, h - dy); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.close(); + c.moveTo(w, h - dy); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w, h - dy); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(0, h - dy); + c.close(); + c.stroke(); + +}; + +mxCellRenderer.registerShape(mxShapeInfographicRibbonRolled.prototype.cst.RIBBON_ROLLED, mxShapeInfographicRibbonRolled); + +Graph.handleFactory[mxShapeInfographicRibbonRolled.prototype.cst.RIBBON_ROLLED] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + dx, bounds.y + dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + })]; + + return handles; +}; + +mxShapeInfographicRibbonRolled.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var h2 = h - dy; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h2)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, h2)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, h2)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, h2)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, 0, -dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Ribbon Double Folded +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicRibbonDoubleFolded(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 25; + this.dy = 15; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicRibbonDoubleFolded, mxActor); + +mxShapeInfographicRibbonDoubleFolded.prototype.cst = {RIBBON_DOUBLE_FOLDED : 'mxgraph.infographic.ribbonDoubleFolded'}; + +mxShapeInfographicRibbonDoubleFolded.prototype.customProperties = [ + {name:'dx', dispName:'Fold Length', min:0, defVal: 25}, + {name:'dy', dispName:'Ribbon Width', min:0, defVal: 15} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicRibbonDoubleFolded.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w, h - dy); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(0, h - dy); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, h - 2 * dy); + c.lineTo(0, h - dy); + c.close(); + c.moveTo(w, h - dy); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w, h - dy); + c.lineTo(w - dx, h); + c.lineTo(w - dx, h - dy); + c.lineTo(0, h - dy); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicRibbonDoubleFolded.prototype.cst.RIBBON_DOUBLE_FOLDED, mxShapeInfographicRibbonDoubleFolded); + +Graph.handleFactory[mxShapeInfographicRibbonDoubleFolded.prototype.cst.RIBBON_DOUBLE_FOLDED] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + dx, bounds.y + dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + })]; + + return handles; +}; + +mxShapeInfographicRibbonDoubleFolded.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Ribbon Front Folded +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicRibbonFrontFolded(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; + this.dy = 0.5; + this.notch = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicRibbonFrontFolded, mxActor); + +mxShapeInfographicRibbonFrontFolded.prototype.cst = {RIBBON_FRONT_FOLDED : 'mxgraph.infographic.ribbonFrontFolded'}; + +mxShapeInfographicRibbonFrontFolded.prototype.customProperties = [ + {name:'dx', dispName:'Fold Length', min:0, defVal: 25}, + {name:'dy', dispName:'Ribbon Width', min:0, defVal: 15}, + {name:'notch', dispName:'Notch', min:0, defVal: 15} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicRibbonFrontFolded.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w - dx, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w - notch, (h - dy) / 2 + dy); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, h - dy); + c.lineTo(0, h); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w - notch, (h - dy) / 2 + dy); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicRibbonFrontFolded.prototype.cst.RIBBON_FRONT_FOLDED, mxShapeInfographicRibbonFrontFolded); + +Graph.handleFactory[mxShapeInfographicRibbonFrontFolded.prototype.cst.RIBBON_FRONT_FOLDED] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + dx, bounds.y + dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + bounds.width - notch, bounds.y + dy + (bounds.height - dy) * 0.5); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width, (bounds.width + bounds.x - pt.x)))) / 100; + }); + + handles.push(handle2); + + return handles; +}; + +mxShapeInfographicRibbonFrontFolded.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w - dx, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - notch, (h + dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h + dy) * 0.5)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Ribbon Back Folded +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicRibbonBackFolded(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; + this.dy = 0.5; + this.notch = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicRibbonBackFolded, mxActor); + +mxShapeInfographicRibbonBackFolded.prototype.cst = {RIBBON_BACK_FOLDED : 'mxgraph.infographic.ribbonBackFolded'}; + +mxShapeInfographicRibbonBackFolded.prototype.customProperties = [ + {name:'dx', dispName:'Fold Length', min:0, defVal: 25}, + {name:'dy', dispName:'Ribbon Width', min:0, defVal: 15}, + {name:'notch', dispName:'Notch', min:0, defVal: 15} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicRibbonBackFolded.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w - dx, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w - notch, (h - dy) / 2 + dy); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, 0); + c.lineTo(dx, dy); + c.lineTo(w, dy); + c.lineTo(w - notch, (h - dy) / 2 + dy); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicRibbonBackFolded.prototype.cst.RIBBON_BACK_FOLDED, mxShapeInfographicRibbonBackFolded); + +Graph.handleFactory[mxShapeInfographicRibbonBackFolded.prototype.cst.RIBBON_BACK_FOLDED] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + dx, bounds.y + dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + bounds.width - notch, bounds.y + dy + (bounds.height - dy) * 0.5); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width, (bounds.width + bounds.x - pt.x)))) / 100; + }); + + handles.push(handle2); + + return handles; +}; + +mxShapeInfographicRibbonBackFolded.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w - dx, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - notch, (h + dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h + dy) * 0.5)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Banner +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicBanner(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; + this.dy = 0.5; + this.notch = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicBanner, mxActor); + +mxShapeInfographicBanner.prototype.cst = {BANNER : 'mxgraph.infographic.banner'}; + +mxShapeInfographicBanner.prototype.customProperties = [ + {name:'dx', dispName:'Fold Length', min:0, defVal: 25}, + {name:'dy', dispName:'Ribbon Width', min:0, defVal: 15}, + {name:'notch', dispName:'Notch', min:0, defVal: 15} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicBanner.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w / 2, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + + dx = Math.min(w / 2 - 2 * dy, dx); + + notch = Math.min(dx, notch); + + c.begin(); + c.moveTo(0, dy); + c.lineTo(dx, dy); + c.lineTo(dx, 0); + c.lineTo(w - dx, 0); + c.lineTo(w - dx, dy); + c.lineTo(w, dy); + c.lineTo(w - notch, (h - dy) * 0.5 + dy); + c.lineTo(w, h); + c.lineTo(w - dx - 2 * dy, h); + c.lineTo(w - dx - 2 * dy, h - dy); + c.lineTo(dx + 2 * dy, h - dy); + c.lineTo(dx + 2 * dy, h); + c.lineTo(0, h); + c.lineTo(notch, (h - dy) * 0.5 + dy); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(0,dy); + c.lineTo(dx, dy); + c.lineTo(dx, h - dy); + c.lineTo(dx + 2 * dy, h); + c.lineTo(0, h); + c.lineTo(notch, (h - dy) * 0.5 + dy); + c.close(); + c.moveTo(w,dy); + c.lineTo(w - dx, dy); + c.lineTo(w - dx, h - dy); + c.lineTo(w - dx - 2 * dy, h); + c.lineTo(w, h); + c.lineTo(w - notch, (h - dy) * 0.5 + dy); + c.close(); + c.fill(); + + c.setFillAlpha('0.4'); + c.begin(); + c.moveTo(dx, h - dy); + c.lineTo(dx + 2 * dy, h - dy); + c.lineTo(dx + 2 * dy, h); + c.close(); + c.moveTo(w - dx, h - dy); + c.lineTo(w - dx - 2 * dy, h - dy); + c.lineTo(w - dx - 2 * dy, h); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicBanner.prototype.cst.BANNER, mxShapeInfographicBanner); + +Graph.handleFactory[mxShapeInfographicBanner.prototype.cst.BANNER] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width / 2, bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(dx, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + bounds.width - notch, bounds.y + dy + (bounds.height - dy) * 0.5); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width, (bounds.width + bounds.x - pt.x)))) / 100; + }); + + handles.push(handle2); + + return handles; +}; + +mxShapeInfographicBanner.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w / 2, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + dx = Math.min(w / 2 - 2 * dy, dx); + notch = Math.min(dx, notch); + var w2 = w - 2 * dx; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2 * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2 * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2 * 0.75, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2 * 0.75, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2 * 0.5, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx + w2 * 0.25, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, notch, (h + dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - notch, (h + dy) * 0.5)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Circular Callout +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicCircularCallout(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicCircularCallout, mxActor); + +mxShapeInfographicCircularCallout.prototype.cst = {CIRCULAR_CALLOUT : 'mxgraph.infographic.circularCallout'}; + +mxShapeInfographicCircularCallout.prototype.customProperties = [ + {name:'dy', dispName:'Ribbon Width', min:0, defVal: 15} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicCircularCallout.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + var rx = Math.max(0, Math.min(w * 0.5, w * 0.5 - dy)); + var ry = Math.max(0, Math.min(h * 0.5, h * 0.5 - dy)); + + c.begin(); + c.moveTo(w, h * 0.5); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, w * 0.5, h); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, 0, h * 0.5); + c.arcTo(w * 0.5, h * 0.5, 0, 0, 1, w * 0.5, 0); + c.lineTo(w, 0); + c.close(); + c.moveTo(w * 0.5, dy); + c.arcTo(rx, ry, 0, 0, 0, w * 0.5 - rx, h * 0.5); + c.arcTo(rx, ry, 0, 0, 0, w * 0.5, h * 0.5 + ry); + c.arcTo(rx, ry, 0, 0, 0, w * 0.5 + rx, h * 0.5); + c.arcTo(rx, ry, 0, 0, 0, w * 0.5, h * 0.5 - ry); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicCircularCallout.prototype.cst.CIRCULAR_CALLOUT, mxShapeInfographicCircularCallout); + +Graph.handleFactory[mxShapeInfographicCircularCallout.prototype.cst.CIRCULAR_CALLOUT] = function(state) +{ + var handles = [Graph.createHandle(state, ['dy'], function(bounds) + { + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width * 0.5, bounds.y + dy); + }, function(bounds, pt) + { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + })]; + + return handles; +}; + +mxShapeInfographicCircularCallout.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var rx = Math.max(0, Math.min(w * 0.5, w * 0.5 - dy)); + var ry = Math.max(0, Math.min(h * 0.5, h * 0.5 - dy)); + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.145), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Shaded triangle +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicShadedTriangle(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicShadedTriangle, mxActor); + +mxShapeInfographicShadedTriangle.prototype.cst = {SHADED_TRIANGLE : 'mxgraph.infographic.shadedTriangle'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicShadedTriangle.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + + c.setFillColor('#ffffff'); + c.setFillAlpha('0.2'); + + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.5, h * 0.67); + c.close(); + c.fill(); + + c.setFillColor('#000000'); + + c.begin(); + c.moveTo(w, h); + c.lineTo(w * 0.5, h * 0.67); + c.lineTo(w * 0.5, 0); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicShadedTriangle.prototype.cst.SHADED_TRIANGLE, mxShapeInfographicShadedTriangle); + +mxShapeInfographicShadedTriangle.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Shaded pyramid +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicShadedPyramid(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicShadedPyramid, mxActor); + +mxShapeInfographicShadedPyramid.prototype.cst = {SHADED_PYRAMID : 'mxgraph.infographic.shadedPyramid'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicShadedPyramid.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var h1 = Math.max(h - w * 0.3, 0); + c.begin(); + c.moveTo(0, h1); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h1); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + + c.setFillColor('#ffffff'); + c.setFillAlpha('0.2'); + + c.begin(); + c.moveTo(0, h1); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + c.setFillColor('#000000'); + + c.begin(); + c.moveTo(w, h1); + c.lineTo(w * 0.5, h); + c.lineTo(w * 0.5, 0); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(0, h1); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h1); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicShadedPyramid.prototype.cst.SHADED_PYRAMID, mxShapeInfographicShadedPyramid); + +mxShapeInfographicShadedPyramid.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var h1 = Math.max(h - w * 0.3, 0); + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, h1 * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, (h + h1) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, (h + h1) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, h1 * 0.5)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Pyramid step +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicPyramidStep(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicPyramidStep, mxActor); + +mxShapeInfographicPyramidStep.prototype.cst = {PYRAMID_STEP : 'mxgraph.infographic.pyramidStep'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicPyramidStep.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var h1 = Math.max(w * 0.1, 0); + c.begin(); + c.moveTo(0, h1); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h1); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + + c.setFillColor('#ffffff'); + c.setFillAlpha('0.2'); + + c.begin(); + c.moveTo(0, h1); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.lineTo(0, h); + c.close(); + c.fill(); + + c.setFillColor('#000000'); + + c.begin(); + c.moveTo(w, h1); + c.lineTo(w, h); + c.lineTo(w * 0.5, h); + c.lineTo(w * 0.5, 0); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(0, h1); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h1); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicPyramidStep.prototype.cst.PYRAMID_STEP, mxShapeInfographicPyramidStep); + +mxShapeInfographicPyramidStep.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var h1 = Math.max(w * 0.1, 0); + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, h1 * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h1)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h1 + (h - h1) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h1 + (h - h1) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h1 + (h - h1) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h1 + (h - h1) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h1 + (h - h1) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h1 + (h - h1) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, h1 * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h1)); + return (constr); +}; + +//********************************************************************************************************************************************************** +//Cylinder +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicCylinder(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicCylinder, mxActor); + +mxShapeInfographicCylinder.prototype.cst = {CYLINDER : 'mxgraph.infographic.cylinder'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicCylinder.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = 20; + var rx = w * 0.5; + var ry = dy * 0.5; + + c.begin(); + c.moveTo(0, dy * 0.5); + c.arcTo(rx, ry, 0, 0, 1, w, ry); + c.lineTo(w, h - ry); + c.arcTo(rx, ry, 0, 0, 1, 0, h - ry); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + c.setGradient('#000000', '#ffffff', 0, 0, w, h, mxConstants.DIRECTION_EAST, 0.4, 0.4); + + c.begin(); + c.moveTo(0, dy * 0.5); + c.arcTo(rx, ry, 0, 0, 0, w, ry); + c.lineTo(w, h - ry); + c.arcTo(rx, ry, 0, 0, 1, 0, h - ry); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(0, dy * 0.5); + c.arcTo(rx, ry, 0, 0, 1, w, ry); + c.lineTo(w, h - ry); + c.arcTo(rx, ry, 0, 0, 1, 0, h - ry); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicCylinder.prototype.cst.CYLINDER, mxShapeInfographicCylinder); + +mxShapeInfographicCylinder.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = 20; + var rx = w * 0.5; + var ry = dy * 0.5; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy * 0.5 + (h - dy) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy * 0.5 + (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy * 0.5 + (h - dy) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy * 0.5 + (h - dy) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy * 0.5 + (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dy * 0.5 + (h - dy) * 0.25)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Circular Callout 2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicCircularCallout2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicCircularCallout2, mxActor); + +mxShapeInfographicCircularCallout2.prototype.cst = {CIRCULAR_CALLOUT_2 : 'mxgraph.infographic.circularCallout2'}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicCircularCallout2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, 'none'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, 'none'); + c.setFillColor(strokeColor); + + var rx = Math.max(0, Math.min(w * 0.5, h * 0.4, h * 0.5 - 7)); + + c.begin(); + c.moveTo(w * 0.5 - 2, 2.15 * rx); + c.arcTo(rx * 0.23, rx * 0.23, 0, 0, 0, w * 0.5 - rx * 0.2, rx * 1.97); + c.arcTo(rx, rx, 0, 0, 1, w * 0.5 - rx, rx); + c.arcTo(rx, rx, 0, 0, 1, w * 0.5, 0); + c.arcTo(rx, rx, 0, 0, 1, w * 0.5 + rx, rx); + c.arcTo(rx, rx, 0, 0, 1, w * 0.5 + rx * 0.2, rx * 1.97); + c.arcTo(rx * 0.23, rx * 0.23, 0, 0, 0, w * 0.5 + 2, 2.15 * rx); + + var rxMin = Math.max(rx * 0.1, 6); + + if (rx * 0.04 > 4) + { + c.lineTo(w * 0.5 + 2, h - rx * 0.22); + c.arcTo(rx * 0.05, rx * 0.05, 0, 0, 0, w * 0.5 + rx * 0.04, h - rx * 0.19); + } + else + { + c.lineTo(w * 0.5 + 2, h - 2 * rxMin); + } + + c.arcTo(rxMin, rxMin, 0, 0, 1, w * 0.5 + rxMin, h - rxMin); + c.arcTo(rxMin, rxMin, 0, 0, 1, w * 0.5, h); + c.arcTo(rxMin, rxMin, 0, 0, 1, w * 0.5 - rxMin, h - rxMin); + + if (rx * 0.04 > 4) + { + c.arcTo(rxMin, rxMin, 0, 0, 1, w * 0.5 - rx * 0.04, h - rx * 0.19); + c.arcTo(rxMin * 0.5, rxMin * 0.5, 0, 0, 0, w * 0.5 - 2, h - rx * 0.22); + } + else + { + c.arcTo(rxMin, rxMin, 0, 0, 1, w * 0.5 - 2, h - 2 * rxMin); + } + + c.close(); + c.moveTo(w * 0.5, rx * 0.2); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5 - rx * 0.8, rx * 0.8); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5, rx * 1.8); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5 + rx * 0.8, rx * 0.8); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5, rx * 0.2); + c.close(); + c.moveTo(w * 0.5, h - rxMin * 1.75); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5 - rxMin * 0.75, h - rxMin ); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5, h - rxMin * 0.25); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5 + rxMin * 0.75, h - rxMin); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5, h - rxMin * 1.75); + c.close(); + c.fill(); + + c.setFillColor(fillColor); + c.setShadow(false); + + c.begin(); + c.moveTo(w * 0.5, rx * 0.2); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5 - rx * 0.8, rx * 0.8); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5, rx * 1.8); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5 + rx * 0.8, rx * 0.8); + c.arcTo(rx * 0.8, rx * 0.8, 0, 0, 0, w * 0.5, rx * 0.2); + c.close(); + c.moveTo(w * 0.5, h - rxMin * 1.75); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5 - rxMin * 0.75, h - rxMin ); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5, h - rxMin * 0.25); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5 + rxMin * 0.75, h - rxMin); + c.arcTo(rxMin * 0.75, rxMin * 0.75, 0, 0, 0, w * 0.5, h - rxMin * 1.75); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicCircularCallout2.prototype.cst.CIRCULAR_CALLOUT_2, mxShapeInfographicCircularCallout2); + +mxShapeInfographicCircularCallout2.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var rx = Math.max(0, Math.min(w * 0.5, h * 0.4, h * 0.5 - 7)); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - rx, rx)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + rx, rx)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Banner Single Fold +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicBannerSingleFold(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; + this.dy = 0.5; + this.dx2 = 0.5; + this.notch = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicBannerSingleFold, mxActor); + +mxShapeInfographicBannerSingleFold.prototype.cst = {BANNER_SINGLE_FOLD : 'mxgraph.infographic.bannerSingleFold'}; + +mxShapeInfographicBannerSingleFold.prototype.customProperties = [ + {name:'dx', dispName: 'Fold Length', type:'float', defVal:32, min:0}, + {name:'dy', dispName: 'Banner Width', type:'float', defVal:17, min:0}, + {name:'notch', dispName: 'Notch', type:'float', defVal:15, min:0} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicBannerSingleFold.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + + dx = Math.min(w - 2 * dy, dx); + + var dx2 = Math.max(0, Math.min(w - dx - 2 * dy, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + + notch = Math.min(dx, notch); + + c.begin(); + c.moveTo(dx2, 0); + c.lineTo(w - dx, 0); + c.lineTo(w - dx, dy); + c.lineTo(w, dy); + c.lineTo(w - notch, (h - dy) * 0.5 + dy); + c.lineTo(w, h); + c.lineTo(w - dx - 2 * dy, h); + c.lineTo(w - dx - 2 * dy, h - dy); + c.lineTo(dx2, h - dy); + c.lineTo(0, (h - dy) * 0.5); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillAlpha('0.05'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(w,dy); + c.lineTo(w - dx, dy); + c.lineTo(w - dx, h - dy); + c.lineTo(w - dx - 2 * dy, h); + c.lineTo(w, h); + c.lineTo(w - notch, (h - dy) * 0.5 + dy); + c.close(); + c.fill(); + + c.setFillAlpha('0.4'); + c.begin(); + c.moveTo(w - dx, h - dy); + c.lineTo(w - dx - 2 * dy, h - dy); + c.lineTo(w - dx - 2 * dy, h); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(dx2, 0); + c.lineTo(w - dx, 0); + c.lineTo(w - dx, dy); + c.lineTo(w, dy); + c.lineTo(w - notch, (h - dy) * 0.5 + dy); + c.lineTo(w, h); + c.lineTo(w - dx - 2 * dy, h); + c.lineTo(w - dx - 2 * dy, h - dy); + c.lineTo(dx2, h - dy); + c.lineTo(0, (h - dy) * 0.5); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicBannerSingleFold.prototype.cst.BANNER_SINGLE_FOLD, mxShapeInfographicBannerSingleFold); + +Graph.handleFactory[mxShapeInfographicBannerSingleFold.prototype.cst.BANNER_SINGLE_FOLD] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, bounds.x + bounds.width - pt.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, pt.y - bounds.y))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var dy = Math.max(0, Math.min(bounds.height / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(dx, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + bounds.width - notch, bounds.y + dy + (bounds.height - dy) * 0.5); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.width, (bounds.width + bounds.x - pt.x)))) / 100; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['dx2'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + var dx2 = Math.max(0, Math.min(bounds.width - dx, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + + return new mxPoint(bounds.x + dx2, bounds.y + (bounds.height - dy) * 0.5); + }, function(bounds, pt) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(bounds.width - dx - 2 * dy, pt.x - bounds.x))) / 100; + }); + + handles.push(handle3); + + + return handles; +}; + +mxShapeInfographicBannerSingleFold.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var notch = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + dx = Math.min(w - 2 * dy, dx); + var dx2 = Math.max(0, Math.min(w - dx - 2 * dy, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + notch = Math.min(dx, notch); + var w2 = w - dx - dx2; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.75, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx * 0.25, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx * 0.5, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx * 0.75, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - notch, (h + dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx - 2 * dy, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - (dx + 2 * dy) * 0.75, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - (dx + 2 * dy) * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - (dx + 2 * dy) * 0.25, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.25, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.5, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.75, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2, h - dy)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Shaded Cube +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicShadedCube(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.isoAngle = 15; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicShadedCube, mxActor); + +mxShapeInfographicShadedCube.prototype.cst = {SHADED_CUBE : 'mxgraph.infographic.shadedCube'}; + +mxShapeInfographicShadedCube.prototype.customProperties = [ + {name:'isoAngle', dispName: 'Perspective', type:'float', defVal:15, min:0} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicShadedCube.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var isoAngle = Math.max(0.01, Math.min(94, parseFloat(mxUtils.getValue(this.style, 'isoAngle', this.isoAngle)))) * Math.PI / 200 ; + var isoH = Math.min(w * Math.tan(isoAngle), h * 0.5); + + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w, isoH); + c.lineTo(w, h - isoH); + c.lineTo(w * 0.5, h); + c.lineTo(0, h - isoH); + c.lineTo(0, isoH); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + + c.begin(); + c.moveTo(w * 0.5, 2 * isoH); + c.lineTo(w, isoH); + c.lineTo(w, h - isoH); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); + + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(w * 0.5, 2 * isoH); + c.lineTo(0, isoH); + c.lineTo(0, h - isoH); + c.lineTo(w * 0.5, h); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicShadedCube.prototype.cst.SHADED_CUBE, mxShapeInfographicShadedCube); + +Graph.handleFactory[mxShapeInfographicShadedCube.prototype.cst.SHADED_CUBE] = function(state) +{ + var handles = [Graph.createHandle(state, ['isoAngle'], function(bounds) + { + var isoAngle = Math.max(0.01, Math.min(94, parseFloat(mxUtils.getValue(this.state.style, 'isoAngle', this.isoAngle)))) * Math.PI / 200 ; + var isoH = Math.min(bounds.width * Math.tan(isoAngle), bounds.height * 0.5); + + return new mxPoint(bounds.x, bounds.y + isoH); + }, function(bounds, pt) + { + this.state.style['isoAngle'] = Math.round(100 * Math.max(0, Math.min(100, pt.y - bounds.y))) / 100; + })]; + + return handles; +}; + +mxShapeInfographicShadedCube.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var isoAngle = Math.max(0.01, Math.min(94, parseFloat(mxUtils.getValue(this.style, 'isoAngle', this.isoAngle)))) * Math.PI / 200 ; + var isoH = Math.min(w * Math.tan(isoAngle), h * 0.5); + + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, isoH * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, isoH + (h - 2 * isoH) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, isoH + (h - 2 * isoH) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, isoH + (h - 2 * isoH) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, h - isoH * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, h - isoH * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, isoH + (h - 2 * isoH) * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, isoH + (h - 2 * isoH) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, isoH + (h - 2 * isoH) * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, isoH)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, isoH * 0.5)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Partial Concentric Ellipse +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicPartConcEllipse(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.startAngle = 0.25; + this.endAngle = 0.75; + this.arcWidth = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicPartConcEllipse, mxActor); + +mxShapeInfographicPartConcEllipse.prototype.cst = {PART_CONC_ELLIPSE : 'mxgraph.infographic.partConcEllipse'}; + +mxShapeInfographicPartConcEllipse.prototype.customProperties = [ + {name:'startAngle', dispName:'Start Angle', min:0, max:1, defVal: 0.25}, + {name:'endAngle', dispName:'End Angle', min:0, max:1, defVal: 0.1}, + {name:'arcWidth', dispName:'Arc Width', min:0, max:1, defVal: 0.5} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicPartConcEllipse.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'startAngle', this.startAngle)))); + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'endAngle', this.endAngle)))); + var arcWidth = 1 - Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'arcWidth', this.arcWidth)))); + var rx = w * 0.5; + var ry = h * 0.5; + var rx2 = rx * arcWidth; + var ry2 = ry * arcWidth; + + var angDiff = endAngle - startAngle; + + if (angDiff < 0) + { + angDiff = angDiff + Math.PI * 2; + } + else if (angDiff == Math.PI) + { + endAngle = endAngle + 0.00001; + } + + var startX = rx + Math.sin(startAngle) * rx; + var startY = ry - Math.cos(startAngle) * ry; + var innerStartX = rx + Math.sin(startAngle) * rx2; + var innerStartY = ry - Math.cos(startAngle) * ry2; + var endX = rx + Math.sin(endAngle) * rx; + var endY = ry - Math.cos(endAngle) * ry; + var innerEndX = rx + Math.sin(endAngle) * rx2; + var innerEndY = ry - Math.cos(endAngle) * ry2; + + var bigArc = 0; + + if (angDiff <= Math.PI) + { + bigArc = 1; + } + + c.begin(); + c.moveTo(rx, 0); + c.arcTo(rx, ry, 0, 0, 1, w, ry); + c.arcTo(rx, ry, 0, 0, 1, rx, h); + c.arcTo(rx, ry, 0, 0, 1, 0, ry); + c.arcTo(rx, ry, 0, 0, 1, rx, 0); + c.close(); + c.moveTo(rx, h * 0.5 - ry2); + c.arcTo(rx2, ry2, 0, 0, 0, w * 0.5 - rx2, ry); + c.arcTo(rx2, ry2, 0, 0, 0, rx, h * 0.5 + ry2); + c.arcTo(rx2, ry2, 0, 0, 0, w * 0.5 + rx2, ry); + c.arcTo(rx2, ry2, 0, 0, 0, rx, h * 0.5 - ry2); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#ffffff'); + + c.begin(); + c.moveTo(startX, startY); + c.arcTo(rx, ry, 0, bigArc, 0, endX, endY); + c.lineTo(innerEndX, innerEndY); + c.arcTo(rx2, ry2, 0, bigArc, 1, innerStartX, innerStartY); + c.close(); + c.fill(); + + var rx = w * 0.5; + var ry = h * 0.5; + var rx2 = rx * arcWidth; + var ry2 = ry * arcWidth; + + var rx3 = rx2 + (rx - rx2) * 0.25; + var ry3 = ry2 + (ry - ry2) * 0.25; + + c.setFillColor('#000000'); + + c.begin(); + c.moveTo(rx, h * 0.5 - ry2); + c.arcTo(rx2, ry2, 0, 0, 1, w * 0.5 + rx2, ry); + c.arcTo(rx2, ry2, 0, 0, 1, rx, h * 0.5 + ry2); + c.arcTo(rx2, ry2, 0, 0, 1, w * 0.5 - rx2, ry); + c.arcTo(rx2, ry2, 0, 0, 1, rx, h * 0.5 - ry2); + c.close(); + c.moveTo(rx, h * 0.5 - ry3); + c.arcTo(rx3, ry3, 0, 0, 0, w * 0.5 - rx3, ry); + c.arcTo(rx3, ry3, 0, 0, 0, rx, h * 0.5 + ry3); + c.arcTo(rx3, ry3, 0, 0, 0, w * 0.5 + rx3, ry); + c.arcTo(rx3, ry3, 0, 0, 0, rx, h * 0.5 - ry3); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicPartConcEllipse.prototype.cst.PART_CONC_ELLIPSE, mxShapeInfographicPartConcEllipse); + +Graph.handleFactory[mxShapeInfographicPartConcEllipse.prototype.cst.PART_CONC_ELLIPSE] = function(state) +{ + var handles = [Graph.createHandle(state, ['startAngle'], function(bounds) + { + var startAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'startAngle', this.startAngle)))); + + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(startAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(startAngle) * bounds.height * 0.5); + }, function(bounds, pt) + { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) + { + res = 1 + res; + } + + this.state.style['startAngle'] = res; + + })]; + + var handle2 = Graph.createHandle(state, ['endAngle'], function(bounds) + { + var endAngle = 2 * Math.PI * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'endAngle', this.endAngle)))); + + return new mxPoint(bounds.x + bounds.width * 0.5 + Math.sin(endAngle) * bounds.width * 0.5, bounds.y + bounds.height * 0.5 - Math.cos(endAngle) * bounds.height * 0.5); + }, function(bounds, pt) + { + var handleX = Math.round(100 * Math.max(-1, Math.min(1, (pt.x - bounds.x - bounds.width * 0.5) / (bounds.width * 0.5)))) / 100; + var handleY = -Math.round(100 * Math.max(-1, Math.min(1, (pt.y - bounds.y - bounds.height * 0.5) / (bounds.height * 0.5)))) / 100; + + var res = 0.5 * Math.atan2(handleX, handleY) / Math.PI; + + if (res < 0) + { + res = 1 + res; + } + + this.state.style['endAngle'] = res; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['arcWidth'], function(bounds) + { + var arcWidth = Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.state.style, 'arcWidth', this.arcWidth)))); + + return new mxPoint(bounds.x + bounds.width / 2, bounds.y + arcWidth * bounds.height * 0.5); + }, function(bounds, pt) + { + this.state.style['arcWidth'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, (pt.y - bounds.y) / (bounds.height * 0.5)))) / 100; + }); + + handles.push(handle3); + + return handles; +}; + +mxShapeInfographicPartConcEllipse.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Banner Half Fold +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicBannerHalfFold(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; + this.dx2 = 0.5; + this.notch = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicBannerHalfFold, mxActor); + +mxShapeInfographicBannerHalfFold.prototype.cst = {BANNER_HALF_FOLD : 'mxgraph.infographic.bannerHalfFold'}; + +mxShapeInfographicBannerHalfFold.prototype.customProperties = [ + {name:'dx', dispName:'Banner Width', min:0, defVal: 40}, + {name:'dx2', dispName:'Spike Size', min:0, defVal: 20}, + {name:'notch', dispName:'Notch Size', min:0, defVal: 15} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicBannerHalfFold.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dx2 = Math.max(0, Math.min(w - dx, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(h - dx, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + + c.begin(); + c.moveTo(dx2, 0); + c.lineTo(w - dx, 0); + c.lineTo(w, dx); + c.lineTo(w, h); + c.lineTo(w - dx * 0.5, h - notch); + c.lineTo(w - dx, h); + c.lineTo(w - dx, dx); + c.lineTo(dx2, dx); + c.lineTo(0, dx * 0.5); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + c.begin(); + c.moveTo(w - dx, dx); + c.lineTo(w, dx); + c.lineTo(w, h); + c.lineTo(w - dx * 0.5, h - notch); + c.lineTo(w - dx, h); + c.lineTo(w - dx, dx); + c.lineTo(0, dx); + c.close(); + c.fill(); + + c.begin(); + c.moveTo(dx2, 0); + c.lineTo(w - dx, 0); + c.lineTo(w, dx); + c.lineTo(w, h); + c.lineTo(w - dx * 0.5, h - notch); + c.lineTo(w - dx, h); + c.lineTo(w - dx, dx); + c.lineTo(dx2, dx); + c.lineTo(0, dx * 0.5); + c.close(); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicBannerHalfFold.prototype.cst.BANNER_HALF_FOLD, mxShapeInfographicBannerHalfFold); + +Graph.handleFactory[mxShapeInfographicBannerHalfFold.prototype.cst.BANNER_HALF_FOLD] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + return new mxPoint(bounds.x + bounds.width - dx, bounds.y + dx); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, bounds.x + bounds.width - pt.x))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['notch'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var notch = Math.max(0, Math.min(bounds.height - dx, parseFloat(mxUtils.getValue(this.state.style, 'notch', this.notch)))); + + return new mxPoint(bounds.x + bounds.width - dx * 0.5, bounds.y + bounds.height - notch); + }, function(bounds, pt) + { + this.state.style['notch'] = Math.round(100 * Math.max(0, Math.min(bounds.height, (bounds.height + bounds.y - pt.y)))) / 100; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['dx2'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dx2 = Math.max(0, Math.min(bounds.width - dx, parseFloat(mxUtils.getValue(this.state.style, 'dx2', this.dx2)))); + + return new mxPoint(bounds.x + dx2, bounds.y + dx); + }, function(bounds, pt) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + + this.state.style['dx2'] = Math.round(100 * Math.max(0, Math.min(bounds.width - dx, pt.x - bounds.x))) / 100; + }); + + handles.push(handle3); + + return handles; +}; + +mxShapeInfographicBannerHalfFold.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dx2 = Math.max(0, Math.min(w - dx, parseFloat(mxUtils.getValue(this.style, 'dx2', this.dx2)))); + var notch = Math.max(0, Math.min(h - dx, parseFloat(mxUtils.getValue(this.style, 'notch', this.notch)))); + var w2 = w - dx - dx2; + var h2 = h - dx; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, dx * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.75, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx * 0.5, dx * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dx + h2 * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dx + h2 * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, dx + h2 * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx * 0.5, h - notch)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dx + h2 * 0.75)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dx + h2 * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dx + h2 * 0.25)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - dx, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.25, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.5, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2 + w2 * 0.75, dx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx2, dx)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Circular Dial +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicCircularDial(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dy = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicCircularDial, mxActor); + +mxShapeInfographicCircularDial.prototype.cst = {CIRCULAR_DIAL : 'mxgraph.infographic.circularDial'}; + +mxShapeInfographicCircularDial.prototype.customProperties = [ + {name:'dy', dispName:'Hole Size', min:0, defVal: 15} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicCircularDial.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy = Math.max(0, Math.min(h * 0.5 - 10, w * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + var rx = Math.max(0, Math.min(w * 0.5, h * 0.5 - 10)); + var rx2 = rx - dy; + + c.begin(); + c.moveTo(w * 0.5 - rx, h); + c.lineTo(w * 0.5 - rx, rx); + c.arcTo(rx, rx, 0, 0, 1, w * 0.5, 0); + c.arcTo(rx, rx, 0, 0, 1, w * 0.5 + rx, rx); + c.lineTo(w * 0.5 + rx, h); + c.close(); + c.moveTo(w * 0.5, dy); + c.arcTo(rx2, rx2, 0, 0, 0, w * 0.5 - rx2, rx); + c.arcTo(rx2, rx2, 0, 0, 0, w * 0.5, rx + rx2); + c.arcTo(rx2, rx2, 0, 0, 0, w * 0.5 + rx2, rx); + c.arcTo(rx2, rx2, 0, 0, 0, w * 0.5, dy); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#000000'); + + c.begin(); + c.moveTo(w * 0.5 - rx, 2 * rx); + c.lineTo(w * 0.5 + rx, 2 * rx); + c.lineTo(w * 0.5 + rx, h); + c.lineTo(w * 0.5 - rx, h); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicCircularDial.prototype.cst.CIRCULAR_DIAL, mxShapeInfographicCircularDial); + +Graph.handleFactory[mxShapeInfographicCircularDial.prototype.cst.CIRCULAR_DIAL] = function(state) +{ + var handles = [Graph.createHandle(state, ['dy'], function(bounds) + { + var dy = Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + bounds.width * 0.5, bounds.y + dy); + }, function(bounds, pt) + { + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height / 2, bounds.width / 2, pt.y - bounds.y))) / 100; + })]; + + return handles; +}; + +mxShapeInfographicCircularDial.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dy = Math.max(0, Math.min(h * 0.5 - 10, w * 0.5, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var rx = Math.max(0, Math.min(w * 0.5, h * 0.5 - 10)); + var rx2 = rx - dy; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - rx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - rx, (rx + h) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - rx, rx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - rx * 0.71, rx * 0.29)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + rx * 0.71, rx * 0.29)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + rx, rx)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + rx, (rx + h) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + rx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 + rx * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5 - rx * 0.5, h)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Simple ribbon +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicRibbonSimple(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.notch1 = 0.5; + this.notch2 = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicRibbonSimple, mxActor); + +mxShapeInfographicRibbonSimple.prototype.cst = {RIBBON_SIMPLE : 'mxgraph.infographic.ribbonSimple'}; + +mxShapeInfographicRibbonSimple.prototype.customProperties = [ + {name:'notch1', dispName:'Notch Size', min:0, defVal: 20}, + {name:'notch2', dispName:'Spike Size', min:0, defVal: 20} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicRibbonSimple.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var notch1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch1', this.notch2)))); + var notch2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch2', this.notch2)))); + + c.begin(); + c.moveTo(0, h); + c.lineTo(notch1, h * 0.5); + c.lineTo(0, 0); + c.lineTo(w - notch2, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w - notch2, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicRibbonSimple.prototype.cst.RIBBON_SIMPLE, mxShapeInfographicRibbonSimple); + +Graph.handleFactory[mxShapeInfographicRibbonSimple.prototype.cst.RIBBON_SIMPLE] = function(state) +{ + var handles = [Graph.createHandle(state, ['notch1'], function(bounds) + { + var notch1 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch1', this.notch1)))); + + return new mxPoint(bounds.x + notch1, bounds.y + bounds.height * 0.5); + }, function(bounds, pt) + { + this.state.style['notch1'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + })]; + + var handle2 = Graph.createHandle(state, ['notch2'], function(bounds) + { + var notch2 = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'notch2', this.notch2)))); + + return new mxPoint(bounds.x + bounds.width - notch2, bounds.y); + }, function(bounds, pt) + { + this.state.style['notch2'] = Math.round(100 * Math.max(0, Math.min(bounds.width, (bounds.width + bounds.x - pt.x)))) / 100; + }); + + handles.push(handle2); + + return handles; +}; + +mxShapeInfographicRibbonSimple.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var notch1 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch1', this.notch2)))); + var notch2 = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'notch2', this.notch2)))); + var w2 = w - notch2; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 * 0.25, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 * 0.5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 * 0.75, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 * 0.75, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w2 * 0.25, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, notch1, h * 0.5)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Bar with callout +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicBarCallout(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; + this.dy = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicBarCallout, mxActor); + +mxShapeInfographicBarCallout.prototype.cst = {BAR_CALLOUT : 'mxgraph.infographic.barCallout'}; + +mxShapeInfographicBarCallout.prototype.customProperties = [ + {name:'dx', dispName:'Callout Position', min:0, defVal: 100}, + {name:'dy', dispName:'Callout Size', min:0, defVal: 30} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicBarCallout.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + var x1 = Math.max(dx - dy * 0.35, 0); + var x2 = Math.min(dx + dy * 0.35, w); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h - dy); + c.lineTo(x2, h - dy); + c.lineTo(dx, h); + c.lineTo(x1, h - dy); + c.lineTo(0, h - dy); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicBarCallout.prototype.cst.BAR_CALLOUT, mxShapeInfographicBarCallout); + +mxShapeInfographicBarCallout.prototype.constraints = null; + +Graph.handleFactory[mxShapeInfographicBarCallout.prototype.cst.BAR_CALLOUT] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + dx, bounds.y + bounds.height - dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height, bounds.y + bounds.height - pt.y))) / 100; + })]; + + return handles; +}; + +mxShapeInfographicBarCallout.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + var x1 = Math.max(dx - dy * 0.35, 0); + var x2 = Math.min(dx + dy * 0.35, w); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Flag +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeInfographicFlag(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; + this.dx = 0.5; + this.dy = 0.5; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeInfographicFlag, mxActor); + +mxShapeInfographicFlag.prototype.cst = {FLAG : 'mxgraph.infographic.flag'}; + +mxShapeInfographicFlag.prototype.customProperties = [ + {name:'dx', dispName:'Pole Width', min:0, defVal: 30}, + {name:'dy', dispName:'Spike Size', min:0, defVal: 20} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeInfographicFlag.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h - dy); + c.lineTo(dx, h - dy); + c.lineTo(dx * 0.5, h); + c.lineTo(0, h - dy); + c.close(); + c.fillAndStroke(); + + c.setShadow(false); + c.setFillAlpha('0.2'); + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(0, 0); + c.lineTo(dx, 0); + c.lineTo(dx, h - dy); + c.lineTo(dx * 0.5, h); + c.lineTo(0, h - dy); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape(mxShapeInfographicFlag.prototype.cst.FLAG, mxShapeInfographicFlag); + +Graph.handleFactory[mxShapeInfographicFlag.prototype.cst.FLAG] = function(state) +{ + var handles = [Graph.createHandle(state, ['dx', 'dy'], function(bounds) + { + var dx = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(bounds.height, parseFloat(mxUtils.getValue(this.state.style, 'dy', this.dy)))); + + return new mxPoint(bounds.x + dx, bounds.y + bounds.height - dy); + }, function(bounds, pt) + { + this.state.style['dx'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + this.state.style['dy'] = Math.round(100 * Math.max(0, Math.min(bounds.height, bounds.y + bounds.height - pt.y))) / 100; + })]; + + return handles; +}; + +mxShapeInfographicFlag.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + var dx = Math.max(0, Math.min(w, parseFloat(mxUtils.getValue(this.style, 'dx', this.dx)))); + var dy = Math.max(0, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'dy', this.dy)))); + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - dy) * 0.5)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.75, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.5, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w * 0.25, h - dy)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx * 0.5, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, dx * 0.5, 0)); + + return (constr); +}; + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxLeanMap.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxLeanMap.js new file mode 100644 index 0000000000000..15a899d5cfc43 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxLeanMap.js @@ -0,0 +1,2229 @@ +/** + * $Id: mxLeanMap.js,v 1.3 2013/05/30 14:19:14 mate Exp $ + * Copyright (c) 2006-2013, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Boat Shipment +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxLeanBoatShipment(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxLeanBoatShipment, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxLeanBoatShipment.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.begin(); + c.moveTo(w * 0.15, h * 0.77); + c.lineTo(w * 0.5, 0); + c.lineTo(w * 0.85, h * 0.77); + c.close(); + c.moveTo(w * 0.2, h); + c.lineTo(0, h * 0.8); + c.lineTo(w, h * 0.8); + c.lineTo(w * 0.8, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.boat_shipment', mxLeanBoatShipment); + +mxLeanBoatShipment.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), false), + new mxConnectionConstraint(new mxPoint(0.5, 1), false), + new mxConnectionConstraint(new mxPoint(0, 0.8), false), + new mxConnectionConstraint(new mxPoint(1, 0.8), false), + new mxConnectionConstraint(new mxPoint(0.2, 1), false), + new mxConnectionConstraint(new mxPoint(0.8, 1), false), + new mxConnectionConstraint(new mxPoint(0.26, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.74, 0.5), false) + ]; + +//********************************************************************************************************************************************************** +//Safety Stock +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxLeanSafetyStock(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxLeanSafetyStock, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxLeanSafetyStock.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxLeanSafetyStock.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxLeanSafetyStock.prototype.foreground = function(c, w, h) +{ + c.begin(); + c.moveTo(0, h * 0.34); + c.lineTo(w, h * 0.34); + c.moveTo(0, h * 0.66); + c.lineTo(w, h * 0.66); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.buffer_or_safety_stock', mxLeanSafetyStock); + +mxLeanSafetyStock.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0), true), + new mxConnectionConstraint(new mxPoint(1, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Data Box +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxLeanDataBox(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxLeanDataBox, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxLeanDataBox.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxLeanDataBox.prototype.background = function(c, w, h) +{ + c.begin(); + c.moveTo(0, h); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.fillAndStroke(); +}; + +mxLeanDataBox.prototype.foreground = function(c, w, h) +{ + c.begin(); + c.moveTo(0, h * 0.2); + c.lineTo(w, h * 0.2); + c.moveTo(0, h * 0.4); + c.lineTo(w, h * 0.4); + c.moveTo(0, h * 0.6); + c.lineTo(w, h * 0.6); + c.moveTo(0, h * 0.8); + c.lineTo(w, h * 0.8); + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.data_box', mxLeanDataBox); + +mxLeanDataBox.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0), true), + new mxConnectionConstraint(new mxPoint(1, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Customer / Supplier +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxLeanCustomerSupplier(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxLeanCustomerSupplier, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxLeanCustomerSupplier.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + this.background(c, w, h); + c.setShadow(false); +}; + +mxLeanCustomerSupplier.prototype.background = function(c, w, h) +{ + c.begin(); + c.moveTo(0, h); + c.lineTo(0, h * 0.3); + c.lineTo(w * 0.33, h * 0.02); + c.lineTo(w * 0.33, h * 0.3); + c.lineTo(w * 0.67, h * 0.02); + c.lineTo(w * 0.67, h * 0.3); + c.lineTo(w, h * 0.02); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.outside_sources', mxLeanCustomerSupplier); + +mxLeanCustomerSupplier.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(1, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.33, 0), true), + new mxConnectionConstraint(new mxPoint(0.67, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.3), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Dedicated Process +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxLeanDedicatedProcess(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxLeanDedicatedProcess, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxLeanDedicatedProcess.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var fontSize = parseFloat(mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8')); + + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h, fontSize); +}; + +mxLeanDedicatedProcess.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxLeanDedicatedProcess.prototype.foreground = function(c, w, h, fontSize) +{ + var lineH = Math.min(fontSize * 1.5, h); + c.begin(); + c.moveTo(0, lineH); + c.lineTo(w, lineH); + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.manufacturing_process', mxLeanDedicatedProcess); + +mxLeanDedicatedProcess.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0), true), + new mxConnectionConstraint(new mxPoint(1, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Shared Process +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxLeanSharedProcess(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxLeanSharedProcess, mxShape); + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxLeanSharedProcess.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var fontSize = parseFloat(mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8')); + + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h, fontSize); +}; + +mxLeanSharedProcess.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxLeanSharedProcess.prototype.foreground = function(c, w, h, fontSize) +{ + var lineH = Math.min(fontSize * 1.5, h); + c.begin(); + c.moveTo(0, lineH); + c.lineTo(w, lineH); + c.stroke(); + + var start = 0; + var i = 0; + var s = 10; + var offset = 0; + c.begin(); + var strokeWidth = parseFloat(mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '2')); + c.setStrokeWidth(strokeWidth * 0.5); + + while (start < h + w) + { + start = start + s; + if (start > lineH) + { + var startX = Math.max(0, start - h); + var startY = Math.min(start, h); + + var endX = Math.min(start - lineH, w); + + var endY = lineH; + var endY = Math.max(start - w, lineH); + + if (startX < w) + { + c.moveTo(startX, startY); + c.lineTo(endX, endY); + } + } + }; + + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.manufacturing_process_shared', mxLeanSharedProcess); + +mxLeanSharedProcess.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0), true), + new mxConnectionConstraint(new mxPoint(1, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +// Workcell +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanWorkcell(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanWorkcell, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanWorkcell.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(w * 0.65, h); + c.lineTo(w * 0.65, h * 0.4); + c.lineTo(w * 0.35, h * 0.4); + c.lineTo(w * 0.35, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.work_cell', mxLeanWorkcell); + +mxLeanWorkcell.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0), true), + new mxConnectionConstraint(new mxPoint(1, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Inventory Box +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanInventoryBox(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanInventoryBox, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanInventoryBox.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(0, h); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h); + c.close(); + c.fillAndStroke(); + c.setShadow(false); + c.begin(); + c.moveTo(w * 0.4, h * 0.45); + c.lineTo(w * 0.6, h * 0.45); + c.moveTo(w * 0.5, h * 0.45); + c.lineTo(w * 0.5, h * 0.85); + c.moveTo(w * 0.4, h * 0.85); + c.lineTo(w * 0.6, h * 0.85); + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.inventory_box', mxLeanInventoryBox); + +mxLeanInventoryBox.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.375, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.25, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.125, 0.75), false), + new mxConnectionConstraint(new mxPoint(0.625, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.75, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.875, 0.75), false), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Push Arrow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanPushArrow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanPushArrow, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanPushArrow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxLeanPushArrow.prototype.background = function(c, w, h) +{ + c.begin(); + c.moveTo(0, h * 0.17); + c.lineTo(w * 0.75, h * 0.17); + c.lineTo(w * 0.75, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.75, h); + c.lineTo(w * 0.75, h * 0.83); + c.lineTo(0, h * 0.83); + c.close(); + c.fillAndStroke(); +}; + +mxLeanPushArrow.prototype.foreground = function(c, w, h, fontSize) +{ + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.rect(0, h * 0.17, w * 0.12, h * 0.66); + c.fill(); + c.rect(w * 0.24, h * 0.17, w * 0.12, h * 0.66); + c.fill(); + c.rect(w * 0.48, h * 0.17, w * 0.12, h * 0.66); + c.fill(); + + c.begin(); + c.moveTo(w * 0.72, h * 0.17); + c.lineTo(w * 0.75, h * 0.17); + c.lineTo(w * 0.75, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.75, h); + c.lineTo(w * 0.75, h * 0.83); + c.lineTo(w * 0.72, h * 0.83); + c.close(); + c.fill(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.push_arrow', mxLeanPushArrow); + +mxLeanPushArrow.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.25, 0.17), false), + new mxConnectionConstraint(new mxPoint(0.5, 0.17), false), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.17), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.83), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.25, 0.83), false), + new mxConnectionConstraint(new mxPoint(0.5, 0.83), false), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Supermarket +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanSupermarket(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanSupermarket, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanSupermarket.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.moveTo(0, h * 0.33); + c.lineTo(w, h * 0.33); + c.moveTo(0, h * 0.67); + c.lineTo(w, h * 0.67); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.supermarket', mxLeanSupermarket); + +mxLeanSupermarket.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0), true), + new mxConnectionConstraint(new mxPoint(1, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Material Pull +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanMaterialPull(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanMaterialPull, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanMaterialPull.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(w * 0.732, h * 0.0736); + c.arcTo(w * 0.4827, h * 0.4959, 0, 1, 0, w * 0.9553, h * 0.6191); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.9071, h * 0.6191); + c.lineTo(w * 0.9794, h * 0.4951); + c.lineTo(w, h * 0.6438); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.physical_pull', mxLeanMaterialPull); + +mxLeanMaterialPull.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.98, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.144, 0.144), false), + new mxConnectionConstraint(new mxPoint(0.144, 0.845), false), + new mxConnectionConstraint(new mxPoint(0.845, 0.845), false) + ]; + +//********************************************************************************************************************************************************** +//FIFO Lane +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanFifoLane(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanFifoLane, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanFifoLane.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + var fontSize = parseFloat(mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '8')); + + this.background(c, w, h, fontSize); + c.setShadow(false); +}; + +mxLeanFifoLane.prototype.background = function(c, w, h, fontSize) +{ + var lineH = Math.min(fontSize * 1.5, h); + c.begin(); + c.moveTo(0, lineH); + c.lineTo(w, lineH); + c.moveTo(0, h); + c.lineTo(w, h); + c.stroke(); + + c.rect(w * 0.02, lineH + 4, w * 0.26, h - lineH - 8); + c.fillAndStroke(); + + c.ellipse(w * 0.35, lineH + 4, w * 0.26, h - lineH - 8); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.69, lineH + 4); + c.lineTo(w * 0.98, lineH + 4); + c.lineTo(w * 0.835, h - 4); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.fifo_lane', mxLeanFifoLane); + +mxLeanFifoLane.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Truck Shipment +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanTruckShipment(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanTruckShipment, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanTruckShipment.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + this.background(c, w, h); + c.setShadow(false); +}; + +mxLeanTruckShipment.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w * 0.6, h * 0.8); + c.fillAndStroke(); + + c.rect(w * 0.6, h * 0.35, w * 0.4, h * 0.45); + c.fillAndStroke(); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.ellipse(w * 0.15, h * 0.8, w * 0.2, h * 0.2); + c.fillAndStroke(); + + c.ellipse(w * 0.65, h * 0.8, w * 0.2, h * 0.2); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.truck_shipment', mxLeanTruckShipment); + +mxLeanTruckShipment.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.6, 0.35), false), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 0.8), false), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Production Control +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanProductionControl(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanProductionControl, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanProductionControl.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.schedule', mxLeanProductionControl); + +mxLeanProductionControl.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0), true), + new mxConnectionConstraint(new mxPoint(1, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + + +//********************************************************************************************************************************************************** +//FIFO Sequence +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanFifoSequence(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanFifoSequence, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanFifoSequence.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.moveTo(0, h); + c.lineTo(w, h); + c.moveTo(w * 0.05, h * 0.5); + c.lineTo(w * 0.15, h * 0.5); + c.moveTo(w * 0.75, h * 0.5); + c.lineTo(w * 0.88, h * 0.5); + c.stroke(); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.88, h * 0.39); + c.lineTo(w * 0.98, h * 0.5); + c.lineTo(w * 0.88, h * 0.61); + c.fillAndStroke(); + +// c.setFontSize(Math.min(h * 0.5, w * 0.2)); +// c.setFontColor(strokeColor); +// c.text(w * 0.5, h * 0.5, 0, 0, 'FIFO', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.fifo_sequence_flow', mxLeanFifoSequence); + +mxLeanFifoSequence.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0), true), + new mxConnectionConstraint(new mxPoint(1, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Production Kanban +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanProductionKanban(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanProductionKanban, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanProductionKanban.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.setDashed(true); + c.begin(); + c.moveTo(4, h - 10); + c.lineTo(4, 25); + c.lineTo(w, 25); + c.stroke(); + + c.setDashed(false); + c.begin(); + c.moveTo(w - 75, 0); + c.lineTo(w - 30, 0); + c.lineTo(w - 15, 15); + c.lineTo(w - 15, 50); + c.lineTo(w - 75, 50); + c.close(); + c.fillAndStroke(); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(0, h - 10); + c.lineTo(4, h); + c.lineTo(8, h - 10); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.production_kanban', mxLeanProductionKanban); + +mxLeanProductionKanban.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 4, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, 25)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Withdrawal Kanban +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanWithdrawalKanban(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanWithdrawalKanban, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanWithdrawalKanban.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.setDashed(true); + c.begin(); + c.moveTo(4, h - 10); + c.lineTo(4, 25); + c.lineTo(w, 25); + c.stroke(); + + c.setDashed(false); + c.begin(); + c.moveTo(w - 75, 0); + c.lineTo(w - 30, 0); + c.lineTo(w - 15, 15); + c.lineTo(w - 15, 50); + c.lineTo(w - 75, 50); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w - 75, 45); + c.lineTo(w - 70, 50); + c.moveTo(w - 75, 35); + c.lineTo(w - 60, 50); + c.moveTo(w - 75, 25); + c.lineTo(w - 50, 50); + c.moveTo(w - 75, 15); + c.lineTo(w - 40, 50); + c.moveTo(w - 75, 5); + c.lineTo(w - 30, 50); + c.moveTo(w - 70, 0); + c.lineTo(w - 20, 50); + c.moveTo(w - 60, 0); + c.lineTo(w - 15, 45); + c.moveTo(w - 50, 0); + c.lineTo(w - 15, 35); + c.moveTo(w - 40, 0); + c.lineTo(w - 15, 25); + c.stroke(); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(0, h - 10); + c.lineTo(4, h); + c.lineTo(8, h - 10); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.withdrawal_kanban', mxLeanWithdrawalKanban); + +mxLeanWithdrawalKanban.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 4, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, 25)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Signal Kanban +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanSignalKanban(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanSignalKanban, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanSignalKanban.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.setDashed(true); + c.begin(); + c.moveTo(4, h - 10); + c.lineTo(4, 15); + c.lineTo(w, 15); + c.stroke(); + + c.setDashed(false); + c.begin(); + c.moveTo(w - 65, 0); + c.lineTo(w - 25, 0); + c.lineTo(w - 45, 45); + c.close(); + c.fillAndStroke(); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(0, h - 10); + c.lineTo(4, h); + c.lineTo(8, h - 10); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.signal_kanban', mxLeanSignalKanban); + +mxLeanSignalKanban.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 4, h)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w, 15)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Sequenced Pull Ball +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanSequencedPullBall(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanSequencedPullBall, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanSequencedPullBall.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.setShadow(false); + + c.ellipse(w * 0.15, h * 0.15, w * 0.7, h * 0.7); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.sequenced_pull_ball', mxLeanSequencedPullBall); + +mxLeanSequencedPullBall.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.144, 0.144), false), + new mxConnectionConstraint(new mxPoint(0.856, 0.144), false), + new mxConnectionConstraint(new mxPoint(0.856, 0.856), false), + new mxConnectionConstraint(new mxPoint(0.144, 0.856), false), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Rail Shipment +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanRailShipment(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanRailShipment, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanRailShipment.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.rect(w * 0.1, 0, w * 0.35, h * 0.8); + c.fillAndStroke(); + c.rect(w * 0.55, 0, w * 0.35, h * 0.8); + c.fillAndStroke(); + + c.begin(); + c.moveTo(0, h); + c.lineTo(w, h); + c.moveTo(w * 0.45, h * 0.7); + c.lineTo(w * 0.55, h * 0.7); + c.stroke(); + + c.ellipse(w * 0.15, h * 0.8, w * 0.06, h * 0.2); + c.fillAndStroke(); + c.ellipse(w * 0.34, h * 0.8, w * 0.06, h * 0.2); + c.fillAndStroke(); + c.ellipse(w * 0.6, h * 0.8, w * 0.06, h * 0.2); + c.fillAndStroke(); + c.ellipse(w * 0.79, h * 0.8, w * 0.06, h * 0.2); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.rail_shipment', mxLeanRailShipment); + +mxLeanRailShipment.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0.1, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.1, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.1, 0.75), false), + new mxConnectionConstraint(new mxPoint(0.9, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.9, 0.5), false), + new mxConnectionConstraint(new mxPoint(0.9, 0.75), false), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Warehouse +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanWarehouse(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanWarehouse, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanWarehouse.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.rect(0, 0, w, h); + c.fillAndStroke(); + + c.setShadow(false); + + c.begin(); + c.moveTo(0, h * 0.4); + c.lineTo(w, h * 0.4); + c.moveTo(w * 0.15, h); + c.lineTo(w * 0.15, h * 0.55); + c.lineTo(w * 0.3, h * 0.55); + c.lineTo(w * 0.3, h); + c.stroke(); + + c.ellipse(w * 0.27, h * 0.75, w * 0.02, w * 0.02); + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.warehouse', mxLeanWarehouse); + +mxLeanWarehouse.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0), true), + new mxConnectionConstraint(new mxPoint(1, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Timeline +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanTimeline(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanTimeline, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanTimeline.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var shapeInfo = mxUtils.getValue(this.style, 'mainText', '20,Time 1,50,Time 2,30,Time 3,40,Time 4,30,Time 5,50,Time 6,20,Time 7').toString().split(','); + var fontSize = mxUtils.getValue(this.style, mxConstants.STYLE_FONTSIZE, '12'); + var times = new Array(); + var totalTime = 0; + + for (var i = 0; i < shapeInfo.length; i = i + 2) + { + var currTime = parseFloat(shapeInfo[i]); + times.push(currTime); + totalTime = totalTime + currTime; + }; + + var scaleX = w / totalTime; + var names = new Array(); + + for (var i = 1; i < shapeInfo.length; i = i + 2) + { + names.push(shapeInfo[i]); + }; + + c.begin(); + var currX = 0; + c.moveTo(0, h); + + for (var i = 0; i < names.length; i++) + { + var currTime = times[i] * scaleX; + currX = currX + currTime; + + if (i % 2 === 0) + { + c.lineTo(currX, h); + c.lineTo(currX, fontSize * 1.5); + c.text(currX - currTime * 0.5, h - fontSize * 0.75, 0, 0, names[i], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + else + { + c.lineTo(currX, fontSize * 1.5); + c.lineTo(currX, h); + c.text(currX - currTime * 0.5, fontSize * 0.75, 0, 0, names[i], mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + }; + + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.timeline', mxLeanTimeline); + +//********************************************************************************************************************************************************** +//Cross Dock +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanCrossDock(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanCrossDock, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanCrossDock.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.rect(0, 0, w, h); + c.fillAndStroke(); + + c.setShadow(false); + + c.begin(); + c.moveTo(0, h * 0.25); + c.lineTo(w, h * 0.25); + + c.moveTo(w * 0.1, h * 0.4); + c.lineTo(w * 0.35, h * 0.4); + c.arcTo(w * 0.15, h * 0.15, 0, 0, 1, w * 0.5, h * 0.5); + c.arcTo(w * 0.15, h * 0.15, 0, 0, 0, w * 0.65, h * 0.6); + c.lineTo(w * 0.9, h * 0.6); + c.stroke(); + + c.moveTo(w * 0.1, h * 0.4); + c.lineTo(w * 0.35, h * 0.4); + c.arcTo(w * 0.15, h * 0.25, 0, 0, 1, w * 0.5, h * 0.55); + c.arcTo(w * 0.15, h * 0.25, 0, 0, 0, w * 0.65, h * 0.7); + c.lineTo(w * 0.9, h * 0.7); + c.stroke(); + + c.moveTo(w * 0.1, h * 0.4); + c.lineTo(w * 0.35, h * 0.4); + c.arcTo(w * 0.15, h * 0.3, 0, 0, 1, w * 0.5, h * 0.6); + c.arcTo(w * 0.15, h * 0.3, 0, 0, 0, w * 0.65, h * 0.8); + c.lineTo(w * 0.9, h * 0.8); + c.stroke(); + + c.moveTo(w * 0.1, h * 0.8); + c.lineTo(w * 0.35, h * 0.8); + c.arcTo(w * 0.15, h * 0.3, 0, 0, 0, w * 0.5, h * 0.6); + c.arcTo(w * 0.15, h * 0.3, 0, 0, 1, w * 0.65, h * 0.4); + c.lineTo(w * 0.9, h * 0.4); + c.stroke(); + + c.moveTo(w * 0.1, h * 0.8); + c.lineTo(w * 0.35, h * 0.8); + c.arcTo(w * 0.15, h * 0.1, 0, 0, 0, w * 0.5, h * 0.75); + c.arcTo(w * 0.15, h * 0.1, 0, 0, 1, w * 0.65, h * 0.7); + c.lineTo(w * 0.9, h * 0.7); + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.crossDock', mxLeanCrossDock); + +mxLeanCrossDock.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0), true), + new mxConnectionConstraint(new mxPoint(1, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Orders +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanOrders(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanOrders, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanOrders.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.rect(0, h * 0.56, w, h * 0.44); + c.fillAndStroke(); + + var strokeWidth = parseFloat(mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '2')); + c.setStrokeWidth(strokeWidth * 0.5); + + c.begin(); + c.moveTo(w * 0.04, h * 0.5418); + c.lineTo(w * 0.94, h * 0.5418); + c.moveTo(w * 0.0522, h * 0.5088); + c.lineTo(w * 0.9522, h * 0.5088); + c.moveTo(w * 0.05, h * 0.4738); + c.lineTo(w * 0.95, h * 0.4738); + c.moveTo(w * 0.0456, h * 0.4427); + c.lineTo(w * 0.9456, h * 0.4427); + c.moveTo(w * 0.0422, h * 0.4135); + c.lineTo(w * 0.9422, h * 0.4135); + c.moveTo(w * 0.0533, h * 0.3804); + c.lineTo(w * 0.9533, h * 0.3804); + c.moveTo(w * 0.0556, h * 0.3454); + c.lineTo(w * 0.9556, h * 0.3454); + c.moveTo(w * 0.05, h * 0.3143); + c.lineTo(w * 0.95, h * 0.3143); + c.moveTo(w * 0.0489, h * 0.2832); + c.lineTo(w * 0.0489, h * 0.2832); + c.moveTo(w * 0.0544, h * 0.254); + c.lineTo(w * 0.9544, h * 0.254); + c.moveTo(w * 0.0489, h * 0.221); + c.lineTo(w * 0.9489, h * 0.221); + c.moveTo(w * 0.0556, h * 0.1918); + c.lineTo(w * 0.9556, h * 0.1918); + c.moveTo(w * 0.0522, h * 0.1587); + c.lineTo(w * 0.9522, h * 0.1587); + c.moveTo(w * 0.0544, h * 0.1276); + c.lineTo(w * 0.9544, h * 0.1276); + c.moveTo(w * 0.0544, h * 0.0965); + c.lineTo(w * 0.9544, h * 0.0965); + c.moveTo(w * 0.0556, h * 0.0654); + c.lineTo(w * 0.9556, h * 0.0654); + c.moveTo(w * 0.0533, h * 0.0304); + c.lineTo(w * 0.9533, h * 0.0304); + c.moveTo(w * 0.0556, 0); + c.lineTo(w * 0.9556, 0); + c.stroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.orders', mxLeanOrders); + +mxLeanOrders.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.05, 0), true), + new mxConnectionConstraint(new mxPoint(0.95, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.75, 0), true), + new mxConnectionConstraint(new mxPoint(0.05, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.05, 0.5), false), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.95, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.95, 0.5), false), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Batched Kanban +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanBatchedKanban(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanBatchedKanban, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanBatchedKanban.prototype.paintVertexShape = function(c, x, y, w, h) +{ + w = Math.max(110, w); + + c.translate(x, y); + + c.begin(); + c.moveTo(4, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + + c.begin(); + c.moveTo(w * 0.5 - 20, h * 0.5 - 35); + c.lineTo(w * 0.5 + 25, h * 0.5 - 35); + c.lineTo(w * 0.5 + 40, h * 0.5 - 20); + c.lineTo(w * 0.5 + 40, h * 0.5 + 15); + c.lineTo(w * 0.5 - 20, h * 0.5 + 15); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5 - 30, h * 0.5 - 25); + c.lineTo(w * 0.5 + 15, h * 0.5 - 25); + c.lineTo(w * 0.5 + 30, h * 0.5 - 10); + c.lineTo(w * 0.5 + 30, h * 0.5 + 25); + c.lineTo(w * 0.5 - 30, h * 0.5 + 25); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5 - 40, h * 0.5 - 15); + c.lineTo(w * 0.5 + 5, h * 0.5 - 15); + c.lineTo(w * 0.5 + 20, h * 0.5); + c.lineTo(w * 0.5 + 20, h * 0.5 + 35); + c.lineTo(w * 0.5 - 40, h * 0.5 + 35); + c.close(); + c.fillAndStroke(); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w - 10, h * 0.5 - 4); + c.lineTo(w, h * 0.5); + c.lineTo(w - 10, h * 0.5 + 4); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.batched_kanban', mxLeanBatchedKanban); + +mxLeanBatchedKanban.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true) + ]; + +//********************************************************************************************************************************************************** +//Control Center +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxLeanControlCenter(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxLeanControlCenter, mxShape); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxLeanControlCenter.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + c.rect(w * 0.15, 0, w * 0.7, h * 0.8); + c.fillAndStroke(); + c.rect(0, h * 0.8, w, h * 0.2); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape('mxgraph.lean_mapping.control_center', mxLeanControlCenter); + +mxLeanControlCenter.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.15, 0), true), + new mxConnectionConstraint(new mxPoint(0.85, 0), true), + new mxConnectionConstraint(new mxPoint(0, 1), true), + new mxConnectionConstraint(new mxPoint(1, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.15, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.15, 0.5), false), + new mxConnectionConstraint(new mxPoint(0, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.85, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.85, 0.5), false), + new mxConnectionConstraint(new mxPoint(1, 0.75), true), + new mxConnectionConstraint(new mxPoint(0.25, 1), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0.75, 1), true) + ]; + +//********************************************************************************************************************************************************** +//Electronical Info +//********************************************************************************************************************************************************** +function mxLeanElectronicInfoShape() +{ + mxArrow.call(this); +}; + +mxUtils.extend(mxLeanElectronicInfoShape, mxArrow); + +mxLeanElectronicInfoShape.prototype.paintEdgeShape = function(c, pts) +{ + // Base vector (between end points) + var p0 = pts[0]; + var pe = pts[pts.length - 1]; + + var dx = pe.x - p0.x; + var dy = pe.y - p0.y; + + p0.x = p0.x + dx * 0.05; + p0.y = p0.y + dy * 0.05; + pe.x = pe.x - dx * 0.05; + pe.y = pe.y - dy * 0.05; + dx = pe.x - p0.x; + dy = pe.y - p0.y; + + var dist = Math.sqrt(dx * dx + dy * dy); + var nx = dx / dist; + var ny = dy / dist; + var midX = p0.x + dx * 0.5; + var midY = p0.y + dy * 0.5; + + var p1x = midX - nx * dist * 0.1 - ny / 3 * dist * 0.1; + var p1y = midY - ny * dist * 0.1 + nx / 3 * dist * 0.1; + var p4x = midX + nx * dist * 0.1 + ny / 3 * dist * 0.1; + var p4y = midY + ny * dist * 0.1 - nx / 3 * dist * 0.1; + + c.begin(); + c.moveTo(p0.x, p0.y); + c.lineTo(p4x, p4y); + c.lineTo(p1x, p1y); + c.lineTo(pe.x, pe.y); + c.stroke(); + + var dx = pe.x - p1x; + var dy = pe.y - p1y; + var dist = Math.sqrt(dx * dx + dy * dy); + var nx = dx / dist; + var ny = dy / dist; + + c.setFillColor(mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000')); + c.begin(); + c.moveTo(pe.x - nx * 10 - ny * 5, pe.y - ny * 10 + nx * 5); + c.lineTo(pe.x, pe.y); + c.lineTo(pe.x - nx * 10 + ny * 5, pe.y - ny * 10 - nx * 5); + c.fillAndStroke(); +}; + +// Registers the electronic info shape +mxCellRenderer.registerShape('mxgraph.lean_mapping.electronic_info_flow_edge', mxLeanElectronicInfoShape); + +//********************************************************************************************************************************************************** +//Manual Info +//********************************************************************************************************************************************************** +function mxLeanManualInfoShape() +{ + mxArrow.call(this); +}; + +mxUtils.extend(mxLeanManualInfoShape, mxArrow); + +mxLeanManualInfoShape.prototype.paintEdgeShape = function(c, pts) +{ + // Base vector (between end points) + var p0 = pts[0]; + var pe = pts[pts.length - 1]; + + var dx = pe.x - p0.x; + var dy = pe.y - p0.y; + + p0.x = p0.x + dx * 0.05; + p0.y = p0.y + dy * 0.05; + pe.x = pe.x - dx * 0.05; + pe.y = pe.y - dy * 0.05; + dx = pe.x - p0.x; + dy = pe.y - p0.y; + + var dist = Math.sqrt(dx * dx + dy * dy); + var nx = dx / dist; + var ny = dy / dist; + + c.begin(); + c.moveTo(p0.x, p0.y); + c.lineTo(pe.x, pe.y); + c.stroke(); + + c.setFillColor(mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000')); + c.begin(); + c.moveTo(pe.x - nx * 10 - ny * 5, pe.y - ny * 10 + nx * 5); + c.lineTo(pe.x, pe.y); + c.lineTo(pe.x - nx * 10 + ny * 5, pe.y - ny * 10 - nx * 5); + c.fillAndStroke(); +}; + +//Registers the electronic info shape +mxCellRenderer.registerShape('mxgraph.lean_mapping.manual_info_flow_edge', mxLeanManualInfoShape); + +//********************************************************************************************************************************************************** +//Timeline +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeLeanTimeline(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeLeanTimeline, mxShape); + +mxShapeLeanTimeline.prototype.cst = { + SHAPE_TIMELINE : 'mxgraph.lean_mapping.timeline2' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeLeanTimeline.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var dy1 = mxUtils.getValue(this.style, 'dy1', '0'); + var dx2 = mxUtils.getValue(this.style, 'dx2', '0'); + var dy2 = mxUtils.getValue(this.style, 'dy2', '0'); + var dx3 = mxUtils.getValue(this.style, 'dx3', '0'); + var dy3 = mxUtils.getValue(this.style, 'dy3', '0'); + var dx4 = mxUtils.getValue(this.style, 'dx4', '0'); + var dy4 = mxUtils.getValue(this.style, 'dy4', '0'); + var dx5 = mxUtils.getValue(this.style, 'dx5', '0'); + var dy5 = mxUtils.getValue(this.style, 'dy5', '0'); + var dy6 = mxUtils.getValue(this.style, 'dy6', '0'); + + var lastUp = true; + + c.begin(); + + if (dy1 <= 0.5) + { + c.moveTo(0, 0); + lastUp = true; + } + else + { + c.moveTo(0, h); + lastUp = false; + } + + //2 + if (dy2 <= 0.5 && lastUp) + { + c.lineTo(dx2, 0); + lastUp = true; + } + else if (dy2 > 0.5 && !lastUp) + { + c.lineTo(dx2, h); + lastUp = false; + } + else if (dy2 <= 0.5 && !lastUp) + { + c.lineTo(dx2, h); + c.lineTo(dx2, 0); + lastUp = true; + } + else + { + c.lineTo(dx2, 0); + c.lineTo(dx2, h); + lastUp = false; + } + + //3 + if (dy3 <= 0.5 && lastUp) + { + c.lineTo(dx3, 0); + lastUp = true; + } + else if (dy3 > 0.5 && !lastUp) + { + c.lineTo(dx3, h); + lastUp = false; + } + else if (dy3 <= 0.5 && !lastUp) + { + c.lineTo(dx3, h); + c.lineTo(dx3, 0); + lastUp = true; + } + else + { + c.lineTo(dx3, 0); + c.lineTo(dx3, h); + lastUp = false; + } + + //4 + if (dy4 <= 0.5 && lastUp) + { + c.lineTo(dx4, 0); + lastUp = true; + } + else if (dy4 > 0.5 && !lastUp) + { + c.lineTo(dx4, h); + lastUp = false; + } + else if (dy4 <= 0.5 && !lastUp) + { + c.lineTo(dx4, h); + c.lineTo(dx4, 0); + lastUp = true; + } + else + { + c.lineTo(dx4, 0); + c.lineTo(dx4, h); + lastUp = false; + } + + //5 + if (dy5 <= 0.5 && lastUp) + { + c.lineTo(dx5, 0); + lastUp = true; + } + else if (dy5 > 0.5 && !lastUp) + { + c.lineTo(dx5, h); + lastUp = false; + } + else if (dy5 <= 0.5 && !lastUp) + { + c.lineTo(dx5, h); + c.lineTo(dx5, 0); + lastUp = true; + } + else + { + c.lineTo(dx5, 0); + c.lineTo(dx5, h); + lastUp = false; + } + + //6 + if (dy6 <= 0.5 && lastUp) + { + c.lineTo(w, 0); + lastUp = true; + } + else if (dy6 > 0.5 && !lastUp) + { + c.lineTo(w, h); + lastUp = false; + } + else if (dy6 <= 0.5 && !lastUp) + { + c.lineTo(w, h); + c.lineTo(w, 0); + lastUp = true; + } + else + { + c.lineTo(w, 0); + c.lineTo(w, h); + lastUp = false; + } + + //end + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeLeanTimeline.prototype.cst.SHAPE_TIMELINE, mxShapeLeanTimeline); + +Graph.handleFactory[mxShapeLeanTimeline.prototype.cst.SHAPE_TIMELINE] = function(state) +{ + var handles = [Graph.createHandle(state, ['dy1'], function(bounds) + { + var dy1 = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'dy1', 0)))); + + return new mxPoint(bounds.x, bounds.y + dy1 * bounds.height); + }, function(bounds, pt) + { + this.state.style['dy1'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + })]; + + var handle2 = Graph.createHandle(state, ['dx2', 'dy2'], function(bounds) + { + + var dx2 = Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dx3', 0)), parseFloat(mxUtils.getValue(this.state.style, 'dx2', 0)))); + var dy2 = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'dy2', 0)))); + + return new mxPoint(bounds.x + dx2, bounds.y + dy2 * bounds.height); + }, function(bounds, pt) + { + this.state.style['dx2'] = Math.round(1000 * Math.max(0, Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dx3', 0)), (pt.x - bounds.x)))) / 1000; + this.state.style['dy2'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + }); + + handles.push(handle2); + + var handle3 = Graph.createHandle(state, ['dx3', 'dy3'], function(bounds) + { + var dx3 = Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dx2', 0)), Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dx4', 0)), parseFloat(mxUtils.getValue(this.state.style, 'dx3', 0)))); + var dy3 = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'dy3', 0)))); + + return new mxPoint(bounds.x + dx3, bounds.y + dy3 * bounds.height); + }, function(bounds, pt) + { + this.state.style['dx3'] = Math.round(1000 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dx2', 0)), Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dx4', 0)), (pt.x - bounds.x)))) / 1000; + this.state.style['dy3'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + }); + + handles.push(handle3); + + var handle4 = Graph.createHandle(state, ['dx4', 'dy4'], function(bounds) + { + var dx4 = Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dx3', 0)), Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dx5', 0)), parseFloat(mxUtils.getValue(this.state.style, 'dx4', 0)))); + var dy4 = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'dy4', 0)))); + + return new mxPoint(bounds.x + dx4, bounds.y + dy4 * bounds.height); + }, function(bounds, pt) + { + this.state.style['dx4'] = Math.round(1000 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dx3', 0)), Math.min(parseFloat(mxUtils.getValue(this.state.style, 'dx5', 0)), (pt.x - bounds.x)))) / 1000; + this.state.style['dy4'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + }); + + handles.push(handle4); + + var handle5 = Graph.createHandle(state, ['dx5', 'dy5'], function(bounds) + { + var dx5 = Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dx4', 0)), Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'dx5', 0)))); + var dy5 = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'dy5', 0)))); + + return new mxPoint(bounds.x + dx5, bounds.y + dy5 * bounds.height); + }, function(bounds, pt) + { + this.state.style['dx5'] = Math.round(1000 * Math.max(parseFloat(mxUtils.getValue(this.state.style, 'dx4', 0)), Math.min(bounds.width, (pt.x - bounds.x)))) / 1000; + this.state.style['dy5'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + }); + + handles.push(handle5); + + var handle6 = Graph.createHandle(state, ['dy6'], function(bounds) + { + var dy6 = Math.max(0, Math.min(100, parseFloat(mxUtils.getValue(this.state.style, 'dy6', 0)))); + + return new mxPoint(bounds.x + bounds.width, bounds.y + dy6 * bounds.height); + }, function(bounds, pt) + { + this.state.style['dy6'] = Math.round(1000 * Math.max(0, Math.min(1, (pt.y - bounds.y) / bounds.height))) / 1000; + }); + + handles.push(handle6); + + return handles; +}; diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxNetworks.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxNetworks.js new file mode 100644 index 0000000000000..1ea600fa7fa06 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxNetworks.js @@ -0,0 +1,120 @@ +/** + * $Id: mxNetworks.js,v 1.0 2015/06/15 17:05:39 mate Exp $ + * Copyright (c) 2006-2015, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Bus +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeNetworksBus(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeNetworksBus, mxShape); + +mxShapeNetworksBus.prototype.cst = { + SHAPE_BUS : 'mxgraph.networks.bus' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeNetworksBus.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeNetworksBus.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, 8, h * 0.5 - 10); + c.lineTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.close(); + c.fillAndStroke(); +}; + +mxShapeNetworksBus.prototype.foreground = function(c, x, y, w, h) +{ + c.setFillColor('#ffffff'); + c.begin(); + c.moveTo(w - 8, h * 0.5 - 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 + 10); + c.arcTo(12, 12, 0, 0, 1, w - 8, h * 0.5 - 10); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeNetworksBus.prototype.cst.SHAPE_BUS, mxShapeNetworksBus); + +//********************************************************************************************************************************************************** +//Comm Link +//********************************************************************************************************************************************************** +function mxShapeNetworksCommLinkEdge() +{ + mxArrow.call(this); +}; + +mxUtils.extend(mxShapeNetworksCommLinkEdge, mxArrow); + +mxShapeNetworksCommLinkEdge.prototype.paintEdgeShape = function(c, pts) +{ + // Base vector (between end points) + var p0 = pts[0]; + var pe = pts[pts.length - 1]; + + var dx = pe.x - p0.x; + var dy = pe.y - p0.y; + + p0.x = p0.x + dx * 0.05; + p0.y = p0.y + dy * 0.05; + pe.x = pe.x - dx * 0.05; + pe.y = pe.y - dy * 0.05; + dx = pe.x - p0.x; + dy = pe.y - p0.y; + + var dist = Math.sqrt(dx * dx + dy * dy); + var nx = dx / dist; + var ny = dy / dist; + var midX = p0.x + dx * 0.5; + var midY = p0.y + dy * 0.5; + + var p1x = midX + nx * dist / 3 * 0.1 - ny / 3 * dist * 0.1; + var p1y = midY + ny * dist / 3 * 0.1 + nx / 3 * dist * 0.1; + var p2x = midX + nx * dist * 0.1 + ny * dist * 0.1; + var p2y = midY + ny * dist * 0.1 - nx * dist * 0.1; + + var p3x = midX - nx * dist / 3 * 0.1 + ny / 3 * dist * 0.1; + var p3y = midY - ny * dist / 3 * 0.1 - nx / 3 * dist * 0.1; + var p4x = midX - nx * dist * 0.1 - ny * dist * 0.1; + var p4y = midY - ny * dist * 0.1 + nx * dist * 0.1; + + c.begin(); + c.moveTo(p0.x, p0.y); + c.lineTo(p2x, p2y); + c.lineTo(p1x, p1y); + c.lineTo(pe.x, pe.y); + c.lineTo(p4x, p4y); + c.lineTo(p3x, p3y); + c.close(); + c.fillAndStroke(); +}; + +//Registers the comm link edge +mxCellRenderer.registerShape('mxgraph.networks.comm_link_edge', mxShapeNetworksCommLinkEdge); diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/mxSysML.js b/data/plugins/grafana-flowcharting/src/libs/shapes/mxSysML.js new file mode 100644 index 0000000000000..54e0d79023188 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/mxSysML.js @@ -0,0 +1,3144 @@ +/** + * $Id: mxSysML.js,v 1.0 2014/07/23 07:05:39 mate Exp $ + * Copyright (c) 2006-2014, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Composite +//********************************************************************************************************************************************************** +function mxShapeSysMLComposite() +{ + mxCylinder.call(this); +}; + +mxUtils.extend(mxShapeSysMLComposite, mxShape); + +mxShapeSysMLComposite.prototype.isHtmlAllowed = function() +{ + return false; +}; + +mxShapeSysMLComposite.prototype.paintForeground = function(c, x, y, w, h) +{ + if (this.style != null) + { + var shape = mxCellRenderer.defaultShapes[this.style['symbol0']]; + + c.save(); + + var tmp = new shape(); + tmp.style = this.style; + shape.prototype.paintVertexShape.call(tmp, c, x, y, w, h); + c.restore(); + + c.setDashed(false); + + // Draws the symbols defined in the style. The symbols are + // numbered from 1...n. Possible postfixes are align, + // verticalAlign, spacing, arcSpacing, width, height + var counter = 1; + + do + { + shape = mxCellRenderer.defaultShapes[this.style['symbol' + counter]]; + + if (shape != null) + { + var align = this.style['symbol' + counter + 'Align']; + var valign = this.style['symbol' + counter + 'VerticalAlign']; + var width = this.style['symbol' + counter + 'Width']; + var height = this.style['symbol' + counter + 'Height']; + var spacing = this.style['symbol' + counter + 'Spacing'] || 0; + var vspacing = this.style['symbol' + counter + 'VSpacing'] || 0; + var arcspacing = this.style['symbol' + counter + 'ArcSpacing']; + var direction = this.style['symbol' + counter + 'Direction']; + + if (arcspacing != null) + { + spacing += this.getArcSize(w + this.strokewidth, h + this.strokewidth) * arcspacing; + vspacing += this.getArcSize(w + this.strokewidth, h + this.strokewidth) * arcspacing; + } + + var x2 = x; + var y2 = y; + + if (align == mxConstants.ALIGN_CENTER) + { + x2 += (w - width) / 2; + } + else if (align == mxConstants.ALIGN_RIGHT) + { + x2 += w - width - spacing; + } + else + { + x2 += spacing; + } + + if (valign == mxConstants.ALIGN_MIDDLE) + { + y2 += (h - height) / 2; + } + else if (valign == mxConstants.ALIGN_BOTTOM) + { + y2 += h - height - vspacing; + } + else + { + y2 += vspacing; + } + + c.save(); + + var tmp = new shape(); + + tmp.style = mxUtils.clone(this.style); + tmp.direction = direction; + tmp.updateTransform(c, x2, y2, width, height); + shape.prototype.paintVertexShape.call(tmp, c, x2, y2, width, height); + c.restore(); + } + + counter++; + } + while (shape != null); + } +}; + +mxCellRenderer.registerShape('mxgraph.sysml.composite', mxShapeSysMLComposite); + +//********************************************************************************************************************************************************** +//Package +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLPackage(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLPackage, mxShape); + +mxShapeSysMLPackage.prototype.cst = { + PACKAGE : 'mxgraph.sysml.package', + LABEL_X : 'labelX' +}; + +mxShapeSysMLPackage.prototype.customProperties = [ + {name: 'labelX', dispName: 'Header Width', type: 'float', min:0, defVal:90} +]; + +mxShapeSysMLPackage.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLPackage.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeSysMLPackage.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeSysMLPackage.prototype.foreground = function(c, x, y, w, h) +{ + var xSize = parseInt(mxUtils.getValue(this.style, mxShapeSysMLPackage.prototype.cst.LABEL_X, '90')); + var ySize = 20; + + xSize = Math.min(xSize, w); + + if (xSize > ySize) + { + c.begin(); + c.moveTo(0, ySize); + c.lineTo(xSize - ySize * 0.5, ySize); + c.lineTo(xSize, ySize * 0.5); + c.lineTo(xSize, 0); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLPackage.prototype.cst.PACKAGE, mxShapeSysMLPackage); + +Graph.handleFactory[mxShapeSysMLPackage.prototype.cst.PACKAGE] = function(state) +{ + var handles = [Graph.createHandle(state, ['labelX'], function(bounds) + { + var labelX = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'labelX', 90)))); + + return new mxPoint(bounds.x + labelX, bounds.y + 10); + }, function(bounds, pt) + { + this.state.style['labelX'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + })]; + + return handles; + +} + +//********************************************************************************************************************************************************** +//Package2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLPackage2(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLPackage2, mxShape); + +mxShapeSysMLPackage2.prototype.cst = { + PACKAGE2 : 'mxgraph.sysml.package2', + LABEL_X : 'labelX' +}; + +mxShapeSysMLPackage2.prototype.customProperties = [ + {name: 'labelX', dispName: 'Header Width', type: 'float', min:0, defVal:90} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLPackage2.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeSysMLPackage2.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.stroke(); +}; + +mxShapeSysMLPackage2.prototype.foreground = function(c, x, y, w, h) +{ + var xSize = parseInt(mxUtils.getValue(this.style, mxShapeSysMLPackage2.prototype.cst.LABEL_X, '90')); + var ySize = 20; + + xSize = Math.min(xSize, w); + + if (xSize > ySize) + { + c.begin(); + c.moveTo(0, ySize); + c.lineTo(xSize - ySize * 0.5, ySize); + c.lineTo(xSize, ySize * 0.5); + c.lineTo(xSize, 0); + c.lineTo(0, 0); + c.close(); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLPackage2.prototype.cst.PACKAGE2, mxShapeSysMLPackage2); + +Graph.handleFactory[mxShapeSysMLPackage2.prototype.cst.PACKAGE2] = function(state) +{ + var handles = [Graph.createHandle(state, ['labelX'], function(bounds) + { + var labelX = Math.max(0, Math.min(bounds.width, parseFloat(mxUtils.getValue(this.state.style, 'labelX', 90)))); + + return new mxPoint(bounds.x + labelX, bounds.y + 10); + }, function(bounds, pt) + { + this.state.style['labelX'] = Math.round(100 * Math.max(0, Math.min(bounds.width, pt.x - bounds.x))) / 100; + })]; + + return handles; + +} + +//********************************************************************************************************************************************************** +//None +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLNone(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLNone, mxShape); + +mxShapeSysMLNone.prototype.cst = { + NONE : 'mxgraph.sysml.none' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLNone.prototype.paintVertexShape = function(c, x, y, w, h) +{ +}; + +mxCellRenderer.registerShape(mxShapeSysMLNone.prototype.cst.NONE, mxShapeSysMLNone); + +//********************************************************************************************************************************************************** +//Rectangle +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLRect(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLRect, mxShape); + +mxShapeSysMLRect.prototype.cst = { + RECT : 'mxgraph.sysml.rect' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLRect.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.rect(x, y, w, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLRect.prototype.cst.RECT, mxShapeSysMLRect); + +//********************************************************************************************************************************************************** +//Port +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLPortOne(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLPortOne, mxShape); + +mxShapeSysMLPortOne.prototype.cst = { + PORT1 : 'mxgraph.sysml.port1' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLPortOne.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.rect(x + w * 0.05, y, w - w * 0.1, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLPortOne.prototype.cst.PORT1, mxShapeSysMLPortOne); + +mxShapeSysMLPortOne.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Port2 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLPortTwo(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLPortTwo, mxShape); + +mxShapeSysMLPortTwo.prototype.cst = { + PORT2 : 'mxgraph.sysml.port2' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLPortTwo.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.rect(x + w * 0.05, y, w * 0.8, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLPortTwo.prototype.cst.PORT2, mxShapeSysMLPortTwo); + +mxShapeSysMLPortTwo.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.95, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.05, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Port3 +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLPortThree(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLPortThree, mxShape); + +mxShapeSysMLPortThree.prototype.cst = { + PORT3 : 'mxgraph.sysml.port3' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLPortThree.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.rect(x + w * 0.07, y, w * 0.86, h); + c.fillAndStroke(); + c.rect(x, y + h * 0.125, w * 0.14, h * 0.25); + c.fillAndStroke(); + c.rect(x, y + h * 0.625, w * 0.14, h * 0.25); + c.fillAndStroke(); + c.rect(x + w * 0.86, y + h * 0.375, w * 0.14, h * 0.25); + c.fillAndStroke(); + this.drawIn(c, x + w * 0.01, y + h * 0.2, w * 0.11, h * 0.10); + this.drawOut(c, x + w * 0.02, y + h * 0.7, w * 0.11, h * 0.10); + this.drawInOut(c, x + w * 0.88, y + h * 0.45, w * 0.1, h * 0.10); +}; + +mxShapeSysMLPortThree.prototype.drawIn = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(x, y + h * 0.5); + c.lineTo(x + w, y + h * 0.5); + c.moveTo(x + w * 0.75, y); + c.lineTo(x + w, y + h * 0.5); + c.lineTo(x + w * 0.75, y + h); + c.stroke(); +} + +mxShapeSysMLPortThree.prototype.drawOut = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(x, y + h * 0.5); + c.lineTo(x + w, y + h * 0.5); + c.moveTo(x + w * 0.25, y); + c.lineTo(x, y + h * 0.5); + c.lineTo(x + w * 0.25, y + h); + c.stroke(); +} + +mxShapeSysMLPortThree.prototype.drawInOut = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(x + w * 0.75, y); + c.lineTo(x + w, y + h * 0.5); + c.lineTo(x + w * 0.75, y + h); + c.moveTo(x + w * 0.25, y); + c.lineTo(x, y + h * 0.5); + c.lineTo(x + w * 0.25, y + h); + c.stroke(); +} + +mxCellRenderer.registerShape(mxShapeSysMLPortThree.prototype.cst.PORT3, mxShapeSysMLPortThree); + +//********************************************************************************************************************************************************** +//Port +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLPortFour(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLPortFour, mxShape); + +mxShapeSysMLPortFour.prototype.cst = { + PORT4 : 'mxgraph.sysml.port4' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLPortFour.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.rect(x + w * 0.05, y, w - w * 0.05, h); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLPortFour.prototype.cst.PORT4, mxShapeSysMLPortFour); + +mxShapeSysMLPortFour.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true) + ]; + +//********************************************************************************************************************************************************** +//Item Flow +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLItemFlow(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLItemFlow, mxShape); + +mxShapeSysMLItemFlow.prototype.cst = { + ITEM_FLOW : 'mxgraph.sysml.itemFlow', + FLOW_DIR : 'flowDir', + FLOW_TYPE : 'flowType' +}; + +mxShapeSysMLItemFlow.prototype.customProperties = [ + {name: 'flowDir', dispName: 'Flow Direction', type: 'enum', + enumList:[ + {val:'n', dispName:'North'}, + {val:'s', dispName:'South'}, + {val:'e', dispName:'East'}, + {val:'w', dispName:'West'} + ]}, + {name: 'flowType', dispName: 'Flow Type', type: 'enum', + enumList:[ + {val:'in', dispName:'In'}, + {val:'out', dispName:'Out'} +]}]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLItemFlow.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var flowDir = mxUtils.getValue(this.style, mxShapeSysMLItemFlow.prototype.cst.FLOW_DIR, 'none').toLowerCase(); + var flowType = mxUtils.getValue(this.style, mxShapeSysMLItemFlow.prototype.cst.FLOW_TYPE, 'none'); + + if (flowDir === 'n') + { + c.rect(x, y + 10, w, h - 10); + c.fillAndStroke(); + + c.setShadow(false); + + c.rect(x + w * 0.5 - 10, y, 20, 20); + c.fillAndStroke(); + + if (flowType === 'in') + { + this.drawDown(c, x + w * 0.5 - 5, y + 2, 10, 16); + } + else if (flowType === 'out') + { + this.drawUp(c, x + w * 0.5 - 5, y + 2, 10, 16); + } + } + else if (flowDir === 's') + { + c.rect(x, y, w, h - 10); + c.fillAndStroke(); + + c.setShadow(false); + + c.rect(x + w * 0.5 - 10, y + h - 20, 20, 20); + c.fillAndStroke(); + + if (flowType === 'in') + { + this.drawUp(c, x + w * 0.5 - 5, y + h - 18, 10, 16); + } + else if (flowType === 'out') + { + this.drawDown(c, x + w * 0.5 - 5, y + h - 18, 10, 16); + } + } + else if (flowDir === 'w') + { + c.rect(x + 10, y, w - 10, h); + c.fillAndStroke(); + + c.setShadow(false); + + c.rect(x, y + h * 0.5 - 10, 20, 20); + c.fillAndStroke(); + + if (flowType === 'in') + { + this.drawRight(c, x + 2, y + h * 0.5 - 5, 16, 10); + } + else if (flowType === 'out') + { + this.drawLeft(c, x + 2, y + h * 0.5 - 5, 16, 10); + } + } + else if (flowDir === 'e') + { + c.rect(x, y, w - 10, h); + c.fillAndStroke(); + + c.setShadow(false); + + c.rect(x + w - 20, y + h * 0.5 - 10, 20, 20); + c.fillAndStroke(); + + if (flowType === 'in') + { + this.drawLeft(c, x + w - 18, y + h * 0.5 - 5, 16, 10); + } + else if (flowType === 'out') + { + this.drawRight(c, x + w - 18, y + h * 0.5 - 5, 16, 10); + } + } +}; + +mxShapeSysMLItemFlow.prototype.drawRight = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(x, y + h * 0.5); + c.lineTo(x + w, y + h * 0.5); + c.moveTo(x + w * 0.75, y); + c.lineTo(x + w, y + h * 0.5); + c.lineTo(x + w * 0.75, y + h); + c.stroke(); +} + +mxShapeSysMLItemFlow.prototype.drawDown = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(x + w * 0.5, y); + c.lineTo(x + w * 0.5, y + h); + c.moveTo(x, y + h * 0.75); + c.lineTo(x + w * 0.5, y + h); + c.lineTo(x + w, y + h * 0.75); + c.stroke(); +} + +mxShapeSysMLItemFlow.prototype.drawLeft = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(x, y + h * 0.5); + c.lineTo(x + w, y + h * 0.5); + c.moveTo(x + w * 0.25, y); + c.lineTo(x, y + h * 0.5); + c.lineTo(x + w * 0.25, y + h); + c.stroke(); +} + +mxShapeSysMLItemFlow.prototype.drawUp = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(x + w * 0.5, y + h); + c.lineTo(x + w * 0.5, y); + c.moveTo(x, y + h * 0.25); + c.lineTo(x + w * 0.5, y); + c.lineTo(x + w, y + h * 0.25); + c.stroke(); +} + +mxCellRenderer.registerShape(mxShapeSysMLItemFlow.prototype.cst.ITEM_FLOW, mxShapeSysMLItemFlow); + +mxShapeSysMLItemFlow.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true) + ]; + +//********************************************************************************************************************************************************** +//Item Flow Left +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLItemFlowLeft(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLItemFlowLeft, mxShape); + +mxShapeSysMLItemFlowLeft.prototype.cst = { + ITEM_FLOW_LEFT : 'mxgraph.sysml.itemFlowLeft' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLItemFlowLeft.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.rect(x + 10, y, w - 10, h); + c.fillAndStroke(); + c.rect(x, y + h * 0.25 - 10, 20, 20); + c.fillAndStroke(); + c.rect(x, y + h * 0.5 - 10, 20, 20); + c.fillAndStroke(); + c.rect(x, y + h * 0.75 - 10, 20, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLItemFlowLeft.prototype.cst.ITEM_FLOW_LEFT, mxShapeSysMLItemFlowLeft); + +mxShapeSysMLItemFlowLeft.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0, 0.25), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0.75), true) + ]; + +//********************************************************************************************************************************************************** +//Item Flow Right +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLItemFlowRight(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLItemFlowRight, mxShape); + +mxShapeSysMLItemFlowRight.prototype.cst = { + ITEM_FLOW_RIGHT : 'mxgraph.sysml.itemFlowRight' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLItemFlowRight.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.rect(x, y, w - 10, h); + c.fillAndStroke(); + c.rect(x + w - 20, y + h * 0.25 - 10, 20, 20); + c.fillAndStroke(); + c.rect(x + w - 20, y + h * 0.5 - 10, 20, 20); + c.fillAndStroke(); + c.rect(x + w - 20, y + h * 0.75 - 10, 20, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLItemFlowRight.prototype.cst.ITEM_FLOW_RIGHT, mxShapeSysMLItemFlowRight); + +mxShapeSysMLItemFlowRight.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(1, 0.25), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.75), true) + ]; + +//********************************************************************************************************************************************************** +//Nested Port +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLNestedPort(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLNestedPort, mxShape); + +mxShapeSysMLNestedPort.prototype.cst = { + NESTED_PORT : 'mxgraph.sysml.nestedPort' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLNestedPort.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.rect(x + w * 0.08, y, w * 0.92, h); + c.fillAndStroke(); + c.rect(x + w * 0.03, y + h * 0.1, w * 0.1, h * 0.8); + c.fillAndStroke(); + c.rect(x, y + h * 0.15, w * 0.06, h * 0.16); + c.fillAndStroke(); + c.rect(x, y + h * 0.42, w * 0.06, h * 0.16); + c.fillAndStroke(); + c.rect(x, y + h * 0.69, w * 0.06, h * 0.16); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLNestedPort.prototype.cst.NESTED_PORT, mxShapeSysMLNestedPort); + +//********************************************************************************************************************************************************** +//Package Containment +//********************************************************************************************************************************************************** +mxMarker.addMarker('sysMLPackCont', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) +{ + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + var a = size / 2; + + return function() + { + c.begin(); + c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2); + c.lineTo(pe.x - nx / 2 + ny / 2, pe.y - ny / 2 - nx / 2); + c.stroke(); + c.ellipse(pe.x - 0.5 * nx - a, pe.y - 0.5 * ny - a, 2 * a, 2 * a); + c.stroke(); + }; +}); + +//********************************************************************************************************************************************************** +//Required Interface +//********************************************************************************************************************************************************** +mxMarker.addMarker('sysMLReqInt', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) +{ + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + var a = size / 2; + + return function() + { + var fillColor = mxUtils.getValue(shape.style, mxConstants.STYLE_FILLCOLOR, 'none'); + c.setFillColor(fillColor); + c.ellipse(pe.x - 0.5 * nx - a, pe.y - 0.5 * ny - a, 2 * a, 2 * a); + c.fillAndStroke(); + }; +}); + +//********************************************************************************************************************************************************** +//Provided Interface +//********************************************************************************************************************************************************** +mxMarker.addMarker('sysMLProvInt', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) +{ + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + var a = size / 2; + + return function() + { + var fillColor = mxUtils.getValue(shape.style, mxConstants.STYLE_FILLCOLOR, 'none'); + c.setFillColor(fillColor); + c.begin(); + c.moveTo(pe.x - ny / 2, pe.y + nx / 2); + c.arcTo(a, a, 0, 0, 1, pe.x + ny / 2, pe.y - nx / 2); + c.fillAndStroke(); + }; +}); + +//********************************************************************************************************************************************************** +//Parametric Diagram +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLParametricDiagram(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLParametricDiagram, mxShape); + +mxShapeSysMLParametricDiagram.prototype.cst = { + PARAM_DGM : 'mxgraph.sysml.paramDgm' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLParametricDiagram.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.roundrect(x, y, w, h, 10, 10); + c.fillAndStroke(); + + c.setShadow(false); + + if (h > 60) + { + c.rect(x, y + h * 0.25 - 10, 20, 20); + c.stroke(); + c.rect(x, y + h * 0.75 - 10, 20, 20); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLParametricDiagram.prototype.cst.PARAM_DGM, mxShapeSysMLParametricDiagram); + +//********************************************************************************************************************************************************** +//Constraint Property +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLConstraintProperty(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLConstraintProperty, mxShape); + +mxShapeSysMLConstraintProperty.prototype.cst = { + CONS_PROP : 'mxgraph.sysml.consProp' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLConstraintProperty.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.rect(x, y, w, h); + c.fillAndStroke(); + + c.setShadow(false); + + if (h > 60) + { + c.rect(x, y + 50, 20, 20); + c.stroke(); + c.rect(x, y + 80, 20, 20); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLConstraintProperty.prototype.cst.CONS_PROP, mxShapeSysMLConstraintProperty); + +//********************************************************************************************************************************************************** +//Call Behavior Action +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLCallBehaviorAction(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLCallBehaviorAction, mxShape); + +mxShapeSysMLCallBehaviorAction.prototype.cst = { + CALL_BEH_ACT : 'mxgraph.sysml.callBehAct' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLCallBehaviorAction.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.roundrect(x, y, w, h, 10, 10); + c.fillAndStroke(); + + if ((h > 30) && (w > 40)) + { + c.setShadow(false); + + this.drawSymb(c, x + w - 30, y + h - 30, 20, 20); + } +}; + +mxShapeSysMLCallBehaviorAction.prototype.drawSymb = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(x + w * 0.5, y); + c.lineTo(x + w * 0.5, y + h); + c.moveTo(x, y + h); + c.lineTo(x, y + h * 0.5); + c.lineTo(x + w, y + h * 0.5); + c.lineTo(x + w, y + h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLCallBehaviorAction.prototype.cst.CALL_BEH_ACT, mxShapeSysMLCallBehaviorAction); + +mxShapeSysMLCallBehaviorAction.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -2.9, -2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false, null, 2.9, -2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Accept Event Action +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLAcceptEventAction(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLAcceptEventAction, mxShape); + +mxShapeSysMLAcceptEventAction.prototype.cst = { + ACC_EVENT : 'mxgraph.sysml.accEvent' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLAcceptEventAction.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(x, y); + c.lineTo(x + w, y); + c.lineTo(x + w, y + h); + c.lineTo(x, y + h); + c.lineTo(x + h * 0.3, y + h * 0.5); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLAcceptEventAction.prototype.cst.ACC_EVENT, mxShapeSysMLAcceptEventAction); + +mxShapeSysMLAcceptEventAction.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, h * 0.3, 0)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Time Event +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLTimeEvent(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLTimeEvent, mxShape); + +mxShapeSysMLTimeEvent.prototype.cst = { + TIME_EVENT : 'mxgraph.sysml.timeEvent' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLTimeEvent.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(x, y); + c.lineTo(x + w, y); + c.lineTo(x, y + h); + c.lineTo(x + w, y + h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLTimeEvent.prototype.cst.TIME_EVENT, mxShapeSysMLTimeEvent); + +mxShapeSysMLTimeEvent.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Send Signal Action +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLSendSignalAction(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLSendSignalAction, mxShape); + +mxShapeSysMLSendSignalAction.prototype.cst = { + SEND_SIG_ACT : 'mxgraph.sysml.sendSigAct' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLSendSignalAction.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(x, y); + c.lineTo(x + w - h * 0.3, y); + c.lineTo(x + w, y + h * 0.5); + c.lineTo(x + w - h * 0.3, y + h); + c.lineTo(x, y + h); + c.close(); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLSendSignalAction.prototype.cst.SEND_SIG_ACT, mxShapeSysMLSendSignalAction); + +mxShapeSysMLSendSignalAction.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, -h * 0.3, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false, null, -h * 0.3, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Activity Final +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLActivityFinal(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLActivityFinal, mxShape); + +mxShapeSysMLActivityFinal.prototype.cst = { + ACT_FINAL : 'mxgraph.sysml.actFinal' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLActivityFinal.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.ellipse(x, y, w, h); + c.fillAndStroke(); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + + c.ellipse(x + 5, y + 5, w - 10, h - 10); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLActivityFinal.prototype.cst.ACT_FINAL, mxShapeSysMLActivityFinal); + +mxShapeSysMLActivityFinal.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Activity Parameter Node +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLActivityParameterNode(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLActivityParameterNode, mxShape); + +mxShapeSysMLActivityParameterNode.prototype.cst = { + ACT_PARAM_NODE : 'mxgraph.sysml.actParamNode' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLActivityParameterNode.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + var minX = Math.max(w * 0.35, 70); + var maxX = Math.min(w * 0.65, w - 10); + c.begin(); + c.moveTo(minX, h); + c.lineTo(10, h); + c.lineTo(10, 0); + c.lineTo(minX, 0); + c.moveTo(maxX, h); + c.lineTo(w - 10, h); + c.lineTo(w - 10, 0); + c.lineTo(maxX, 0); + c.stroke(); + + var xSize = 50; + var ySize = 20; + + xSize = Math.min(xSize, w); + + if (xSize > ySize) + { + c.begin(); + c.moveTo(10, ySize); + c.lineTo(xSize - ySize * 0.5, ySize); + c.lineTo(xSize, ySize * 0.5); + c.lineTo(xSize, 0); + c.lineTo(10, 0); + c.close(); + c.fillAndStroke(); + } + + c.rect(0, h * 0.35 - 10, 20, 20); + c.fillAndStroke(); + c.rect(0, h * 0.65 - 10, 20, 20); + c.fillAndStroke(); + c.rect(w - 20, h * 0.5 - 10, 20, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLActivityParameterNode.prototype.cst.ACT_PARAM_NODE, mxShapeSysMLActivityParameterNode); + +mxShapeSysMLActivityParameterNode.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.35), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.65), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Control Operator +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLControlOperator(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLControlOperator, mxShape); + +mxShapeSysMLControlOperator.prototype.cst = { + CONT_OPER : 'mxgraph.sysml.contOper' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLControlOperator.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeSysMLControlOperator.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeSysMLControlOperator.prototype.foreground = function(c, x, y, w, h) +{ + var xSize = 130; + var ySize = 20; + + xSize = Math.min(xSize, w); + + if (xSize > ySize) + { + c.begin(); + c.moveTo(0, ySize); + c.lineTo(xSize - ySize * 0.5, ySize); + c.lineTo(xSize, ySize * 0.5); + c.lineTo(xSize, 0); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLControlOperator.prototype.cst.CONT_OPER, mxShapeSysMLControlOperator); + +//********************************************************************************************************************************************************** +//Flow Final +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLFlowFinal(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLFlowFinal, mxShape); + +mxShapeSysMLFlowFinal.prototype.cst = { + FLOW_FINAL : 'mxgraph.sysml.flowFinal' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLFlowFinal.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + c.setShadow(false); + + c.begin(); + c.moveTo(w * 0.145, h * 0.145); + c.lineTo(w * 0.855, h * 0.855); + c.moveTo(w * 0.855, h * 0.145); + c.lineTo(w * 0.145, h * 0.855); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLFlowFinal.prototype.cst.FLOW_FINAL, mxShapeSysMLFlowFinal); + +mxShapeSysMLFlowFinal.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Is Control +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLIsControl(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLIsControl, mxShape); + +mxShapeSysMLIsControl.prototype.cst = { + IS_CONTROL : 'mxgraph.sysml.isControl' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLIsControl.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.rect(0, h * 0.5 - 10, 10, 20); + c.fillAndStroke(); + c.roundrect(10, 0, w - 20, h, 10, 10); + c.fillAndStroke(); + c.rect(w - 10, h * 0.5 - 10, 10, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLIsControl.prototype.cst.IS_CONTROL, mxShapeSysMLIsControl); + +mxShapeSysMLIsControl.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Is Stream +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLIsStream(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLIsStream, mxShape); + +mxShapeSysMLIsStream.prototype.cst = { + IS_STREAM : 'mxgraph.sysml.isStream' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLIsStream.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + + c.setFillColor(strokeColor); + c.rect(0, h * 0.5 - 10, 10, 20); + c.fillAndStroke(); + + c.setFillColor(fillColor); + c.roundrect(10, 0, w - 20, h, 10, 10); + c.fillAndStroke(); + + c.setFillColor(strokeColor); + c.rect(w - 10, h * 0.5 - 10, 10, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLIsStream.prototype.cst.IS_STREAM, mxShapeSysMLIsStream); + +mxShapeSysMLIsStream.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Is Activity Stream +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLIsActStream(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLIsActStream, mxShape); + +mxShapeSysMLIsActStream.prototype.cst = { + IS_ACT_STREAM : 'mxgraph.sysml.isActStream' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLIsActStream.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.rect(0, 0, w - 10, h); + c.fillAndStroke(); + + var xSize = 40; + var ySize = 20; + + xSize = Math.min(xSize, w); + + if (xSize > ySize) + { + c.begin(); + c.moveTo(0, ySize); + c.lineTo(xSize - ySize * 0.5, ySize); + c.lineTo(xSize, ySize * 0.5); + c.lineTo(xSize, 0); + c.lineTo(0, 0); + c.close(); + c.fillAndStroke(); + } + + c.rect(w - 20, h * 0.5 - 10, 20, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLIsActStream.prototype.cst.IS_ACT_STREAM, mxShapeSysMLIsActStream); + +mxShapeSysMLIsActStream.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Parameter Set +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLParameterSet(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLParameterSet, mxShape); + +mxShapeSysMLParameterSet.prototype.cst = { + PARAM_SET : 'mxgraph.sysml.paramSet' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLParameterSet.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.rect(0, h * 0.5 - 28, 10, 56); + c.fillAndStroke(); + c.roundrect(10, 0, w - 20, h, 10, 10); + c.fillAndStroke(); + c.rect(w - 10, h * 0.5 - 28, 10, 56); + c.fillAndStroke(); + + c.setShadow(false); + + c.rect(4, h * 0.5 - 24, 6, 20); + c.fillAndStroke(); + c.rect(4, h * 0.5 + 4, 6, 20); + c.fillAndStroke(); + c.rect(w - 10, h * 0.5 - 24, 6, 20); + c.fillAndStroke(); + c.rect(w - 10, h * 0.5 + 4, 6, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLParameterSet.prototype.cst.PARAM_SET, mxShapeSysMLParameterSet); + +mxShapeSysMLParameterSet.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Is Parameter Activity Set +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLParameterActivitySet(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLParameterActivitySet, mxShape); + +mxShapeSysMLParameterActivitySet.prototype.cst = { + PARAM_ACT_SET : 'mxgraph.sysml.paramActSet' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLParameterActivitySet.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.rect(10, 0, w - 20, h); + c.fillAndStroke(); + + var xSize = 50; + var ySize = 20; + + xSize = Math.min(xSize, w); + + if (xSize > ySize) + { + c.begin(); + c.moveTo(10, ySize); + c.lineTo(xSize - ySize * 0.5, ySize); + c.lineTo(xSize, ySize * 0.5); + c.lineTo(xSize, 0); + c.lineTo(10, 0); + c.close(); + c.fillAndStroke(); + } + + c.setShadow(false); + + if (h > 70) + { + c.rect(0, h * 0.5 - 28, 15, 56); + c.fillAndStroke(); + c.rect(4, h * 0.5 - 24, 15, 20); + c.fillAndStroke(); + c.rect(4, h * 0.5 + 4, 15, 20); + c.fillAndStroke(); + + c.rect(w - 15, h * 0.5 - 28, 15, 56); + c.fillAndStroke(); + c.rect(w - 19, h * 0.5 - 24, 15, 20); + c.fillAndStroke(); + c.rect(w - 19, h * 0.5 + 4, 15, 20); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLParameterActivitySet.prototype.cst.PARAM_ACT_SET, mxShapeSysMLParameterActivitySet); + +mxShapeSysMLParameterActivitySet.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Probability +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLProbability(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLProbability, mxShape); + +mxShapeSysMLProbability.prototype.cst = { + PROBABILITY : 'mxgraph.sysml.probability' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLProbability.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.roundrect(0, 0, w - 10, h, 10, 10); + c.fillAndStroke(); + c.rect(w - 10, h * 0.25 - 28, 10, 56); + c.fillAndStroke(); + c.rect(w - 10, h * 0.75 - 28, 10, 56); + c.fillAndStroke(); + + c.setShadow(false); + + c.rect(w - 10, h * 0.25 - 24, 6, 20); + c.fillAndStroke(); + c.rect(w - 10, h * 0.25 + 4, 6, 20); + c.fillAndStroke(); + c.rect(w - 10, h * 0.75 - 24, 6, 20); + c.fillAndStroke(); + c.rect(w - 10, h * 0.75 + 4, 6, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLProbability.prototype.cst.PROBABILITY, mxShapeSysMLProbability); + +mxShapeSysMLProbability.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false, null, -5, 0)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Is Activity Stream +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLActivityProbability(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLActivityProbability, mxShape); + +mxShapeSysMLActivityProbability.prototype.cst = { + ACT_PROB : 'mxgraph.sysml.actProb' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLActivityProbability.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.rect(0, 0, w - 10, h); + c.fillAndStroke(); + + var xSize = 40; + var ySize = 20; + + xSize = Math.min(xSize, w); + + if (xSize > ySize) + { + c.begin(); + c.moveTo(0, ySize); + c.lineTo(xSize - ySize * 0.5, ySize); + c.lineTo(xSize, ySize * 0.5); + c.lineTo(xSize, 0); + c.lineTo(0, 0); + c.close(); + c.fillAndStroke(); + } + + c.setShadow(false); + + if (h > 70) + { + c.rect(w - 15, h * 0.25 - 28, 15, 56); + c.fillAndStroke(); + c.rect(w - 19, h * 0.25 - 24, 15, 20); + c.fillAndStroke(); + c.rect(w - 19, h * 0.25 + 4, 15, 20); + c.fillAndStroke(); + + c.rect(w - 15, h * 0.75 - 28, 15, 56); + c.fillAndStroke(); + c.rect(w - 19, h * 0.75 - 24, 15, 20); + c.fillAndStroke(); + c.rect(w - 19, h * 0.75 + 4, 15, 20); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLActivityProbability.prototype.cst.ACT_PROB, mxShapeSysMLActivityProbability); + +mxShapeSysMLActivityProbability.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false, null, 0, -14)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false, null, 0, 14)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false, null, -5, 0)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Object Flow Right +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLObjectFlowRight(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLObjectFlowRight, mxShape); + +mxShapeSysMLObjectFlowRight.prototype.cst = { + OBJ_FLOW_R : 'mxgraph.sysml.objFlowR' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLObjectFlowRight.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.roundrect(0, 0, w - 10, h, 10, 10); + c.fillAndStroke(); + c.rect(w - 10, h * 0.5 - 10, 10, 20); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLObjectFlowRight.prototype.cst.OBJ_FLOW_R, mxShapeSysMLObjectFlowRight); + +mxShapeSysMLObjectFlowRight.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, -5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false, null, -5, 0)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Object Flow Left +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLObjectFlowLeft(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLObjectFlowLeft, mxShape); + +mxShapeSysMLObjectFlowLeft.prototype.cst = { + OBJ_FLOW_L : 'mxgraph.sysml.objFlowL' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLObjectFlowLeft.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.rect(0, h * 0.5 - 10, 10, 20); + c.fillAndStroke(); + c.roundrect(10, 0, w - 10, h, 10, 10); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLObjectFlowLeft.prototype.cst.OBJ_FLOW_L, mxShapeSysMLObjectFlowLeft); + +mxShapeSysMLObjectFlowLeft.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 5, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false, null, 5, 0)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Activity Partition +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLActivityPartition(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLActivityPartition, mxShape); + +mxShapeSysMLActivityPartition.prototype.cst = { + ACT_PART : 'mxgraph.sysml.actPart' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLActivityPartition.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, h); + c.moveTo(w, 0); + c.lineTo(w, h); + c.stroke(); + +}; + +mxCellRenderer.registerShape(mxShapeSysMLActivityPartition.prototype.cst.ACT_PART, mxShapeSysMLActivityPartition); + +//********************************************************************************************************************************************************** +//Continuation +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLContinuation(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLContinuation, mxShape); + +mxShapeSysMLContinuation.prototype.cst = { + CONT : 'mxgraph.sysml.cont' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLContinuation.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + if (w > h) + { + var r = h * 0.5; + + c.begin(); + c.moveTo(w - r, 0); + c.arcTo(r, r, 0, 0, 1, w - r, h); + c.lineTo(r, h); + c.arcTo(r, r, 0, 0, 1, r, 0); + c.close(); + c.fillAndStroke(); + } + else + { + var r = w * 0.5; + + c.begin(); + c.moveTo(0, h - r); + c.arcTo(r, r, 0, 0, 0, w, h - r); + c.lineTo(w, r); + c.arcTo(r, r, 0, 0, 0, 0, r); + c.close(); + c.fillAndStroke(); + } +}; + +mxCellRenderer.registerShape(mxShapeSysMLContinuation.prototype.cst.CONT, mxShapeSysMLContinuation); + +mxShapeSysMLContinuation.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + + if (w > h) + { + var r = h * 0.5; + + if (w > 2 * h) + { + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + } + } + else + { + var r = w * 0.5; + + if (h > 2 * w) + { + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + } + } + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.29, r * 0.29)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.29, r * 0.29)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, r * 0.29, h - r * 0.29)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - r * 0.29, h - r * 0.29)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Coregion +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLCoregion(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLCoregion, mxShape); + +mxShapeSysMLCoregion.prototype.cst = { + COREGION : 'mxgraph.sysml.coregion' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLCoregion.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + var brack = 10; + + brack = Math.min(brack, h); + + c.begin(); + c.moveTo(0, brack); + c.lineTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w, brack); + c.moveTo(0, h - brack); + c.lineTo(0, h); + c.lineTo(w, h); + c.lineTo(w, h - brack); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLCoregion.prototype.cst.COREGION, mxShapeSysMLCoregion); + +//********************************************************************************************************************************************************** +//X marker +//********************************************************************************************************************************************************** +mxMarker.addMarker('sysMLx', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) +{ + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + + return function() + { + c.begin(); + c.moveTo(pe.x - nx / 2 - ny / 2, pe.y - ny / 2 + nx / 2); + c.lineTo(pe.x + nx / 2 + ny / 2, pe.y + ny / 2 - nx / 2); + + c.moveTo(pe.x + nx / 2 - ny / 2, pe.y + ny / 2 + nx / 2); + c.lineTo(pe.x - nx / 2 + ny / 2, pe.y - ny / 2 - nx / 2); + c.stroke(); + }; +}); + +//********************************************************************************************************************************************************** +//Dimension +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLDimension(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLDimension, mxShape); + +mxShapeSysMLDimension.prototype.cst = { + DIMENSION : 'mxgraph.sysml.dimension' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLDimension.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeSysMLDimension.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 20); + c.lineTo(w, 20); + c.moveTo(10, 15); + c.lineTo(0, 20); + c.lineTo(10, 25); + c.moveTo(w - 10, 15); + c.lineTo(w, 20); + c.lineTo(w - 10, 25); + c.moveTo(0, 15); + c.lineTo(0, h); + c.moveTo(w, 15); + c.lineTo(w, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLDimension.prototype.cst.DIMENSION, mxShapeSysMLDimension); + +//********************************************************************************************************************************************************** +//Lost marker +//********************************************************************************************************************************************************** +mxMarker.addMarker('sysMLLost', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) +{ + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + var a = size / 2; + + return function() + { + c.begin(); + c.moveTo(pe.x - 1.5 * nx - ny / 2, pe.y - 1.5 * ny + nx / 2); + c.lineTo(pe.x - nx / 2, pe.y - ny / 2); + c.lineTo(pe.x - 1.5 * nx + ny / 2, pe.y - 1.5 * ny - nx / 2); + c.stroke(); + + c.ellipse(pe.x - 0.5 * nx - a, pe.y - 0.5 * ny - a, 2 * a, 2 * a); + + var strokeColor = mxUtils.getValue(shape.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.fillAndStroke(); + }; +}); + +//********************************************************************************************************************************************************** +//Found marker +//********************************************************************************************************************************************************** +mxMarker.addMarker('sysMLFound', function(c, shape, type, pe, unitX, unitY, size, source, sw, filled) +{ + var nx = unitX * (size + sw + 1); + var ny = unitY * (size + sw + 1); + var a = size / 2; + + return function() + { + c.ellipse(pe.x - 0.5 * nx - a, pe.y - 0.5 * ny - a, 2 * a, 2 * a); + + var strokeColor = mxUtils.getValue(shape.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeColor); + c.fillAndStroke(); + }; +}); + +//********************************************************************************************************************************************************** +//Composite State +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLCompositeState(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLCompositeState, mxShape); + +mxShapeSysMLCompositeState.prototype.cst = { + COMP_STATE : 'mxgraph.sysml.compState' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLCompositeState.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); +}; + +mxShapeSysMLCompositeState.prototype.background = function(c, x, y, w, h) +{ + var tabH = 20; + var tabW = 110; + c.roundrect(0, tabH, w, h - tabH, 10, 10); + c.fillAndStroke(); + c.rect(15, 0, tabW, tabH); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLCompositeState.prototype.cst.COMP_STATE, mxShapeSysMLCompositeState); + +mxShapeSysMLCompositeState.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 22.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 2.9, 22.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - 20) * 0.25 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - 20) * 0.5 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - 20) * 0.75 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, (h - 20) * 0.25 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, (h - 20) * 0.5 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, (h - 20) * 0.75 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 15, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 70, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 125, 0)); + + if (w * 0.75 > 125) + { + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, 20)); + + if (w * 0.5 > 125) + { + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, 20)); + + if (w * 0.25 > 125) + { + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, 20)); + } + } + } + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Region +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLRegion(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLRegion, mxShape); + +mxShapeSysMLRegion.prototype.cst = { + REGION : 'mxgraph.sysml.region' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLRegion.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var tabH = 20; + var tabW = 50; + + c.translate(x, y); + this.background(c, x, y, w, h, tabH, tabW); + c.setShadow(false); + this.foreground(c, x, y, w, h, tabH, tabW); +}; + +mxShapeSysMLRegion.prototype.background = function(c, x, y, w, h, tabH, tabW) +{ + var strokeW = parseInt(mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1')); + c.roundrect(0, tabH, w, h - tabH, 10, 10); + c.fillAndStroke(); + + c.setStrokeWidth(strokeW * 2); + c.rect(15, 0, tabW, tabH); + c.fillAndStroke(); + c.setStrokeWidth(strokeW); +}; + +mxShapeSysMLRegion.prototype.foreground = function(c, x, y, w, h, tabH, tabW) +{ + c.setDashed(true); + c.begin(); + c.moveTo(w * 0.5, tabH); + c.lineTo(w * 0.5, h); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLRegion.prototype.cst.REGION, mxShapeSysMLRegion); + +mxShapeSysMLRegion.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 22.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 2.9, 22.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - 20) * 0.25 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - 20) * 0.5 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 0, (h - 20) * 0.75 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, (h - 20) * 0.25 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, (h - 20) * 0.5 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false, null, 0, (h - 20) * 0.75 + 20)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 15, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 40, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 65, 0)); + + if (w * 0.75 > 65) + { + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false, null, 0, 20)); + + if (w * 0.5 > 65) + { + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false, null, 0, 20)); + + if (w * 0.25 > 65) + { + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false, null, 0, 20)); + } + } + } + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Simple State +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLSimpleState(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLSimpleState, mxShape); + +mxShapeSysMLSimpleState.prototype.cst = { + SIMPLE_STATE : 'mxgraph.sysml.simpleState' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLSimpleState.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); +// this.foreground(c, x, y, w, h); +}; + +mxShapeSysMLSimpleState.prototype.background = function(c, x, y, w, h) +{ + var strokeW = parseInt(mxUtils.getValue(this.style, mxConstants.STYLE_STROKEWIDTH, '1')); + c.roundrect(0, 0, w, h, 10, 10); + c.fillAndStroke(); +}; + +mxShapeSysMLSimpleState.prototype.foreground = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, 20); + c.lineTo(w, 20); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLSimpleState.prototype.cst.SIMPLE_STATE, mxShapeSysMLSimpleState); + +mxShapeSysMLSimpleState.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//State Machine +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLStateMachine(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLStateMachine, mxShape); + +mxShapeSysMLStateMachine.prototype.cst = { + STATE_MACHINE : 'mxgraph.sysml.stateMachine' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLStateMachine.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeSysMLStateMachine.prototype.background = function(c, x, y, w, h) +{ + c.roundrect(0, 0, w - 10, h, 10, 10); + c.fillAndStroke(); +}; + +mxShapeSysMLStateMachine.prototype.foreground = function(c, x, y, w, h) +{ + var strokeC = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeC); + + c.ellipse(w - 20, h * 0.5 - 10, 20, 20); + c.stroke(); + + c.ellipse(w - 17, h * 0.5 - 7, 14, 14); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLStateMachine.prototype.cst.STATE_MACHINE, mxShapeSysMLStateMachine); + +mxShapeSysMLStateMachine.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 12.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 12.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false, null, -10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false, null, -10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +// X +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLX(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLX, mxShape); + +mxShapeSysMLX.prototype.cst = { + X : 'mxgraph.sysml.x' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLX.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, h); + c.moveTo(0, h); + c.lineTo(w, 0); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLX.prototype.cst.X, mxShapeSysMLX); + +mxShapeSysMLX.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 1), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Submachine State +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLSubmachineState(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLSubmachineState, mxShape); + +mxShapeSysMLSubmachineState.prototype.cst = { + SUBMACHINE_STATE : 'mxgraph.sysml.submState' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLSubmachineState.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeSysMLSubmachineState.prototype.background = function(c, x, y, w, h) +{ + c.roundrect(0, 0, w - 10, h, 10, 10); + c.fillAndStroke(); +}; + +mxShapeSysMLSubmachineState.prototype.foreground = function(c, x, y, w, h) +{ + var strokeC = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + c.setFillColor(strokeC); + + c.ellipse(w - 20, h * 0.5 - 10, 20, 20); + c.stroke(); + + c.ellipse(w - 17, h * 0.5 - 7, 14, 14); + c.fillAndStroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLSubmachineState.prototype.cst.SUBMACHINE_STATE, mxShapeSysMLSubmachineState); + +mxShapeSysMLSubmachineState.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 12.9, 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, 2.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0), false, null, w - 12.9, h - 2.9)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.25, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.75, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.25), false, null, -10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.75), false, null, -10, 0)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.25), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.75), false)); + + return (constr); +}; + +//********************************************************************************************************************************************************** +//Use Case with Extension Points +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapeSysMLUseCaseExtensionPoints(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapeSysMLUseCaseExtensionPoints, mxShape); + +mxShapeSysMLUseCaseExtensionPoints.prototype.cst = { + USE_CASE_EXT_PT : 'mxgraph.sysml.useCaseExtPt' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapeSysMLUseCaseExtensionPoints.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapeSysMLUseCaseExtensionPoints.prototype.background = function(c, x, y, w, h) +{ + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapeSysMLUseCaseExtensionPoints.prototype.foreground = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(w * 0.02, h * 0.35); + c.lineTo(w * 0.98, h * 0.35); + c.stroke(); +}; + +mxCellRenderer.registerShape(mxShapeSysMLUseCaseExtensionPoints.prototype.cst.USE_CASE_EXT_PT, mxShapeSysMLUseCaseExtensionPoints); + +mxShapeSysMLUseCaseExtensionPoints.prototype.getConstraints = function(style, w, h) +{ + var constr = []; + + constr.push(new mxConnectionConstraint(new mxPoint(0, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(1, 0.5), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 0), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.5, 1), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.145), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.145, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.855), false)); + constr.push(new mxConnectionConstraint(new mxPoint(0.855, 0.145), false)); + + return (constr); +}; diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/pid2/mxPidInstruments.js b/data/plugins/grafana-flowcharting/src/libs/shapes/pid2/mxPidInstruments.js new file mode 100644 index 0000000000000..b4ab50295be59 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/pid2/mxPidInstruments.js @@ -0,0 +1,685 @@ +/** + * $Id: mxPidInstruments.js,v 1.4 2014/01/21 13:10:17 gaudenz Exp $ + * Copyright (c) 2006-2013, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Discrete Instrument +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapePidDiscInst(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapePidDiscInst, mxShape); + +mxShapePidDiscInst.prototype.cst = { + SHAPE_DISC_INST : 'mxgraph.pid2inst.discInst', + MOUNTING : 'mounting', + FIELD : 'field', + ROOM : 'room', + INACCESSIBLE : 'inaccessible', + LOCAL : 'local' +}; + +mxShapePidDiscInst.prototype.customProperties = [ + {name: 'mounting', dispName: 'Mounting', type: 'enum', defVal:'field', + enumList: [ + {val:'field', dispName:'Field'}, + {val:'room', dispName:'Room'}, + {val:'inaccessible', dispName:'Inaccessible'}, + {val:'local', dispName:'Local'} + ]} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapePidDiscInst.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidDiscInst.prototype.background = function(c, x, y, w, h) +{ + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapePidDiscInst.prototype.foreground = function(c, x, y, w, h) +{ + var mounting = mxUtils.getValue(this.style, mxShapePidDiscInst.prototype.cst.MOUNTING, 'field'); + + if (mounting === mxShapePidDiscInst.prototype.cst.ROOM) + { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } + else if (mounting === mxShapePidDiscInst.prototype.cst.INACCESSIBLE) + { + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } + else if (mounting === mxShapePidDiscInst.prototype.cst.LOCAL) + { + c.begin(); + c.moveTo(w * 0.005, h * 0.48); + c.lineTo(w * 0.995, h * 0.48); + c.moveTo(w * 0.005, h * 0.52); + c.lineTo(w * 0.995, h * 0.52); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidDiscInst.prototype.cst.SHAPE_DISC_INST, mxShapePidDiscInst); + +mxShapePidDiscInst.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.145, 0.145), false), + new mxConnectionConstraint(new mxPoint(0.145, 0.855), false), + new mxConnectionConstraint(new mxPoint(0.855, 0.145), false), + new mxConnectionConstraint(new mxPoint(0.855, 0.855), false) + ]; + +//********************************************************************************************************************************************************** +//Shared Control/Display +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapePidSharedCont(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapePidSharedCont, mxShape); + +mxShapePidSharedCont.prototype.cst = { + SHAPE_SHARED_CONT : 'mxgraph.pid2inst.sharedCont', + MOUNTING : 'mounting', + FIELD : 'field', + ROOM : 'room', + INACCESSIBLE : 'inaccessible', + LOCAL : 'local' +}; + +mxShapePidSharedCont.prototype.customProperties = [ + {name: 'mounting', dispName: 'Mounting', type: 'enum', defVal:'field', + enumList: [ + {val:'field', dispName:'Field'}, + {val:'room', dispName:'Room'}, + {val:'inaccessible', dispName:'Inaccessible'}, + {val:'local', dispName:'Local'} + ]} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapePidSharedCont.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidSharedCont.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapePidSharedCont.prototype.foreground = function(c, x, y, w, h) +{ + var mounting = mxUtils.getValue(this.style, mxShapePidSharedCont.prototype.cst.MOUNTING, 'field'); + + c.ellipse(0, 0, w, h); + c.fillAndStroke(); + + if (mounting === mxShapePidSharedCont.prototype.cst.ROOM) + { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } + else if (mounting === mxShapePidSharedCont.prototype.cst.INACCESSIBLE) + { + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } + else if (mounting === mxShapePidDiscInst.prototype.cst.LOCAL) + { + c.begin(); + c.moveTo(w * 0.005, h * 0.48); + c.lineTo(w * 0.995, h * 0.48); + c.moveTo(w * 0.005, h * 0.52); + c.lineTo(w * 0.995, h * 0.52); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidSharedCont.prototype.cst.SHAPE_SHARED_CONT, mxShapePidSharedCont); + +mxShapePidSharedCont.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0), false), + new mxConnectionConstraint(new mxPoint(0, 1), false), + new mxConnectionConstraint(new mxPoint(1, 0), false), + new mxConnectionConstraint(new mxPoint(1, 1), false) + ]; + +//********************************************************************************************************************************************************** +//Computer Function +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapePidCompFunc(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapePidCompFunc, mxShape); + +mxShapePidCompFunc.prototype.cst = { + SHAPE_COMP_FUNC : 'mxgraph.pid2inst.compFunc', + MOUNTING : 'mounting', + FIELD : 'field', + ROOM : 'room', + INACCESSIBLE : 'inaccessible', + LOCAL : 'local' +}; + +mxShapePidCompFunc.prototype.customProperties = [ + {name: 'mounting', dispName: 'Mounting', type: 'enum', defVal:'field', + enumList: [ + {val:'field', dispName:'Field'}, + {val:'room', dispName:'Room'}, + {val:'inaccessible', dispName:'Inaccessible'}, + {val:'local', dispName:'Local'} + ]} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapePidCompFunc.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidCompFunc.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.25, 0); + c.lineTo(w * 0.75, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.75, h); + c.lineTo(w * 0.25, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapePidCompFunc.prototype.foreground = function(c, x, y, w, h) +{ + var mounting = mxUtils.getValue(this.style, mxShapePidCompFunc.prototype.cst.MOUNTING, 'field'); + + if (mounting === mxShapePidCompFunc.prototype.cst.ROOM) + { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } + else if (mounting === mxShapePidCompFunc.prototype.cst.INACCESSIBLE) + { + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } + else if (mounting === mxShapePidDiscInst.prototype.cst.LOCAL) + { + c.begin(); + c.moveTo(w * 0.01, h * 0.48); + c.lineTo(w * 0.99, h * 0.48); + c.moveTo(w * 0.01, h * 0.52); + c.lineTo(w * 0.99, h * 0.52); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidCompFunc.prototype.cst.SHAPE_COMP_FUNC, mxShapePidCompFunc); + +mxShapePidCompFunc.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.25, 0), false), + new mxConnectionConstraint(new mxPoint(0.75, 0), false), + new mxConnectionConstraint(new mxPoint(0.25, 1), false), + new mxConnectionConstraint(new mxPoint(0.75, 1), false) + ]; + +//********************************************************************************************************************************************************** +//Computer Function +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapePidProgLogCont(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapePidProgLogCont, mxShape); + +mxShapePidProgLogCont.prototype.cst = { + SHAPE_PROG_LOG_CONT : 'mxgraph.pid2inst.progLogCont', + MOUNTING : 'mounting', + FIELD : 'field', + ROOM : 'room', + INACCESSIBLE : 'inaccessible', + LOCAL : 'local' +}; + +mxShapePidProgLogCont.prototype.customProperties = [ + {name: 'mounting', dispName: 'Mounting', type: 'enum', defVal:'field', + enumList: [ + {val:'field', dispName:'Field'}, + {val:'room', dispName:'Room'}, + {val:'inaccessible', dispName:'Inaccessible'}, + {val:'local', dispName:'Local'} + ]} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapePidProgLogCont.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidProgLogCont.prototype.background = function(c, x, y, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapePidProgLogCont.prototype.foreground = function(c, x, y, w, h) +{ + var mounting = mxUtils.getValue(this.style, mxShapePidProgLogCont.prototype.cst.MOUNTING, 'field'); + + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.stroke(); + + if (mounting === mxShapePidProgLogCont.prototype.cst.ROOM) + { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } + else if (mounting === mxShapePidProgLogCont.prototype.cst.INACCESSIBLE) + { + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } + else if (mounting === mxShapePidDiscInst.prototype.cst.LOCAL) + { + c.begin(); + c.moveTo(w * 0.02, h * 0.48); + c.lineTo(w * 0.98, h * 0.48); + c.moveTo(w * 0.02, h * 0.52); + c.lineTo(w * 0.98, h * 0.52); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidProgLogCont.prototype.cst.SHAPE_PROG_LOG_CONT, mxShapePidProgLogCont); + +mxShapePidProgLogCont.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(0, 0), false), + new mxConnectionConstraint(new mxPoint(0, 1), false), + new mxConnectionConstraint(new mxPoint(1, 0), false), + new mxConnectionConstraint(new mxPoint(1, 1), false) + ]; + +//********************************************************************************************************************************************************** +//Indicator +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapePidIndicator(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapePidIndicator, mxShape); + +mxShapePidIndicator.prototype.cst = { + SHAPE_INDICATOR : 'mxgraph.pid2inst.indicator', + MOUNTING : 'mounting', + FIELD : 'field', + ROOM : 'room', + INACCESSIBLE : 'inaccessible', + LOCAL : 'local', + IND_TYPE : 'indType', + INSTRUMENT : 'inst', + CONTROL : 'ctrl', + FUNCTION : 'func', + PLC : 'plc' +}; + +mxShapePidIndicator.prototype.customProperties = [ + {name: 'mounting', dispName: 'Mounting', type: 'enum', defVal:'field', + enumList: [ + {val:'field', dispName:'Field'}, + {val:'room', dispName:'Room'}, + {val:'inaccessible', dispName:'Inaccessible'}, + {val:'local', dispName:'Local'} + ]}, + {name: 'indType', dispName: 'Type', type: 'enum', defVal:'inst', + enumList: [ + {val:'inst', dispName:'Instrument'}, + {val:'ctrl', dispName:'Control'}, + {val:'func', dispName:'Function'}, + {val:'plc', dispName:'PLC'} + ]} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapePidIndicator.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidIndicator.prototype.background = function(c, x, y, w, h) +{ + var type = mxUtils.getValue(this.style, mxShapePidIndicator.prototype.cst.IND_TYPE, 'inst'); + + c.begin(); + c.moveTo(w * 0.5, w); + c.lineTo(w * 0.5, h); + c.stroke(); + + if (type === mxShapePidIndicator.prototype.cst.INSTRUMENT) + { + c.ellipse(0, 0, w, w); + c.fillAndStroke(); + } + else if (type === mxShapePidIndicator.prototype.cst.CONTROL) + { + c.rect(0, 0, w, w); + c.fillAndStroke(); + } + else if (type === mxShapePidIndicator.prototype.cst.FUNCTION) + { + c.begin(); + c.moveTo(0, w * 0.5); + c.lineTo(w * 0.25, 0); + c.lineTo(w * 0.75, 0); + c.lineTo(w, w * 0.5); + c.lineTo(w * 0.75, w); + c.lineTo(w * 0.25, w); + c.close(); + c.fillAndStroke(); + } + else if (type === mxShapePidIndicator.prototype.cst.PLC) + { + c.rect(0, 0, w, w); + c.fillAndStroke(); + } +}; + +mxShapePidIndicator.prototype.foreground = function(c, x, y, w, h) +{ + var mounting = mxUtils.getValue(this.style, mxShapePidIndicator.prototype.cst.MOUNTING, 'field'); + var type = mxUtils.getValue(this.style, mxShapePidIndicator.prototype.cst.IND_TYPE, 'inst'); + + if (type === mxShapePidIndicator.prototype.cst.CONTROL) + { + c.ellipse(0, 0, w, w); + c.stroke(); + } + else if (type === mxShapePidIndicator.prototype.cst.PLC) + { + c.begin(); + c.moveTo(0, w * 0.5); + c.lineTo(w * 0.5, 0); + c.lineTo(w, w * 0.5); + c.lineTo(w * 0.5, w); + c.close(); + c.stroke(); + } + + if (mounting === mxShapePidIndicator.prototype.cst.ROOM) + { + c.begin(); + c.moveTo(0, w * 0.5); + c.lineTo(w, w * 0.5); + c.stroke(); + } + else if (mounting === mxShapePidIndicator.prototype.cst.INACCESSIBLE) + { + c.setDashed(true); + c.begin(); + c.moveTo(0, w * 0.5); + c.lineTo(w, w * 0.5); + c.stroke(); + } + else if (mounting === mxShapePidIndicator.prototype.cst.LOCAL) + { + c.begin(); + c.moveTo(w * 0.005, w * 0.48); + c.lineTo(w * 0.995, w * 0.48); + c.moveTo(w * 0.005, w * 0.52); + c.lineTo(w * 0.995, w * 0.52); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidIndicator.prototype.cst.SHAPE_INDICATOR, mxShapePidIndicator); + +mxShapePidIndicator.prototype.constraints = [new mxConnectionConstraint(new mxPoint(0.5, 1), true)]; + +//********************************************************************************************************************************************************** +//Logic +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapePidLogic(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxShapePidLogic, mxShape); + +mxShapePidLogic.prototype.cst = { + SHAPE_LOGIC : 'mxgraph.pid2inst.logic', + MOUNTING : 'mounting', + FIELD : 'field', + ROOM : 'room', + INACCESSIBLE : 'inaccessible', + LOCAL : 'local' +}; + +mxShapePidLogic.prototype.customProperties = [ + {name: 'mounting', dispName: 'Mounting', type: 'enum', defVal:'field', + enumList: [ + {val:'field', dispName:'Field'}, + {val:'room', dispName:'Room'}, + {val:'inaccessible', dispName:'Inaccessible'}, + {val:'local', dispName:'Local'} + ]} +]; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapePidLogic.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidLogic.prototype.background = function(c, x, y, w, h) +{ + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); +}; + +mxShapePidLogic.prototype.foreground = function(c, x, y, w, h) +{ + var mounting = mxUtils.getValue(this.style, mxShapePidLogic.prototype.cst.MOUNTING, 'field'); + + if (mounting === mxShapePidLogic.prototype.cst.ROOM) + { + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } + else if (mounting === mxShapePidLogic.prototype.cst.INACCESSIBLE) + { + c.setDashed(true); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w, h * 0.5); + c.stroke(); + } + else if (mounting === mxShapePidLogic.prototype.cst.LOCAL) + { + c.begin(); + c.moveTo(w * 0.02, h * 0.48); + c.lineTo(w * 0.98, h * 0.48); + c.moveTo(w * 0.02, h * 0.52); + c.lineTo(w * 0.98, h * 0.52); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidLogic.prototype.cst.SHAPE_LOGIC, mxShapePidLogic); + +mxShapePidLogic.prototype.constraints = [ + new mxConnectionConstraint(new mxPoint(0.5, 0), true), + new mxConnectionConstraint(new mxPoint(0.5, 1), true), + new mxConnectionConstraint(new mxPoint(0, 0.5), true), + new mxConnectionConstraint(new mxPoint(1, 0.5), true), + new mxConnectionConstraint(new mxPoint(0.25, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.25, 0.75), false), + new mxConnectionConstraint(new mxPoint(0.75, 0.25), false), + new mxConnectionConstraint(new mxPoint(0.75, 0.75), false) + ]; diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/pid2/mxPidMisc.js b/data/plugins/grafana-flowcharting/src/libs/shapes/pid2/mxPidMisc.js new file mode 100644 index 0000000000000..b02797ef2b4df --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/pid2/mxPidMisc.js @@ -0,0 +1,500 @@ +/** + * $Id: mxPidMisc.js,v 1.4 2013/11/22 10:46:56 mate Exp $ + * Copyright (c) 2006-2013, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Fan +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapePidFan(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapePidFan, mxShape); + +mxShapePidFan.prototype.cst = { + SHAPE_FAN : 'mxgraph.pid2misc.fan', + FAN_TYPE : 'fanType', + COMMON : 'common', + AXIAL : 'axial', + RADIAL : 'radial' +}; + +mxShapePidFan.prototype.customProperties = [ + {name: 'fanType', dispName: 'Type', type: 'enum', defVal:'field', + enumList: [ + {val:'common', dispName:'Common'}, + {val:'axial', dispName:'Axial'}, + {val:'radial', dispName:'Radial'} + ]} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapePidFan.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidFan.prototype.background = function(c, x, y, w, h) +{ + c.ellipse(0, 0, w, h); + c.fillAndStroke(); +}; + +mxShapePidFan.prototype.foreground = function(c, x, y, w, h) +{ + + c.begin(); + c.moveTo(w * 0.3, h * 0.045); + c.lineTo(w * 0.97, h * 0.33); + c.moveTo(w * 0.3, h * 0.955); + c.lineTo(w * 0.97, h * 0.67); + + c.moveTo(w * 0.4228, h * 0.3655); + c.arcTo(w * 0.15, h * 0.03, 50, 0, 1, w * 0.5, h * 0.5); + c.arcTo(w * 0,15, h * 0.03, 50, 0, 1, w * 0.3772, h * 0.4045); + c.arcTo(w * 0.15, h * 0.03, 50, 0, 1, w * 0.3025, h * 0.271); + c.arcTo(w * 0.15, h * 0.03, 50, 0, 1, w * 0.4228, h * 0.3655); + c.close(); + + c.moveTo(w * 0.377, h * 0.5973); + c.arcTo(w * 0.15, h * 0.03, -50, 0, 1, w * 0.4966, h * 0.5019); + c.arcTo(w * 0,15, h * 0.03, -50, 0, 1, w * 0.423, h * 0.636); + c.arcTo(w * 0.15, h * 0.03, -50, 0, 1, w * 0.3034, h * 0.7314); + c.arcTo(w * 0.15, h * 0.03, -50, 0, 1, w * 0.377, h * 0.5973); + c.close(); + c.stroke(); + + c.ellipse(w * 0.5, h * 0.47, w * 0.3, h * 0.06); + c.stroke(); + + var type = mxUtils.getValue(this.style, mxShapePidFan.prototype.cst.FAN_TYPE, 'common'); + + if (type === mxShapePidFan.prototype.cst.AXIAL) + { + c.begin(); + c.moveTo(w * 0.1, h * 0.5); + c.lineTo(w * 0.3, h * 0.5); + c.stroke(); + } + else if (type === mxShapePidFan.prototype.cst.RADIAL) + { + c.begin(); + c.moveTo(w * 0.2, h * 0.4); + c.lineTo(w * 0.2, h * 0.6); + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidFan.prototype.cst.SHAPE_FAN, mxShapePidFan); + +//********************************************************************************************************************************************************** +//Column +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapePidColumn(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapePidColumn, mxShape); + +mxShapePidColumn.prototype.cst = { + SHAPE_COLUMN : 'mxgraph.pid2misc.column', + COLUMN_TYPE : 'columnType', + COMMON : 'common', + FIXED : 'fixed', + FLUIDIZED : 'fluid', + BAFFLE : 'baffle', + VALVE : 'valve', + BUBBLE : 'bubble', + NOZZLE : 'nozzle', + TRAY : 'tray' +}; + +mxShapePidColumn.prototype.customProperties = [ + {name: 'columnType', dispName: 'Type', type: 'enum', defVal:'field', + enumList: [ + {val:'common', dispName:'Common'}, + {val:'fixed', dispName:'Fixed'}, + {val:'fluid', dispName:'Fluid'}, + {val:'baffle', dispName:'Baffle'}, + {val:'valve', dispName:'Valve'}, + {val:'bubble', dispName:'Bubble'}, + {val:'nozzle', dispName:'Nozzle'}, + {val:'tray', dispName:'Tray'} + ]} +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapePidColumn.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); + this.foreground(c, x, y, w, h); +}; + +mxShapePidColumn.prototype.background = function(c, x, y, w, h) +{ + h = Math.max(h, 30); + + c.begin(); + c.moveTo(0, 15); + c.arcTo(w * 0.5, 15, 0, 0, 1, w, 15); + c.lineTo(w, h - 15); + c.arcTo(w * 0.5, 15, 0, 0, 1, 0, h - 15); + c.close(); + c.fillAndStroke(); +}; + +mxShapePidColumn.prototype.foreground = function(c, x, y, w, h) +{ + var type = mxUtils.getValue(this.style, mxShapePidColumn.prototype.cst.COLUMN_TYPE, 'common'); + + if (type === mxShapePidColumn.prototype.cst.FIXED) + { + var step = w * 1.2; + var range = h - 50; + var rem = range % step; + var off = rem * 0.5 + 25; + + c.begin(); + + for (var i = 0; i <= range - step; i += step) + { + c.moveTo(0, i + off + step * 0.1); + c.lineTo(w, i + off + step * 0.1); + c.moveTo(0, i + off + step * 0.9); + c.lineTo(w, i + off + step * 0.9); + c.moveTo(0, i + off + step * 0.1); + c.lineTo(w, i + off + step * 0.9); + c.moveTo(0, i + off + step * 0.9); + c.lineTo(w, i + off + step * 0.1); + } + + c.stroke(); + } + else if (type === mxShapePidColumn.prototype.cst.TRAY) + { + var step = w * 0.2; + var range = h - 50; + var rem = range % step; + var off = rem * 0.5 + 25; + + c.setDashed(true); + c.begin(); + + for (var i = 0; i <= range; i += step) + { + c.moveTo(0, i + off); + c.lineTo(w, i + off); + } + + c.stroke(); + } + else if (type === mxShapePidColumn.prototype.cst.FLUIDIZED) + { + var stepY = w * 0.1; + var stepX = w * 0.1; + var range = h - 50; + var rem = range % stepY; + var off = 25; + var dot = Math.min(w, h) * 0.02; + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var dashed = mxUtils.getValue(this.style, mxConstants.STYLE_DASHED, '0'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + var odd = 0; + + c.setFillColor(strokeColor); + c.setDashed(true); + c.begin(); + c.moveTo(0, 25); + c.lineTo(w, 25); + c.moveTo(0, h - 25); + c.lineTo(w, h - 25); + c.stroke(); + + if (dashed === '0') + { + c.setDashed(false); + } + else + { + c.setDashed(true); + } + + var counter = 0; + + for (var i = off + stepY * 0.5; i < range + off - dot; i += stepY) + { + var startJ = stepX; + odd = counter % 2; + + if (odd === 0) + { + startJ = stepX * 0.5; + } + + for (var j = startJ; j < w; j += stepX ) + { + c.ellipse(j, i, dot, dot); + c.fillAndStroke(); + } + + counter++; + } + } + else if (type === mxShapePidColumn.prototype.cst.BAFFLE) + { + var stepY = w * 0.2; + var range = h - 50 - stepY; + var rem = range % stepY; + var off = 25 + stepY * 0.5; + var odd = 0; + + c.setDashed(true); + c.begin(); + c.moveTo(0, 25); + c.lineTo(w, 25); + c.moveTo(0, h - 25); + c.lineTo(w, h - 25); + c.stroke(); + + var counter = 0; + + c.begin(); + + for (var i = off + stepY * 0.5; i < range + off; i += stepY) + { + odd = counter % 2; + + if (odd === 0) + { + c.moveTo(0, i); + c.lineTo(w * 0.9, i); + c.lineTo(w * 0.9, i - stepY * 0.3); + } + else + { + c.moveTo(w * 0.1, i - stepY * 0.5); + c.lineTo(w * 0.1, i); + c.lineTo(w, i); + } + + + counter++; + } + + c.stroke(); + } + else if (type === mxShapePidColumn.prototype.cst.VALVE || type === mxShapePidColumn.prototype.cst.BUBBLE) + { + var stepY = w * 0.2; + var range = h - 50 - stepY; + var rem = range % stepY; + var off = 25 + stepY * 0.5; + var dashed = mxUtils.getValue(this.style, mxConstants.STYLE_DASHED, '0'); + var odd = 0; + + c.setFillColor(strokeColor); + c.setDashed(true); + c.begin(); + c.moveTo(0, 25); + c.lineTo(w, 25); + c.moveTo(0, h - 25); + c.lineTo(w, h - 25); + c.stroke(); + + if (dashed === '0') + { + c.setDashed(false); + } + else + { + c.setDashed(true); + } + + c.begin(); + + for (var i = off + stepY * 0.5; i < range + off; i += stepY) + { + c.moveTo(0, i); + c.lineTo(w * 0.4, i); + + if (type === mxShapePidColumn.prototype.cst.VALVE) + { + c.moveTo(w * 0.4, i - stepY * 0.2); + c.lineTo(w * 0.6, i - stepY * 0.2); + } + else if (type === mxShapePidColumn.prototype.cst.BUBBLE) + { + c.moveTo(w * 0.25, i - stepY * 0.2); + c.arcTo(stepY * 3, stepY * 3, 0, 0, 1, w * 0.75, i - stepY * 0.2); + } + + c.moveTo(w * 0.6, i); + c.lineTo(w, i); + } + + c.stroke(); + } + else if (type === mxShapePidColumn.prototype.cst.NOZZLE) + { + var step = w * 1.2; + var range = h - 50; + var rem = range % step; + var off = rem * 0.5 + 25; + var dashed = mxUtils.getValue(this.style, mxConstants.STYLE_DASHED, 0); + + + for (var i = 0; i <= range - step; i += step) + { + c.setDashed(true); + + c.begin(); + c.moveTo(0, i + off + step * 0.2); + c.lineTo(w, i + off + step * 0.2); + c.moveTo(0, i + off + step * 0.8); + c.lineTo(w, i + off + step * 0.8); + c.stroke(); + + if (dashed === 0) + { + c.setDashed(false); + } + else + { + c.setDashed(true); + } + + c.begin(); + c.moveTo(0, i + off + step * 0.2); + c.lineTo(w, i + off + step * 0.8); + c.moveTo(0, i + off + step * 0.8); + c.lineTo(w, i + off + step * 0.2); + + if (i !== 0) + { + c.moveTo(0, i + off); + c.lineTo(w * 0.5, i + off); + c.moveTo(w * 0.5 - step * 0.08, i + off + step * 0.08); + c.lineTo(w * 0.5, i + off); + c.lineTo(w * 0.5 + step * 0.08, i + off + step * 0.08); + c.moveTo(w * 0.5, i + off); + c.lineTo(w * 0.5, i + off + step * 0.08); + } + + c.stroke(); + } + + c.stroke(); + } +}; + +mxCellRenderer.registerShape(mxShapePidColumn.prototype.cst.SHAPE_COLUMN, mxShapePidColumn); + +//********************************************************************************************************************************************************** +//Conveyor +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapePidConveyor(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapePidConveyor, mxShape); + +mxShapePidConveyor.prototype.cst = { + SHAPE_CONVEYOR : 'mxgraph.pid2misc.conveyor' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapePidConveyor.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, x, y, w, h); + c.setShadow(false); +}; + +mxShapePidConveyor.prototype.background = function(c, x, y, w, h) +{ + var wheelSize = Math.min(h, w * 0.5); + + c.begin(); + c.moveTo(wheelSize * 0.5, 0); + c.lineTo(w - wheelSize * 0.5, 0); + c.stroke(); + + c.ellipse(0, 0, wheelSize, wheelSize); + c.fillAndStroke(); + c.ellipse(w - wheelSize, 0, wheelSize, wheelSize); + c.fillAndStroke(); + + c.begin(); + c.moveTo(wheelSize * 0.5, wheelSize); + c.lineTo(w - wheelSize * 0.5, wheelSize); + c.stroke(); + + //holders + + var dist = w - wheelSize * 1.8; + var startX = wheelSize * 0.9; + var step = wheelSize * 0.7; + + for (var i = 0; i < dist; i = i + step) + { + c.rect(startX + i, 0, wheelSize * 0.2, wheelSize * 0.1); + c.fillAndStroke(); + c.rect(startX + i, wheelSize * 0.9, wheelSize * 0.2, wheelSize * 0.1); + c.fillAndStroke(); + } + +}; + +mxCellRenderer.registerShape(mxShapePidConveyor.prototype.cst.SHAPE_CONVEYOR, mxShapePidConveyor); + diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/pid2/mxPidValves.js b/data/plugins/grafana-flowcharting/src/libs/shapes/pid2/mxPidValves.js new file mode 100644 index 0000000000000..97235c5360d7c --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/pid2/mxPidValves.js @@ -0,0 +1,1149 @@ +/** + * $Id: mxPidValves.js,v 1.5 2013/10/22 12:55:55 mate Exp $ + * Copyright (c) 2006-2013, JGraph Ltd + */ + +//********************************************************************************************************************************************************** +//Valve +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapePidValve(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapePidValve, mxShape); + +mxShapePidValve.prototype.cst = { + SHAPE_VALVE : 'mxgraph.pid2valves.valve', + //states + DEFAULT_STATE : 'defState', + CLOSED : 'closed', + OPEN : 'open', + //actuators + ACTUATOR : 'actuator', + MANUAL : 'man', + DIAPHRAGM : 'diaph', + BALANCED_DIAPHRAGM : 'balDiaph', + MOTOR : 'motor', + NONE : 'none', + SPRING : 'spring', + PILOT : 'pilot', + POWERED: 'powered', + SOLENOID : 'solenoid', + SOLENOID_MANUAL_RESET : 'solenoidManRes', + SINGLE_ACTING : 'singActing', + DOUBLE_ACTING : 'dblActing', + PILOT_CYLINDER : 'pilotCyl', + DIGITAL : 'digital', + WEIGHT : 'weight', + KEY : 'key', + ELECTRO_HYDRAULIC : 'elHyd', + //types + VALVE_TYPE : 'valveType', + BUTTERFLY : 'butterfly', + CHECK : 'check', + GATE : 'gate', + GLOBE : 'globe', + NEEDLE : 'needle', + PLUG : 'plug', + SELF_DRAINING : 'selfDrain', + ANGLE : 'angle', + ANGLE_GLOBE : 'angleGlobe', + THREE_WAY : 'threeWay', + ANGLE_BLOWDOWN : 'angBlow', + BALL : 'ball' +}; + +mxShapePidValve.prototype.customProperties = [ + {name: 'defState', dispName: 'Default State', type: 'enum', defVal:'open', + enumList: [ + {val:'closed', dispName:'Closed'}, + {val:'open', dispName:'Open'} + ]}, + {name: 'actuator', dispName: 'Actuator', type: 'enum', defVal:'man', + enumList: [ + {val:'man', dispName:'Manual'}, + {val:'diaph', dispName:'Diphragm'}, + {val:'balDiaph', dispName:'Balanced Diaphragm'}, + {val:'motor', dispName:'Motor'}, + {val:'none', dispName:'None'}, + {val:'spring', dispName:'Spring'}, + {val:'pilot', dispName:'Pilot'}, + {val:'powered', dispName:'Powered'}, + {val:'solenoid', dispName:'Solenoid'}, + {val:'solenoidManRes', dispName:'Solenoid w/ Manual Reset'}, + {val:'singActing', dispName:'Single Acting'}, + {val:'dblActing', dispName:'Double Acting'}, + {val:'pilotCyl', dispName:'Pilot Cylinder'}, + {val:'digital', dispName:'Digital'}, + {val:'weight', dispName:'Weight'}, + {val:'key', dispName:'Key'}, + {val:'elHyd', dispName:'Electro-Hidraulic'} + ]}, + {name: 'valveType', dispName: 'Type', type: 'enum', defVal:'gate', + enumList: [ + {val:'butterfly', dispName:'Butterfly'}, + {val:'check', dispName:'check'}, + {val:'gate', dispName:'Gate'}, + {val:'globe', dispName:'Globe'}, + {val:'needle', dispName:'Needle'}, + {val:'plug', dispName:'Plug'}, + {val:'selfDrain', dispName:'Self Draining'}, + {val:'angle', dispName:'Angle'}, + {val:'angleGlobe', dispName:'Angle Globe'}, + {val:'threeWay', dispName:'Three Way'}, +// {val:'angBlow', dispName:'Angle Blowdown'}, + {val:'ball', dispName:'Ball'} + ]}, +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapePidValve.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var valveType = mxUtils.getValue(this.style, mxShapePidValve.prototype.cst.VALVE_TYPE, 'gate'); + var actuator = mxUtils.getValue(this.style, mxShapePidValve.prototype.cst.ACTUATOR, mxShapePidValve.prototype.cst.NONE); + var actH = 0; + + if (actuator !== 'none') + { + if (this.isAngleVariant(valveType)) + { + actH = h * 0.3333; + } + else + { + actH = h * 0.4; + } + } + + c.translate(x, y); + c.setLineJoin('round'); + + this.background(c, x, y, w, h, valveType, actuator, actH); + c.setShadow(false); + this.foreground(c, x, y, w, h, valveType, actuator, actH); +}; + +mxShapePidValve.prototype.background = function(c, x, y, w, h, valveType, actuator, actH) +{ + //draw the actuator + if (actuator !== mxShapePidValve.prototype.cst.NONE) + { + if (this.isAngleVariant(valveType)) + { + this.drawActuatorBg(c, x, y, w, h / 1.2, actuator, actH); + } + else + { + this.drawActuatorBg(c, x, y, w, h, actuator, actH); + } + } + + //draw the valve body + if (this.isGateVariant(valveType)) + { + this.drawGateVariantBg(c, 0, 0, w, h, valveType, actuator, actH); + } + else if (this.isAngleVariant(valveType)) + { + this.drawAngleVariantBg(c, 0, 0, w, h, valveType, actuator, actH); + } + else if (valveType === mxShapePidValve.prototype.cst.BUTTERFLY) + { + this.drawButterflyValve(c, 0, 0, w, h, actuator, actH); + } + else if (valveType === mxShapePidValve.prototype.cst.CHECK) + { + this.drawCheckValve(c, 0, 0, w, h, actuator, actH); + } +}; + +mxShapePidValve.prototype.foreground = function(c, x, y, w, h, valveType, actuator, actH) +{ + var valveType = mxUtils.getValue(this.style, mxShapePidValve.prototype.cst.VALVE_TYPE, 'gate'); + + //draw the actuator + if (actuator !== mxShapePidValve.prototype.cst.NONE) + { + if (this.isAngleVariant(valveType)) + { + this.drawActuatorFg(c, x, y, w, h / 1.2, actuator, actH); + } + else + { + this.drawActuatorFg(c, x, y, w, h, actuator, actH); + } + } + + if (this.isGateVariant(valveType)) + { + this.drawGateVariantFg(c, 0, 0, w, h, valveType, actuator, actH); + } + if (this.isAngleVariant(valveType)) + { + this.drawAngleVariantFg(c, 0, 0, w, h, valveType, actuator, actH); + } +}; + +mxShapePidValve.prototype.drawActuatorBg = function(c, x, y, w, h, actuator) +{ + if (this.isSquareVariant(actuator)) + { + c.translate(w * 0.325, 0); + this.drawSquareAct(c, w * 0.35, h * 0.7, actuator); + c.translate(- w * 0.325, 0); + } + else if (actuator === mxShapePidValve.prototype.cst.MANUAL) + { + c.translate(w * 0.25, h * 0.15); + this.drawManAct(c, w * 0.5, h * 0.55); + c.translate(- w * 0.25, - h * 0.15); + } + else if (actuator === mxShapePidValve.prototype.cst.DIAPHRAGM) + { + c.translate(w * 0.25, h * 0.1); + this.drawDiaphAct(c, w * 0.5, h * 0.6); + c.translate(- w * 0.25, - h * 0.1); + } + else if (actuator === mxShapePidValve.prototype.cst.BALANCED_DIAPHRAGM) + { + c.translate(w * 0.25, h * 0.1); + this.drawBalDiaphActBg(c, w * 0.5, h * 0.6); + c.translate(- w * 0.25, - h * 0.1); + } + else if (actuator === mxShapePidValve.prototype.cst.MOTOR || actuator === mxShapePidValve.prototype.cst.ELECTRO_HYDRAULIC) + { + c.translate(w * 0.325, 0); + this.drawCircleAct(c, w * 0.35, h * 0.7, actuator); + c.translate(- w * 0.325, 0); + } + else if (actuator === mxShapePidValve.prototype.cst.SPRING) + { + c.translate(w * 0.36, 0); + this.drawSpringAct(c, w * 0.28, h * 0.7); + c.translate(- w * 0.36, 0); + } + else if (actuator === mxShapePidValve.prototype.cst.SOLENOID_MANUAL_RESET) + { + c.translate(w * 0.325, 0); + this.drawSolenoidManResetAct(c, w * 0.575, h * 0.7); + c.translate(- w * 0.325, 0); + } + else if (actuator === mxShapePidValve.prototype.cst.SINGLE_ACTING) + { + c.translate(w * 0.35, 0); + this.drawSingActingActBg(c, w * 0.65, h * 0.7); + c.translate(- w * 0.35, 0); + } + else if (actuator === mxShapePidValve.prototype.cst.DOUBLE_ACTING) + { + c.translate(w * 0.35, 0); + this.drawDblActingActBg(c, w * 0.65, h * 0.7); + c.translate(- w * 0.35, 0); + } + else if (actuator === mxShapePidValve.prototype.cst.PILOT_CYLINDER) + { + c.translate(w * 0.35, 0); + this.drawPilotCylinderActBg(c, w * 0.65, h * 0.7); + c.translate(- w * 0.35, 0); + } + else if (actuator === mxShapePidValve.prototype.cst.ANGLE_BLOWDOWN) + { + c.translate(w * 0.5, h * 0.2); + this.drawAngleBlowdownAct(c, w * 0.4, h * 0.5); + c.translate(- w * 0.5, - h * 0.2); + } +}; + +mxShapePidValve.prototype.drawActuatorFg = function(c, x, y, w, h, actuator) +{ + if (actuator === mxShapePidValve.prototype.cst.BALANCED_DIAPHRAGM) + { + c.translate(w * 0.25, h * 0.1); + this.drawBalDiaphActFg(c, w * 0.5, h * 0.6); + c.translate(- w * 0.25, - h * 0.1); + } + else if (actuator === mxShapePidValve.prototype.cst.SINGLE_ACTING || + actuator === mxShapePidValve.prototype.cst.DOUBLE_ACTING || + actuator === mxShapePidValve.prototype.cst.PILOT_CYLINDER) + { + c.translate(w * 0.35, 0); + this.drawActingActFg(c, w * 0.65, h * 0.7); + c.translate(- w * 0.35, 0); + } +}; + +mxShapePidValve.prototype.drawManAct = function(c, w, h) +{ + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.stroke(); +}; + +mxShapePidValve.prototype.drawDiaphAct = function(c, w, h) +{ + c.begin(); + c.moveTo(w * 0.5, h * 0.2); + c.lineTo(w * 0.5, h); + c.stroke(); + + c.begin(); + c.moveTo(0, h * 0.2); + c.arcTo(w * 0.6, h * 0.4, 0, 0, 1, w, h * 0.2); + c.close(); + c.fillAndStroke(); +}; + +mxShapePidValve.prototype.drawBalDiaphActBg = function(c, w, h) +{ + c.ellipse(0, 0, w, h * 0.3); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5, h * 0.3); + c.lineTo(w * 0.5, h); + c.stroke(); +}; + +mxShapePidValve.prototype.drawBalDiaphActFg = function(c, w, h) +{ + c.begin(); + c.moveTo(0, h * 0.15); + c.lineTo(w, h * 0.15); + c.stroke(); +}; + +mxShapePidValve.prototype.drawCircleAct = function(c, w, h, actuator) +{ + c.ellipse(0, 0, w, h * 0.5); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.stroke(); + + var m = ''; + + if (actuator === mxShapePidValve.prototype.cst.MOTOR) + { + m = 'M'; + } + else if (actuator === mxShapePidValve.prototype.cst.ELECTRO_HYDRAULIC) + { + m = 'E/H'; + } + + c.setFontStyle(1); + c.setFontFamily('Helvetica'); + c.setFontSize(Math.min(w, h) * 0.4); + c.text(w * 0.5, h * 0.25, 0, 0, m, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxShapePidValve.prototype.drawSpringAct = function(c, w, h) +{ + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h); + c.moveTo(w * 0.32, h * 0.16); + c.lineTo(w * 0.68, h * 0.08); + c.moveTo(w * 0.21, h * 0.32); + c.lineTo(w * 0.79, h * 0.20); + c.moveTo(w * 0.1, h * 0.52); + c.lineTo(w * 0.9, h * 0.36); + c.moveTo(0, h * 0.72); + c.lineTo(w, h * 0.5); + c.stroke(); +}; + +mxShapePidValve.prototype.drawSolenoidManResetAct = function(c, w, h) +{ + c.rect(0, 0, w * 0.61, h * 0.46); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.56, h * 0.6); + c.lineTo(w * 0.78, h * 0.5); + c.lineTo(w, h * 0.6); + c.lineTo(w * 0.78, h * 0.7); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.305, h * 0.46); + c.lineTo(w * 0.305, h); + c.moveTo(w * 0.305, h * 0.6); + c.lineTo(w * 0.56, h * 0.6); + c.stroke(); + + c.setFontStyle(1); + c.setFontFamily('Helvetica'); + c.setFontSize(Math.min(w, h) * 0.4); + c.text(w * 0.305, h * 0.23, 0, 0, 'S', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + + c.setFontStyle(0); + c.setFontSize(Math.min(w, h) * 0.15); + c.text(w * 0.78, h * 0.6, 0, 0, 'R', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxShapePidValve.prototype.drawSingActingActBg = function(c, w, h) +{ + c.rect(0, 0, w * 0.46, h * 0.46); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.23, h * 0.46); + c.lineTo(w * 0.23, h); + c.moveTo(w * 0.46, h * 0.23); + c.lineTo(w, h * 0.23); + c.moveTo(w * 0.77, h * 0.15); + c.lineTo(w * 0.69, h * 0.31); + c.moveTo(w * 0.82, h * 0.15); + c.lineTo(w * 0.74, h * 0.31); + c.stroke(); +}; + +mxShapePidValve.prototype.drawActingActFg = function(c, w, h) +{ + c.begin(); + c.moveTo(w * 0.23, h * 0.23); + c.lineTo(w * 0.23, h * 0.46); + c.moveTo(0, h * 0.23); + c.lineTo(w * 0.46, h * 0.23); + c.stroke(); +}; + +mxShapePidValve.prototype.drawDblActingActBg = function(c, w, h) +{ + c.rect(0, 0, w * 0.46, h * 0.46); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.23, h * 0.46); + c.lineTo(w * 0.23, h); + c.moveTo(w * 0.46, h * 0.115); + c.lineTo(w, h * 0.115); + c.moveTo(w * 0.77, h * 0.035); + c.lineTo(w * 0.69, h * 0.195); + c.moveTo(w * 0.82, h * 0.035); + c.lineTo(w * 0.74, h * 0.195); + c.moveTo(w * 0.46, h * 0.345); + c.lineTo(w, h * 0.345); + c.moveTo(w * 0.77, h * 0.265); + c.lineTo(w * 0.69, h * 0.425); + c.moveTo(w * 0.82, h * 0.265); + c.lineTo(w * 0.74, h * 0.425); + c.stroke(); +}; + +mxShapePidValve.prototype.drawPilotCylinderActBg = function(c, w, h) +{ + c.rect(0, 0, w * 0.46, h * 0.46); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.23, h * 0.46); + c.lineTo(w * 0.23, h); + c.moveTo(w * 0.46, h * 0.23); + c.lineTo(w * 0.77, h * 0.23); + c.stroke(); + + c.rect(w * 0.77, h * 0.115, w * 0.23, h * 0.23); + c.fillAndStroke(); + + c.setFontStyle(0); + c.setFontFamily('Helvetica'); + c.setFontSize(Math.min(w, h) * 0.15); + c.text(w * 0.885, h * 0.23, 0, 0, 'P', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxShapePidValve.prototype.drawAngleBlowdownAct = function(c, w, h) +{ + c.begin(); + c.moveTo(w * 0.34, 0); + c.lineTo(w, h * 0.405); + c.moveTo(0, h); + c.lineTo(w * 0.665, h * 0.205); + c.stroke(); +}; + +mxShapePidValve.prototype.drawSquareAct = function(c, w, h, actuator) +{ + c.rect(0, 0, w, h * 0.5); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5, h * 0.5); + c.lineTo(w * 0.5, h); + c.stroke(); + + var m = ''; + + if (actuator === mxShapePidValve.prototype.cst.PILOT) + { + m = 'P'; + } + else if (actuator === mxShapePidValve.prototype.cst.SOLENOID) + { + m = 'S'; + } + else if (actuator === mxShapePidValve.prototype.cst.DIGITAL) + { + m = 'D'; + } + else if (actuator === mxShapePidValve.prototype.cst.WEIGHT) + { + m = 'W'; + } + else if (actuator === mxShapePidValve.prototype.cst.KEY) + { + m = 'K'; + } + + c.setFontStyle(1); + c.setFontFamily('Helvetica'); + c.setFontSize(Math.min(w, h) * 0.4); + c.text(w * 0.5, h * 0.25, 0, 0, m, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +mxShapePidValve.prototype.drawGateVariantFg = function(c, x, y, w, h, valveType, actuator, actH) +{ + var defState = mxUtils.getValue(this.style, mxShapePidValve.prototype.cst.DEFAULT_STATE, 'open'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + + if (valveType === mxShapePidValve.prototype.cst.BALL) + { + c.ellipse(x + w * 0.3, y + actH + (h - actH) * 0.18, w * 0.4, (h - actH) * 0.64); + c.fillAndStroke(); + } + else if (valveType === mxShapePidValve.prototype.cst.GLOBE) + { + c.ellipse(x + w * 0.3, y + actH + (h - actH) * 0.18, w * 0.4, (h - actH) * 0.64); + c.setFillColor(strokeColor); + c.fillAndStroke(); + c.setFillColor(fillColor); + } + else if (valveType === mxShapePidValve.prototype.cst.PLUG) + { + this.drawPlug(c, x + w * 0.4, y + actH + (h - actH) * 0.25, w * 0.2, (h - actH) * 0.5); + } + else if (valveType === mxShapePidValve.prototype.cst.NEEDLE) + { + this.drawNeedle(c, x + w * 0.45, y + actH + (h - actH) * 0.1, w * 0.1, (h - actH) * 0.9); + } + else if (valveType === mxShapePidValve.prototype.cst.SELF_DRAINING) + { + this.drawDrain(c, x + w * 0.48, y + actH + (h - actH) * 0.5, w * 0.04, (h - actH) * 0.49); + } +}; + +mxShapePidValve.prototype.drawAngleVariantFg = function(c, x, y, w, h, valveType, actuator, actH) +{ + var defState = mxUtils.getValue(this.style, mxShapePidValve.prototype.cst.DEFAULT_STATE, 'open'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + + if (valveType === mxShapePidValve.prototype.cst.ANGLE_GLOBE) + { + if (actuator === 'none') + { + c.ellipse(w * 0.34, h * 0.175, w * 0.32, h * 0.4); + } + else + { + c.ellipse(w * 0.34, h * 0.45, w * 0.32, h * 0.2667); + } + c.setFillColor(strokeColor); + c.fillAndStroke(); + c.setFillColor(fillColor); + } +}; + +mxShapePidValve.prototype.drawGateVariantBg = function(c, x, y, w, h, valveType, actuator, actH) +{ + if (valveType === mxShapePidValve.prototype.cst.GATE) + { + this.drawGateValve(c, x, y + actH, w, h - actH); + } + else if (valveType === mxShapePidValve.prototype.cst.BALL || valveType === mxShapePidValve.prototype.cst.GLOBE) + { + c.ellipse(x + w * 0.3, y + actH + (h - actH) * 0.18, w * 0.4, (h - actH) * 0.64); + c.fillAndStroke(); + this.drawGateValve(c, x, y + actH, w, h - actH); + } + else if (valveType === mxShapePidValve.prototype.cst.PLUG) + { + this.drawPlug(c, x + w * 0.4, y + actH + (h - actH) * 0.25, w * 0.2, (h - actH) * 0.5); + this.drawGateValve(c, x, y + actH, w, h - actH); + } + else if (valveType === mxShapePidValve.prototype.cst.NEEDLE) + { + this.drawNeedle(c, x + w * 0.45, y + actH + (h - actH) * 0.1, w * 0.1, (h - actH) * 0.9); + this.drawGateValve(c, x, y + actH, w, h - actH); + } + else if (valveType === mxShapePidValve.prototype.cst.SELF_DRAINING) + { + this.drawDrain(c, x + w * 0.48, y + actH + (h - actH) * 0.5, w * 0.04, (h - actH) * 0.49); + this.drawGateValve(c, x, y + actH, w, h - actH); + } +}; + +mxShapePidValve.prototype.drawAngleVariantBg = function(c, x, y, w, h, valveType, actuator, actH) +{ + if (valveType === mxShapePidValve.prototype.cst.ANGLE) + { + this.drawAngleValve(c, w * 0.2, y + actH, w * 0.8, h - actH); + } + else if (valveType === mxShapePidValve.prototype.cst.ANGLE_GLOBE) + { + this.drawAngleGlobeValveBg(c, w * 0.2, y + actH, w * 0.8, h - actH); + } + else if (valveType === mxShapePidValve.prototype.cst.THREE_WAY) + { + this.drawThreeWayValve(c, 0, y + actH, w, h - actH); + } + else if (valveType === mxShapePidValve.prototype.cst.ANGLE_BLOWDOWN) + { + this.drawAngleBlowdownValve(c, x, y + actH, w, h - actH); + } +}; + +mxShapePidValve.prototype.drawPlug = function(c, x, y, w, h) +{ + c.translate(x, y); + c.begin(); + c.moveTo(0, h * 0.5); + c.lineTo(w * 0.5, 0); + c.lineTo(w, h * 0.5); + c.lineTo(w * 0.5, h); + c.close(); + c.fillAndStroke(); + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawNeedle = function(c, x, y, w, h) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w, 0); + c.lineTo(w * 0.5, h); + c.close(); + c.setFillColor(strokeColor); + c.fillAndStroke(); + c.setFillColor(fillColor); + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawDrain = function(c, x, y, w, h) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + + c.translate(x, y); + c.begin(); + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.5, h * 0.96); + c.stroke(); + + c.begin(); + c.moveTo(0, h * 0.9); + c.lineTo(w, h * 0.9); + c.lineTo(w * 0.5, h); + c.close(); + c.setFillColor(strokeColor); + c.fillAndStroke(); + c.setFillColor(fillColor); + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawGateValve = function(c, x, y, w, h) +{ + var defState = mxUtils.getValue(this.style, mxShapePidValve.prototype.cst.DEFAULT_STATE, 'open'); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(0, h); + c.close(); + c.moveTo(w, 0); + c.lineTo(w * 0.5, h * 0.5); + c.lineTo(w, h); + c.close(); + + if (defState === mxShapePidValve.prototype.cst.CLOSED) + { + c.setFillColor(strokeColor); + c.fillAndStroke(); + c.setFillColor(fillColor); + } + else + { + c.fillAndStroke(); + } + + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawAngleValve = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(w * 0.375, h * 0.375); + c.lineTo(w, 0); + c.lineTo(w, h * 0.75); + c.close(); + c.moveTo(w * 0.375, h * 0.375); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawAngleGlobeValveBg = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.ellipse(w * 0.175, h * 0.175, w * 0.4, h * 0.4); + c.fillAndStroke(); + c.begin(); + c.moveTo(w * 0.375, h * 0.375); + c.lineTo(w, 0); + c.lineTo(w, h * 0.75); + c.close(); + c.moveTo(w * 0.375, h * 0.375); + c.lineTo(w * 0.75, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawAngleGlobeValveFg = function(c, x, y, w, h) +{ + c.translate(x, y); + c.ellipse(w * 0.275, h * 0.275, w * 0.2, h * 0.2); + c.fillAndStroke(); + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawThreeWayValve = function(c, x, y, w, h) +{ + c.translate(x, y); + + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.5, h * 0.375); + c.lineTo(0, h * 0.75); + c.close(); + + c.moveTo(w, 0); + c.lineTo(w * 0.5, h * 0.375); + c.lineTo(w, h * 0.75); + c.close(); + + c.moveTo(w * 0.5, h * 0.375); + c.lineTo(w * 0.8, h); + c.lineTo(w * 0.2, h); + c.close(); + c.fillAndStroke(); + + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawAngleBlowdownValve = function(c, x, y, w, h) +{ + +}; + + +mxShapePidValve.prototype.drawButterflyValve = function(c, x, y, w, h, actuator, actH) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + + var yv = y + actH; + var hv = h - actH; + + c.translate(x, yv); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, hv); + c.moveTo(w, 0); + c.lineTo(w, hv); + + c.moveTo(w * 0.05, hv * 0.05); + c.lineTo(w * 0.95, hv * 0.95); + + c.fillAndStroke(); + + c.ellipse(w * 0.4, hv * 0.33, w * 0.2, hv * 0.33); + c.fillAndStroke(); + + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.drawCheckValve = function(c, x, y, w, h, actuator, actH) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + + var yv = y + actH; + var hv = h - actH; + + c.translate(x, yv); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, hv); + c.moveTo(w, 0); + c.lineTo(w, hv); + c.moveTo(w * 0.05, hv * 0.05); + c.lineTo(w * 0.95, hv * 0.95); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.8925, hv * 0.815); + c.lineTo(w * 0.957, hv * 0.955); + c.lineTo(w * 0.85, hv * 0.928); + c.close(); + c.setFillColor(strokeColor); + c.fillAndStroke(); + c.setFillColor(fillColor); + + c.translate(-x, -y); +}; + +mxShapePidValve.prototype.isGateVariant = function(valveType) +{ + if (valveType === mxShapePidValve.prototype.cst.GATE || + valveType === mxShapePidValve.prototype.cst.BALL || + valveType === mxShapePidValve.prototype.cst.PLUG || + valveType === mxShapePidValve.prototype.cst.NEEDLE || + valveType === mxShapePidValve.prototype.cst.SELF_DRAINING || + valveType === mxShapePidValve.prototype.cst.GLOBE) + { + return true; + } + else + { + return false; + } +}; + +mxShapePidValve.prototype.isAngleVariant = function(valveType) +{ + if (valveType === mxShapePidValve.prototype.cst.ANGLE || + valveType === mxShapePidValve.prototype.cst.ANGLE_GLOBE || + valveType === mxShapePidValve.prototype.cst.THREE_WAY || + valveType === mxShapePidValve.prototype.cst.ANGLE_BLOWDOWN) + { + return true; + } + else + { + return false; + } +}; + +mxShapePidValve.prototype.isSquareVariant = function(actType) +{ + if (actType === mxShapePidValve.prototype.cst.PILOT || + actType === mxShapePidValve.prototype.cst.SOLENOID || + actType === mxShapePidValve.prototype.cst.POWERED || + actType === mxShapePidValve.prototype.cst.DIGITAL || + actType === mxShapePidValve.prototype.cst.WEIGHT || + actType === mxShapePidValve.prototype.cst.KEY) + { + return true; + } + else + { + return false; + } +}; + +mxCellRenderer.registerShape(mxShapePidValve.prototype.cst.SHAPE_VALVE, mxShapePidValve); + +//********************************************************************************************************************************************************** +//Integrated Block And Bleed Valve +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxShapePidIntBlockBleedValve(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShapePidValve. +*/ +mxUtils.extend(mxShapePidIntBlockBleedValve, mxShapePidValve); + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxShapePidIntBlockBleedValve.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var actuator = mxUtils.getValue(this.style, mxShapePidIntBlockBleedValve.prototype.cst.ACTUATOR, mxShapePidIntBlockBleedValve.prototype.cst.NONE); + var actH = 0; + + if (actuator !== 'none') + { + actH = h * 0.2353; + } + + c.translate(x, y); + c.setLineJoin('round'); + + this.background(c, x, y, w, h, actuator, actH); + c.setShadow(false); + this.foreground(c, x, y, w, h, actuator, actH); +}; + +mxShapePidIntBlockBleedValve.prototype.background = function(c, x, y, w, h, actuator, actH) +{ + //draw the actuator + if (actuator !== mxShapePidIntBlockBleedValve.prototype.cst.NONE) + { + this.drawActuatorBg(c, x, y, w, h, actuator); + } + + //draw the valve body + this.drawValveBg(c, 0, actH, w, h - actH); +}; + +mxShapePidIntBlockBleedValve.prototype.foreground = function(c, x, y, w, h, actuator, actH) +{ + //draw the actuator + if (actuator !== mxShapePidIntBlockBleedValve.prototype.cst.NONE) + { + this.drawActuatorFg(c, x, y, w, h, actuator); + } +}; + +mxShapePidIntBlockBleedValve.prototype.drawValveBg = function(c, x, y, w, h) +{ + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + + c.translate(x, y); + c.begin(); + c.moveTo(0, 0); + c.lineTo(w * 0.5, h * 0.23); + c.lineTo(0, h * 0.46); + c.close(); + c.moveTo(w * 0.5, h * 0.23); + c.lineTo(w, 0); + c.lineTo(w, h * 0.46); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.5, h * 0.23); + c.lineTo(w * 0.5, h * 0.5); + c.stroke(); + + c.setFillColor(strokeColor); + c.begin(); + c.moveTo(w * 0.3, h * 0.5); + c.lineTo(w * 0.7, h * 0.5); + c.lineTo(w * 0.5, h * 0.75); + c.close(); + c.fillAndStroke(); + + c.begin(); + c.moveTo(w * 0.3, h); + c.lineTo(w * 0.5, h * 0.75); + c.lineTo(w * 0.7, h); + c.fillAndStroke(); + c.setFillColor(fillColor); + + c.translate(-x, -y); +}; + +mxShapePidIntBlockBleedValve.prototype.drawActuatorBg = function(c, x, y, w, h, actuator) +{ + if (this.isSquareVariant(actuator)) + { + c.translate(w * 0.325, 0); + this.drawSquareAct(c, w * 0.35, h * 0.4112, actuator); + c.translate(- w * 0.325, 0); + } + else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.MANUAL) + { + c.translate(w * 0.25, h * 0.0882); + this.drawManAct(c, w * 0.5, h * 0.323); + c.translate(- w * 0.25, - h * 0.0882); + } + else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.DIAPHRAGM) + { + c.translate(w * 0.25, h * 0.0588); + this.drawDiaphAct(c, w * 0.5, h * 0.3524); + c.translate(- w * 0.25, - h * 0.0588); + } + else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.BALANCED_DIAPHRAGM) + { + c.translate(w * 0.25, h * 0.0588); + this.drawBalDiaphActBg(c, w * 0.5, h * 0.3524); + c.translate(- w * 0.25, - h * 0.0588); + } + else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.MOTOR || actuator === mxShapePidIntBlockBleedValve.prototype.cst.ELECTRO_HYDRAULIC) + { + c.translate(w * 0.325, 0); + this.drawCircleAct(c, w * 0.35, h * 0.4112, actuator); + c.translate(- w * 0.325, 0); + } + else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.SPRING) + { + c.translate(w * 0.36, 0); + this.drawSpringAct(c, w * 0.28, h * 0.4112); + c.translate(- w * 0.36, 0); + } + else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.SOLENOID_MANUAL_RESET) + { + c.translate(w * 0.325, 0); + this.drawSolenoidManResetAct(c, w * 0.575, h * 0.4112); + c.translate(- w * 0.325, 0); + } + else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.SINGLE_ACTING) + { + c.translate(w * 0.35, 0); + this.drawSingActingActBg(c, w * 0.65, h * 0.4112); + c.translate(- w * 0.35, 0); + } + else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.DOUBLE_ACTING) + { + c.translate(w * 0.35, 0); + this.drawDblActingActBg(c, w * 0.65, h * 0.4112); + c.translate(- w * 0.35, 0); + } + else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.PILOT_CYLINDER) + { + c.translate(w * 0.35, 0); + this.drawPilotCylinderActBg(c, w * 0.65, h * 0.4112); + c.translate(- w * 0.35, 0); + } +}; + +mxShapePidIntBlockBleedValve.prototype.drawActuatorFg = function(c, x, y, w, h, actuator) +{ + if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.BALANCED_DIAPHRAGM) + { + c.translate(w * 0.25, h * 0.0588); + this.drawBalDiaphActFg(c, w * 0.5, h * 0.3524); + c.translate(- w * 0.25, - h * 0.0588); + } + else if (actuator === mxShapePidIntBlockBleedValve.prototype.cst.SINGLE_ACTING || + actuator === mxShapePidIntBlockBleedValve.prototype.cst.DOUBLE_ACTING || + actuator === mxShapePidIntBlockBleedValve.prototype.cst.PILOT_CYLINDER) + { + c.translate(w * 0.35, 0); + this.drawActingActFg(c, w * 0.65, h * 0.4112); + c.translate(- w * 0.35, 0); + } +}; + +mxCellRenderer.registerShape('mxgraph.pid2valves.blockBleedValve', mxShapePidIntBlockBleedValve); + +//********************************************************************************************************************************************************** +//Auto Recirculation Valve +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxShapePidAutoRecircValve(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxShapePidAutoRecircValve, mxShape); + + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxShapePidAutoRecircValve.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.setLineJoin('round'); + c.translate(x, y); + + //background + c.rect(0, 0, w, h); + c.fillAndStroke(); + c.setShadow(false); + + //foreground + c.begin(); + c.moveTo(w * 0.08, h * 0.08); + c.lineTo(w * 0.08, h * 0.92); + c.moveTo(w * 0.92, h * 0.08); + c.lineTo(w * 0.92, h * 0.92); + c.moveTo(w * 0.12, h * 0.122); + c.lineTo(w * 0.8738, h * 0.8837); + + c.moveTo(w * 0.5, 0); + c.lineTo(w * 0.55, h * 0.05); + c.lineTo(w * 0.45, h * 0.15); + c.lineTo(w * 0.55, h * 0.25); + c.lineTo(w * 0.45, h * 0.35); + c.lineTo(w * 0.55, h * 0.45); + c.lineTo(w * 0.49, h * 0.5); + c.stroke(); + + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var strokeColor = mxUtils.getValue(this.style, mxConstants.STYLE_STROKECOLOR, '#000000'); + + c.begin(); + c.moveTo(w * 0.8257, h * 0.7695); + c.lineTo(w * 0.8797, h * 0.888); + c.lineTo(w * 0.79, h * 0.8651); + c.close(); + c.setFillColor(strokeColor); + c.fillAndStroke(); + c.setFillColor(fillColor); +}; + +mxCellRenderer.registerShape('mxgraph.pid2valves.autoRecircValve', mxShapePidAutoRecircValve); diff --git a/data/plugins/grafana-flowcharting/src/libs/shapes/rack/mxRack.js b/data/plugins/grafana-flowcharting/src/libs/shapes/rack/mxRack.js new file mode 100644 index 0000000000000..ef6df7708e777 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/libs/shapes/rack/mxRack.js @@ -0,0 +1,1263 @@ +/** + * $Id: mxRack.js,v 1.5 2014/01/21 13:10:37 gaudenz Exp $ + * Copyright (c) 2006-2013, JGraph Ltd + */ +//********************************************************************************************************************************************************** +//Rack Numbering +//********************************************************************************************************************************************************** + +//********************************************************************************************************************************************************** +// v2 Rack cabinet, old versions below this +//********************************************************************************************************************************************************** + +//********************************************************************************************************************************************************** +//START LEGACY RACKS +//********************************************************************************************************************************************************** +function mxRackContainer(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxRackContainer, mxShape); + +mxRackContainer.unitSize = 20; + +mxRackContainer.prototype.cst = +{ + SHAPE_RACK_CONTAINER : 'mxgraph.rackGeneral.container', + TEXT_COLOR : 'textColor', + NUMBER_DISPLAY : 'numDisp', + OFF : 'off', + DIR_ASC : 'ascend', + DIR_DESC : 'descend' +}; + +mxRackContainer.prototype.customProperties = [ + {name: 'fillColor2', dispName: 'Cabinet Color', type: 'color'}, + {name: 'textColor', dispName: 'Numbers Color', type: 'color'}, + {name: 'numDisp', dispName: 'Display Numbers', type: 'enum', + enumList: [{val: 'off', dispName: 'Off'}, {val: 'ascend', dispName: 'Ascending'}, {val: 'descend', dispName: 'Descending'}], + onChange: function(graph, newValue) + { + graph.setCellStyles('marginLeft', (newValue == 'off') ? 9 : 33, graph.getSelectionCells()); + } + } +]; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxRackContainer.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var fontSize = 12; + var displayNumbers = mxUtils.getValue(this.style, mxRackContainer.prototype.cst.NUMBER_DISPLAY, mxRackContainer.prototype.cst.DIR_ASC); + var fillColor = mxUtils.getValue(this.style, mxConstants.STYLE_FILLCOLOR, '#ffffff'); + var fillColor2 = mxUtils.getValue(this.style, 'fillColor2', '#f4f4f4'); + + if (displayNumbers !== mxRackContainer.prototype.cst.OFF) + { + c.translate(x + fontSize * 2, y); + w = Math.max(w - fontSize * 2, 0); + } + else + { + c.translate(x, y); + }; + + c.setFillColor(fillColor); + this.background(c, w, h, fontSize); + c.setShadow(false); + c.setFillColor(fillColor2); + this.foreground(c, w, h, fontSize); + + if (displayNumbers !== mxRackContainer.prototype.cst.OFF && w > 18 + fontSize * 2) + { + this.sideText(c, w, h, fontSize); + }; +}; + +mxRackContainer.prototype.background = function(c, w, h, fontSize) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxRackContainer.prototype.foreground = function(c, w, h, fontSize) +{ + if (w > 18 + fontSize * 2 && h > 42) + { + c.rect(0, 0, w, 21); + c.fillAndStroke(); + c.rect(0, h - 21, w, 21); + c.fillAndStroke(); + c.rect(0, 21, 9, h - 42); + c.fillAndStroke(); + c.rect(w - 9, 21, 9, h - 42); + c.fillAndStroke(); + c.ellipse(2.5, 7.5, 6, 6); + c.stroke(); + c.ellipse(w - 8.5, 7.5, 6, 6); + c.stroke(); + c.ellipse(2.5, h - 13.5, 6, 6); + c.stroke(); + c.ellipse(w - 8.5, h - 13.5, 6, 6); + c.stroke(); + } +}; + +mxRackContainer.prototype.sideText = function(c, w, h, fontSize) +{ + var fontColor = mxUtils.getValue(this.style, mxRackContainer.prototype.cst.TEXT_COLOR, '#666666'); + var displayNumbers = mxUtils.getValue(this.style, mxRackContainer.prototype.cst.NUMBER_DISPLAY, mxRackContainer.prototype.cst.DIR_ASC); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + + // Calculate number of units + var units = Math.floor((Math.abs(h) - 42) / mxRackContainer.unitSize); + + for (var i = 0; i < units; i++) + { + var displayNumber = (displayNumbers === mxRackContainer.prototype.cst.DIR_DESC) ? (i + 1).toString() : (units - i).toString(); + c.text(-fontSize, 21 + mxRackContainer.unitSize * 0.5 + i * mxRackContainer.unitSize, 0, 0, displayNumber, mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + } + + c.begin(); + + for (var i = 0; i < units + 1; i++) + { + c.moveTo(-2 * fontSize, 21 + i * mxRackContainer.unitSize); + c.lineTo(0, 21 + i * mxRackContainer.unitSize); + }; + + c.stroke(); +}; + +/** +* Extends mxShape. +*/ +function mxRackPlate(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxRackPlate, mxShape); + +mxRackPlate.prototype.cst = +{ + SHAPE_RACK_PLATE : 'mxgraph.rackGeneral.plate' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxRackPlate.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackPlate.prototype.background = function(c, w, h) +{ + c.begin(); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxRackPlate.prototype.foreground = function(c, w, h) +{ + var bufferSize = 9; + + if (w > bufferSize * 2) + { + c.save(); + c.setFillColor('#000000'); + c.setAlpha(0.23); + c.rect(0,0, bufferSize, h); + c.fill(); + c.rect(w - bufferSize,0, bufferSize, h); + c.fill(); + c.restore(); + c.rect(0, 0, w, h); + c.stroke(); + c.rect(bufferSize, 0, w - bufferSize * 2, h); + c.stroke(); + } +}; + +//********************************************************************************************************************************************************** +//Horizontal Cable Duct +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxRackHorCableDuct(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxRackHorCableDuct, mxShape); + +mxRackHorCableDuct.prototype.cst = +{ + SHAPE_RACK_HOR_CABLE_DUCT : 'mxgraph.rackGeneral.horCableDuct' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxRackHorCableDuct.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackHorCableDuct.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxRackHorCableDuct.prototype.foreground = function(c, w, h) +{ + // Divide the space equally with 33 between each duct + var spaceBuffer = 20; + var unitSpacing = 33; + var unitsAcross = Math.floor((w - spaceBuffer) / unitSpacing); + var buffer = spaceBuffer / 2 + Math.floor(((w - spaceBuffer) - unitsAcross * unitSpacing) / 2); + + if (unitsAcross > 0) + { + for (var i = 0; i <= unitsAcross; i++) + { + c.rect(buffer, 0, 3, 7); + c.stroke(); + c.rect(buffer, 7, 3, 7.8); + c.stroke(); + + buffer += unitSpacing; + } + } +}; + +function mxRackHorRoutingBank(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxRackHorRoutingBank, mxShape); + +mxRackHorRoutingBank.prototype.cst = +{ + SHAPE_RACK_HOR_ROUTING_BANK : 'mxgraph.rackGeneral.horRoutingBank' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxRackHorRoutingBank.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackHorRoutingBank.prototype.background = function(c, w, h) +{ + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxRackHorRoutingBank.prototype.foreground = function(c, w, h) +{ + // Divide the space equally with 33 between each duct + var spaceBuffer = 20; + var unitSpacing = 22; + var rectWidth = 16; + var unitsAcross = Math.floor((w - spaceBuffer - rectWidth) / unitSpacing); + var unitsDown = Math.floor(h / mxRackContainer.unitSize); + + if (unitsAcross > 0 && unitsDown > 0) + { + for (var i = 0; i < unitsDown; i++) + { + var buffer = (spaceBuffer + rectWidth) / 2 + Math.floor(((w - spaceBuffer - rectWidth) - unitsAcross * unitSpacing) / 2) - rectWidth / 2; + + for (var j = 0; j <= unitsAcross; j++) + { + c.rect(buffer, 4 + (i * mxRackContainer.unitSize), rectWidth, 6.8); + c.stroke(); + + buffer += unitSpacing; + } + } + } +}; + +function mxRackNeatPatch(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxRackNeatPatch, mxShape); + +mxRackNeatPatch.prototype.cst = +{ + SHAPE_RACK_NEAT_PATCH : 'mxgraph.rackGeneral.neatPatch' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxRackNeatPatch.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.mainText(c, w, h); +}; + +mxRackNeatPatch.prototype.background = function(c, w, h) +{ + c.setFillColor('#666666'); + c.rect(0, 0, w, h); + c.fillAndStroke(); +}; + +mxRackNeatPatch.prototype.mainText = function(c, w, h) +{ + c.setFontSize('12'); + c.setFontColor('#ffffff'); + c.setFontStyle(mxConstants.FONT_BOLD); + c.text(w / 2, h - 6, 0, 0, 'NEAT-PATCH', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +function mxRackShelf(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxRackShelf, mxShape); + +mxRackShelf.prototype.cst = +{ + SHAPE_RACK_SHELF : 'mxgraph.rackGeneral.shelf' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxRackShelf.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); +}; + +mxRackShelf.prototype.background = function(c, w, h) +{ + c.setStrokeWidth(2); + c.begin(); + c.moveTo(1, 0); + c.lineTo(1, h - 1); + c.lineTo(w - 1, h - 1); + c.lineTo(w - 1, 1); + c.fillAndStroke(); +}; + +function mxRackRackNumbering(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxRackRackNumbering, mxShape); + +mxRackRackNumbering.prototype.cst = +{ + SHAPE_RACK_RACK_NUMBERING : 'mxgraph.rackGeneral.rackNumbering', + UNIT_NUM : 'unitNum', + UNIT_HEIGHT : 'unitHeight', + TEXT_COLOR : 'textColor', + NUM_DIR : 'numDir', + DIR_ASC : 'ascend', + DIR_DESC : 'descend', + TEXT_SIZE : 'textSize' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxRackRackNumbering.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var unitNum = parseFloat(mxUtils.getValue(this.style, mxRackRackNumbering.prototype.cst.UNIT_NUM, '42')); + var unitH = parseFloat(mxUtils.getValue(this.style, mxRackRackNumbering.prototype.cst.UNIT_HEIGHT, '14.8')); + var fontSize = parseFloat(mxUtils.getValue(this.style, mxRackRackNumbering.prototype.cst.TEXT_SIZE, '12')); + c.translate(x, y); + + var h = unitNum * unitH; + this.background(c, w, h, fontSize); + c.setShadow(false); + this.sideText(c, w, h, unitNum, unitH, fontSize); +}; + +mxRackRackNumbering.prototype.background = function(c, w, h, fontSize) +{ + c.rect(fontSize * 3, 0, 160.9, h); + c.fillAndStroke(); +}; + +mxRackRackNumbering.prototype.sideText = function(c, w, h, unitNum, unitH, fontSize) +{ + var fontColor = mxUtils.getValue(this.style, mxRackRackNumbering.prototype.cst.TEXT_COLOR, '#666666'); + var numDir = mxUtils.getValue(this.style, mxRackRackNumbering.prototype.cst.NUM_DIR, mxRackRackNumbering.prototype.cst.DIR_DESC); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + + if (numDir === mxRackRackNumbering.prototype.cst.DIR_ASC) + { + for (var i = 0; i < unitNum; i++) + { + c.text(fontSize, unitH * 0.5 + i * unitH, 0, 0, (i + 1).toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + }; + } + else + { + for (var i = 0; i < unitNum; i++) + { + c.text(fontSize, h - unitH * 0.5 - i * unitH, 0, 0, (i + 1).toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + }; + }; + + c.setStrokeColor('#dddddd'); + + c.begin(); + + for (var i = 0; i < unitNum + 1; i++) + { + c.moveTo(0, i * unitH); + c.lineTo(fontSize * 3, i * unitH); + }; + + c.stroke(); +}; + +//********************************************************************************************************************************************************** +//Rack Cabinet +//********************************************************************************************************************************************************** +/** + * Extends mxShape. + */ +function mxRackRackCabinet(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxRackRackCabinet, mxShape); + +mxRackRackCabinet.prototype.cst = +{ + SHAPE_RACK_RACK_CABINET : 'mxgraph.rackGeneral.rackCabinet', + UNIT_NUM : 'unitNum', + UNIT_HEIGHT : 'unitHeight', + TEXT_COLOR : 'textColor', + NUM_DIR : 'numDir', + NUMBER_DISPLAY : 'numDisp', + ON : 'on', + OFF : 'off', + DIR_ASC : 'ascend', + DIR_DESC : 'descend', + TEXT_SIZE : 'textSize' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxRackRackCabinet.prototype.paintVertexShape = function(c, x, y, w, h) +{ + var unitNum = parseFloat(mxUtils.getValue(this.style, mxRackRackCabinet.prototype.cst.UNIT_NUM, '12')); + var unitH = parseFloat(mxUtils.getValue(this.style, mxRackRackCabinet.prototype.cst.UNIT_HEIGHT, '14.8')); + var fontSize = parseFloat(mxUtils.getValue(this.style, mxRackRackCabinet.prototype.cst.TEXT_SIZE, '12')); + var numDis = mxUtils.getValue(this.style, mxRackRackCabinet.prototype.cst.NUMBER_DISPLAY, mxRackRackCabinet.prototype.cst.ON); + + if (numDis === mxRackRackCabinet.prototype.cst.ON) + { + c.translate(x + fontSize * 2, y); + } + else + { + c.translate(x, y); + }; + + var h = unitNum * unitH + 42; + this.background(c, w, h, fontSize); + c.setShadow(false); + this.foreground(c, w, h, fontSize); + + if (numDis === mxRackRackCabinet.prototype.cst.ON) + { + this.sideText(c, w, h, unitNum, unitH, fontSize); + }; +}; + +mxRackRackCabinet.prototype.background = function(c, w, h, fontSize) +{ + c.setFillColor('#ffffff'); + c.rect(0, 0, 180, h); + c.fillAndStroke(); +}; + +mxRackRackCabinet.prototype.foreground = function(c, w, h, fontSize) +{ + c.setFillColor('#f4f4f4'); + c.rect(0, 0, 180, 21); + c.fillAndStroke(); + c.rect(0, h - 21, 180, 21); + c.fillAndStroke(); + c.rect(0, 21, 9, h - 42); + c.fillAndStroke(); + c.rect(171, 21, 9, h - 42); + c.fillAndStroke(); + c.ellipse(2.5, 7.5, 6, 6); + c.stroke(); + c.ellipse(171.5, 7.5, 6, 6); + c.stroke(); + c.ellipse(2.5, h - 13.5, 6, 6); + c.stroke(); + c.ellipse(171.5, h - 13.5, 6, 6); + c.stroke(); +}; + +mxRackRackCabinet.prototype.sideText = function(c, w, h, unitNum, unitH, fontSize) +{ + var fontColor = mxUtils.getValue(this.style, mxRackRackCabinet.prototype.cst.TEXT_COLOR, '#666666'); + var numDir = mxUtils.getValue(this.style, mxRackRackCabinet.prototype.cst.NUM_DIR, mxRackRackCabinet.prototype.cst.DIR_DESC); + c.setFontSize(fontSize); + c.setFontColor(fontColor); + + if (numDir === mxRackRackCabinet.prototype.cst.DIR_ASC) + { + for (var i = 0; i < unitNum; i++) + { + c.text(-fontSize, 21 + unitH * 0.5 + i * unitH, 0, 0, (i + 1).toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + }; + } + else + { + for (var i = 0; i < unitNum; i++) + { + c.text(-fontSize, h - 21 - unitH * 0.5 - i * unitH, 0, 0, (i + 1).toString(), mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); + }; + }; + + c.setStrokeColor('#dddddd'); + + c.begin(); + + for (var i = 0; i < unitNum + 1; i++) + { + c.moveTo(-2 * fontSize, 21 + i * unitH); + c.lineTo(0, 21 + i * unitH); + }; + + c.stroke(); +}; + +//********************************************************************************************************************************************************** +//1U Horizontal Cable Duct +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxRackHorCableDuct1U(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxRackHorCableDuct1U, mxShape); + +mxRackHorCableDuct1U.prototype.cst = +{ + SHAPE_RACK_HOR_CABLE_DUCT_1U : 'mxgraph.rackGeneral.horCableDuct1U' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxRackHorCableDuct1U.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackHorCableDuct1U.prototype.background = function(c, w, h) +{ + c.rect(0, 0, 160.9, 14.8); + c.fillAndStroke(); +}; + +mxRackHorCableDuct1U.prototype.foreground = function(c, w, h) +{ + c.rect(12, 0, 3, 7); + c.stroke(); + c.rect(12, 7, 3, 7.8); + c.stroke(); + + c.rect(45.5, 0, 3, 7); + c.stroke(); + c.rect(45.5, 7, 3, 7.8); + c.stroke(); + + c.rect(79, 0, 3, 7); + c.stroke(); + c.rect(79, 7, 3, 7.8); + c.stroke(); + + c.rect(112.5, 0, 3, 7); + c.stroke(); + c.rect(112.5, 7, 3, 7.8); + c.stroke(); + + c.rect(146, 0, 3, 7); + c.stroke(); + c.rect(146, 7, 3, 7.8); + c.stroke(); +}; + +//********************************************************************************************************************************************************** +//2U Horizontal Cable Duct +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxRackHorCableDuct2U(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxRackHorCableDuct2U, mxShape); + +mxRackHorCableDuct2U.prototype.cst = +{ + SHAPE_RACK_HOR_CABLE_DUCT_2U : 'mxgraph.rackGeneral.horCableDuct2U' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxRackHorCableDuct2U.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackHorCableDuct2U.prototype.background = function(c, w, h) +{ + c.rect(0, 0, 160.9, 29.6); + c.fillAndStroke(); +}; + +mxRackHorCableDuct2U.prototype.foreground = function(c, w, h) +{ + c.rect(12, 0, 3, 7); + c.stroke(); + c.rect(12, 7, 3, 22.6); + c.stroke(); + + c.rect(45.5, 0, 3, 7); + c.stroke(); + c.rect(45.5, 7, 3, 22.6); + c.stroke(); + + c.rect(79, 0, 3, 7); + c.stroke(); + c.rect(79, 7, 3, 22.6); + c.stroke(); + + c.rect(112.5, 0, 3, 7); + c.stroke(); + c.rect(112.5, 7, 3, 22.6); + c.stroke(); + + c.rect(146, 0, 3, 7); + c.stroke(); + c.rect(146, 7, 3, 22.6); + c.stroke(); +}; + +//********************************************************************************************************************************************************** +//1U Cable Routing Bank +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxRackHorRoutingBank1U(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxRackHorRoutingBank1U, mxShape); + +mxRackHorRoutingBank1U.prototype.cst = +{ + SHAPE_RACK_HOR_ROUTING_BANK_1U : 'mxgraph.rackGeneral.horRoutingBank1U' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxRackHorRoutingBank1U.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackHorRoutingBank1U.prototype.background = function(c, w, h) +{ + c.rect(0, 0, 160.9, 14.8); + c.fillAndStroke(); +}; + +mxRackHorRoutingBank1U.prototype.foreground = function(c, w, h) +{ + c.rect(10, 4, 17, 6.8); + c.stroke(); + c.rect(31, 4, 17, 6.8); + c.stroke(); + c.rect(52, 4, 17, 6.8); + c.stroke(); + c.rect(73, 4, 17, 6.8); + c.stroke(); + c.rect(94, 4, 17, 6.8); + c.stroke(); + c.rect(115, 4, 17, 6.8); + c.stroke(); + c.rect(136, 4, 17, 6.8); + c.stroke(); +}; + +//********************************************************************************************************************************************************** +//2U Cable Routing Bank +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxRackHorRoutingBank2U(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxRackHorRoutingBank2U, mxShape); + +mxRackHorRoutingBank2U.prototype.cst = +{ + SHAPE_RACK_HOR_ROUTING_BANK_2U : 'mxgraph.rackGeneral.horRoutingBank2U' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxRackHorRoutingBank2U.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackHorRoutingBank2U.prototype.background = function(c, w, h) +{ + c.rect(0, 0, 160.9, 29.6); + c.fillAndStroke(); +}; + +mxRackHorRoutingBank2U.prototype.foreground = function(c, w, h) +{ + c.rect(10, 4, 17, 6.8); + c.stroke(); + c.rect(31, 4, 17, 6.8); + c.stroke(); + c.rect(52, 4, 17, 6.8); + c.stroke(); + c.rect(73, 4, 17, 6.8); + c.stroke(); + c.rect(94, 4, 17, 6.8); + c.stroke(); + c.rect(115, 4, 17, 6.8); + c.stroke(); + c.rect(136, 4, 17, 6.8); + c.stroke(); + + c.rect(10, 18.8, 17, 6.8); + c.stroke(); + c.rect(31, 18.8, 17, 6.8); + c.stroke(); + c.rect(52, 18.8, 17, 6.8); + c.stroke(); + c.rect(73, 18.8, 17, 6.8); + c.stroke(); + c.rect(94, 18.8, 17, 6.8); + c.stroke(); + c.rect(115, 18.8, 17, 6.8); + c.stroke(); + c.rect(136, 18.8, 17, 6.8); + c.stroke(); +}; + +//********************************************************************************************************************************************************** +//2U Neat-Patch +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxRackNeatPatch2U(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxRackNeatPatch2U, mxShape); + +mxRackNeatPatch2U.prototype.cst = +{ + SHAPE_RACK_NEAT_PATCH_2U : 'mxgraph.rackGeneral.neatPatch2U' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxRackNeatPatch2U.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); + c.setShadow(false); + this.mainText(c, w, h); +}; + +mxRackNeatPatch2U.prototype.background = function(c, w, h) +{ + c.setFillColor('#666666'); + c.rect(0, 0, 160.9, 29.6); + c.fillAndStroke(); +}; + +mxRackNeatPatch2U.prototype.mainText = function(c, w, h) +{ + c.setFontSize('12'); + c.setFontColor('#ffffff'); + c.setFontStyle(mxConstants.FONT_BOLD); + c.text(80.45, 24, 0, 0, 'NEAT-PATCH', mxConstants.ALIGN_CENTER, mxConstants.ALIGN_MIDDLE, 0, null, 0, 0, 0); +}; + +//********************************************************************************************************************************************************** +//1U shelf +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxRackShelf1U(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxRackShelf1U, mxShape); + +mxRackShelf1U.prototype.cst = +{ + SHAPE_RACK_SHELF_1U : 'mxgraph.rackGeneral.shelf1U' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxRackShelf1U.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); +}; + +mxRackShelf1U.prototype.background = function(c, w, h) +{ + c.setStrokeWidth(2); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, 14.8); + c.lineTo(160.9, 14.8); + c.lineTo(160.9, 0); + c.fillAndStroke(); +}; + +//********************************************************************************************************************************************************** +//2U shelf +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxRackShelf2U(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxRackShelf2U, mxShape); + +mxRackShelf2U.prototype.cst = +{ + SHAPE_RACK_SHELF_2U : 'mxgraph.rackGeneral.shelf2U' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxRackShelf2U.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); +}; + +mxRackShelf2U.prototype.background = function(c, w, h) +{ + c.setStrokeWidth(2); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, 29.6); + c.lineTo(160.9, 29.6); + c.lineTo(160.9, 0); + c.fillAndStroke(); +}; + +//********************************************************************************************************************************************************** +//4U shelf +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxRackShelf4U(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxRackShelf4U, mxShape); + +mxRackShelf4U.prototype.cst = +{ + SHAPE_RACK_SHELF_4U : 'mxgraph.rackGeneral.shelf4U' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxRackShelf4U.prototype.paintVertexShape = function(c, x, y, w, h) +{ + c.translate(x, y); + this.background(c, w, h); +}; + +mxRackShelf4U.prototype.background = function(c, w, h) +{ + c.setStrokeWidth(2); + c.begin(); + c.moveTo(0, 0); + c.lineTo(0, 59.2); + c.lineTo(160.9, 59.2); + c.lineTo(160.9, 0); + c.fillAndStroke(); +}; + +//********************************************************************************************************************************************************** +//END LEGACY RACKS +//********************************************************************************************************************************************************** + + +//********************************************************************************************************************************************************** +//Channel Base +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxRackChannelBase(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** + * Extends mxShape. + */ +mxUtils.extend(mxRackChannelBase, mxShape); + +mxRackChannelBase.prototype.cst = +{ + SHAPE_RACK_CHANNEL_BASE : 'mxgraph.rackGeneral.channelBase' +}; + +/** + * Function: paintVertexShape + * + * Paints the vertex shape. + */ +mxRackChannelBase.prototype.paintVertexShape = function(c, x, y, w, h) +{ + w = Math.max(w, 20); + h = Math.max(h, 20); + c.translate(x, y); + + this.background(c, w, h); + c.setShadow(false); + this.foreground(c, w, h); +}; + +mxRackChannelBase.prototype.background = function(c, w, h) +{ + c.rect(10, h - 15, 5, 15); + c.fillAndStroke(); + c.rect(w - 15, h - 15, 5, 15); + c.fillAndStroke(); + c.rect(0, 0, w, h - 5); + c.fillAndStroke(); +}; + +mxRackChannelBase.prototype.foreground = function(c, w, h) +{ + c.setFillColor('#000000'); + c.rect(10, h - 15, 5, 15); + c.fillAndStroke(); + c.rect(w - 15, h - 15, 5, 15); + c.fillAndStroke(); +}; + +//********************************************************************************************************************************************************** +//Cabinet Leg +//********************************************************************************************************************************************************** +/** +* Extends mxShape. +*/ +function mxRackCabinetLeg(bounds, fill, stroke, strokewidth) +{ + mxShape.call(this); + this.bounds = bounds; + this.fill = fill; + this.stroke = stroke; + this.strokewidth = (strokewidth != null) ? strokewidth : 1; +}; + +/** +* Extends mxShape. +*/ +mxUtils.extend(mxRackCabinetLeg, mxShape); + +mxRackCabinetLeg.prototype.cst = +{ + SHAPE_RACK_CABINET_LEG : 'mxgraph.rackGeneral.cabinetLeg' +}; + +/** +* Function: paintVertexShape +* +* Paints the vertex shape. +*/ +mxRackCabinetLeg.prototype.paintVertexShape = function(c, x, y, w, h) +{ + w = Math.max(w, 20); + h = Math.max(h, 20); + c.translate(x, y); + + this.background(c, w, h); +}; + +mxRackCabinetLeg.prototype.background = function(c, w, h) +{ + c.begin(); + c.moveTo(0, h - 10); + c.lineTo(5, h - 10); + c.lineTo(5, h - 12); + c.lineTo(9, h - 12); + c.lineTo(9, h - 10); + c.lineTo(w - 10, h - 10); + c.lineTo(w - 10, 9); + c.lineTo(w - 12, 9); + c.lineTo(w - 12, 5); + c.lineTo(w - 10, 5); + c.lineTo(w - 10, 0); + c.lineTo(w, 0); + c.lineTo(w, h); + c.lineTo(0, h); + c.close(); + c.fillAndStroke(); +}; + +// New generic unit size implementations +mxCellRenderer.registerShape(mxRackContainer.prototype.cst.SHAPE_RACK_CONTAINER, mxRackContainer); +mxCellRenderer.registerShape(mxRackHorCableDuct.prototype.cst.SHAPE_RACK_HOR_CABLE_DUCT, mxRackHorCableDuct); +mxCellRenderer.registerShape(mxRackHorRoutingBank.prototype.cst.SHAPE_RACK_HOR_ROUTING_BANK, mxRackHorRoutingBank); +mxCellRenderer.registerShape(mxRackNeatPatch.prototype.cst.SHAPE_RACK_NEAT_PATCH, mxRackNeatPatch); +mxCellRenderer.registerShape(mxRackShelf.prototype.cst.SHAPE_RACK_SHELF, mxRackShelf); +mxCellRenderer.registerShape(mxRackPlate.prototype.cst.SHAPE_RACK_PLATE, mxRackPlate); + +// Legacy resizable / fixed unit size implementations +mxCellRenderer.registerShape(mxRackRackNumbering.prototype.cst.SHAPE_RACK_RACK_NUMBERING, mxRackRackNumbering); +mxCellRenderer.registerShape(mxRackRackCabinet.prototype.cst.SHAPE_RACK_RACK_CABINET, mxRackRackCabinet); +mxCellRenderer.registerShape(mxRackHorCableDuct1U.prototype.cst.SHAPE_RACK_HOR_CABLE_DUCT_1U, mxRackHorCableDuct1U); +mxCellRenderer.registerShape(mxRackHorCableDuct2U.prototype.cst.SHAPE_RACK_HOR_CABLE_DUCT_2U, mxRackHorCableDuct2U); +mxCellRenderer.registerShape(mxRackHorRoutingBank1U.prototype.cst.SHAPE_RACK_HOR_ROUTING_BANK_1U, mxRackHorRoutingBank1U); +mxCellRenderer.registerShape(mxRackHorRoutingBank2U.prototype.cst.SHAPE_RACK_HOR_ROUTING_BANK_2U, mxRackHorRoutingBank2U); +mxCellRenderer.registerShape(mxRackNeatPatch2U.prototype.cst.SHAPE_RACK_NEAT_PATCH_2U, mxRackNeatPatch2U); +mxCellRenderer.registerShape(mxRackShelf1U.prototype.cst.SHAPE_RACK_SHELF_1U, mxRackShelf1U); +mxCellRenderer.registerShape(mxRackShelf2U.prototype.cst.SHAPE_RACK_SHELF_2U, mxRackShelf2U); +mxCellRenderer.registerShape(mxRackShelf4U.prototype.cst.SHAPE_RACK_SHELF_4U, mxRackShelf4U); + +mxCellRenderer.registerShape(mxRackChannelBase.prototype.cst.SHAPE_RACK_CHANNEL_BASE, mxRackChannelBase); +mxCellRenderer.registerShape(mxRackCabinetLeg.prototype.cst.SHAPE_RACK_CABINET_LEG, mxRackCabinetLeg); \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/src/mapping_options.js b/data/plugins/grafana-flowcharting/src/mapping_options.js new file mode 100644 index 0000000000000..c2ad6da9a34f9 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/mapping_options.js @@ -0,0 +1,204 @@ +// eslint-disable-next-line import/no-unresolved +import kbn from 'app/core/utils/kbn'; +import { plugin } from './plugin'; + +export class MappingOptionsCtrl { + /** @ngInject */ + constructor($scope) { + $scope.editor = this; + $scope.GF_PLUGIN = window.GF_PLUGIN; + this.$scope = $scope; + this.panelCtrl = $scope.ctrl; + this.panel = this.panelCtrl.panel; + $scope.rulesHandler = this.panelCtrl.rulesHandler; + $scope.flowchartHandler = this.panelCtrl.flowchartHandler; + this.flowchartHandler = $scope.ctrl.flowchartHandler; + this.rulesHandler = this.panelCtrl.rulesHandler; + this.unitFormats = kbn.getUnitFormats(); + this.style = [ + { text: 'Disabled', value: 'disabled' }, + { text: 'Stroke', value: 'strokeColor' }, + { text: 'Fill', value: 'fillColor' }, + { text: 'Text', value: 'fontColor' }, + { text: 'Background (image)', value: 'imageBackground' }, + { text: 'Border (image)', value: 'imageBorder' }, + ]; + this.colorOn = [ + { text: 'Never', value: 'n' }, + { text: 'Warning / Critical', value: 'wc' }, + { text: 'Always', value: 'a' } + ]; + this.linkOn = [{ text: 'Warning / Critical', value: 'wc' }, { text: 'Always', value: 'a' }]; + this.tooltipOn = [{ text: 'Warning / Critical', value: 'wc' }, { text: 'Always', value: 'a' }]; + this.tpDirection = [{ text: 'Vertical', value: 'v' }, { text: 'Horizontal ', value: 'h' }]; + this.textOn = [ + { text: 'Never', value: 'n' }, + { text: 'When Metric Displayed', value: 'wmd' }, + { text: 'Warning / Critical', value: 'wc' }, + { text: 'Critical Only', value: 'co' } + ]; + this.textReplace = [ + { text: 'All content', value: 'content' }, + { text: 'Substring', value: 'pattern' }, + { text: 'Append (Space) ', value: 'as' }, + { text: 'Append (New line) ', value: 'anl' } + ]; + this.propTypes = [ + { text: 'Id', value: 'id' } + // { text: "Value", value: "value" } + ]; + this.textPattern = '/.*/'; + this.metricTypes = [ + { text: 'Number', value: 'number' }, + { text: 'String', value: 'string' }, + { text: 'Date', value: 'date' } + ]; + this.dateFormats = [ + { text: 'YYYY-MM-DD HH:mm:ss', value: 'YYYY-MM-DD HH:mm:ss' }, + { text: 'YYYY-MM-DD HH:mm:ss.SSS', value: 'YYYY-MM-DD HH:mm:ss.SSS' }, + { text: 'MM/DD/YY h:mm:ss a', value: 'MM/DD/YY h:mm:ss a' }, + { text: 'MMMM D, YYYY LT', value: 'MMMM D, YYYY LT' }, + { text: 'YYYY-MM-DD', value: 'YYYY-MM-DD' } + ]; + this.aggregationTypes = [ + { text: 'First', value: 'first' }, + { text: 'Last', value: 'current' }, + { text: 'Min', value: 'min' }, + { text: 'Max', value: 'max' }, + { text: 'Sum', value: 'total' }, + { text: 'Avg', value: 'avg' }, + { text: 'Count', value: 'count' }, + { text: 'Delta', value: 'delta' }, + { text: 'Range', value: 'range' }, + { text: 'Diff', value: 'diff' } + ]; + this.mappingTypes = [{ text: 'Value to text', value: 1 }, { text: 'Range to text', value: 2 }]; + this.tpGraphType = [ + { text: 'Line', value: 'line'}, + // { text: 'Histogram', value: 'bar'}, + ]; + this.tpGraphSize = [ + { text: 'Adjustable', value: '100%'}, + { text: 'Small', value: '100px'}, + { text: 'Medium', value: '200px'}, + { text: 'Large', value: '400px'}, + ]; + + this.getMetricNames = () => { + if (!this.panelCtrl.series) { + return []; + } + return _.map(this.panelCtrl.series, t => t.alias); + }; + + this.getCellNamesForShape = () => { + u.log(1, 'MappingOptionsCtrl.getCellNamesForShape()'); + const flowchart = this.flowchartHandler.getFlowchart(0); + const cells = flowchart.getNamesByProp('id'); + return _.map(cells, t => t); + }; + + this.getCellNamesForText = () => { + u.log(1, 'MappingOptionsCtrl.getCellNamesForText()'); + const flowchart = this.flowchartHandler.getFlowchart(0); + const cells = flowchart.getNamesByProp('id'); + return _.map(cells, t => t); + }; + + this.getCellNamesForLink = () => { + u.log(1, 'MappingOptionsCtrl.getCellNamesForLink()'); + const flowchart = this.flowchartHandler.getFlowchart(0); + const cells = flowchart.getNamesByProp('id'); + return _.map(cells, t => t); + }; + + this.getVariables = () => { + u.log('MappingOptionsCtrl.getVariables'); + return this.panelCtrl.getVariables(); + }; + } + + render() { + this.panelCtrl.render(); + } + + setUnitFormat(rule, subItem) { + rule.unit = subItem.value; + this.onRulesChange(); + } + + onRulesChange() { + u.log(1, 'MappingOptionsCtrl.onRulesChange()'); + this.flowchartHandler.ruleChanged(); + this.render(); + } + + /** + * Add Color + * + * @param {Number} ruleIndex + * @param {Number} colorIndex + * @memberof MappingOptionsCtrl + */ + onColorChange(ruleIndex, colorIndex) { + return newColor => { + const rule = this.rulesHandler.getRule(ruleIndex); + rule.data.colors[colorIndex] = newColor; + this.onRulesChange(); + }; + } + + /** + * Display cell selection in graph + * @param {} prop + * @param {} value + */ + selectCell(prop, value) { + const flowchart = this.flowchartHandler.getFlowchart(0); + const xgraph = flowchart.getXGraph(); + xgraph.selectMxCells(prop, value); + } + + /** + * Undisplay cell selection + * + * @memberof MappingOptionsCtrl + */ + unselectCell(prop, value) { + const flowchart = this.flowchartHandler.getFlowchart(0); + const xgraph = flowchart.getXGraph(); + xgraph.unselectMxCells(prop, value); + } + + /** + *Turn Highlight on of cells in rule + * + * @param {*} rule + * @memberof MappingOptionsCtrl + */ + highlightCells(rule) { + rule.highlightCells(); + } + + /** + *Turn Highlight off of cells in rule + * + * @param {*} rule + * @memberof MappingOptionsCtrl + */ + unhighlightCells(rule) { + rule.unhighlightCells(); + } + +} + +/** @ngInject */ +export function mappingOptionsTab($q, uiSegmentSrv) { + 'use strict'; + return { + restrict: 'E', + scope: true, + templateUrl: `${GF_PLUGIN.getPartialPath()}/mapping_options.html`, + controller: MappingOptionsCtrl + }; +} diff --git a/data/plugins/grafana-flowcharting/src/module.js b/data/plugins/grafana-flowcharting/src/module.js new file mode 100644 index 0000000000000..298249f549612 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/module.js @@ -0,0 +1,10 @@ +import { loadPluginCss } from 'app/plugins/sdk'; +import { FlowchartCtrl } from './flowchart_ctrl'; + + +loadPluginCss({ + dark: 'plugins/agenty-flowcharting-panel/css/flowchart.dark.css', + light: 'plugins/agenty-flowcharting-panel/css/flowchart.light.css', +}); + +export { FlowchartCtrl as PanelCtrl }; diff --git a/data/plugins/grafana-flowcharting/src/partials/flowchart_options.html b/data/plugins/grafana-flowcharting/src/partials/flowchart_options.html new file mode 100644 index 0000000000000..e79e9c801db02 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/partials/flowchart_options.html @@ -0,0 +1,278 @@ +
+
+
+
+ mxGraph Edition + +
+ +
+
+ Definition + +
+ +
+ + +
+
+ + +
+ +
+
+
+ + Source Type + + + +
+ +
+
+ +
+
+ + URL + + This service should respond with a xml/plain response containing mxgraph syntax + + + +
+
+ +
+ + Source Content + + + + +
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+ +
+
Advanced
+
+
+ Display + + +
+ + + + + + +
+ + + + + +
+ +
+ + Zoom + + + + +
+
+
+
+ Others options + + +
+ + + + + + + + + +
+
+
+
diff --git a/data/plugins/grafana-flowcharting/src/partials/inspect_options.html b/data/plugins/grafana-flowcharting/src/partials/inspect_options.html new file mode 100644 index 0000000000000..4a2c02f72ebb4 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/partials/inspect_options.html @@ -0,0 +1,191 @@ +
+
+
+
Inspector
+
+
+ +
+
Graph inspect + Id + + + + +
+ + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+
+ Id + + + + +
+
+
+ Text
+
+
+ Level +
+
+
+ Font Col. +
+
+
+ Fill Col. +
+
+
+ Stoke Col. +
+
+
+ Match +
+
+
+
{{state.cellId}}
+
{{state.cellId}}
+
+ +
+
+
+
+ {{state.getCellProp('value')}} +
+
+
+ {{state.getTextLevel()}} +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+ + + + + +
+
Debug Mode
+
+
+ Display + +
+
+ Level + +
+
+
+
\ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/src/partials/mapping_options copy.html b/data/plugins/grafana-flowcharting/src/partials/mapping_options copy.html new file mode 100644 index 0000000000000..d6464372ea933 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/partials/mapping_options copy.html @@ -0,0 +1,616 @@ +
+
+
+ +
+
+ + + + {{ rule.data.order }} : Rule + + [{{ rule.data.alias }}] + +
+
+ +
+ + +
+
+
+ + +
+ +
+
+ Options + + +
+
+ + +
+
+ + +
+
+ +
+ +
+
+
+ + +
+
Type + + + + +
+
+ +
+ +
+
+
+ + + +
+ +
+ +
+
+ + +
+ +
+
+ +
+
+
+ + +
+
+
+ + +
+
+ Thresholds (Ok > Warn > Critical) + + +
+
+ Thresholds (Critical > Warn > Ok) + + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ +
+
+
+ + + + + + + + + + +
+ Invert +
+
+ + +
+ + +
+
Display + + + + +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ + +
+
+ + +
+
Tooltips + + + + +
+ +
+ + +
+
+ +
+ +
+
+ + +
+ + + +
+
Link + + + + +
+ +
+ +
+ +
+
+
+ + +
+ + + +
+ + +
+ +
+
Color Mappings + + + + +
+
+ + Props + + +
+ +
+
+
+ + + + + + +
+
+ +
+
+ + +
+
Text Mappings + + + + +
+
+ + Props + +
+ +
+
+
+ + + + + + + +
+ +
+ +
+
+ + +
+
Link Mappings
+
+ + Props + +
+ +
+
+
+ + + + + + + +
+ +
+ +
+
+ + +
+
Value Mappings
+
+
+ + Type + +
+ +
+
+ +
+
+ + + + + + +
+
+ +
+
+ +
+
+ + + + From + + To + + Text + +
+
+ +
+
+
+
+
+ +
+ + +
+
+ +
+
+ +
+
+
+
+
+ +
+
+ +
+
+
\ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/src/partials/mapping_options.html b/data/plugins/grafana-flowcharting/src/partials/mapping_options.html new file mode 100644 index 0000000000000..b7a1ea842e47d --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/partials/mapping_options.html @@ -0,0 +1,1085 @@ +
+
+
+ +
+ + + + + {{ rule.data.order }} : Rule [{{ rule.data.alias }}] + + + + +
+ + +
+ +
+
+ Options + + +
+
+ + +
+
+ + +
+
+ +
+ +
+
+
+ + +
+
+ Type + + + + +
+
+ +
+ +
+
+
+ + + +
+ +
+ +
+
+ + +
+ +
+
+ +
+
+
+ + +
+
+
+ + +
+
+ Thresholds (Ok > Warn > Critical) + + +
+
+ Thresholds (Critical > Warn > Ok) + + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ +
+
+
+ + + + + + + + + + +
+ Invert +
+
+ + +
+ + +
+
+ Display + + + + +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ + +
+
+ + +
+
+ Tooltips + + + + +
+ + +
+ + +
+
+ +
+ +
+
+
+ +
+ +
+
+ + +
+ + +
+
+ Graph Tooltips + + + + +
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ + +
+
+ Link + + + + +
+ +
+ +
+ +
+
+
+ + +
+ + + +
+ + +
+ +
+
+ Color Mappings + + + + +
+
+ + Props + + +
+ +
+
+
+ + + + + + +
+
+ +
+
+ + +
+
+ Text Mappings + + + + +
+
+ + Props + +
+ +
+
+
+ + + + + + + +
+ +
+ +
+
+ + +
+
Link Mappings
+
+ + Props + +
+ +
+
+
+ + + + + + + +
+ +
+ +
+
+ + +
+
Value Mappings
+
+
+ + Type + +
+ +
+
+ +
+
+ + + + + + +
+
+ +
+
+ +
+
+ + + + From + + To + + Text + +
+
+ +
+
+
+
+
+ +
+ + +
+
+ +
+
+ +
+
+
+
+
+ +
+
+ +
+
+
diff --git a/data/plugins/grafana-flowcharting/src/partials/module.html b/data/plugins/grafana-flowcharting/src/partials/module.html new file mode 100644 index 0000000000000..63e6e2f365678 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/partials/module.html @@ -0,0 +1,14 @@ +
+
+ +
+
+
+ Select Object to map + +
+
+ \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/src/plugin.js b/data/plugins/grafana-flowcharting/src/plugin.js new file mode 100644 index 0000000000000..7504d138c55fd --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/plugin.js @@ -0,0 +1,70 @@ +import $ from 'jquery'; + +const plugin = {}; +plugin.dirname = `${__dirname}/`; +plugin.repository = 'https://algenty.github.io/flowcharting-repository/'; +plugin.mxBasePath = `${plugin.dirname}libs/mxgraph/javascript/dist/`; +plugin.mxImagePath = `${plugin.mxBasePath}images/`; +plugin.partialPath = `${plugin.dirname}/partials/`; +plugin.data = {}; + +$.ajaxSetup({ + async: false, +}); + +$.getJSON(`${plugin.dirname}/plugin.json`, (data) => { + plugin.data = data; +}); + +plugin.getRootPath = function () { + return this.dirname; +}; + +plugin.getLibsPath = function () { + return `${this.dirname}/libs`; +}; + +plugin.getShapesPath = function () { + return `${this.dirname}libs/shapes`; +}; + +plugin.getMxBasePath = function () { + return this.mxBasePath; +}; + +plugin.getMxImagePath = function () { + return this.mxImagePath; +}; + +plugin.getName = function () { + return this.data.id; +}; + +plugin.getPartialPath = function () { + return this.partialPath; +}; + +// eslint-disable-next-line func-names +plugin.popover = function (text, tagBook, tagImage) { + const url = this.repository; + const images = `${this.repository}images/`; + const textEncoded = String(text).replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"'); + const desc = `${textEncoded}`; + let book = ''; + let image = ''; + if (tagBook) book = `Help`; + if (tagImage) image = `Example`; + return ` +
+
${desc}
+
${book}
+
${image}
+
`; +}; + +plugin.logLevel = 1; +plugin.logDisplay = false; + +window.GF_PLUGIN = window.GF_PLUGIN || plugin; + +export default plugin; diff --git a/data/plugins/grafana-flowcharting/src/plugin.json b/data/plugins/grafana-flowcharting/src/plugin.json new file mode 100644 index 0000000000000..641da7ed91e11 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/plugin.json @@ -0,0 +1,48 @@ +{ + "type": "panel", + "name": "FlowCharting", + "id": "agenty-flowcharting-panel", + "info": { + "description": "Flowcharting is a plugin for grafana. It aims to display complexe diagram draws with draw.io like Visio", + "author": { + "name": "Arnaud GENTY", + "url": "https://github.com/algenty/grafana-flowcharting" + }, + "keywords": [ + "flowchart", + "panel", + "diagram", + "workflow", + "floorplan", + "map", + "organigram", + "draw.io", + "visio", + "mxgraph" + ], + "links": [ + { + "name": "Project site", + "url": "https://github.com/algenty/grafana-flowcharting" + }, + { + "name": "Apache License", + "url": "https://github.com/algenty/grafana-flowcharting/blob/master/LICENSE" + }, + { + "name": "Documentation", + "url": "https://algenty.github.io/flowcharting-repository/" + } + ], + "version": "0.5.0", + "updated": "2019-09-26", + "logos": { + "small": "img/agenty-flowcharting.svg", + "large": "img/agenty-flowcharting.svg" + } + }, + "dependencies": { + "grafanaVersion": "5.x.x", + "plugins": [] + } +} \ No newline at end of file diff --git a/data/plugins/grafana-flowcharting/src/rule_class.js b/data/plugins/grafana-flowcharting/src/rule_class.js new file mode 100644 index 0000000000000..bf69c552610e0 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/rule_class.js @@ -0,0 +1,999 @@ +/* eslint-disable no-use-before-define */ +// eslint-disable-next-line import/no-unresolved +import kbn from 'app/core/utils/kbn'; +// eslint-disable-next-line import/no-extraneous-dependencies +import moment from 'moment'; + +/** + *Rule definition + * + * @export + * @class Rule + */ +export default class Rule { + /** + *Creates an instance of Rule. + * @param {string} pattern + * @param {*} data + * @memberof Rule + */ + constructor(pattern, data) { + this.data = data; + this.data.pattern = pattern; + this.shapeMaps = []; + this.textMaps = []; + this.linkMaps = []; + this.valueMaps = []; + this.rangeMaps = []; + this.id = u.uniqueID(); + this.import(data); + const LEVEL_OK = 0; + const LEVEL_WARN = 1; + const LEVEL_ERROR = 2; + } + + /** + * return data of rule + * + * @returns {data} + * @memberof Rule + */ + getData() { + return this.data; + } + + /** + * import data in rule + * + * @param {data} obj + * @memberof Rule + */ + import(obj) { + this.data.unit = obj.unit || 'short'; + this.data.type = obj.type || 'number'; + this.data.alias = obj.alias || 'No name'; + this.data.aggregation = obj.aggregation || 'current'; + this.data.decimals = obj.decimals !== undefined ? obj.decimals : 2; + this.data.colors = obj.colors + ? [...obj.colors] + : ['rgba(245, 54, 54, 0.9)', 'rgba(237, 129, 40, 0.89)', 'rgba(50, 172, 45, 0.97)']; + this.data.reduce = true; + this.data.style = obj.style || obj.colorMode || 'fillColor'; + this.data.colorOn = obj.colorOn || 'a'; + this.data.link = obj.link !== undefined ? obj.link : false; + this.data.linkOn = obj.colorOn || 'a'; + this.data.linkUrl = obj.linkUrl || ''; + this.data.linkParams = obj.linkParams !== undefined ? obj.linkParams : false; + this.data.textOn = obj.textOn || 'wmd'; + this.data.textReplace = obj.textReplace || 'content'; + this.data.textPattern = obj.textPattern || '/.*/'; + this.data.pattern = obj.pattern || this.data.pattern; + this.data.dateFormat = obj.dateFormat || 'YYYY-MM-DD HH:mm:ss'; + this.data.thresholds = obj.thresholds !== undefined ? [...obj.thresholds] : []; + this.data.stringWarning = obj.stringWarning || ''; + this.data.stringCritical = obj.stringCritical || ''; + this.data.invert = obj.invert !== undefined ? obj.invert : false; + this.data.overlayIcon = obj.overlayIcon !== undefined ? obj.overlayIcon : false; + this.data.tooltip = obj.tooltip !== undefined ? obj.tooltip : false; + this.data.tooltipLabel = obj.tooltipLabel !== undefined ? obj.tooltipLabel : this.data.alias; + this.data.tooltipColors = obj.tooltipColors !== undefined ? obj.tooltipColors : false; + this.data.tooltipOn = obj.tooltipOn !== undefined ? obj.tooltipOn : 'a'; + this.data.tpDirection = obj.tpDirection !== undefined ? obj.tpDirection : 'v'; + this.data.tpGraph = obj.tpGraph !== undefined ? obj.tpGraph : false; + this.data.tpGraphSize = obj.tpGraphSize !== undefined ? obj.tpGraphSize : '100%'; + this.data.tpGraphType = obj.tpGraphType !== undefined ? obj.tpGraphType : 'line'; + let maps = []; + + // SHAPES + this.data.shapeProp = obj.shapeProp || 'id'; + this.data.shapeData = []; + // For 0.2.0 + maps = []; + if (obj.shapeMaps !== undefined && obj.shapeMaps !== null && obj.shapeMaps.length > 0) + maps = obj.shapeMaps; + else maps = obj.shapeData; + + if (maps !== undefined && maps !== null && maps.length > 0) { + maps.forEach(map => { + const newData = {}; + const sm = new ShapeMap(map.pattern, newData); + sm.import(map); + this.shapeMaps.push(sm); + this.data.shapeData.push(newData); + }); + } + + // TEXT + this.data.textProp = obj.textProp || 'id'; + this.data.textData = []; + // For 0.2.0 + maps = []; + if (obj.shapeMaps !== undefined && obj.shapeMaps !== null && obj.shapeMaps.length > 0) + maps = obj.textMaps; + else maps = obj.textData; + if (maps !== undefined && maps != null && maps.length > 0) { + maps.forEach(map => { + const newData = {}; + const tm = new TextMap(map.pattern, newData); + tm.import(map); + this.textMaps.push(tm); + this.data.textData.push(newData); + }); + } + + // LINK + this.data.linkProp = obj.linkProp || 'id'; + this.data.linkData = []; + if (obj.linkData !== undefined && obj.linkData != null && obj.linkData.length > 0) { + obj.linkData.forEach(map => { + const newData = {}; + const lm = new LinkMap(map.pattern, newData); + lm.import(map); + this.linkMaps.push(lm); + this.data.linkData.push(newData); + }); + } + + this.data.mappingType = obj.mappingType || 1; + + // VALUES + this.data.valueData = []; + if (obj.valueData !== undefined && obj.valueData != null && obj.valueData.length > 0) { + obj.valueData.forEach(map => { + const newData = {}; + const vm = new ValueMap(map.value, map.text, newData); + vm.import(map); + this.valueMaps.push(vm); + this.data.valueData.push(newData); + }); + } + + // RANGE + this.data.rangeData = []; + if (obj.rangeData !== undefined && obj.rangeData != null && obj.rangeData.length > 0) { + obj.rangeData.forEach(map => { + const newData = {}; + const rm = new RangeMap(map.from, map.to, map.text, newData); + this.rangeMaps.push(rm); + this.data.rangeData.push(newData); + }); + } + + this.data.sanitize = obj.sanitize || false; + } + + /** + *return uniq id of rule + * + * @returns + * @memberof Rule + */ + getId() { + return this.id; + } + + /** + *Highlight Cells in rule (mapping color text and link) + * + * @memberof Rule + */ + highlightCells() { + if(this.states) { + this.states.forEach(state => { + state.highlightCell(); + }); + } + } + + /** + *Highlight Cells in rule (mapping color text and link) + * + * @memberof Rule + */ + unhighlightCells() { + if(this.states) { + this.states.forEach(state => { + state.unhighlightCell(); + }); + } + } + + /** + *Return the order of this rule + *Grafana 6+ have a bug when reload dashboad, array are not in order + * + * @param {number} order + * @memberof Rule + */ + setOrder(order) { + this.data.order = order; + } + + /** + *Return order of rule + * + * @memberof Rule + */ + getOrder() { + return this.data.order; + } + + /** + *Invert color order + * + * @memberof Rule + */ + invertColorOrder() { + const ref = this.data.colors; + const copy = ref[0]; + ref[0] = ref[2]; + ref[2] = copy; + if (this.data.invert) this.data.invert = false; + else this.data.invert = true; + } + + // + // Conditions + // + /** + *Return true or false for condition to colorize + * + * @param {number} level + * @returns + * @memberof Rule + */ + toColorize(level) { + if (level === -1) return false; + if (this.data.colorMode === "disabled") return false; + if (this.data.colorOn === 'n') return false; + if (this.data.colorOn === 'a') return true; + if (this.data.colorOn === 'wc' && level >= 1) return true; + return false; + } + + /** + *Return true or false for condition to change label + * + * @param {number} level + * @returns + * @memberof Rule + */ + toLabelize(level) { + // if (this.data.textOn === 'wmd' && level > 0) return true; + // if (this.data.textOn === 'wmd' && level === -1) return false; + if (this.data.textOn === 'wmd') return true; + if (this.data.textOn === 'n') return false; + if (this.data.textOn === 'wc' && level >= 1) return true; + if (this.data.textOn === 'co' && level >= 2) return true; + return false; + } + + /** + *Return true or false for condition to display icon warning + * + * @param {level} level + * @returns + * @memberof Rule + */ + toIconize(level) { + if (this.data.overlayIcon === false) return false; + if (this.data.overlayIcon === true && level >= 1) return true; + return false; + } + + /** + *Return true or false for condition to add/replace link + * + * @param {number} level + * @returns + * @memberof Rule + */ + toLinkable(level) { + if (this.data.link === false) return false; + if (this.data.linkOn === 'n') return false; + if (this.data.linkOn === 'a') return true; + if (this.data.linkOn === 'wc' && level >= 1) return true; + return false; + } + + /** + *Return true or false for condition to display tooltip with values + * + * @param {number} level + * @returns + * @memberof Rule + */ + toTooltipize(level) { + if (this.data.tooltip === false) return false; + if (this.data.tooltipOn === 'n') return false; + if (this.data.tooltipOn === 'a') return true; + if (this.data.tooltipOn === 'wc' && level >= 1) return true; + return false; + } + + // + // Series + // + /** + *Return boolean if serie is matched by rule + * + * @param {*} serie + * @returns + * @memberof Rule + */ + matchSerie(serie) { + return u.matchString(serie.alias, this.data.pattern); + } + + // + // SHAPE MAPS + // + /** + *Add new shape for rule + * + * @param {*} pattern + * @memberof Rule + */ + addShapeMap(pattern) { + const data = {}; + const m = new ShapeMap(pattern, data); + m.import(data); + this.shapeMaps.push(m); + this.data.shapeData.push(data); + } + + /** + *Remove shape for rule + * + * @param {number} index + * @memberof Rule + */ + removeShapeMap(index) { + this.data.shapeData.splice(index, 1); + this.shapeMaps.splice(index, 1); + } + + /** + *Return shape objet in index position + * + * @param {number} index + * @returns {ShapeMap} + * @memberof Rule + */ + getShapeMap(index) { + return this.shapeMaps[index]; + } + + /** + *Return all ShapeMaps + * + * @returns {Array} + * @memberof Rule + */ + getShapeMaps() { + return this.shapeMaps; + } + + /** + *Return bool if shape name (value|id) is in rule + * + * @param {string} pattern + * @returns + * @memberof Rule + */ + matchShape(pattern) { + let found = false; + this.shapeMaps.forEach(element => { + if (element.match(pattern)) found = true; + }); + return found; + } + + // + // TEXT MAPS + // + addTextMap(pattern) { + const data = {}; + const m = new TextMap(pattern, data); + m.import(data); + this.textMaps.push(m); + this.data.textData.push(data); + } + + removeTextMap(index) { + this.data.textData.splice(index, 1); + this.textMaps.splice(index, 1); + } + + getTextMap(index) { + return this.textMaps[index]; + } + + getTextMaps() { + return this.textMaps; + } + + matchText(pattern) { + let found = false; + this.textMaps.forEach(element => { + if (element.match(pattern)) found = true; + }); + return found; + } + + // + // LINK MAPS + // + addLinkMap(pattern) { + u.log(1, 'Rule.addLinkMap()'); + const data = {}; + const m = new LinkMap(pattern, data); + m.import(data); + this.linkMaps.push(m); + this.data.linkData.push(data); + } + + removeLinkMap(index) { + this.data.linkData.splice(index, 1); + this.linkMaps.splice(index, 1); + } + + getLinkMap(index) { + return this.linkMaps[index]; + } + + getLinkMaps() { + return this.linkMaps; + } + + matchLink(pattern) { + let found = false; + this.linkMaps.forEach(element => { + if (element.match(pattern)) found = true; + }); + return found; + } + + // + // STRING VALUE MAPS + // + addValueMap(value, text) { + const data = {}; + const m = new ValueMap(value, text, data); + m.import(data); + this.valueMaps.push(m); + this.data.valueData.push(data); + } + + removeValueMap(index) { + this.data.valueData.splice(index, 1); + this.valueMaps.splice(index, 1); + } + + getValueMap(index) { + return this.valueMaps[index]; + } + + getValueMaps() { + return this.valueMaps; + } + + // + // STRING RANGE VALUE MAPS + // + addRangeMap(from, to, text) { + const data = {}; + const m = new RangeMap(from, to, text, data); + this.rangeMaps.push(m); + this.data.rangeData.push(data); + } + + removeRangeMap(index) { + this.data.rangeData.splice(index, 1); + this.rangeMaps.splice(index, 1); + } + + getRangeMap(index) { + return this.rangeMaps[index]; + } + + getRangeMaps() { + return this.rangeMaps; + } + + hideRangeMap(index) { + this.rangeMaps[index].hide(); + } + + showRangeMap(index) { + this.rangeMaps[index].show(); + } + + // + // Format value + // + /** + *Get color according to value + * + * @param {*} value + * @returns {string} html color + * @memberof Rule + */ + getColorForValue(value) { + if (!this.data.thresholds || this.data.thresholds.length === 0) { + return null; + } + + for (let i = this.data.thresholds.length; i > 0; i -= 1) { + if (value >= this.data.thresholds[i - 1]) { + return this.data.colors[i]; + } + } + return _.first(this.data.colors); + } + + /** + *Get color according level (-1,0,1,2) + * + * @param {*} level + * @returns + * @memberof Rule + */ + getColorForLevel(level) { + let colors = [...this.data.colors]; + if (!this.data.invert) colors = colors.reverse(); + if (level <= 0) return colors[0]; + else if (colors[level] !== undefined) return colors[level]; + return _.first(colors); + } + + /** + * Return Level according to value and rule options + * + * @param {float} value + * @returns 0, 1 or 2 + * @memberof Rule + */ + getThresholdLevel(value) { + if (this.data.type === 'number') { + let thresholdLevel = 0; + const thresholds = this.data.thresholds; + + if (thresholds === undefined || thresholds.length === 0) return -1; + if (thresholds.length !== 2) return -1; + + // non invert + if (!this.data.invert) { + thresholdLevel = 2; + if (value >= thresholds[0]) thresholdLevel = 1; + if (value >= thresholds[1]) thresholdLevel = 0; + } else { + thresholdLevel = 0; + if (value >= thresholds[0]) thresholdLevel = 1; + if (value >= thresholds[1]) thresholdLevel = 2; + } + return thresholdLevel; + } else if (this.data.type === 'string') { + if (value === this.data.stringWarning) return 1; + if (value === this.data.stringCritical) return 2; + let formatedValue = this.getFormattedValue(value); + if (formatedValue === this.data.stringWarning) return 1; + if (formatedValue === this.data.stringCritical) return 2; + return 0; + } + return 0; + } + + getValueForSerie(serie) { + if (this.matchSerie(serie)) { + let value = _.get(serie.stats, this.data.aggregation); + if (value === undefined || value === null) { + value = serie.datapoints[serie.datapoints.length - 1][0]; + } + return value; + } + return '-'; + } + + getFormattedValueForSerie(serie) { + const formattedValue = this.getValueForSerie(serie); + return this.getFormattedValue(formattedValue); + } + + getLink() { + if (this.data.linkParams) return this.data.linkUrl + window.location.search; + return this.data.linkUrl; + } + + getFormattedValue(value) { + // Number + if (this.data.type === 'number') { + if (!_.isFinite(value)) return 'Invalid Number'; + if (value === null || value === void 0) { + return '-'; + } + let decimals = this.decimalPlaces(value); + decimals = + typeof this.data.decimals === 'number' ? Math.min(this.data.decimals, decimals) : decimals; + return formatValue(value, this.data.unit, this.data.decimals); + } + + if (this.data.type === 'string') { + if (_.isArray(value)) { + value = value.join(', '); + } + const mappingType = this.data.mappingType || 0; + if (mappingType === 1 && this.valueMaps) { + for (let i = 0; i < this.valueMaps.length; i += 1) { + const map = this.valueMaps[i]; + if (map.match(value)) return map.getFormattedText(value); + } + return value.toString(); + } + + if (mappingType === 2 && this.rangeMaps) { + for (let i = 0; i < this.rangeMaps.length; i += 1) { + const map = this.rangeMaps[i]; + if (map.match(value)) return map.getFormattedText(value); + } + return value.toString(); + } + + if (value === null || value === void 0) { + return '-'; + } + } + + if (this.data.type === 'date') { + if (value === undefined || value === null) { + return '-'; + } + + if (_.isArray(value)) { + value = value[0]; + } + const date = moment(value); + // if (this.dashboard.isTimezoneUtc()) { + // date = date.utc(); + // } + return date.format(this.data.dateFormat); + } + + return value; + } + + getReplaceText(text, FormattedValue) { + if (this.data.textReplace === 'content') return FormattedValue; + if (this.data.textReplace === 'pattern') { + const regexVal = u.stringToJsRegex(this.data.textPattern); + if (text.toString().match(regexVal)) return text.toString().replace(regexVal, FormattedValue); + return text; + } + if (this.data.textReplace === 'as') { + return `${text} ${FormattedValue}` + } + if (this.data.textReplace === 'anl') { + return `${text}\n${FormattedValue}` + } + } + + defaultValueFormatter(value) { + if (value === null || value === void 0 || value === undefined) { + return ''; + } + + if (_.isArray(value)) { + value = value.join(', '); + } + + if (this.sanitize) { + return this.$sanitize(value); + } + return _.escape(value); + } + + decimalPlaces(num) { + let match = ('' + num).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/); + if (!match) { + return 0; + } + return Math.max( + 0, + // Number of digits right of decimal point. + (match[1] ? match[1].length : 0) - + // Adjust for scientific notation. + (match[2] ? +match[2] : 0) + ); + } +} + +// +// ShapeMap Class +// +class ShapeMap { + constructor(pattern, data) { + this.data = data; + this.id = u.uniqueID(); + this.data.pattern = undefined; + this.data.pattern = pattern; + this.import(data); + } + + import(obj) { + this.data.pattern = obj.pattern || ''; + this.data.hidden = obj.hidden || false; + } + + match(text) { + if (text === undefined || text === null || text.length === 0) return false; + return u.matchString(text, this.data.pattern); + } + + getId() { + return this.id; + } + + show() { + this.data.hidden = false; + } + + hide() { + this.data.hidden = true; + } + + isHidden() { + return this.data.hidden; + } + + export() { + return { + pattern: this.data.pattern, + hidden: this.data.hidden + }; + } + + toVisible() { + if (this.data.hidden) return false; + return true; + } +} + +// +// TextMap Class +// +class TextMap { + constructor(pattern, data) { + this.data = data; + this.id = u.uniqueID(); + this.data.pattern = pattern; + this.import(data); + } + + import(obj) { + this.data.pattern = obj.pattern || this.data.pattern; + this.data.hidden = obj.hidden || false; + } + + match(text) { + if (text === undefined || text === null || text.length === 0) return false; + return u.matchString(text, this.data.pattern); + } + + getId() { + return this.id; + } + + show() { + this.data.hidden = false; + } + + hide() { + this.data.hidden = true; + } + + isHidden() { + return this.data.hidden; + } + + export() { + return { + pattern: this.data.pattern, + hidden: this.data.hidden + }; + } +} + +// +// LinkMap Class +// +class LinkMap { + constructor(pattern, data) { + this.data = data; + this.id = u.uniqueID(); + this.data.pattern = pattern; + this.import(data); + } + + import(obj) { + this.data.pattern = obj.pattern || this.data.pattern || ''; + this.data.hidden = obj.hidden || false; + } + + match(text) { + if (text === undefined || text === null || text.length === 0) return false; + return u.matchString(text, this.data.pattern); + } + + getId() { + return this.id; + } + + show() { + this.data.hidden = false; + } + + hide() { + this.data.hidden = true; + } + + isHidden() { + return this.data.hidden; + } + + export() { + return { + pattern: this.data.pattern, + hidden: this.data.hidden + }; + } +} + +// +// RangeMap Class +// +class RangeMap { + constructor(from, to, text, data) { + this.data = data; + this.id = u.uniqueID(); + this.data.from = from; + this.data.to = to; + this.data.text = text; + this.data.hidden = false; + this.import(data); + } + + import(obj) { + this.data.from = obj.from || this.data.from || ''; + this.data.to = obj.to || this.data.to || ''; + this.data.text = obj.text || this.data.text || ''; + this.data.hidden = obj.hidden || this.data.hidden || false; + } + + match(value) { + if (this.data.from === 'null' && this.data.to === 'null') { + return true; + } + if (value === null) { + if (this.data.from === 'null' && this.data.to === 'null') { + return true; + } + } + if (Number(this.data.from) <= Number(value) && Number(this.data.to) >= Number(value)) { + return true; + } + return false; + } + + getId() { + return this.id; + } + + getFormattedText(value) { + if (value === null) { + if (this.data.from === 'null' && this.data.to === 'null') { + return this.data.text; + } + } + if (this.match(value)) { + return this.data.text; + } + return value; + } + + show() { + this.data.hidden = false; + } + + hide() { + this.data.hidden = true; + } + + isHidden() { + return this.data.hidden; + } + + export() { + return { + from: this.data.from, + to: this.data.to, + text: this.data.text, + hidden: this.data.hidden + }; + } +} + +// +// ValueMap Class +// +class ValueMap { + constructor(value, text, data) { + this.data = data; + this.id = u.uniqueID(); + this.data.value = value; + this.data.text = text; + this.data.hidden = false; + this.import(data); + } + + import(obj) { + this.data.value = obj.value || this.data.value || ''; + this.data.text = obj.text || this.data.text || ''; + this.data.hidden = obj.hidden || this.data.hidden || false; + } + + match(value) { + if (value === null || value === undefined) { + if (this.data.value === 'null') { + return true; + } + return false; + } + + if (!_.isString(value) && Number(this.data.value) === Number(value)) { + return true; + } + + return u.matchString(value.toString(), this.data.value); + } + + getId() { + return this.id; + } + + getFormattedText(value) { + if (value === null) { + if (this.data.value === 'null') { + return this.data.text; + } + } + if (this.match(value)) { + return this.data.text; + } + return value; + } + + show() { + this.data.hidden = false; + } + + hide() { + this.data.hidden = true; + } + + isHidden() { + return this.data.hidden; + } + + export() { + return { + value: this.data.value, + text: this.data.text, + hidden: this.data.hidden + }; + } + +} + +function formatValue(value, unit, decimals) { + return kbn.valueFormats[unit](value, decimals, null).toString(); +} diff --git a/data/plugins/grafana-flowcharting/src/rulesHandler.js b/data/plugins/grafana-flowcharting/src/rulesHandler.js new file mode 100644 index 0000000000000..9ebff7253d54d --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/rulesHandler.js @@ -0,0 +1,200 @@ +import Rule from './rule_class'; + +/** + * Rules Handler + * + * @export + * @class RulesHandler + */ +export default class RulesHandler { + /** + *Creates an instance of RulesHandler. + * @param {*} $scope + * @param {*} data + * @memberof RulesHandler + */ + constructor($scope, data) { + u.log(1, 'RulesHandler.constructor()'); + this.$scope = $scope || null; + this.rules = []; + this.data = data; + this.import(this.data); + } + + /** + * import datas in rule + * + * @param {*} obj + * @memberof RulesHandler + */ + import(obj) { + u.log(1, 'RuleHandler.import()'); + u.log(0, 'RuleHandler.import() obj', obj); + this.rules = []; + let index = 1; + if (obj !== undefined && obj !== null && obj.length > 0) { + // Fix bug of grafana 6+ + if (obj[0].order != undefined) obj = _.sortBy(_.sortBy(obj, o => o.order)) + obj.forEach(map => { + const newData = {}; + const rule = new Rule(map.pattern, newData); + rule.import(map); + rule.setOrder(index); + index += 1; + this.rules.push(rule); + this.data.push(newData); + }); + } + } + + /** + * Return array of rules + * + * @returns {Array} of Rules + * @memberof RulesHandler + */ + getRules() { + return this.rules; + } + + /** + * Get Rule at index + * + * @param {number} index + * @returns {Rule} + * @memberof RulesHandler + */ + getRule(index) { + return this.rules[index]; + } + + /** + * Add a new rule + * + * @param {string} pattern + * @returns {Rule} + * @memberof RulesHandler + */ + addRule(pattern) { + const data = {}; + const newRule = new Rule(pattern, data); + this.rules.push(newRule); + this.data.push(data); + newRule.setOrder(this.countRules()); + return newRule; + } + + /** + * count number of rules + * + * @returns {number} + * @memberof RulesHandler + */ + countRules() { + if (this.rules !== undefined && Array.isArray(this.rules)) return this.rules.length; + return 0; + } + + /** + *Redefine Order number of rules + * + * @memberof RulesHandler + */ + setOrder() { + for (let index = 0; index < this.rules.length; index++) { + const rule = this.rules[index]; + rule.setOrder(index + 1); + } + } + + /** + * Remove rule at index + * + * @param {number} index + * @memberof RulesHandler + */ + removeRule(index) { + this.rules.splice(index, 1); + this.data.splice(index, 1); + this.setOrder(); + } + + /** + * Clone rules at index in index - 1 + * + * @param {number} index + * @memberof RulesHandler + */ + cloneRule(index) { + const rule = this.getRule(index); + const data = rule.getData(); + const newData = {}; + this.reduce(); + const newRule = new Rule(newData.pattern, newData); + newRule.import(data); + newData.alias = `Copy of ${newData.alias}`; + this.rules.splice(index, 0, newRule); + this.data.splice(index, 0, newData); + newRule.data.reduce = false; + this.activeRuleIndex = index; + this.setOrder(); + const elt = document.getElementById(newRule.getId()); + // NOT WORK : TODO + if (elt) { + setTimeout(() => { + elt.focus(); + }, 100); + } + } + + /** + *Reduce all rules + * + * @memberof RulesHandler + */ + reduce() { + this.getRules().forEach(rule => { + rule.data.reduce = true; + }); + } + + /** + * Move rule on index in index - 1 + * + * @param {number} index index + * @memberof RulesHandler + */ + moveRuleToUp(index) { + const first = 0; + const rules = this.rules; + const last = rules.length - 1; + if (index !== first && last !== first) { + const curr = rules[index]; + curr.setOrder(index); + const before = rules[index - 1]; + before.setOrder(index + 1); + rules[index - 1] = curr; + rules[index] = before; + } + } + + /** + * Move rule on index in index + 1 + * + * @param {number} index + * @memberof RulesHandler + */ + moveRuleToDown(index) { + const first = 0; + const rules = this.rules; + const last = rules.length - 1; + if (index !== last && last !== first) { + const curr = rules[index]; + curr.setOrder(index + 2); + const after = rules[index + 1]; + after.setOrder(index + 1); + rules[index + 1] = curr; + rules[index] = after; + } + } +} diff --git a/data/plugins/grafana-flowcharting/src/state_class.js b/data/plugins/grafana-flowcharting/src/state_class.js new file mode 100644 index 0000000000000..73f60285234b0 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/state_class.js @@ -0,0 +1,635 @@ +import TooltipHandler from './tooltipHandler'; + +/** + *Class for state of one cell + * + * @export + * @class State + */ +export default class State { + /** + *Creates an instance of State. + * @param {mxCell} mxcell + * @param {XGraph} xgraph + * @param {*} ctrl - ctrl panel + * @memberof State + */ + constructor(mxcell, xgraph, ctrl) { + u.log(1, 'State.constructor()'); + this.mxcell = mxcell; + this.cellId = mxcell.id; + this.xgraph = xgraph; + this.ctrl = ctrl; + this.templateSrv = this.ctrl.templateSrv; + // If Cell is modified + this.changed = false; + this.changedShape = false; + this.changedStyle = { + fillColor: false, + strokeColor: false, + fontColor: false, + imageBorder: false, + imageBackground: false + }; + this.changedText = false; + this.changedLink = false; + + // If state is target + this.matched = false; + this.matchedShape = false; + this.matchedStyle = { + fillColor: false, + strokeColor: false, + fontColor: false, + imageBorder: false, + imageBackground: false + }; + this.matchedText = false; + this.matchedLink = false; + this.globalLevel = -1; + this.styleKeys = ['fillColor', 'strokeColor', 'fontColor', 'imageBorder', 'imageBackground']; + this.level = { + fillColor: -1, + strokeColor: -1, + fontColor: -1, + imageBorder: -1, + imageBackground: -1 + }; + this.tooltipHandler = null; + this.mxcell.GF_tooltipHandler = null; + this.currentColors = {}; + this.originalColors = {}; + this.originalStyle = mxcell.getStyle(); + this.originalText = this.xgraph.getLabel(mxcell); + this.currentText = this.originalText; + let link = this.xgraph.getLink(mxcell); + if (link === undefined) link = null; + this.originalLink = link; + this.currentLink = link; + this.styleKeys.forEach(style => { + const color = this.xgraph.getStyleCell(mxcell, style); + this.currentColors[style] = color; + this.originalColors[style] = color; + }); + } + + /** + *Call applyState() asynchronously + * + * @memberof State + */ + async async_applyState() { + this.applyState(); + } + + /** + *Define state according to 1 rule and 1 serie without apply display + * + * @param {Rule} rule + * @param {Serie} serie + * @memberof State + */ + setState(rule, serie) { + u.log(1, 'State.setState()'); + u.log(0, 'State.setState() Rule', rule); + u.log(0, 'State.setState() Serie', serie); + if (rule.matchSerie(serie)) { + const shapeMaps = rule.getShapeMaps(); + const textMaps = rule.getTextMaps(); + const linkMaps = rule.getLinkMaps(); + const value = rule.getValueForSerie(serie); + const FormattedValue = rule.getFormattedValue(value); + const level = rule.getThresholdLevel(value); + const color = rule.getColorForLevel(level); + const tooltipName = rule.data.alias + "_" + serie.alias; + + // SHAPE + let cellProp = this.getCellProp(rule.data.shapeProp); + shapeMaps.forEach(shape => { + if (!shape.isHidden() && shape.match(cellProp)) { + this.matchedShape = true; + this.matched = true; + // Test + this.mxcell.serie = serie; + // tooltips + if (rule.toTooltipize(level)) { + // Metrics + let tpColor = null; + let label = (rule.data.tooltipLabel == null || rule.data.tooltipLabel.length === 0) ? serie.alias : rule.data.tooltipLabel; + if (rule.data.tooltipColors) tpColor = color; + this.addTooltip(tooltipName, label, FormattedValue, tpColor, rule.data.tpDirection); + // Graph + if (rule.data.tpGraph) + this.addTooltipGraph( + tooltipName, + rule.data.tpGraphType, + rule.data.tpGraphSize, + serie + ); + // Date + this.updateTooltipDate(); + } + + // Color Shape + if (this.globalLevel <= level) { + this.setLevelStyle(rule.data.style, level); + if (rule.toColorize(level)) { + this.setColorStyle(rule.data.style, color); + this.matchedStyle[rule.data.style] = true; + } else if (this.changedShape) { + if (this.changedStyle[rule.data.style]) this.unsetColorStyle(rule.data.style); + } + this.overlayIcon = rule.toIconize(level); + } + } + }); + + // TEXT + cellProp = this.getCellProp(rule.data.textProp); + textMaps.forEach(text => { + if (!text.isHidden() && text.match(cellProp)) { + this.matchedText = true; + this.matched = true; + if (rule.toLabelize(level)) { + const textScoped = this.templateSrv.replaceWithText(FormattedValue); + this.setText(rule.getReplaceText(this.currentText, textScoped)); + } else { + // Hide text + this.setText(rule.getReplaceText(this.currentText, '')); + } + } + }); + + // LINK + cellProp = this.getCellProp(rule.data.linkProp); + linkMaps.forEach(link => { + if (!link.isHidden() && link.match(cellProp)) { + this.matchedLink = true; + this.matched = true; + if (this.globalLevel <= level) { + if (rule.toLinkable(level)) { + const linkScoped = this.templateSrv.replaceWithText(rule.getLink()); + this.setLink(linkScoped); + } + } + } + }); + } + u.log(0, 'State.setState() state', this); + } + + /** + *Restore initial status of state without apply display. + * Use applyState() to apply on graph (color, level and text) + * + * @memberof State + */ + unsetState() { + u.log(1, 'State.unsetState()'); + this.unsetLevel(); + // this.unsetColor(); Replace by reset + this.resetStyle(); + this.unsetText(); + this.unsetLink(); + this.unsetTooltip(); + this.matched = false; + this.matchedShape = false; + this.styleKeys.forEach(key => { + this.matchedStyle[key] = false; + }); + this.matchedText = false; + this.matchedLink = false; + } + + /** + *Flag to indicate state is matching by a rule and series + * + * @returns {boolean} + * @memberof State + */ + isMatched() { + return this.matched; + } + + /** + *Flag to indicate state is changed, need apply state + * + * @returns {boolean} + * @memberof State + */ + isChanged() { + return this.changed; + } + + /** + * + * + * @param {string} prop - id|value + * @returns {string} return original value of id or label of cell + * @memberof State + */ + getCellProp(prop) { + if (prop === 'id') return this.cellId; + if (prop === 'value') return this.originalText; + return '/!\\ Not found'; + } + + /** + *Define color for a style + * + * @param {string} style - fillcolor|fontcolor|stroke + * @param {string} color - html color + * @memberof State + */ + setColorStyle(style, color) { + u.log(1, 'State.setColorStyle()'); + this.currentColors[style] = color; + } + + /** + *Reset color with initial color + * + * @param {string} style - fillcolor|fontcolor|stroke + * @memberof State + */ + unsetColorStyle(style) { + this.currentColors[style] = this.originalColors[style]; + } + + /** + *Restore initial color of cell + * + * @memberof State + */ + unsetColor() { + this.styleKeys.forEach(style => { + this.unsetColorStyle(style); + }); + } + + /** + *Reset default level (-1) for the style + * + * @param {string} style - fillcolor|fontcolor|stroke + * @memberof State + */ + unsetLevelStyle(style) { + this.level[style] = -1; + } + + /** + *Reset tooltip + * + * @memberof State + */ + unsetTooltip() { + if (this.tooltipHandler != null) this.tooltipHandler.destroy(); + this.tooltipHandler = null; + } + + /** + *Reset level to -1 for all style + * + * @memberof State + */ + unsetLevel() { + this.styleKeys.forEach(key => { + this.unsetLevelStyle(key); + }); + this.globalLevel = -1; + } + + /** + *Attribute a level for a style + * + * @param {string} style - fillcolor|fontcolor|stroke + * @param {number} level + * @memberof State + */ + setLevelStyle(style, level) { + u.log(1, 'State.setLevelStyle()'); + this.level[style] = level; + if (this.globalLevel < level) this.globalLevel = level; + } + + /** + *Retrun the level for a style + * + * @param {string} style - fillcolor|fontcolor|stroke + * @returns + * @memberof State + */ + getLevelStyle(style) { + return this.level[style]; + } + + /** + *Get the highest/global level + * + * @returns + * @memberof State + */ + getLevel() { + return this.globalLevel; + } + + /** + *Return the label level of current level + * + * @returns + * @memberof State + */ + getTextLevel() { + const level = this.getLevel(); + switch (level) { + case -1: + return 'NO DATA'; + case 0: + return 'OK'; + case 1: + return 'WARN'; + case 2: + return 'ERROR'; + default: + return 'NULL'; + } + } + + /** + *Attribute new label + * + * @param {string} text + * @memberof State + */ + setText(text) { + this.currentText = text; + } + + /** + *Reset the current label with the initial label + * + * @memberof State + */ + unsetText() { + this.currentText = this.originalText; + } + + /** + *Assign new link + * + * @param {string} url + * @memberof State + */ + setLink(url) { + this.currentLink = url; + } + + /** + *Reset current link with original/initial link + * + * @memberof State + */ + unsetLink() { + this.currentLink = this.originalLink; + } + + /** + *Add metric to tooltip of shape + * + * @param {string} label - Label to display in tooltip + * @param {string} value - Formatted value + * @param {string} color - Color for the value + * @memberof State + */ + addTooltip(name, label, value, color, direction) { + u.log(1, 'State.addTooltipValue()'); + u.log(0, 'State.addTooltipValue() label', label); + u.log(0, 'State.addTooltipValue() value', value); + if (this.tooltipHandler == null) this.tooltipHandler = new TooltipHandler(this.mxcell); + this.tooltipHandler.addMetric(name, label, value, color, direction); + } + + /** + *Add Graph options to tooltip + * + * @param {string} name + * @param {string} type + * @param {string} size + * @param {timeSerie} serie + * @memberof State + */ + addTooltipGraph(name, type, size, serie) { + this.tooltipHandler.addGraph(name, type, size, serie); + } + + updateTooltipDate() { + this.tooltipHandler.updateDate(); + } + + // eslint-disable-next-line class-methods-use-this + isGradient() { + // TODO: next version + } + + /** + *Return true if is a shape/vertex + * + * @returns + * @memberof State + */ + isShape() { + return this.mxcell.isVertex(); + } + + /** + *Return true if is a arrow/connector + * + * @returns + * @memberof State + */ + isConnector() { + return this.mxcell.isEdge(); + } + + /** + *Apply and draw new shape color and form + * + * @memberof State + */ + applyShape() { + this.changedShape = true; + this.applyStyle(); + this.applyIcon(); + } + + applyStyle() { + this.styleKeys.forEach(key => { + if (this.matchedStyle[key]) { + const color = this.currentColors[key]; + this.xgraph.setStyleCell(this.mxcell, key, color); + if (color !== this.originalColors[key]) this.changedStyle[key] = true; + } + }); + } + + applyIcon() { + // Apply icons + if (this.overlayIcon) { + this.changedIcon = true; + this.xgraph.addOverlay(this.getTextLevel(), this.mxcell); + } else { + this.xgraph.removeOverlay(this.mxcell); + } + } + + resetShape() { + this.changedShape = false; + this.resetStyle(); + this.resetIcon(); + } + + resetIcon() { + this.changedIcon = false; + this.xgraph.removeOverlay(this.mxcell); + } + + /** + * unset et apply, reset to old style + * + * @memberof State + */ + resetStyle() { + this.unsetColor(); + this.mxcell.setStyle(this.originalStyle); + this.styleKeys.forEach(key => { + this.changedStyle[key] = false; + }); + } + + /** + *Apply new label + * + * @memberof State + */ + applyText() { + this.changedText = true; + this.xgraph.setLabelCell(this.mxcell, this.currentText); + } + + resetText() { + this.changedText = false; + this.unsetText(); + this.xgraph.setLabelCell(this.mxcell, this.originalText); + } + + /** + *Apply new link + * + * @memberof State + */ + applyLink() { + this.changedLink = true; + this.xgraph.addLink(this.mxcell, this.currentLink); + } + + resetLink() { + this.changedLink = false; + this.unsetLink(); + this.xgraph.addLink(this.mxcell, this.originalLink); + } + + /** + *Apply new tooltip + * + * @memberof State + */ + applyTooltip() { + if (this.tooltipHandler != null && this.tooltipHandler.isChecked()) { + this.mxcell.GF_tooltipHandler = this.tooltipHandler; + } + } + + /** + *Apply new state + * + * @memberof State + */ + applyState() { + u.log(1, 'State.applyState()'); + if (this.matched) { + this.changed = true; + + // TOOLTIP + this.applyTooltip(); + + // SHAPES + if (this.matchedShape) { + this.applyShape(); + } else if (this.changedShape) { + this.resetShape(); + } + + // TEXTS + if (this.matchedText) { + this.applyText(); + } else if (this.changedText) { + this.resetText(); + } + + // LINKS + if (this.matchedLink) { + this.applyLink(); + } else if (this.changedLink) { + this.resetLink(); + } + } else if (this.changed) this.reset(); + } + + /** + *Reset and restore state + * + * @memberof State + */ + reset() { + this.resetShape(); + this.resetText(); + this.resetLink(); + this.changed = false; + } + + /** + *Prepare state for a new rule and serie + * + * @memberof State + */ + prepare() { + if (this.changed) { + this.lastChange = null; + this.unsetLevel(); + this.unsetTooltip(); + this.unsetText(); + this.matched = false; + this.matchedShape = false; + this.matchedText = false; + this.matchedLink = false; + } + } + + /** + *Highlight mxcell + * + * @memberof State + */ + highlightCell() { + this.xgraph.highlightCell(this.mxcell); + } + + /** + * unhighlight mxcell + * + * @memberof State + */ + unhighlightCell() { + this.xgraph.unhighlightCell(this.mxcell); + } +} diff --git a/data/plugins/grafana-flowcharting/src/statesHandler.js b/data/plugins/grafana-flowcharting/src/statesHandler.js new file mode 100644 index 0000000000000..ca883321b1d4c --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/statesHandler.js @@ -0,0 +1,223 @@ +/* global u */ +import State from './state_class'; + +/** + *States Handler class + * + * @export + * @class StateHandler + */ +export default class StateHandler { + constructor(xgraph, ctrl) { + u.log(1, 'StateHandler.constructor()'); + this.states = []; + this.ctrl = ctrl; + this.templateSrv = this.ctrl.templateSrv; + this.xgraph = xgraph; + this.initStates(this.xgraph, ctrl.rulesHandler.getRules()); + } + + /** + * Init states + * + * @param {XGraph} xgraph + * @memberof StateHandler + */ + // initStates(xgraph, rules) { + // u.log(1, 'StateHandler.initStates()'); + // this.xgraph = xgraph; + // this.states = []; + // this.updateStates(rules); + // } + initStates(xgraph,rules) { + u.log(1, 'StateHandler.initStates()'); + this.xgraph = xgraph; + this.states = []; + let mxcells = xgraph.getMxCells(); + _.each(mxcells, mxcell => { + this.addState(mxcell); + }); + } + + /** + *Return states array for a rule + * + * @param {Rule} rule - rule mapping + * @returns {Array} + * @memberof StateHandler + */ + getStatesForRule(rule) { + u.log(1, 'StateHandler.getStatesForRule()'); + let result = []; + let name = null; + let xgraph = this.xgraph; + this.states.forEach(state => { + let mxcell = state.mxcell; + let found = false; + // SHAPES + name = xgraph.getValuePropOfMxCell(rule.data.shapeProp, mxcell); + if (rule.matchShape(name)) { + result.push(state); + found = true; + } + + // TEXTS + if (!found) { + name = xgraph.getValuePropOfMxCell(rule.data.textProp, mxcell); + if (rule.matchText(name)) { + result.push(state); + found = true; + } + } + // LINKS + if (!found) { + name = xgraph.getValuePropOfMxCell(rule.data.linkProp, mxcell); + if (rule.matchLink(name)) { + result.push(state); + found = true; + } + } + }); + return result; + } + + /** + * Update States : Add or remove state in states when rules changed + * + * @param {XGraph} xgraph + * @param {Array} rules + * @memberof StateHandler + */ + // OLD METHOD : see getStatesForRule + updateStates(rules) { + u.log(1, 'StateHandler.updateStates()'); + rules.forEach(rule => { + rule.states = this.getStatesForRule(rule); + }); + } + + /** + * Return array of state + * @returns {Array} Array of state object + */ + getStates() { + return this.states; + } + + /** + * Find state by Id + * @param {string} cellId - Id of cell + * @returns {state} + */ + getState(cellId) { + let foundState = null; + for (let index = 0; index < this.states.length; index++) { + const state = this.states[index]; + if (cellId == state.cellId) { + foundState = state; + break; + } + } + return foundState; + } + + /** + * Add a state + * + * @param {mxCell} mxcell + * @returns {State} created state + * @memberof StateHandler + */ + addState(mxcell) { + let state = this.getState(mxcell.id); + if (state === null) { + state = new State(mxcell, this.xgraph, this.ctrl); + this.states.push(state); + } + return state; + } + + /** + * Remove state + * + * @param {mxCell} mxcell + * @memberof StateHandler + */ + // NOT USED + // removeState(mxcell) { + // this.states = _.without(this.states, mxcell); + // } + + /** + * Count number of state + * + * @returns {Number} + * @memberof StateHandler + */ + countStates() { + return this.states.length; + } + + /** + * Count number of state with level + * + * @param {Number} level - 0 for OK | 1 for Warning | 2 for Error + * @returns {Number} + * @memberof StateHandler + */ + countStatesWithLevel(level) { + let count = 0; + this.states.forEach(state => { + if (state.getLevel() === level) count += 1; + }); + return count; + } + /** + * Restore initial status and prepare states object + */ + prepare() { + this.states.forEach(state => { + state.prepare(); + }); + } + + /** + * Change states according to rules and datas from grafana + * @param {Array} rules - Array of Rule object + * @param {Array} series - Array of serie object + */ + setStates(rules, series) { + u.log(1, 'StateHandler.setStates()'); + u.log(0, 'StatesHandler.setStates() Rules', rules); + u.log(0, 'StatesHandler.setStates() Series', series); + u.log(0, 'StatesHandler.setStates() States', this.states); + this.prepare(); + rules.forEach(rule => { + if (rule.states === undefined || rule.states.length === 0 ) rule.states = this.getStatesForRule(rule); + rule.states.forEach(state => { + series.forEach(serie => { + state.setState(rule, serie); + }); + }); + }); + } + + /** + * Apply color and text + */ + applyStates() { + u.log(1, 'StateHandler.applyStates()'); + this.states.forEach(state => { + state.applyState(); + }); + } + + /** + *Call applyStates asynchronously + * + * @memberof StateHandler + */ + async_applyStates() { + this.applyStates(); + } +} diff --git a/data/plugins/grafana-flowcharting/src/tooltipHandler.js b/data/plugins/grafana-flowcharting/src/tooltipHandler.js new file mode 100644 index 0000000000000..60fcf97a15d88 --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/tooltipHandler.js @@ -0,0 +1,218 @@ +const Chartist = require('chartist'); + +/** + * + * + * @export + * @class TooltipHandler + */ +export default class TooltipHandler { + constructor(mxcell) { + this.defaultColor = '#8c8980'; + this.timeFormat = 'YYYY-MM-DD HH:mm:ss'; + this.mxcell = mxcell; + this.checked = false; + this.metrics = []; + this.lineOptions = { + showPoint: false, + showLine: true, + showArea: true, + fullWidth: true, + showLabel: false, + axisX: { + showGrid: false, + showLabel: false, + offset: 0 + }, + axisY: { + showGrid: false, + showLabel: false, + offset: 0 + }, + chartPadding: 0, + // low: 0 + }; + } + + isChecked() { + return this.checked; + } + + addMetric(name, label, value, color, direction) { + let metric = this.findTooltipValue(name); + this.checked = true; + let found = metric != null ? true : false; + if (!found) { + metric = { + graphOptions: {} + }; + } + metric.name = name; + metric.label = label; + metric.value = value; + metric.color = color != null ? color : this.defaultColor; + metric.direction = direction; + if (!found) this.metrics.push(metric); + } + + addGraph(name, type, size, serie) { + let metric = this.findTooltipValue(name); + let found = metric != null ? true : false; + if (!found) { + metric = { + graphOptions: {} + }; + } + metric.name = name; + metric.graph = true; + metric.graphOptions.type = type; + metric.graphOptions.size = size; + metric.graphOptions.serie = serie; + if (!found) this.metrics.push(metric); + } + + updateDate() { + let current_datetime = new Date(); + this.lastChange = + current_datetime.getFullYear() + + '-' + + (current_datetime.getMonth() + 1) + + '-' + + current_datetime.getDate() + + ' ' + + current_datetime.getHours() + + ':' + + current_datetime.getMinutes() + + ':' + + current_datetime.getSeconds(); + } + + findTooltipValue(name) { + for (let index = 0; index < this.metrics.length; index += 1) { + const metric = this.metrics[index]; + if (metric.name === name) return metric; + } + return null; + } + + destroy() { + if (this.mxcell.GF_tooltipHandler) delete this.mxcell.GF_tooltipHandler; + } + + getTooltipDiv(parentDiv) { + // if (this.div != null) return this.div; + if (!this.checked) return null; + this.div = document.createElement('div'); + let div = this.div; + div.id = this.mxcell.mxObjectId + '_GLOBAL'; + if (parentDiv != undefined) parentDiv.appendChild(div); + if (this.metrics.length > 0) { + this.getDateDiv(div); + let metricsDiv = document.createElement('div'); + div.appendChild(metricsDiv); + for (let index = 0; index < this.metrics.length; index++) { + const metric = this.metrics[index]; + if(metric.div) { + metricsDiv.appendChild(metric.div); + return metric.div; + } + let metricDiv = document.createElement('div'); + metricDiv.className = 'tooltip-metric'; + metric.div = metricsDiv; + metricsDiv.appendChild(metricDiv); + if (metric.direction != null && metric.direction === 'h') + metricDiv.style = 'display:inline-block;*display:inline;*zoom:1'; + this.getMetricDiv(metric, metricDiv); + this.getChartDiv(metric, metricDiv); + } + } + return div; + } + + getDateDiv(parentDiv) { + let div = document.createElement('div'); + div.id = this.mxcell.mxObjectId + '_DATE'; + if (parentDiv != undefined) parentDiv.appendChild(div); + div.className = 'graph-tooltip-time tooltip-date'; + div.innerHTML = `${this.lastChange}`; + return div; + } + + getMetricDiv(metric, parentDiv) { + u.log(1,`TooltipHandler[${this.mxcell.mxObjectId}].getMetricDiv()`); + u.log(0,`TooltipHandler[${this.mxcell.mxObjectId}].getMetricDiv() metric`, metric); + let div = document.createElement('div'); + div.id = this.mxcell.mxObjectId + '_METRIC_' + metric.name; + let string = ''; + if (parentDiv != undefined) parentDiv.appendChild(div); + if (metric !== undefined) { + string += `${metric.label} : `; + string += `${metric.value}`; + } + div.innerHTML = string; + return div; + } + + getChartDiv(metric, parentDiv) { + let div = document.createElement('div'); + div.className = 'tooltip-graph'; + if (parentDiv != undefined) parentDiv.appendChild(div); + if (metric.graph) { + if (metric.graphOptions.type === 'line') this.getLineChartDiv(metric, div); + } + return div; + } + + getLineChartDiv(metric, parentDiv) { + let serie = metric.graphOptions.serie; + let coor = TooltipHandler.array2Coor(serie.flotpairs); + let div = document.createElement('div'); + if (parentDiv != undefined) parentDiv.appendChild(div); + let color = metric.color; + div.className = 'ct-chart ct-golden-section'; + if (metric.graphOptions.size != null) div.style = `width:${metric.graphOptions.size};`; + let data = { + series: [coor] + }; + let chart = new Chartist.Line(div, data, this.lineOptions); + metric.graphOptions.chart = chart; + chart.on('draw', function(data) { + u.log(0, 'Chartis.on() data ', data); + if (data.type === 'line' || data.type === 'area') { + if (data.type === 'line') + data.element.attr({ + style: `stroke: ${color}` + }); + if (data.type === 'area') + data.element.attr({ + style: `fill: ${color}` + }); + data.element.animate({ + d: { + begin: 1000 * data.index, + dur: 1000, + from: data.path + .clone() + .scale(1, 0) + .translate(0, data.chartRect.height()) + .stringify(), + to: data.path.clone().stringify(), + easing: Chartist.Svg.Easing.easeOutQuint + } + }); + } + }); + return div; + } + + static array2Coor(arr) { + let result = []; + for (let index = 0; index < arr.length; index++) { + result.push({ + x: arr[index][0], + y: arr[index][1] + }); + } + return result; + } +} diff --git a/data/plugins/grafana-flowcharting/src/utils.js b/data/plugins/grafana-flowcharting/src/utils.js new file mode 100644 index 0000000000000..744fd3e5c7c0f --- /dev/null +++ b/data/plugins/grafana-flowcharting/src/utils.js @@ -0,0 +1,260 @@ +const pako = require('pako'); +const vkbeautify = require('vkbeautify'); + +// sources : +// https://jgraph.github.io/drawio-tools/tools/convert.html + +module.exports = { + stringToBytes(str) { + const arr = new Array(str.length); + + for (let i = 0; i < str.length; i += 1) { + arr[i] = str.charCodeAt(i); + } + + return arr; + }, + bytesToString(arr) { + let str = ''; + + for (let i = 0; i < arr.length; i += 1) { + str += String.fromCharCode(arr[i]); + } + return str; + }, + encode(data, encode, deflate, base64) { + let result = data; + if (encode) { + try { + result = encodeURIComponent(result); + } catch (e) { + console.error(e); + return; + } + } + + if (deflate && result.length > 0) { + try { + result = this.bytesToString(pako.deflateRaw(result)); + } catch (e) { + console.error(e); + return; + } + } + + if (base64) { + try { + result = btoa(result); + } catch (e) { + console.error(e); + return; + } + } + return result; + }, + + removeLinebreaks(data) { + return data.replace(/(\r\n|\n|\r)/gm, ''); + }, + + isencoded(data) { + try { + const node = this.parseXml(data).documentElement; + if (node != null && node.nodeName == 'mxfile') { + const diagrams = node.getElementsByTagName('diagram'); + if (diagrams.length > 0) { + return true; + } + } else return data.indexOf('mxGraphModel') == -1; + } catch (error) { + return true; + } + return false; + }, + + decode(data, encode, deflate, base64) { + try { + const node = this.parseXml(data).documentElement; + + if (node != null && node.nodeName == 'mxfile') { + const diagrams = node.getElementsByTagName('diagram'); + + if (diagrams.length > 0) { + data = this.getTextContent(diagrams[0]); + } + } + } catch (e) { + // ignore + } + + if (base64) { + try { + data = atob(data); + } catch (e) { + console.error(e); + return; + } + } + + if (deflate && data.length > 0) { + try { + data = this.bytesToString(pako.inflateRaw(data)); + } catch (e) { + console.error(e); + return; + } + } + + if (encode) { + try { + data = decodeURIComponent(data); + } catch (e) { + console.error(e); + return; + } + } + + return data; + }, + + parseXml(xml) { + if (window.DOMParser) { + const parser = new DOMParser(); + + return parser.parseFromString(xml, 'text/xml'); + } + const result = this.createXmlDocument(); + result.async = 'false'; + result.loadXML(xml); + return result; + }, + + createXmlDocument() { + let doc = null; + + if (document.implementation && document.implementation.createDocument) { + doc = document.implementation.createDocument('', '', null); + } else if (window.ActiveXObject) { + doc = new ActiveXObject('Microsoft.XMLDOM'); + } + + return doc; + }, + + decodeFromUri(data) { + try { + data = decodeURIComponent(data); + } catch (e) { + console.error(e); + return; + } + return data; + }, + + getTextContent(node) { + return node != null ? node[node.textContent === undefined ? 'text' : 'textContent'] : ''; + }, + + normalizeXml(data) { + try { + let str = data; + str = str.replace(/>\s*/g, '>'); // Replace "> " with ">" + str = str.replace(/\s* setTimeout(resolve, time)); + }, + + uniqueID() { + function chr4() { + return Math.random() + .toString(16) + .slice(-4); + } + return `${chr4() + chr4()}-${chr4()}-${chr4()}-${chr4()}-${chr4()}${chr4()}${chr4()}`; + }, + + stringToJsRegex(str) { + if (str[0] !== '/') { + return new RegExp(`^${str}$`); + } + const match = str.match(new RegExp('^/(.*?)/(g?i?m?y?)$')); + return new RegExp(match[1], match[2]); + }, + + matchString(str, pattern) { + if (str === undefined || pattern === undefined || str.length === 0 || pattern.length === 0) { + // u.log(0, `Match str=${str} pattern=${pattern}`, false); + return false; + } + if (str === pattern) return true; + const regex = this.stringToJsRegex(pattern); + const matching = str.toString().match(regex); + if (matching) { + // u.log(0, `Match str=${str} pattern=${pattern}`, true); + return true; + } + return false; + }, + + minify(text) { + try { + return vkbeautify.xmlmin(text, false); + } catch (error) { + this.log(3, 'Error in minify', error); + return text; + } + }, + + prettify(text) { + try { + return vkbeautify.xml(text); + } catch (error) { + this.log(3, 'Error in prettify', error); + return text; + } + }, + + prettifyJSON(text) { + try { + return vkbeautify.json(text); + } catch (error) { + this.log(3, 'Error in prettify', error); + return text; + } + }, + + log(level, title, obj) { + // 0 : DEBUG + // 1 : INFO + // 2 : WARN + // 3 : ERROR + // eslint-disable-next-line no-undef + if (GF_PLUGIN.logDisplay !== undefined && GF_PLUGIN.logDisplay === true) { + // eslint-disable-next-line no-undef + if (GF_PLUGIN.logLevel !== undefined && level >= GF_PLUGIN.logLevel) { + if (level === 0) { + console.debug(`DEBUG : ${title}`, obj); + return; + } + if (level === 1) { + console.info(` INFO : ${title}`, obj); + return; + } + if (level === 2) { + console.warn(` WARN : ${title}`, obj); + return; + } + if (level === 3) { + console.error(`ERROR : ${title}`, obj); + } + } + } + } +}; diff --git a/data/plugins/grafana-flowcharting/yarn.lock b/data/plugins/grafana-flowcharting/yarn.lock new file mode 100644 index 0000000000000..41a74720b5515 --- /dev/null +++ b/data/plugins/grafana-flowcharting/yarn.lock @@ -0,0 +1,10138 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@angular/common@^7.2.12": + version "7.2.15" + resolved "https://registry.yarnpkg.com/@angular/common/-/common-7.2.15.tgz#e6c2f6913cdc49f87adcaabc30604e721561374b" + integrity sha512-2b5JY2HWVHCf3D1GZjmde7jdAXSTXkYtmjLtA9tQkjOOTr80eHpNSujQqnzb97dk9VT9OjfjqTQd7K3pxZz8jw== + dependencies: + tslib "^1.9.0" + +"@angular/compiler@^7.2.12": + version "7.2.15" + resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-7.2.15.tgz#9698dac49dbb46956f0b8a6280580025ea7ab04e" + integrity sha512-5yb4NcLk8GuXkYf7Dcor4XkGueYp4dgihzDmMjYDUrV0NPhubKlr+SwGtLOtzgRBWJ1I2bO0S3zwa0q0OgIPOw== + dependencies: + tslib "^1.9.0" + +"@angular/core@^7.2.12": + version "7.2.15" + resolved "https://registry.yarnpkg.com/@angular/core/-/core-7.2.15.tgz#c00d4be0ebe95b70f7631154169509cc97934e9a" + integrity sha512-XsuYm0jEU/mOqwDOk2utThv8J9kESkAerfuCHClE9rB2TtHUOGCfekF7lJWqjjypu6/J9ygoPFo7hdAE058ZGg== + dependencies: + tslib "^1.9.0" + +"@angular/platform-browser-dynamic@^7.2.12": + version "7.2.15" + resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-7.2.15.tgz#e697159b565ef78bd7d276fa876d099172ad8735" + integrity sha512-UL2PqhzXMD769NQ6Lh6pxlBDKvN9Qol3XLRFil80lwJ1GRW16ITeYbCamcafIH2GOyd88IhmYcbMfUQ/6q4MMQ== + dependencies: + tslib "^1.9.0" + +"@angular/platform-browser@^7.2.12": + version "7.2.15" + resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-7.2.15.tgz#d6df74c427453e563c12bc2ec03a83bf10bb3805" + integrity sha512-aYgmPsbC9Tvp9vmKWD8voeAp4crwCay7/D6lM3ClEe2EeK934LuEXq3/uczMrFVbnIX7BBIo8fh03Tl7wbiGPw== + dependencies: + tslib "^1.9.0" + +"@babel/cli@^7.2.3": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/cli/-/cli-7.5.0.tgz#f403c930692e28ecfa3bf02a9e7562b474f38271" + integrity sha512-qNH55fWbKrEsCwID+Qc/3JDPnsSGpIIiMDbppnR8Z6PxLAqMQCFNqBctkIkBrMH49Nx+qqVTrHRWUR+ho2k+qQ== + dependencies: + commander "^2.8.1" + convert-source-map "^1.1.0" + fs-readdir-recursive "^1.1.0" + glob "^7.0.0" + lodash "^4.17.11" + mkdirp "^0.5.1" + output-file-sync "^2.0.0" + slash "^2.0.0" + source-map "^0.5.0" + optionalDependencies: + chokidar "^2.0.4" + +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.5.5": + version "7.5.5" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.5.5.tgz#bc0782f6d69f7b7d49531219699b988f669a8f9d" + integrity sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw== + dependencies: + "@babel/highlight" "^7.0.0" + +"@babel/core@7.2.2": + version "7.2.2" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.2.2.tgz#07adba6dde27bb5ad8d8672f15fde3e08184a687" + integrity sha512-59vB0RWt09cAct5EIe58+NzGP4TFSD3Bz//2/ELy3ZeTeKF6VTD1AXlH8BGGbCX0PuobZBsIzO7IAI9PH67eKw== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/generator" "^7.2.2" + "@babel/helpers" "^7.2.0" + "@babel/parser" "^7.2.2" + "@babel/template" "^7.2.2" + "@babel/traverse" "^7.2.2" + "@babel/types" "^7.2.2" + convert-source-map "^1.1.0" + debug "^4.1.0" + json5 "^2.1.0" + lodash "^4.17.10" + resolve "^1.3.2" + semver "^5.4.1" + source-map "^0.5.0" + +"@babel/core@^7.1.0": + version "7.6.0" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.6.0.tgz#9b00f73554edd67bebc86df8303ef678be3d7b48" + integrity sha512-FuRhDRtsd6IptKpHXAa+4WPZYY2ZzgowkbLBecEDDSje1X/apG7jQM33or3NdOmjXBKWGOg4JmSiRfUfuTtHXw== + dependencies: + "@babel/code-frame" "^7.5.5" + "@babel/generator" "^7.6.0" + "@babel/helpers" "^7.6.0" + "@babel/parser" "^7.6.0" + "@babel/template" "^7.6.0" + "@babel/traverse" "^7.6.0" + "@babel/types" "^7.6.0" + convert-source-map "^1.1.0" + debug "^4.1.0" + json5 "^2.1.0" + lodash "^4.17.13" + resolve "^1.3.2" + semver "^5.4.1" + source-map "^0.5.0" + +"@babel/core@^7.2.2": + version "7.5.4" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.5.4.tgz#4c32df7ad5a58e9ea27ad025c11276324e0b4ddd" + integrity sha512-+DaeBEpYq6b2+ZmHx3tHspC+ZRflrvLqwfv8E3hNr5LVQoyBnL8RPKSBCg+rK2W2My9PWlujBiqd0ZPsR9Q6zQ== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/generator" "^7.5.0" + "@babel/helpers" "^7.5.4" + "@babel/parser" "^7.5.0" + "@babel/template" "^7.4.4" + "@babel/traverse" "^7.5.0" + "@babel/types" "^7.5.0" + convert-source-map "^1.1.0" + debug "^4.1.0" + json5 "^2.1.0" + lodash "^4.17.11" + resolve "^1.3.2" + semver "^5.4.1" + source-map "^0.5.0" + +"@babel/generator@^7.2.2": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.5.0.tgz#f20e4b7a91750ee8b63656073d843d2a736dca4a" + integrity sha512-1TTVrt7J9rcG5PMjvO7VEG3FrEoEJNHxumRq66GemPmzboLWtIjjcJgk8rokuAS7IiRSpgVSu5Vb9lc99iJkOA== + dependencies: + "@babel/types" "^7.5.0" + jsesc "^2.5.1" + lodash "^4.17.11" + source-map "^0.5.0" + trim-right "^1.0.1" + +"@babel/generator@^7.4.0", "@babel/generator@^7.5.0", "@babel/generator@^7.6.0": + version "7.6.0" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.6.0.tgz#e2c21efbfd3293ad819a2359b448f002bfdfda56" + integrity sha512-Ms8Mo7YBdMMn1BYuNtKuP/z0TgEIhbcyB8HVR6PPNYp4P61lMsABiS4A3VG1qznjXVCf3r+fVHhm4efTYVsySA== + dependencies: + "@babel/types" "^7.6.0" + jsesc "^2.5.1" + lodash "^4.17.13" + source-map "^0.5.0" + trim-right "^1.0.1" + +"@babel/helper-annotate-as-pure@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0.tgz#323d39dd0b50e10c7c06ca7d7638e6864d8c5c32" + integrity sha512-3UYcJUj9kvSLbLbUIfQTqzcy5VX7GRZ/CCDrnOaZorFFM01aXp1+GJwuFGV4NDDoAS+mOUyHcO6UD/RfqOks3Q== + dependencies: + "@babel/types" "^7.0.0" + +"@babel/helper-builder-binary-assignment-operator-visitor@^7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.1.0.tgz#6b69628dfe4087798e0c4ed98e3d4a6b2fbd2f5f" + integrity sha512-qNSR4jrmJ8M1VMM9tibvyRAHXQs2PmaksQF7c1CGJNipfe3D8p+wgNwgso/P2A2r2mdgBWAXljNWR0QRZAMW8w== + dependencies: + "@babel/helper-explode-assignable-expression" "^7.1.0" + "@babel/types" "^7.0.0" + +"@babel/helper-builder-react-jsx@^7.3.0": + version "7.3.0" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-react-jsx/-/helper-builder-react-jsx-7.3.0.tgz#a1ac95a5d2b3e88ae5e54846bf462eeb81b318a4" + integrity sha512-MjA9KgwCuPEkQd9ncSXvSyJ5y+j2sICHyrI0M3L+6fnS4wMSNDc1ARXsbTfbb2cXHn17VisSnU/sHFTCxVxSMw== + dependencies: + "@babel/types" "^7.3.0" + esutils "^2.0.0" + +"@babel/helper-call-delegate@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/helper-call-delegate/-/helper-call-delegate-7.4.4.tgz#87c1f8ca19ad552a736a7a27b1c1fcf8b1ff1f43" + integrity sha512-l79boDFJ8S1c5hvQvG+rc+wHw6IuH7YldmRKsYtpbawsxURu/paVy57FZMomGK22/JckepaikOkY0MoAmdyOlQ== + dependencies: + "@babel/helper-hoist-variables" "^7.4.4" + "@babel/traverse" "^7.4.4" + "@babel/types" "^7.4.4" + +"@babel/helper-create-class-features-plugin@^7.3.0", "@babel/helper-create-class-features-plugin@^7.5.0": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.5.0.tgz#02edb97f512d44ba23b3227f1bf2ed43454edac5" + integrity sha512-EAoMc3hE5vE5LNhMqDOwB1usHvmRjCDAnH8CD4PVkX9/Yr3W/tcz8xE8QvdZxfsFBDICwZnF2UTHIqslRpvxmA== + dependencies: + "@babel/helper-function-name" "^7.1.0" + "@babel/helper-member-expression-to-functions" "^7.0.0" + "@babel/helper-optimise-call-expression" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-replace-supers" "^7.4.4" + "@babel/helper-split-export-declaration" "^7.4.4" + +"@babel/helper-define-map@^7.1.0", "@babel/helper-define-map@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.4.4.tgz#6969d1f570b46bdc900d1eba8e5d59c48ba2c12a" + integrity sha512-IX3Ln8gLhZpSuqHJSnTNBWGDE9kdkTEWl21A/K7PQ00tseBwbqCHTvNLHSBd9M0R5rER4h5Rsvj9vw0R5SieBg== + dependencies: + "@babel/helper-function-name" "^7.1.0" + "@babel/types" "^7.4.4" + lodash "^4.17.11" + +"@babel/helper-explode-assignable-expression@^7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.1.0.tgz#537fa13f6f1674df745b0c00ec8fe4e99681c8f6" + integrity sha512-NRQpfHrJ1msCHtKjbzs9YcMmJZOg6mQMmGRB+hbamEdG5PNpaSm95275VD92DvJKuyl0s2sFiDmMZ+EnnvufqA== + dependencies: + "@babel/traverse" "^7.1.0" + "@babel/types" "^7.0.0" + +"@babel/helper-function-name@^7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.1.0.tgz#a0ceb01685f73355d4360c1247f582bfafc8ff53" + integrity sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw== + dependencies: + "@babel/helper-get-function-arity" "^7.0.0" + "@babel/template" "^7.1.0" + "@babel/types" "^7.0.0" + +"@babel/helper-get-function-arity@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0.tgz#83572d4320e2a4657263734113c42868b64e49c3" + integrity sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ== + dependencies: + "@babel/types" "^7.0.0" + +"@babel/helper-hoist-variables@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.4.4.tgz#0298b5f25c8c09c53102d52ac4a98f773eb2850a" + integrity sha512-VYk2/H/BnYbZDDg39hr3t2kKyifAm1W6zHRfhx8jGjIHpQEBv9dry7oQ2f3+J703TLu69nYdxsovl0XYfcnK4w== + dependencies: + "@babel/types" "^7.4.4" + +"@babel/helper-member-expression-to-functions@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.0.0.tgz#8cd14b0a0df7ff00f009e7d7a436945f47c7a16f" + integrity sha512-avo+lm/QmZlv27Zsi0xEor2fKcqWG56D5ae9dzklpIaY7cQMK5N8VSpaNVPPagiqmy7LrEjK1IWdGMOqPu5csg== + dependencies: + "@babel/types" "^7.0.0" + +"@babel/helper-module-imports@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.0.0.tgz#96081b7111e486da4d2cd971ad1a4fe216cc2e3d" + integrity sha512-aP/hlLq01DWNEiDg4Jn23i+CXxW/owM4WpDLFUbpjxe4NS3BhLVZQ5i7E0ZrxuQ/vwekIeciyamgB1UIYxxM6A== + dependencies: + "@babel/types" "^7.0.0" + +"@babel/helper-module-transforms@^7.1.0", "@babel/helper-module-transforms@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.4.4.tgz#96115ea42a2f139e619e98ed46df6019b94414b8" + integrity sha512-3Z1yp8TVQf+B4ynN7WoHPKS8EkdTbgAEy0nU0rs/1Kw4pDgmvYH3rz3aI11KgxKCba2cn7N+tqzV1mY2HMN96w== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + "@babel/helper-simple-access" "^7.1.0" + "@babel/helper-split-export-declaration" "^7.4.4" + "@babel/template" "^7.4.4" + "@babel/types" "^7.4.4" + lodash "^4.17.11" + +"@babel/helper-optimise-call-expression@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.0.0.tgz#a2920c5702b073c15de51106200aa8cad20497d5" + integrity sha512-u8nd9NQePYNQV8iPWu/pLLYBqZBa4ZaY1YWRFMuxrid94wKI1QNt67NEZ7GAe5Kc/0LLScbim05xZFWkAdrj9g== + dependencies: + "@babel/types" "^7.0.0" + +"@babel/helper-plugin-utils@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz#bbb3fbee98661c569034237cc03967ba99b4f250" + integrity sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA== + +"@babel/helper-regex@^7.0.0", "@babel/helper-regex@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.4.4.tgz#a47e02bc91fb259d2e6727c2a30013e3ac13c4a2" + integrity sha512-Y5nuB/kESmR3tKjU8Nkn1wMGEx1tjJX076HBMeL3XLQCu6vA/YRzuTW0bbb+qRnXvQGn+d6Rx953yffl8vEy7Q== + dependencies: + lodash "^4.17.11" + +"@babel/helper-remap-async-to-generator@^7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.1.0.tgz#361d80821b6f38da75bd3f0785ece20a88c5fe7f" + integrity sha512-3fOK0L+Fdlg8S5al8u/hWE6vhufGSn0bN09xm2LXMy//REAF8kDCrYoOBKYmA8m5Nom+sV9LyLCwrFynA8/slg== + dependencies: + "@babel/helper-annotate-as-pure" "^7.0.0" + "@babel/helper-wrap-function" "^7.1.0" + "@babel/template" "^7.1.0" + "@babel/traverse" "^7.1.0" + "@babel/types" "^7.0.0" + +"@babel/helper-replace-supers@^7.1.0", "@babel/helper-replace-supers@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.4.4.tgz#aee41783ebe4f2d3ab3ae775e1cc6f1a90cefa27" + integrity sha512-04xGEnd+s01nY1l15EuMS1rfKktNF+1CkKmHoErDppjAAZL+IUBZpzT748x262HF7fibaQPhbvWUl5HeSt1EXg== + dependencies: + "@babel/helper-member-expression-to-functions" "^7.0.0" + "@babel/helper-optimise-call-expression" "^7.0.0" + "@babel/traverse" "^7.4.4" + "@babel/types" "^7.4.4" + +"@babel/helper-simple-access@^7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.1.0.tgz#65eeb954c8c245beaa4e859da6188f39d71e585c" + integrity sha512-Vk+78hNjRbsiu49zAPALxTb+JUQCz1aolpd8osOF16BGnLtseD21nbHgLPGUwrXEurZgiCOUmvs3ExTu4F5x6w== + dependencies: + "@babel/template" "^7.1.0" + "@babel/types" "^7.0.0" + +"@babel/helper-split-export-declaration@^7.0.0", "@babel/helper-split-export-declaration@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.4.4.tgz#ff94894a340be78f53f06af038b205c49d993677" + integrity sha512-Ro/XkzLf3JFITkW6b+hNxzZ1n5OQ80NvIUdmHspih1XAhtN3vPTuUFT4eQnela+2MaZ5ulH+iyP513KJrxbN7Q== + dependencies: + "@babel/types" "^7.4.4" + +"@babel/helper-wrap-function@^7.1.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.2.0.tgz#c4e0012445769e2815b55296ead43a958549f6fa" + integrity sha512-o9fP1BZLLSrYlxYEYyl2aS+Flun5gtjTIG8iln+XuEzQTs0PLagAGSXUcqruJwD5fM48jzIEggCKpIfWTcR7pQ== + dependencies: + "@babel/helper-function-name" "^7.1.0" + "@babel/template" "^7.1.0" + "@babel/traverse" "^7.1.0" + "@babel/types" "^7.2.0" + +"@babel/helpers@^7.2.0": + version "7.5.4" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.5.4.tgz#2f00608aa10d460bde0ccf665d6dcf8477357cf0" + integrity sha512-6LJ6xwUEJP51w0sIgKyfvFMJvIb9mWAfohJp0+m6eHJigkFdcH8duZ1sfhn0ltJRzwUIT/yqqhdSfRpCpL7oow== + dependencies: + "@babel/template" "^7.4.4" + "@babel/traverse" "^7.5.0" + "@babel/types" "^7.5.0" + +"@babel/helpers@^7.5.4", "@babel/helpers@^7.6.0": + version "7.6.0" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.6.0.tgz#21961d16c6a3c3ab597325c34c465c0887d31c6e" + integrity sha512-W9kao7OBleOjfXtFGgArGRX6eCP0UEcA2ZWEWNkJdRZnHhW4eEbeswbG3EwaRsnQUAEGWYgMq1HsIXuNNNy2eQ== + dependencies: + "@babel/template" "^7.6.0" + "@babel/traverse" "^7.6.0" + "@babel/types" "^7.6.0" + +"@babel/highlight@^7.0.0": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.5.0.tgz#56d11312bd9248fa619591d02472be6e8cb32540" + integrity sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ== + dependencies: + chalk "^2.0.0" + esutils "^2.0.2" + js-tokens "^4.0.0" + +"@babel/parser@^7.1.0", "@babel/parser@^7.4.3", "@babel/parser@^7.4.4", "@babel/parser@^7.5.0", "@babel/parser@^7.6.0": + version "7.6.0" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.6.0.tgz#3e05d0647432a8326cb28d0de03895ae5a57f39b" + integrity sha512-+o2q111WEx4srBs7L9eJmcwi655eD8sXniLqMB93TBK9GrNzGrxDWSjiqz2hLU0Ha8MTXFIP0yd9fNdP+m43ZQ== + +"@babel/parser@^7.2.2": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.5.0.tgz#3e0713dff89ad6ae37faec3b29dcfc5c979770b7" + integrity sha512-I5nW8AhGpOXGCCNYGc+p7ExQIBxRFnS2fd/d862bNOKvmoEPjYPcfIjsfdy0ujagYOIYPczKgD9l3FsgTkAzKA== + +"@babel/plugin-proposal-async-generator-functions@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.2.0.tgz#b289b306669dce4ad20b0252889a15768c9d417e" + integrity sha512-+Dfo/SCQqrwx48ptLVGLdE39YtWRuKc/Y9I5Fy0P1DDBB9lsAHpjcEJQt+4IifuSOSTLBKJObJqMvaO1pIE8LQ== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-remap-async-to-generator" "^7.1.0" + "@babel/plugin-syntax-async-generators" "^7.2.0" + +"@babel/plugin-proposal-class-properties@7.3.0": + version "7.3.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.3.0.tgz#272636bc0fa19a0bc46e601ec78136a173ea36cd" + integrity sha512-wNHxLkEKTQ2ay0tnsam2z7fGZUi+05ziDJflEt3AZTP3oXLKHJp9HqhfroB/vdMvt3sda9fAbq7FsG8QPDrZBg== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.3.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-proposal-class-properties@^7.3.4": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.5.0.tgz#5bc6a0537d286fcb4fd4e89975adbca334987007" + integrity sha512-9L/JfPCT+kShiiTTzcnBJ8cOwdKVmlC1RcCf9F0F9tERVrM4iWtWnXtjWCRqNm2la2BxO1MPArWNsU9zsSJWSQ== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.5.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-proposal-decorators@7.3.0": + version "7.3.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.3.0.tgz#637ba075fa780b1f75d08186e8fb4357d03a72a7" + integrity sha512-3W/oCUmsO43FmZIqermmq6TKaRSYhmh/vybPfVFwQWdSb8xwki38uAIvknCRzuyHRuYfCYmJzL9or1v0AffPjg== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.3.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-decorators" "^7.2.0" + +"@babel/plugin-proposal-dynamic-import@^7.5.0": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.5.0.tgz#e532202db4838723691b10a67b8ce509e397c506" + integrity sha512-x/iMjggsKTFHYC6g11PL7Qy58IK8H5zqfm9e6hu4z1iH2IRyAp9u9dL80zA6R76yFovETFLKz2VJIC2iIPBuFw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-dynamic-import" "^7.2.0" + +"@babel/plugin-proposal-json-strings@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.2.0.tgz#568ecc446c6148ae6b267f02551130891e29f317" + integrity sha512-MAFV1CA/YVmYwZG0fBQyXhmj0BHCB5egZHCKWIFVv/XCxAeVGIHfos3SwDck4LvCllENIAg7xMKOG5kH0dzyUg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-json-strings" "^7.2.0" + +"@babel/plugin-proposal-object-rest-spread@7.3.2": + version "7.3.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.3.2.tgz#6d1859882d4d778578e41f82cc5d7bf3d5daf6c1" + integrity sha512-DjeMS+J2+lpANkYLLO+m6GjoTMygYglKmRe6cDTbFv3L9i6mmiE8fe6B8MtCSLZpVXscD5kn7s6SgtHrDoBWoA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-object-rest-spread" "^7.2.0" + +"@babel/plugin-proposal-object-rest-spread@^7.3.1", "@babel/plugin-proposal-object-rest-spread@^7.5.4": + version "7.5.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.5.4.tgz#250de35d867ce8260a31b1fdac6c4fc1baa99331" + integrity sha512-KCx0z3y7y8ipZUMAEEJOyNi11lMb/FOPUjjB113tfowgw0c16EGYos7worCKBcUAh2oG+OBnoUhsnTSoLpV9uA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-object-rest-spread" "^7.2.0" + +"@babel/plugin-proposal-optional-catch-binding@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.2.0.tgz#135d81edb68a081e55e56ec48541ece8065c38f5" + integrity sha512-mgYj3jCcxug6KUcX4OBoOJz3CMrwRfQELPQ5560F70YQUBZB7uac9fqaWamKR1iWUzGiK2t0ygzjTScZnVz75g== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-optional-catch-binding" "^7.2.0" + +"@babel/plugin-proposal-unicode-property-regex@^7.2.0", "@babel/plugin-proposal-unicode-property-regex@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.4.4.tgz#501ffd9826c0b91da22690720722ac7cb1ca9c78" + integrity sha512-j1NwnOqMG9mFUOH58JTFsA/+ZYzQLUZ/drqWUqxCYLGeu2JFZL8YrNC9hBxKmWtAuOCHPcRpgv7fhap09Fb4kA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-regex" "^7.4.4" + regexpu-core "^4.5.4" + +"@babel/plugin-syntax-async-generators@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.2.0.tgz#69e1f0db34c6f5a0cf7e2b3323bf159a76c8cb7f" + integrity sha512-1ZrIRBv2t0GSlcwVoQ6VgSLpLgiN/FVQUzt9znxo7v2Ov4jJrs8RY8tv0wvDmFN3qIdMKWrmMMW6yZ0G19MfGg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-syntax-decorators@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.2.0.tgz#c50b1b957dcc69e4b1127b65e1c33eef61570c1b" + integrity sha512-38QdqVoXdHUQfTpZo3rQwqQdWtCn5tMv4uV6r2RMfTqNBuv4ZBhz79SfaQWKTVmxHjeFv/DnXVC/+agHCklYWA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-syntax-dynamic-import@7.2.0", "@babel/plugin-syntax-dynamic-import@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.2.0.tgz#69c159ffaf4998122161ad8ebc5e6d1f55df8612" + integrity sha512-mVxuJ0YroI/h/tbFTPGZR8cv6ai+STMKNBq0f8hFxsxWjl94qqhsb+wXbpNMDPU3cfR1TIsVFzU3nXyZMqyK4w== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-syntax-flow@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.2.0.tgz#a765f061f803bc48f240c26f8747faf97c26bf7c" + integrity sha512-r6YMuZDWLtLlu0kqIim5o/3TNRAlWb073HwT3e2nKf9I8IIvOggPrnILYPsrrKilmn/mYEMCf/Z07w3yQJF6dg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-syntax-json-strings@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.2.0.tgz#72bd13f6ffe1d25938129d2a186b11fd62951470" + integrity sha512-5UGYnMSLRE1dqqZwug+1LISpA403HzlSfsg6P9VXU6TBjcSHeNlw4DxDx7LgpF+iKZoOG/+uzqoRHTdcUpiZNg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-syntax-jsx@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.2.0.tgz#0b85a3b4bc7cdf4cc4b8bf236335b907ca22e7c7" + integrity sha512-VyN4QANJkRW6lDBmENzRszvZf3/4AXaj9YR7GwrWeeN9tEBPuXbmDYVU9bYBN0D70zCWVwUy0HWq2553VCb6Hw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.2.0.tgz#3b7a3e733510c57e820b9142a6579ac8b0dfad2e" + integrity sha512-t0JKGgqk2We+9may3t0xDdmneaXmyxq0xieYcKHxIsrJO64n1OiMWNUtc5gQK1PA0NpdCRrtZp4z+IUaKugrSA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-syntax-optional-catch-binding@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.2.0.tgz#a94013d6eda8908dfe6a477e7f9eda85656ecf5c" + integrity sha512-bDe4xKNhb0LI7IvZHiA13kff0KEfaGX/Hv4lMA9+7TEc63hMNvfKo6ZFpXhKuEp+II/q35Gc4NoMeDZyaUbj9w== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-syntax-typescript@^7.2.0": + version "7.3.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.3.3.tgz#a7cc3f66119a9f7ebe2de5383cce193473d65991" + integrity sha512-dGwbSMA1YhVS8+31CnPR7LB4pcbrzcV99wQzby4uAfrkZPYZlQ7ImwdpzLqi6Z6IL02b8IAL379CaMwo0x5Lag== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-arrow-functions@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.2.0.tgz#9aeafbe4d6ffc6563bf8f8372091628f00779550" + integrity sha512-ER77Cax1+8/8jCB9fo4Ud161OZzWN5qawi4GusDuRLcDbDG+bIGYY20zb2dfAFdTRGzrfq2xZPvF0R64EHnimg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-async-to-generator@^7.2.0", "@babel/plugin-transform-async-to-generator@^7.5.0": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.5.0.tgz#89a3848a0166623b5bc481164b5936ab947e887e" + integrity sha512-mqvkzwIGkq0bEF1zLRRiTdjfomZJDV33AH3oQzHVGkI2VzEmXLpKKOBvEVaFZBJdN0XTyH38s9j/Kiqr68dggg== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-remap-async-to-generator" "^7.1.0" + +"@babel/plugin-transform-block-scoped-functions@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.2.0.tgz#5d3cc11e8d5ddd752aa64c9148d0db6cb79fd190" + integrity sha512-ntQPR6q1/NKuphly49+QiQiTN0O63uOwjdD6dhIjSWBI5xlrbUFh720TIpzBhpnrLfv2tNH/BXvLIab1+BAI0w== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-block-scoping@^7.2.0", "@babel/plugin-transform-block-scoping@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.4.4.tgz#c13279fabf6b916661531841a23c4b7dae29646d" + integrity sha512-jkTUyWZcTrwxu5DD4rWz6rDB5Cjdmgz6z7M7RLXOJyCUkFBawssDGcGh8M/0FTSB87avyJI1HsTwUXp9nKA1PA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + lodash "^4.17.11" + +"@babel/plugin-transform-classes@7.2.2": + version "7.2.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.2.2.tgz#6c90542f210ee975aa2aa8c8b5af7fa73a126953" + integrity sha512-gEZvgTy1VtcDOaQty1l10T3jQmJKlNVxLDCs+3rCVPr6nMkODLELxViq5X9l+rfxbie3XrfrMCYYY6eX3aOcOQ== + dependencies: + "@babel/helper-annotate-as-pure" "^7.0.0" + "@babel/helper-define-map" "^7.1.0" + "@babel/helper-function-name" "^7.1.0" + "@babel/helper-optimise-call-expression" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-replace-supers" "^7.1.0" + "@babel/helper-split-export-declaration" "^7.0.0" + globals "^11.1.0" + +"@babel/plugin-transform-classes@^7.2.0", "@babel/plugin-transform-classes@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.4.4.tgz#0ce4094cdafd709721076d3b9c38ad31ca715eb6" + integrity sha512-/e44eFLImEGIpL9qPxSRat13I5QNRgBLu2hOQJCF7VLy/otSM/sypV1+XaIw5+502RX/+6YaSAPmldk+nhHDPw== + dependencies: + "@babel/helper-annotate-as-pure" "^7.0.0" + "@babel/helper-define-map" "^7.4.4" + "@babel/helper-function-name" "^7.1.0" + "@babel/helper-optimise-call-expression" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-replace-supers" "^7.4.4" + "@babel/helper-split-export-declaration" "^7.4.4" + globals "^11.1.0" + +"@babel/plugin-transform-computed-properties@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.2.0.tgz#83a7df6a658865b1c8f641d510c6f3af220216da" + integrity sha512-kP/drqTxY6Xt3NNpKiMomfgkNn4o7+vKxK2DDKcBG9sHj51vHqMBGy8wbDS/J4lMxnqs153/T3+DmCEAkC5cpA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-destructuring@7.3.2": + version "7.3.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.3.2.tgz#f2f5520be055ba1c38c41c0e094d8a461dd78f2d" + integrity sha512-Lrj/u53Ufqxl/sGxyjsJ2XNtNuEjDyjpqdhMNh5aZ+XFOdThL46KBj27Uem4ggoezSYBxKWAil6Hu8HtwqesYw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-destructuring@^7.2.0", "@babel/plugin-transform-destructuring@^7.5.0": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.5.0.tgz#f6c09fdfe3f94516ff074fe877db7bc9ef05855a" + integrity sha512-YbYgbd3TryYYLGyC7ZR+Tq8H/+bCmwoaxHfJHupom5ECstzbRLTch6gOQbhEY9Z4hiCNHEURgq06ykFv9JZ/QQ== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-dotall-regex@^7.2.0", "@babel/plugin-transform-dotall-regex@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.4.4.tgz#361a148bc951444312c69446d76ed1ea8e4450c3" + integrity sha512-P05YEhRc2h53lZDjRPk/OektxCVevFzZs2Gfjd545Wde3k+yFDbXORgl2e0xpbq8mLcKJ7Idss4fAg0zORN/zg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-regex" "^7.4.4" + regexpu-core "^4.5.4" + +"@babel/plugin-transform-duplicate-keys@^7.2.0", "@babel/plugin-transform-duplicate-keys@^7.5.0": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.5.0.tgz#c5dbf5106bf84cdf691222c0974c12b1df931853" + integrity sha512-igcziksHizyQPlX9gfSjHkE2wmoCH3evvD2qR5w29/Dk0SMKE/eOI7f1HhBdNhR/zxJDqrgpoDTq5YSLH/XMsQ== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-exponentiation-operator@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.2.0.tgz#a63868289e5b4007f7054d46491af51435766008" + integrity sha512-umh4hR6N7mu4Elq9GG8TOu9M0bakvlsREEC+ialrQN6ABS4oDQ69qJv1VtR3uxlKMCQMCvzk7vr17RHKcjx68A== + dependencies: + "@babel/helper-builder-binary-assignment-operator-visitor" "^7.1.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-flow-strip-types@7.2.3": + version "7.2.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.2.3.tgz#e3ac2a594948454e7431c7db33e1d02d51b5cd69" + integrity sha512-xnt7UIk9GYZRitqCnsVMjQK1O2eKZwFB3CvvHjf5SGx6K6vr/MScCKQDnf1DxRaj501e3pXjti+inbSXX2ZUoQ== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-flow" "^7.2.0" + +"@babel/plugin-transform-for-of@^7.2.0", "@babel/plugin-transform-for-of@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.4.4.tgz#0267fc735e24c808ba173866c6c4d1440fc3c556" + integrity sha512-9T/5Dlr14Z9TIEXLXkt8T1DU7F24cbhwhMNUziN3hB1AXoZcdzPcTiKGRn/6iOymDqtTKWnr/BtRKN9JwbKtdQ== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-function-name@^7.2.0", "@babel/plugin-transform-function-name@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.4.4.tgz#e1436116abb0610c2259094848754ac5230922ad" + integrity sha512-iU9pv7U+2jC9ANQkKeNF6DrPy4GBa4NWQtl6dHB4Pb3izX2JOEvDTFarlNsBj/63ZEzNNIAMs3Qw4fNCcSOXJA== + dependencies: + "@babel/helper-function-name" "^7.1.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-literals@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.2.0.tgz#690353e81f9267dad4fd8cfd77eafa86aba53ea1" + integrity sha512-2ThDhm4lI4oV7fVQ6pNNK+sx+c/GM5/SaML0w/r4ZB7sAneD/piDJtwdKlNckXeyGK7wlwg2E2w33C/Hh+VFCg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-member-expression-literals@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.2.0.tgz#fa10aa5c58a2cb6afcf2c9ffa8cb4d8b3d489a2d" + integrity sha512-HiU3zKkSU6scTidmnFJ0bMX8hz5ixC93b4MHMiYebmk2lUVNGOboPsqQvx5LzooihijUoLR/v7Nc1rbBtnc7FA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-modules-amd@^7.2.0", "@babel/plugin-transform-modules-amd@^7.5.0": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.5.0.tgz#ef00435d46da0a5961aa728a1d2ecff063e4fb91" + integrity sha512-n20UsQMKnWrltocZZm24cRURxQnWIvsABPJlw/fvoy9c6AgHZzoelAIzajDHAQrDpuKFFPPcFGd7ChsYuIUMpg== + dependencies: + "@babel/helper-module-transforms" "^7.1.0" + "@babel/helper-plugin-utils" "^7.0.0" + babel-plugin-dynamic-import-node "^2.3.0" + +"@babel/plugin-transform-modules-commonjs@^7.2.0", "@babel/plugin-transform-modules-commonjs@^7.5.0": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.5.0.tgz#425127e6045231360858eeaa47a71d75eded7a74" + integrity sha512-xmHq0B+ytyrWJvQTc5OWAC4ii6Dhr0s22STOoydokG51JjWhyYo5mRPXoi+ZmtHQhZZwuXNN+GG5jy5UZZJxIQ== + dependencies: + "@babel/helper-module-transforms" "^7.4.4" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-simple-access" "^7.1.0" + babel-plugin-dynamic-import-node "^2.3.0" + +"@babel/plugin-transform-modules-systemjs@^7.2.0", "@babel/plugin-transform-modules-systemjs@^7.5.0": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.5.0.tgz#e75266a13ef94202db2a0620977756f51d52d249" + integrity sha512-Q2m56tyoQWmuNGxEtUyeEkm6qJYFqs4c+XyXH5RAuYxObRNz9Zgj/1g2GMnjYp2EUyEy7YTrxliGCXzecl/vJg== + dependencies: + "@babel/helper-hoist-variables" "^7.4.4" + "@babel/helper-plugin-utils" "^7.0.0" + babel-plugin-dynamic-import-node "^2.3.0" + +"@babel/plugin-transform-modules-umd@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.2.0.tgz#7678ce75169f0877b8eb2235538c074268dd01ae" + integrity sha512-BV3bw6MyUH1iIsGhXlOK6sXhmSarZjtJ/vMiD9dNmpY8QXFFQTj+6v92pcfy1iqa8DeAfJFwoxcrS/TUZda6sw== + dependencies: + "@babel/helper-module-transforms" "^7.1.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-named-capturing-groups-regex@^7.3.0", "@babel/plugin-transform-named-capturing-groups-regex@^7.4.5": + version "7.4.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.4.5.tgz#9d269fd28a370258199b4294736813a60bbdd106" + integrity sha512-z7+2IsWafTBbjNsOxU/Iv5CvTJlr5w4+HGu1HovKYTtgJ362f7kBcQglkfmlspKKZ3bgrbSGvLfNx++ZJgCWsg== + dependencies: + regexp-tree "^0.1.6" + +"@babel/plugin-transform-new-target@^7.0.0", "@babel/plugin-transform-new-target@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.4.4.tgz#18d120438b0cc9ee95a47f2c72bc9768fbed60a5" + integrity sha512-r1z3T2DNGQwwe2vPGZMBNjioT2scgWzK9BCnDEh+46z8EEwXBq24uRzd65I7pjtugzPSj921aM15RpESgzsSuA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-object-super@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.2.0.tgz#b35d4c10f56bab5d650047dad0f1d8e8814b6598" + integrity sha512-VMyhPYZISFZAqAPVkiYb7dUe2AsVi2/wCT5+wZdsNO31FojQJa9ns40hzZ6U9f50Jlq4w6qwzdBB2uwqZ00ebg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-replace-supers" "^7.1.0" + +"@babel/plugin-transform-parameters@^7.2.0", "@babel/plugin-transform-parameters@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.4.4.tgz#7556cf03f318bd2719fe4c922d2d808be5571e16" + integrity sha512-oMh5DUO1V63nZcu/ZVLQFqiihBGo4OpxJxR1otF50GMeCLiRx5nUdtokd+u9SuVJrvvuIh9OosRFPP4pIPnwmw== + dependencies: + "@babel/helper-call-delegate" "^7.4.4" + "@babel/helper-get-function-arity" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-property-literals@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.2.0.tgz#03e33f653f5b25c4eb572c98b9485055b389e905" + integrity sha512-9q7Dbk4RhgcLp8ebduOpCbtjh7C0itoLYHXd9ueASKAG/is5PQtMR5VJGka9NKqGhYEGn5ITahd4h9QeBMylWQ== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-react-constant-elements@7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-constant-elements/-/plugin-transform-react-constant-elements-7.2.0.tgz#ed602dc2d8bff2f0cb1a5ce29263dbdec40779f7" + integrity sha512-YYQFg6giRFMsZPKUM9v+VcHOdfSQdz9jHCx3akAi3UYgyjndmdYGSXylQ/V+HswQt4fL8IklchD9HTsaOCrWQQ== + dependencies: + "@babel/helper-annotate-as-pure" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-react-display-name@7.2.0", "@babel/plugin-transform-react-display-name@^7.0.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.2.0.tgz#ebfaed87834ce8dc4279609a4f0c324c156e3eb0" + integrity sha512-Htf/tPa5haZvRMiNSQSFifK12gtr/8vwfr+A9y69uF0QcU77AVu4K7MiHEkTxF7lQoHOL0F9ErqgfNEAKgXj7A== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-react-jsx-self@^7.0.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.2.0.tgz#461e21ad9478f1031dd5e276108d027f1b5240ba" + integrity sha512-v6S5L/myicZEy+jr6ielB0OR8h+EH/1QFx/YJ7c7Ua+7lqsjj/vW6fD5FR9hB/6y7mGbfT4vAURn3xqBxsUcdg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-jsx" "^7.2.0" + +"@babel/plugin-transform-react-jsx-source@^7.0.0": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.5.0.tgz#583b10c49cf057e237085bcbd8cc960bd83bd96b" + integrity sha512-58Q+Jsy4IDCZx7kqEZuSDdam/1oW8OdDX8f+Loo6xyxdfg1yF0GE2XNJQSTZCaMol93+FBzpWiPEwtbMloAcPg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-jsx" "^7.2.0" + +"@babel/plugin-transform-react-jsx@^7.0.0": + version "7.3.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.3.0.tgz#f2cab99026631c767e2745a5368b331cfe8f5290" + integrity sha512-a/+aRb7R06WcKvQLOu4/TpjKOdvVEKRLWFpKcNuHhiREPgGRB4TQJxq07+EZLS8LFVYpfq1a5lDUnuMdcCpBKg== + dependencies: + "@babel/helper-builder-react-jsx" "^7.3.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-jsx" "^7.2.0" + +"@babel/plugin-transform-regenerator@^7.0.0", "@babel/plugin-transform-regenerator@^7.4.5": + version "7.4.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.4.5.tgz#629dc82512c55cee01341fb27bdfcb210354680f" + integrity sha512-gBKRh5qAaCWntnd09S8QC7r3auLCqq5DI6O0DlfoyDjslSBVqBibrMdsqO+Uhmx3+BlOmE/Kw1HFxmGbv0N9dA== + dependencies: + regenerator-transform "^0.14.0" + +"@babel/plugin-transform-reserved-words@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.2.0.tgz#4792af87c998a49367597d07fedf02636d2e1634" + integrity sha512-fz43fqW8E1tAB3DKF19/vxbpib1fuyCwSPE418ge5ZxILnBhWyhtPgz8eh1RCGGJlwvksHkyxMxh0eenFi+kFw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-runtime@7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.2.0.tgz#566bc43f7d0aedc880eaddbd29168d0f248966ea" + integrity sha512-jIgkljDdq4RYDnJyQsiWbdvGeei/0MOTtSHKO/rfbd/mXBxNpdlulMx49L0HQ4pug1fXannxoqCI+fYSle9eSw== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + resolve "^1.8.1" + semver "^5.5.1" + +"@babel/plugin-transform-shorthand-properties@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.2.0.tgz#6333aee2f8d6ee7e28615457298934a3b46198f0" + integrity sha512-QP4eUM83ha9zmYtpbnyjTLAGKQritA5XW/iG9cjtuOI8s1RuL/3V6a3DeSHfKutJQ+ayUfeZJPcnCYEQzaPQqg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-spread@^7.2.0": + version "7.2.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.2.2.tgz#3103a9abe22f742b6d406ecd3cd49b774919b406" + integrity sha512-KWfky/58vubwtS0hLqEnrWJjsMGaOeSBn90Ezn5Jeg9Z8KKHmELbP1yGylMlm5N6TPKeY9A2+UaSYLdxahg01w== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-sticky-regex@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.2.0.tgz#a1e454b5995560a9c1e0d537dfc15061fd2687e1" + integrity sha512-KKYCoGaRAf+ckH8gEL3JHUaFVyNHKe3ASNsZ+AlktgHevvxGigoIttrEJb8iKN03Q7Eazlv1s6cx2B2cQ3Jabw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-regex" "^7.0.0" + +"@babel/plugin-transform-template-literals@^7.2.0", "@babel/plugin-transform-template-literals@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.4.4.tgz#9d28fea7bbce637fb7612a0750989d8321d4bcb0" + integrity sha512-mQrEC4TWkhLN0z8ygIvEL9ZEToPhG5K7KDW3pzGqOfIGZ28Jb0POUkeWcoz8HnHvhFy6dwAT1j8OzqN8s804+g== + dependencies: + "@babel/helper-annotate-as-pure" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-typeof-symbol@^7.2.0": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.2.0.tgz#117d2bcec2fbf64b4b59d1f9819894682d29f2b2" + integrity sha512-2LNhETWYxiYysBtrBTqL8+La0jIoQQnIScUJc74OYvUGRmkskNY4EzLCnjHBzdmb38wqtTaixpo1NctEcvMDZw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + +"@babel/plugin-transform-typescript@^7.1.0": + version "7.5.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.5.2.tgz#ea7da440d29b8ccdb1bd02e18f6cfdc7ce6c16f5" + integrity sha512-r4zJOMbKY5puETm8+cIpaa0RQZG/sSASW1u0pj8qYklcERgVIbxVbP2wyJA7zI1//h7lEagQmXi9IL9iI5rfsA== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.5.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-syntax-typescript" "^7.2.0" + +"@babel/plugin-transform-unicode-regex@^7.2.0", "@babel/plugin-transform-unicode-regex@^7.4.4": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.4.4.tgz#ab4634bb4f14d36728bf5978322b35587787970f" + integrity sha512-il+/XdNw01i93+M9J9u4T7/e/Ue/vWfNZE4IRUQjplu2Mqb/AFTDimkw2tdEdSH50wuQXZAbXSql0UphQke+vA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/helper-regex" "^7.4.4" + regexpu-core "^4.5.4" + +"@babel/preset-env@7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.3.1.tgz#389e8ca6b17ae67aaf9a2111665030be923515db" + integrity sha512-FHKrD6Dxf30e8xgHQO0zJZpUPfVZg+Xwgz5/RdSWCbza9QLNk4Qbp40ctRoqDxml3O8RMzB1DU55SXeDG6PqHQ== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-proposal-async-generator-functions" "^7.2.0" + "@babel/plugin-proposal-json-strings" "^7.2.0" + "@babel/plugin-proposal-object-rest-spread" "^7.3.1" + "@babel/plugin-proposal-optional-catch-binding" "^7.2.0" + "@babel/plugin-proposal-unicode-property-regex" "^7.2.0" + "@babel/plugin-syntax-async-generators" "^7.2.0" + "@babel/plugin-syntax-json-strings" "^7.2.0" + "@babel/plugin-syntax-object-rest-spread" "^7.2.0" + "@babel/plugin-syntax-optional-catch-binding" "^7.2.0" + "@babel/plugin-transform-arrow-functions" "^7.2.0" + "@babel/plugin-transform-async-to-generator" "^7.2.0" + "@babel/plugin-transform-block-scoped-functions" "^7.2.0" + "@babel/plugin-transform-block-scoping" "^7.2.0" + "@babel/plugin-transform-classes" "^7.2.0" + "@babel/plugin-transform-computed-properties" "^7.2.0" + "@babel/plugin-transform-destructuring" "^7.2.0" + "@babel/plugin-transform-dotall-regex" "^7.2.0" + "@babel/plugin-transform-duplicate-keys" "^7.2.0" + "@babel/plugin-transform-exponentiation-operator" "^7.2.0" + "@babel/plugin-transform-for-of" "^7.2.0" + "@babel/plugin-transform-function-name" "^7.2.0" + "@babel/plugin-transform-literals" "^7.2.0" + "@babel/plugin-transform-modules-amd" "^7.2.0" + "@babel/plugin-transform-modules-commonjs" "^7.2.0" + "@babel/plugin-transform-modules-systemjs" "^7.2.0" + "@babel/plugin-transform-modules-umd" "^7.2.0" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.3.0" + "@babel/plugin-transform-new-target" "^7.0.0" + "@babel/plugin-transform-object-super" "^7.2.0" + "@babel/plugin-transform-parameters" "^7.2.0" + "@babel/plugin-transform-regenerator" "^7.0.0" + "@babel/plugin-transform-shorthand-properties" "^7.2.0" + "@babel/plugin-transform-spread" "^7.2.0" + "@babel/plugin-transform-sticky-regex" "^7.2.0" + "@babel/plugin-transform-template-literals" "^7.2.0" + "@babel/plugin-transform-typeof-symbol" "^7.2.0" + "@babel/plugin-transform-unicode-regex" "^7.2.0" + browserslist "^4.3.4" + invariant "^2.2.2" + js-levenshtein "^1.1.3" + semver "^5.3.0" + +"@babel/preset-env@^7.3.1": + version "7.5.4" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.5.4.tgz#64bc15041a3cbb0798930319917e70fcca57713d" + integrity sha512-hFnFnouyRNiH1rL8YkX1ANCNAUVC8Djwdqfev8i1415tnAG+7hlA5zhZ0Q/3Q5gkop4HioIPbCEWAalqcbxRoQ== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-proposal-async-generator-functions" "^7.2.0" + "@babel/plugin-proposal-dynamic-import" "^7.5.0" + "@babel/plugin-proposal-json-strings" "^7.2.0" + "@babel/plugin-proposal-object-rest-spread" "^7.5.4" + "@babel/plugin-proposal-optional-catch-binding" "^7.2.0" + "@babel/plugin-proposal-unicode-property-regex" "^7.4.4" + "@babel/plugin-syntax-async-generators" "^7.2.0" + "@babel/plugin-syntax-dynamic-import" "^7.2.0" + "@babel/plugin-syntax-json-strings" "^7.2.0" + "@babel/plugin-syntax-object-rest-spread" "^7.2.0" + "@babel/plugin-syntax-optional-catch-binding" "^7.2.0" + "@babel/plugin-transform-arrow-functions" "^7.2.0" + "@babel/plugin-transform-async-to-generator" "^7.5.0" + "@babel/plugin-transform-block-scoped-functions" "^7.2.0" + "@babel/plugin-transform-block-scoping" "^7.4.4" + "@babel/plugin-transform-classes" "^7.4.4" + "@babel/plugin-transform-computed-properties" "^7.2.0" + "@babel/plugin-transform-destructuring" "^7.5.0" + "@babel/plugin-transform-dotall-regex" "^7.4.4" + "@babel/plugin-transform-duplicate-keys" "^7.5.0" + "@babel/plugin-transform-exponentiation-operator" "^7.2.0" + "@babel/plugin-transform-for-of" "^7.4.4" + "@babel/plugin-transform-function-name" "^7.4.4" + "@babel/plugin-transform-literals" "^7.2.0" + "@babel/plugin-transform-member-expression-literals" "^7.2.0" + "@babel/plugin-transform-modules-amd" "^7.5.0" + "@babel/plugin-transform-modules-commonjs" "^7.5.0" + "@babel/plugin-transform-modules-systemjs" "^7.5.0" + "@babel/plugin-transform-modules-umd" "^7.2.0" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.4.5" + "@babel/plugin-transform-new-target" "^7.4.4" + "@babel/plugin-transform-object-super" "^7.2.0" + "@babel/plugin-transform-parameters" "^7.4.4" + "@babel/plugin-transform-property-literals" "^7.2.0" + "@babel/plugin-transform-regenerator" "^7.4.5" + "@babel/plugin-transform-reserved-words" "^7.2.0" + "@babel/plugin-transform-shorthand-properties" "^7.2.0" + "@babel/plugin-transform-spread" "^7.2.0" + "@babel/plugin-transform-sticky-regex" "^7.2.0" + "@babel/plugin-transform-template-literals" "^7.4.4" + "@babel/plugin-transform-typeof-symbol" "^7.2.0" + "@babel/plugin-transform-unicode-regex" "^7.4.4" + "@babel/types" "^7.5.0" + browserslist "^4.6.0" + core-js-compat "^3.1.1" + invariant "^2.2.2" + js-levenshtein "^1.1.3" + semver "^5.5.0" + +"@babel/preset-react@7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/preset-react/-/preset-react-7.0.0.tgz#e86b4b3d99433c7b3e9e91747e2653958bc6b3c0" + integrity sha512-oayxyPS4Zj+hF6Et11BwuBkmpgT/zMxyuZgFrMeZID6Hdh3dGlk4sHCAhdBCpuCKW2ppBfl2uCCetlrUIJRY3w== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-transform-react-display-name" "^7.0.0" + "@babel/plugin-transform-react-jsx" "^7.0.0" + "@babel/plugin-transform-react-jsx-self" "^7.0.0" + "@babel/plugin-transform-react-jsx-source" "^7.0.0" + +"@babel/preset-typescript@7.1.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@babel/preset-typescript/-/preset-typescript-7.1.0.tgz#49ad6e2084ff0bfb5f1f7fb3b5e76c434d442c7f" + integrity sha512-LYveByuF9AOM8WrsNne5+N79k1YxjNB6gmpCQsnuSBAcV8QUeB+ZUxQzL7Rz7HksPbahymKkq2qBR+o36ggFZA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-transform-typescript" "^7.1.0" + +"@babel/runtime@7.3.1": + version "7.3.1" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.3.1.tgz#574b03e8e8a9898eaf4a872a92ea20b7846f6f2a" + integrity sha512-7jGW8ppV0ant637pIqAcFfQDDH1orEPGJb8aXfUozuCU3QqX7rX4DA8iwrbPrR1hcH0FTTHz47yQnk+bl5xHQA== + dependencies: + regenerator-runtime "^0.12.0" + +"@babel/runtime@^7.4.5": + version "7.5.4" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.5.4.tgz#cb7d1ad7c6d65676e66b47186577930465b5271b" + integrity sha512-Na84uwyImZZc3FKf4aUF1tysApzwf3p2yuFBIyBfbzT5glzKTdvYI4KVW4kcgjrzoGUjC7w3YyCHcJKaRxsr2Q== + dependencies: + regenerator-runtime "^0.13.2" + +"@babel/template@^7.1.0", "@babel/template@^7.4.0", "@babel/template@^7.4.4", "@babel/template@^7.6.0": + version "7.6.0" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.6.0.tgz#7f0159c7f5012230dad64cca42ec9bdb5c9536e6" + integrity sha512-5AEH2EXD8euCk446b7edmgFdub/qfH1SN6Nii3+fyXP807QRx9Q73A2N5hNwRRslC2H9sNzaFhsPubkS4L8oNQ== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/parser" "^7.6.0" + "@babel/types" "^7.6.0" + +"@babel/template@^7.2.2": + version "7.4.4" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.4.4.tgz#f4b88d1225689a08f5bc3a17483545be9e4ed237" + integrity sha512-CiGzLN9KgAvgZsnivND7rkA+AeJ9JB0ciPOD4U59GKbQP2iQl+olF1l76kJOupqidozfZ32ghwBEJDhnk9MEcw== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/parser" "^7.4.4" + "@babel/types" "^7.4.4" + +"@babel/traverse@^7.1.0", "@babel/traverse@^7.4.3", "@babel/traverse@^7.5.0", "@babel/traverse@^7.6.0": + version "7.6.0" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.6.0.tgz#389391d510f79be7ce2ddd6717be66d3fed4b516" + integrity sha512-93t52SaOBgml/xY74lsmt7xOR4ufYvhb5c5qiM6lu4J/dWGMAfAh6eKw4PjLes6DI6nQgearoxnFJk60YchpvQ== + dependencies: + "@babel/code-frame" "^7.5.5" + "@babel/generator" "^7.6.0" + "@babel/helper-function-name" "^7.1.0" + "@babel/helper-split-export-declaration" "^7.4.4" + "@babel/parser" "^7.6.0" + "@babel/types" "^7.6.0" + debug "^4.1.0" + globals "^11.1.0" + lodash "^4.17.13" + +"@babel/traverse@^7.2.2", "@babel/traverse@^7.4.4": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.5.0.tgz#4216d6586854ef5c3c4592dab56ec7eb78485485" + integrity sha512-SnA9aLbyOCcnnbQEGwdfBggnc142h/rbqqsXcaATj2hZcegCl903pUD/lfpsNBlBSuWow/YDfRyJuWi2EPR5cg== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/generator" "^7.5.0" + "@babel/helper-function-name" "^7.1.0" + "@babel/helper-split-export-declaration" "^7.4.4" + "@babel/parser" "^7.5.0" + "@babel/types" "^7.5.0" + debug "^4.1.0" + globals "^11.1.0" + lodash "^4.17.11" + +"@babel/types@^7.0.0", "@babel/types@^7.3.0", "@babel/types@^7.4.0", "@babel/types@^7.4.4", "@babel/types@^7.5.0", "@babel/types@^7.6.0": + version "7.6.1" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.6.1.tgz#53abf3308add3ac2a2884d539151c57c4b3ac648" + integrity sha512-X7gdiuaCmA0uRjCmRtYJNAVCc/q+5xSgsfKJHqMN4iNLILX39677fJE1O40arPMh0TTtS9ItH67yre6c7k6t0g== + dependencies: + esutils "^2.0.2" + lodash "^4.17.13" + to-fast-properties "^2.0.0" + +"@babel/types@^7.2.0", "@babel/types@^7.2.2": + version "7.5.0" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.5.0.tgz#e47d43840c2e7f9105bc4d3a2c371b4d0c7832ab" + integrity sha512-UFpDVqRABKsW01bvw7/wSUe56uy6RXM5+VJibVVAybDGxEW25jdwiFJEf7ASvSaC7sN7rbE/l3cLp2izav+CtQ== + dependencies: + esutils "^2.0.2" + lodash "^4.17.11" + to-fast-properties "^2.0.0" + +"@cnakazawa/watch@^1.0.3": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.3.tgz#099139eaec7ebf07a27c1786a3ff64f39464d2ef" + integrity sha512-r5160ogAvGyHsal38Kux7YYtodEKOj89RGb28ht1jh3SJb08VwRwAKKJL0bGb04Zd/3r9FL3BFIc3bBidYffCA== + dependencies: + exec-sh "^0.3.2" + minimist "^1.2.0" + +"@jest/console@^24.7.1", "@jest/console@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-24.9.0.tgz#79b1bc06fb74a8cfb01cbdedf945584b1b9707f0" + integrity sha512-Zuj6b8TnKXi3q4ymac8EQfc3ea/uhLeCGThFqXeC8H9/raaH8ARPUTdId+XyGd03Z4In0/VjD2OYFcBF09fNLQ== + dependencies: + "@jest/source-map" "^24.9.0" + chalk "^2.0.1" + slash "^2.0.0" + +"@jest/core@^24.8.0", "@jest/core@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-24.9.0.tgz#2ceccd0b93181f9c4850e74f2a9ad43d351369c4" + integrity sha512-Fogg3s4wlAr1VX7q+rhV9RVnUv5tD7VuWfYy1+whMiWUrvl7U3QJSJyWcDio9Lq2prqYsZaeTv2Rz24pWGkJ2A== + dependencies: + "@jest/console" "^24.7.1" + "@jest/reporters" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + ansi-escapes "^3.0.0" + chalk "^2.0.1" + exit "^0.1.2" + graceful-fs "^4.1.15" + jest-changed-files "^24.9.0" + jest-config "^24.9.0" + jest-haste-map "^24.9.0" + jest-message-util "^24.9.0" + jest-regex-util "^24.3.0" + jest-resolve "^24.9.0" + jest-resolve-dependencies "^24.9.0" + jest-runner "^24.9.0" + jest-runtime "^24.9.0" + jest-snapshot "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" + jest-watcher "^24.9.0" + micromatch "^3.1.10" + p-each-series "^1.0.0" + realpath-native "^1.1.0" + rimraf "^2.5.4" + slash "^2.0.0" + strip-ansi "^5.0.0" + +"@jest/environment@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-24.9.0.tgz#21e3afa2d65c0586cbd6cbefe208bafade44ab18" + integrity sha512-5A1QluTPhvdIPFYnO3sZC3smkNeXPVELz7ikPbhUj0bQjB07EoE9qtLrem14ZUYWdVayYbsjVwIiL4WBIMV4aQ== + dependencies: + "@jest/fake-timers" "^24.9.0" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + jest-mock "^24.9.0" + +"@jest/fake-timers@^24.8.0", "@jest/fake-timers@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-24.9.0.tgz#ba3e6bf0eecd09a636049896434d306636540c93" + integrity sha512-eWQcNa2YSwzXWIMC5KufBh3oWRIijrQFROsIqt6v/NS9Io/gknw1jsAC9c+ih/RQX4A3O7SeWAhQeN0goKhT9A== + dependencies: + "@jest/types" "^24.9.0" + jest-message-util "^24.9.0" + jest-mock "^24.9.0" + +"@jest/reporters@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-24.9.0.tgz#86660eff8e2b9661d042a8e98a028b8d631a5b43" + integrity sha512-mu4X0yjaHrffOsWmVLzitKmmmWSQ3GGuefgNscUSWNiUNcEOSEQk9k3pERKEQVBb0Cnn88+UESIsZEMH3o88Gw== + dependencies: + "@jest/environment" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + chalk "^2.0.1" + exit "^0.1.2" + glob "^7.1.2" + istanbul-lib-coverage "^2.0.2" + istanbul-lib-instrument "^3.0.1" + istanbul-lib-report "^2.0.4" + istanbul-lib-source-maps "^3.0.1" + istanbul-reports "^2.2.6" + jest-haste-map "^24.9.0" + jest-resolve "^24.9.0" + jest-runtime "^24.9.0" + jest-util "^24.9.0" + jest-worker "^24.6.0" + node-notifier "^5.4.2" + slash "^2.0.0" + source-map "^0.6.0" + string-length "^2.0.0" + +"@jest/source-map@^24.3.0", "@jest/source-map@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-24.9.0.tgz#0e263a94430be4b41da683ccc1e6bffe2a191714" + integrity sha512-/Xw7xGlsZb4MJzNDgB7PW5crou5JqWiBQaz6xyPd3ArOg2nfn/PunV8+olXbbEZzNl591o5rWKE9BRDaFAuIBg== + dependencies: + callsites "^3.0.0" + graceful-fs "^4.1.15" + source-map "^0.6.0" + +"@jest/test-result@^24.8.0", "@jest/test-result@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-24.9.0.tgz#11796e8aa9dbf88ea025757b3152595ad06ba0ca" + integrity sha512-XEFrHbBonBJ8dGp2JmF8kP/nQI/ImPpygKHwQ/SY+es59Z3L5PI4Qb9TQQMAEeYsThG1xF0k6tmG0tIKATNiiA== + dependencies: + "@jest/console" "^24.9.0" + "@jest/types" "^24.9.0" + "@types/istanbul-lib-coverage" "^2.0.0" + +"@jest/test-sequencer@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-24.9.0.tgz#f8f334f35b625a4f2f355f2fe7e6036dad2e6b31" + integrity sha512-6qqsU4o0kW1dvA95qfNog8v8gkRN9ph6Lz7r96IvZpHdNipP2cBcb07J1Z45mz/VIS01OHJ3pY8T5fUY38tg4A== + dependencies: + "@jest/test-result" "^24.9.0" + jest-haste-map "^24.9.0" + jest-runner "^24.9.0" + jest-runtime "^24.9.0" + +"@jest/transform@^24.8.0", "@jest/transform@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-24.9.0.tgz#4ae2768b296553fadab09e9ec119543c90b16c56" + integrity sha512-TcQUmyNRxV94S0QpMOnZl0++6RMiqpbH/ZMccFB/amku6Uwvyb1cjYX7xkp5nGNkbX4QPH/FcB6q1HBTHynLmQ== + dependencies: + "@babel/core" "^7.1.0" + "@jest/types" "^24.9.0" + babel-plugin-istanbul "^5.1.0" + chalk "^2.0.1" + convert-source-map "^1.4.0" + fast-json-stable-stringify "^2.0.0" + graceful-fs "^4.1.15" + jest-haste-map "^24.9.0" + jest-regex-util "^24.9.0" + jest-util "^24.9.0" + micromatch "^3.1.10" + pirates "^4.0.1" + realpath-native "^1.1.0" + slash "^2.0.0" + source-map "^0.6.1" + write-file-atomic "2.4.1" + +"@jest/types@^24.8.0", "@jest/types@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-24.9.0.tgz#63cb26cb7500d069e5a389441a7c6ab5e909fc59" + integrity sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^1.1.1" + "@types/yargs" "^13.0.0" + +"@types/babel__core@^7.1.0": + version "7.1.3" + resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.3.tgz#e441ea7df63cd080dfcd02ab199e6d16a735fc30" + integrity sha512-8fBo0UR2CcwWxeX7WIIgJ7lXjasFxoYgRnFHUj+hRvKkpiBJbxhdAPTCY6/ZKM0uxANFVzt4yObSLuTiTnazDA== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + "@types/babel__generator" "*" + "@types/babel__template" "*" + "@types/babel__traverse" "*" + +"@types/babel__generator@*": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.0.2.tgz#d2112a6b21fad600d7674274293c85dce0cb47fc" + integrity sha512-NHcOfab3Zw4q5sEE2COkpfXjoE7o+PmqD9DQW4koUT3roNxwziUdXGnRndMat/LJNUtePwn1TlP4do3uoe3KZQ== + dependencies: + "@babel/types" "^7.0.0" + +"@types/babel__template@*": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.0.2.tgz#4ff63d6b52eddac1de7b975a5223ed32ecea9307" + integrity sha512-/K6zCpeW7Imzgab2bLkLEbz0+1JlFSrUMdw7KoIIu+IUdu51GWaBZpd3y1VXGVXzynvGa4DaIaxNZHiON3GXUg== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + +"@types/babel__traverse@*", "@types/babel__traverse@^7.0.6": + version "7.0.7" + resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.0.7.tgz#2496e9ff56196cc1429c72034e07eab6121b6f3f" + integrity sha512-CeBpmX1J8kWLcDEnI3Cl2Eo6RfbGvzUctA+CjZUhOKDFbLfcr7fc4usEqLNWetrlJd7RhAkyYe2czXop4fICpw== + dependencies: + "@babel/types" "^7.3.0" + +"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz#42995b446db9a48a11a07ec083499a860e9138ff" + integrity sha512-hRJD2ahnnpLgsj6KWMYSrmXkM3rm2Dl1qkx6IOFD5FnuNPXJIG5L0dhgKXCYTRMGzU4n0wImQ/xfmRc4POUFlg== + +"@types/istanbul-lib-report@*": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-1.1.1.tgz#e5471e7fa33c61358dd38426189c037a58433b8c" + integrity sha512-3BUTyMzbZa2DtDI2BkERNC6jJw2Mr2Y0oGI7mRxYNBPxppbtEK1F66u3bKwU2g+wxwWI7PAoRpJnOY1grJqzHg== + dependencies: + "@types/istanbul-lib-coverage" "*" + +"@types/istanbul-reports@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-1.1.1.tgz#7a8cbf6a406f36c8add871625b278eaf0b0d255a" + integrity sha512-UpYjBi8xefVChsCoBpKShdxTllC9pwISirfoZsUa2AAdQg/Jd2KQGtSbw+ya7GPo7x/wAPlH6JBhKhAsXUEZNA== + dependencies: + "@types/istanbul-lib-coverage" "*" + "@types/istanbul-lib-report" "*" + +"@types/jest-diff@*": + version "20.0.1" + resolved "https://registry.yarnpkg.com/@types/jest-diff/-/jest-diff-20.0.1.tgz#35cc15b9c4f30a18ef21852e255fdb02f6d59b89" + integrity sha512-yALhelO3i0hqZwhjtcr6dYyaLoCHbAMshwtj6cGxTvHZAKXHsYGdff6E8EPw3xLKY0ELUTQ69Q1rQiJENnccMA== + +"@types/jest@^24.0.11": + version "24.0.15" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.15.tgz#6c42d5af7fe3b44ffff7cc65de7bf741e8fa427f" + integrity sha512-MU1HIvWUme74stAoc3mgAi+aMlgKOudgEvQDIm1v4RkrDudBh1T+NFp5sftpBAdXdx1J0PbdpJ+M2EsSOi1djA== + dependencies: + "@types/jest-diff" "*" + +"@types/node@*": + version "12.6.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-12.6.2.tgz#a5ccec6abb6060d5f20d256fb03ed743e9774999" + integrity sha512-gojym4tX0FWeV2gsW4Xmzo5wxGjXGm550oVUII7f7G5o4BV6c7DBdiG1RRQd+y1bvqRyYtPfMK85UM95vsapqQ== + +"@types/stack-utils@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e" + integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw== + +"@types/yargs-parser@*": + version "13.1.0" + resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-13.1.0.tgz#c563aa192f39350a1d18da36c5a8da382bbd8228" + integrity sha512-gCubfBUZ6KxzoibJ+SCUc/57Ms1jz5NjHe4+dI2krNmU5zCPAphyLJYyTOg06ueIyfj+SaCUqmzun7ImlxDcKg== + +"@types/yargs@^13.0.0": + version "13.0.2" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-13.0.2.tgz#a64674fc0149574ecd90ba746e932b5a5f7b3653" + integrity sha512-lwwgizwk/bIIU+3ELORkyuOgDjCh7zuWDFqRtPPhhVgq9N1F7CvLNKg1TX4f2duwtKQ0p044Au9r1PLIXHrIzQ== + dependencies: + "@types/yargs-parser" "*" + +"@webassemblyjs/ast@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.8.5.tgz#51b1c5fe6576a34953bf4b253df9f0d490d9e359" + integrity sha512-aJMfngIZ65+t71C3y2nBBg5FFG0Okt9m0XEgWZ7Ywgn1oMAT8cNwx00Uv1cQyHtidq0Xn94R4TAywO+LCQ+ZAQ== + dependencies: + "@webassemblyjs/helper-module-context" "1.8.5" + "@webassemblyjs/helper-wasm-bytecode" "1.8.5" + "@webassemblyjs/wast-parser" "1.8.5" + +"@webassemblyjs/floating-point-hex-parser@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.8.5.tgz#1ba926a2923613edce496fd5b02e8ce8a5f49721" + integrity sha512-9p+79WHru1oqBh9ewP9zW95E3XAo+90oth7S5Re3eQnECGq59ly1Ri5tsIipKGpiStHsUYmY3zMLqtk3gTcOtQ== + +"@webassemblyjs/helper-api-error@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.8.5.tgz#c49dad22f645227c5edb610bdb9697f1aab721f7" + integrity sha512-Za/tnzsvnqdaSPOUXHyKJ2XI7PDX64kWtURyGiJJZKVEdFOsdKUCPTNEVFZq3zJ2R0G5wc2PZ5gvdTRFgm81zA== + +"@webassemblyjs/helper-buffer@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.8.5.tgz#fea93e429863dd5e4338555f42292385a653f204" + integrity sha512-Ri2R8nOS0U6G49Q86goFIPNgjyl6+oE1abW1pS84BuhP1Qcr5JqMwRFT3Ah3ADDDYGEgGs1iyb1DGX+kAi/c/Q== + +"@webassemblyjs/helper-code-frame@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.8.5.tgz#9a740ff48e3faa3022b1dff54423df9aa293c25e" + integrity sha512-VQAadSubZIhNpH46IR3yWO4kZZjMxN1opDrzePLdVKAZ+DFjkGD/rf4v1jap744uPVU6yjL/smZbRIIJTOUnKQ== + dependencies: + "@webassemblyjs/wast-printer" "1.8.5" + +"@webassemblyjs/helper-fsm@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-fsm/-/helper-fsm-1.8.5.tgz#ba0b7d3b3f7e4733da6059c9332275d860702452" + integrity sha512-kRuX/saORcg8se/ft6Q2UbRpZwP4y7YrWsLXPbbmtepKr22i8Z4O3V5QE9DbZK908dh5Xya4Un57SDIKwB9eow== + +"@webassemblyjs/helper-module-context@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-module-context/-/helper-module-context-1.8.5.tgz#def4b9927b0101dc8cbbd8d1edb5b7b9c82eb245" + integrity sha512-/O1B236mN7UNEU4t9X7Pj38i4VoU8CcMHyy3l2cV/kIF4U5KoHXDVqcDuOs1ltkac90IM4vZdHc52t1x8Yfs3g== + dependencies: + "@webassemblyjs/ast" "1.8.5" + mamacro "^0.0.3" + +"@webassemblyjs/helper-wasm-bytecode@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.8.5.tgz#537a750eddf5c1e932f3744206551c91c1b93e61" + integrity sha512-Cu4YMYG3Ddl72CbmpjU/wbP6SACcOPVbHN1dI4VJNJVgFwaKf1ppeFJrwydOG3NDHxVGuCfPlLZNyEdIYlQ6QQ== + +"@webassemblyjs/helper-wasm-section@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.8.5.tgz#74ca6a6bcbe19e50a3b6b462847e69503e6bfcbf" + integrity sha512-VV083zwR+VTrIWWtgIUpqfvVdK4ff38loRmrdDBgBT8ADXYsEZ5mPQ4Nde90N3UYatHdYoDIFb7oHzMncI02tA== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/helper-buffer" "1.8.5" + "@webassemblyjs/helper-wasm-bytecode" "1.8.5" + "@webassemblyjs/wasm-gen" "1.8.5" + +"@webassemblyjs/ieee754@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.8.5.tgz#712329dbef240f36bf57bd2f7b8fb9bf4154421e" + integrity sha512-aaCvQYrvKbY/n6wKHb/ylAJr27GglahUO89CcGXMItrOBqRarUMxWLJgxm9PJNuKULwN5n1csT9bYoMeZOGF3g== + dependencies: + "@xtuc/ieee754" "^1.2.0" + +"@webassemblyjs/leb128@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/leb128/-/leb128-1.8.5.tgz#044edeb34ea679f3e04cd4fd9824d5e35767ae10" + integrity sha512-plYUuUwleLIziknvlP8VpTgO4kqNaH57Y3JnNa6DLpu/sGcP6hbVdfdX5aHAV716pQBKrfuU26BJK29qY37J7A== + dependencies: + "@xtuc/long" "4.2.2" + +"@webassemblyjs/utf8@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.8.5.tgz#a8bf3b5d8ffe986c7c1e373ccbdc2a0915f0cedc" + integrity sha512-U7zgftmQriw37tfD934UNInokz6yTmn29inT2cAetAsaU9YeVCveWEwhKL1Mg4yS7q//NGdzy79nlXh3bT8Kjw== + +"@webassemblyjs/wasm-edit@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.8.5.tgz#962da12aa5acc1c131c81c4232991c82ce56e01a" + integrity sha512-A41EMy8MWw5yvqj7MQzkDjU29K7UJq1VrX2vWLzfpRHt3ISftOXqrtojn7nlPsZ9Ijhp5NwuODuycSvfAO/26Q== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/helper-buffer" "1.8.5" + "@webassemblyjs/helper-wasm-bytecode" "1.8.5" + "@webassemblyjs/helper-wasm-section" "1.8.5" + "@webassemblyjs/wasm-gen" "1.8.5" + "@webassemblyjs/wasm-opt" "1.8.5" + "@webassemblyjs/wasm-parser" "1.8.5" + "@webassemblyjs/wast-printer" "1.8.5" + +"@webassemblyjs/wasm-gen@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.8.5.tgz#54840766c2c1002eb64ed1abe720aded714f98bc" + integrity sha512-BCZBT0LURC0CXDzj5FXSc2FPTsxwp3nWcqXQdOZE4U7h7i8FqtFK5Egia6f9raQLpEKT1VL7zr4r3+QX6zArWg== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/helper-wasm-bytecode" "1.8.5" + "@webassemblyjs/ieee754" "1.8.5" + "@webassemblyjs/leb128" "1.8.5" + "@webassemblyjs/utf8" "1.8.5" + +"@webassemblyjs/wasm-opt@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.8.5.tgz#b24d9f6ba50394af1349f510afa8ffcb8a63d264" + integrity sha512-HKo2mO/Uh9A6ojzu7cjslGaHaUU14LdLbGEKqTR7PBKwT6LdPtLLh9fPY33rmr5wcOMrsWDbbdCHq4hQUdd37Q== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/helper-buffer" "1.8.5" + "@webassemblyjs/wasm-gen" "1.8.5" + "@webassemblyjs/wasm-parser" "1.8.5" + +"@webassemblyjs/wasm-parser@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.8.5.tgz#21576f0ec88b91427357b8536383668ef7c66b8d" + integrity sha512-pi0SYE9T6tfcMkthwcgCpL0cM9nRYr6/6fjgDtL6q/ZqKHdMWvxitRi5JcZ7RI4SNJJYnYNaWy5UUrHQy998lw== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/helper-api-error" "1.8.5" + "@webassemblyjs/helper-wasm-bytecode" "1.8.5" + "@webassemblyjs/ieee754" "1.8.5" + "@webassemblyjs/leb128" "1.8.5" + "@webassemblyjs/utf8" "1.8.5" + +"@webassemblyjs/wast-parser@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-parser/-/wast-parser-1.8.5.tgz#e10eecd542d0e7bd394f6827c49f3df6d4eefb8c" + integrity sha512-daXC1FyKWHF1i11obK086QRlsMsY4+tIOKgBqI1lxAnkp9xe9YMcgOxm9kLe+ttjs5aWV2KKE1TWJCN57/Btsg== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/floating-point-hex-parser" "1.8.5" + "@webassemblyjs/helper-api-error" "1.8.5" + "@webassemblyjs/helper-code-frame" "1.8.5" + "@webassemblyjs/helper-fsm" "1.8.5" + "@xtuc/long" "4.2.2" + +"@webassemblyjs/wast-printer@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-printer/-/wast-printer-1.8.5.tgz#114bbc481fd10ca0e23b3560fa812748b0bae5bc" + integrity sha512-w0U0pD4EhlnvRyeJzBqaVSJAo9w/ce7/WPogeXLzGkO6hzhr4GnQIZ4W4uUt5b9ooAaXPtnXlj0gzsXEOUNYMg== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/wast-parser" "1.8.5" + "@xtuc/long" "4.2.2" + +"@xtuc/ieee754@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790" + integrity sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA== + +"@xtuc/long@4.2.2": + version "4.2.2" + resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d" + integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== + +abab@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.1.tgz#3fa17797032b71410ec372e11668f4b4ffc86a82" + integrity sha512-1zSbbCuoIjafKZ3mblY5ikvAb0ODUbqBnFuUb7f6uLeQhhGJ0vEV4ntmtxKLT2WgXCO94E07BjunsIw1jOMPZw== + +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + +accepts@~1.3.7: + version "1.3.7" + resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.7.tgz#531bc726517a3b2b41f850021c6cc15eaab507cd" + integrity sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA== + dependencies: + mime-types "~2.1.24" + negotiator "0.6.2" + +acorn-globals@^4.1.0: + version "4.3.4" + resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.3.4.tgz#9fa1926addc11c97308c4e66d7add0d40c3272e7" + integrity sha512-clfQEh21R+D0leSbUdWf3OcfqyaCSAQ8Ryq00bofSekfr9W8u1jyYZo6ir0xu9Gtcf7BjcHJpnbZH7JOCpP60A== + dependencies: + acorn "^6.0.1" + acorn-walk "^6.0.1" + +acorn-globals@^4.3.0: + version "4.3.2" + resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.3.2.tgz#4e2c2313a597fd589720395f6354b41cd5ec8006" + integrity sha512-BbzvZhVtZP+Bs1J1HcwrQe8ycfO0wStkSGxuul3He3GkHOIZ6eTqOkPuw9IP1X3+IkOo4wiJmwkobzXYz4wewQ== + dependencies: + acorn "^6.0.1" + acorn-walk "^6.0.1" + +acorn-jsx@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.0.1.tgz#32a064fd925429216a09b141102bfdd185fae40e" + integrity sha512-HJ7CfNHrfJLlNTzIEUTj43LNWGkqpRLxm3YjAlcD0ACydk9XynzYsCBHxut+iqt+1aBXkx9UP/w/ZqMr13XIzg== + +acorn-walk@^6.0.1: + version "6.2.0" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.2.0.tgz#123cb8f3b84c2171f1f7fb252615b1c78a6b1a8c" + integrity sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA== + +acorn@^5.5.3: + version "5.7.3" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.3.tgz#67aa231bf8812974b85235a96771eb6bd07ea279" + integrity sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw== + +acorn@^6.0.1: + version "6.3.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.3.0.tgz#0087509119ffa4fc0a0041d1e93a417e68cb856e" + integrity sha512-/czfa8BwS88b9gWQVhc8eknunSA2DoJpJyTQkhheIf5E48u1N0R4q/YxxsAeqRrmK9TQ/uYfgLDfZo91UlANIA== + +acorn@^6.0.4, acorn@^6.0.7, acorn@^6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.2.0.tgz#67f0da2fc339d6cfb5d6fb244fd449f33cd8bbe3" + integrity sha512-8oe72N3WPMjA+2zVG71Ia0nXZ8DpQH+QyyHO+p06jT8eg8FGG3FbcUIi8KziHlAfheJQZeoqbvq1mQSQHXKYLw== + +airbnb-prop-types@^2.13.2: + version "2.13.2" + resolved "https://registry.yarnpkg.com/airbnb-prop-types/-/airbnb-prop-types-2.13.2.tgz#43147a5062dd2a4a5600e748a47b64004cc5f7fc" + integrity sha512-2FN6DlHr6JCSxPPi25EnqGaXC4OC3/B3k1lCd6MMYrZ51/Gf/1qDfaR+JElzWa+Tl7cY2aYOlsYJGFeQyVHIeQ== + dependencies: + array.prototype.find "^2.0.4" + function.prototype.name "^1.1.0" + has "^1.0.3" + is-regex "^1.0.4" + object-is "^1.0.1" + object.assign "^4.1.0" + object.entries "^1.1.0" + prop-types "^15.7.2" + prop-types-exact "^1.2.0" + react-is "^16.8.6" + +ajv-errors@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/ajv-errors/-/ajv-errors-1.0.1.tgz#f35986aceb91afadec4102fbd85014950cefa64d" + integrity sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ== + +ajv-keywords@^3.1.0: + version "3.4.1" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.4.1.tgz#ef916e271c64ac12171fd8384eaae6b2345854da" + integrity sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ== + +ajv@^6.1.0, ajv@^6.5.5, ajv@^6.9.1: + version "6.10.2" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.10.2.tgz#d3cea04d6b017b2894ad69040fec8b623eb4bd52" + integrity sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw== + dependencies: + fast-deep-equal "^2.0.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +amdefine@>=0.0.4: + version "1.0.1" + resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" + integrity sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU= + +angular-mock@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/angular-mock/-/angular-mock-1.0.0.tgz#67431849bf0add225b1d49e0a771659a4b360ba5" + integrity sha1-Z0MYSb8K3SJbHUngp3Flmks2C6U= + +angular@^1.7.8: + version "1.7.8" + resolved "https://registry.yarnpkg.com/angular/-/angular-1.7.8.tgz#b77ede272ce1b261e3be30c1451a0b346905a3c9" + integrity sha512-wtef/y4COxM7ZVhddd7JtAAhyYObq9YXKar9tsW7558BImeVYteJiTxCKeJOL45lJ/+7B4wrAC49j8gTFYEthg== + +ansi-escapes@^3.0.0, ansi-escapes@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" + integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== + +ansi-regex@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8= + +ansi-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" + integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= + +ansi-regex@^4.0.0, ansi-regex@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" + integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== + +ansi-styles@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + integrity sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4= + +ansi-styles@^3.2.0, ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + +anymatch@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" + integrity sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw== + dependencies: + micromatch "^3.1.4" + normalize-path "^2.1.1" + +anymatch@^3.0.1: + version "3.0.3" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.0.3.tgz#2fb624fe0e84bccab00afee3d0006ed310f22f09" + integrity sha512-c6IvoeBECQlMVuYUjSwimnhmztImpErfxJzWZhIQinIvQWoGOnB0dLIgifbPHQt5heS6mNlaZG16f06H3C8t1g== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + +aproba@^1.0.3, aproba@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" + integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw== + +archiver-utils@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/archiver-utils/-/archiver-utils-1.3.0.tgz#e50b4c09c70bf3d680e32ff1b7994e9f9d895174" + integrity sha1-5QtMCccL89aA4y/xt5lOn52JUXQ= + dependencies: + glob "^7.0.0" + graceful-fs "^4.1.0" + lazystream "^1.0.0" + lodash "^4.8.0" + normalize-path "^2.0.0" + readable-stream "^2.0.0" + +archiver@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/archiver/-/archiver-1.3.0.tgz#4f2194d6d8f99df3f531e6881f14f15d55faaf22" + integrity sha1-TyGU1tj5nfP1MeaIHxTxXVX6ryI= + dependencies: + archiver-utils "^1.3.0" + async "^2.0.0" + buffer-crc32 "^0.2.1" + glob "^7.0.0" + lodash "^4.8.0" + readable-stream "^2.0.0" + tar-stream "^1.5.0" + walkdir "^0.0.11" + zip-stream "^1.1.0" + +are-we-there-yet@~1.1.2: + version "1.1.5" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" + integrity sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w== + dependencies: + delegates "^1.0.0" + readable-stream "^2.0.6" + +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + +aria-query@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-3.0.0.tgz#65b3fcc1ca1155a8c9ae64d6eee297f15d5133cc" + integrity sha1-ZbP8wcoRVajJrmTW7uKX8V1RM8w= + dependencies: + ast-types-flow "0.0.7" + commander "^2.11.0" + +arr-diff@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" + integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= + +arr-flatten@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" + integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== + +arr-union@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" + integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= + +array-differ@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-differ/-/array-differ-1.0.0.tgz#eff52e3758249d33be402b8bb8e564bb2b5d4031" + integrity sha1-7/UuN1gknTO+QCuLuOVkuytdQDE= + +array-each@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/array-each/-/array-each-1.0.1.tgz#a794af0c05ab1752846ee753a1f211a05ba0c44f" + integrity sha1-p5SvDAWrF1KEbudTofIRoFugxE8= + +array-equal@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" + integrity sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM= + +array-filter@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-1.0.0.tgz#baf79e62e6ef4c2a4c0b831232daffec251f9d83" + integrity sha1-uveeYubvTCpMC4MSMtr/7CUfnYM= + +array-find-index@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" + integrity sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E= + +array-flatten@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" + integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= + +array-includes@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.0.3.tgz#184b48f62d92d7452bb31b323165c7f8bd02266d" + integrity sha1-GEtI9i2S10UrsxsyMWXH+L0CJm0= + dependencies: + define-properties "^1.1.2" + es-abstract "^1.7.0" + +array-slice@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/array-slice/-/array-slice-1.1.0.tgz#e368ea15f89bc7069f7ffb89aec3a6c7d4ac22d4" + integrity sha512-B1qMD3RBP7O8o0H2KbrXDyB0IccejMF15+87Lvlor12ONPRHP6gTjXMNkt/d3ZuOGbAe66hFmaCfECI24Ufp6w== + +array-union@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" + integrity sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk= + dependencies: + array-uniq "^1.0.1" + +array-uniq@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" + integrity sha1-r2rId6Jcx/dOBYiUdThY39sk/bY= + +array-unique@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" + integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= + +array.prototype.find@^2.0.4: + version "2.1.0" + resolved "https://registry.yarnpkg.com/array.prototype.find/-/array.prototype.find-2.1.0.tgz#630f2eaf70a39e608ac3573e45cf8ccd0ede9ad7" + integrity sha512-Wn41+K1yuO5p7wRZDl7890c3xvv5UBrfVXTVIe28rSQb6LS0fZMDrQB6PAcxQFRFy6vJTLDc3A2+3CjQdzVKRg== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.13.0" + +array.prototype.flat@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.1.tgz#812db8f02cad24d3fab65dd67eabe3b8903494a4" + integrity sha512-rVqIs330nLJvfC7JqYvEWwqVr5QjYF1ib02i3YJtR/fICO6527Tjpc/e4Mvmxh3GIePPreRXMdaGyC99YphWEw== + dependencies: + define-properties "^1.1.2" + es-abstract "^1.10.0" + function-bind "^1.1.1" + +arrify@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= + +asn1.js@^4.0.0: + version "4.10.1" + resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0" + integrity sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw== + dependencies: + bn.js "^4.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +asn1@~0.2.3: + version "0.2.4" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" + integrity sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg== + dependencies: + safer-buffer "~2.1.0" + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= + +assert@^1.1.1: + version "1.5.0" + resolved "https://registry.yarnpkg.com/assert/-/assert-1.5.0.tgz#55c109aaf6e0aefdb3dc4b71240c70bf574b18eb" + integrity sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA== + dependencies: + object-assign "^4.1.1" + util "0.10.3" + +assign-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" + integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= + +ast-types-flow@0.0.7, ast-types-flow@^0.0.7: + version "0.0.7" + resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad" + integrity sha1-9wtzXGvKGlycItmCw+Oef+ujva0= + +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" + integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== + +async-each@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf" + integrity sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ== + +async-foreach@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/async-foreach/-/async-foreach-0.1.3.tgz#36121f845c0578172de419a97dbeb1d16ec34542" + integrity sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI= + +async-limiter@~1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd" + integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== + +async@^0.9.0: + version "0.9.2" + resolved "https://registry.yarnpkg.com/async/-/async-0.9.2.tgz#aea74d5e61c1f899613bf64bda66d4c78f2fd17d" + integrity sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0= + +async@^2.0.0, async@^2.6.0, async@^2.6.1: + version "2.6.2" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.2.tgz#18330ea7e6e313887f5d2f2a904bac6fe4dd5381" + integrity sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLHksBNUVWZDAjfS+Ccx0Bbg== + dependencies: + lodash "^4.17.11" + +async@~1.5.2: + version "1.5.2" + resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" + integrity sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo= + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + +atob@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" + integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== + +aws-sign2@~0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" + integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg= + +aws4@^1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" + integrity sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ== + +axobject-query@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-2.0.2.tgz#ea187abe5b9002b377f925d8bf7d1c561adf38f9" + integrity sha512-MCeek8ZH7hKyO1rWUbKNQBbl4l2eY0ntk7OGi+q0RlafrCnfPxC06WZA+uebCfmYp4mNU9jRBP1AhGyf8+W3ww== + dependencies: + ast-types-flow "0.0.7" + +babel-code-frame@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" + integrity sha1-Y/1D99weO7fONZR9uP42mj9Yx0s= + dependencies: + chalk "^1.1.3" + esutils "^2.0.2" + js-tokens "^3.0.2" + +babel-core@^6.26.0, babel-core@^6.26.3: + version "6.26.3" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.3.tgz#b2e2f09e342d0f0c88e2f02e067794125e75c207" + integrity sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA== + dependencies: + babel-code-frame "^6.26.0" + babel-generator "^6.26.0" + babel-helpers "^6.24.1" + babel-messages "^6.23.0" + babel-register "^6.26.0" + babel-runtime "^6.26.0" + babel-template "^6.26.0" + babel-traverse "^6.26.0" + babel-types "^6.26.0" + babylon "^6.18.0" + convert-source-map "^1.5.1" + debug "^2.6.9" + json5 "^0.5.1" + lodash "^4.17.4" + minimatch "^3.0.4" + path-is-absolute "^1.0.1" + private "^0.1.8" + slash "^1.0.0" + source-map "^0.5.7" + +babel-generator@^6.26.0: + version "6.26.1" + resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.26.1.tgz#1844408d3b8f0d35a404ea7ac180f087a601bd90" + integrity sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA== + dependencies: + babel-messages "^6.23.0" + babel-runtime "^6.26.0" + babel-types "^6.26.0" + detect-indent "^4.0.0" + jsesc "^1.3.0" + lodash "^4.17.4" + source-map "^0.5.7" + trim-right "^1.0.1" + +babel-helper-bindify-decorators@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.24.1.tgz#14c19e5f142d7b47f19a52431e52b1ccbc40a330" + integrity sha1-FMGeXxQte0fxmlJDHlKxzLxAozA= + dependencies: + babel-runtime "^6.22.0" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helper-builder-binary-assignment-operator-visitor@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664" + integrity sha1-zORReto1b0IgvK6KAsKzRvmlZmQ= + dependencies: + babel-helper-explode-assignable-expression "^6.24.1" + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-call-delegate@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz#ece6aacddc76e41c3461f88bfc575bd0daa2df8d" + integrity sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340= + dependencies: + babel-helper-hoist-variables "^6.24.1" + babel-runtime "^6.22.0" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helper-define-map@^6.24.1: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz#a5f56dab41a25f97ecb498c7ebaca9819f95be5f" + integrity sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8= + dependencies: + babel-helper-function-name "^6.24.1" + babel-runtime "^6.26.0" + babel-types "^6.26.0" + lodash "^4.17.4" + +babel-helper-explode-assignable-expression@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz#f25b82cf7dc10433c55f70592d5746400ac22caa" + integrity sha1-8luCz33BBDPFX3BZLVdGQArCLKo= + dependencies: + babel-runtime "^6.22.0" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helper-explode-class@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-explode-class/-/babel-helper-explode-class-6.24.1.tgz#7dc2a3910dee007056e1e31d640ced3d54eaa9eb" + integrity sha1-fcKjkQ3uAHBW4eMdZAztPVTqqes= + dependencies: + babel-helper-bindify-decorators "^6.24.1" + babel-runtime "^6.22.0" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helper-function-name@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9" + integrity sha1-00dbjAPtmCQqJbSDUasYOZ01gKk= + dependencies: + babel-helper-get-function-arity "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helper-get-function-arity@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz#8f7782aa93407c41d3aa50908f89b031b1b6853d" + integrity sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0= + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-hoist-variables@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz#1ecb27689c9d25513eadbc9914a73f5408be7a76" + integrity sha1-HssnaJydJVE+rbyZFKc/VAi+enY= + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-optimise-call-expression@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz#f7a13427ba9f73f8f4fa993c54a97882d1244257" + integrity sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc= + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-helper-regex@^6.24.1: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz#325c59f902f82f24b74faceed0363954f6495e72" + integrity sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI= + dependencies: + babel-runtime "^6.26.0" + babel-types "^6.26.0" + lodash "^4.17.4" + +babel-helper-remap-async-to-generator@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz#5ec581827ad723fecdd381f1c928390676e4551b" + integrity sha1-XsWBgnrXI/7N04HxySg5BnbkVRs= + dependencies: + babel-helper-function-name "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helper-replace-supers@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz#bf6dbfe43938d17369a213ca8a8bf74b6a90ab1a" + integrity sha1-v22/5Dk40XNpohPKiov3S2qQqxo= + dependencies: + babel-helper-optimise-call-expression "^6.24.1" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-helpers@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2" + integrity sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI= + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-jest@^24.5.0: + version "24.8.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-24.8.0.tgz#5c15ff2b28e20b0f45df43fe6b7f2aae93dba589" + integrity sha512-+5/kaZt4I9efoXzPlZASyK/lN9qdRKmmUav9smVc0ruPQD7IsfucQ87gpOE8mn2jbDuS6M/YOW6n3v9ZoIfgnw== + dependencies: + "@jest/transform" "^24.8.0" + "@jest/types" "^24.8.0" + "@types/babel__core" "^7.1.0" + babel-plugin-istanbul "^5.1.0" + babel-preset-jest "^24.6.0" + chalk "^2.4.2" + slash "^2.0.0" + +babel-jest@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-24.9.0.tgz#3fc327cb8467b89d14d7bc70e315104a783ccd54" + integrity sha512-ntuddfyiN+EhMw58PTNL1ph4C9rECiQXjI4nMMBKBaNjXvqLdkXpPRcMSr4iyBrJg/+wz9brFUD6RhOAT6r4Iw== + dependencies: + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + "@types/babel__core" "^7.1.0" + babel-plugin-istanbul "^5.1.0" + babel-preset-jest "^24.9.0" + chalk "^2.4.2" + slash "^2.0.0" + +babel-loader@8.0.5: + version "8.0.5" + resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.0.5.tgz#225322d7509c2157655840bba52e46b6c2f2fe33" + integrity sha512-NTnHnVRd2JnRqPC0vW+iOQWU5pchDbYXsG2E6DMXEpMfUcQKclF9gmf3G3ZMhzG7IG9ji4coL0cm+FxeWxDpnw== + dependencies: + find-cache-dir "^2.0.0" + loader-utils "^1.0.2" + mkdirp "^0.5.1" + util.promisify "^1.0.0" + +babel-loader@^8.0.5: + version "8.0.6" + resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.0.6.tgz#e33bdb6f362b03f4bb141a0c21ab87c501b70dfb" + integrity sha512-4BmWKtBOBm13uoUwd08UwjZlaw3O9GWf456R9j+5YykFZ6LUIjIKLc0zEZf+hauxPOJs96C8k6FvYD09vWzhYw== + dependencies: + find-cache-dir "^2.0.0" + loader-utils "^1.0.2" + mkdirp "^0.5.1" + pify "^4.0.1" + +babel-messages@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" + integrity sha1-8830cDhYA1sqKVHG7F7fbGLyYw4= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-check-es2015-constants@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz#35157b101426fd2ffd3da3f75c7d1e91835bbf8a" + integrity sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-dynamic-import-node@2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.2.0.tgz#c0adfb07d95f4a4495e9aaac6ec386c4d7c2524e" + integrity sha512-fP899ELUnTaBcIzmrW7nniyqqdYWrWuJUyPWHxFa/c7r7hS6KC8FscNfLlBNIoPSc55kYMGEEKjPjJGCLbE1qA== + dependencies: + object.assign "^4.1.0" + +babel-plugin-dynamic-import-node@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.0.tgz#f00f507bdaa3c3e3ff6e7e5e98d90a7acab96f7f" + integrity sha512-o6qFkpeQEBxcqt0XYlWzAVxNCSCZdUgcR8IRlhD/8DylxjjO4foPcvTW0GGKa/cVt3rvxZ7o5ippJ+/0nvLhlQ== + dependencies: + object.assign "^4.1.0" + +babel-plugin-istanbul@^5.1.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-5.2.0.tgz#df4ade83d897a92df069c4d9a25cf2671293c854" + integrity sha512-5LphC0USA8t4i1zCtjbbNb6jJj/9+X6P37Qfirc/70EQ34xKlMW+a1RHGwxGI+SwWpNwZ27HqvzAobeqaXwiZw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + find-up "^3.0.0" + istanbul-lib-instrument "^3.3.0" + test-exclude "^5.2.3" + +babel-plugin-jest-hoist@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-24.9.0.tgz#4f837091eb407e01447c8843cbec546d0002d756" + integrity sha512-2EMA2P8Vp7lG0RAzr4HXqtYwacfMErOuv1U3wrvxHX6rD1sV6xS3WXG3r8TRQ2r6w8OhvSdWt+z41hQNwNm3Xw== + dependencies: + "@types/babel__traverse" "^7.0.6" + +babel-plugin-macros@2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-2.5.0.tgz#01f4d3b50ed567a67b80a30b9da066e94f4097b6" + integrity sha512-BWw0lD0kVZAXRD3Od1kMrdmfudqzDzYv2qrN3l2ISR1HVp1EgLKfbOrYV9xmY5k3qx3RIu5uPAUZZZHpo0o5Iw== + dependencies: + cosmiconfig "^5.0.5" + resolve "^1.8.1" + +babel-plugin-syntax-async-functions@^6.8.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" + integrity sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU= + +babel-plugin-syntax-async-generators@^6.5.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz#6bc963ebb16eccbae6b92b596eb7f35c342a8b9a" + integrity sha1-a8lj67FuzLrmuStZbrfzXDQqi5o= + +babel-plugin-syntax-class-constructor-call@^6.18.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-constructor-call/-/babel-plugin-syntax-class-constructor-call-6.18.0.tgz#9cb9d39fe43c8600bec8146456ddcbd4e1a76416" + integrity sha1-nLnTn+Q8hgC+yBRkVt3L1OGnZBY= + +babel-plugin-syntax-class-properties@^6.8.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de" + integrity sha1-1+sjt5oxf4VDlixQW4J8fWysJ94= + +babel-plugin-syntax-decorators@^6.13.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz#312563b4dbde3cc806cee3e416cceeaddd11ac0b" + integrity sha1-MSVjtNvePMgGzuPkFszurd0RrAs= + +babel-plugin-syntax-do-expressions@^6.8.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-do-expressions/-/babel-plugin-syntax-do-expressions-6.13.0.tgz#5747756139aa26d390d09410b03744ba07e4796d" + integrity sha1-V0d1YTmqJtOQ0JQQsDdEugfkeW0= + +babel-plugin-syntax-dynamic-import@^6.18.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da" + integrity sha1-jWomIpyDdFqZgqRBBRVyyqF5sdo= + +babel-plugin-syntax-exponentiation-operator@^6.8.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de" + integrity sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4= + +babel-plugin-syntax-export-extensions@^6.8.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-export-extensions/-/babel-plugin-syntax-export-extensions-6.13.0.tgz#70a1484f0f9089a4e84ad44bac353c95b9b12721" + integrity sha1-cKFITw+QiaToStRLrDU8lbmxJyE= + +babel-plugin-syntax-function-bind@^6.8.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-function-bind/-/babel-plugin-syntax-function-bind-6.13.0.tgz#48c495f177bdf31a981e732f55adc0bdd2601f46" + integrity sha1-SMSV8Xe98xqYHnMvVa3AvdJgH0Y= + +babel-plugin-syntax-object-rest-spread@^6.8.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5" + integrity sha1-/WU28rzhODb/o6VFjEkDpZe7O/U= + +babel-plugin-syntax-trailing-function-commas@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3" + integrity sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM= + +babel-plugin-transform-async-generator-functions@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz#f058900145fd3e9907a6ddf28da59f215258a5db" + integrity sha1-8FiQAUX9PpkHpt3yjaWfIVJYpds= + dependencies: + babel-helper-remap-async-to-generator "^6.24.1" + babel-plugin-syntax-async-generators "^6.5.0" + babel-runtime "^6.22.0" + +babel-plugin-transform-async-to-generator@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761" + integrity sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E= + dependencies: + babel-helper-remap-async-to-generator "^6.24.1" + babel-plugin-syntax-async-functions "^6.8.0" + babel-runtime "^6.22.0" + +babel-plugin-transform-class-constructor-call@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.24.1.tgz#80dc285505ac067dcb8d6c65e2f6f11ab7765ef9" + integrity sha1-gNwoVQWsBn3LjWxl4vbxGrd2Xvk= + dependencies: + babel-plugin-syntax-class-constructor-call "^6.18.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-class-properties@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac" + integrity sha1-anl2PqYdM9NvN7YRqp3vgagbRqw= + dependencies: + babel-helper-function-name "^6.24.1" + babel-plugin-syntax-class-properties "^6.8.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-decorators@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.24.1.tgz#788013d8f8c6b5222bdf7b344390dfd77569e24d" + integrity sha1-eIAT2PjGtSIr33s0Q5Df13Vp4k0= + dependencies: + babel-helper-explode-class "^6.24.1" + babel-plugin-syntax-decorators "^6.13.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-types "^6.24.1" + +babel-plugin-transform-do-expressions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-do-expressions/-/babel-plugin-transform-do-expressions-6.22.0.tgz#28ccaf92812d949c2cd1281f690c8fdc468ae9bb" + integrity sha1-KMyvkoEtlJws0SgfaQyP3EaK6bs= + dependencies: + babel-plugin-syntax-do-expressions "^6.8.0" + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-arrow-functions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221" + integrity sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-block-scoped-functions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz#bbc51b49f964d70cb8d8e0b94e820246ce3a6141" + integrity sha1-u8UbSflk1wy42OC5ToICRs46YUE= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-block-scoping@^6.24.1: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f" + integrity sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8= + dependencies: + babel-runtime "^6.26.0" + babel-template "^6.26.0" + babel-traverse "^6.26.0" + babel-types "^6.26.0" + lodash "^4.17.4" + +babel-plugin-transform-es2015-classes@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db" + integrity sha1-WkxYpQyclGHlZLSyo7+ryXolhNs= + dependencies: + babel-helper-define-map "^6.24.1" + babel-helper-function-name "^6.24.1" + babel-helper-optimise-call-expression "^6.24.1" + babel-helper-replace-supers "^6.24.1" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-computed-properties@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3" + integrity sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM= + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-destructuring@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d" + integrity sha1-mXux8auWf2gtKwh2/jWNYOdlxW0= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-duplicate-keys@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e" + integrity sha1-c+s9MQypaePvnskcU3QabxV2Qj4= + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-for-of@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691" + integrity sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-function-name@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b" + integrity sha1-g0yJhTvDaxrw86TF26qU/Y6sqos= + dependencies: + babel-helper-function-name "^6.24.1" + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-literals@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz#4f54a02d6cd66cf915280019a31d31925377ca2e" + integrity sha1-T1SgLWzWbPkVKAAZox0xklN3yi4= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-modules-amd@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154" + integrity sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ= + dependencies: + babel-plugin-transform-es2015-modules-commonjs "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-modules-commonjs@^6.24.1: + version "6.26.2" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz#58a793863a9e7ca870bdc5a881117ffac27db6f3" + integrity sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q== + dependencies: + babel-plugin-transform-strict-mode "^6.24.1" + babel-runtime "^6.26.0" + babel-template "^6.26.0" + babel-types "^6.26.0" + +babel-plugin-transform-es2015-modules-systemjs@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23" + integrity sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM= + dependencies: + babel-helper-hoist-variables "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-modules-umd@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468" + integrity sha1-rJl+YoXNGO1hdq22B9YCNErThGg= + dependencies: + babel-plugin-transform-es2015-modules-amd "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + +babel-plugin-transform-es2015-object-super@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d" + integrity sha1-JM72muIcuDp/hgPa0CH1cusnj40= + dependencies: + babel-helper-replace-supers "^6.24.1" + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-parameters@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b" + integrity sha1-V6w1GrScrxSpfNE7CfZv3wpiXys= + dependencies: + babel-helper-call-delegate "^6.24.1" + babel-helper-get-function-arity "^6.24.1" + babel-runtime "^6.22.0" + babel-template "^6.24.1" + babel-traverse "^6.24.1" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-shorthand-properties@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0" + integrity sha1-JPh11nIch2YbvZmkYi5R8U3jiqA= + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-spread@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz#d6d68a99f89aedc4536c81a542e8dd9f1746f8d1" + integrity sha1-1taKmfia7cRTbIGlQujdnxdG+NE= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-sticky-regex@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc" + integrity sha1-AMHNsaynERLN8M9hJsLta0V8zbw= + dependencies: + babel-helper-regex "^6.24.1" + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-plugin-transform-es2015-template-literals@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz#a84b3450f7e9f8f1f6839d6d687da84bb1236d8d" + integrity sha1-qEs0UPfp+PH2g51taH2oS7EjbY0= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-typeof-symbol@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372" + integrity sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I= + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-transform-es2015-unicode-regex@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9" + integrity sha1-04sS9C6nMj9yk4fxinxa4frrNek= + dependencies: + babel-helper-regex "^6.24.1" + babel-runtime "^6.22.0" + regexpu-core "^2.0.0" + +babel-plugin-transform-exponentiation-operator@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e" + integrity sha1-KrDJx/MJj6SJB3cruBP+QejeOg4= + dependencies: + babel-helper-builder-binary-assignment-operator-visitor "^6.24.1" + babel-plugin-syntax-exponentiation-operator "^6.8.0" + babel-runtime "^6.22.0" + +babel-plugin-transform-export-extensions@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-export-extensions/-/babel-plugin-transform-export-extensions-6.22.0.tgz#53738b47e75e8218589eea946cbbd39109bbe653" + integrity sha1-U3OLR+deghhYnuqUbLvTkQm75lM= + dependencies: + babel-plugin-syntax-export-extensions "^6.8.0" + babel-runtime "^6.22.0" + +babel-plugin-transform-function-bind@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-function-bind/-/babel-plugin-transform-function-bind-6.22.0.tgz#c6fb8e96ac296a310b8cf8ea401462407ddf6a97" + integrity sha1-xvuOlqwpajELjPjqQBRiQH3fapc= + dependencies: + babel-plugin-syntax-function-bind "^6.8.0" + babel-runtime "^6.22.0" + +babel-plugin-transform-object-rest-spread@^6.22.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06" + integrity sha1-DzZpLVD+9rfi1LOsFHgTepY7ewY= + dependencies: + babel-plugin-syntax-object-rest-spread "^6.8.0" + babel-runtime "^6.26.0" + +babel-plugin-transform-react-remove-prop-types@0.4.24: + version "0.4.24" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.24.tgz#f2edaf9b4c6a5fbe5c1d678bfb531078c1555f3a" + integrity sha512-eqj0hVcJUR57/Ug2zE1Yswsw4LhuqqHhD+8v120T1cl3kjg76QwtyBrdIk4WVwK+lAhBJVYCd/v+4nc4y+8JsA== + +babel-plugin-transform-regenerator@^6.24.1: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f" + integrity sha1-4HA2lvveJ/Cj78rPi03KL3s6jy8= + dependencies: + regenerator-transform "^0.10.0" + +babel-plugin-transform-strict-mode@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" + integrity sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g= + dependencies: + babel-runtime "^6.22.0" + babel-types "^6.24.1" + +babel-polyfill@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153" + integrity sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM= + dependencies: + babel-runtime "^6.26.0" + core-js "^2.5.0" + regenerator-runtime "^0.10.5" + +babel-preset-es2015@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz#d44050d6bc2c9feea702aaf38d727a0210538939" + integrity sha1-1EBQ1rwsn+6nAqrzjXJ6AhBTiTk= + dependencies: + babel-plugin-check-es2015-constants "^6.22.0" + babel-plugin-transform-es2015-arrow-functions "^6.22.0" + babel-plugin-transform-es2015-block-scoped-functions "^6.22.0" + babel-plugin-transform-es2015-block-scoping "^6.24.1" + babel-plugin-transform-es2015-classes "^6.24.1" + babel-plugin-transform-es2015-computed-properties "^6.24.1" + babel-plugin-transform-es2015-destructuring "^6.22.0" + babel-plugin-transform-es2015-duplicate-keys "^6.24.1" + babel-plugin-transform-es2015-for-of "^6.22.0" + babel-plugin-transform-es2015-function-name "^6.24.1" + babel-plugin-transform-es2015-literals "^6.22.0" + babel-plugin-transform-es2015-modules-amd "^6.24.1" + babel-plugin-transform-es2015-modules-commonjs "^6.24.1" + babel-plugin-transform-es2015-modules-systemjs "^6.24.1" + babel-plugin-transform-es2015-modules-umd "^6.24.1" + babel-plugin-transform-es2015-object-super "^6.24.1" + babel-plugin-transform-es2015-parameters "^6.24.1" + babel-plugin-transform-es2015-shorthand-properties "^6.24.1" + babel-plugin-transform-es2015-spread "^6.22.0" + babel-plugin-transform-es2015-sticky-regex "^6.24.1" + babel-plugin-transform-es2015-template-literals "^6.22.0" + babel-plugin-transform-es2015-typeof-symbol "^6.22.0" + babel-plugin-transform-es2015-unicode-regex "^6.24.1" + babel-plugin-transform-regenerator "^6.24.1" + +babel-preset-jest@^24.6.0, babel-preset-jest@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-24.9.0.tgz#192b521e2217fb1d1f67cf73f70c336650ad3cdc" + integrity sha512-izTUuhE4TMfTRPF92fFwD2QfdXaZW08qvWTFCI51V8rW5x00UuPgc3ajRoWofXOuxjfcOM5zzSYsQS3H8KGCAg== + dependencies: + "@babel/plugin-syntax-object-rest-spread" "^7.0.0" + babel-plugin-jest-hoist "^24.9.0" + +babel-preset-react-app@^7.0.2: + version "7.0.2" + resolved "https://registry.yarnpkg.com/babel-preset-react-app/-/babel-preset-react-app-7.0.2.tgz#d01ae973edc93b9f1015cb0236dd55889a584308" + integrity sha512-mwCk/u2wuiO8qQqblN5PlDa44taY0acq7hw6W+a70W522P7a9mIcdggL1fe5/LgAT7tqCq46q9wwhqaMoYKslQ== + dependencies: + "@babel/core" "7.2.2" + "@babel/plugin-proposal-class-properties" "7.3.0" + "@babel/plugin-proposal-decorators" "7.3.0" + "@babel/plugin-proposal-object-rest-spread" "7.3.2" + "@babel/plugin-syntax-dynamic-import" "7.2.0" + "@babel/plugin-transform-classes" "7.2.2" + "@babel/plugin-transform-destructuring" "7.3.2" + "@babel/plugin-transform-flow-strip-types" "7.2.3" + "@babel/plugin-transform-react-constant-elements" "7.2.0" + "@babel/plugin-transform-react-display-name" "7.2.0" + "@babel/plugin-transform-runtime" "7.2.0" + "@babel/preset-env" "7.3.1" + "@babel/preset-react" "7.0.0" + "@babel/preset-typescript" "7.1.0" + "@babel/runtime" "7.3.1" + babel-loader "8.0.5" + babel-plugin-dynamic-import-node "2.2.0" + babel-plugin-macros "2.5.0" + babel-plugin-transform-react-remove-prop-types "0.4.24" + +babel-preset-stage-0@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-preset-stage-0/-/babel-preset-stage-0-6.24.1.tgz#5642d15042f91384d7e5af8bc88b1db95b039e6a" + integrity sha1-VkLRUEL5E4TX5a+LyIsduVsDnmo= + dependencies: + babel-plugin-transform-do-expressions "^6.22.0" + babel-plugin-transform-function-bind "^6.22.0" + babel-preset-stage-1 "^6.24.1" + +babel-preset-stage-1@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-preset-stage-1/-/babel-preset-stage-1-6.24.1.tgz#7692cd7dcd6849907e6ae4a0a85589cfb9e2bfb0" + integrity sha1-dpLNfc1oSZB+auSgqFWJz7niv7A= + dependencies: + babel-plugin-transform-class-constructor-call "^6.24.1" + babel-plugin-transform-export-extensions "^6.22.0" + babel-preset-stage-2 "^6.24.1" + +babel-preset-stage-2@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-preset-stage-2/-/babel-preset-stage-2-6.24.1.tgz#d9e2960fb3d71187f0e64eec62bc07767219bdc1" + integrity sha1-2eKWD7PXEYfw5k7sYrwHdnIZvcE= + dependencies: + babel-plugin-syntax-dynamic-import "^6.18.0" + babel-plugin-transform-class-properties "^6.24.1" + babel-plugin-transform-decorators "^6.24.1" + babel-preset-stage-3 "^6.24.1" + +babel-preset-stage-3@^6.24.1: + version "6.24.1" + resolved "https://registry.yarnpkg.com/babel-preset-stage-3/-/babel-preset-stage-3-6.24.1.tgz#836ada0a9e7a7fa37cb138fb9326f87934a48395" + integrity sha1-g2raCp56f6N8sTj7kyb4eTSkg5U= + dependencies: + babel-plugin-syntax-trailing-function-commas "^6.22.0" + babel-plugin-transform-async-generator-functions "^6.24.1" + babel-plugin-transform-async-to-generator "^6.24.1" + babel-plugin-transform-exponentiation-operator "^6.24.1" + babel-plugin-transform-object-rest-spread "^6.22.0" + +babel-register@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071" + integrity sha1-btAhFz4vy0htestFxgCahW9kcHE= + dependencies: + babel-core "^6.26.0" + babel-runtime "^6.26.0" + core-js "^2.5.0" + home-or-tmp "^2.0.0" + lodash "^4.17.4" + mkdirp "^0.5.1" + source-map-support "^0.4.15" + +babel-runtime@^6.18.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" + integrity sha1-llxwWGaOgrVde/4E/yM3vItWR/4= + dependencies: + core-js "^2.4.0" + regenerator-runtime "^0.11.0" + +babel-template@^6.24.1, babel-template@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" + integrity sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI= + dependencies: + babel-runtime "^6.26.0" + babel-traverse "^6.26.0" + babel-types "^6.26.0" + babylon "^6.18.0" + lodash "^4.17.4" + +babel-traverse@^6.24.1, babel-traverse@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" + integrity sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4= + dependencies: + babel-code-frame "^6.26.0" + babel-messages "^6.23.0" + babel-runtime "^6.26.0" + babel-types "^6.26.0" + babylon "^6.18.0" + debug "^2.6.8" + globals "^9.18.0" + invariant "^2.2.2" + lodash "^4.17.4" + +babel-types@^6.19.0, babel-types@^6.24.1, babel-types@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" + integrity sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc= + dependencies: + babel-runtime "^6.26.0" + esutils "^2.0.2" + lodash "^4.17.4" + to-fast-properties "^1.0.3" + +babylon@^6.18.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" + integrity sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ== + +balanced-match@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" + integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= + +base64-js@^1.0.2: + version "1.3.0" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.0.tgz#cab1e6118f051095e58b5281aea8c1cd22bfc0e3" + integrity sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw== + +base@^0.11.1: + version "0.11.2" + resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" + integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== + dependencies: + cache-base "^1.0.1" + class-utils "^0.3.5" + component-emitter "^1.2.1" + define-property "^1.0.0" + isobject "^3.0.1" + mixin-deep "^1.2.0" + pascalcase "^0.1.1" + +bcrypt-pbkdf@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" + integrity sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4= + dependencies: + tweetnacl "^0.14.3" + +big.js@^5.2.2: + version "5.2.2" + resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" + integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== + +binary-extensions@^1.0.0: + version "1.13.1" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.13.1.tgz#598afe54755b2868a5330d2aff9d4ebb53209b65" + integrity sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw== + +binary-extensions@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.0.0.tgz#23c0df14f6a88077f5f986c0d167ec03c3d5537c" + integrity sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow== + +bl@^1.0.0: + version "1.2.2" + resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.2.tgz#a160911717103c07410cef63ef51b397c025af9c" + integrity sha512-e8tQYnZodmebYDWGH7KMRvtzKXaJHx3BbilrgZCfvyLUYdKpK1t5PSPmpkny/SgiTSCnjfLW7v5rlONXVFkQEA== + dependencies: + readable-stream "^2.3.5" + safe-buffer "^5.1.1" + +block-stream@*: + version "0.0.9" + resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" + integrity sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo= + dependencies: + inherits "~2.0.0" + +bluebird@^3.5.5: + version "3.5.5" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.5.tgz#a8d0afd73251effbbd5fe384a77d73003c17a71f" + integrity sha512-5am6HnnfN+urzt4yfg7IgTbotDjIT/u8AJpEt0sIU9FtXfVeezXAPKswrG+xKUCOYAINpSdgZVDU6QFh+cuH3w== + +bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.1.1, bn.js@^4.4.0: + version "4.11.8" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" + integrity sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA== + +body-parser@1.19.0: + version "1.19.0" + resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.0.tgz#96b2709e57c9c4e09a6fd66a8fd979844f69f08a" + integrity sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw== + dependencies: + bytes "3.1.0" + content-type "~1.0.4" + debug "2.6.9" + depd "~1.1.2" + http-errors "1.7.2" + iconv-lite "0.4.24" + on-finished "~2.3.0" + qs "6.7.0" + raw-body "2.4.0" + type-is "~1.6.17" + +body@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/body/-/body-5.1.0.tgz#e4ba0ce410a46936323367609ecb4e6553125069" + integrity sha1-5LoM5BCkaTYyM2dgnstOZVMSUGk= + dependencies: + continuable-cache "^0.3.1" + error "^7.0.0" + raw-body "~1.1.0" + safe-json-parse "~1.0.1" + +boolbase@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" + integrity sha1-aN/1++YMUes3cl6p4+0xDcwed24= + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +braces@^2.3.1, braces@^2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" + integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== + dependencies: + arr-flatten "^1.1.0" + array-unique "^0.3.2" + extend-shallow "^2.0.1" + fill-range "^4.0.0" + isobject "^3.0.1" + repeat-element "^1.1.2" + snapdragon "^0.8.1" + snapdragon-node "^2.0.1" + split-string "^3.0.2" + to-regex "^3.0.1" + +braces@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" + integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== + dependencies: + fill-range "^7.0.1" + +brorand@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" + integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= + +browser-process-hrtime@^0.1.2: + version "0.1.3" + resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-0.1.3.tgz#616f00faef1df7ec1b5bf9cfe2bdc3170f26c7b4" + integrity sha512-bRFnI4NnjO6cnyLmOV/7PVoDEMJChlcfN0z4s1YMBY989/SvlfMI1lgCnkFUs53e9gQF+w7qu7XdllSTiSl8Aw== + +browser-resolve@^1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6" + integrity sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ== + dependencies: + resolve "1.1.7" + +browserify-aes@^1.0.0, browserify-aes@^1.0.4: + version "1.2.0" + resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" + integrity sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA== + dependencies: + buffer-xor "^1.0.3" + cipher-base "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.3" + inherits "^2.0.1" + safe-buffer "^5.0.1" + +browserify-cipher@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.1.tgz#8d6474c1b870bfdabcd3bcfcc1934a10e94f15f0" + integrity sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w== + dependencies: + browserify-aes "^1.0.4" + browserify-des "^1.0.0" + evp_bytestokey "^1.0.0" + +browserify-des@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.2.tgz#3af4f1f59839403572f1c66204375f7a7f703e9c" + integrity sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A== + dependencies: + cipher-base "^1.0.1" + des.js "^1.0.0" + inherits "^2.0.1" + safe-buffer "^5.1.2" + +browserify-rsa@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524" + integrity sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ= + dependencies: + bn.js "^4.1.0" + randombytes "^2.0.1" + +browserify-sign@^4.0.0: + version "4.0.4" + resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.0.4.tgz#aa4eb68e5d7b658baa6bf6a57e630cbd7a93d298" + integrity sha1-qk62jl17ZYuqa/alfmMMvXqT0pg= + dependencies: + bn.js "^4.1.1" + browserify-rsa "^4.0.0" + create-hash "^1.1.0" + create-hmac "^1.1.2" + elliptic "^6.0.0" + inherits "^2.0.1" + parse-asn1 "^5.0.0" + +browserify-zlib@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f" + integrity sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA== + dependencies: + pako "~1.0.5" + +browserslist@^4.3.4, browserslist@^4.6.0, browserslist@^4.6.2: + version "4.6.6" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.6.6.tgz#6e4bf467cde520bc9dbdf3747dafa03531cec453" + integrity sha512-D2Nk3W9JL9Fp/gIcWei8LrERCS+eXu9AM5cfXA8WEZ84lFks+ARnZ0q/R69m2SV3Wjma83QDDPxsNKXUwdIsyA== + dependencies: + caniuse-lite "^1.0.30000984" + electron-to-chromium "^1.3.191" + node-releases "^1.1.25" + +bs-logger@0.x: + version "0.2.6" + resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" + integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog== + dependencies: + fast-json-stable-stringify "2.x" + +bser@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.0.tgz#65fc784bf7f87c009b973c12db6546902fa9c7b5" + integrity sha512-8zsjWrQkkBoLK6uxASk1nJ2SKv97ltiGDo6A3wA0/yRPz+CwmEyDo0hUrhIuukG2JHpAl3bvFIixw2/3Hi0DOg== + dependencies: + node-int64 "^0.4.0" + +buffer-alloc-unsafe@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz#bd7dc26ae2972d0eda253be061dba992349c19f0" + integrity sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg== + +buffer-alloc@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/buffer-alloc/-/buffer-alloc-1.2.0.tgz#890dd90d923a873e08e10e5fd51a57e5b7cce0ec" + integrity sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow== + dependencies: + buffer-alloc-unsafe "^1.1.0" + buffer-fill "^1.0.0" + +buffer-crc32@^0.2.1: + version "0.2.13" + resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" + integrity sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI= + +buffer-fill@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/buffer-fill/-/buffer-fill-1.0.0.tgz#f8f78b76789888ef39f205cd637f68e702122b2c" + integrity sha1-+PeLdniYiO858gXNY39o5wISKyw= + +buffer-from@1.x, buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" + integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== + +buffer-xor@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" + integrity sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk= + +buffer@^4.3.0: + version "4.9.1" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.1.tgz#6d1bb601b07a4efced97094132093027c95bc298" + integrity sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg= + dependencies: + base64-js "^1.0.2" + ieee754 "^1.1.4" + isarray "^1.0.0" + +buffer@^5.1.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.2.1.tgz#dd57fa0f109ac59c602479044dca7b8b3d0b71d6" + integrity sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg== + dependencies: + base64-js "^1.0.2" + ieee754 "^1.1.4" + +builtin-status-codes@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" + integrity sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug= + +bytes@1: + version "1.0.0" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-1.0.0.tgz#3569ede8ba34315fab99c3e92cb04c7220de1fa8" + integrity sha1-NWnt6Lo0MV+rmcPpLLBMciDeH6g= + +bytes@3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6" + integrity sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg== + +cacache@^11.3.2: + version "11.3.3" + resolved "https://registry.yarnpkg.com/cacache/-/cacache-11.3.3.tgz#8bd29df8c6a718a6ebd2d010da4d7972ae3bbadc" + integrity sha512-p8WcneCytvzPxhDvYp31PD039vi77I12W+/KfR9S8AZbaiARFBCpsPJS+9uhWfeBfeAtW7o/4vt3MUqLkbY6nA== + dependencies: + bluebird "^3.5.5" + chownr "^1.1.1" + figgy-pudding "^3.5.1" + glob "^7.1.4" + graceful-fs "^4.1.15" + lru-cache "^5.1.1" + mississippi "^3.0.0" + mkdirp "^0.5.1" + move-concurrently "^1.0.1" + promise-inflight "^1.0.1" + rimraf "^2.6.3" + ssri "^6.0.1" + unique-filename "^1.1.1" + y18n "^4.0.0" + +cache-base@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" + integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== + dependencies: + collection-visit "^1.0.0" + component-emitter "^1.2.1" + get-value "^2.0.6" + has-value "^1.0.0" + isobject "^3.0.1" + set-value "^2.0.0" + to-object-path "^0.3.0" + union-value "^1.0.0" + unset-value "^1.0.0" + +caller-callsite@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" + integrity sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ= + dependencies: + callsites "^2.0.0" + +caller-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4" + integrity sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ= + dependencies: + caller-callsite "^2.0.0" + +callsites@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" + integrity sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA= + +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + +camelcase-keys@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz#308beeaffdf28119051efa1d932213c91b8f92e7" + integrity sha1-MIvur/3ygRkFHvodkyITyRuPkuc= + dependencies: + camelcase "^2.0.0" + map-obj "^1.0.0" + +camelcase@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f" + integrity sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8= + +camelcase@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" + integrity sha1-MvxLn82vhF/N9+c7uXysImHwqwo= + +camelcase@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" + integrity sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0= + +camelcase@^5.0.0, camelcase@^5.3.1: + version "5.3.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" + integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== + +caniuse-lite@^1.0.30000984: + version "1.0.30000984" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000984.tgz#dc96c3c469e9bcfc6ad5bdd24c77ec918ea76fe0" + integrity sha512-n5tKOjMaZ1fksIpQbjERuqCyfgec/m9pferkFQbLmWtqLUdmt12hNhjSwsmPdqeiG2NkITOQhr1VYIwWSAceiA== + +capture-exit@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4" + integrity sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g== + dependencies: + rsvp "^4.8.4" + +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= + +chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg= + dependencies: + ansi-styles "^2.2.1" + escape-string-regexp "^1.0.2" + has-ansi "^2.0.0" + strip-ansi "^3.0.0" + supports-color "^2.0.0" + +chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.4.1, chalk@^2.4.2, chalk@~2.4.1: + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +chardet@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" + integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== + +chartist@^0.11.4: + version "0.11.4" + resolved "https://registry.yarnpkg.com/chartist/-/chartist-0.11.4.tgz#e96e1c573d8b67478920a3a6ae52359d9fc8d8b7" + integrity sha512-H4AimxaUD738/u9Mq8t27J4lh6STsLi4BQHt65nOtpLk3xyrBPaLiLMrHw7/WV9CmsjGA02WihjuL5qpSagLYw== + +cheerio@^1.0.0-rc.2: + version "1.0.0-rc.3" + resolved "https://registry.yarnpkg.com/cheerio/-/cheerio-1.0.0-rc.3.tgz#094636d425b2e9c0f4eb91a46c05630c9a1a8bf6" + integrity sha512-0td5ijfUPuubwLUu0OBoe98gZj8C/AA+RW3v67GPlGOrvxWjZmBXiBCRU+I8VEiNyJzjth40POfHiz2RB3gImA== + dependencies: + css-select "~1.2.0" + dom-serializer "~0.1.1" + entities "~1.1.1" + htmlparser2 "^3.9.1" + lodash "^4.15.0" + parse5 "^3.0.1" + +"chokidar@>=2.0.0 <4.0.0": + version "3.0.2" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.0.2.tgz#0d1cd6d04eb2df0327446188cd13736a3367d681" + integrity sha512-c4PR2egjNjI1um6bamCQ6bUNPDiyofNQruHvKgHQ4gDUP/ITSVSzNsiI5OWtHOsX323i5ha/kk4YmOZ1Ktg7KA== + dependencies: + anymatch "^3.0.1" + braces "^3.0.2" + glob-parent "^5.0.0" + is-binary-path "^2.1.0" + is-glob "^4.0.1" + normalize-path "^3.0.0" + readdirp "^3.1.1" + optionalDependencies: + fsevents "^2.0.6" + +chokidar@^2.0.2, chokidar@^2.0.4: + version "2.1.6" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.6.tgz#b6cad653a929e244ce8a834244164d241fa954c5" + integrity sha512-V2jUo67OKkc6ySiRpJrjlpJKl9kDuG+Xb8VgsGzb+aEouhgS1D0weyPU4lEzdAcsCAvrih2J2BqyXqHWvVLw5g== + dependencies: + anymatch "^2.0.0" + async-each "^1.0.1" + braces "^2.3.2" + glob-parent "^3.1.0" + inherits "^2.0.3" + is-binary-path "^1.0.0" + is-glob "^4.0.0" + normalize-path "^3.0.0" + path-is-absolute "^1.0.0" + readdirp "^2.2.1" + upath "^1.1.1" + optionalDependencies: + fsevents "^1.2.7" + +chownr@^1.0.1, chownr@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.2.tgz#a18f1e0b269c8a6a5d3c86eb298beb14c3dd7bf6" + integrity sha512-GkfeAQh+QNy3wquu9oIZr6SS5x7wGdSgNQvD10X3r+AZr1Oys22HW8kAmDMvNg2+Dm0TeGaEuO8gFwdBXxwO8A== + +chrome-trace-event@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.2.tgz#234090ee97c7d4ad1a2c4beae27505deffc608a4" + integrity sha512-9e/zx1jw7B4CO+c/RXoCsfg/x1AfUBioy4owYH0bJprEYAx5hRFLRhWBqHAG57D0ZM4H7vxbP7bPe0VwhQRYDQ== + dependencies: + tslib "^1.9.0" + +ci-info@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" + integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== + +cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" + integrity sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q== + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +class-utils@^0.3.5: + version "0.3.6" + resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" + integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== + dependencies: + arr-union "^3.1.0" + define-property "^0.2.5" + isobject "^3.0.0" + static-extend "^0.1.1" + +cli-cursor@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" + integrity sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU= + dependencies: + restore-cursor "^2.0.0" + +cli-width@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639" + integrity sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk= + +cliui@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" + integrity sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0= + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + wrap-ansi "^2.0.0" + +cliui@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49" + integrity sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ== + dependencies: + string-width "^2.1.1" + strip-ansi "^4.0.0" + wrap-ansi "^2.0.0" + +cliui@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" + integrity sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== + dependencies: + string-width "^3.1.0" + strip-ansi "^5.2.0" + wrap-ansi "^5.1.0" + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= + +code-point-at@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c= + +coffeescript@~1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/coffeescript/-/coffeescript-1.10.0.tgz#e7aa8301917ef621b35d8a39f348dcdd1db7e33e" + integrity sha1-56qDAZF+9iGzXYo580jc3R234z4= + +collection-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" + integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA= + dependencies: + map-visit "^1.0.0" + object-visit "^1.0.0" + +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= + +colors@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63" + integrity sha1-FopHAXVran9RoSzgyXv6KMCE7WM= + +combined-stream@^1.0.6, combined-stream@~1.0.6: + version "1.0.8" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +commander@^2.11.0, commander@^2.19.0, commander@^2.20.0, commander@^2.8.1, commander@~2.20.0: + version "2.20.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422" + integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ== + +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" + integrity sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs= + +component-emitter@^1.2.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" + integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== + +compress-commons@^1.2.0: + version "1.2.2" + resolved "https://registry.yarnpkg.com/compress-commons/-/compress-commons-1.2.2.tgz#524a9f10903f3a813389b0225d27c48bb751890f" + integrity sha1-UkqfEJA/OoEzibAiXSfEi7dRiQ8= + dependencies: + buffer-crc32 "^0.2.1" + crc32-stream "^2.0.0" + normalize-path "^2.0.0" + readable-stream "^2.0.0" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + +concat-stream@^1.5.0: + version "1.6.2" + resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" + integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw== + dependencies: + buffer-from "^1.0.0" + inherits "^2.0.3" + readable-stream "^2.2.2" + typedarray "^0.0.6" + +confusing-browser-globals@^1.0.5: + version "1.0.7" + resolved "https://registry.yarnpkg.com/confusing-browser-globals/-/confusing-browser-globals-1.0.7.tgz#5ae852bd541a910e7ffb2dbb864a2d21a36ad29b" + integrity sha512-cgHI1azax5ATrZ8rJ+ODDML9Fvu67PimB6aNxBrc/QwSaDaM9eTfIEUHx3bBLJJ82ioSb+/5zfsMCCEJax3ByQ== + +console-browserify@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.1.0.tgz#f0241c45730a9fc6323b206dbf38edc741d0bb10" + integrity sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA= + dependencies: + date-now "^0.1.4" + +console-control-strings@^1.0.0, console-control-strings@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4= + +constants-browserify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" + integrity sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U= + +contains-path@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" + integrity sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo= + +content-disposition@0.5.3: + version "0.5.3" + resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.3.tgz#e130caf7e7279087c5616c2007d0485698984fbd" + integrity sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g== + dependencies: + safe-buffer "5.1.2" + +content-type@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" + integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== + +continuable-cache@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/continuable-cache/-/continuable-cache-0.3.1.tgz#bd727a7faed77e71ff3985ac93351a912733ad0f" + integrity sha1-vXJ6f67XfnH/OYWskzUakSczrQ8= + +convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.5.1: + version "1.6.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.6.0.tgz#51b537a8c43e0f04dec1993bffcdd504e758ac20" + integrity sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A== + dependencies: + safe-buffer "~5.1.1" + +cookie-signature@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" + integrity sha1-4wOogrNCzD7oylE6eZmXNNqzriw= + +cookie@0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.0.tgz#beb437e7022b3b6d49019d088665303ebe9c14ba" + integrity sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg== + +copy-concurrently@^1.0.0: + version "1.0.5" + resolved "https://registry.yarnpkg.com/copy-concurrently/-/copy-concurrently-1.0.5.tgz#92297398cae34937fcafd6ec8139c18051f0b5e0" + integrity sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A== + dependencies: + aproba "^1.1.1" + fs-write-stream-atomic "^1.0.8" + iferr "^0.1.5" + mkdirp "^0.5.1" + rimraf "^2.5.4" + run-queue "^1.0.0" + +copy-descriptor@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" + integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= + +core-js-compat@^3.1.1: + version "3.1.4" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.1.4.tgz#e4d0c40fbd01e65b1d457980fe4112d4358a7408" + integrity sha512-Z5zbO9f1d0YrJdoaQhphVAnKPimX92D6z8lCGphH89MNRxlL1prI9ExJPqVwP0/kgkQCv8c4GJGT8X16yUncOg== + dependencies: + browserslist "^4.6.2" + core-js-pure "3.1.4" + semver "^6.1.1" + +core-js-pure@3.1.4: + version "3.1.4" + resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.1.4.tgz#5fa17dc77002a169a3566cc48dc774d2e13e3769" + integrity sha512-uJ4Z7iPNwiu1foygbcZYJsJs1jiXrTTCvxfLDXNhI/I+NHbSIEyr548y4fcsCEyWY0XgfAG/qqaunJ1SThHenA== + +core-js@^2.4.0, core-js@^2.5.0: + version "2.6.9" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.9.tgz#6b4b214620c834152e179323727fc19741b084f2" + integrity sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A== + +core-util-is@1.0.2, core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= + +cosmiconfig@^5.0.5: + version "5.2.1" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a" + integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== + dependencies: + import-fresh "^2.0.0" + is-directory "^0.3.1" + js-yaml "^3.13.1" + parse-json "^4.0.0" + +crc32-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/crc32-stream/-/crc32-stream-2.0.0.tgz#e3cdd3b4df3168dd74e3de3fbbcb7b297fe908f4" + integrity sha1-483TtN8xaN10494/u8t7KX/pCPQ= + dependencies: + crc "^3.4.4" + readable-stream "^2.0.0" + +crc@^3.4.4: + version "3.8.0" + resolved "https://registry.yarnpkg.com/crc/-/crc-3.8.0.tgz#ad60269c2c856f8c299e2c4cc0de4556914056c6" + integrity sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ== + dependencies: + buffer "^5.1.0" + +create-ecdh@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.3.tgz#c9111b6f33045c4697f144787f9254cdc77c45ff" + integrity sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw== + dependencies: + bn.js "^4.1.0" + elliptic "^6.0.0" + +create-hash@^1.1.0, create-hash@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" + integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg== + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + md5.js "^1.3.4" + ripemd160 "^2.0.1" + sha.js "^2.4.0" + +create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: + version "1.1.7" + resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff" + integrity sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg== + dependencies: + cipher-base "^1.0.3" + create-hash "^1.1.0" + inherits "^2.0.1" + ripemd160 "^2.0.0" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +cross-spawn@^0.2.3: + version "0.2.9" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-0.2.9.tgz#bd67f96c07efb6303b7fe94c1e979f88478e0a39" + integrity sha1-vWf5bAfvtjA7f+lMHpefiEeOCjk= + dependencies: + lru-cache "^2.5.0" + +cross-spawn@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-3.0.1.tgz#1256037ecb9f0c5f79e3d6ef135e30770184b982" + integrity sha1-ElYDfsufDF9549bvE14wdwGEuYI= + dependencies: + lru-cache "^4.0.1" + which "^1.2.9" + +cross-spawn@^6.0.0, cross-spawn@^6.0.5: + version "6.0.5" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" + integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== + dependencies: + nice-try "^1.0.4" + path-key "^2.0.1" + semver "^5.5.0" + shebang-command "^1.2.0" + which "^1.2.9" + +crypto-browserify@^3.11.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" + integrity sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg== + dependencies: + browserify-cipher "^1.0.0" + browserify-sign "^4.0.0" + create-ecdh "^4.0.0" + create-hash "^1.1.0" + create-hmac "^1.1.0" + diffie-hellman "^5.0.0" + inherits "^2.0.1" + pbkdf2 "^3.0.3" + public-encrypt "^4.0.0" + randombytes "^2.0.0" + randomfill "^1.0.3" + +csproj2ts@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/csproj2ts/-/csproj2ts-1.1.0.tgz#e6a8c20464b0031a16a219431ce5e4017fc780d5" + integrity sha512-sk0RTT51t4lUNQ7UfZrqjQx7q4g0m3iwNA6mvyh7gLsgQYvwKzfdyoAgicC9GqJvkoIkU0UmndV9c7VZ8pJ45Q== + dependencies: + es6-promise "^4.1.1" + lodash "^4.17.4" + semver "^5.4.1" + xml2js "^0.4.19" + +css-select@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/css-select/-/css-select-1.2.0.tgz#2b3a110539c5355f1cd8d314623e870b121ec858" + integrity sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg= + dependencies: + boolbase "~1.0.0" + css-what "2.1" + domutils "1.5.1" + nth-check "~1.0.1" + +css-what@2.1: + version "2.1.3" + resolved "https://registry.yarnpkg.com/css-what/-/css-what-2.1.3.tgz#a6d7604573365fe74686c3f311c56513d88285f2" + integrity sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg== + +css.escape@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/css.escape/-/css.escape-1.5.1.tgz#42e27d4fa04ae32f931a4b4d4191fa9cddee97cb" + integrity sha1-QuJ9T6BK4y+TGktNQZH6nN3ul8s= + +css@^2.2.3: + version "2.2.4" + resolved "https://registry.yarnpkg.com/css/-/css-2.2.4.tgz#c646755c73971f2bba6a601e2cf2fd71b1298929" + integrity sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw== + dependencies: + inherits "^2.0.3" + source-map "^0.6.1" + source-map-resolve "^0.5.2" + urix "^0.1.0" + +cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0", cssom@^0.3.4, cssom@~0.3.6: + version "0.3.8" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" + integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== + +cssstyle@^1.0.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-1.4.0.tgz#9d31328229d3c565c61e586b02041a28fccdccf1" + integrity sha512-GBrLZYZ4X4x6/QEoBnIrqb8B/f5l4+8me2dkom/j1Gtbxy0kBv6OGzKuAsGM75bkGwGAFkt56Iwg28S3XTZgSA== + dependencies: + cssom "0.3.x" + +cssstyle@^1.1.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-1.3.0.tgz#c36c466f7037fd30f03baa271b65f0f17b50585c" + integrity sha512-wXsoRfsRfsLVNaVzoKdqvEmK/5PFaEXNspVT22Ots6K/cnJdpoDKuQFw+qlMiXnmaif1OgeC466X1zISgAOcGg== + dependencies: + cssom "~0.3.6" + +currently-unhandled@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea" + integrity sha1-mI3zP+qxke95mmE2nddsF635V+o= + dependencies: + array-find-index "^1.0.1" + +cyclist@~0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-0.2.2.tgz#1b33792e11e914a2fd6d6ed6447464444e5fa640" + integrity sha1-GzN5LhHpFKL9bW7WRHRkRE5fpkA= + +damerau-levenshtein@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.5.tgz#780cf7144eb2e8dbd1c3bb83ae31100ccc31a414" + integrity sha512-CBCRqFnpu715iPmw1KrdOrzRqbdFwQTwAWyyyYS42+iAgHCuXZ+/TdMgQkUENPomxEz9z1BEzuQU2Xw0kUuAgA== + +dargs@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/dargs/-/dargs-4.1.0.tgz#03a9dbb4b5c2f139bf14ae53f0b8a2a6a86f4e17" + integrity sha1-A6nbtLXC8Tm/FK5T8LiipqhvThc= + dependencies: + number-is-nan "^1.0.0" + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + integrity sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA= + dependencies: + assert-plus "^1.0.0" + +data-urls@^1.0.0, data-urls@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-1.1.0.tgz#15ee0582baa5e22bb59c77140da8f9c76963bbfe" + integrity sha512-YTWYI9se1P55u58gL5GkQHW4P6VJBJ5iBT+B5a7i2Tjadhv52paJG0qHX4A0OR6/t52odI64KP2YvFpkDOi3eQ== + dependencies: + abab "^2.0.0" + whatwg-mimetype "^2.2.0" + whatwg-url "^7.0.0" + +date-now@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" + integrity sha1-6vQ5/U1ISK105cx9vvIAZyueNFs= + +dateformat@~1.0.12: + version "1.0.12" + resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-1.0.12.tgz#9f124b67594c937ff706932e4a642cca8dbbfee9" + integrity sha1-nxJLZ1lMk3/3BpMuSmQsyo27/uk= + dependencies: + get-stdin "^4.0.1" + meow "^3.3.0" + +debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +debug@^3.1.0, debug@^3.2.6: + version "3.2.6" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b" + integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ== + dependencies: + ms "^2.1.1" + +debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" + integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== + dependencies: + ms "^2.1.1" + +decamelize@^1.1.1, decamelize@^1.1.2, decamelize@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= + +decode-uri-component@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" + integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= + +decompress-response@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3" + integrity sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M= + dependencies: + mimic-response "^1.0.0" + +deep-extend@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" + integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== + +deep-for-each@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/deep-for-each/-/deep-for-each-2.0.3.tgz#640b17b88c69892e33caba853004aa89ce00f5c4" + integrity sha512-Y9mu+rplGcNZ7veer+5rqcdI9w3aPb7/WyE/nYnsuPevaE2z5YuC2u7/Gz/hIKsa0zo8sE8gKoBimSNsO/sr+A== + dependencies: + lodash.isplainobject "^4.0.6" + +deep-is@~0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= + +define-properties@^1.1.2, define-properties@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" + integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== + dependencies: + object-keys "^1.0.12" + +define-property@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" + integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY= + dependencies: + is-descriptor "^0.1.0" + +define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" + integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY= + dependencies: + is-descriptor "^1.0.0" + +define-property@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" + integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== + dependencies: + is-descriptor "^1.0.2" + isobject "^3.0.1" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + integrity sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o= + +depd@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" + integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak= + +des.js@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.0.tgz#c074d2e2aa6a8a9a07dbd61f9a15c2cd83ec8ecc" + integrity sha1-wHTS4qpqipoH29YfmhXCzYPsjsw= + dependencies: + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +destroy@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" + integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA= + +detect-file@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/detect-file/-/detect-file-1.0.0.tgz#f0d66d03672a825cb1b73bdb3fe62310c8e552b7" + integrity sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc= + +detect-indent@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" + integrity sha1-920GQ1LN9Docts5hnE7jqUdd4gg= + dependencies: + repeating "^2.0.0" + +detect-libc@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-0.2.0.tgz#47fdf567348a17ec25fcbf0b9e446348a76f9fb5" + integrity sha1-R/31ZzSKF+wl/L8LnkRjSKdvn7U= + +detect-libc@^1.0.2, detect-libc@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" + integrity sha1-+hN8S9aY7fVc1c0CrFWfkaTEups= + +detect-newline@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" + integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= + +diff-sequences@^24.3.0, diff-sequences@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-24.9.0.tgz#5715d6244e2aa65f48bba0bc972db0b0b11e95b5" + integrity sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew== + +diffie-hellman@^5.0.0: + version "5.0.3" + resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875" + integrity sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg== + dependencies: + bn.js "^4.1.0" + miller-rabin "^4.0.0" + randombytes "^2.0.0" + +discontinuous-range@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/discontinuous-range/-/discontinuous-range-1.0.0.tgz#e38331f0844bba49b9a9cb71c771585aab1bc65a" + integrity sha1-44Mx8IRLukm5qctxx3FYWqsbxlo= + +doctrine@1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" + integrity sha1-N53Ocw9hZvds76TmcHoVmwLFpvo= + dependencies: + esutils "^2.0.2" + isarray "^1.0.0" + +doctrine@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" + integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== + dependencies: + esutils "^2.0.2" + +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== + dependencies: + esutils "^2.0.2" + +dom-serializer@0, dom-serializer@~0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.1.1.tgz#1ec4059e284babed36eec2941d4a970a189ce7c0" + integrity sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA== + dependencies: + domelementtype "^1.3.0" + entities "^1.1.1" + +domain-browser@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" + integrity sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA== + +domelementtype@1, domelementtype@^1.3.0, domelementtype@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.1.tgz#d048c44b37b0d10a7f2a3d5fee3f4333d790481f" + integrity sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w== + +domexception@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" + integrity sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug== + dependencies: + webidl-conversions "^4.0.2" + +domhandler@^2.3.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-2.4.2.tgz#8805097e933d65e85546f726d60f5eb88b44f803" + integrity sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA== + dependencies: + domelementtype "1" + +domutils@1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.5.1.tgz#dcd8488a26f563d61079e48c9f7b7e32373682cf" + integrity sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8= + dependencies: + dom-serializer "0" + domelementtype "1" + +domutils@^1.5.1: + version "1.7.0" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.7.0.tgz#56ea341e834e06e6748af7a1cb25da67ea9f8c2a" + integrity sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg== + dependencies: + dom-serializer "0" + domelementtype "1" + +duplexer@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1" + integrity sha1-rOb/gIwc5mtX0ev5eXessCM0z8E= + +duplexify@^3.4.2, duplexify@^3.6.0: + version "3.7.1" + resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-3.7.1.tgz#2a4df5317f6ccfd91f86d6fd25d8d8a103b88309" + integrity sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g== + dependencies: + end-of-stream "^1.0.0" + inherits "^2.0.1" + readable-stream "^2.0.0" + stream-shift "^1.0.0" + +ecc-jsbn@~0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" + integrity sha1-OoOpBOVDUyh4dMVkt1SThoSamMk= + dependencies: + jsbn "~0.1.0" + safer-buffer "^2.1.0" + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= + +electron-to-chromium@^1.3.191: + version "1.3.191" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.191.tgz#c451b422cd8b2eab84dedabab5abcae1eaefb6f0" + integrity sha512-jasjtY5RUy/TOyiUYM2fb4BDaPZfm6CXRFeJDMfFsXYADGxUN49RBqtgB7EL2RmJXeIRUk9lM1U6A5yk2YJMPQ== + +elliptic@^6.0.0: + version "6.5.0" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.0.tgz#2b8ed4c891b7de3200e14412a5b8248c7af505ca" + integrity sha512-eFOJTMyCYb7xtE/caJ6JJu+bhi67WCYNbkGSknu20pmM8Ke/bqOfdnZWxyoGN26JgfxTbXrsCkEw4KheCT/KGg== + dependencies: + bn.js "^4.4.0" + brorand "^1.0.1" + hash.js "^1.0.0" + hmac-drbg "^1.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.0" + +emoji-regex@^7.0.1, emoji-regex@^7.0.2: + version "7.0.3" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" + integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== + +emojis-list@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" + integrity sha1-TapNnbAPmBmIDHn6RXrlsJof04k= + +encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k= + +end-of-stream@^1.0.0, end-of-stream@^1.1.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.1.tgz#ed29634d19baba463b6ce6b80a37213eab71ec43" + integrity sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q== + dependencies: + once "^1.4.0" + +enhanced-resolve@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-4.1.0.tgz#41c7e0bfdfe74ac1ffe1e57ad6a5c6c9f3742a7f" + integrity sha512-F/7vkyTtyc/llOIn8oWclcB25KdRaiPBpZYDgJHgh/UHtpgT2p2eldQgtQnLtUvfMKPKxbRaQM/hHkvLHt1Vng== + dependencies: + graceful-fs "^4.1.2" + memory-fs "^0.4.0" + tapable "^1.0.0" + +entities@^1.1.1, entities@~1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56" + integrity sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w== + +enzyme-adapter-react-16@^1.11.2: + version "1.14.0" + resolved "https://registry.yarnpkg.com/enzyme-adapter-react-16/-/enzyme-adapter-react-16-1.14.0.tgz#204722b769172bcf096cb250d33e6795c1f1858f" + integrity sha512-7PcOF7pb4hJUvjY7oAuPGpq3BmlCig3kxXGi2kFx0YzJHppqX1K8IIV9skT1IirxXlu8W7bneKi+oQ10QRnhcA== + dependencies: + enzyme-adapter-utils "^1.12.0" + has "^1.0.3" + object.assign "^4.1.0" + object.values "^1.1.0" + prop-types "^15.7.2" + react-is "^16.8.6" + react-test-renderer "^16.0.0-0" + semver "^5.7.0" + +enzyme-adapter-utils@^1.12.0: + version "1.12.0" + resolved "https://registry.yarnpkg.com/enzyme-adapter-utils/-/enzyme-adapter-utils-1.12.0.tgz#96e3730d76b872f593e54ce1c51fa3a451422d93" + integrity sha512-wkZvE0VxcFx/8ZsBw0iAbk3gR1d9hK447ebnSYBf95+r32ezBq+XDSAvRErkc4LZosgH8J7et7H7/7CtUuQfBA== + dependencies: + airbnb-prop-types "^2.13.2" + function.prototype.name "^1.1.0" + object.assign "^4.1.0" + object.fromentries "^2.0.0" + prop-types "^15.7.2" + semver "^5.6.0" + +enzyme-to-json@^3.3.5: + version "3.3.5" + resolved "https://registry.yarnpkg.com/enzyme-to-json/-/enzyme-to-json-3.3.5.tgz#f8eb82bd3d5941c9d8bc6fd9140030777d17d0af" + integrity sha512-DmH1wJ68HyPqKSYXdQqB33ZotwfUhwQZW3IGXaNXgR69Iodaoj8TF/D9RjLdz4pEhGq2Tx2zwNUIjBuqoZeTgA== + dependencies: + lodash "^4.17.4" + +enzyme@^3.9.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/enzyme/-/enzyme-3.10.0.tgz#7218e347c4a7746e133f8e964aada4a3523452f6" + integrity sha512-p2yy9Y7t/PFbPoTvrWde7JIYB2ZyGC+NgTNbVEGvZ5/EyoYSr9aG/2rSbVvyNvMHEhw9/dmGUJHWtfQIEiX9pg== + dependencies: + array.prototype.flat "^1.2.1" + cheerio "^1.0.0-rc.2" + function.prototype.name "^1.1.0" + has "^1.0.3" + html-element-map "^1.0.0" + is-boolean-object "^1.0.0" + is-callable "^1.1.4" + is-number-object "^1.0.3" + is-regex "^1.0.4" + is-string "^1.0.4" + is-subset "^0.1.1" + lodash.escape "^4.0.1" + lodash.isequal "^4.5.0" + object-inspect "^1.6.0" + object-is "^1.0.1" + object.assign "^4.1.0" + object.entries "^1.0.4" + object.values "^1.0.4" + raf "^3.4.0" + rst-selector-parser "^2.2.3" + string.prototype.trim "^1.1.2" + +errno@^0.1.3, errno@~0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618" + integrity sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg== + dependencies: + prr "~1.0.1" + +error-ex@^1.2.0, error-ex@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" + integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== + dependencies: + is-arrayish "^0.2.1" + +error@^7.0.0: + version "7.0.2" + resolved "https://registry.yarnpkg.com/error/-/error-7.0.2.tgz#a5f75fff4d9926126ddac0ea5dc38e689153cb02" + integrity sha1-pfdf/02ZJhJt2sDqXcOOaJFTywI= + dependencies: + string-template "~0.2.1" + xtend "~4.0.0" + +es-abstract@^1.10.0, es-abstract@^1.11.0, es-abstract@^1.12.0, es-abstract@^1.13.0, es-abstract@^1.5.0, es-abstract@^1.7.0: + version "1.13.0" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.13.0.tgz#ac86145fdd5099d8dd49558ccba2eaf9b88e24e9" + integrity sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg== + dependencies: + es-to-primitive "^1.2.0" + function-bind "^1.1.1" + has "^1.0.3" + is-callable "^1.1.4" + is-regex "^1.0.4" + object-keys "^1.0.12" + +es-abstract@^1.5.1: + version "1.14.2" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.14.2.tgz#7ce108fad83068c8783c3cdf62e504e084d8c497" + integrity sha512-DgoQmbpFNOofkjJtKwr87Ma5EW4Dc8fWhD0R+ndq7Oc456ivUfGOOP6oAZTTKl5/CcNMP+EN+e3/iUzgE0veZg== + dependencies: + es-to-primitive "^1.2.0" + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.0" + is-callable "^1.1.4" + is-regex "^1.0.4" + object-inspect "^1.6.0" + object-keys "^1.1.1" + string.prototype.trimleft "^2.0.0" + string.prototype.trimright "^2.0.0" + +es-to-primitive@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.0.tgz#edf72478033456e8dda8ef09e00ad9650707f377" + integrity sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg== + dependencies: + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" + +es6-promise@^4.1.1: + version "4.2.8" + resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a" + integrity sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w== + +es6-promise@~0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-0.1.2.tgz#f112c29fea5a0998539fcb6a2fd21443d28f05f7" + integrity sha1-8RLCn+paCZhTn8tqL9IUQ9KPBfc= + +escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg= + +escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= + +escodegen@^1.11.0: + version "1.11.1" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.11.1.tgz#c485ff8d6b4cdb89e27f4a856e91f118401ca510" + integrity sha512-JwiqFD9KdGVVpeuRa68yU3zZnBEOcPs0nKW7wZzXky8Z7tffdYUHbe11bPCV5jYlK6DVdKLWLm0f5I/QlL0Kmw== + dependencies: + esprima "^3.1.3" + estraverse "^4.2.0" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.6.1" + +escodegen@^1.9.1: + version "1.12.0" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.12.0.tgz#f763daf840af172bb3a2b6dd7219c0e17f7ff541" + integrity sha512-TuA+EhsanGcme5T3R0L80u4t8CpbXQjegRmf7+FPTJrtCTErXFeelblRgHQa1FofEzqYYJmJ/OqjTwREp9qgmg== + dependencies: + esprima "^3.1.3" + estraverse "^4.2.0" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.6.1" + +eslint-config-airbnb-base@^13.1.0, eslint-config-airbnb-base@^13.2.0: + version "13.2.0" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-13.2.0.tgz#f6ea81459ff4dec2dda200c35f1d8f7419d57943" + integrity sha512-1mg/7eoB4AUeB0X1c/ho4vb2gYkNH8Trr/EgCT/aGmKhhG+F6vF5s8+iRBlWAzFIAphxIdp3YfEKgEl0f9Xg+w== + dependencies: + confusing-browser-globals "^1.0.5" + object.assign "^4.1.0" + object.entries "^1.1.0" + +eslint-config-airbnb@^17.1.0: + version "17.1.1" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-17.1.1.tgz#2272e0b86bb1e2b138cdf88d07a3b6f4cda3d626" + integrity sha512-xCu//8a/aWqagKljt+1/qAM62BYZeNq04HmdevG5yUGWpja0I/xhqd6GdLRch5oetEGFiJAnvtGuTEAese53Qg== + dependencies: + eslint-config-airbnb-base "^13.2.0" + object.assign "^4.1.0" + object.entries "^1.1.0" + +eslint-import-resolver-node@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz#58f15fb839b8d0576ca980413476aab2472db66a" + integrity sha512-sfmTqJfPSizWu4aymbPr4Iidp5yKm8yDkHp+Ir3YiTHiiDfxh69mOUsmiqW6RZ9zRXFaF64GtYmN7e+8GHBv6Q== + dependencies: + debug "^2.6.9" + resolve "^1.5.0" + +eslint-module-utils@^2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.4.0.tgz#8b93499e9b00eab80ccb6614e69f03678e84e09a" + integrity sha512-14tltLm38Eu3zS+mt0KvILC3q8jyIAH518MlG+HO0p+yK885Lb1UHTY/UgR91eOyGdmxAPb+OLoW4znqIT6Ndw== + dependencies: + debug "^2.6.8" + pkg-dir "^2.0.0" + +eslint-plugin-import@^2.17.1: + version "2.18.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.18.0.tgz#7a5ba8d32622fb35eb9c8db195c2090bd18a3678" + integrity sha512-PZpAEC4gj/6DEMMoU2Df01C5c50r7zdGIN52Yfi7CvvWaYssG7Jt5R9nFG5gmqodxNOz9vQS87xk6Izdtpdrig== + dependencies: + array-includes "^3.0.3" + contains-path "^0.1.0" + debug "^2.6.9" + doctrine "1.5.0" + eslint-import-resolver-node "^0.3.2" + eslint-module-utils "^2.4.0" + has "^1.0.3" + lodash "^4.17.11" + minimatch "^3.0.4" + read-pkg-up "^2.0.0" + resolve "^1.11.0" + +eslint-plugin-jsx-a11y@^6.1.1: + version "6.2.3" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.2.3.tgz#b872a09d5de51af70a97db1eea7dc933043708aa" + integrity sha512-CawzfGt9w83tyuVekn0GDPU9ytYtxyxyFZ3aSWROmnRRFQFT2BiPJd7jvRdzNDi6oLWaS2asMeYSNMjWTV4eNg== + dependencies: + "@babel/runtime" "^7.4.5" + aria-query "^3.0.0" + array-includes "^3.0.3" + ast-types-flow "^0.0.7" + axobject-query "^2.0.2" + damerau-levenshtein "^1.0.4" + emoji-regex "^7.0.2" + has "^1.0.3" + jsx-ast-utils "^2.2.1" + +eslint-plugin-react@^7.11.0: + version "7.14.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.14.2.tgz#94c193cc77a899ac0ecbb2766fbef88685b7ecc1" + integrity sha512-jZdnKe3ip7FQOdjxks9XPN0pjUKZYq48OggNMd16Sk+8VXx6JOvXmlElxROCgp7tiUsTsze3jd78s/9AFJP2mA== + dependencies: + array-includes "^3.0.3" + doctrine "^2.1.0" + has "^1.0.3" + jsx-ast-utils "^2.1.0" + object.entries "^1.1.0" + object.fromentries "^2.0.0" + object.values "^1.1.0" + prop-types "^15.7.2" + resolve "^1.10.1" + +eslint-scope@^4.0.0, eslint-scope@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848" + integrity sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg== + dependencies: + esrecurse "^4.1.0" + estraverse "^4.1.1" + +eslint-utils@^1.3.1: + version "1.4.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.0.tgz#e2c3c8dba768425f897cf0f9e51fe2e241485d4c" + integrity sha512-7ehnzPaP5IIEh1r1tkjuIrxqhNkzUJa9z3R92tLJdZIVdWaczEhr3EbhGtsMrVxi1KeR8qA7Off6SWc5WNQqyQ== + dependencies: + eslint-visitor-keys "^1.0.0" + +eslint-visitor-keys@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d" + integrity sha512-qzm/XxIbxm/FHyH341ZrbnMUpe+5Bocte9xkmFMzPMjRaZMcXww+MpBptFvtU+79L362nqiLhekCxCxDPaUMBQ== + +eslint@^5.16.0: + version "5.16.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-5.16.0.tgz#a1e3ac1aae4a3fbd8296fcf8f7ab7314cbb6abea" + integrity sha512-S3Rz11i7c8AA5JPv7xAH+dOyq/Cu/VXHiHXBPOU1k/JAM5dXqQPt3qcrhpHSorXmrpu2g0gkIBVXAqCpzfoZIg== + dependencies: + "@babel/code-frame" "^7.0.0" + ajv "^6.9.1" + chalk "^2.1.0" + cross-spawn "^6.0.5" + debug "^4.0.1" + doctrine "^3.0.0" + eslint-scope "^4.0.3" + eslint-utils "^1.3.1" + eslint-visitor-keys "^1.0.0" + espree "^5.0.1" + esquery "^1.0.1" + esutils "^2.0.2" + file-entry-cache "^5.0.1" + functional-red-black-tree "^1.0.1" + glob "^7.1.2" + globals "^11.7.0" + ignore "^4.0.6" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + inquirer "^6.2.2" + js-yaml "^3.13.0" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.3.0" + lodash "^4.17.11" + minimatch "^3.0.4" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + optionator "^0.8.2" + path-is-inside "^1.0.2" + progress "^2.0.0" + regexpp "^2.0.1" + semver "^5.5.1" + strip-ansi "^4.0.0" + strip-json-comments "^2.0.1" + table "^5.2.3" + text-table "^0.2.0" + +espree@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-5.0.1.tgz#5d6526fa4fc7f0788a5cf75b15f30323e2f81f7a" + integrity sha512-qWAZcWh4XE/RwzLJejfcofscgMc9CamR6Tn1+XRXNzrvUSSbiAjGOI/fggztjIi7y9VLPqnICMIPiGyr8JaZ0A== + dependencies: + acorn "^6.0.7" + acorn-jsx "^5.0.0" + eslint-visitor-keys "^1.0.0" + +esprima@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" + integrity sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM= + +esprima@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== + +esquery@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.1.tgz#406c51658b1f5991a5f9b62b1dc25b00e3e5c708" + integrity sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA== + dependencies: + estraverse "^4.0.0" + +esrecurse@^4.1.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.1.tgz#007a3b9fdbc2b3bb87e4879ea19c92fdbd3942cf" + integrity sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ== + dependencies: + estraverse "^4.1.0" + +estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1: + version "4.2.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" + integrity sha1-De4/7TH81GlhjOc0IJn8GvoL2xM= + +estraverse@^4.2.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" + integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== + +esutils@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" + integrity sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs= + +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== + +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" + integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= + +eventemitter2@~0.4.13: + version "0.4.14" + resolved "https://registry.yarnpkg.com/eventemitter2/-/eventemitter2-0.4.14.tgz#8f61b75cde012b2e9eb284d4545583b5643b61ab" + integrity sha1-j2G3XN4BKy6esoTUVFWDtWQ7Yas= + +events@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/events/-/events-3.0.0.tgz#9a0a0dfaf62893d92b875b8f2698ca4114973e88" + integrity sha512-Dc381HFWJzEOhQ+d8pkNon++bk9h6cdAoAj4iE6Q4y6xgTzySWXlKn05/TVNpjnfRqi/X0EpJEJohPjNI3zpVA== + +evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" + integrity sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA== + dependencies: + md5.js "^1.3.4" + safe-buffer "^5.1.1" + +exec-sh@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.2.tgz#6738de2eb7c8e671d0366aea0b0db8c6f7d7391b" + integrity sha512-9sLAvzhI5nc8TpuQUh4ahMdCrWT00wPWz7j47/emR5+2qEfoZP5zzUXvx+vdx+H6ohhnsYC31iX04QLYJK8zTg== + +execa@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8" + integrity sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA== + dependencies: + cross-spawn "^6.0.0" + get-stream "^4.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" + +exit@^0.1.2, exit@~0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + integrity sha1-BjJjj42HfMghB9MKD/8aF8uhzQw= + +expand-brackets@^2.1.4: + version "2.1.4" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" + integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI= + dependencies: + debug "^2.3.3" + define-property "^0.2.5" + extend-shallow "^2.0.1" + posix-character-classes "^0.1.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +expand-template@^1.0.2: + version "1.1.1" + resolved "https://registry.yarnpkg.com/expand-template/-/expand-template-1.1.1.tgz#981f188c0c3a87d2e28f559bc541426ff94f21dd" + integrity sha512-cebqLtV8KOZfw0UI8TEFWxtczxxC1jvyUvx6H4fyp1K1FN7A4Q+uggVUlOsI1K8AGU0rwOGqP8nCapdrw8CYQg== + +expand-tilde@^2.0.0, expand-tilde@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-2.0.2.tgz#97e801aa052df02454de46b02bf621642cdc8502" + integrity sha1-l+gBqgUt8CRU3kawK/YhZCzchQI= + dependencies: + homedir-polyfill "^1.0.1" + +expect@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-24.9.0.tgz#b75165b4817074fa4a157794f46fe9f1ba15b6ca" + integrity sha512-wvVAx8XIol3Z5m9zvZXiyZOQ+sRJqNTIm6sGjdWlaZIeupQGO3WbYI+15D/AmEwZywL6wtJkbAbJtzkOfBuR0Q== + dependencies: + "@jest/types" "^24.9.0" + ansi-styles "^3.2.0" + jest-get-type "^24.9.0" + jest-matcher-utils "^24.9.0" + jest-message-util "^24.9.0" + jest-regex-util "^24.9.0" + +express@^4.16.4: + version "4.17.1" + resolved "https://registry.yarnpkg.com/express/-/express-4.17.1.tgz#4491fc38605cf51f8629d39c2b5d026f98a4c134" + integrity sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g== + dependencies: + accepts "~1.3.7" + array-flatten "1.1.1" + body-parser "1.19.0" + content-disposition "0.5.3" + content-type "~1.0.4" + cookie "0.4.0" + cookie-signature "1.0.6" + debug "2.6.9" + depd "~1.1.2" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "~1.1.2" + fresh "0.5.2" + merge-descriptors "1.0.1" + methods "~1.1.2" + on-finished "~2.3.0" + parseurl "~1.3.3" + path-to-regexp "0.1.7" + proxy-addr "~2.0.5" + qs "6.7.0" + range-parser "~1.2.1" + safe-buffer "5.1.2" + send "0.17.1" + serve-static "1.14.1" + setprototypeof "1.1.1" + statuses "~1.5.0" + type-is "~1.6.18" + utils-merge "1.0.1" + vary "~1.1.2" + +extend-shallow@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" + integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8= + dependencies: + is-extendable "^0.1.0" + +extend-shallow@^3.0.0, extend-shallow@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" + integrity sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg= + dependencies: + assign-symbols "^1.0.0" + is-extendable "^1.0.1" + +extend@^3.0.0, extend@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" + integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== + +external-editor@^3.0.3: + version "3.1.0" + resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" + integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== + dependencies: + chardet "^0.7.0" + iconv-lite "^0.4.24" + tmp "^0.0.33" + +extglob@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" + integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== + dependencies: + array-unique "^0.3.2" + define-property "^1.0.0" + expand-brackets "^2.1.4" + extend-shallow "^2.0.1" + fragment-cache "^0.2.1" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +extsprintf@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" + integrity sha1-lpGEQOMEGnpBT4xS48V06zw+HgU= + +extsprintf@^1.2.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" + integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= + +fast-deep-equal@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49" + integrity sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk= + +fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" + integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I= + +fast-levenshtein@~2.0.4: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= + +faye-websocket@~0.10.0: + version "0.10.0" + resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.10.0.tgz#4e492f8d04dfb6f89003507f6edbf2d501e7c6f4" + integrity sha1-TkkvjQTftviQA1B/btvy1QHnxvQ= + dependencies: + websocket-driver ">=0.5.1" + +fb-watchman@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" + integrity sha1-VOmr99+i8mzZsWNsWIwa/AXeXVg= + dependencies: + bser "^2.0.0" + +figgy-pudding@^3.5.1: + version "3.5.1" + resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.1.tgz#862470112901c727a0e495a80744bd5baa1d6790" + integrity sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w== + +figures@^1.0.1: + version "1.7.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e" + integrity sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4= + dependencies: + escape-string-regexp "^1.0.5" + object-assign "^4.1.0" + +figures@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" + integrity sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI= + dependencies: + escape-string-regexp "^1.0.5" + +file-entry-cache@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz#ca0f6efa6dd3d561333fb14515065c2fafdf439c" + integrity sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g== + dependencies: + flat-cache "^2.0.1" + +file-sync-cmp@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/file-sync-cmp/-/file-sync-cmp-0.1.1.tgz#a5e7a8ffbfa493b43b923bbd4ca89a53b63b612b" + integrity sha1-peeo/7+kk7Q7kju9TKiaU7Y7YSs= + +fill-range@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" + integrity sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc= + dependencies: + extend-shallow "^2.0.1" + is-number "^3.0.0" + repeat-string "^1.6.1" + to-regex-range "^2.1.0" + +fill-range@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" + integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== + dependencies: + to-regex-range "^5.0.1" + +finalhandler@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" + integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== + dependencies: + debug "2.6.9" + encodeurl "~1.0.2" + escape-html "~1.0.3" + on-finished "~2.3.0" + parseurl "~1.3.3" + statuses "~1.5.0" + unpipe "~1.0.0" + +find-cache-dir@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-2.1.0.tgz#8d0f94cd13fe43c6c7c261a0d86115ca918c05f7" + integrity sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ== + dependencies: + commondir "^1.0.1" + make-dir "^2.0.0" + pkg-dir "^3.0.0" + +find-up@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" + integrity sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8= + dependencies: + path-exists "^2.0.0" + pinkie-promise "^2.0.0" + +find-up@^2.0.0, find-up@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" + integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= + dependencies: + locate-path "^2.0.0" + +find-up@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" + integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== + dependencies: + locate-path "^3.0.0" + +findup-sync@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-2.0.0.tgz#9326b1488c22d1a6088650a86901b2d9a90a2cbc" + integrity sha1-kyaxSIwi0aYIhlCoaQGy2akKLLw= + dependencies: + detect-file "^1.0.0" + is-glob "^3.1.0" + micromatch "^3.0.4" + resolve-dir "^1.0.1" + +findup-sync@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-0.3.0.tgz#37930aa5d816b777c03445e1966cc6790a4c0b16" + integrity sha1-N5MKpdgWt3fANEXhlmzGeQpMCxY= + dependencies: + glob "~5.0.0" + +fined@^1.0.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/fined/-/fined-1.2.0.tgz#d00beccf1aa2b475d16d423b0238b713a2c4a37b" + integrity sha512-ZYDqPLGxDkDhDZBjZBb+oD1+j0rA4E0pXY50eplAAOPg2N/gUBSSk5IM1/QhPfyVo19lJ+CvXpqfvk+b2p/8Ng== + dependencies: + expand-tilde "^2.0.2" + is-plain-object "^2.0.3" + object.defaults "^1.1.0" + object.pick "^1.2.0" + parse-filepath "^1.0.1" + +flagged-respawn@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/flagged-respawn/-/flagged-respawn-1.0.1.tgz#e7de6f1279ddd9ca9aac8a5971d618606b3aab41" + integrity sha512-lNaHNVymajmk0OJMBn8fVUAU1BtDeKIqKoVhk4xAALB57aALg6b4W0MfJ/cUE0g9YBXy5XhSlPIpYIJ7HaY/3Q== + +flat-cache@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz#5d296d6f04bda44a4630a301413bdbc2ec085ec0" + integrity sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA== + dependencies: + flatted "^2.0.0" + rimraf "2.6.3" + write "1.0.3" + +flatted@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.1.tgz#69e57caa8f0eacbc281d2e2cb458d46fdb449e08" + integrity sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg== + +flopmang@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/flopmang/-/flopmang-1.0.0.tgz#22c82f12b537d5d440d5f0ad87ac39109ff31e26" + integrity sha512-WQsI7/o5g8NC/VCKbAJQcxSm77k1hd5beC0qikWOvz9iDqwKiwB0xfSGIgAOpHck00enCiJKUrzsGN775FQzdw== + dependencies: + underscore "^1.9.1" + underscore.string "^3.3.5" + +flush-write-stream@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/flush-write-stream/-/flush-write-stream-1.1.1.tgz#8dd7d873a1babc207d94ead0c2e0e44276ebf2e8" + integrity sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w== + dependencies: + inherits "^2.0.3" + readable-stream "^2.3.6" + +for-in@^1.0.1, for-in@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" + integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= + +for-own@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/for-own/-/for-own-1.0.0.tgz#c63332f415cedc4b04dbfe70cf836494c53cb44b" + integrity sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs= + dependencies: + for-in "^1.0.1" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= + +form-data@~2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" + integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.6" + mime-types "^2.1.12" + +forwarded@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" + integrity sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ= + +fragment-cache@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" + integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= + dependencies: + map-cache "^0.2.2" + +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" + integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac= + +from2@^2.1.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/from2/-/from2-2.3.0.tgz#8bfb5502bde4a4d36cfdeea007fcca21d7e382af" + integrity sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8= + dependencies: + inherits "^2.0.1" + readable-stream "^2.0.0" + +fs-constants@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" + integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow== + +fs-minipass@^1.2.5: + version "1.2.7" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.7.tgz#ccff8570841e7fe4265693da88936c55aed7f7c7" + integrity sha512-GWSSJGFy4e9GUeCcbIkED+bgAoFyj7XF1mV8rma3QW4NIqX9Kyx79N/PF61H5udOV3aY1IaMLs6pGbH71nlCTA== + dependencies: + minipass "^2.6.0" + +fs-readdir-recursive@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz#e32fc030a2ccee44a6b5371308da54be0b397d27" + integrity sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA== + +fs-write-stream-atomic@^1.0.8: + version "1.0.10" + resolved "https://registry.yarnpkg.com/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz#b47df53493ef911df75731e70a9ded0189db40c9" + integrity sha1-tH31NJPvkR33VzHnCp3tAYnbQMk= + dependencies: + graceful-fs "^4.1.2" + iferr "^0.1.5" + imurmurhash "^0.1.4" + readable-stream "1 || 2" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + +fsevents@^1.2.7: + version "1.2.9" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.9.tgz#3f5ed66583ccd6f400b5a00db6f7e861363e388f" + integrity sha512-oeyj2H3EjjonWcFjD5NvZNE9Rqe4UW+nQBU2HNeKw0koVLEFIhtyETyAakeAM3de7Z/SW5kcA+fZUait9EApnw== + dependencies: + nan "^2.12.1" + node-pre-gyp "^0.12.0" + +fsevents@^2.0.6: + version "2.0.7" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.0.7.tgz#382c9b443c6cbac4c57187cdda23aa3bf1ccfc2a" + integrity sha512-a7YT0SV3RB+DjYcppwVDLtn13UQnmg0SWZS7ezZD0UjnLwXmy8Zm21GMVGLaFGimIqcvyMQaOJBrop8MyOp1kQ== + +fstream@^1.0.0, fstream@^1.0.12: + version "1.0.12" + resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.12.tgz#4e8ba8ee2d48be4f7d0de505455548eae5932045" + integrity sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg== + dependencies: + graceful-fs "^4.1.2" + inherits "~2.0.0" + mkdirp ">=0.5 0" + rimraf "2" + +function-bind@^1.0.2, function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== + +function.prototype.name@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.0.tgz#8bd763cc0af860a859cc5d49384d74b932cd2327" + integrity sha512-Bs0VRrTz4ghD8pTmbJQD1mZ8A/mN0ur/jGz+A6FBxPDUPkm1tNfF6bhTYPA7i7aF4lZJVr+OXTNNrnnIl58Wfg== + dependencies: + define-properties "^1.1.2" + function-bind "^1.1.1" + is-callable "^1.1.3" + +functional-red-black-tree@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" + integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= + +gauge@~2.7.3: + version "2.7.4" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" + integrity sha1-LANAXHU4w51+s3sxcCLjJfsBi/c= + dependencies: + aproba "^1.0.3" + console-control-strings "^1.0.0" + has-unicode "^2.0.0" + object-assign "^4.1.0" + signal-exit "^3.0.0" + string-width "^1.0.1" + strip-ansi "^3.0.1" + wide-align "^1.1.0" + +gaze@^1.0.0, gaze@^1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/gaze/-/gaze-1.1.3.tgz#c441733e13b927ac8c0ff0b4c3b033f28812924a" + integrity sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g== + dependencies: + globule "^1.0.0" + +get-caller-file@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" + integrity sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w== + +get-caller-file@^2.0.1: + version "2.0.5" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + +get-stdin@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" + integrity sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4= + +get-stream@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" + integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== + dependencies: + pump "^3.0.0" + +get-value@^2.0.3, get-value@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" + integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= + +getobject@~0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/getobject/-/getobject-0.1.0.tgz#047a449789fa160d018f5486ed91320b6ec7885c" + integrity sha1-BHpEl4n6Fg0Bj1SG7ZEyC27HiFw= + +getpass@^0.1.1: + version "0.1.7" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + integrity sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo= + dependencies: + assert-plus "^1.0.0" + +github-from-package@0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/github-from-package/-/github-from-package-0.0.0.tgz#97fb5d96bfde8973313f20e8288ef9a167fa64ce" + integrity sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4= + +glob-parent@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" + integrity sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4= + dependencies: + is-glob "^3.1.0" + path-dirname "^1.0.0" + +glob-parent@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.0.0.tgz#1dc99f0f39b006d3e92c2c284068382f0c20e954" + integrity sha512-Z2RwiujPRGluePM6j699ktJYxmPpJKCfpGA13jz2hmFZC7gKetzrWvg5KN3+OsIFmydGyZ1AVwERCq1w/ZZwRg== + dependencies: + is-glob "^4.0.1" + +glob@^7.0.0, glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@~7.1.1: + version "7.1.4" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" + integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@~5.0.0: + version "5.0.15" + resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1" + integrity sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E= + dependencies: + inflight "^1.0.4" + inherits "2" + minimatch "2 || 3" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@~7.0.0: + version "7.0.6" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.0.6.tgz#211bafaf49e525b8cd93260d14ab136152b3f57a" + integrity sha1-IRuvr0nlJbjNkyYNFKsTYVKz9Xo= + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.2" + once "^1.3.0" + path-is-absolute "^1.0.0" + +global-modules@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-1.0.0.tgz#6d770f0eb523ac78164d72b5e71a8877265cc3ea" + integrity sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg== + dependencies: + global-prefix "^1.0.1" + is-windows "^1.0.1" + resolve-dir "^1.0.0" + +global-prefix@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-1.0.2.tgz#dbf743c6c14992593c655568cb66ed32c0122ebe" + integrity sha1-2/dDxsFJklk8ZVVoy2btMsASLr4= + dependencies: + expand-tilde "^2.0.2" + homedir-polyfill "^1.0.1" + ini "^1.3.4" + is-windows "^1.0.1" + which "^1.2.14" + +globals@^11.1.0, globals@^11.7.0: + version "11.12.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" + integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== + +globals@^9.18.0: + version "9.18.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" + integrity sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ== + +globule@^1.0.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/globule/-/globule-1.2.1.tgz#5dffb1b191f22d20797a9369b49eab4e9839696d" + integrity sha512-g7QtgWF4uYSL5/dn71WxubOrS7JVGCnFPEnoeChJmBnyR9Mw8nGoEwOgJL/RC2Te0WhbsEUCejfH8SZNJ+adYQ== + dependencies: + glob "~7.1.1" + lodash "~4.17.10" + minimatch "~3.0.2" + +graceful-fs@^4.1.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.0.tgz#8d8fdc73977cb04104721cb53666c1ca64cd328b" + integrity sha512-jpSvDPV4Cq/bgtpndIWbI5hmYxhQGHPC4d4cqBPb4DLniCfhJokdXhwhaDuLBGLQdvvRum/UiX6ECVIPvDXqdg== + +graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.2.tgz#6f0952605d0140c1cfdb138ed005775b92d67b02" + integrity sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q== + +growly@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" + integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE= + +grunt-babel@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/grunt-babel/-/grunt-babel-8.0.0.tgz#92ef63aafadf938c488dc2f926ac9846e0c93d1b" + integrity sha512-WuiZFvGzcyzlEoPIcY1snI234ydDWeWWV5bpnB7PZsOLHcDsxWKnrR1rMWEUsbdVPPjvIirwFNsuo4CbJmsdFQ== + +grunt-cli@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/grunt-cli/-/grunt-cli-1.3.2.tgz#60f12d12c1b5aae94ae3469c6b5fe24e960014e8" + integrity sha512-8OHDiZZkcptxVXtMfDxJvmN7MVJNE8L/yIcPb4HB7TlyFD1kDvjHrb62uhySsU14wJx9ORMnTuhRMQ40lH/orQ== + dependencies: + grunt-known-options "~1.1.0" + interpret "~1.1.0" + liftoff "~2.5.0" + nopt "~4.0.1" + v8flags "~3.1.1" + +grunt-cli@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/grunt-cli/-/grunt-cli-1.2.0.tgz#562b119ebb069ddb464ace2845501be97b35b6a8" + integrity sha1-VisRnrsGndtGSs4oRVAb6Xs1tqg= + dependencies: + findup-sync "~0.3.0" + grunt-known-options "~1.1.0" + nopt "~3.0.6" + resolve "~1.1.0" + +grunt-contrib-clean@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/grunt-contrib-clean/-/grunt-contrib-clean-2.0.0.tgz#3be7ca480da4b740aa5e9d863e2f7e8b24f8a68b" + integrity sha512-g5ZD3ORk6gMa5ugZosLDQl3dZO7cI3R14U75hTM+dVLVxdMNJCPVmwf9OUt4v4eWgpKKWWoVK9DZc1amJp4nQw== + dependencies: + async "^2.6.1" + rimraf "^2.6.2" + +grunt-contrib-compress@^1.4.3: + version "1.5.0" + resolved "https://registry.yarnpkg.com/grunt-contrib-compress/-/grunt-contrib-compress-1.5.0.tgz#ba5f80e22acf192897ce43cb60250cab2cb1f09b" + integrity sha512-RcCyetnvTJ7jvnDCSm05wOndAd00HWZTHeVGDVVmCM+K/PEivL0yx8vKyi8uzy0492l2dJgtzR0Ucid7roKg6A== + dependencies: + archiver "^1.3.0" + chalk "^1.1.1" + lodash "^4.7.0" + pretty-bytes "^4.0.2" + stream-buffers "^2.1.0" + optionalDependencies: + iltorb "^1.3.10" + +grunt-contrib-concat@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/grunt-contrib-concat/-/grunt-contrib-concat-1.0.1.tgz#61509863084e871d7e86de48c015259ed97745bd" + integrity sha1-YVCYYwhOhx1+ht5IwBUlntl3Rb0= + dependencies: + chalk "^1.0.0" + source-map "^0.5.3" + +grunt-contrib-copy@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/grunt-contrib-copy/-/grunt-contrib-copy-1.0.0.tgz#7060c6581e904b8ab0d00f076e0a8f6e3e7c3573" + integrity sha1-cGDGWB6QS4qw0A8HbgqPbj58NXM= + dependencies: + chalk "^1.1.1" + file-sync-cmp "^0.1.0" + +grunt-contrib-sass@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/grunt-contrib-sass/-/grunt-contrib-sass-1.0.0.tgz#806838251cbc0e1a94d64d515cdd34cf674d701b" + integrity sha1-gGg4JRy8DhqU1k1RXN00z2dNcBs= + dependencies: + async "^0.9.0" + chalk "^1.0.0" + cross-spawn "^0.2.3" + dargs "^4.0.0" + which "^1.0.5" + +grunt-contrib-uglify@~4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/grunt-contrib-uglify/-/grunt-contrib-uglify-4.0.1.tgz#68a7b62fa045ce8e2c7574d1bdcd3b96b8a686b1" + integrity sha512-dwf8/+4uW1+7pH72WButOEnzErPGmtUvc8p08B0eQS/6ON0WdeQu0+WFeafaPTbbY1GqtS25lsHWaDeiTQNWPg== + dependencies: + chalk "^2.4.1" + maxmin "^2.1.0" + uglify-js "^3.5.0" + uri-path "^1.0.0" + +grunt-contrib-watch@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/grunt-contrib-watch/-/grunt-contrib-watch-1.1.0.tgz#c143ca5b824b288a024b856639a5345aedb78ed4" + integrity sha512-yGweN+0DW5yM+oo58fRu/XIRrPcn3r4tQx+nL7eMRwjpvk+rQY6R8o94BPK0i2UhTg9FN21hS+m8vR8v9vXfeg== + dependencies: + async "^2.6.0" + gaze "^1.1.0" + lodash "^4.17.10" + tiny-lr "^1.1.1" + +grunt-git@^1.0.14: + version "1.0.14" + resolved "https://registry.yarnpkg.com/grunt-git/-/grunt-git-1.0.14.tgz#6d27d76c243d9ff71a562ec6c9899b14d95b930c" + integrity sha512-cjavNWMysd7qnNMfGArtSdRRbtCUkvDoY/IM0MRcQJCGEEr7B/Onbz53ke7uM/EZroXEOMWtdc647m8TnevoaQ== + dependencies: + flopmang "^1.0.0" + +grunt-known-options@~1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/grunt-known-options/-/grunt-known-options-1.1.1.tgz#6cc088107bd0219dc5d3e57d91923f469059804d" + integrity sha512-cHwsLqoighpu7TuYj5RonnEuxGVFnztcUqTqp5rXFGYL4OuPFofwC4Ycg7n9fYwvK6F5WbYgeVOwph9Crs2fsQ== + +grunt-legacy-log-utils@~2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/grunt-legacy-log-utils/-/grunt-legacy-log-utils-2.0.1.tgz#d2f442c7c0150065d9004b08fd7410d37519194e" + integrity sha512-o7uHyO/J+i2tXG8r2bZNlVk20vlIFJ9IEYyHMCQGfWYru8Jv3wTqKZzvV30YW9rWEjq0eP3cflQ1qWojIe9VFA== + dependencies: + chalk "~2.4.1" + lodash "~4.17.10" + +grunt-legacy-log@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/grunt-legacy-log/-/grunt-legacy-log-2.0.0.tgz#c8cd2c6c81a4465b9bbf2d874d963fef7a59ffb9" + integrity sha512-1m3+5QvDYfR1ltr8hjiaiNjddxGdQWcH0rw1iKKiQnF0+xtgTazirSTGu68RchPyh1OBng1bBUjLmX8q9NpoCw== + dependencies: + colors "~1.1.2" + grunt-legacy-log-utils "~2.0.0" + hooker "~0.2.3" + lodash "~4.17.5" + +grunt-legacy-util@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/grunt-legacy-util/-/grunt-legacy-util-1.1.1.tgz#e10624e7c86034e5b870c8a8616743f0a0845e42" + integrity sha512-9zyA29w/fBe6BIfjGENndwoe1Uy31BIXxTH3s8mga0Z5Bz2Sp4UCjkeyv2tI449ymkx3x26B+46FV4fXEddl5A== + dependencies: + async "~1.5.2" + exit "~0.1.1" + getobject "~0.1.0" + hooker "~0.2.3" + lodash "~4.17.10" + underscore.string "~3.3.4" + which "~1.3.0" + +grunt-sass@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/grunt-sass/-/grunt-sass-3.0.2.tgz#b4f01567ce3df4460fcc788e9e5e4c65263425ed" + integrity sha512-Ogq4cWqBre71gZIkgxIxevgzZHSIIsrKu/5yvPDl4Mvib0A4TRTJEQUdpQ0YV1iai0DPjayz02vDJE6KUVHQ2w== + +grunt-ts@^6.0.0-beta.22: + version "6.0.0-beta.22" + resolved "https://registry.yarnpkg.com/grunt-ts/-/grunt-ts-6.0.0-beta.22.tgz#a628f6fb943b0a6e00afecaa721291611994f553" + integrity sha512-g9e+ZImQ7W38dfpwhp0+GUltXWidy3YGPfIA/IyGL5HMv6wmVmMMoSgscI5swhs2HSPf8yAvXAAJbwrouijoRg== + dependencies: + chokidar "^2.0.4" + csproj2ts "^1.1.0" + detect-indent "^4.0.0" + detect-newline "^2.1.0" + es6-promise "~0.1.1" + jsmin2 "^1.2.1" + lodash "~4.17.10" + ncp "0.5.1" + rimraf "2.2.6" + semver "^5.3.0" + strip-bom "^2.0.0" + +grunt-webpack@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/grunt-webpack/-/grunt-webpack-3.1.3.tgz#7e0a016773b105bb87718c19f308100b498ce39a" + integrity sha512-SaZ8K8lG4iTxs7ClZxOWCf3kxqS2y+Eel8SbaEGgBKwhAp6e45beIu+vhBZRLX3vonKML2kjemKsQ21REaqNFQ== + dependencies: + deep-for-each "^2.0.2" + lodash "^4.7.0" + +grunt@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/grunt/-/grunt-1.0.4.tgz#c799883945a53a3d07622e0737c8f70bfe19eb38" + integrity sha512-PYsMOrOC+MsdGEkFVwMaMyc6Ob7pKmq+deg1Sjr+vvMWp35sztfwKE7qoN51V+UEtHsyNuMcGdgMLFkBHvMxHQ== + dependencies: + coffeescript "~1.10.0" + dateformat "~1.0.12" + eventemitter2 "~0.4.13" + exit "~0.1.1" + findup-sync "~0.3.0" + glob "~7.0.0" + grunt-cli "~1.2.0" + grunt-known-options "~1.1.0" + grunt-legacy-log "~2.0.0" + grunt-legacy-util "~1.1.1" + iconv-lite "~0.4.13" + js-yaml "~3.13.0" + minimatch "~3.0.2" + mkdirp "~0.5.1" + nopt "~3.0.6" + path-is-absolute "~1.0.0" + rimraf "~2.6.2" + +gzip-size@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-3.0.0.tgz#546188e9bdc337f673772f81660464b389dce520" + integrity sha1-VGGI6b3DN/Zzdy+BZgRks4nc5SA= + dependencies: + duplexer "^0.1.1" + +handlebars@^4.1.2: + version "4.2.0" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.2.0.tgz#57ce8d2175b9bbb3d8b3cf3e4217b1aec8ddcb2e" + integrity sha512-Kb4xn5Qh1cxAKvQnzNWZ512DhABzyFNmsaJf3OAkWNa4NkaqWcNI8Tao8Tasi0/F4JD9oyG0YxuFyvyR57d+Gw== + dependencies: + neo-async "^2.6.0" + optimist "^0.6.1" + source-map "^0.6.1" + optionalDependencies: + uglify-js "^3.1.4" + +har-schema@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" + integrity sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI= + +har-validator@~5.1.0: + version "5.1.3" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.3.tgz#1ef89ebd3e4996557675eed9893110dc350fa080" + integrity sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g== + dependencies: + ajv "^6.5.5" + har-schema "^2.0.0" + +has-ansi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + integrity sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE= + dependencies: + ansi-regex "^2.0.0" + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= + +has-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44" + integrity sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q= + +has-unicode@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + integrity sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk= + +has-value@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" + integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= + dependencies: + get-value "^2.0.3" + has-values "^0.1.4" + isobject "^2.0.0" + +has-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" + integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc= + dependencies: + get-value "^2.0.6" + has-values "^1.0.0" + isobject "^3.0.0" + +has-values@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" + integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= + +has-values@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" + integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8= + dependencies: + is-number "^3.0.0" + kind-of "^4.0.0" + +has@^1.0.1, has@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== + dependencies: + function-bind "^1.1.1" + +hash-base@^3.0.0: + version "3.0.4" + resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.0.4.tgz#5fc8686847ecd73499403319a6b0a3f3f6ae4918" + integrity sha1-X8hoaEfs1zSZQDMZprCj8/auSRg= + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +hash.js@^1.0.0, hash.js@^1.0.3: + version "1.1.7" + resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" + integrity sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA== + dependencies: + inherits "^2.0.3" + minimalistic-assert "^1.0.1" + +hmac-drbg@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" + integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= + dependencies: + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" + +home-or-tmp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" + integrity sha1-42w/LSyufXRqhX440Y1fMqeILbg= + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.1" + +homedir-polyfill@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz#743298cef4e5af3e194161fbadcc2151d3a058e8" + integrity sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA== + dependencies: + parse-passwd "^1.0.0" + +hooker@~0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/hooker/-/hooker-0.2.3.tgz#b834f723cc4a242aa65963459df6d984c5d3d959" + integrity sha1-uDT3I8xKJCqmWWNFnfbZhMXT2Vk= + +hosted-git-info@^2.1.4: + version "2.8.4" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.4.tgz#44119abaf4bc64692a16ace34700fed9c03e2546" + integrity sha512-pzXIvANXEFrc5oFFXRMkbLPQ2rXRoDERwDLyrcUxGhaZhgP54BBSl9Oheh7Vv0T090cszWBxPjkQQ5Sq1PbBRQ== + +html-element-map@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/html-element-map/-/html-element-map-1.0.1.tgz#3c4fcb4874ebddfe4283b51c8994e7713782b592" + integrity sha512-BZSfdEm6n706/lBfXKWa4frZRZcT5k1cOusw95ijZsHlI+GdgY0v95h6IzO3iIDf2ROwq570YTwqNPqHcNMozw== + dependencies: + array-filter "^1.0.0" + +html-encoding-sniffer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" + integrity sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw== + dependencies: + whatwg-encoding "^1.0.1" + +htmlparser2@^3.9.1: + version "3.10.1" + resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.10.1.tgz#bd679dc3f59897b6a34bb10749c855bb53a9392f" + integrity sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ== + dependencies: + domelementtype "^1.3.1" + domhandler "^2.3.0" + domutils "^1.5.1" + entities "^1.1.1" + inherits "^2.0.1" + readable-stream "^3.1.1" + +http-errors@1.7.2: + version "1.7.2" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.2.tgz#4f5029cf13239f31036e5b2e55292bcfbcc85c8f" + integrity sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg== + dependencies: + depd "~1.1.2" + inherits "2.0.3" + setprototypeof "1.1.1" + statuses ">= 1.5.0 < 2" + toidentifier "1.0.0" + +http-errors@~1.7.2: + version "1.7.3" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.3.tgz#6c619e4f9c60308c38519498c14fbb10aacebb06" + integrity sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw== + dependencies: + depd "~1.1.2" + inherits "2.0.4" + setprototypeof "1.1.1" + statuses ">= 1.5.0 < 2" + toidentifier "1.0.0" + +"http-parser-js@>=0.4.0 <0.4.11": + version "0.4.10" + resolved "https://registry.yarnpkg.com/http-parser-js/-/http-parser-js-0.4.10.tgz#92c9c1374c35085f75db359ec56cc257cbb93fa4" + integrity sha1-ksnBN0w1CF912zWexWzCV8u5P6Q= + +http-signature@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" + integrity sha1-muzZJRFHcvPZW2WmCruPfBj7rOE= + dependencies: + assert-plus "^1.0.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +https-browserify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" + integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM= + +iconv-lite@0.4.24, iconv-lite@^0.4.24, iconv-lite@^0.4.4, iconv-lite@~0.4.13: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +ieee754@^1.1.4: + version "1.1.13" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.13.tgz#ec168558e95aa181fd87d37f55c32bbcb6708b84" + integrity sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg== + +iferr@^0.1.5: + version "0.1.5" + resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501" + integrity sha1-xg7taebY/bazEEofy8ocGS3FtQE= + +ignore-walk@^3.0.1: + version "3.0.2" + resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.2.tgz#99d83a246c196ea5c93ef9315ad7b0819c35069b" + integrity sha512-EXyErtpHbn75ZTsOADsfx6J/FPo6/5cjev46PXrcTpd8z3BoRkXgYu9/JVqrI7tusjmwCZutGeRJeU0Wo1e4Cw== + dependencies: + minimatch "^3.0.4" + +ignore@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" + integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== + +iltorb@^1.3.10: + version "1.3.10" + resolved "https://registry.yarnpkg.com/iltorb/-/iltorb-1.3.10.tgz#a0d9e4e7d52bf510741442236cbe0cc4230fc9f8" + integrity sha512-nyB4+ru1u8CQqQ6w7YjasboKN3NQTN8GH/V/eEssNRKhW6UbdxdWhB9fJ5EEdjJfezKY0qPrcwLyIcgjL8hHxA== + dependencies: + detect-libc "^0.2.0" + nan "^2.6.2" + node-gyp "^3.6.2" + prebuild-install "^2.3.0" + +import-fresh@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" + integrity sha1-2BNVwVYS04bGH53dOSLUMEgipUY= + dependencies: + caller-path "^2.0.0" + resolve-from "^3.0.0" + +import-fresh@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.1.0.tgz#6d33fa1dcef6df930fae003446f33415af905118" + integrity sha512-PpuksHKGt8rXfWEr9m9EHIpgyyaltBy8+eF6GJM0QCAxMgxCfucMF3mjecK2QsJr0amJW7gTqh5/wht0z2UhEQ== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + +import-local@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-2.0.0.tgz#55070be38a5993cf18ef6db7e961f5bee5c5a09d" + integrity sha512-b6s04m3O+s3CGSbqDIyP4R6aAwAeYlVq9+WUWep6iHa8ETRf9yei1U48C5MmfJmV9AiLYYBKPMq/W+/WRpQmCQ== + dependencies: + pkg-dir "^3.0.0" + resolve-cwd "^2.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= + +in-publish@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/in-publish/-/in-publish-2.0.0.tgz#e20ff5e3a2afc2690320b6dc552682a9c7fadf51" + integrity sha1-4g/146KvwmkDILbcVSaCqcf631E= + +indent-string@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-2.1.0.tgz#8e2d48348742121b4a8218b7a137e9a52049dc80" + integrity sha1-ji1INIdCEhtKghi3oTfppSBJ3IA= + dependencies: + repeating "^2.0.0" + +indent-string@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" + integrity sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok= + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, inherits@~2.0.1, inherits@~2.0.3: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +inherits@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" + integrity sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE= + +inherits@2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= + +ini@^1.3.4, ini@~1.3.0: + version "1.3.5" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" + integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw== + +inquirer@^6.2.2: + version "6.5.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.5.0.tgz#2303317efc9a4ea7ec2e2df6f86569b734accf42" + integrity sha512-scfHejeG/lVZSpvCXpsB4j/wQNPM5JC8kiElOI0OUTwmc1RTpXr4H32/HOlQHcZiYl2z2VElwuCVDRG8vFmbnA== + dependencies: + ansi-escapes "^3.2.0" + chalk "^2.4.2" + cli-cursor "^2.1.0" + cli-width "^2.0.0" + external-editor "^3.0.3" + figures "^2.0.0" + lodash "^4.17.12" + mute-stream "0.0.7" + run-async "^2.2.0" + rxjs "^6.4.0" + string-width "^2.1.0" + strip-ansi "^5.1.0" + through "^2.3.6" + +interpret@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.1.0.tgz#7ed1b1410c6a0e0f78cf95d3b8440c63f78b8614" + integrity sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ= + +invariant@^2.2.2, invariant@^2.2.4: + version "2.2.4" + resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" + integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== + dependencies: + loose-envify "^1.0.0" + +invert-kv@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" + integrity sha1-EEqOSqym09jNFXqO+L+rLXo//bY= + +invert-kv@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-2.0.0.tgz#7393f5afa59ec9ff5f67a27620d11c226e3eec02" + integrity sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA== + +ipaddr.js@1.9.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.0.tgz#37df74e430a0e47550fe54a2defe30d8acd95f65" + integrity sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA== + +is-absolute@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-absolute/-/is-absolute-1.0.0.tgz#395e1ae84b11f26ad1795e73c17378e48a301576" + integrity sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA== + dependencies: + is-relative "^1.0.0" + is-windows "^1.0.1" + +is-accessor-descriptor@^0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" + integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY= + dependencies: + kind-of "^3.0.2" + +is-accessor-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" + integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== + dependencies: + kind-of "^6.0.0" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= + +is-binary-path@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" + integrity sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg= + dependencies: + binary-extensions "^1.0.0" + +is-binary-path@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" + integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== + dependencies: + binary-extensions "^2.0.0" + +is-boolean-object@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.0.0.tgz#98f8b28030684219a95f375cfbd88ce3405dff93" + integrity sha1-mPiygDBoQhmpXzdc+9iM40Bd/5M= + +is-buffer@^1.1.5: + version "1.1.6" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" + integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== + +is-callable@^1.1.3, is-callable@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75" + integrity sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA== + +is-ci@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" + integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== + dependencies: + ci-info "^2.0.0" + +is-data-descriptor@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" + integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y= + dependencies: + kind-of "^3.0.2" + +is-data-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" + integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== + dependencies: + kind-of "^6.0.0" + +is-date-object@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" + integrity sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY= + +is-descriptor@^0.1.0: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" + integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== + dependencies: + is-accessor-descriptor "^0.1.6" + is-data-descriptor "^0.1.4" + kind-of "^5.0.0" + +is-descriptor@^1.0.0, is-descriptor@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" + integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== + dependencies: + is-accessor-descriptor "^1.0.0" + is-data-descriptor "^1.0.0" + kind-of "^6.0.2" + +is-directory@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" + integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE= + +is-extendable@^0.1.0, is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= + +is-extendable@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" + integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== + dependencies: + is-plain-object "^2.0.4" + +is-extglob@^2.1.0, is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= + +is-finite@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" + integrity sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko= + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + integrity sha1-754xOG8DGn8NZDr4L95QxFfvAMs= + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= + +is-generator-fn@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" + integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== + +is-glob@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" + integrity sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo= + dependencies: + is-extglob "^2.1.0" + +is-glob@^4.0.0, is-glob@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" + integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== + dependencies: + is-extglob "^2.1.1" + +is-number-object@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.3.tgz#f265ab89a9f445034ef6aff15a8f00b00f551799" + integrity sha1-8mWrian0RQNO9q/xWo8AsA9VF5k= + +is-number@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" + integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU= + dependencies: + kind-of "^3.0.2" + +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + +is-plain-obj@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" + integrity sha1-caUMhCnfync8kqOQpKA7OfzVHT4= + +is-plain-object@^2.0.3, is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== + dependencies: + isobject "^3.0.1" + +is-promise@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" + integrity sha1-eaKp7OfwlugPNtKy87wWwf9L8/o= + +is-regex@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" + integrity sha1-VRdIm1RwkbCTDglWVM7SXul+lJE= + dependencies: + has "^1.0.1" + +is-relative@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-relative/-/is-relative-1.0.0.tgz#a1bb6935ce8c5dba1e8b9754b9b2dcc020e2260d" + integrity sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA== + dependencies: + is-unc-path "^1.0.0" + +is-stream@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= + +is-string@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.4.tgz#cc3a9b69857d621e963725a24caeec873b826e64" + integrity sha1-zDqbaYV9Yh6WNyWiTK7shzuCbmQ= + +is-subset@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-subset/-/is-subset-0.1.1.tgz#8a59117d932de1de00f245fcdd39ce43f1e939a6" + integrity sha1-ilkRfZMt4d4A8kX83TnOQ/HpOaY= + +is-symbol@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.2.tgz#a055f6ae57192caee329e7a860118b497a950f38" + integrity sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw== + dependencies: + has-symbols "^1.0.0" + +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + +is-unc-path@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-unc-path/-/is-unc-path-1.0.0.tgz#d731e8898ed090a12c352ad2eaed5095ad322c9d" + integrity sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ== + dependencies: + unc-path-regex "^0.1.2" + +is-utf8@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" + integrity sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI= + +is-windows@^1.0.1, is-windows@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" + integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== + +is-wsl@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d" + integrity sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0= + +isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= + dependencies: + isarray "1.0.0" + +isobject@^3.0.0, isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= + +istanbul-lib-coverage@^2.0.2, istanbul-lib-coverage@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz#675f0ab69503fad4b1d849f736baaca803344f49" + integrity sha512-8aXznuEPCJvGnMSRft4udDRDtb1V3pkQkMMI5LI+6HuQz5oQ4J2UFn1H82raA3qJtyOLkkwVqICBQkjnGtn5mA== + +istanbul-lib-instrument@^3.0.1, istanbul-lib-instrument@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-3.3.0.tgz#a5f63d91f0bbc0c3e479ef4c5de027335ec6d630" + integrity sha512-5nnIN4vo5xQZHdXno/YDXJ0G+I3dAm4XgzfSVTPLQpj/zAV2dV6Juy0yaf10/zrJOJeHoN3fraFe+XRq2bFVZA== + dependencies: + "@babel/generator" "^7.4.0" + "@babel/parser" "^7.4.3" + "@babel/template" "^7.4.0" + "@babel/traverse" "^7.4.3" + "@babel/types" "^7.4.0" + istanbul-lib-coverage "^2.0.5" + semver "^6.0.0" + +istanbul-lib-report@^2.0.4: + version "2.0.8" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-2.0.8.tgz#5a8113cd746d43c4889eba36ab10e7d50c9b4f33" + integrity sha512-fHBeG573EIihhAblwgxrSenp0Dby6tJMFR/HvlerBsrCTD5bkUuoNtn3gVh29ZCS824cGGBPn7Sg7cNk+2xUsQ== + dependencies: + istanbul-lib-coverage "^2.0.5" + make-dir "^2.1.0" + supports-color "^6.1.0" + +istanbul-lib-source-maps@^3.0.1: + version "3.0.6" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-3.0.6.tgz#284997c48211752ec486253da97e3879defba8c8" + integrity sha512-R47KzMtDJH6X4/YW9XTx+jrLnZnscW4VpNN+1PViSYTejLVPWv7oov+Duf8YQSPyVRUvueQqz1TcsC6mooZTXw== + dependencies: + debug "^4.1.1" + istanbul-lib-coverage "^2.0.5" + make-dir "^2.1.0" + rimraf "^2.6.3" + source-map "^0.6.1" + +istanbul-reports@^2.2.6: + version "2.2.6" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-2.2.6.tgz#7b4f2660d82b29303a8fe6091f8ca4bf058da1af" + integrity sha512-SKi4rnMyLBKe0Jy2uUdx28h8oG7ph2PPuQPvIAh31d+Ci+lSiEu4C+h3oBPuJ9+mPKhOyW0M8gY4U5NM1WLeXA== + dependencies: + handlebars "^4.1.2" + +jest-changed-files@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-24.9.0.tgz#08d8c15eb79a7fa3fc98269bc14b451ee82f8039" + integrity sha512-6aTWpe2mHF0DhL28WjdkO8LyGjs3zItPET4bMSeXU6T3ub4FPMw+mcOcbdGXQOAfmLcxofD23/5Bl9Z4AkFwqg== + dependencies: + "@jest/types" "^24.9.0" + execa "^1.0.0" + throat "^4.0.0" + +jest-cli@^24.5.0: + version "24.8.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-24.8.0.tgz#b075ac914492ed114fa338ade7362a301693e989" + integrity sha512-+p6J00jSMPQ116ZLlHJJvdf8wbjNbZdeSX9ptfHX06/MSNaXmKihQzx5vQcw0q2G6JsdVkUIdWbOWtSnaYs3yA== + dependencies: + "@jest/core" "^24.8.0" + "@jest/test-result" "^24.8.0" + "@jest/types" "^24.8.0" + chalk "^2.0.1" + exit "^0.1.2" + import-local "^2.0.0" + is-ci "^2.0.0" + jest-config "^24.8.0" + jest-util "^24.8.0" + jest-validate "^24.8.0" + prompts "^2.0.1" + realpath-native "^1.1.0" + yargs "^12.0.2" + +jest-cli@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-24.9.0.tgz#ad2de62d07472d419c6abc301fc432b98b10d2af" + integrity sha512-+VLRKyitT3BWoMeSUIHRxV/2g8y9gw91Jh5z2UmXZzkZKpbC08CSehVxgHUwTpy+HwGcns/tqafQDJW7imYvGg== + dependencies: + "@jest/core" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + chalk "^2.0.1" + exit "^0.1.2" + import-local "^2.0.0" + is-ci "^2.0.0" + jest-config "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" + prompts "^2.0.1" + realpath-native "^1.1.0" + yargs "^13.3.0" + +jest-config@^24.8.0, jest-config@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-24.9.0.tgz#fb1bbc60c73a46af03590719efa4825e6e4dd1b5" + integrity sha512-RATtQJtVYQrp7fvWg6f5y3pEFj9I+H8sWw4aKxnDZ96mob5i5SD6ZEGWgMLXQ4LE8UurrjbdlLWdUeo+28QpfQ== + dependencies: + "@babel/core" "^7.1.0" + "@jest/test-sequencer" "^24.9.0" + "@jest/types" "^24.9.0" + babel-jest "^24.9.0" + chalk "^2.0.1" + glob "^7.1.1" + jest-environment-jsdom "^24.9.0" + jest-environment-node "^24.9.0" + jest-get-type "^24.9.0" + jest-jasmine2 "^24.9.0" + jest-regex-util "^24.3.0" + jest-resolve "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" + micromatch "^3.1.10" + pretty-format "^24.9.0" + realpath-native "^1.1.0" + +jest-diff@^24.0.0: + version "24.8.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-24.8.0.tgz#146435e7d1e3ffdf293d53ff97e193f1d1546172" + integrity sha512-wxetCEl49zUpJ/bvUmIFjd/o52J+yWcoc5ZyPq4/W1LUKGEhRYDIbP1KcF6t+PvqNrGAFk4/JhtxDq/Nnzs66g== + dependencies: + chalk "^2.0.1" + diff-sequences "^24.3.0" + jest-get-type "^24.8.0" + pretty-format "^24.8.0" + +jest-diff@^24.8.0, jest-diff@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-24.9.0.tgz#931b7d0d5778a1baf7452cb816e325e3724055da" + integrity sha512-qMfrTs8AdJE2iqrTp0hzh7kTd2PQWrsFyj9tORoKmu32xjPjeE4NyjVRDz8ybYwqS2ik8N4hsIpiVTyFeo2lBQ== + dependencies: + chalk "^2.0.1" + diff-sequences "^24.9.0" + jest-get-type "^24.9.0" + pretty-format "^24.9.0" + +jest-docblock@^24.3.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-24.9.0.tgz#7970201802ba560e1c4092cc25cbedf5af5a8ce2" + integrity sha512-F1DjdpDMJMA1cN6He0FNYNZlo3yYmOtRUnktrT9Q37njYzC5WEaDdmbynIgy0L/IvXvvgsG8OsqhLPXTpfmZAA== + dependencies: + detect-newline "^2.1.0" + +jest-dom@^3.1.3: + version "3.5.0" + resolved "https://registry.yarnpkg.com/jest-dom/-/jest-dom-3.5.0.tgz#715908b545c0d66a0eba9d21fc59357fac024f43" + integrity sha512-xHnP3Qo/29oLAo2iixaZsoDrm3XKSVrMH5Wf2ZEiLychJQBTNzOeVMPxrCygCgJiyQMbnymXltme8bPzuiGOIA== + dependencies: + chalk "^2.4.1" + css "^2.2.3" + css.escape "^1.5.1" + jest-diff "^24.0.0" + jest-matcher-utils "^24.0.0" + lodash "^4.17.11" + pretty-format "^24.0.0" + redent "^2.0.0" + +jest-each@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-24.9.0.tgz#eb2da602e2a610898dbc5f1f6df3ba86b55f8b05" + integrity sha512-ONi0R4BvW45cw8s2Lrx8YgbeXL1oCQ/wIDwmsM3CqM/nlblNCPmnC3IPQlMbRFZu3wKdQ2U8BqM6lh3LJ5Bsog== + dependencies: + "@jest/types" "^24.9.0" + chalk "^2.0.1" + jest-get-type "^24.9.0" + jest-util "^24.9.0" + pretty-format "^24.9.0" + +jest-environment-jsdom-thirteen@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom-thirteen/-/jest-environment-jsdom-thirteen-1.0.1.tgz#113e3c8aed945dadbc826636fa21139c69567bb5" + integrity sha512-Zi7OuKF7HMLlBvomitd5eKp5Ykc4Wvw0d+i+cpbCaE+7kmvL24SO4ssDmKrT++aANXR4T8+pmoJIlav5gr2peQ== + dependencies: + jest-mock "^24.0.0" + jest-util "^24.0.0" + jsdom "^13.0.0" + +jest-environment-jsdom@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-24.9.0.tgz#4b0806c7fc94f95edb369a69cc2778eec2b7375b" + integrity sha512-Zv9FV9NBRzLuALXjvRijO2351DRQeLYXtpD4xNvfoVFw21IOKNhZAEUKcbiEtjTkm2GsJ3boMVgkaR7rN8qetA== + dependencies: + "@jest/environment" "^24.9.0" + "@jest/fake-timers" "^24.9.0" + "@jest/types" "^24.9.0" + jest-mock "^24.9.0" + jest-util "^24.9.0" + jsdom "^11.5.1" + +jest-environment-node@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-24.9.0.tgz#333d2d2796f9687f2aeebf0742b519f33c1cbfd3" + integrity sha512-6d4V2f4nxzIzwendo27Tr0aFm+IXWa0XEUnaH6nU0FMaozxovt+sfRvh4J47wL1OvF83I3SSTu0XK+i4Bqe7uA== + dependencies: + "@jest/environment" "^24.9.0" + "@jest/fake-timers" "^24.9.0" + "@jest/types" "^24.9.0" + jest-mock "^24.9.0" + jest-util "^24.9.0" + +jest-get-type@^24.8.0, jest-get-type@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-24.9.0.tgz#1684a0c8a50f2e4901b6644ae861f579eed2ef0e" + integrity sha512-lUseMzAley4LhIcpSP9Jf+fTrQ4a1yHQwLNeeVa2cEmbCGeoZAtYPOIv8JaxLD/sUpKxetKGP+gsHl8f8TSj8Q== + +jest-haste-map@^24.7.1: + version "24.8.1" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-24.8.1.tgz#f39cc1d2b1d907e014165b4bd5a957afcb992982" + integrity sha512-SwaxMGVdAZk3ernAx2Uv2sorA7jm3Kx+lR0grp6rMmnY06Kn/urtKx1LPN2mGTea4fCT38impYT28FfcLUhX0g== + dependencies: + "@jest/types" "^24.8.0" + anymatch "^2.0.0" + fb-watchman "^2.0.0" + graceful-fs "^4.1.15" + invariant "^2.2.4" + jest-serializer "^24.4.0" + jest-util "^24.8.0" + jest-worker "^24.6.0" + micromatch "^3.1.10" + sane "^4.0.3" + walker "^1.0.7" + optionalDependencies: + fsevents "^1.2.7" + +jest-haste-map@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-24.9.0.tgz#b38a5d64274934e21fa417ae9a9fbeb77ceaac7d" + integrity sha512-kfVFmsuWui2Sj1Rp1AJ4D9HqJwE4uwTlS/vO+eRUaMmd54BFpli2XhMQnPC2k4cHFVbB2Q2C+jtI1AGLgEnCjQ== + dependencies: + "@jest/types" "^24.9.0" + anymatch "^2.0.0" + fb-watchman "^2.0.0" + graceful-fs "^4.1.15" + invariant "^2.2.4" + jest-serializer "^24.9.0" + jest-util "^24.9.0" + jest-worker "^24.9.0" + micromatch "^3.1.10" + sane "^4.0.3" + walker "^1.0.7" + optionalDependencies: + fsevents "^1.2.7" + +jest-jasmine2@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-24.9.0.tgz#1f7b1bd3242c1774e62acabb3646d96afc3be6a0" + integrity sha512-Cq7vkAgaYKp+PsX+2/JbTarrk0DmNhsEtqBXNwUHkdlbrTBLtMJINADf2mf5FkowNsq8evbPc07/qFO0AdKTzw== + dependencies: + "@babel/traverse" "^7.1.0" + "@jest/environment" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + chalk "^2.0.1" + co "^4.6.0" + expect "^24.9.0" + is-generator-fn "^2.0.0" + jest-each "^24.9.0" + jest-matcher-utils "^24.9.0" + jest-message-util "^24.9.0" + jest-runtime "^24.9.0" + jest-snapshot "^24.9.0" + jest-util "^24.9.0" + pretty-format "^24.9.0" + throat "^4.0.0" + +jest-leak-detector@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-24.9.0.tgz#b665dea7c77100c5c4f7dfcb153b65cf07dcf96a" + integrity sha512-tYkFIDsiKTGwb2FG1w8hX9V0aUb2ot8zY/2nFg087dUageonw1zrLMP4W6zsRO59dPkTSKie+D4rhMuP9nRmrA== + dependencies: + jest-get-type "^24.9.0" + pretty-format "^24.9.0" + +jest-matcher-utils@^24.0.0: + version "24.8.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-24.8.0.tgz#2bce42204c9af12bde46f83dc839efe8be832495" + integrity sha512-lex1yASY51FvUuHgm0GOVj7DCYEouWSlIYmCW7APSqB9v8mXmKSn5+sWVF0MhuASG0bnYY106/49JU1FZNl5hw== + dependencies: + chalk "^2.0.1" + jest-diff "^24.8.0" + jest-get-type "^24.8.0" + pretty-format "^24.8.0" + +jest-matcher-utils@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-24.9.0.tgz#f5b3661d5e628dffe6dd65251dfdae0e87c3a073" + integrity sha512-OZz2IXsu6eaiMAwe67c1T+5tUAtQyQx27/EMEkbFAGiw52tB9em+uGbzpcgYVpA8wl0hlxKPZxrly4CXU/GjHA== + dependencies: + chalk "^2.0.1" + jest-diff "^24.9.0" + jest-get-type "^24.9.0" + pretty-format "^24.9.0" + +jest-message-util@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-24.9.0.tgz#527f54a1e380f5e202a8d1149b0ec872f43119e3" + integrity sha512-oCj8FiZ3U0hTP4aSui87P4L4jC37BtQwUMqk+zk/b11FR19BJDeZsZAvIHutWnmtw7r85UmR3CEWZ0HWU2mAlw== + dependencies: + "@babel/code-frame" "^7.0.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + "@types/stack-utils" "^1.0.1" + chalk "^2.0.1" + micromatch "^3.1.10" + slash "^2.0.0" + stack-utils "^1.0.1" + +jest-mock@^24.0.0, jest-mock@^24.5.0: + version "24.8.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-24.8.0.tgz#2f9d14d37699e863f1febf4e4d5a33b7fdbbde56" + integrity sha512-6kWugwjGjJw+ZkK4mDa0Df3sDlUTsV47MSrT0nGQ0RBWJbpODDQ8MHDVtGtUYBne3IwZUhtB7elxHspU79WH3A== + dependencies: + "@jest/types" "^24.8.0" + +jest-mock@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-24.9.0.tgz#c22835541ee379b908673ad51087a2185c13f1c6" + integrity sha512-3BEYN5WbSq9wd+SyLDES7AHnjH9A/ROBwmz7l2y+ol+NtSFO8DYiEBzoO1CeFc9a8DYy10EO4dDFVv/wN3zl1w== + dependencies: + "@jest/types" "^24.9.0" + +jest-nock@^0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/jest-nock/-/jest-nock-0.1.7.tgz#3667c990c42eaabaa2c75058a58d3ab7fc246817" + integrity sha512-PDomjUeI2XGLycXOnXvQ3i0D8UDcXnjEjgoCtYYB3IO2RwArKd0xXfLw6T32E484e90ca+OekwhN7F/rMSSCHQ== + dependencies: + mkdirp "^0.5.1" + +jest-pnp-resolver@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.1.tgz#ecdae604c077a7fbc70defb6d517c3c1c898923a" + integrity sha512-pgFw2tm54fzgYvc/OHrnysABEObZCUNFnhjoRjaVOCN8NYc032/gVjPaHD4Aq6ApkSieWtfKAFQtmDKAmhupnQ== + +jest-preset-angular@^7.0.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/jest-preset-angular/-/jest-preset-angular-7.1.1.tgz#b51fc910e5abea91701fcd89532823ae5990450b" + integrity sha512-/uJUi9IHoCxtB6aH6I+llpHjyfGfP2q32lcBCUKKk16v1uYKXvj1Nfdlvfvu/eqjZVoKEDLP+Ejup4bbsc0gAA== + dependencies: + jest-environment-jsdom-thirteen "^1.0.0" + pretty-format "^24.0.0" + ts-jest "^24.0.0" + +jest-regex-util@^24.3.0, jest-regex-util@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-24.9.0.tgz#c13fb3380bde22bf6575432c493ea8fe37965636" + integrity sha512-05Cmb6CuxaA+Ys6fjr3PhvV3bGQmO+2p2La4hFbU+W5uOc479f7FdLXUWXw4pYMAhhSZIuKHwSXSu6CsSBAXQA== + +jest-resolve-dependencies@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-24.9.0.tgz#ad055198959c4cfba8a4f066c673a3f0786507ab" + integrity sha512-Fm7b6AlWnYhT0BXy4hXpactHIqER7erNgIsIozDXWl5dVm+k8XdGVe1oTg1JyaFnOxarMEbax3wyRJqGP2Pq+g== + dependencies: + "@jest/types" "^24.9.0" + jest-regex-util "^24.3.0" + jest-snapshot "^24.9.0" + +jest-resolve@^24.7.1: + version "24.8.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-24.8.0.tgz#84b8e5408c1f6a11539793e2b5feb1b6e722439f" + integrity sha512-+hjSzi1PoRvnuOICoYd5V/KpIQmkAsfjFO71458hQ2Whi/yf1GDeBOFj8Gxw4LrApHsVJvn5fmjcPdmoUHaVKw== + dependencies: + "@jest/types" "^24.8.0" + browser-resolve "^1.11.3" + chalk "^2.0.1" + jest-pnp-resolver "^1.2.1" + realpath-native "^1.1.0" + +jest-resolve@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-24.9.0.tgz#dff04c7687af34c4dd7e524892d9cf77e5d17321" + integrity sha512-TaLeLVL1l08YFZAt3zaPtjiVvyy4oSA6CRe+0AFPPVX3Q/VI0giIWWoAvoS5L96vj9Dqxj4fB5p2qrHCmTU/MQ== + dependencies: + "@jest/types" "^24.9.0" + browser-resolve "^1.11.3" + chalk "^2.0.1" + jest-pnp-resolver "^1.2.1" + realpath-native "^1.1.0" + +jest-runner@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-24.9.0.tgz#574fafdbd54455c2b34b4bdf4365a23857fcdf42" + integrity sha512-KksJQyI3/0mhcfspnxxEOBueGrd5E4vV7ADQLT9ESaCzz02WnbdbKWIf5Mkaucoaj7obQckYPVX6JJhgUcoWWg== + dependencies: + "@jest/console" "^24.7.1" + "@jest/environment" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + chalk "^2.4.2" + exit "^0.1.2" + graceful-fs "^4.1.15" + jest-config "^24.9.0" + jest-docblock "^24.3.0" + jest-haste-map "^24.9.0" + jest-jasmine2 "^24.9.0" + jest-leak-detector "^24.9.0" + jest-message-util "^24.9.0" + jest-resolve "^24.9.0" + jest-runtime "^24.9.0" + jest-util "^24.9.0" + jest-worker "^24.6.0" + source-map-support "^0.5.6" + throat "^4.0.0" + +jest-runtime@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-24.9.0.tgz#9f14583af6a4f7314a6a9d9f0226e1a781c8e4ac" + integrity sha512-8oNqgnmF3v2J6PVRM2Jfuj8oX3syKmaynlDMMKQ4iyzbQzIG6th5ub/lM2bCMTmoTKM3ykcUYI2Pw9xwNtjMnw== + dependencies: + "@jest/console" "^24.7.1" + "@jest/environment" "^24.9.0" + "@jest/source-map" "^24.3.0" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + "@types/yargs" "^13.0.0" + chalk "^2.0.1" + exit "^0.1.2" + glob "^7.1.3" + graceful-fs "^4.1.15" + jest-config "^24.9.0" + jest-haste-map "^24.9.0" + jest-message-util "^24.9.0" + jest-mock "^24.9.0" + jest-regex-util "^24.3.0" + jest-resolve "^24.9.0" + jest-snapshot "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" + realpath-native "^1.1.0" + slash "^2.0.0" + strip-bom "^3.0.0" + yargs "^13.3.0" + +jest-serializer@^24.4.0, jest-serializer@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-24.9.0.tgz#e6d7d7ef96d31e8b9079a714754c5d5c58288e73" + integrity sha512-DxYipDr8OvfrKH3Kel6NdED3OXxjvxXZ1uIY2I9OFbGg+vUkkg7AGvi65qbhbWNPvDckXmzMPbK3u3HaDO49bQ== + +jest-snapshot@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-24.9.0.tgz#ec8e9ca4f2ec0c5c87ae8f925cf97497b0e951ba" + integrity sha512-uI/rszGSs73xCM0l+up7O7a40o90cnrk429LOiK3aeTvfC0HHmldbd81/B7Ix81KSFe1lwkbl7GnBGG4UfuDew== + dependencies: + "@babel/types" "^7.0.0" + "@jest/types" "^24.9.0" + chalk "^2.0.1" + expect "^24.9.0" + jest-diff "^24.9.0" + jest-get-type "^24.9.0" + jest-matcher-utils "^24.9.0" + jest-message-util "^24.9.0" + jest-resolve "^24.9.0" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + pretty-format "^24.9.0" + semver "^6.2.0" + +jest-transform-stub@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/jest-transform-stub/-/jest-transform-stub-2.0.0.tgz#19018b0851f7568972147a5d60074b55f0225a7d" + integrity sha512-lspHaCRx/mBbnm3h4uMMS3R5aZzMwyNpNIJLXj4cEsV0mIUtS4IjYJLSoyjRCtnxb6RIGJ4NL2quZzfIeNhbkg== + +jest-util@^24.0.0: + version "24.8.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-24.8.0.tgz#41f0e945da11df44cc76d64ffb915d0716f46cd1" + integrity sha512-DYZeE+XyAnbNt0BG1OQqKy/4GVLPtzwGx5tsnDrFcax36rVE3lTA5fbvgmbVPUZf9w77AJ8otqR4VBbfFJkUZA== + dependencies: + "@jest/console" "^24.7.1" + "@jest/fake-timers" "^24.8.0" + "@jest/source-map" "^24.3.0" + "@jest/test-result" "^24.8.0" + "@jest/types" "^24.8.0" + callsites "^3.0.0" + chalk "^2.0.1" + graceful-fs "^4.1.15" + is-ci "^2.0.0" + mkdirp "^0.5.1" + slash "^2.0.0" + source-map "^0.6.0" + +jest-util@^24.8.0, jest-util@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-24.9.0.tgz#7396814e48536d2e85a37de3e4c431d7cb140162" + integrity sha512-x+cZU8VRmOJxbA1K5oDBdxQmdq0OIdADarLxk0Mq+3XS4jgvhG/oKGWcIDCtPG0HgjxOYvF+ilPJQsAyXfbNOg== + dependencies: + "@jest/console" "^24.9.0" + "@jest/fake-timers" "^24.9.0" + "@jest/source-map" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + callsites "^3.0.0" + chalk "^2.0.1" + graceful-fs "^4.1.15" + is-ci "^2.0.0" + mkdirp "^0.5.1" + slash "^2.0.0" + source-map "^0.6.0" + +jest-validate@^24.8.0, jest-validate@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-24.9.0.tgz#0775c55360d173cd854e40180756d4ff52def8ab" + integrity sha512-HPIt6C5ACwiqSiwi+OfSSHbK8sG7akG8eATl+IPKaeIjtPOeBUd/g3J7DghugzxrGjI93qS/+RPKe1H6PqvhRQ== + dependencies: + "@jest/types" "^24.9.0" + camelcase "^5.3.1" + chalk "^2.0.1" + jest-get-type "^24.9.0" + leven "^3.1.0" + pretty-format "^24.9.0" + +jest-watcher@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-24.9.0.tgz#4b56e5d1ceff005f5b88e528dc9afc8dd4ed2b3b" + integrity sha512-+/fLOfKPXXYJDYlks62/4R4GoT+GU1tYZed99JSCOsmzkkF7727RqKrjNAxtfO4YpGv11wybgRvCjR73lK2GZw== + dependencies: + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + "@types/yargs" "^13.0.0" + ansi-escapes "^3.0.0" + chalk "^2.0.1" + jest-util "^24.9.0" + string-length "^2.0.0" + +jest-worker@^24.6.0, jest-worker@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-24.9.0.tgz#5dbfdb5b2d322e98567898238a9697bcce67b3e5" + integrity sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw== + dependencies: + merge-stream "^2.0.0" + supports-color "^6.1.0" + +jest@^24.5.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-24.9.0.tgz#987d290c05a08b52c56188c1002e368edb007171" + integrity sha512-YvkBL1Zm7d2B1+h5fHEOdyjCG+sGMz4f8D86/0HiqJ6MB4MnDc8FgP5vdWsGnemOQro7lnYo8UakZ3+5A0jxGw== + dependencies: + import-local "^2.0.0" + jest-cli "^24.9.0" + +jquery@^3.4.1: + version "3.4.1" + resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.4.1.tgz#714f1f8d9dde4bdfa55764ba37ef214630d80ef2" + integrity sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw== + +js-base64@^2.1.8: + version "2.5.1" + resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.5.1.tgz#1efa39ef2c5f7980bb1784ade4a8af2de3291121" + integrity sha512-M7kLczedRMYX4L8Mdh4MzyAMM9O5osx+4FcOQuTvr3A9F2D9S5JXheN0ewNbrvK2UatkTRhL5ejGmGSjNMiZuw== + +js-levenshtein@^1.1.3: + version "1.1.6" + resolved "https://registry.yarnpkg.com/js-levenshtein/-/js-levenshtein-1.1.6.tgz#c6cee58eb3550372df8deb85fad5ce66ce01d59d" + integrity sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g== + +"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +js-tokens@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" + integrity sha1-mGbfOVECEw449/mWvOtlRDIJwls= + +js-yaml@^3.13.0, js-yaml@^3.13.1, js-yaml@~3.13.0: + version "3.13.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" + integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= + +jsdom@^11.5.1: + version "11.12.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-11.12.0.tgz#1a80d40ddd378a1de59656e9e6dc5a3ba8657bc8" + integrity sha512-y8Px43oyiBM13Zc1z780FrfNLJCXTL40EWlty/LXUtcjykRBNgLlCjWXpfSPBl2iv+N7koQN+dvqszHZgT/Fjw== + dependencies: + abab "^2.0.0" + acorn "^5.5.3" + acorn-globals "^4.1.0" + array-equal "^1.0.0" + cssom ">= 0.3.2 < 0.4.0" + cssstyle "^1.0.0" + data-urls "^1.0.0" + domexception "^1.0.1" + escodegen "^1.9.1" + html-encoding-sniffer "^1.0.2" + left-pad "^1.3.0" + nwsapi "^2.0.7" + parse5 "4.0.0" + pn "^1.1.0" + request "^2.87.0" + request-promise-native "^1.0.5" + sax "^1.2.4" + symbol-tree "^3.2.2" + tough-cookie "^2.3.4" + w3c-hr-time "^1.0.1" + webidl-conversions "^4.0.2" + whatwg-encoding "^1.0.3" + whatwg-mimetype "^2.1.0" + whatwg-url "^6.4.1" + ws "^5.2.0" + xml-name-validator "^3.0.0" + +jsdom@^13.0.0: + version "13.2.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-13.2.0.tgz#b1a0dbdadc255435262be8ea3723d2dba0d7eb3a" + integrity sha512-cG1NtMWO9hWpqRNRR3dSvEQa8bFI6iLlqU2x4kwX51FQjp0qus8T9aBaAO6iGp3DeBrhdwuKxckknohkmfvsFw== + dependencies: + abab "^2.0.0" + acorn "^6.0.4" + acorn-globals "^4.3.0" + array-equal "^1.0.0" + cssom "^0.3.4" + cssstyle "^1.1.1" + data-urls "^1.1.0" + domexception "^1.0.1" + escodegen "^1.11.0" + html-encoding-sniffer "^1.0.2" + nwsapi "^2.0.9" + parse5 "5.1.0" + pn "^1.1.0" + request "^2.88.0" + request-promise-native "^1.0.5" + saxes "^3.1.5" + symbol-tree "^3.2.2" + tough-cookie "^2.5.0" + w3c-hr-time "^1.0.1" + w3c-xmlserializer "^1.0.1" + webidl-conversions "^4.0.2" + whatwg-encoding "^1.0.5" + whatwg-mimetype "^2.3.0" + whatwg-url "^7.0.0" + ws "^6.1.2" + xml-name-validator "^3.0.0" + +jsesc@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" + integrity sha1-RsP+yMGJKxKwgz25vHYiF226s0s= + +jsesc@^2.5.1: + version "2.5.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" + integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== + +jsesc@~0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" + integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0= + +jsmin2@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/jsmin2/-/jsmin2-1.2.1.tgz#88fbe2fbf75f0a91f66020fd981cd693f4bfe57e" + integrity sha1-iPvi+/dfCpH2YCD9mBzWk/S/5X4= + +json-parse-better-errors@^1.0.1, json-parse-better-errors@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" + integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-schema@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" + integrity sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM= + +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= + +json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= + +json5@2.x, json5@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.0.tgz#e7a0c62c48285c628d20a10b85c89bb807c32850" + integrity sha512-8Mh9h6xViijj36g7Dxi+Y4S6hNGV96vcJZr/SrlHh1LR/pEn/8j/+qIBbs44YKl69Lrfctp4QD+AdWLTMqEZAQ== + dependencies: + minimist "^1.2.0" + +json5@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" + integrity sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE= + +json5@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" + integrity sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow== + dependencies: + minimist "^1.2.0" + +jsprim@^1.2.2: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" + integrity sha1-MT5mvB5cwG5Di8G3SZwuXFastqI= + dependencies: + assert-plus "1.0.0" + extsprintf "1.3.0" + json-schema "0.2.3" + verror "1.10.0" + +jsx-ast-utils@^2.1.0, jsx-ast-utils@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-2.2.1.tgz#4d4973ebf8b9d2837ee91a8208cc66f3a2776cfb" + integrity sha512-v3FxCcAf20DayI+uxnCuw795+oOIkVu6EnJ1+kSzhqqTZHNkTZ7B66ZgLp4oLJ/gbA64cI0B7WRoHZMSRdyVRQ== + dependencies: + array-includes "^3.0.3" + object.assign "^4.1.0" + +kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" + integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ= + dependencies: + is-buffer "^1.1.5" + +kind-of@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" + integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc= + dependencies: + is-buffer "^1.1.5" + +kind-of@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" + integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== + +kind-of@^6.0.0, kind-of@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051" + integrity sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA== + +kleur@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" + integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== + +lazystream@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lazystream/-/lazystream-1.0.0.tgz#f6995fe0f820392f61396be89462407bb77168e4" + integrity sha1-9plf4PggOS9hOWvolGJAe7dxaOQ= + dependencies: + readable-stream "^2.0.5" + +lcid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" + integrity sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU= + dependencies: + invert-kv "^1.0.0" + +lcid@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-2.0.0.tgz#6ef5d2df60e52f82eb228a4c373e8d1f397253cf" + integrity sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA== + dependencies: + invert-kv "^2.0.0" + +left-pad@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e" + integrity sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA== + +leven@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" + integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== + +levn@^0.3.0, levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +liftoff@~2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/liftoff/-/liftoff-2.5.0.tgz#2009291bb31cea861bbf10a7c15a28caf75c31ec" + integrity sha1-IAkpG7Mc6oYbvxCnwVooyvdcMew= + dependencies: + extend "^3.0.0" + findup-sync "^2.0.0" + fined "^1.0.1" + flagged-respawn "^1.0.0" + is-plain-object "^2.0.4" + object.map "^1.0.0" + rechoir "^0.6.2" + resolve "^1.1.7" + +livereload-js@^2.3.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/livereload-js/-/livereload-js-2.4.0.tgz#447c31cf1ea9ab52fc20db615c5ddf678f78009c" + integrity sha512-XPQH8Z2GDP/Hwz2PCDrh2mth4yFejwA1OZ/81Ti3LgKyhDcEjsSsqFWZojHG0va/duGd+WyosY7eXLDoOyqcPw== + +load-grunt-tasks@~4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/load-grunt-tasks/-/load-grunt-tasks-4.0.0.tgz#f494bc0fac495115b5c8c6c957c5f1f0ffd7eece" + integrity sha512-w5JYPHpZgMxu9XFR9N9MEzyX8E0mLhQkwQ1qVP4mb3gmuomw8Ww8J49NHMbXqyQliq2LUCqdU7/wW96IVuPCKw== + dependencies: + arrify "^1.0.0" + multimatch "^2.0.0" + pkg-up "^2.0.0" + resolve-pkg "^1.0.0" + +load-json-file@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" + integrity sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA= + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + pinkie-promise "^2.0.0" + strip-bom "^2.0.0" + +load-json-file@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" + integrity sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg= + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + strip-bom "^3.0.0" + +load-json-file@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b" + integrity sha1-L19Fq5HjMhYjT9U62rZo607AmTs= + dependencies: + graceful-fs "^4.1.2" + parse-json "^4.0.0" + pify "^3.0.0" + strip-bom "^3.0.0" + +loader-runner@^2.3.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357" + integrity sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw== + +loader-utils@^1.0.2, loader-utils@^1.1.0, loader-utils@^1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.2.3.tgz#1ff5dc6911c9f0a062531a4c04b609406108c2c7" + integrity sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA== + dependencies: + big.js "^5.2.2" + emojis-list "^2.0.0" + json5 "^1.0.1" + +locate-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" + integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4= + dependencies: + p-locate "^2.0.0" + path-exists "^3.0.0" + +locate-path@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" + integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== + dependencies: + p-locate "^3.0.0" + path-exists "^3.0.0" + +lodash.escape@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/lodash.escape/-/lodash.escape-4.0.1.tgz#c9044690c21e04294beaa517712fded1fa88de98" + integrity sha1-yQRGkMIeBClL6qUXcS/e0fqI3pg= + +lodash.flattendeep@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz#fb030917f86a3134e5bc9bec0d69e0013ddfedb2" + integrity sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI= + +lodash.isequal@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" + integrity sha1-QVxEePK8wwEgwizhDtMib30+GOA= + +lodash.isplainobject@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" + integrity sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs= + +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" + integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg= + +lodash@^4.0.0, lodash@^4.15.0, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.4, lodash@^4.7.0, lodash@^4.8.0, lodash@~4.17.10: + version "4.17.14" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.14.tgz#9ce487ae66c96254fe20b599f21b6816028078ba" + integrity sha512-mmKYbW3GLuJeX+iGP+Y7Gp1AiGHGbXHCOh/jZmrawMmsE7MS4znI3RL2FsjbqOyMayHInjOeykW7PEajUk1/xw== + +lodash@^4.17.13, lodash@~4.17.5: + version "4.17.15" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" + integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== + +loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" + integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== + dependencies: + js-tokens "^3.0.0 || ^4.0.0" + +loud-rejection@^1.0.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f" + integrity sha1-W0b4AUft7leIcPCG0Eghz5mOVR8= + dependencies: + currently-unhandled "^0.4.1" + signal-exit "^3.0.0" + +lru-cache@^2.5.0: + version "2.7.3" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-2.7.3.tgz#6d4524e8b955f95d4f5b58851ce21dd72fb4e952" + integrity sha1-bUUk6LlV+V1PW1iFHOId1y+06VI= + +lru-cache@^4.0.1: + version "4.1.5" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" + integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== + dependencies: + pseudomap "^1.0.2" + yallist "^2.1.2" + +lru-cache@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== + dependencies: + yallist "^3.0.2" + +make-dir@^2.0.0, make-dir@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" + integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA== + dependencies: + pify "^4.0.1" + semver "^5.6.0" + +make-error@1.x: + version "1.3.5" + resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.5.tgz#efe4e81f6db28cadd605c70f29c831b58ef776c8" + integrity sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g== + +make-iterator@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/make-iterator/-/make-iterator-1.0.1.tgz#29b33f312aa8f547c4a5e490f56afcec99133ad6" + integrity sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw== + dependencies: + kind-of "^6.0.2" + +makeerror@1.0.x: + version "1.0.11" + resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" + integrity sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw= + dependencies: + tmpl "1.0.x" + +mamacro@^0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/mamacro/-/mamacro-0.0.3.tgz#ad2c9576197c9f1abf308d0787865bd975a3f3e4" + integrity sha512-qMEwh+UujcQ+kbz3T6V+wAmO2U8veoq2w+3wY8MquqwVA3jChfwY+Tk52GZKDfACEPjuZ7r2oJLejwpt8jtwTA== + +map-age-cleaner@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz#7d583a7306434c055fe474b0f45078e6e1b4b92a" + integrity sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w== + dependencies: + p-defer "^1.0.0" + +map-cache@^0.2.0, map-cache@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" + integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= + +map-obj@^1.0.0, map-obj@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" + integrity sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0= + +map-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" + integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48= + dependencies: + object-visit "^1.0.0" + +maxmin@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/maxmin/-/maxmin-2.1.0.tgz#4d3b220903d95eee7eb7ac7fa864e72dc09a3166" + integrity sha1-TTsiCQPZXu5+t6x/qGTnLcCaMWY= + dependencies: + chalk "^1.0.0" + figures "^1.0.1" + gzip-size "^3.0.0" + pretty-bytes "^3.0.0" + +md5.js@^1.3.4: + version "1.3.5" + resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" + integrity sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg== + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + safe-buffer "^5.1.2" + +media-typer@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" + integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g= + +mem@^4.0.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/mem/-/mem-4.3.0.tgz#461af497bc4ae09608cdb2e60eefb69bff744178" + integrity sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w== + dependencies: + map-age-cleaner "^0.1.1" + mimic-fn "^2.0.0" + p-is-promise "^2.0.0" + +memory-fs@^0.4.0, memory-fs@~0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" + integrity sha1-OpoguEYlI+RHz7x+i7gO1me/xVI= + dependencies: + errno "^0.1.3" + readable-stream "^2.0.1" + +meow@^3.3.0, meow@^3.7.0: + version "3.7.0" + resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" + integrity sha1-cstmi0JSKCkKu/qFaJJYcwioAfs= + dependencies: + camelcase-keys "^2.0.0" + decamelize "^1.1.2" + loud-rejection "^1.0.0" + map-obj "^1.0.1" + minimist "^1.1.3" + normalize-package-data "^2.3.4" + object-assign "^4.0.1" + read-pkg-up "^1.0.1" + redent "^1.0.0" + trim-newlines "^1.0.0" + +merge-descriptors@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" + integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E= + +merge-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" + integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== + +methods@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" + integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4= + +micromatch@^3.0.4, micromatch@^3.1.10, micromatch@^3.1.4, micromatch@^3.1.8: + version "3.1.10" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" + integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + braces "^2.3.1" + define-property "^2.0.2" + extend-shallow "^3.0.2" + extglob "^2.0.4" + fragment-cache "^0.2.1" + kind-of "^6.0.2" + nanomatch "^1.2.9" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.2" + +miller-rabin@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" + integrity sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA== + dependencies: + bn.js "^4.0.0" + brorand "^1.0.1" + +mime-db@1.40.0: + version "1.40.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.40.0.tgz#a65057e998db090f732a68f6c276d387d4126c32" + integrity sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA== + +mime-types@^2.1.12, mime-types@~2.1.19, mime-types@~2.1.24: + version "2.1.24" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.24.tgz#b6f8d0b3e951efb77dedeca194cff6d16f676f81" + integrity sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ== + dependencies: + mime-db "1.40.0" + +mime@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +mimic-fn@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" + integrity sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ== + +mimic-fn@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + +mimic-response@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" + integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== + +minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== + +minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" + integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= + +"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4, minimatch@~3.0.2: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== + dependencies: + brace-expansion "^1.1.7" + +minimist@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= + +minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ= + +minimist@~0.0.1: + version "0.0.10" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" + integrity sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8= + +minipass@^2.2.1, minipass@^2.6.0, minipass@^2.6.4: + version "2.6.5" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.6.5.tgz#1c245f9f2897f70fd4a219066261ce6c29f80b18" + integrity sha512-ewSKOPFH9blOLXx0YSE+mbrNMBFPS+11a2b03QZ+P4LVrUHW/GAlqeYC7DBknDyMWkHzrzTpDhUvy7MUxqyrPA== + dependencies: + safe-buffer "^5.1.2" + yallist "^3.0.0" + +minizlib@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.2.2.tgz#6f0ccc82fa53e1bf2ff145f220d2da9fa6e3a166" + integrity sha512-hR3At21uSrsjjDTWrbu0IMLTpnkpv8IIMFDFaoz43Tmu4LkmAXfH44vNNzpTnf+OAQQCHrb91y/wc2J4x5XgSQ== + dependencies: + minipass "^2.2.1" + +mississippi@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/mississippi/-/mississippi-3.0.0.tgz#ea0a3291f97e0b5e8776b363d5f0a12d94c67022" + integrity sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA== + dependencies: + concat-stream "^1.5.0" + duplexify "^3.4.2" + end-of-stream "^1.1.0" + flush-write-stream "^1.0.0" + from2 "^2.1.0" + parallel-transform "^1.1.0" + pump "^3.0.0" + pumpify "^1.3.3" + stream-each "^1.1.0" + through2 "^2.0.0" + +mixin-deep@^1.2.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" + integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== + dependencies: + for-in "^1.0.2" + is-extendable "^1.0.1" + +mkdirp@0.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= + dependencies: + minimist "0.0.8" + +moment@^2.24.0: + version "2.24.0" + resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b" + integrity sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg== + +moo@^0.4.3: + version "0.4.3" + resolved "https://registry.yarnpkg.com/moo/-/moo-0.4.3.tgz#3f847a26f31cf625a956a87f2b10fbc013bfd10e" + integrity sha512-gFD2xGCl8YFgGHsqJ9NKRVdwlioeW3mI1iqfLNYQOv0+6JRwG58Zk9DIGQgyIaffSYaO1xsKnMaYzzNr1KyIAw== + +move-concurrently@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/move-concurrently/-/move-concurrently-1.0.1.tgz#be2c005fda32e0b29af1f05d7c4b33214c701f92" + integrity sha1-viwAX9oy4LKa8fBdfEszIUxwH5I= + dependencies: + aproba "^1.1.1" + copy-concurrently "^1.0.0" + fs-write-stream-atomic "^1.0.8" + mkdirp "^0.5.1" + rimraf "^2.5.4" + run-queue "^1.0.3" + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= + +ms@2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" + integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== + +ms@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + +multimatch@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/multimatch/-/multimatch-2.1.0.tgz#9c7906a22fb4c02919e2f5f75161b4cdbd4b2a2b" + integrity sha1-nHkGoi+0wCkZ4vX3UWG0zb1LKis= + dependencies: + array-differ "^1.0.0" + array-union "^1.0.1" + arrify "^1.0.0" + minimatch "^3.0.0" + +mute-stream@0.0.7: + version "0.0.7" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" + integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= + +mxgraph@^4.0.4: + version "4.0.4" + resolved "https://registry.yarnpkg.com/mxgraph/-/mxgraph-4.0.4.tgz#28b3b1e59a0deefcc4ac347dd9a03785453391ef" + integrity sha512-Mqn2fV9fx3Rd6ArNbco0y8/Qs3Auafx25NAaU0ns9Bg8bYtXqAEJM65BaUAY8OCRDa8Uk2sSOqcS1dYLKDWSbQ== + +nan@^2.12.1, nan@^2.13.2, nan@^2.6.2: + version "2.14.0" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.0.tgz#7818f722027b2459a86f0295d434d1fc2336c52c" + integrity sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg== + +nanomatch@^1.2.9: + version "1.2.13" + resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" + integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + define-property "^2.0.2" + extend-shallow "^3.0.2" + fragment-cache "^0.2.1" + is-windows "^1.0.2" + kind-of "^6.0.2" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= + +ncp@0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/ncp/-/ncp-0.5.1.tgz#743985316e3db459281b587169e845735a05439f" + integrity sha1-dDmFMW49tFkoG1hxaehFc1oFQ58= + +nearley@^2.7.10: + version "2.16.0" + resolved "https://registry.yarnpkg.com/nearley/-/nearley-2.16.0.tgz#77c297d041941d268290ec84b739d0ee297e83a7" + integrity sha512-Tr9XD3Vt/EujXbZBv6UAHYoLUSMQAxSsTnm9K3koXzjzNWY195NqALeyrzLZBKzAkL3gl92BcSogqrHjD8QuUg== + dependencies: + commander "^2.19.0" + moo "^0.4.3" + railroad-diagrams "^1.0.0" + randexp "0.4.6" + semver "^5.4.1" + +needle@^2.2.1: + version "2.4.0" + resolved "https://registry.yarnpkg.com/needle/-/needle-2.4.0.tgz#6833e74975c444642590e15a750288c5f939b57c" + integrity sha512-4Hnwzr3mi5L97hMYeNl8wRW/Onhy4nUKR/lVemJ8gJedxxUyBLm9kkrDColJvoSfwi0jCNhD+xCdOtiGDQiRZg== + dependencies: + debug "^3.2.6" + iconv-lite "^0.4.4" + sax "^1.2.4" + +negotiator@0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb" + integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw== + +neo-async@^2.5.0, neo-async@^2.6.0: + version "2.6.1" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz#ac27ada66167fa8849a6addd837f6b189ad2081c" + integrity sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw== + +nice-try@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" + integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== + +node-abi@^2.2.0: + version "2.9.0" + resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-2.9.0.tgz#ae4075b298dab2d92dd1e22c48ccc7ffd7f06200" + integrity sha512-jmEOvv0eanWjhX8dX1pmjb7oJl1U1oR4FOh0b2GnvALwSYoOdU7sj+kLDSAyjo4pfC9aj/IxkloxdLJQhSSQBA== + dependencies: + semver "^5.4.1" + +node-bin-setup@^1.0.0: + version "1.0.6" + resolved "https://registry.yarnpkg.com/node-bin-setup/-/node-bin-setup-1.0.6.tgz#4b5c9bb937ece702d7069b36ca78af4684677528" + integrity sha512-uPIxXNis1CRbv1DwqAxkgBk5NFV3s7cMN/Gf556jSw6jBvV7ca4F9lRL/8cALcZecRibeqU+5dFYqFFmzv5a0Q== + +node-gyp@^3.6.2, node-gyp@^3.8.0: + version "3.8.0" + resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-3.8.0.tgz#540304261c330e80d0d5edce253a68cb3964218c" + integrity sha512-3g8lYefrRRzvGeSowdJKAKyks8oUpLEd/DyPV4eMhVlhJ0aNaZqIrNUIPuEWWTAoPqyFkfGrM67MC69baqn6vA== + dependencies: + fstream "^1.0.0" + glob "^7.0.3" + graceful-fs "^4.1.2" + mkdirp "^0.5.0" + nopt "2 || 3" + npmlog "0 || 1 || 2 || 3 || 4" + osenv "0" + request "^2.87.0" + rimraf "2" + semver "~5.3.0" + tar "^2.0.0" + which "1" + +node-int64@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" + integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= + +node-libs-browser@^2.0.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.2.1.tgz#b64f513d18338625f90346d27b0d235e631f6425" + integrity sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q== + dependencies: + assert "^1.1.1" + browserify-zlib "^0.2.0" + buffer "^4.3.0" + console-browserify "^1.1.0" + constants-browserify "^1.0.0" + crypto-browserify "^3.11.0" + domain-browser "^1.1.1" + events "^3.0.0" + https-browserify "^1.0.0" + os-browserify "^0.3.0" + path-browserify "0.0.1" + process "^0.11.10" + punycode "^1.2.4" + querystring-es3 "^0.2.0" + readable-stream "^2.3.3" + stream-browserify "^2.0.1" + stream-http "^2.7.2" + string_decoder "^1.0.0" + timers-browserify "^2.0.4" + tty-browserify "0.0.0" + url "^0.11.0" + util "^0.11.0" + vm-browserify "^1.0.1" + +node-modules-regexp@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz#8d9dbe28964a4ac5712e9131642107c71e90ec40" + integrity sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA= + +node-notifier@^5.4.2: + version "5.4.3" + resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.4.3.tgz#cb72daf94c93904098e28b9c590fd866e464bd50" + integrity sha512-M4UBGcs4jeOK9CjTsYwkvH6/MzuUmGCyTW+kCY7uO+1ZVr0+FHGdPdIf5CCLqAaxnRrWidyoQlNkMIIVwbKB8Q== + dependencies: + growly "^1.3.0" + is-wsl "^1.1.0" + semver "^5.5.0" + shellwords "^0.1.1" + which "^1.3.0" + +node-pre-gyp@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.12.0.tgz#39ba4bb1439da030295f899e3b520b7785766149" + integrity sha512-4KghwV8vH5k+g2ylT+sLTjy5wmUOb9vPhnM8NHvRf9dHmnW/CndrFXy2aRPaPST6dugXSdHXfeaHQm77PIz/1A== + dependencies: + detect-libc "^1.0.2" + mkdirp "^0.5.1" + needle "^2.2.1" + nopt "^4.0.1" + npm-packlist "^1.1.6" + npmlog "^4.0.2" + rc "^1.2.7" + rimraf "^2.6.1" + semver "^5.3.0" + tar "^4" + +node-releases@^1.1.25: + version "1.1.25" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.25.tgz#0c2d7dbc7fed30fbe02a9ee3007b8c90bf0133d3" + integrity sha512-fI5BXuk83lKEoZDdH3gRhtsNgh05/wZacuXkgbiYkceE7+QIMXOg98n9ZV7mz27B+kFHnqHcUpscZZlGRSmTpQ== + dependencies: + semver "^5.3.0" + +node-sass@^4.11.0: + version "4.12.0" + resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.12.0.tgz#0914f531932380114a30cc5fa4fa63233a25f017" + integrity sha512-A1Iv4oN+Iel6EPv77/HddXErL2a+gZ4uBeZUy+a8O35CFYTXhgA8MgLCWBtwpGZdCvTvQ9d+bQxX/QC36GDPpQ== + dependencies: + async-foreach "^0.1.3" + chalk "^1.1.1" + cross-spawn "^3.0.0" + gaze "^1.0.0" + get-stdin "^4.0.1" + glob "^7.0.3" + in-publish "^2.0.0" + lodash "^4.17.11" + meow "^3.7.0" + mkdirp "^0.5.1" + nan "^2.13.2" + node-gyp "^3.8.0" + npmlog "^4.0.0" + request "^2.88.0" + sass-graph "^2.2.4" + stdout-stream "^1.4.0" + "true-case-path" "^1.0.2" + +node@^11.9.0: + version "11.15.0" + resolved "https://registry.yarnpkg.com/node/-/node-11.15.0.tgz#d892498327c193203eb4c01f47745e2b2c8d61c3" + integrity sha512-Nbzq8qr133iwjGo0ZtzQR0mYeawW2eddYpW/k/+yjgbQW2/zG1a/5QiizVOrJ8yc4hbu3369zkj4dDIEd8f7dg== + dependencies: + node-bin-setup "^1.0.0" + +noop-logger@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/noop-logger/-/noop-logger-0.1.1.tgz#94a2b1633c4f1317553007d8966fd0e841b6a4c2" + integrity sha1-lKKxYzxPExdVMAfYlm/Q6EG2pMI= + +"nopt@2 || 3", nopt@~3.0.6: + version "3.0.6" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" + integrity sha1-xkZdvwirzU2zWTF/eaxopkayj/k= + dependencies: + abbrev "1" + +nopt@^4.0.1, nopt@~4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" + integrity sha1-0NRoWv1UFRk8jHUFYC0NF81kR00= + dependencies: + abbrev "1" + osenv "^0.1.4" + +normalize-package-data@^2.3.2, normalize-package-data@^2.3.4: + version "2.5.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" + integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== + dependencies: + hosted-git-info "^2.1.4" + resolve "^1.10.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + +normalize-path@^2.0.0, normalize-path@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" + integrity sha1-GrKLVW4Zg2Oowab35vogE3/mrtk= + dependencies: + remove-trailing-separator "^1.0.1" + +normalize-path@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + +npm-bundled@^1.0.1: + version "1.0.6" + resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.6.tgz#e7ba9aadcef962bb61248f91721cd932b3fe6bdd" + integrity sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g== + +npm-packlist@^1.1.6: + version "1.4.4" + resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.4.4.tgz#866224233850ac534b63d1a6e76050092b5d2f44" + integrity sha512-zTLo8UcVYtDU3gdeaFu2Xu0n0EvelfHDGuqtNIn5RO7yQj4H1TqNdBc/yZjxnWA0PVB8D3Woyp0i5B43JwQ6Vw== + dependencies: + ignore-walk "^3.0.1" + npm-bundled "^1.0.1" + +npm-run-path@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" + integrity sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8= + dependencies: + path-key "^2.0.0" + +"npmlog@0 || 1 || 2 || 3 || 4", npmlog@^4.0.0, npmlog@^4.0.1, npmlog@^4.0.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" + integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg== + dependencies: + are-we-there-yet "~1.1.2" + console-control-strings "~1.1.0" + gauge "~2.7.3" + set-blocking "~2.0.0" + +nth-check@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.2.tgz#b2bd295c37e3dd58a3bf0700376663ba4d9cf05c" + integrity sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg== + dependencies: + boolbase "~1.0.0" + +number-is-nan@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0= + +nwsapi@^2.0.7, nwsapi@^2.0.9: + version "2.1.4" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.1.4.tgz#e006a878db23636f8e8a67d33ca0e4edf61a842f" + integrity sha512-iGfd9Y6SFdTNldEy2L0GUhcarIutFmk+MPWIn9dmj8NMIup03G08uUF2KGbbmv/Ux4RT0VZJoP/sVbWA6d/VIw== + +oauth-sign@~0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" + integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== + +object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= + +object-copy@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" + integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw= + dependencies: + copy-descriptor "^0.1.0" + define-property "^0.2.5" + kind-of "^3.0.3" + +object-inspect@^1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.6.0.tgz#c70b6cbf72f274aab4c34c0c82f5167bf82cf15b" + integrity sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ== + +object-is@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.0.1.tgz#0aa60ec9989a0b3ed795cf4d06f62cf1ad6539b6" + integrity sha1-CqYOyZiaCz7Xlc9NBvYs8a1lObY= + +object-keys@^1.0.11, object-keys@^1.0.12, object-keys@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" + integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== + +object-visit@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" + integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs= + dependencies: + isobject "^3.0.0" + +object.assign@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.0.tgz#968bf1100d7956bb3ca086f006f846b3bc4008da" + integrity sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w== + dependencies: + define-properties "^1.1.2" + function-bind "^1.1.1" + has-symbols "^1.0.0" + object-keys "^1.0.11" + +object.defaults@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/object.defaults/-/object.defaults-1.1.0.tgz#3a7f868334b407dea06da16d88d5cd29e435fecf" + integrity sha1-On+GgzS0B96gbaFtiNXNKeQ1/s8= + dependencies: + array-each "^1.0.1" + array-slice "^1.0.0" + for-own "^1.0.0" + isobject "^3.0.0" + +object.entries@^1.0.4, object.entries@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.0.tgz#2024fc6d6ba246aee38bdb0ffd5cfbcf371b7519" + integrity sha512-l+H6EQ8qzGRxbkHOd5I/aHRhHDKoQXQ8g0BYt4uSweQU1/J6dZUOyWh9a2Vky35YCKjzmgxOzta2hH6kf9HuXA== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.12.0" + function-bind "^1.1.1" + has "^1.0.3" + +object.fromentries@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.0.tgz#49a543d92151f8277b3ac9600f1e930b189d30ab" + integrity sha512-9iLiI6H083uiqUuvzyY6qrlmc/Gz8hLQFOcb/Ri/0xXFkSNS3ctV+CbE6yM2+AnkYfOB3dGjdzC0wrMLIhQICA== + dependencies: + define-properties "^1.1.2" + es-abstract "^1.11.0" + function-bind "^1.1.1" + has "^1.0.1" + +object.getownpropertydescriptors@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16" + integrity sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY= + dependencies: + define-properties "^1.1.2" + es-abstract "^1.5.1" + +object.map@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object.map/-/object.map-1.0.1.tgz#cf83e59dc8fcc0ad5f4250e1f78b3b81bd801d37" + integrity sha1-z4Plncj8wK1fQlDh94s7gb2AHTc= + dependencies: + for-own "^1.0.0" + make-iterator "^1.0.0" + +object.pick@^1.2.0, object.pick@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" + integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c= + dependencies: + isobject "^3.0.1" + +object.values@^1.0.4, object.values@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.0.tgz#bf6810ef5da3e5325790eaaa2be213ea84624da9" + integrity sha512-8mf0nKLAoFX6VlNVdhGj31SVYpaNFtUnuoOXWyFEstsWRgU837AK+JYM0iAxwkSzGRbwn8cbFmgbyxj1j4VbXg== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.12.0" + function-bind "^1.1.1" + has "^1.0.3" + +on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" + integrity sha1-IPEzZIGwg811M3mSoWlxqi2QaUc= + dependencies: + ee-first "1.1.1" + +once@^1.3.0, once@^1.3.1, once@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + dependencies: + wrappy "1" + +onetime@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" + integrity sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ= + dependencies: + mimic-fn "^1.0.0" + +optimist@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" + integrity sha1-2j6nRob6IaGaERwybpDrFaAZZoY= + dependencies: + minimist "~0.0.1" + wordwrap "~0.0.2" + +optionator@^0.8.1, optionator@^0.8.2: + version "0.8.2" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" + integrity sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q= + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.4" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + wordwrap "~1.0.0" + +os-browserify@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" + integrity sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc= + +os-homedir@^1.0.0, os-homedir@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= + +os-locale@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" + integrity sha1-IPnxeuKe00XoveWDsT0gCYA8FNk= + dependencies: + lcid "^1.0.0" + +os-locale@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-3.1.0.tgz#a802a6ee17f24c10483ab9935719cef4ed16bf1a" + integrity sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q== + dependencies: + execa "^1.0.0" + lcid "^2.0.0" + mem "^4.0.0" + +os-tmpdir@^1.0.0, os-tmpdir@^1.0.1, os-tmpdir@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= + +osenv@0, osenv@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" + integrity sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g== + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + +output-file-sync@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/output-file-sync/-/output-file-sync-2.0.1.tgz#f53118282f5f553c2799541792b723a4c71430c0" + integrity sha512-mDho4qm7WgIXIGf4eYU1RHN2UU5tPfVYVSRwDJw0uTmj35DQUt/eNp19N7v6T3SrR0ESTEf2up2CGO73qI35zQ== + dependencies: + graceful-fs "^4.1.11" + is-plain-obj "^1.1.0" + mkdirp "^0.5.1" + +p-defer@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c" + integrity sha1-n26xgvbJqozXQwBKfU+WsZaw+ww= + +p-each-series@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-each-series/-/p-each-series-1.0.0.tgz#930f3d12dd1f50e7434457a22cd6f04ac6ad7f71" + integrity sha1-kw89Et0fUOdDRFeiLNbwSsatf3E= + dependencies: + p-reduce "^1.0.0" + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + integrity sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4= + +p-is-promise@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/p-is-promise/-/p-is-promise-2.1.0.tgz#918cebaea248a62cf7ffab8e3bca8c5f882fc42e" + integrity sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg== + +p-limit@^1.1.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" + integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== + dependencies: + p-try "^1.0.0" + +p-limit@^2.0.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.1.tgz#aa07a788cc3151c939b5131f63570f0dd2009537" + integrity sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg== + dependencies: + p-try "^2.0.0" + +p-locate@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" + integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= + dependencies: + p-limit "^1.1.0" + +p-locate@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" + integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== + dependencies: + p-limit "^2.0.0" + +p-reduce@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-reduce/-/p-reduce-1.0.0.tgz#18c2b0dd936a4690a529f8231f58a0fdb6a47dfa" + integrity sha1-GMKw3ZNqRpClKfgjH1ig/bakffo= + +p-try@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" + integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= + +p-try@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" + integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== + +pako@^1.0.10, pako@~1.0.5: + version "1.0.10" + resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.10.tgz#4328badb5086a426aa90f541977d4955da5c9732" + integrity sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw== + +parallel-transform@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/parallel-transform/-/parallel-transform-1.1.0.tgz#d410f065b05da23081fcd10f28854c29bda33b06" + integrity sha1-1BDwZbBdojCB/NEPKIVMKb2jOwY= + dependencies: + cyclist "~0.2.2" + inherits "^2.0.3" + readable-stream "^2.1.5" + +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" + +parse-asn1@^5.0.0: + version "5.1.4" + resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.4.tgz#37f6628f823fbdeb2273b4d540434a22f3ef1fcc" + integrity sha512-Qs5duJcuvNExRfFZ99HDD3z4mAi3r9Wl/FOjEOijlxwCZs7E7mW2vjTpgQ4J8LpTF8x5v+1Vn5UQFejmWT11aw== + dependencies: + asn1.js "^4.0.0" + browserify-aes "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.0" + pbkdf2 "^3.0.3" + safe-buffer "^5.1.1" + +parse-filepath@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/parse-filepath/-/parse-filepath-1.0.2.tgz#a632127f53aaf3d15876f5872f3ffac763d6c891" + integrity sha1-pjISf1Oq89FYdvWHLz/6x2PWyJE= + dependencies: + is-absolute "^1.0.0" + map-cache "^0.2.0" + path-root "^0.1.1" + +parse-json@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" + integrity sha1-9ID0BDTvgHQfhGkJn43qGPVaTck= + dependencies: + error-ex "^1.2.0" + +parse-json@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" + integrity sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA= + dependencies: + error-ex "^1.3.1" + json-parse-better-errors "^1.0.1" + +parse-passwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" + integrity sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY= + +parse5@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-4.0.0.tgz#6d78656e3da8d78b4ec0b906f7c08ef1dfe3f608" + integrity sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA== + +parse5@5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-5.1.0.tgz#c59341c9723f414c452975564c7c00a68d58acd2" + integrity sha512-fxNG2sQjHvlVAYmzBZS9YlDp6PTSSDwa98vkD4QgVDDCAo84z5X1t5XyJQ62ImdLXx5NdIIfihey6xpum9/gRQ== + +parse5@^3.0.1: + version "3.0.3" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-3.0.3.tgz#042f792ffdd36851551cf4e9e066b3874ab45b5c" + integrity sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA== + dependencies: + "@types/node" "*" + +parseurl@~1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" + integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== + +pascalcase@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" + integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= + +path-browserify@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.1.tgz#e6c4ddd7ed3aa27c68a20cc4e50e1a4ee83bbc4a" + integrity sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ== + +path-dirname@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" + integrity sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA= + +path-exists@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" + integrity sha1-D+tsZPD8UY2adU3V77YscCJ2H0s= + dependencies: + pinkie-promise "^2.0.0" + +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= + +path-is-absolute@^1.0.0, path-is-absolute@^1.0.1, path-is-absolute@~1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + +path-is-inside@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" + integrity sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM= + +path-key@^2.0.0, path-key@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" + integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= + +path-parse@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" + integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== + +path-root-regex@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/path-root-regex/-/path-root-regex-0.1.2.tgz#bfccdc8df5b12dc52c8b43ec38d18d72c04ba96d" + integrity sha1-v8zcjfWxLcUsi0PsONGNcsBLqW0= + +path-root@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/path-root/-/path-root-0.1.1.tgz#9a4a6814cac1c0cd73360a95f32083c8ea4745b7" + integrity sha1-mkpoFMrBwM1zNgqV8yCDyOpHRbc= + dependencies: + path-root-regex "^0.1.0" + +path-to-regexp@0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" + integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w= + +path-type@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" + integrity sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE= + dependencies: + graceful-fs "^4.1.2" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +path-type@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" + integrity sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM= + dependencies: + pify "^2.0.0" + +path-type@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" + integrity sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg== + dependencies: + pify "^3.0.0" + +pbkdf2@^3.0.3: + version "3.0.17" + resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.17.tgz#976c206530617b14ebb32114239f7b09336e93a6" + integrity sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA== + dependencies: + create-hash "^1.1.2" + create-hmac "^1.1.4" + ripemd160 "^2.0.1" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +performance-now@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" + integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= + +picomatch@^2.0.4: + version "2.0.7" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.0.7.tgz#514169d8c7cd0bdbeecc8a2609e34a7163de69f6" + integrity sha512-oLHIdio3tZ0qH76NybpeneBhYVj0QFTfXEFTc/B3zKQspYfYYkWYgFsmzo+4kvId/bQRcNkVeguI3y+CD22BtA== + +pify@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + integrity sha1-7RQaasBDqEnqWISY59yosVMw6Qw= + +pify@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" + integrity sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY= + +pify@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" + integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== + +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + integrity sha1-ITXW36ejWMBprJsXh3YogihFD/o= + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA= + +pirates@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz#643a92caf894566f91b2b986d2c66950a8e2fb87" + integrity sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA== + dependencies: + node-modules-regexp "^1.0.0" + +pkg-dir@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" + integrity sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s= + dependencies: + find-up "^2.1.0" + +pkg-dir@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3" + integrity sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw== + dependencies: + find-up "^3.0.0" + +pkg-up@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-2.0.0.tgz#c819ac728059a461cab1c3889a2be3c49a004d7f" + integrity sha1-yBmscoBZpGHKscOImivjxJoATX8= + dependencies: + find-up "^2.1.0" + +pn@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb" + integrity sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA== + +posix-character-classes@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" + integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= + +prebuild-install@^2.3.0: + version "2.5.3" + resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-2.5.3.tgz#9f65f242782d370296353710e9bc843490c19f69" + integrity sha512-/rI36cN2g7vDQnKWN8Uzupi++KjyqS9iS+/fpwG4Ea8d0Pip0PQ5bshUNzVwt+/D2MRfhVAplYMMvWLqWrCF/g== + dependencies: + detect-libc "^1.0.3" + expand-template "^1.0.2" + github-from-package "0.0.0" + minimist "^1.2.0" + mkdirp "^0.5.1" + node-abi "^2.2.0" + noop-logger "^0.1.1" + npmlog "^4.0.1" + os-homedir "^1.0.1" + pump "^2.0.1" + rc "^1.1.6" + simple-get "^2.7.0" + tar-fs "^1.13.0" + tunnel-agent "^0.6.0" + which-pm-runs "^1.0.0" + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= + +prettier@^1.17.0: + version "1.18.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea" + integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw== + +pretty-bytes@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-3.0.1.tgz#27d0008d778063a0b4811bb35c79f1bd5d5fbccf" + integrity sha1-J9AAjXeAY6C0gRuzXHnxvV1fvM8= + dependencies: + number-is-nan "^1.0.0" + +pretty-bytes@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-4.0.2.tgz#b2bf82e7350d65c6c33aa95aaa5a4f6327f61cd9" + integrity sha1-sr+C5zUNZcbDOqlaqlpPYyf2HNk= + +pretty-format@^24.0.0: + version "24.8.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.8.0.tgz#8dae7044f58db7cb8be245383b565a963e3c27f2" + integrity sha512-P952T7dkrDEplsR+TuY7q3VXDae5Sr7zmQb12JU/NDQa/3CH7/QW0yvqLcGN6jL+zQFKaoJcPc+yJxMTGmosqw== + dependencies: + "@jest/types" "^24.8.0" + ansi-regex "^4.0.0" + ansi-styles "^3.2.0" + react-is "^16.8.4" + +pretty-format@^24.8.0, pretty-format@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.9.0.tgz#12fac31b37019a4eea3c11aa9a959eb7628aa7c9" + integrity sha512-00ZMZUiHaJrNfk33guavqgvfJS30sLYf0f8+Srklv0AMPodGGHcoHgksZ3OThYnIvOd+8yMCn0YiEOogjlgsnA== + dependencies: + "@jest/types" "^24.9.0" + ansi-regex "^4.0.0" + ansi-styles "^3.2.0" + react-is "^16.8.4" + +private@^0.1.6, private@^0.1.8: + version "0.1.8" + resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" + integrity sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg== + +process-nextick-args@~2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" + integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== + +process@^0.11.10: + version "0.11.10" + resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" + integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI= + +progress@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" + integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== + +promise-inflight@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3" + integrity sha1-mEcocL8igTL8vdhoEputEsPAKeM= + +prompts@^2.0.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.2.1.tgz#f901dd2a2dfee080359c0e20059b24188d75ad35" + integrity sha512-VObPvJiWPhpZI6C5m60XOzTfnYg/xc/an+r9VYymj9WJW3B/DIH+REzjpAACPf8brwPeP+7vz3bIim3S+AaMjw== + dependencies: + kleur "^3.0.3" + sisteransi "^1.0.3" + +prop-types-exact@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/prop-types-exact/-/prop-types-exact-1.2.0.tgz#825d6be46094663848237e3925a98c6e944e9869" + integrity sha512-K+Tk3Kd9V0odiXFP9fwDHUYRyvK3Nun3GVyPapSIs5OBkITAm15W0CPFD/YKTkMUAbc0b9CUwRQp2ybiBIq+eA== + dependencies: + has "^1.0.3" + object.assign "^4.1.0" + reflect.ownkeys "^0.2.0" + +prop-types@^15.6.2, prop-types@^15.7.2: + version "15.7.2" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5" + integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ== + dependencies: + loose-envify "^1.4.0" + object-assign "^4.1.1" + react-is "^16.8.1" + +proxy-addr@~2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.5.tgz#34cbd64a2d81f4b1fd21e76f9f06c8a45299ee34" + integrity sha512-t/7RxHXPH6cJtP0pRG6smSr9QJidhB+3kXu0KgXnbGYMgzEnUxRQ4/LDdfOwZEMyIh3/xHb8PX3t+lfL9z+YVQ== + dependencies: + forwarded "~0.1.2" + ipaddr.js "1.9.0" + +prr@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" + integrity sha1-0/wRS6BplaRexok/SEzrHXj19HY= + +pseudomap@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + integrity sha1-8FKijacOYYkX7wqKw0wa5aaChrM= + +psl@^1.1.24, psl@^1.1.28: + version "1.4.0" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.4.0.tgz#5dd26156cdb69fa1fdb8ab1991667d3f80ced7c2" + integrity sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw== + +public-encrypt@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.3.tgz#4fcc9d77a07e48ba7527e7cbe0de33d0701331e0" + integrity sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q== + dependencies: + bn.js "^4.1.0" + browserify-rsa "^4.0.0" + create-hash "^1.1.0" + parse-asn1 "^5.0.0" + randombytes "^2.0.1" + safe-buffer "^5.1.2" + +pump@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/pump/-/pump-1.0.3.tgz#5dfe8311c33bbf6fc18261f9f34702c47c08a954" + integrity sha512-8k0JupWme55+9tCVE+FS5ULT3K6AbgqrGa58lTT49RpyfwwcGedHqaC5LlQNdEAumn/wFsu6aPwkuPMioy8kqw== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + +pump@^2.0.0, pump@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pump/-/pump-2.0.1.tgz#12399add6e4cf7526d973cbc8b5ce2e2908b3909" + integrity sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + +pump@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" + integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + +pumpify@^1.3.3: + version "1.5.1" + resolved "https://registry.yarnpkg.com/pumpify/-/pumpify-1.5.1.tgz#36513be246ab27570b1a374a5ce278bfd74370ce" + integrity sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ== + dependencies: + duplexify "^3.6.0" + inherits "^2.0.3" + pump "^2.0.0" + +punycode@1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" + integrity sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0= + +punycode@^1.2.4, punycode@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + integrity sha1-wNWmOycYgArY4esPpSachN1BhF4= + +punycode@^2.1.0, punycode@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + +qs@6.7.0, qs@^6.4.0: + version "6.7.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.7.0.tgz#41dc1a015e3d581f1621776be31afb2876a9b1bc" + integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ== + +qs@~6.5.2: + version "6.5.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" + integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== + +querystring-es3@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" + integrity sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM= + +querystring@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" + integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA= + +raf@^3.4.0: + version "3.4.1" + resolved "https://registry.yarnpkg.com/raf/-/raf-3.4.1.tgz#0742e99a4a6552f445d73e3ee0328af0ff1ede39" + integrity sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA== + dependencies: + performance-now "^2.1.0" + +railroad-diagrams@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/railroad-diagrams/-/railroad-diagrams-1.0.0.tgz#eb7e6267548ddedfb899c1b90e57374559cddb7e" + integrity sha1-635iZ1SN3t+4mcG5Dlc3RVnN234= + +randexp@0.4.6: + version "0.4.6" + resolved "https://registry.yarnpkg.com/randexp/-/randexp-0.4.6.tgz#e986ad5e5e31dae13ddd6f7b3019aa7c87f60ca3" + integrity sha512-80WNmd9DA0tmZrw9qQa62GPPWfuXJknrmVmLcxvq4uZBdYqb1wYoKTmnlGUchvVWe0XiLupYkBoXVOxz3C8DYQ== + dependencies: + discontinuous-range "1.0.0" + ret "~0.1.10" + +randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: + version "2.1.0" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" + integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== + dependencies: + safe-buffer "^5.1.0" + +randomfill@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/randomfill/-/randomfill-1.0.4.tgz#c92196fc86ab42be983f1bf31778224931d61458" + integrity sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw== + dependencies: + randombytes "^2.0.5" + safe-buffer "^5.1.0" + +range-parser@~1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" + integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== + +raw-body@2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.0.tgz#a1ce6fb9c9bc356ca52e89256ab59059e13d0332" + integrity sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q== + dependencies: + bytes "3.1.0" + http-errors "1.7.2" + iconv-lite "0.4.24" + unpipe "1.0.0" + +raw-body@~1.1.0: + version "1.1.7" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-1.1.7.tgz#1d027c2bfa116acc6623bca8f00016572a87d425" + integrity sha1-HQJ8K/oRasxmI7yo8AAWVyqH1CU= + dependencies: + bytes "1" + string_decoder "0.10" + +rc@^1.1.6, rc@^1.2.7: + version "1.2.8" + resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" + integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== + dependencies: + deep-extend "^0.6.0" + ini "~1.3.0" + minimist "^1.2.0" + strip-json-comments "~2.0.1" + +react-dom@^16.8.6: + version "16.8.6" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.6.tgz#71d6303f631e8b0097f56165ef608f051ff6e10f" + integrity sha512-1nL7PIq9LTL3fthPqwkvr2zY7phIPjYrT0jp4HjyEQrEROnw4dG41VVwi/wfoCneoleqrNX7iAD+pXebJZwrwA== + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.2" + scheduler "^0.13.6" + +react-is@^16.8.1, react-is@^16.8.6: + version "16.8.6" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.6.tgz#5bbc1e2d29141c9fbdfed456343fe2bc430a6a16" + integrity sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA== + +react-is@^16.8.4: + version "16.9.0" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.9.0.tgz#21ca9561399aad0ff1a7701c01683e8ca981edcb" + integrity sha512-tJBzzzIgnnRfEm046qRcURvwQnZVXmuCbscxUO5RWrGTXpon2d4c8mI0D8WE6ydVIm29JiLB6+RslkIvym9Rjw== + +react-test-renderer@^16.0.0-0: + version "16.8.6" + resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.8.6.tgz#188d8029b8c39c786f998aa3efd3ffe7642d5ba1" + integrity sha512-H2srzU5IWYT6cZXof6AhUcx/wEyJddQ8l7cLM/F7gDXYyPr4oq+vCIxJYXVGhId1J706sqziAjuOEjyNkfgoEw== + dependencies: + object-assign "^4.1.1" + prop-types "^15.6.2" + react-is "^16.8.6" + scheduler "^0.13.6" + +react@^16.8.6: + version "16.8.6" + resolved "https://registry.yarnpkg.com/react/-/react-16.8.6.tgz#ad6c3a9614fd3a4e9ef51117f54d888da01f2bbe" + integrity sha512-pC0uMkhLaHm11ZSJULfOBqV4tIZkx87ZLvbbQYunNixAAvjnC+snJCg0XQXn9VIsttVsbZP/H/ewzgsd5fxKXw== + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.2" + scheduler "^0.13.6" + +read-pkg-up@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" + integrity sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI= + dependencies: + find-up "^1.0.0" + read-pkg "^1.0.0" + +read-pkg-up@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" + integrity sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4= + dependencies: + find-up "^2.0.0" + read-pkg "^2.0.0" + +read-pkg-up@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-4.0.0.tgz#1b221c6088ba7799601c808f91161c66e58f8978" + integrity sha512-6etQSH7nJGsK0RbG/2TeDzZFa8shjQ1um+SwQQ5cwKy0dhSXdOncEhb1CPpvQG4h7FyOV6EB6YlV0yJvZQNAkA== + dependencies: + find-up "^3.0.0" + read-pkg "^3.0.0" + +read-pkg@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" + integrity sha1-9f+qXs0pyzHAR0vKfXVra7KePyg= + dependencies: + load-json-file "^1.0.0" + normalize-package-data "^2.3.2" + path-type "^1.0.0" + +read-pkg@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" + integrity sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg= + dependencies: + load-json-file "^2.0.0" + normalize-package-data "^2.3.2" + path-type "^2.0.0" + +read-pkg@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389" + integrity sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k= + dependencies: + load-json-file "^4.0.0" + normalize-package-data "^2.3.2" + path-type "^3.0.0" + +"readable-stream@1 || 2", readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.0, readable-stream@^2.3.3, readable-stream@^2.3.5, readable-stream@^2.3.6, readable-stream@~2.3.6: + version "2.3.6" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" + integrity sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.1.1" + util-deprecate "~1.0.1" + +readable-stream@^3.1.1: + version "3.4.0" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.4.0.tgz#a51c26754658e0a3c21dbf59163bd45ba6f447fc" + integrity sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readdirp@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.2.1.tgz#0e87622a3325aa33e892285caf8b4e846529a525" + integrity sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ== + dependencies: + graceful-fs "^4.1.11" + micromatch "^3.1.10" + readable-stream "^2.0.2" + +readdirp@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.1.1.tgz#b158123ac343c8b0f31d65680269cc0fc1025db1" + integrity sha512-XXdSXZrQuvqoETj50+JAitxz1UPdt5dupjT6T5nVB+WvjMv2XKYj+s7hPeAVCXvmJrL36O4YYyWlIC3an2ePiQ== + dependencies: + picomatch "^2.0.4" + +realpath-native@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/realpath-native/-/realpath-native-1.1.0.tgz#2003294fea23fb0672f2476ebe22fcf498a2d65c" + integrity sha512-wlgPA6cCIIg9gKz0fgAPjnzh4yR/LnXovwuo9hvyGvx3h8nX4+/iLZplfUWasXpqD8BdnGnP5njOFjkUwPzvjA== + dependencies: + util.promisify "^1.0.0" + +rechoir@^0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" + integrity sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q= + dependencies: + resolve "^1.1.6" + +redent@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde" + integrity sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94= + dependencies: + indent-string "^2.1.0" + strip-indent "^1.0.1" + +redent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/redent/-/redent-2.0.0.tgz#c1b2007b42d57eb1389079b3c8333639d5e1ccaa" + integrity sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo= + dependencies: + indent-string "^3.0.0" + strip-indent "^2.0.0" + +reflect.ownkeys@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/reflect.ownkeys/-/reflect.ownkeys-0.2.0.tgz#749aceec7f3fdf8b63f927a04809e90c5c0b3460" + integrity sha1-dJrO7H8/34tj+SegSAnpDFwLNGA= + +regenerate-unicode-properties@^8.0.2: + version "8.1.0" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.1.0.tgz#ef51e0f0ea4ad424b77bf7cb41f3e015c70a3f0e" + integrity sha512-LGZzkgtLY79GeXLm8Dp0BVLdQlWICzBnJz/ipWUgo59qBaZ+BHtq51P2q1uVZlppMuUAT37SDk39qUbjTWB7bA== + dependencies: + regenerate "^1.4.0" + +regenerate@^1.2.1, regenerate@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11" + integrity sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg== + +regenerator-runtime@^0.10.5: + version "0.10.5" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz#336c3efc1220adcedda2c9fab67b5a7955a33658" + integrity sha1-M2w+/BIgrc7dosn6tntaeVWjNlg= + +regenerator-runtime@^0.11.0: + version "0.11.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" + integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== + +regenerator-runtime@^0.12.0: + version "0.12.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz#fa1a71544764c036f8c49b13a08b2594c9f8a0de" + integrity sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg== + +regenerator-runtime@^0.13.2: + version "0.13.2" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.2.tgz#32e59c9a6fb9b1a4aff09b4930ca2d4477343447" + integrity sha512-S/TQAZJO+D3m9xeN1WTI8dLKBBiRgXBlTJvbWjCThHWZj9EvHK70Ff50/tYj2J/fvBY6JtFVwRuazHN2E7M9BA== + +regenerator-transform@^0.10.0: + version "0.10.1" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd" + integrity sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q== + dependencies: + babel-runtime "^6.18.0" + babel-types "^6.19.0" + private "^0.1.6" + +regenerator-transform@^0.14.0: + version "0.14.0" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.14.0.tgz#2ca9aaf7a2c239dd32e4761218425b8c7a86ecaf" + integrity sha512-rtOelq4Cawlbmq9xuMR5gdFmv7ku/sFoB7sRiywx7aq53bc52b4j6zvH7Te1Vt/X2YveDKnCGUbioieU7FEL3w== + dependencies: + private "^0.1.6" + +regex-not@^1.0.0, regex-not@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" + integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== + dependencies: + extend-shallow "^3.0.2" + safe-regex "^1.1.0" + +regexp-tree@^0.1.6: + version "0.1.11" + resolved "https://registry.yarnpkg.com/regexp-tree/-/regexp-tree-0.1.11.tgz#c9c7f00fcf722e0a56c7390983a7a63dd6c272f3" + integrity sha512-7/l/DgapVVDzZobwMCCgMlqiqyLFJ0cduo/j+3BcDJIB+yJdsYCfKuI3l/04NV+H/rfNRdPIDbXNZHM9XvQatg== + +regexpp@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f" + integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw== + +regexpu-core@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240" + integrity sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA= + dependencies: + regenerate "^1.2.1" + regjsgen "^0.2.0" + regjsparser "^0.1.4" + +regexpu-core@^4.5.4: + version "4.5.4" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.5.4.tgz#080d9d02289aa87fe1667a4f5136bc98a6aebaae" + integrity sha512-BtizvGtFQKGPUcTy56o3nk1bGRp4SZOTYrDtGNlqCQufptV5IkkLN6Emw+yunAJjzf+C9FQFtvq7IoA3+oMYHQ== + dependencies: + regenerate "^1.4.0" + regenerate-unicode-properties "^8.0.2" + regjsgen "^0.5.0" + regjsparser "^0.6.0" + unicode-match-property-ecmascript "^1.0.4" + unicode-match-property-value-ecmascript "^1.1.0" + +regjsgen@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.2.0.tgz#6c016adeac554f75823fe37ac05b92d5a4edb1f7" + integrity sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc= + +regjsgen@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.5.0.tgz#a7634dc08f89209c2049adda3525711fb97265dd" + integrity sha512-RnIrLhrXCX5ow/E5/Mh2O4e/oa1/jW0eaBKTSy3LaCj+M3Bqvm97GWDp2yUtzIs4LEn65zR2yiYGFqb2ApnzDA== + +regjsparser@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" + integrity sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw= + dependencies: + jsesc "~0.5.0" + +regjsparser@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.6.0.tgz#f1e6ae8b7da2bae96c99399b868cd6c933a2ba9c" + integrity sha512-RQ7YyokLiQBomUJuUG8iGVvkgOLxwyZM8k6d3q5SAXpg4r5TZJZigKFvC6PpD+qQ98bCDC5YelPeA3EucDoNeQ== + dependencies: + jsesc "~0.5.0" + +remove-trailing-separator@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" + integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8= + +repeat-element@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" + integrity sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g== + +repeat-string@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= + +repeating@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" + integrity sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo= + dependencies: + is-finite "^1.0.0" + +request-promise-core@1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.2.tgz#339f6aababcafdb31c799ff158700336301d3346" + integrity sha512-UHYyq1MO8GsefGEt7EprS8UrXsm1TxEvFUX1IMTuSLU2Rh7fTIdFtl8xD7JiEYiWU2dl+NYAjCTksTehQUxPag== + dependencies: + lodash "^4.17.11" + +request-promise-native@^1.0.5: + version "1.0.7" + resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.7.tgz#a49868a624bdea5069f1251d0a836e0d89aa2c59" + integrity sha512-rIMnbBdgNViL37nZ1b3L/VfPOpSi0TqVDQPAvO6U14lMzOLrt5nilxCQqtDKhZeDiW0/hkCXGoQjhgJd/tCh6w== + dependencies: + request-promise-core "1.1.2" + stealthy-require "^1.1.1" + tough-cookie "^2.3.3" + +request@^2.87.0, request@^2.88.0: + version "2.88.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef" + integrity sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg== + dependencies: + aws-sign2 "~0.7.0" + aws4 "^1.8.0" + caseless "~0.12.0" + combined-stream "~1.0.6" + extend "~3.0.2" + forever-agent "~0.6.1" + form-data "~2.3.2" + har-validator "~5.1.0" + http-signature "~1.2.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.19" + oauth-sign "~0.9.0" + performance-now "^2.1.0" + qs "~6.5.2" + safe-buffer "^5.1.2" + tough-cookie "~2.4.3" + tunnel-agent "^0.6.0" + uuid "^3.3.2" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + +require-main-filename@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" + integrity sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE= + +require-main-filename@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" + integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== + +resolve-cwd@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a" + integrity sha1-AKn3OHVW4nA46uIyyqNypqWbZlo= + dependencies: + resolve-from "^3.0.0" + +resolve-dir@^1.0.0, resolve-dir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/resolve-dir/-/resolve-dir-1.0.1.tgz#79a40644c362be82f26effe739c9bb5382046f43" + integrity sha1-eaQGRMNivoLybv/nOcm7U4IEb0M= + dependencies: + expand-tilde "^2.0.0" + global-modules "^1.0.0" + +resolve-from@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-2.0.0.tgz#9480ab20e94ffa1d9e80a804c7ea147611966b57" + integrity sha1-lICrIOlP+h2egKgEx+oUdhGWa1c= + +resolve-from@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" + integrity sha1-six699nWiBvItuZTM17rywoYh0g= + +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + +resolve-pkg@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/resolve-pkg/-/resolve-pkg-1.0.0.tgz#e19a15e78aca2e124461dc92b2e3943ef93494d9" + integrity sha1-4ZoV54rKLhJEYdySsuOUPvk0lNk= + dependencies: + resolve-from "^2.0.0" + +resolve-url@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" + integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= + +resolve@1.1.7, resolve@~1.1.0: + version "1.1.7" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" + integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs= + +resolve@1.x, resolve@^1.10.1, resolve@^1.11.0, resolve@^1.5.0, resolve@^1.8.1: + version "1.11.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.11.1.tgz#ea10d8110376982fef578df8fc30b9ac30a07a3e" + integrity sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw== + dependencies: + path-parse "^1.0.6" + +resolve@^1.1.6, resolve@^1.1.7, resolve@^1.10.0, resolve@^1.3.2: + version "1.12.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6" + integrity sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w== + dependencies: + path-parse "^1.0.6" + +restore-cursor@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" + integrity sha1-n37ih/gv0ybU/RYpI9YhKe7g368= + dependencies: + onetime "^2.0.0" + signal-exit "^3.0.2" + +ret@~0.1.10: + version "0.1.15" + resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" + integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== + +rimraf@2, rimraf@2.6.3, rimraf@^2.6.2, rimraf@~2.6.2: + version "2.6.3" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" + integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== + dependencies: + glob "^7.1.3" + +rimraf@2.2.6: + version "2.2.6" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.2.6.tgz#c59597569b14d956ad29cacc42bdddf5f0ea4f4c" + integrity sha1-xZWXVpsU2VatKcrMQr3d9fDqT0w= + +rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.3: + version "2.7.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" + integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== + dependencies: + glob "^7.1.3" + +ripemd160@^2.0.0, ripemd160@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" + integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA== + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +rst-selector-parser@^2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/rst-selector-parser/-/rst-selector-parser-2.2.3.tgz#81b230ea2fcc6066c89e3472de794285d9b03d91" + integrity sha1-gbIw6i/MYGbInjRy3nlChdmwPZE= + dependencies: + lodash.flattendeep "^4.4.0" + nearley "^2.7.10" + +rsvp@^4.8.4: + version "4.8.5" + resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734" + integrity sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA== + +run-async@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0" + integrity sha1-A3GrSuC91yDUFm19/aZP96RFpsA= + dependencies: + is-promise "^2.1.0" + +run-queue@^1.0.0, run-queue@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/run-queue/-/run-queue-1.0.3.tgz#e848396f057d223f24386924618e25694161ec47" + integrity sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec= + dependencies: + aproba "^1.1.1" + +rxjs@^6.4.0: + version "6.5.2" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.2.tgz#2e35ce815cd46d84d02a209fb4e5921e051dbec7" + integrity sha512-HUb7j3kvb7p7eCUHE3FqjoDsC1xfZQ4AHFWfTKSpZ+sAhhz5X1WX0ZuUqWbzB2QhSLp3DoLUG+hMdEDKqWo2Zg== + dependencies: + tslib "^1.9.0" + +safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2: + version "5.2.0" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519" + integrity sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg== + +safe-json-parse@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/safe-json-parse/-/safe-json-parse-1.0.1.tgz#3e76723e38dfdda13c9b1d29a1e07ffee4b30b57" + integrity sha1-PnZyPjjf3aE8mx0poeB//uSzC1c= + +safe-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" + integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4= + dependencies: + ret "~0.1.10" + +"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +sane@^4.0.3: + version "4.1.0" + resolved "https://registry.yarnpkg.com/sane/-/sane-4.1.0.tgz#ed881fd922733a6c461bc189dc2b6c006f3ffded" + integrity sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA== + dependencies: + "@cnakazawa/watch" "^1.0.3" + anymatch "^2.0.0" + capture-exit "^2.0.0" + exec-sh "^0.3.2" + execa "^1.0.0" + fb-watchman "^2.0.0" + micromatch "^3.1.4" + minimist "^1.1.1" + walker "~1.0.5" + +sanitizer@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/sanitizer/-/sanitizer-0.1.3.tgz#d4f0af7475d9a7baf2a9e5a611718baa178a39e1" + integrity sha1-1PCvdHXZp7ryqeWmEXGLqheKOeE= + +sass-graph@^2.2.4: + version "2.2.4" + resolved "https://registry.yarnpkg.com/sass-graph/-/sass-graph-2.2.4.tgz#13fbd63cd1caf0908b9fd93476ad43a51d1e0b49" + integrity sha1-E/vWPNHK8JCLn9k0dq1DpR0eC0k= + dependencies: + glob "^7.0.0" + lodash "^4.0.0" + scss-tokenizer "^0.2.3" + yargs "^7.0.0" + +sass@^1.0.0-beta.3: + version "1.22.4" + resolved "https://registry.yarnpkg.com/sass/-/sass-1.22.4.tgz#00b433055f00a25ed5f060ca4abc332facaf02fc" + integrity sha512-gQFNzYKlAn9ee6Qy1UhTxy0G24QR5BWP61AN61jAEqwauzVCP5qjUveO/WkIj72po0ljncdVXo96EQR+ig2lRw== + dependencies: + chokidar ">=2.0.0 <4.0.0" + +sax@>=0.6.0, sax@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" + integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== + +saxes@^3.1.5: + version "3.1.11" + resolved "https://registry.yarnpkg.com/saxes/-/saxes-3.1.11.tgz#d59d1fd332ec92ad98a2e0b2ee644702384b1c5b" + integrity sha512-Ydydq3zC+WYDJK1+gRxRapLIED9PWeSuuS41wqyoRmzvhhh9nc+QQrVMKJYzJFULazeGhzSV0QleN2wD3boh2g== + dependencies: + xmlchars "^2.1.1" + +scheduler@^0.13.6: + version "0.13.6" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.13.6.tgz#466a4ec332467b31a91b9bf74e5347072e4cd889" + integrity sha512-IWnObHt413ucAYKsD9J1QShUKkbKLQQHdxRyw73sw4FN26iWr3DY/H34xGPe4nmL1DwXyWmSWmMrA9TfQbE/XQ== + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + +schema-utils@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-1.0.0.tgz#0b79a93204d7b600d4b2850d1f66c2a34951c770" + integrity sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g== + dependencies: + ajv "^6.1.0" + ajv-errors "^1.0.0" + ajv-keywords "^3.1.0" + +scss-tokenizer@^0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz#8eb06db9a9723333824d3f5530641149847ce5d1" + integrity sha1-jrBtualyMzOCTT9VMGQRSYR85dE= + dependencies: + js-base64 "^2.1.8" + source-map "^0.4.2" + +"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0, semver@^5.6.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== + +semver@^5.5, semver@^5.5.1, semver@^5.7.0: + version "5.7.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.0.tgz#790a7cf6fea5459bac96110b29b60412dc8ff96b" + integrity sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA== + +semver@^6.0.0, semver@^6.2.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" + integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== + +semver@^6.1.1: + version "6.2.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.2.0.tgz#4d813d9590aaf8a9192693d6c85b9344de5901db" + integrity sha512-jdFC1VdUGT/2Scgbimf7FSx9iJLXoqfglSF+gJeuNWVpiE37OIbc1jywR/GJyFdz3mnkz2/id0L0J/cr0izR5A== + +semver@~5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" + integrity sha1-myzl094C0XxgEq0yaqa00M9U+U8= + +send@0.17.1: + version "0.17.1" + resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8" + integrity sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg== + dependencies: + debug "2.6.9" + depd "~1.1.2" + destroy "~1.0.4" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "0.5.2" + http-errors "~1.7.2" + mime "1.6.0" + ms "2.1.1" + on-finished "~2.3.0" + range-parser "~1.2.1" + statuses "~1.5.0" + +serialize-javascript@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-1.7.0.tgz#d6e0dfb2a3832a8c94468e6eb1db97e55a192a65" + integrity sha512-ke8UG8ulpFOxO8f8gRYabHQe/ZntKlcig2Mp+8+URDP1D8vJZ0KUt7LYo07q25Z/+JVSgpr/cui9PIp5H6/+nA== + +serve-static@1.14.1: + version "1.14.1" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.14.1.tgz#666e636dc4f010f7ef29970a88a674320898b2f9" + integrity sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg== + dependencies: + encodeurl "~1.0.2" + escape-html "~1.0.3" + parseurl "~1.3.3" + send "0.17.1" + +set-blocking@^2.0.0, set-blocking@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= + +set-value@^2.0.0, set-value@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" + integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.3" + split-string "^3.0.1" + +setimmediate@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" + integrity sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU= + +setprototypeof@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.1.tgz#7e95acb24aa92f5885e0abef5ba131330d4ae683" + integrity sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw== + +sha.js@^2.4.0, sha.js@^2.4.8: + version "2.4.11" + resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" + integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ== + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + integrity sha1-RKrGW2lbAzmJaMOfNj/uXer98eo= + dependencies: + shebang-regex "^1.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= + +shellwords@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" + integrity sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww== + +signal-exit@^3.0.0, signal-exit@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" + integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= + +simple-concat@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/simple-concat/-/simple-concat-1.0.0.tgz#7344cbb8b6e26fb27d66b2fc86f9f6d5997521c6" + integrity sha1-c0TLuLbib7J9ZrL8hvn21Zl1IcY= + +simple-get@^2.7.0: + version "2.8.1" + resolved "https://registry.yarnpkg.com/simple-get/-/simple-get-2.8.1.tgz#0e22e91d4575d87620620bc91308d57a77f44b5d" + integrity sha512-lSSHRSw3mQNUGPAYRqo7xy9dhKmxFXIjLjp4KHpf99GEH2VH7C3AM+Qfx6du6jhfUi6Vm7XnbEVEf7Wb6N8jRw== + dependencies: + decompress-response "^3.3.0" + once "^1.3.1" + simple-concat "^1.0.0" + +sisteransi@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.3.tgz#98168d62b79e3a5e758e27ae63c4a053d748f4eb" + integrity sha512-SbEG75TzH8G7eVXFSN5f9EExILKfly7SUvVY5DhhYLvfhKqhDFY0OzevWa/zwak0RLRfWS5AvfMWpd9gJvr5Yg== + +slash@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" + integrity sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU= + +slash@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44" + integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A== + +slice-ansi@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636" + integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== + dependencies: + ansi-styles "^3.2.0" + astral-regex "^1.0.0" + is-fullwidth-code-point "^2.0.0" + +snapdragon-node@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" + integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== + dependencies: + define-property "^1.0.0" + isobject "^3.0.0" + snapdragon-util "^3.0.1" + +snapdragon-util@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" + integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== + dependencies: + kind-of "^3.2.0" + +snapdragon@^0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" + integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== + dependencies: + base "^0.11.1" + debug "^2.2.0" + define-property "^0.2.5" + extend-shallow "^2.0.1" + map-cache "^0.2.2" + source-map "^0.5.6" + source-map-resolve "^0.5.0" + use "^3.1.0" + +source-list-map@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34" + integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw== + +source-map-resolve@^0.5.0, source-map-resolve@^0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259" + integrity sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA== + dependencies: + atob "^2.1.1" + decode-uri-component "^0.2.0" + resolve-url "^0.2.1" + source-map-url "^0.4.0" + urix "^0.1.0" + +source-map-support@^0.4.15: + version "0.4.18" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" + integrity sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA== + dependencies: + source-map "^0.5.6" + +source-map-support@^0.5.6: + version "0.5.13" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932" + integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map-support@~0.5.12: + version "0.5.12" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.12.tgz#b4f3b10d51857a5af0138d3ce8003b201613d599" + integrity sha512-4h2Pbvyy15EE02G+JOZpUCmqWJuqrs+sEkzewTm++BPi7Hvn/HwcqLAcNxYAyI0x13CpPPn+kMjl+hplXMHITQ== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map-url@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" + integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM= + +source-map@^0.4.2: + version "0.4.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" + integrity sha1-66T12pwNyZneaAMti092FzZSA2s= + dependencies: + amdefine ">=0.0.4" + +source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@^0.5.7: + version "0.5.7" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" + integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= + +source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +spdx-correct@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.0.tgz#fb83e504445268f154b074e218c87c003cd31df4" + integrity sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q== + dependencies: + spdx-expression-parse "^3.0.0" + spdx-license-ids "^3.0.0" + +spdx-exceptions@^2.1.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz#2ea450aee74f2a89bfb94519c07fcd6f41322977" + integrity sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA== + +spdx-expression-parse@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" + integrity sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg== + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + +spdx-license-ids@^3.0.0: + version "3.0.5" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz#3694b5804567a458d3c8045842a6358632f62654" + integrity sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q== + +split-string@^3.0.1, split-string@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" + integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== + dependencies: + extend-shallow "^3.0.0" + +sprintf-js@^1.0.3: + version "1.1.2" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.1.2.tgz#da1765262bf8c0f571749f2ad6c26300207ae673" + integrity sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug== + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= + +sshpk@^1.7.0: + version "1.16.1" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz#fb661c0bef29b39db40769ee39fa70093d6f6877" + integrity sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg== + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + bcrypt-pbkdf "^1.0.0" + dashdash "^1.12.0" + ecc-jsbn "~0.1.1" + getpass "^0.1.1" + jsbn "~0.1.0" + safer-buffer "^2.0.2" + tweetnacl "~0.14.0" + +ssri@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.1.tgz#2a3c41b28dd45b62b63676ecb74001265ae9edd8" + integrity sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA== + dependencies: + figgy-pudding "^3.5.1" + +stack-utils@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.2.tgz#33eba3897788558bebfc2db059dc158ec36cebb8" + integrity sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA== + +static-extend@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" + integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY= + dependencies: + define-property "^0.2.5" + object-copy "^0.1.0" + +"statuses@>= 1.5.0 < 2", statuses@~1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" + integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= + +stdout-stream@^1.4.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/stdout-stream/-/stdout-stream-1.4.1.tgz#5ac174cdd5cd726104aa0c0b2bd83815d8d535de" + integrity sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA== + dependencies: + readable-stream "^2.0.1" + +stealthy-require@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" + integrity sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks= + +stream-browserify@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.2.tgz#87521d38a44aa7ee91ce1cd2a47df0cb49dd660b" + integrity sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg== + dependencies: + inherits "~2.0.1" + readable-stream "^2.0.2" + +stream-buffers@^2.1.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/stream-buffers/-/stream-buffers-2.2.0.tgz#91d5f5130d1cef96dcfa7f726945188741d09ee4" + integrity sha1-kdX1Ew0c75bc+n9yaUUYh0HQnuQ= + +stream-each@^1.1.0: + version "1.2.3" + resolved "https://registry.yarnpkg.com/stream-each/-/stream-each-1.2.3.tgz#ebe27a0c389b04fbcc233642952e10731afa9bae" + integrity sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw== + dependencies: + end-of-stream "^1.1.0" + stream-shift "^1.0.0" + +stream-http@^2.7.2: + version "2.8.3" + resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.8.3.tgz#b2d242469288a5a27ec4fe8933acf623de6514fc" + integrity sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw== + dependencies: + builtin-status-codes "^3.0.0" + inherits "^2.0.1" + readable-stream "^2.3.6" + to-arraybuffer "^1.0.0" + xtend "^4.0.0" + +stream-shift@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.0.tgz#d5c752825e5367e786f78e18e445ea223a155952" + integrity sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI= + +string-length@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/string-length/-/string-length-2.0.0.tgz#d40dbb686a3ace960c1cffca562bf2c45f8363ed" + integrity sha1-1A27aGo6zpYMHP/KVivyxF+DY+0= + dependencies: + astral-regex "^1.0.0" + strip-ansi "^4.0.0" + +string-template@~0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/string-template/-/string-template-0.2.1.tgz#42932e598a352d01fc22ec3367d9d84eec6c9add" + integrity sha1-QpMuWYo1LQH8IuwzZ9nYTuxsmt0= + +string-width@^1.0.1, string-width@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + integrity sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M= + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + strip-ansi "^3.0.0" + +"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" + integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^4.0.0" + +string-width@^3.0.0, string-width@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" + integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== + dependencies: + emoji-regex "^7.0.1" + is-fullwidth-code-point "^2.0.0" + strip-ansi "^5.1.0" + +string.prototype.trim@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz#d04de2c89e137f4d7d206f086b5ed2fae6be8cea" + integrity sha1-0E3iyJ4Tf019IG8Ia17S+ua+jOo= + dependencies: + define-properties "^1.1.2" + es-abstract "^1.5.0" + function-bind "^1.0.2" + +string.prototype.trimleft@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.0.tgz#6cc47f0d7eb8d62b0f3701611715a3954591d634" + integrity sha512-FJ6b7EgdKxxbDxc79cOlok6Afd++TTs5szo+zJTUyow3ycrRfJVE2pq3vcN53XexvKZu/DJMDfeI/qMiZTrjTw== + dependencies: + define-properties "^1.1.3" + function-bind "^1.1.1" + +string.prototype.trimright@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.0.tgz#669d164be9df9b6f7559fa8e89945b168a5a6c58" + integrity sha512-fXZTSV55dNBwv16uw+hh5jkghxSnc5oHq+5K/gXgizHwAvMetdAJlHqqoFC1FSDVPYWLkAKl2cxpUT41sV7nSg== + dependencies: + define-properties "^1.1.3" + function-bind "^1.1.1" + +string_decoder@0.10: + version "0.10.31" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" + integrity sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ= + +string_decoder@^1.0.0, string_decoder@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.2.0.tgz#fe86e738b19544afe70469243b2a1ee9240eae8d" + integrity sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w== + dependencies: + safe-buffer "~5.1.0" + +string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8= + dependencies: + ansi-regex "^2.0.0" + +strip-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" + integrity sha1-qEeQIusaw2iocTibY1JixQXuNo8= + dependencies: + ansi-regex "^3.0.0" + +strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" + integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== + dependencies: + ansi-regex "^4.1.0" + +strip-bom@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" + integrity sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4= + dependencies: + is-utf8 "^0.2.0" + +strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= + +strip-eof@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" + integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= + +strip-indent@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-1.0.1.tgz#0c7962a6adefa7bbd4ac366460a638552ae1a0a2" + integrity sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI= + dependencies: + get-stdin "^4.0.1" + +strip-indent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68" + integrity sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g= + +strip-json-comments@^2.0.1, strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= + +supports-color@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc= + +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== + dependencies: + has-flag "^3.0.0" + +supports-color@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz#0764abc69c63d5ac842dd4867e8d025e880df8f3" + integrity sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ== + dependencies: + has-flag "^3.0.0" + +symbol-tree@^3.2.2: + version "3.2.4" + resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" + integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== + +table@^5.2.3: + version "5.4.1" + resolved "https://registry.yarnpkg.com/table/-/table-5.4.1.tgz#0691ae2ebe8259858efb63e550b6d5f9300171e8" + integrity sha512-E6CK1/pZe2N75rGZQotFOdmzWQ1AILtgYbMAbAjvms0S1l5IDB47zG3nCnFGB/w+7nB3vKofbLXCH7HPBo864w== + dependencies: + ajv "^6.9.1" + lodash "^4.17.11" + slice-ansi "^2.1.0" + string-width "^3.0.0" + +tapable@^1.0.0, tapable@^1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2" + integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA== + +tar-fs@^1.13.0: + version "1.16.3" + resolved "https://registry.yarnpkg.com/tar-fs/-/tar-fs-1.16.3.tgz#966a628841da2c4010406a82167cbd5e0c72d509" + integrity sha512-NvCeXpYx7OsmOh8zIOP/ebG55zZmxLE0etfWRbWok+q2Qo8x/vOR/IJT1taADXPe+jsiu9axDb3X4B+iIgNlKw== + dependencies: + chownr "^1.0.1" + mkdirp "^0.5.1" + pump "^1.0.0" + tar-stream "^1.1.2" + +tar-stream@^1.1.2, tar-stream@^1.5.0: + version "1.6.2" + resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-1.6.2.tgz#8ea55dab37972253d9a9af90fdcd559ae435c555" + integrity sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A== + dependencies: + bl "^1.0.0" + buffer-alloc "^1.2.0" + end-of-stream "^1.0.0" + fs-constants "^1.0.0" + readable-stream "^2.3.0" + to-buffer "^1.1.1" + xtend "^4.0.0" + +tar@^2.0.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.2.tgz#0ca8848562c7299b8b446ff6a4d60cdbb23edc40" + integrity sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA== + dependencies: + block-stream "*" + fstream "^1.0.12" + inherits "2" + +tar@^4: + version "4.4.11" + resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.11.tgz#7ac09801445a3cf74445ed27499136b5240ffb73" + integrity sha512-iI4zh3ktLJKaDNZKZc+fUONiQrSn9HkCFzamtb7k8FFmVilHVob7QsLX/VySAW8lAviMzMbFw4QtFb4errwgYA== + dependencies: + chownr "^1.1.1" + fs-minipass "^1.2.5" + minipass "^2.6.4" + minizlib "^1.2.1" + mkdirp "^0.5.0" + safe-buffer "^5.1.2" + yallist "^3.0.3" + +terser-webpack-plugin@^1.1.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.3.0.tgz#69aa22426299f4b5b3775cbed8cb2c5d419aa1d4" + integrity sha512-W2YWmxPjjkUcOWa4pBEv4OP4er1aeQJlSo2UhtCFQCuRXEHjOFscO8VyWHj9JLlA0RzQb8Y2/Ta78XZvT54uGg== + dependencies: + cacache "^11.3.2" + find-cache-dir "^2.0.0" + is-wsl "^1.1.0" + loader-utils "^1.2.3" + schema-utils "^1.0.0" + serialize-javascript "^1.7.0" + source-map "^0.6.1" + terser "^4.0.0" + webpack-sources "^1.3.0" + worker-farm "^1.7.0" + +terser@^4.0.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/terser/-/terser-4.1.2.tgz#b2656c8a506f7ce805a3f300a2ff48db022fa391" + integrity sha512-jvNoEQSPXJdssFwqPSgWjsOrb+ELoE+ILpHPKXC83tIxOlh2U75F1KuB2luLD/3a6/7K3Vw5pDn+hvu0C4AzSw== + dependencies: + commander "^2.20.0" + source-map "~0.6.1" + source-map-support "~0.5.12" + +test-exclude@^5.2.3: + version "5.2.3" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-5.2.3.tgz#c3d3e1e311eb7ee405e092dac10aefd09091eac0" + integrity sha512-M+oxtseCFO3EDtAaGH7iiej3CBkzXqFMbzqYAACdzKui4eZA+pq3tZEwChvOdNfa7xxy8BfbmgJSIr43cC/+2g== + dependencies: + glob "^7.1.3" + minimatch "^3.0.4" + read-pkg-up "^4.0.0" + require-main-filename "^2.0.0" + +text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= + +throat@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" + integrity sha1-iQN8vJLFarGJJua6TLsgDhVnKmo= + +through2@^2.0.0: + version "2.0.5" + resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" + integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ== + dependencies: + readable-stream "~2.3.6" + xtend "~4.0.1" + +through@^2.3.6: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= + +timers-browserify@^2.0.4: + version "2.0.10" + resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.10.tgz#1d28e3d2aadf1d5a5996c4e9f95601cd053480ae" + integrity sha512-YvC1SV1XdOUaL6gx5CoGroT3Gu49pK9+TZ38ErPldOWW4j49GI1HKs9DV+KGq/w6y+LZ72W1c8cKz2vzY+qpzg== + dependencies: + setimmediate "^1.0.4" + +tiny-lr@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/tiny-lr/-/tiny-lr-1.1.1.tgz#9fa547412f238fedb068ee295af8b682c98b2aab" + integrity sha512-44yhA3tsaRoMOjQQ+5v5mVdqef+kH6Qze9jTpqtVufgYjYt08zyZAwNwwVBj3i1rJMnR52IxOW0LK0vBzgAkuA== + dependencies: + body "^5.1.0" + debug "^3.1.0" + faye-websocket "~0.10.0" + livereload-js "^2.3.0" + object-assign "^4.1.0" + qs "^6.4.0" + +tmp@^0.0.33: + version "0.0.33" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" + integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== + dependencies: + os-tmpdir "~1.0.2" + +tmpl@1.0.x: + version "1.0.4" + resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" + integrity sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE= + +to-arraybuffer@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" + integrity sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M= + +to-buffer@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/to-buffer/-/to-buffer-1.1.1.tgz#493bd48f62d7c43fcded313a03dcadb2e1213a80" + integrity sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg== + +to-fast-properties@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" + integrity sha1-uDVx+k2MJbguIxsG46MFXeTKGkc= + +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4= + +to-object-path@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" + integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68= + dependencies: + kind-of "^3.0.2" + +to-regex-range@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" + integrity sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg= + dependencies: + is-number "^3.0.0" + repeat-string "^1.6.1" + +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + +to-regex@^3.0.1, to-regex@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" + integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== + dependencies: + define-property "^2.0.2" + extend-shallow "^3.0.2" + regex-not "^1.0.2" + safe-regex "^1.1.0" + +toidentifier@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553" + integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw== + +tough-cookie@^2.3.3, tough-cookie@^2.3.4, tough-cookie@^2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" + integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== + dependencies: + psl "^1.1.28" + punycode "^2.1.1" + +tough-cookie@~2.4.3: + version "2.4.3" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781" + integrity sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ== + dependencies: + psl "^1.1.24" + punycode "^1.4.1" + +tr46@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" + integrity sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk= + dependencies: + punycode "^2.1.0" + +trim-newlines@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" + integrity sha1-WIeWa7WCpFA6QetST301ARgVphM= + +trim-right@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" + integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM= + +"true-case-path@^1.0.2": + version "1.0.3" + resolved "https://registry.yarnpkg.com/true-case-path/-/true-case-path-1.0.3.tgz#f813b5a8c86b40da59606722b144e3225799f47d" + integrity sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew== + dependencies: + glob "^7.1.2" + +ts-jest@^24.0.0, ts-jest@^24.0.1: + version "24.0.2" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-24.0.2.tgz#8dde6cece97c31c03e80e474c749753ffd27194d" + integrity sha512-h6ZCZiA1EQgjczxq+uGLXQlNgeg02WWJBbeT8j6nyIBRQdglqbvzDoHahTEIiS6Eor6x8mK6PfZ7brQ9Q6tzHw== + dependencies: + bs-logger "0.x" + buffer-from "1.x" + fast-json-stable-stringify "2.x" + json5 "2.x" + make-error "1.x" + mkdirp "0.x" + resolve "1.x" + semver "^5.5" + yargs-parser "10.x" + +tslib@^1.9.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" + integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ== + +tty-browserify@0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" + integrity sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY= + +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + integrity sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0= + dependencies: + safe-buffer "^5.0.1" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I= + dependencies: + prelude-ls "~1.1.2" + +type-is@~1.6.17, type-is@~1.6.18: + version "1.6.18" + resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" + integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== + dependencies: + media-typer "0.3.0" + mime-types "~2.1.24" + +typedarray@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" + integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= + +typescript@^3.3.4000: + version "3.5.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977" + integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g== + +uglify-js@^3.1.4, uglify-js@^3.5.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.6.0.tgz#704681345c53a8b2079fb6cec294b05ead242ff5" + integrity sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg== + dependencies: + commander "~2.20.0" + source-map "~0.6.1" + +unc-path-regex@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa" + integrity sha1-5z3T17DXxe2G+6xrCufYxqadUPo= + +underscore.string@^3.3.5, underscore.string@~3.3.4: + version "3.3.5" + resolved "https://registry.yarnpkg.com/underscore.string/-/underscore.string-3.3.5.tgz#fc2ad255b8bd309e239cbc5816fd23a9b7ea4023" + integrity sha512-g+dpmgn+XBneLmXXo+sGlW5xQEt4ErkS3mgeN2GFbremYeMBSJKr9Wf2KJplQVaiPY/f7FN6atosWYNm9ovrYg== + dependencies: + sprintf-js "^1.0.3" + util-deprecate "^1.0.2" + +underscore@^1.9.1: + version "1.9.1" + resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.9.1.tgz#06dce34a0e68a7babc29b365b8e74b8925203961" + integrity sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg== + +unicode-canonical-property-names-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818" + integrity sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ== + +unicode-match-property-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz#8ed2a32569961bce9227d09cd3ffbb8fed5f020c" + integrity sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg== + dependencies: + unicode-canonical-property-names-ecmascript "^1.0.4" + unicode-property-aliases-ecmascript "^1.0.4" + +unicode-match-property-value-ecmascript@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.1.0.tgz#5b4b426e08d13a80365e0d657ac7a6c1ec46a277" + integrity sha512-hDTHvaBk3RmFzvSl0UVrUmC3PuW9wKVnpoUDYH0JDkSIovzw+J5viQmeYHxVSBptubnr7PbH2e0fnpDRQnQl5g== + +unicode-property-aliases-ecmascript@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.5.tgz#a9cc6cc7ce63a0a3023fc99e341b94431d405a57" + integrity sha512-L5RAqCfXqAwR3RriF8pM0lU0w4Ryf/GgzONwi6KnL1taJQa7x1TCxdJnILX59WIGOwR57IVxn7Nej0fz1Ny6fw== + +union-value@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" + integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== + dependencies: + arr-union "^3.1.0" + get-value "^2.0.6" + is-extendable "^0.1.1" + set-value "^2.0.1" + +unique-filename@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-1.1.1.tgz#1d69769369ada0583103a1e6ae87681b56573230" + integrity sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ== + dependencies: + unique-slug "^2.0.0" + +unique-slug@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-2.0.2.tgz#baabce91083fc64e945b0f3ad613e264f7cd4e6c" + integrity sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w== + dependencies: + imurmurhash "^0.1.4" + +unpipe@1.0.0, unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= + +unset-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" + integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk= + dependencies: + has-value "^0.3.1" + isobject "^3.0.0" + +upath@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/upath/-/upath-1.1.2.tgz#3db658600edaeeccbe6db5e684d67ee8c2acd068" + integrity sha512-kXpym8nmDmlCBr7nKdIx8P2jNBa+pBpIUFRnKJ4dr8htyYGJFokkr2ZvERRtUN+9SY+JqXouNgUPtv6JQva/2Q== + +uri-js@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" + integrity sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ== + dependencies: + punycode "^2.1.0" + +uri-path@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/uri-path/-/uri-path-1.0.0.tgz#9747f018358933c31de0fccfd82d138e67262e32" + integrity sha1-l0fwGDWJM8Md4PzP2C0TjmcmLjI= + +urix@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" + integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= + +url@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" + integrity sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE= + dependencies: + punycode "1.3.2" + querystring "0.2.0" + +use@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" + integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== + +util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + +util.promisify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030" + integrity sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA== + dependencies: + define-properties "^1.1.2" + object.getownpropertydescriptors "^2.0.3" + +util@0.10.3: + version "0.10.3" + resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" + integrity sha1-evsa/lCAUkZInj23/g7TeTNqwPk= + dependencies: + inherits "2.0.1" + +util@^0.11.0: + version "0.11.1" + resolved "https://registry.yarnpkg.com/util/-/util-0.11.1.tgz#3236733720ec64bb27f6e26f421aaa2e1b588d61" + integrity sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ== + dependencies: + inherits "2.0.3" + +utils-merge@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" + integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= + +uuid@^3.3.2: + version "3.3.3" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866" + integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ== + +v8flags@~3.1.1: + version "3.1.3" + resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-3.1.3.tgz#fc9dc23521ca20c5433f81cc4eb9b3033bb105d8" + integrity sha512-amh9CCg3ZxkzQ48Mhcb8iX7xpAfYJgePHxWMQCBWECpOSqJUXgY26ncA61UTV0BkPqfhcy6mzwCIoP4ygxpW8w== + dependencies: + homedir-polyfill "^1.0.1" + +validate-npm-package-license@^3.0.1: + version "3.0.4" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" + integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== + dependencies: + spdx-correct "^3.0.0" + spdx-expression-parse "^3.0.0" + +vary@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" + integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= + +verror@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" + integrity sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA= + dependencies: + assert-plus "^1.0.0" + core-util-is "1.0.2" + extsprintf "^1.2.0" + +vkbeautify@^0.99.3: + version "0.99.3" + resolved "https://registry.yarnpkg.com/vkbeautify/-/vkbeautify-0.99.3.tgz#4769b3238c5d772c6ea967545dd1df5582f23297" + integrity sha512-2ozZEFfmVvQcHWoHLNuiKlUfDKlhh4KGsy54U0UrlLMR1SO+XKAIDqBxtBwHgNrekurlJwE8A9K6L49T78ZQ9Q== + +vm-browserify@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.0.tgz#bd76d6a23323e2ca8ffa12028dc04559c75f9019" + integrity sha512-iq+S7vZJE60yejDYM0ek6zg308+UZsdtPExWP9VZoCFCz1zkJoXFnAX7aZfd/ZwrkidzdUZL0C/ryW+JwAiIGw== + +w3c-hr-time@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045" + integrity sha1-gqwr/2PZUOqeMYmlimViX+3xkEU= + dependencies: + browser-process-hrtime "^0.1.2" + +w3c-xmlserializer@^1.0.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-1.1.2.tgz#30485ca7d70a6fd052420a3d12fd90e6339ce794" + integrity sha512-p10l/ayESzrBMYWRID6xbuCKh2Fp77+sA0doRuGn4tTIMrrZVeqfpKjXHY+oDh3K4nLdPgNwMTVP6Vp4pvqbNg== + dependencies: + domexception "^1.0.1" + webidl-conversions "^4.0.2" + xml-name-validator "^3.0.0" + +walkdir@^0.0.11: + version "0.0.11" + resolved "https://registry.yarnpkg.com/walkdir/-/walkdir-0.0.11.tgz#a16d025eb931bd03b52f308caed0f40fcebe9532" + integrity sha1-oW0CXrkxvQO1LzCMrtD0D86+lTI= + +walker@^1.0.7, walker@~1.0.5: + version "1.0.7" + resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" + integrity sha1-L3+bj9ENZ3JisYqITijRlhjgKPs= + dependencies: + makeerror "1.0.x" + +watchpack@^1.5.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.6.0.tgz#4bc12c2ebe8aa277a71f1d3f14d685c7b446cd00" + integrity sha512-i6dHe3EyLjMmDlU1/bGQpEw25XSjkJULPuAVKCbNRefQVq48yXKUpwg538F7AZTf9kyr57zj++pQFltUa5H7yA== + dependencies: + chokidar "^2.0.2" + graceful-fs "^4.1.2" + neo-async "^2.5.0" + +webidl-conversions@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" + integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg== + +webpack-sources@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-1.3.0.tgz#2a28dcb9f1f45fe960d8f1493252b5ee6530fa85" + integrity sha512-OiVgSrbGu7NEnEvQJJgdSFPl2qWKkWq5lHMhgiToIiN9w34EBnjYzSYs+VbL5KoYiLNtFFa7BZIKxRED3I32pA== + dependencies: + source-list-map "^2.0.0" + source-map "~0.6.1" + +webpack@^4.29.1: + version "4.35.3" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.35.3.tgz#66bc35ef215a7b75e8790f84d560013ffecf0ca3" + integrity sha512-xggQPwr9ILlXzz61lHzjvgoqGU08v5+Wnut19Uv3GaTtzN4xBTcwnobodrXE142EL1tOiS5WVEButooGzcQzTA== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/helper-module-context" "1.8.5" + "@webassemblyjs/wasm-edit" "1.8.5" + "@webassemblyjs/wasm-parser" "1.8.5" + acorn "^6.2.0" + ajv "^6.1.0" + ajv-keywords "^3.1.0" + chrome-trace-event "^1.0.0" + enhanced-resolve "^4.1.0" + eslint-scope "^4.0.0" + json-parse-better-errors "^1.0.2" + loader-runner "^2.3.0" + loader-utils "^1.1.0" + memory-fs "~0.4.1" + micromatch "^3.1.8" + mkdirp "~0.5.0" + neo-async "^2.5.0" + node-libs-browser "^2.0.0" + schema-utils "^1.0.0" + tapable "^1.1.0" + terser-webpack-plugin "^1.1.0" + watchpack "^1.5.0" + webpack-sources "^1.3.0" + +websocket-driver@>=0.5.1: + version "0.7.3" + resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.3.tgz#a2d4e0d4f4f116f1e6297eba58b05d430100e9f9" + integrity sha512-bpxWlvbbB459Mlipc5GBzzZwhoZgGEZLuqPaR0INBGnPAY1vdBX6hPnoFXiw+3yWxDuHyQjO2oXTMyS8A5haFg== + dependencies: + http-parser-js ">=0.4.0 <0.4.11" + safe-buffer ">=5.1.0" + websocket-extensions ">=0.1.1" + +websocket-extensions@>=0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.3.tgz#5d2ff22977003ec687a4b87073dfbbac146ccf29" + integrity sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg== + +whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.3, whatwg-encoding@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" + integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== + dependencies: + iconv-lite "0.4.24" + +whatwg-mimetype@^2.1.0, whatwg-mimetype@^2.2.0, whatwg-mimetype@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" + integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== + +whatwg-url@^6.4.1: + version "6.5.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-6.5.0.tgz#f2df02bff176fd65070df74ad5ccbb5a199965a8" + integrity sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ== + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + +whatwg-url@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.0.0.tgz#fde926fa54a599f3adf82dff25a9f7be02dc6edd" + integrity sha512-37GeVSIJ3kn1JgKyjiYNmSLP1yzbpb29jdmwBSgkD9h40/hyrR/OifpVUndji3tmwGgD8qpw7iQu3RSbCrBpsQ== + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + +which-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" + integrity sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8= + +which-module@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" + integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= + +which-pm-runs@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/which-pm-runs/-/which-pm-runs-1.0.0.tgz#670b3afbc552e0b55df6b7780ca74615f23ad1cb" + integrity sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs= + +which@1, which@^1.0.5, which@^1.2.14, which@^1.2.9, which@^1.3.0, which@~1.3.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + +wide-align@^1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" + integrity sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA== + dependencies: + string-width "^1.0.2 || 2" + +wordwrap@~0.0.2: + version "0.0.3" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" + integrity sha1-o9XabNXAvAAI03I0u68b7WMFkQc= + +wordwrap@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= + +worker-farm@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.7.0.tgz#26a94c5391bbca926152002f69b84a4bf772e5a8" + integrity sha512-rvw3QTZc8lAxyVrqcSGVm5yP/IJ2UcB3U0graE3LCFoZ0Yn2x4EoVSqJKdB/T5M+FLcRPjz4TDacRf3OCfNUzw== + dependencies: + errno "~0.1.7" + +wrap-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" + integrity sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU= + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + +wrap-ansi@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" + integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== + dependencies: + ansi-styles "^3.2.0" + string-width "^3.0.0" + strip-ansi "^5.0.0" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + +write-file-atomic@2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.1.tgz#d0b05463c188ae804396fd5ab2a370062af87529" + integrity sha512-TGHFeZEZMnv+gBFRfjAcxL5bPHrsGKtnb4qsFAws7/vlh+QfwAaySIw4AXP9ZskTTh5GWu3FLuJhsWVdiJPGvg== + dependencies: + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + signal-exit "^3.0.2" + +write@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/write/-/write-1.0.3.tgz#0800e14523b923a387e415123c865616aae0f5c3" + integrity sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig== + dependencies: + mkdirp "^0.5.1" + +ws@^5.2.0: + version "5.2.2" + resolved "https://registry.yarnpkg.com/ws/-/ws-5.2.2.tgz#dffef14866b8e8dc9133582514d1befaf96e980f" + integrity sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA== + dependencies: + async-limiter "~1.0.0" + +ws@^6.1.2: + version "6.2.1" + resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.1.tgz#442fdf0a47ed64f59b6a5d8ff130f4748ed524fb" + integrity sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA== + dependencies: + async-limiter "~1.0.0" + +xml-name-validator@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" + integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== + +xml2js@^0.4.19: + version "0.4.19" + resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.19.tgz#686c20f213209e94abf0d1bcf1efaa291c7827a7" + integrity sha512-esZnJZJOiJR9wWKMyuvSE1y6Dq5LCuJanqhxslH2bxM6duahNZ+HMpCLhBQGZkbX6xRf8x1Y2eJlgt2q3qo49Q== + dependencies: + sax ">=0.6.0" + xmlbuilder "~9.0.1" + +xmlbuilder@~9.0.1: + version "9.0.7" + resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-9.0.7.tgz#132ee63d2ec5565c557e20f4c22df9aca686b10d" + integrity sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0= + +xmlchars@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.1.1.tgz#ef1a81c05bff629c2280007f12daca21bd6f6c93" + integrity sha512-7hew1RPJ1iIuje/Y01bGD/mXokXxegAgVS+e+E0wSi2ILHQkYAH1+JXARwTjZSM4Z4Z+c73aKspEcqj+zPPL/w== + +xtend@^4.0.0, xtend@~4.0.0, xtend@~4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" + integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== + +y18n@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" + integrity sha1-bRX7qITAhnnA136I53WegR4H+kE= + +"y18n@^3.2.1 || ^4.0.0", y18n@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b" + integrity sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w== + +yallist@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" + integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI= + +yallist@^3.0.0, yallist@^3.0.2, yallist@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.3.tgz#b4b049e314be545e3ce802236d6cd22cd91c3de9" + integrity sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A== + +yargs-parser@10.x: + version "10.1.0" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-10.1.0.tgz#7202265b89f7e9e9f2e5765e0fe735a905edbaa8" + integrity sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ== + dependencies: + camelcase "^4.1.0" + +yargs-parser@^11.1.1: + version "11.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-11.1.1.tgz#879a0865973bca9f6bab5cbdf3b1c67ec7d3bcf4" + integrity sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + +yargs-parser@^13.1.1: + version "13.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.1.tgz#d26058532aa06d365fe091f6a1fc06b2f7e5eca0" + integrity sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + +yargs-parser@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-5.0.0.tgz#275ecf0d7ffe05c77e64e7c86e4cd94bf0e1228a" + integrity sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo= + dependencies: + camelcase "^3.0.0" + +yargs@^12.0.2: + version "12.0.5" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-12.0.5.tgz#05f5997b609647b64f66b81e3b4b10a368e7ad13" + integrity sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw== + dependencies: + cliui "^4.0.0" + decamelize "^1.2.0" + find-up "^3.0.0" + get-caller-file "^1.0.1" + os-locale "^3.0.0" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^2.0.0" + which-module "^2.0.0" + y18n "^3.2.1 || ^4.0.0" + yargs-parser "^11.1.1" + +yargs@^13.3.0: + version "13.3.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.0.tgz#4c657a55e07e5f2cf947f8a366567c04a0dedc83" + integrity sha512-2eehun/8ALW8TLoIl7MVaRUrg+yCnenu8B4kBlRxj3GJGDKU1Og7sMXPNm1BYyM1DOJmTZ4YeN/Nwxv+8XJsUA== + dependencies: + cliui "^5.0.0" + find-up "^3.0.0" + get-caller-file "^2.0.1" + require-directory "^2.1.1" + require-main-filename "^2.0.0" + set-blocking "^2.0.0" + string-width "^3.0.0" + which-module "^2.0.0" + y18n "^4.0.0" + yargs-parser "^13.1.1" + +yargs@^7.0.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-7.1.0.tgz#6ba318eb16961727f5d284f8ea003e8d6154d0c8" + integrity sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg= + dependencies: + camelcase "^3.0.0" + cliui "^3.2.0" + decamelize "^1.1.1" + get-caller-file "^1.0.1" + os-locale "^1.4.0" + read-pkg-up "^1.0.1" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^1.0.2" + which-module "^1.0.0" + y18n "^3.2.1" + yargs-parser "^5.0.0" + +zip-stream@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/zip-stream/-/zip-stream-1.2.0.tgz#a8bc45f4c1b49699c6b90198baacaacdbcd4ba04" + integrity sha1-qLxF9MG0lpnGuQGYuqyqzbzUugQ= + dependencies: + archiver-utils "^1.3.0" + compress-commons "^1.2.0" + lodash "^4.8.0" + readable-stream "^2.0.0" diff --git a/data/plugins/grafana-piechart-panel/.circleci/config.yml b/data/plugins/grafana-piechart-panel/.circleci/config.yml new file mode 100644 index 0000000000000..e3d044702ed26 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/.circleci/config.yml @@ -0,0 +1,119 @@ +version: 2.1 + +parameters: + ssh-fingerprint: + type: string + default: ${GITHUB_SSH_FINGERPRINT} + +aliases: + # Workflow filters + - &filter-only-master + branches: + only: master + - &filter-only-release + branches: + only: /^v[1-9]*[0-9]+\.[1-9]*[0-9]+\.x$/ + +workflows: + plugin_workflow: + jobs: + - build + - report: + requires: + - build + - approve_release: + type: approval + requires: + - report + filters: *filter-only-release + - publish_github_release: + requires: + - approve_release + filters: *filter-only-release + +executors: + default_exec: # declares a reusable executor + docker: + - image: srclosson/grafana-plugin-ci-alpine:latest + e2e_exec: + docker: + - image: srclosson/grafana-plugin-ci-e2e:latest + +jobs: + build: + executor: default_exec + steps: + - checkout + - restore_cache: + name: restore node_modules + keys: + - build-cache-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }} + - run: + name: Install dependencies + command: | + mkdir ci + [ -f ~/project/node_modules/.bin/grafana-toolkit ] || yarn install --frozen-lockfile + - save_cache: + name: save node_modules + paths: + - ~/project/node_modules + key: build-cache-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }} + - save_cache: + name: save cypress cache + paths: + - ~/.cache/Cypress + key: cypress-cache-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }} + - run: + name: Build and test panel + command: /usr/local/bin/grafana-toolkit plugin:ci-build + - run: + name: Move results to ci folder + command: /usr/local/bin/grafana-toolkit plugin:ci-build --finish + - run: + name: Package distribution + command: | + /usr/local/bin/grafana-toolkit plugin:ci-package + - persist_to_workspace: + root: . + paths: + - ci/jobs/package + - ci/packages + - ci/dist + - ci/grafana-test-env + - store_artifacts: + path: ci + + report: + executor: default_exec + steps: + - checkout + - attach_workspace: + at: . + - restore_cache: + name: restore node_modules + keys: + - build-cache-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }} + - run: + name: Toolkit report + command: | + /usr/local/bin/grafana-toolkit plugin:ci-report + - store_artifacts: + path: ci + + publish_github_release: + executor: default_exec + steps: + - checkout + - add_ssh_keys: + fingerprints: + - "${GITHUB_SSH_FINGERPRINT}" + - attach_workspace: + at: . + - restore_cache: + name: restore node_modules + keys: + - build-cache-{{ .Environment.CACHE_VERSION }}-{{ checksum "yarn.lock" }} + - run: + name: "Publish Release on GitHub" + command: | + /usr/local/bin/grafana-toolkit plugin:github-publish diff --git a/data/plugins/grafana-piechart-panel/.gitignore b/data/plugins/grafana-piechart-panel/.gitignore new file mode 100644 index 0000000000000..3519bc53ae225 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/.gitignore @@ -0,0 +1,36 @@ +node_modules +npm-debug.log +# LOGZ.IO GRAFANA CHANGE :: Keep dist +!dist/ +coverage/ +.aws-config.json +awsconfig +/emails/dist +/public_gen +/tmp +vendor/phantomjs/phantomjs + +docs/AWS_S3_BUCKET +docs/GIT_BRANCH +docs/VERSION +docs/GITCOMMIT +docs/changed-files +docs/changed-files + +# locally required config files +public/css/*.min.css + +# Editor junk +*.sublime-workspace +*.swp +.idea/ +*.iml + +/data/* +/bin/* + +conf/custom.ini +fig.yml +profile.cov +grafana +.notouch diff --git a/data/plugins/grafana-piechart-panel/.prettierrc.js b/data/plugins/grafana-piechart-panel/.prettierrc.js new file mode 100644 index 0000000000000..c14684b0835d5 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/.prettierrc.js @@ -0,0 +1,3 @@ +module.exports = { + ...require('@grafana/toolkit/src/config/prettier.plugin.config.json'), +}; diff --git a/data/plugins/grafana-piechart-panel/CHANGELOG.md b/data/plugins/grafana-piechart-panel/CHANGELOG.md new file mode 100644 index 0000000000000..a7f4a610c481d --- /dev/null +++ b/data/plugins/grafana-piechart-panel/CHANGELOG.md @@ -0,0 +1,64 @@ +# Change Log +## + +## [1.5.0] - 2020-05-15 + +- Updated logo +- Sanitize legend header. Thanks rotemreiss [#230](https://github.com/grafana/piechart-panel/pull/230) +- Signed for Grafana 7.0 + + +## [1.4.0] - 2020-02-04 + +- Added combine option for legend + +## [1.3.9] - 2019-09-05 + +- Fixed dark/light mode text font colors: [#189](https://github.com/grafana/piechart-panel/issues/189). + +## [1.3.8] - 2019-07-22 + +* Added hotfix for older versions of grafana + +## [1.3.7] - 2019-07-22 + +* Converted to typescript. +* Fixed several bugs. +* Fixed 6.3 compatibility. +* Used toolkit for building. +* Fixed for issue #154. + +## 1.3.3 + +* Fixed legend sorting: [#145](https://github.com/grafana/piechart-panel/issues/145) + +## 1.3.2 + +* Automatically set legend width if Internet Explorer 11 and positioned to the right: [#148](https://github.com/grafana/piechart-panel/issues/148) + +## 1.3.1 + +* Fixed scrolling and legend issues in Internet Explorer 11: [#143](https://github.com/grafana/piechart-panel/issues/143) + +## 1.3.0 + +* Fixed legend and piechart rendering and sorting: [#138](https://github.com/grafana/piechart-panel/pull/138), [#136](https://github.com/grafana/piechart-panel/pull/136) +* Fixed decimal field for percentages [#108](https://github.com/grafana/piechart-panel/pull/108) + +## 1.1.5 + +* Fixed color picker in legend +* Fixed - [Values in legend are displayed raw, not with the correct unit](https://github.com/grafana/piechart-panel/issues/51). Thanks, [@conet](https://github.com/conet) +* Fixed - [Legend overlaps with graphs](https://github.com/grafana/piechart-panel/issues/34). Thanks, [@smalik03](https://github.com/smalik03) + +## 1.1.4 +* Added support for combining small slices (https://github.com/grafana/piechart-panel/pull/43) +* Added option to show percentage in legend https://github.com/grafana/piechart-panel/pull/41 + +## 1.0.2 + +* Added piechart piece divider setting +* Removed unused code +* Added fontsize option for labels on graph +* Only show the displayed piechart value in legend +* Added possibility to pick stat to use for piechart diff --git a/data/plugins/grafana-piechart-panel/LICENSE b/data/plugins/grafana-piechart-panel/LICENSE new file mode 100644 index 0000000000000..4644c8c2af514 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 Grafana + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/data/plugins/grafana-piechart-panel/README.md b/data/plugins/grafana-piechart-panel/README.md new file mode 100644 index 0000000000000..f6a73a4abe6d8 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/README.md @@ -0,0 +1,49 @@ +Use the new grafana-cli tool to install piechart-panel from the commandline: + +``` +grafana-cli plugins install grafana-piechart-panel +``` + +The plugin will be installed into your grafana plugins directory; the default is /var/lib/grafana/plugins if you installed the grafana package. + +More instructions on the cli tool can be found [here](https://grafana.com/docs/grafana/latest/plugins/installation/). + +You need the lastest grafana build for Grafana 3.0 to enable plugin support. You can get it here : http://grafana.org/download/builds.html + +## Alternative installation methods + +### Download latest zip + +```BASH +wget -nv https://grafana.com/api/plugins/grafana-piechart-panel/versions/latest/download -O /tmp/grafana-piechart-panel.zip +``` + +Extract and move into place +```BASH +unzip -q /tmp/grafana-piechart-panel.zip -d /tmp +mv /tmp/grafana-piechart-panel-* /var/lib/grafana/plugins/grafana-piechart-panel +sudo service grafana-server restart +``` + +### Git Clone +It is also possible to clone this repo directly into your plugins directory. + +Afterwards restart grafana-server and the plugin should be automatically detected and used. + +``` +git clone https://github.com/grafana/piechart-panel.git --branch release-1.3.8 +sudo service grafana-server restart +``` + +### Clone into a directory of your choice + +If the plugin is cloned to a directory that is not the default plugins directory then you need to edit your grafana.ini config file (Default location is at /etc/grafana/grafana.ini) and add this: + +```ini +[plugin.piechart] +path = /home/your/clone/dir/piechart-panel +``` + +Note that if you clone it into the grafana plugins directory you do not need to add the above config option. That is only +if you want to place the plugin in a directory outside the standard plugins directory. Be aware that grafana-server +needs read access to the directory. diff --git a/data/plugins/grafana-piechart-panel/dist/LICENSE b/data/plugins/grafana-piechart-panel/dist/LICENSE new file mode 100644 index 0000000000000..4644c8c2af514 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 Grafana + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/data/plugins/grafana-piechart-panel/dist/MANIFEST.txt b/data/plugins/grafana-piechart-panel/dist/MANIFEST.txt new file mode 100644 index 0000000000000..692244c1e1c9c --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/MANIFEST.txt @@ -0,0 +1,36 @@ + +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA512 + +{ + "plugin": "grafana-piechart-panel", + "version": "1.5.0", + "files": { + "LICENSE": "b46400c1ab5630edeb4e43b240a027d203375ebe5a9efb7de88c604c5c5cace0", + "README.md": "f20927deab10fa9485ad13a47199dff25d2224551186d1d2e4304ea23ef382fa", + "dark.js": "1e1732392f8c733433d5078f62c181732b2e9cf801915a7cac1db1b29777d22e", + "dark.js.map": "9f9a08e0c7c69f92a7bab8690faadc8ec2f65379834362cdb45fb8d6679a7336", + "editor.html": "aa4a490a2a93c1c6fdcbfc2cf7351afd1af213205ce74ab1f3f4f08bac9db24c", + "light.js": "eb1808113eafd870881e57b3a28f4229a3710981670b0dc7409742a01b041259", + "light.js.map": "80ee11ec21f071cf8988b3b049e8159cbcdb6153b5ca9a5523fe7dbf96083323", + "module.html": "10d8f62fdc7359e904e04b34400d8770098d4973e7796b54f007e6a8fa284a3b", + "module.js": "2338213b7535bb9c32b5d03d382fcc3a1d0996d88f8313ab4e702912b50d0e83", + "module.js.LICENSE.txt": "30f143a8e05630b1ab2ff90e572b97708701d7fc5f8e8fd2e44bbe9787723aea", + "module.js.map": "504880a11e3b80783b5b6f26b33a13aefe0d6249ff67be0addd4f2b08e58b7bf", + "plugin.json": "074bd24f4b6d46b7e15c056b162be5dfa922ea6df1b9d36d60c2351364d6aaa3", + "styles/dark.css": "e0c2663c2c7dabf97ffaebc740a3b5f7fb69aefaaf89351d9fa8762f77ec5cf6", + "styles/light.css": "6430d7d73d05e50adedf3d0ec9fa6f26970ca362f24be63b3b8f506405f8a921" + }, + "time": 1589585452581, + "keyId": "7e4d0c6a708866e7" +} +-----BEGIN PGP SIGNATURE----- +Version: OpenPGP.js v4.10.1 +Comment: https://openpgpjs.org + +wqAEARMKAAYFAl6/JiwACgkQfk0ManCIZufdjAII5R6xFNsH03uvscY9CHoX +B4jC39m9LIcBy7sJLdD5uVKNBBCfVJmEbmk0fxsec2UG4+QppfXRCXyhn75N +pbZGkQUCCMVmF0lAS3h0YNtEkr/iX3jMKsLaRIQj9bqBIz8BEKXBf+owPYt7 +waCLA7VxKh7zMH2G1mPH4tB8DQLk9UDpUBMq +=vB++ +-----END PGP SIGNATURE----- diff --git a/data/plugins/grafana-piechart-panel/dist/README.md b/data/plugins/grafana-piechart-panel/dist/README.md new file mode 100644 index 0000000000000..f6a73a4abe6d8 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/README.md @@ -0,0 +1,49 @@ +Use the new grafana-cli tool to install piechart-panel from the commandline: + +``` +grafana-cli plugins install grafana-piechart-panel +``` + +The plugin will be installed into your grafana plugins directory; the default is /var/lib/grafana/plugins if you installed the grafana package. + +More instructions on the cli tool can be found [here](https://grafana.com/docs/grafana/latest/plugins/installation/). + +You need the lastest grafana build for Grafana 3.0 to enable plugin support. You can get it here : http://grafana.org/download/builds.html + +## Alternative installation methods + +### Download latest zip + +```BASH +wget -nv https://grafana.com/api/plugins/grafana-piechart-panel/versions/latest/download -O /tmp/grafana-piechart-panel.zip +``` + +Extract and move into place +```BASH +unzip -q /tmp/grafana-piechart-panel.zip -d /tmp +mv /tmp/grafana-piechart-panel-* /var/lib/grafana/plugins/grafana-piechart-panel +sudo service grafana-server restart +``` + +### Git Clone +It is also possible to clone this repo directly into your plugins directory. + +Afterwards restart grafana-server and the plugin should be automatically detected and used. + +``` +git clone https://github.com/grafana/piechart-panel.git --branch release-1.3.8 +sudo service grafana-server restart +``` + +### Clone into a directory of your choice + +If the plugin is cloned to a directory that is not the default plugins directory then you need to edit your grafana.ini config file (Default location is at /etc/grafana/grafana.ini) and add this: + +```ini +[plugin.piechart] +path = /home/your/clone/dir/piechart-panel +``` + +Note that if you clone it into the grafana plugins directory you do not need to add the above config option. That is only +if you want to place the plugin in a directory outside the standard plugins directory. Be aware that grafana-server +needs read access to the directory. diff --git a/data/plugins/grafana-piechart-panel/dist/dark.js b/data/plugins/grafana-piechart-panel/dist/dark.js new file mode 100644 index 0000000000000..7600bcd1eb4f5 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/dark.js @@ -0,0 +1,2 @@ +define((function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=10)}({10:function(e,t,n){}})})); +//# sourceMappingURL=dark.js.map \ No newline at end of file diff --git a/data/plugins/grafana-piechart-panel/dist/dark.js.map b/data/plugins/grafana-piechart-panel/dist/dark.js.map new file mode 100644 index 0000000000000..05fe0a297a263 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/dark.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s"],"mappings":"sCACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAH,EAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzG/B,EAAoBkC,EAAI,IAIjBlC,EAAoBA,EAAoBmC,EAAI,I","file":"dark.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 10);\n"],"sourceRoot":""} \ No newline at end of file diff --git a/data/plugins/grafana-piechart-panel/dist/editor.html b/data/plugins/grafana-piechart-panel/dist/editor.html new file mode 100644 index 0000000000000..7ea461af64115 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/editor.html @@ -0,0 +1,89 @@ +
+
+
General
+
+ Type +
+ +
+
+
+ Unit +
+
+
+
+ Value +
+ +
+
+
+ Divider width + +
+
+ +
+
Legend
+ +
+ Position +
+ +
+
+
+ + +
+
+ Legend Breakpoint +
+ +
+
+
+ Font size +
+ +
+
+ +
+ Values Header + +
+
+ Values Decimals + +
+ +
+ Percentage Decimals + +
+
+ +
+
Combine (only for percentages)
+
+ Threshold: + + Combines all slices that are smaller than the specified percentage (ranging from 0 to 1) i.e. a value of '0.03' will + combine all slices 3% or less into one slice). +
+
+ Label + + Label text for the combined slice. +
+
+
diff --git a/data/plugins/grafana-piechart-panel/dist/img/piechart-donut.png b/data/plugins/grafana-piechart-panel/dist/img/piechart-donut.png new file mode 100644 index 0000000000000..8e54878b18183 Binary files /dev/null and b/data/plugins/grafana-piechart-panel/dist/img/piechart-donut.png differ diff --git a/data/plugins/grafana-piechart-panel/dist/img/piechart-legend-on-graph.png b/data/plugins/grafana-piechart-panel/dist/img/piechart-legend-on-graph.png new file mode 100644 index 0000000000000..51dfcbc9f3198 Binary files /dev/null and b/data/plugins/grafana-piechart-panel/dist/img/piechart-legend-on-graph.png differ diff --git a/data/plugins/grafana-piechart-panel/dist/img/piechart-legend-rhs.png b/data/plugins/grafana-piechart-panel/dist/img/piechart-legend-rhs.png new file mode 100644 index 0000000000000..9b018c3905312 Binary files /dev/null and b/data/plugins/grafana-piechart-panel/dist/img/piechart-legend-rhs.png differ diff --git a/data/plugins/grafana-piechart-panel/dist/img/piechart-legend-under.png b/data/plugins/grafana-piechart-panel/dist/img/piechart-legend-under.png new file mode 100644 index 0000000000000..32845115d934b Binary files /dev/null and b/data/plugins/grafana-piechart-panel/dist/img/piechart-legend-under.png differ diff --git a/data/plugins/grafana-piechart-panel/dist/img/piechart-options.png b/data/plugins/grafana-piechart-panel/dist/img/piechart-options.png new file mode 100644 index 0000000000000..117962e05ff61 Binary files /dev/null and b/data/plugins/grafana-piechart-panel/dist/img/piechart-options.png differ diff --git a/data/plugins/grafana-piechart-panel/dist/img/piechart_logo_large.png b/data/plugins/grafana-piechart-panel/dist/img/piechart_logo_large.png new file mode 100644 index 0000000000000..21b7ab40145bd Binary files /dev/null and b/data/plugins/grafana-piechart-panel/dist/img/piechart_logo_large.png differ diff --git a/data/plugins/grafana-piechart-panel/dist/img/piechart_logo_large.svg b/data/plugins/grafana-piechart-panel/dist/img/piechart_logo_large.svg new file mode 100644 index 0000000000000..f6f2f7526e685 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/img/piechart_logo_large.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/data/plugins/grafana-piechart-panel/dist/img/piechart_logo_small.png b/data/plugins/grafana-piechart-panel/dist/img/piechart_logo_small.png new file mode 100644 index 0000000000000..10d49e48427e4 Binary files /dev/null and b/data/plugins/grafana-piechart-panel/dist/img/piechart_logo_small.png differ diff --git a/data/plugins/grafana-piechart-panel/dist/img/piechart_logo_small.svg b/data/plugins/grafana-piechart-panel/dist/img/piechart_logo_small.svg new file mode 100644 index 0000000000000..f6f2f7526e685 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/img/piechart_logo_small.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/data/plugins/grafana-piechart-panel/dist/light.js b/data/plugins/grafana-piechart-panel/dist/light.js new file mode 100644 index 0000000000000..470e7cde4123d --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/light.js @@ -0,0 +1,2 @@ +define((function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=9)}({9:function(e,t,n){}})})); +//# sourceMappingURL=light.js.map \ No newline at end of file diff --git a/data/plugins/grafana-piechart-panel/dist/light.js.map b/data/plugins/grafana-piechart-panel/dist/light.js.map new file mode 100644 index 0000000000000..23ffa6ee3f5ac --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/light.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/bootstrap"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s"],"mappings":"sCACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAH,EAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzG/B,EAAoBkC,EAAI,IAIjBlC,EAAoBA,EAAoBmC,EAAI,G","file":"light.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 9);\n"],"sourceRoot":""} \ No newline at end of file diff --git a/data/plugins/grafana-piechart-panel/dist/module.html b/data/plugins/grafana-piechart-panel/dist/module.html new file mode 100644 index 0000000000000..e0faed58b879f --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/module.html @@ -0,0 +1,5 @@ +
+
+
+
+
diff --git a/data/plugins/grafana-piechart-panel/dist/module.js b/data/plugins/grafana-piechart-panel/dist/module.js new file mode 100644 index 0000000000000..6dd5bd6699b70 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/module.js @@ -0,0 +1,3 @@ +/*! For license information please see module.js.LICENSE.txt */ +define(["jquery","lodash","app/plugins/sdk","app/core/utils/kbn","app/core/time_series","angular"],(function(e,t,n,i,r,o){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=11)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){e.exports=i},function(e,t){e.exports=r},function(e,t){e.exports=o},function(e,t,n){var i,r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(l,a){"object"==o(t)&&void 0!==e?e.exports=a():void 0===(r="function"==typeof(i=a)?i.call(t,n,t,e):i)||(e.exports=r)}(0,(function(){"use strict";function e(e){return getComputedStyle(e)}function t(e,t){for(var n in t){var i=t[n];"number"==typeof i&&(i+="px"),e.style[n]=i}return e}function n(e){var t=document.createElement("div");return t.className=e,t}function i(e,t){if(!f)throw new Error("No element matching method supported");return f.call(e,t)}function r(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function o(e,t){return Array.prototype.filter.call(e.children,(function(e){return i(e,t)}))}function l(e,t){var n=e.element.classList,i=v.state.scrolling(t);n.contains(i)?clearTimeout(b[t]):n.add(i)}function a(e,t){b[t]=setTimeout((function(){return e.isAlive&&e.element.classList.remove(v.state.scrolling(t))}),e.settings.scrollingThreshold)}function s(e,t){l(e,t),a(e,t)}function c(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function h(e){return parseInt(e,10)||0}function d(e){return i(e,"input,[contenteditable]")||i(e,"select,[contenteditable]")||i(e,"textarea,[contenteditable]")||i(e,"button,[contenteditable]")}function u(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function p(e,n){var i={width:n.railXWidth};n.isRtl?i.left=n.negativeScrollAdjustment+e.scrollLeft+n.containerWidth-n.contentWidth:i.left=e.scrollLeft,n.isScrollbarXUsingBottom?i.bottom=n.scrollbarXBottom-e.scrollTop:i.top=n.scrollbarXTop+e.scrollTop,t(n.scrollbarXRail,i);var r={top:e.scrollTop,height:n.railYHeight};n.isScrollbarYUsingRight?n.isRtl?r.right=n.contentWidth-(n.negativeScrollAdjustment+e.scrollLeft)-n.scrollbarYRight-n.scrollbarYOuterWidth:r.right=n.scrollbarYRight-e.scrollLeft:n.isRtl?r.left=n.negativeScrollAdjustment+e.scrollLeft+2*n.containerWidth-n.contentWidth-n.scrollbarYLeft-n.scrollbarYOuterWidth:r.left=n.scrollbarYLeft+e.scrollLeft,t(n.scrollbarYRail,r),t(n.scrollbarX,{left:n.scrollbarXLeft,width:n.scrollbarXWidth-n.railBorderXWidth}),t(n.scrollbarY,{top:n.scrollbarYTop,height:n.scrollbarYHeight-n.railBorderYWidth})}function g(e,t){function n(t){g[u]=f+b*(t[s]-v),l(e,p),k(e),t.stopPropagation(),t.preventDefault()}function i(){a(e,p),e.event.unbind(e.ownerDocument,"mousemove",n)}var r=t[0],o=t[1],s=t[2],c=t[3],h=t[4],d=t[5],u=t[6],p=t[7],g=e.element,f=null,v=null,b=null;e.event.bind(e[h],"mousedown",(function(t){f=g[u],v=t[s],b=(e[o]-e[r])/(e[c]-e[d]),e.event.bind(e.ownerDocument,"mousemove",n),e.event.once(e.ownerDocument,"mouseup",i),t.stopPropagation(),t.preventDefault()}))}var f=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.msMatchesSelector,v={main:"ps",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},b={x:null,y:null},m=function(e){this.element=e,this.handlers={}},y={isEmpty:{configurable:!0}};m.prototype.bind=function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},m.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter((function(i){return!(!t||i===t)||(n.element.removeEventListener(e,i,!1),!1)}))},m.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},y.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every((function(t){return 0===e.handlers[t].length}))},Object.defineProperties(m.prototype,y);var w=function(){this.eventElements=[]};w.prototype.eventElement=function(e){var t=this.eventElements.filter((function(t){return t.element===e}))[0];return t||(t=new m(e),this.eventElements.push(t)),t},w.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},w.prototype.unbind=function(e,t,n){var i=this.eventElement(e);i.unbind(t,n),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)},w.prototype.unbindAll=function(){this.eventElements.forEach((function(e){return e.unbindAll()})),this.eventElements=[]},w.prototype.once=function(e,t,n){var i=this.eventElement(e);i.bind(t,(function e(r){i.unbind(t,e),n(r)}))};var S=function(e,t,n,i,r){var o;if(void 0===i&&(i=!0),void 0===r&&(r=!1),"top"===t)o=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");o=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(e,t,n,i,r){var o=n[0],l=n[1],a=n[2],h=n[3],d=n[4],u=n[5];void 0===i&&(i=!0),void 0===r&&(r=!1);var p=e.element;e.reach[h]=null,p[a]<1&&(e.reach[h]="start"),p[a]>e[o]-e[l]-1&&(e.reach[h]="end"),t&&(p.dispatchEvent(c("ps-scroll-"+h)),t<0?p.dispatchEvent(c("ps-scroll-"+d)):t>0&&p.dispatchEvent(c("ps-scroll-"+u)),i&&s(e,h)),e.reach[h]&&(t||r)&&p.dispatchEvent(c("ps-"+h+"-reach-"+e.reach[h]))}(e,n,o,i,r)},M=document&&"WebkitAppearance"in document.documentElement.style,Y=window&&("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),T=navigator&&navigator.msMaxTouchPoints,k=function(e){var t=e.element;e.containerWidth=t.clientWidth,e.containerHeight=t.clientHeight,e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(o(t,v.element.rail("x")).forEach((function(e){return r(e)})),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(o(t,v.element.rail("y")).forEach((function(e){return r(e)})),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),p(t,e),e.scrollbarXActive?t.classList.add(v.state.active("x")):(t.classList.remove(v.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=0),e.scrollbarYActive?t.classList.add(v.state.active("y")):(t.classList.remove(v.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)},X={"click-rail":function(e){e.event.bind(e.scrollbarY,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarYRail,"mousedown",(function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=n*e.containerHeight,k(e),t.stopPropagation()})),e.event.bind(e.scrollbarX,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarXRail,"mousedown",(function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=n*e.containerWidth,k(e),t.stopPropagation()}))},"drag-thumb":function(e){g(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x"]),g(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y"])},keyboard:function(e){var t=e.element,n=function(){return i(t,":hover")},r=function(){return i(e.scrollbarX,":focus")||i(e.scrollbarY,":focus")};e.event.bind(e.ownerDocument,"keydown",(function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&(n()||r())){var o=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(o){if("IFRAME"===o.tagName)o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(d(o))return}var l=0,a=0;switch(i.which){case 37:l=i.metaKey?-e.contentWidth:i.altKey?-e.containerWidth:-30;break;case 38:a=i.metaKey?e.contentHeight:i.altKey?e.containerHeight:30;break;case 39:l=i.metaKey?e.contentWidth:i.altKey?e.containerWidth:30;break;case 40:a=i.metaKey?-e.contentHeight:i.altKey?-e.containerHeight:-30;break;case 32:a=i.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:a=e.containerHeight;break;case 34:a=-e.containerHeight;break;case 36:a=e.contentHeight;break;case 35:a=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==l||e.settings.suppressScrollY&&0!==a||(t.scrollTop-=a,t.scrollLeft+=l,k(e),function(n,i){var r=t.scrollTop;if(0===n){if(!e.scrollbarYActive)return!1;if(0===r&&i>0||r>=e.contentHeight-e.containerHeight&&i<0)return!e.settings.wheelPropagation}var o=t.scrollLeft;if(0===i){if(!e.scrollbarXActive)return!1;if(0===o&&n<0||o>=e.contentWidth-e.containerWidth&&n>0)return!e.settings.wheelPropagation}return!0}(l,a)&&i.preventDefault())}}))},wheel:function(t){function n(t,n,i){if(!M&&r.querySelector("select:focus"))return!0;if(!r.contains(t))return!1;for(var o=t;o&&o!==r;){if(o.classList.contains(v.element.consuming))return!0;var l=e(o);if([l.overflow,l.overflowX,l.overflowY].join("").match(/(scroll|auto)/)){var a=o.scrollHeight-o.clientHeight;if(a>0&&!(0===o.scrollTop&&i>0||o.scrollTop===a&&i<0))return!0;var s=o.scrollLeft-o.clientWidth;if(s>0&&!(0===o.scrollLeft&&n<0||o.scrollLeft===s&&n>0))return!0}o=o.parentNode}return!1}function i(e){var i=function(e){var t=e.deltaX,n=-1*e.deltaY;return void 0!==t&&void 0!==n||(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!=t&&n!=n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}(e),o=i[0],l=i[1];if(!n(e.target,o,l)){var a=!1;t.settings.useBothWheelAxes?t.scrollbarYActive&&!t.scrollbarXActive?(l?r.scrollTop-=l*t.settings.wheelSpeed:r.scrollTop+=o*t.settings.wheelSpeed,a=!0):t.scrollbarXActive&&!t.scrollbarYActive&&(o?r.scrollLeft+=o*t.settings.wheelSpeed:r.scrollLeft-=l*t.settings.wheelSpeed,a=!0):(r.scrollTop-=l*t.settings.wheelSpeed,r.scrollLeft+=o*t.settings.wheelSpeed),k(t),(a=a||function(e,n){var i=r.scrollTop;if(0===e){if(!t.scrollbarYActive)return!1;if(0===i&&n>0||i>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var o=r.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===o&&e<0||o>=t.contentWidth-t.containerWidth&&e>0)return!t.settings.wheelPropagation}return!0}(o,l))&&!e.ctrlKey&&(e.stopPropagation(),e.preventDefault())}}var r=t.element;void 0!==window.onwheel?t.event.bind(r,"wheel",i):void 0!==window.onmousewheel&&t.event.bind(r,"mousewheel",i)},touch:function(e){function t(t,n){var i=h.scrollTop,r=h.scrollLeft,o=Math.abs(t),l=Math.abs(n);if(l>o){if(n<0&&i===e.contentHeight-e.containerHeight||n>0&&0===i)return{stop:!e.settings.swipePropagation,prevent:0===window.scrollY}}else if(o>l&&(t<0&&r===e.contentWidth-e.containerWidth||t>0&&0===r))return{stop:!e.settings.swipePropagation,prevent:!0};return{stop:!0,prevent:!0}}function n(t,n){h.scrollTop-=n,h.scrollLeft-=t,k(e)}function i(){f=!0}function r(){f=!1}function o(e){return e.targetTouches?e.targetTouches[0]:e}function l(e){return!(e.pointerType&&"pen"===e.pointerType&&0===e.buttons||(!e.targetTouches||1!==e.targetTouches.length)&&(!e.pointerType||"mouse"===e.pointerType||e.pointerType===e.MSPOINTER_TYPE_MOUSE))}function a(e){if(l(e)){v=!0;var t=o(e);d.pageX=t.pageX,d.pageY=t.pageY,u=(new Date).getTime(),null!==g&&clearInterval(g),e.stopPropagation()}}function s(i){if(!v&&e.settings.swipePropagation&&a(i),!f&&v&&l(i)){var r=o(i),s={pageX:r.pageX,pageY:r.pageY},c=s.pageX-d.pageX,h=s.pageY-d.pageY;n(c,h),d=s;var g=(new Date).getTime(),b=g-u;b>0&&(p.x=c/b,p.y=h/b,u=g);var m=t(c,h),y=m.stop,w=m.prevent;y&&i.stopPropagation(),w&&i.preventDefault()}}function c(){!f&&v&&(v=!1,e.settings.swipeEasing&&(clearInterval(g),g=setInterval((function(){e.isInitialized?clearInterval(g):p.x||p.y?Math.abs(p.x)<.01&&Math.abs(p.y)<.01?clearInterval(g):(n(30*p.x,30*p.y),p.x*=.8,p.y*=.8):clearInterval(g)}),10)))}if(Y||T){var h=e.element,d={},u=0,p={},g=null,f=!1,v=!1;Y?(e.event.bind(window,"touchstart",i),e.event.bind(window,"touchend",r),e.event.bind(h,"touchstart",a),e.event.bind(h,"touchmove",s),e.event.bind(h,"touchend",c)):T&&(window.PointerEvent?(e.event.bind(window,"pointerdown",i),e.event.bind(window,"pointerup",r),e.event.bind(h,"pointerdown",a),e.event.bind(h,"pointermove",s),e.event.bind(h,"pointerup",c)):window.MSPointerEvent&&(e.event.bind(window,"MSPointerDown",i),e.event.bind(window,"MSPointerUp",r),e.event.bind(h,"MSPointerDown",a),e.event.bind(h,"MSPointerMove",s),e.event.bind(h,"MSPointerUp",c)))}}},W=function(i,r){var o=this;if(void 0===r&&(r={}),"string"==typeof i&&(i=document.querySelector(i)),!i||!i.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var l in this.element=i,i.classList.add(v.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipePropagation:!0,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!1,wheelSpeed:1},r)o.settings[l]=r[l];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var a=function(){return i.classList.add(v.state.focus)},s=function(){return i.classList.remove(v.state.focus)};this.isRtl="rtl"===e(i).direction,this.isNegativeScroll=function(){var e,t=i.scrollLeft;return i.scrollLeft=-1,e=i.scrollLeft<0,i.scrollLeft=t,e}(),this.negativeScrollAdjustment=this.isNegativeScroll?i.scrollWidth-i.clientWidth:0,this.event=new w,this.ownerDocument=i.ownerDocument||document,this.scrollbarXRail=n(v.element.rail("x")),i.appendChild(this.scrollbarXRail),this.scrollbarX=n(v.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",a),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=e(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=h(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=h(c.borderLeftWidth)+h(c.borderRightWidth),t(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=h(c.marginLeft)+h(c.marginRight),t(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=n(v.element.rail("y")),i.appendChild(this.scrollbarYRail),this.scrollbarY=n(v.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",a),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var d=e(this.scrollbarYRail);this.scrollbarYRight=parseInt(d.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=h(d.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(t){var n=e(t);return h(n.width)+h(n.paddingLeft)+h(n.paddingRight)+h(n.borderLeftWidth)+h(n.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=h(d.borderTopWidth)+h(d.borderBottomWidth),t(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=h(d.marginTop)+h(d.marginBottom),t(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:i.scrollLeft<=0?"start":i.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:i.scrollTop<=0?"start":i.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(e){return X[e](o)})),this.lastScrollTop=i.scrollTop,this.lastScrollLeft=i.scrollLeft,this.event.bind(this.element,"scroll",(function(e){return o.onScroll(e)})),k(this)};return W.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,t(this.scrollbarXRail,{display:"block"}),t(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=h(e(this.scrollbarXRail).marginLeft)+h(e(this.scrollbarXRail).marginRight),this.railYMarginHeight=h(e(this.scrollbarYRail).marginTop)+h(e(this.scrollbarYRail).marginBottom),t(this.scrollbarXRail,{display:"none"}),t(this.scrollbarYRail,{display:"none"}),k(this),S(this,"top",0,!1,!0),S(this,"left",0,!1,!0),t(this.scrollbarXRail,{display:""}),t(this.scrollbarYRail,{display:""}))},W.prototype.onScroll=function(e){this.isAlive&&(k(this),S(this,"top",this.element.scrollTop-this.lastScrollTop),S(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=this.element.scrollTop,this.lastScrollLeft=this.element.scrollLeft)},W.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),r(this.scrollbarX),r(this.scrollbarY),r(this.scrollbarXRail),r(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},W.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(e){return!e.match(/^ps([-_].+|)$/)})).join(" ")},W}))},function(e,t){var n,i;n=jQuery,i={series:{pie:{show:!1,radius:"auto",innerRadius:0,startAngle:1.5,tilt:1,shadow:{left:5,top:15,alpha:.02},offset:{top:0,left:"auto"},stroke:{color:"#fff",width:1},label:{show:"auto",formatter:function(e,t){return"
"+e+"
"+Math.round(t.percent)+"%
"},radius:1,background:{color:null,opacity:0},threshold:0},combine:{threshold:-1,color:null,label:"Other"},highlight:{opacity:.5}}}},n.plot.plugins.push({init:function(e){var t=null,i=null,r=null,o=null,l=null,a=null,s=!1,c=null,h=[];function d(e,o,l){s||(s=!0,t=e.getCanvas(),i=n(t).parent(),r=e.getOptions(),e.setData(function(e){for(var t=0,i=0,o=0,l=r.series.pie.combine.color,a=[],s=0;sr.series.pie.combine.threshold)&&a.push(n.extend(e[s],{data:[[1,c]],color:e[s].color,label:e[s].label,angle:c*Math.PI*2/t,percent:c/(t/100)}));return o>1&&a.push({data:[[1,i]],color:l,label:r.series.pie.combine.label,angle:i*Math.PI*2/t,percent:i/(t/100)}),a}(e.getData())))}function u(e,t){if(i){var h=e.getPlaceholder().width(),d=e.getPlaceholder().height(),u=i.children().filter(".legend").children().width()||0;c=t,s=!1,o=Math.min(h,d/r.series.pie.tilt)/2,a=d/2+r.series.pie.offset.top,l=h/2,"auto"==r.series.pie.offset.left?(r.legend.position.match("w")?l+=u/2:l-=u/2,lh-o&&(l=h-o)):l+=r.series.pie.offset.left;var g=e.getData(),f=0;do{f>0&&(o*=.95),f+=1,v(),r.series.pie.tilt<=.8&&b()}while(!m()&&f<10);f>=10&&(v(),i.prepend("
Could not draw pie with labels contained inside canvas
")),e.setSeries&&e.insertLegend&&(e.setSeries(g),e.insertLegend())}function v(){c.clearRect(0,0,h,d),i.children().filter(".pieLabel, .pieLabelBackground").remove()}function b(){var e=r.series.pie.shadow.left,t=r.series.pie.shadow.top,n=r.series.pie.shadow.alpha,i=r.series.pie.radius>1?r.series.pie.radius:o*r.series.pie.radius;if(!(i>=h/2-e||i*r.series.pie.tilt>=d/2-t||i<=10)){c.save(),c.translate(e,t),c.globalAlpha=n,c.fillStyle="#000",c.translate(l,a),c.scale(1,r.series.pie.tilt);for(var s=1;s<=10;s++)c.beginPath(),c.arc(0,0,i,0,2*Math.PI,!1),c.fill(),i-=s;c.restore()}}function m(){var e=Math.PI*r.series.pie.startAngle,t=r.series.pie.radius>1?r.series.pie.radius:o*r.series.pie.radius;c.save(),c.translate(l,a),c.scale(1,r.series.pie.tilt),c.save();for(var s=e,u=0;u0){for(c.save(),c.lineWidth=r.series.pie.stroke.width,s=e,u=0;u1?r.series.pie.label.radius:o*r.series.pie.label.radius,c=0;c=100*r.series.pie.label.threshold&&!u(g[c],t,c))return!1;t+=g[c].angle}return!0;function u(e,t,o){if(0==e.data[0][1])return!0;var c,u=r.legend.labelFormatter,p=r.series.pie.label.formatter;c=u?u(e.label,e):e.label,p&&(c=p(c,e));var g=(t+e.angle+t)/2,f=l+Math.round(Math.cos(g)*s),v=a+Math.round(Math.sin(g)*s)*r.series.pie.tilt,b=""+c+"";i.append(b);var m=i.children("#pieLabel"+o),y=v-m.height()/2,w=f-m.width()/2;if(m.css("top",y),m.css("left",w),0-y>0||0-w>0||d-(y+m.height())<0||h-(w+m.width())<0)return!1;if(0!=r.series.pie.label.background.opacity){var S=r.series.pie.label.background.color;null==S&&(S=e.color);var M="top:"+y+"px;left:"+w+"px;";n("
").css("opacity",r.series.pie.label.background.opacity).insertBefore(m)}return!0}}();function f(e,n,i){e<=0||isNaN(e)||(i?c.fillStyle=n:(c.strokeStyle=n,c.lineJoin="round"),c.beginPath(),Math.abs(e-2*Math.PI)>1e-9&&c.moveTo(0,0),c.arc(0,0,t,s,s+e/2,!1),c.arc(0,0,t,s+e/2,s+e,!1),c.closePath(),s+=e,i?c.fill():c.stroke())}}}function p(e){if(r.series.pie.innerRadius>0){e.save();var t=r.series.pie.innerRadius>1?r.series.pie.innerRadius:o*r.series.pie.innerRadius;e.globalCompositeOperation="destination-out",e.beginPath(),e.fillStyle=r.series.pie.stroke.color,e.arc(0,0,t,0,2*Math.PI,!1),e.fill(),e.closePath(),e.restore(),e.save(),e.beginPath(),e.strokeStyle=r.series.pie.stroke.color,e.arc(0,0,t,0,2*Math.PI,!1),e.stroke(),e.closePath(),e.restore()}}function g(e,t){for(var n=!1,i=-1,r=e.length,o=r-1;++i1?h.series.pie.radius:o*h.series.pie.radius,u=0;u1?t.series.pie.tilt=1:t.series.pie.tilt<0&&(t.series.pie.tilt=0))})),e.hooks.bindEvents.push((function(e,t){var n=e.getOptions();n.series.pie.show&&(n.grid.hoverable&&t.unbind("mousemove").mousemove(f),n.grid.clickable&&t.unbind("click").click(v))})),e.hooks.processDatapoints.push((function(e,t,n,i){e.getOptions().series.pie.show&&d(e)})),e.hooks.drawOverlay.push((function(e,t){e.getOptions().series.pie.show&&function(e,t){var n,i=e.getOptions(),r=i.series.pie.radius>1?i.series.pie.radius:o*i.series.pie.radius;t.save(),t.translate(l,a),t.scale(1,i.series.pie.tilt);for(var s=0;s1e-9&&t.moveTo(0,0),t.arc(0,0,r,n.startAngle,n.startAngle+n.angle/2,!1),t.arc(0,0,r,n.startAngle+n.angle/2,n.startAngle+n.angle,!1),t.closePath(),t.fill());p(t),t.restore()}(e,t)})),e.hooks.draw.push((function(e,t){e.getOptions().series.pie.show&&u(e,t)}))},options:i,name:"pie",version:"1.1"})},function(e,t){!function(e){function t(e,t){return t*Math.floor(e/t)}function n(e,t,n,i){if("function"==typeof e.strftime)return e.strftime(t);var r,o=function(e,t){return t=""+(null==t?"0":t),1==(e=""+e).length?t+e:e},l=[],a=!1,s=e.getHours(),c=s<12;null==n&&(n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),null==i&&(i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]),r=s>12?s-12:0==s?12:s;for(var h=0;h=c);++d);var u=h[d][0],p=h[d][1];if("year"==p){if(null!=l.minTickSize&&"year"==l.minTickSize[1])u=Math.floor(l.minTickSize[0]);else{var g=Math.pow(10,Math.floor(Math.log(e.delta/o.year)/Math.LN10)),f=e.delta/o.year/g;u=f<1.5?1:f<3?2:f<7.5?5:10,u*=g}u<1&&(u=1)}e.tickSize=l.tickSize||[u,p];var v=e.tickSize[0];p=e.tickSize[1];var b=v*o[p];"second"==p?i.setSeconds(t(i.getSeconds(),v)):"minute"==p?i.setMinutes(t(i.getMinutes(),v)):"hour"==p?i.setHours(t(i.getHours(),v)):"month"==p?i.setMonth(t(i.getMonth(),v)):"quarter"==p?i.setMonth(3*t(i.getMonth()/3,v)):"year"==p&&i.setFullYear(t(i.getFullYear(),v)),i.setMilliseconds(0),b>=o.minute&&i.setSeconds(0),b>=o.hour&&i.setMinutes(0),b>=o.day&&i.setHours(0),b>=4*o.day&&i.setDate(1),b>=2*o.month&&i.setMonth(t(i.getMonth(),3)),b>=2*o.quarter&&i.setMonth(t(i.getMonth(),6)),b>=o.year&&i.setMonth(0);var m,y=0,w=Number.NaN;do{if(m=w,w=i.getTime(),n.push(w),"month"==p||"quarter"==p)if(v<1){i.setDate(1);var S=i.getTime();i.setMonth(i.getMonth()+("quarter"==p?3:1));var M=i.getTime();i.setTime(w+y*o.hour+(M-S)*v),y=i.getHours(),i.setHours(0)}else i.setMonth(i.getMonth()+v*("quarter"==p?3:1));else"year"==p?i.setFullYear(i.getFullYear()+v):i.setTime(w+b)}while(w');function s(e,t){var n=t.data[0][t.data[0].length-1],r=2,o='
'+e+"
";return i.panel.legend.percentageDecimals&&(r=i.panel.legend.percentageDecimals),i.panel.legend.values&&i.panel.legend.percentage?o+i.formatValue(n)+"
"+t.percent.toFixed(r)+"%
":i.panel.legend.values?o+i.formatValue(n)+"
":i.panel.legend.percentage?o+t.percent.toFixed(r)+"%
":o+"
"}function c(){var e=t.width(),n=i.height-function(e){if(!i.panel.legend.show||"Right side"===i.panel.legendType||"On graph"===i.panel.legendType)return 20;if("Under graph"===i.panel.legendType&&i.panel.legend.percentage||i.panel.legend.values){var t=parseInt(i.panel.breakPoint,10)/100,n=23+20*r.length;return Math.min(n,Math.floor(e*t))}return 0}(i.height),c=Math.min(e,n),h=u()("
"),d={margin:"auto",position:"relative",paddingBottom:"20px",height:c+"px"};h.css(d);var p={legend:{show:!1},series:{pie:{radius:1,innerRadius:0,show:!0,stroke:{color:u()("body").css("background-color"),width:parseFloat(i.panel.strokeWidth).toFixed(1)},label:{show:i.panel.legend.show&&"On graph"===i.panel.legendType,formatter:s},highlight:{opacity:0},combine:{threshold:i.panel.combine.threshold,label:i.panel.combine.label}}},grid:{hoverable:!0,clickable:!1}};"donut"===o.pieType&&(p.series.pie.innerRadius=.5),r=i.data;for(var g=0;g
',r+='
'+l.a.escape(n.series.label)+": "+s,r+=" ("+o+"%)
",r+="
",a.html(r).place_tt(t.pageX+20,t.pageY)}else a.detach()}))}function h(e){i.data&&(r=i.data,0===i.data.length?t.html('
No data points
'):c(),e&&i.renderingCompleted())}i.events.on("render",(function(){"Right side"===o.legendType?(h(!1),setTimeout((function(){h(!0)}),50)):h(!0)}))}var g=n(5),f=n.n(g),v=(n(8),n(6)),b=n.n(v);f.a.module("grafana.directives").directive("piechartLegend",["popoverSrv","$timeout",function(e,t){return{link:function(n,i){var r,o,a,s,c,h=u()('
'),d=!0,p=n.ctrl,g=p.panel;function f(e){return e.parents("[data-series-index]").data("series-index")}function v(e){var t=u()(e.currentTarget);if(t&&t.text()!==g.combine.label){var n=f(t),i=a[n],r=u()(h.children("tbody")).scrollTop();p.toggleSeries(i),void 0!==r&&u()(h.children("tbody")).scrollTop(r)}}function m(e){var t=u()(e.currentTarget).data("stat");if(t!==g.legend.sort&&(g.legend.sortDesc=null),!1===g.legend.sortDesc)return g.legend.sort=null,g.legend.sortDesc=null,void p.render();g.legend.sortDesc=!g.legend.sortDesc,g.legend.sort=t,p.render()}function y(n){if(!u()(n.target).parents(".popover").length){var i=u()(n.currentTarget).find(".fa-minus"),r=f(i),l=o[r];t((function(){e.show({element:i[0],position:"right center",template:'',openOn:"hover",classNames:"drop-popover drop-popover--transparent",model:{autoClose:!0,series:l,toggleAxis:function(){},colorSelected:function(e){p.changeSeriesColor(l,e)}}})}))}}function w(e,t,n,i,r){var o='
',o+='',o+='',o+="",o+=''+l.a.escape(e.label)+"";var a=0;if(p.panel.legend.percentageDecimals&&(a=p.panel.legend.percentageDecimals),i&&r){var s=e.legendData;if(g.legend.values&&(o+='
'+p.formatValue(s)+"
"),n)o+='
'+((s/n*100).toFixed(a)+"%")+"
"}return o+="
"}n.$on("$destroy",(function(){c&&c.destroy()})),p.events.on("render",(function(){if(r=p.series){for(var e in r)r[e].color=p.data[e].color;!function(){if("On graph"===g.legendType||!g.legend.show)return h.empty(),void i.find(".piechart-legend").css("padding-top",0);i.find(".piechart-legend").css("padding-top",6);d&&(i.append(h),h.on("click",".piechart-legend-icon",y),h.on("click",".piechart-legend-alias",v),h.on("click","th",m),d=!1);o=r,a=p.data,h.empty();var e="Right side"===g.legendType&&g.legend.sideWidth?g.legend.sideWidth+"px":"",t="Right side"===g.legendType&&g.legend.sideWidth?g.legend.sideWidth-1+"px":"";i.css("min-width",e),i.css("width",t);var n,f=g.legend.values||g.legend.percentage,S=("Under graph"===g.legendType||"Right side"===g.legendType)&&f;if(h.toggleClass("piechart-legend-table",S),S){var M='';g.legend.values&&(M+=function(e){var t=e;g.legend.header&&(t=g.legend.header);var n=''+l.a.escape(t);if(g.legend.sort===e){var i=g.legend.sortDesc?"fa fa-caret-down":"fa fa-caret-up";n+=' '}return n+""}(p.panel.valueName)),g.legend.percentage&&(M+=function(e){var t='percentage';if(g.legend.sort===e){var n=g.legend.sortDesc?"fa fa-caret-down":"fa fa-caret-up";t+=' '}return t+""}(p.panel.valueName)),M+="",n=u()(M)}var Y=0;if(g.legend.percentage)for(s=0;s0){if(void 0===g.legend.sortDesc||null===g.legend.sortDesc||g.legend.sortDesc)if(Object.keys(p.hiddenSeries).length>0){var R=void 0,x=void 0,D=function(e){R=a.find((function(t){return t.label===e})),(void 0===x||R.legendData>x)&&(x=R.legendData,k.color=R.color)};for(var P in p.hiddenSeries)D(P)}else k.color=o[o.length-T].color;else k.color=o[0].color;X.push(u()(w(k,a.length-T,Y,f,S)))}if(S){var H=u()("");void 0!==n&&H.append(n),H.append(X),h.append(H)}else h.append(X);"Under graph"===g.legendType?c?c.update():c=new b.a(i[0],{scrollYMarginOffset:2,suppressScrollX:!0}):c&&(c.destroy(),c=null)}()}}))}}}]);var m=function(e){function t(t,n,i){var r=e.call(this,t,n)||this;r.$rootScope=i,r.hiddenSeries={};var o={pieType:"pie",legend:{show:!0,values:!0},links:[],datasource:null,maxDataPoints:1,interval:null,targets:[{}],cacheTimeout:null,nullPointMode:"connected",legendType:"Under graph",breakPoint:"50%",aliasColors:{},format:"short",valueName:"current",strokeWidth:1,fontSize:"80%",combine:{threshold:0,label:"Others"}};return l.a.defaults(r.panel,o),l.a.defaults(r.panel.legend,o.legend),r.events.on("render",r.onRender.bind(r)),r.events.on("data-received",r.onDataReceived.bind(r)),r.events.on("data-error",r.onDataError.bind(r)),r.events.on("data-snapshot-load",r.onDataReceived.bind(r)),r.events.on("init-edit-mode",r.onInitEditMode.bind(r)),r.setLegendWidthForLegacyBrowser(),r}return t.$inject=["$scope","$injector","$rootScope"],function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.onInitEditMode=function(){this.addEditorTab("Options","public/plugins/grafana-piechart-panel/editor.html",2),this.unitFormats=s.a.getUnitFormats()},t.prototype.setUnitFormat=function(e){this.panel.format=e.value,this.render()},t.prototype.onDataError=function(){this.series=[],this.render()},t.prototype.changeSeriesColor=function(e,t){e.color=t,this.panel.aliasColors[e.alias]=e.color,this.render()},t.prototype.onRender=function(){this.data=this.parseSeries(this.series)},t.prototype.parseSeries=function(e){var t=this;return l.a.map(this.series,(function(e,n){return{label:e.alias,data:e.stats[t.panel.valueName],color:t.panel.aliasColors[e.alias]||t.$rootScope.colors[n],legendData:e.stats[t.panel.valueName]}}))},t.prototype.onDataReceived=function(e){this.series=e.map(this.seriesHandler.bind(this)),this.data=this.parseSeries(this.series),this.render(this.data)},t.prototype.seriesHandler=function(e){var t=new h.a({datapoints:e.datapoints,alias:e.target});return t.flotpairs=t.getFlotPairs(this.panel.nullPointMode),t},t.prototype.getDecimalsForValue=function(e){if(l.a.isNumber(this.panel.decimals))return{decimals:this.panel.decimals,scaledDecimals:null};var t,n=e/2,i=-Math.floor(Math.log(n)/Math.LN10),r=Math.pow(10,-i),o=n/r;o<1.5?t=1:o<3?(t=2,o>2.25&&(t=2.5,++i)):t=o<7.5?5:10,t*=r,Math.floor(e)===e&&(i=0);var a={decimals:0,scaledDecimals:0};return a.decimals=Math.max(0,i),a.scaledDecimals=a.decimals-Math.floor(Math.log(t)/Math.LN10)+2,a},t.prototype.formatValue=function(e){var t=this.getDecimalsForValue(e),n=s.a.valueFormats[this.panel.format];return n?n(e,t.decimals,t.scaledDecimals):e},t.prototype.link=function(e,t,n,i){p(0,t,0,i)},t.prototype.toggleSeries=function(e){this.hiddenSeries[e.label]?delete this.hiddenSeries[e.label]:this.hiddenSeries[e.label]=!0,this.render()},t.prototype.onLegendTypeChanged=function(){this.setLegendWidthForLegacyBrowser(),this.render()},t.prototype.setLegendWidthForLegacyBrowser=function(){!!window.MSInputMethodContext&&!!document.documentMode&&"Right side"===this.panel.legendType&&!this.panel.legend.sideWidth&&(this.panel.legend.sideWidth=150)},t.templateUrl="module.html",t}(r.MetricsPanelCtrl);n.d(t,"PanelCtrl",(function(){return m})),Object(r.loadPluginCss)({dark:"plugins/grafana-piechart-panel/styles/dark.css",light:"plugins/grafana-piechart-panel/styles/light.css"})}])})); +//# sourceMappingURL=module.js.map \ No newline at end of file diff --git a/data/plugins/grafana-piechart-panel/dist/module.js.LICENSE.txt b/data/plugins/grafana-piechart-panel/dist/module.js.LICENSE.txt new file mode 100644 index 0000000000000..f3f36ee139d7e --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/module.js.LICENSE.txt @@ -0,0 +1,20 @@ +/*! + * perfect-scrollbar v1.2.0 + * (c) 2017 Hyunje Jun + * @license MIT + */ + +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ diff --git a/data/plugins/grafana-piechart-panel/dist/module.js.map b/data/plugins/grafana-piechart-panel/dist/module.js.map new file mode 100644 index 0000000000000..6a3ef197df228 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/module.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"jquery\"","webpack:///external \"lodash\"","webpack:///external \"app/plugins/sdk\"","webpack:///external \"app/core/utils/kbn\"","webpack:///external \"app/core/time_series\"","webpack:///external \"angular\"","webpack:///./lib/perfect-scrollbar.min.js","webpack:///./lib/jquery.flot.pie.js","webpack:///./lib/jquery.flot.time.js","webpack:///../node_modules/tslib/tslib.es6.js","webpack:///./rendering.ts","webpack:///./legend.ts","webpack:///./piechart_ctrl.ts","webpack:///./module.ts"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","__WEBPACK_EXTERNAL_MODULE__0__","__WEBPACK_EXTERNAL_MODULE__1__","__WEBPACK_EXTERNAL_MODULE__2__","__WEBPACK_EXTERNAL_MODULE__3__","__WEBPACK_EXTERNAL_MODULE__4__","__WEBPACK_EXTERNAL_MODULE__5__","e","define","this","getComputedStyle","style","document","createElement","className","v","Error","remove","parentNode","removeChild","Array","filter","children","element","classList","state","scrolling","contains","clearTimeout","w","add","setTimeout","isAlive","settings","scrollingThreshold","a","window","CustomEvent","createEvent","initCustomEvent","u","parseInt","f","minScrollbarLength","Math","max","maxScrollbarLength","min","b","width","railXWidth","isRtl","left","negativeScrollAdjustment","scrollLeft","containerWidth","contentWidth","isScrollbarXUsingBottom","bottom","scrollbarXBottom","scrollTop","top","scrollbarXTop","scrollbarXRail","height","railYHeight","isScrollbarYUsingRight","right","scrollbarYRight","scrollbarYOuterWidth","scrollbarYLeft","scrollbarYRail","scrollbarX","scrollbarXLeft","scrollbarXWidth","railBorderXWidth","scrollbarY","scrollbarYTop","scrollbarYHeight","railBorderYWidth","g","R","stopPropagation","preventDefault","event","unbind","ownerDocument","h","once","Element","matches","webkitMatchesSelector","msMatchesSelector","main","thumb","rail","consuming","focus","active","x","y","Y","handlers","X","isEmpty","configurable","push","addEventListener","removeEventListener","unbindAll","keys","every","length","defineProperties","W","eventElements","eventElement","splice","indexOf","forEach","reach","dispatchEvent","L","documentElement","DocumentTouch","navigator","msMaxTouchPoints","clientWidth","containerHeight","clientHeight","scrollWidth","contentHeight","scrollHeight","appendChild","suppressScrollX","scrollXMarginOffset","scrollbarXActive","railXMarginWidth","railXRatio","suppressScrollY","scrollYMarginOffset","scrollbarYActive","railYMarginHeight","railYRatio","T","pageY","pageYOffset","getBoundingClientRect","pageX","pageXOffset","keyboard","isDefaultPrevented","defaultPrevented","activeElement","tagName","contentDocument","shadowRoot","which","metaKey","altKey","shiftKey","wheelPropagation","wheel","querySelector","overflow","overflowX","overflowY","join","match","deltaX","deltaY","wheelDeltaX","wheelDeltaY","deltaMode","wheelDelta","target","useBothWheelAxes","wheelSpeed","ctrlKey","onwheel","onmousewheel","touch","abs","stop","swipePropagation","prevent","scrollY","targetTouches","pointerType","buttons","MSPOINTER_TYPE_MOUSE","Date","getTime","clearInterval","swipeEasing","setInterval","isInitialized","PointerEvent","MSPointerEvent","H","nodeName","direction","isNegativeScroll","setAttribute","isNaN","borderLeftWidth","borderRightWidth","display","marginLeft","marginRight","paddingLeft","paddingRight","borderTopWidth","borderBottomWidth","marginTop","marginBottom","lastScrollTop","lastScrollLeft","onScroll","update","destroy","removePsClasses","split","$","options","jQuery","series","pie","show","radius","innerRadius","startAngle","tilt","shadow","alpha","offset","stroke","color","label","formatter","slice","round","percent","background","opacity","threshold","combine","highlight","plot","plugins","init","canvas","maxRadius","centerLeft","centerTop","processed","ctx","highlights","processDatapoints","datapoints","getCanvas","parent","getOptions","setData","data","total","combined","numCombined","newdata","isArray","parseFloat","isFinite","extend","angle","PI","getData","draw","newCtx","canvasWidth","getPlaceholder","canvasHeight","legendWidth","legend","position","slices","attempts","clear","drawShadow","drawPie","prepend","setSeries","insertLegend","clearRect","shadowLeft","shadowTop","save","translate","globalAlpha","fillStyle","scale","beginPath","arc","fill","restore","currentAngle","drawSlice","lineWidth","drawDonutHole","drawLabel","index","text","lf","labelFormatter","plf","halfAngle","cos","sin","html","append","labelTop","labelLeft","css","pos","insertBefore","drawLabels","strokeStyle","lineJoin","moveTo","closePath","layer","globalCompositeOperation","isPointInPoly","poly","pt","j","onMouseMove","triggerClickHoverEvent","onClick","eventname","item","mouseX","mouseY","isPointInPath","datapoint","dataIndex","seriesIndex","findNearbySlice","grid","autoHighlight","auto","unhighlight","indexOfHighlight","triggerRedrawOverlay","trigger","hooks","processOptions","bindEvents","eventHolder","hoverable","mousemove","clickable","click","drawOverlay","octx","version","floorInBase","base","floor","formatDate","fmt","monthNames","dayNames","strftime","hours12","leftPad","pad","escape","hours","getHours","isAM","charAt","getDay","getMonth","getDate","getMinutes","getSeconds","getFullYear","makeUtcWrapper","addProxyMethod","sourceObj","sourceMethod","targetObj","targetMethod","apply","arguments","utc","date","undefined","props","dateGenerator","ts","opts","timezone","timezoneJS","setTimezone","setTime","timeUnitSize","baseSpec","specMonths","concat","specQuarters","each","getAxes","axisName","axis","tickGenerator","ticks","minSize","spec","tickSize","minTickSize","delta","size","unit","magn","pow","log","year","LN10","norm","step","setSeconds","setMinutes","setHours","setMonth","setFullYear","setMilliseconds","minute","hour","day","setDate","month","quarter","prev","carry","Number","NaN","start","end","tickFormatter","timeformat","useQuarters","span","suffix","twelveHourClock","hourCode","xaxis","extendStatics","setPrototypeOf","__proto__","scope","elem","attrs","ctrl","panel","find","$tooltip","sliceData","decimal","fontSize","percentageDecimals","values","percentage","formatValue","toFixed","addPieChart","panelHeight","legendType","breakPoint","getLegendHeight","plotCanvas","plotCss","margin","paddingBottom","strokeWidth","pieType","hiddenSeries","sort","valueName","sortDesc","legendData","body","formatted","place_tt","detach","render","incrementRenderCounter","renderingCompleted","events","on","directive","popoverSrv","$timeout","link","seriesList","dataList","legendScrollbar","$container","firstRender","getSeriesIndexForElement","el","parents","toggleSeries","currentTarget","seriesInfo","scrollPosition","sortLegend","stat","openColorSelector","template","openOn","classNames","model","autoClose","toggleAxis","colorSelected","changeSeriesColor","generateLegendItem","showValues","tableLayout","$on","empty","sideWidth","ieWidth","legendHeader","toggleClass","header","statName","cssClass","getLegendHeaderHtml","getLegendPercentageHtml","stats","combineNum","combineVal","seriesElements","seriesData","hideEmpty","allIsNull","_el","_max","_key","tbodyElem","$scope","$injector","$rootScope","panelDefaults","links","datasource","maxDataPoints","interval","targets","cacheTimeout","nullPointMode","aliasColors","format","defaults","onRender","onDataReceived","onDataError","onInitEditMode","setLegendWidthForLegacyBrowser","__","constructor","addEditorTab","unitFormats","getUnitFormats","setUnitFormat","subItem","alias","parseSeries","map","serie","colors","seriesHandler","flotpairs","getFlotPairs","getDecimalsForValue","isNumber","decimals","scaledDecimals","dec","result","decimalInfo","formatFunc","valueFormats","onLegendTypeChanged","MSInputMethodContext","documentMode","templateUrl","dark","light"],"mappings":";6IACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QA0Df,OArDAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,KAKhEZ,EAAoBkB,EAAI,SAAShB,GACX,oBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,KAQvDrB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,iBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,SAASA,GAAO,OAAON,EAAMM,IAAQC,KAAK,KAAMD,IAC9I,OAAOF,GAIRzB,EAAoB6B,EAAI,SAAS1B,GAChC,IAAIS,EAAST,GAAUA,EAAOqB,WAC7B,WAAwB,OAAOrB,EAAgB,SAC/C,WAA8B,OAAOA,GAEtC,OADAH,EAAoBU,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRZ,EAAoBa,EAAI,SAASiB,EAAQC,GAAY,OAAOjB,OAAOkB,UAAUC,eAAe1B,KAAKuB,EAAQC,IAGzG/B,EAAoBkC,EAAI,IAIjBlC,EAAoBA,EAAoBmC,EAAI,I,gBClFrDhC,EAAOD,QAAUkC,G,cCAjBjC,EAAOD,QAAUmC,G,cCAjBlC,EAAOD,QAAUoC,G,cCAjBnC,EAAOD,QAAUqC,G,cCAjBpC,EAAOD,QAAUsC,G,cCAjBrC,EAAOD,QAAUuC,G,8PCKhB,SAASnB,EAAEoB,GAAG,YAAiBxC,SAAS,IAAoBC,EAAOA,EAAOD,QAAQwC,SAAgD,0BAANC,KAAM,kCAAlI,CAA8JC,GAAK,WAAW,aAAa,SAAStB,EAAEA,GAAG,OAAOuB,iBAAiBvB,GAAG,SAASoB,EAAEpB,EAAEoB,GAAG,IAAI,IAAItC,KAAKsC,EAAE,CAAC,IAAIb,EAAEa,EAAEtC,GAAG,iBAAiByB,IAAIA,GAAG,MAAMP,EAAEwB,MAAM1C,GAAGyB,EAAE,OAAOP,EAAE,SAASlB,EAAEkB,GAAG,IAAIoB,EAAEK,SAASC,cAAc,OAAO,OAAON,EAAEO,UAAU3B,EAAEoB,EAAE,SAASb,EAAEP,EAAEoB,GAAG,IAAIQ,EAAE,MAAM,IAAIC,MAAM,wCAAwC,OAAOD,EAAE3C,KAAKe,EAAEoB,GAAG,SAASxB,EAAEI,GAAGA,EAAE8B,OAAO9B,EAAE8B,SAAS9B,EAAE+B,YAAY/B,EAAE+B,WAAWC,YAAYhC,GAAG,SAASjB,EAAEiB,EAAEoB,GAAG,OAAOa,MAAMvB,UAAUwB,OAAOjD,KAAKe,EAAEmC,UAAS,SAASnC,GAAG,OAAOO,EAAEP,EAAEoB,MAAK,SAAS7B,EAAES,EAAEoB,GAAG,IAAItC,EAAEkB,EAAEoC,QAAQC,UAAU9B,EAAErB,EAAEoD,MAAMC,UAAUnB,GAAGtC,EAAE0D,SAASjC,GAAGkC,aAAaC,EAAEtB,IAAItC,EAAE6D,IAAIpC,GAAG,SAASM,EAAEb,EAAEoB,GAAGsB,EAAEtB,GAAGwB,YAAW,WAAW,OAAO5C,EAAE6C,SAAS7C,EAAEoC,QAAQC,UAAUP,OAAO5C,EAAEoD,MAAMC,UAAUnB,MAAKpB,EAAE8C,SAASC,oBAAoB,SAASC,EAAEhD,EAAEoB,GAAG7B,EAAES,EAAEoB,GAAGP,EAAEb,EAAEoB,GAAG,SAASjC,EAAEa,GAAG,GAAG,mBAAmBiD,OAAOC,YAAY,OAAO,IAAIA,YAAYlD,GAAG,IAAIoB,EAAEK,SAAS0B,YAAY,eAAe,OAAO/B,EAAEgC,gBAAgBpD,GAAE,GAAG,OAAG,GAAQoB,EAAoZ,SAASiC,EAAErD,GAAG,OAAOsD,SAAStD,EAAE,KAAK,EAAE,SAASZ,EAAEY,GAAG,OAAOO,EAAEP,EAAE,4BAA4BO,EAAEP,EAAE,6BAA6BO,EAAEP,EAAE,+BAA+BO,EAAEP,EAAE,4BAAqJ,SAASuD,EAAEvD,EAAEoB,GAAG,OAAOpB,EAAE8C,SAASU,qBAAqBpC,EAAEqC,KAAKC,IAAItC,EAAEpB,EAAE8C,SAASU,qBAAqBxD,EAAE8C,SAASa,qBAAqBvC,EAAEqC,KAAKG,IAAIxC,EAAEpB,EAAE8C,SAASa,qBAAqBvC,EAAE,SAASyC,EAAE7D,EAAElB,GAAG,IAAIyB,EAAE,CAACuD,MAAMhF,EAAEiF,YAAYjF,EAAEkF,MAAMzD,EAAE0D,KAAKnF,EAAEoF,yBAAyBlE,EAAEmE,WAAWrF,EAAEsF,eAAetF,EAAEuF,aAAa9D,EAAE0D,KAAKjE,EAAEmE,WAAWrF,EAAEwF,wBAAwB/D,EAAEgE,OAAOzF,EAAE0F,iBAAiBxE,EAAEyE,UAAUlE,EAAEmE,IAAI5F,EAAE6F,cAAc3E,EAAEyE,UAAUrD,EAAEtC,EAAE8F,eAAerE,GAAG,IAAIX,EAAE,CAAC8E,IAAI1E,EAAEyE,UAAUI,OAAO/F,EAAEgG,aAAahG,EAAEiG,uBAAuBjG,EAAEkF,MAAMpE,EAAEoF,MAAMlG,EAAEuF,cAAcvF,EAAEoF,yBAAyBlE,EAAEmE,YAAYrF,EAAEmG,gBAAgBnG,EAAEoG,qBAAqBtF,EAAEoF,MAAMlG,EAAEmG,gBAAgBjF,EAAEmE,WAAWrF,EAAEkF,MAAMpE,EAAEqE,KAAKnF,EAAEoF,yBAAyBlE,EAAEmE,WAAW,EAAErF,EAAEsF,eAAetF,EAAEuF,aAAavF,EAAEqG,eAAerG,EAAEoG,qBAAqBtF,EAAEqE,KAAKnF,EAAEqG,eAAenF,EAAEmE,WAAW/C,EAAEtC,EAAEsG,eAAexF,GAAGwB,EAAEtC,EAAEuG,WAAW,CAACpB,KAAKnF,EAAEwG,eAAexB,MAAMhF,EAAEyG,gBAAgBzG,EAAE0G,mBAAmBpE,EAAEtC,EAAE2G,WAAW,CAACf,IAAI5F,EAAE4G,cAAcb,OAAO/F,EAAE6G,iBAAiB7G,EAAE8G,mBAAmB,SAASC,EAAE7F,EAAEoB,GAAG,SAAStC,EAAEsC,GAAGmC,EAAEnE,GAAGyE,EAAEjC,GAAGR,EAAE4B,GAAG6C,GAAGtG,EAAES,EAAEY,GAAGkF,EAAE9F,GAAGoB,EAAE2E,kBAAkB3E,EAAE4E,iBAAiB,SAASzF,IAAIM,EAAEb,EAAEY,GAAGZ,EAAEiG,MAAMC,OAAOlG,EAAEmG,cAAc,YAAYrH,GAAG,IAAIc,EAAEwB,EAAE,GAAGrC,EAAEqC,EAAE,GAAG4B,EAAE5B,EAAE,GAAGjC,EAAEiC,EAAE,GAAGgF,EAAEhF,EAAE,GAAGiC,EAAEjC,EAAE,GAAGhC,EAAEgC,EAAE,GAAGR,EAAEQ,EAAE,GAAGmC,EAAEvD,EAAEoC,QAAQyB,EAAE,KAAKgC,EAAE,KAAKjE,EAAE,KAAK5B,EAAEiG,MAAM3F,KAAKN,EAAEoG,GAAG,aAAY,SAAShF,GAAGyC,EAAEN,EAAEnE,GAAGyG,EAAEzE,EAAE4B,GAAGpB,GAAG5B,EAAEjB,GAAGiB,EAAEJ,KAAKI,EAAEb,GAAGa,EAAEqD,IAAIrD,EAAEiG,MAAM3F,KAAKN,EAAEmG,cAAc,YAAYrH,GAAGkB,EAAEiG,MAAMI,KAAKrG,EAAEmG,cAAc,UAAU5F,GAAGa,EAAE2E,kBAAkB3E,EAAE4E,oBAAmB,IAAIpE,EAAE0E,QAAQ5F,UAAU6F,SAASD,QAAQ5F,UAAU8F,uBAAuBF,QAAQ5F,UAAU+F,kBAAkBvH,EAAE,CAACwH,KAAK,KAAKtE,QAAQ,CAACuE,MAAM,SAAS3G,GAAG,MAAM,aAAaA,GAAG4G,KAAK,SAAS5G,GAAG,MAAM,YAAYA,GAAG6G,UAAU,sBAAsBvE,MAAM,CAACwE,MAAM,YAAYC,OAAO,SAAS/G,GAAG,MAAM,cAAcA,GAAGuC,UAAU,SAASvC,GAAG,MAAM,iBAAiBA,KAAK0C,EAAE,CAACsE,EAAE,KAAKC,EAAE,MAAMC,EAAE,SAASlH,GAAGsB,KAAKc,QAAQpC,EAAEsB,KAAK6F,SAAS,IAAIC,EAAE,CAACC,QAAQ,CAACC,cAAa,IAAKJ,EAAExG,UAAUJ,KAAK,SAASN,EAAEoB,QAAG,IAASE,KAAK6F,SAASnH,KAAKsB,KAAK6F,SAASnH,GAAG,IAAIsB,KAAK6F,SAASnH,GAAGuH,KAAKnG,GAAGE,KAAKc,QAAQoF,iBAAiBxH,EAAEoB,GAAE,IAAK8F,EAAExG,UAAUwF,OAAO,SAASlG,EAAEoB,GAAG,IAAItC,EAAEwC,KAAKA,KAAK6F,SAASnH,GAAGsB,KAAK6F,SAASnH,GAAGkC,QAAO,SAAS3B,GAAG,SAASa,GAAGb,IAAIa,KAAKtC,EAAEsD,QAAQqF,oBAAoBzH,EAAEO,GAAE,IAAI,OAAO2G,EAAExG,UAAUgH,UAAU,WAAsB,IAAI,IAAItG,KAAbE,KAAoB6F,SAApB7F,KAA+B4E,OAAO9E,IAAIgG,EAAEC,QAAQ1H,IAAI,WAAW,IAAIK,EAAEsB,KAAK,OAAO9B,OAAOmI,KAAKrG,KAAK6F,UAAUS,OAAM,SAASxG,GAAG,OAAO,IAAIpB,EAAEmH,SAAS/F,GAAGyG,WAAUrI,OAAOsI,iBAAiBZ,EAAExG,UAAU0G,GAAG,IAAIW,EAAE,WAAWzG,KAAK0G,cAAc,IAAID,EAAErH,UAAUuH,aAAa,SAASjI,GAAG,IAAIoB,EAAEE,KAAK0G,cAAc9F,QAAO,SAASd,GAAG,OAAOA,EAAEgB,UAAUpC,KAAI,GAAG,OAAOoB,IAAIA,EAAE,IAAI8F,EAAElH,GAAGsB,KAAK0G,cAAcT,KAAKnG,IAAIA,GAAG2G,EAAErH,UAAUJ,KAAK,SAASN,EAAEoB,EAAEtC,GAAGwC,KAAK2G,aAAajI,GAAGM,KAAKc,EAAEtC,IAAIiJ,EAAErH,UAAUwF,OAAO,SAASlG,EAAEoB,EAAEtC,GAAG,IAAIyB,EAAEe,KAAK2G,aAAajI,GAAGO,EAAE2F,OAAO9E,EAAEtC,GAAGyB,EAAE8G,SAAS/F,KAAK0G,cAAcE,OAAO5G,KAAK0G,cAAcG,QAAQ5H,GAAG,IAAIwH,EAAErH,UAAUgH,UAAU,WAAWpG,KAAK0G,cAAcI,SAAQ,SAASpI,GAAG,OAAOA,EAAE0H,eAAcpG,KAAK0G,cAAc,IAAID,EAAErH,UAAU2F,KAAK,SAASrG,EAAEoB,EAAEtC,GAAG,IAAIyB,EAAEe,KAAK2G,aAAajI,GAAqCO,EAAED,KAAKc,GAAvC,SAAFxB,EAAWI,GAAGO,EAAE2F,OAAO9E,EAAExB,GAAGd,EAAEkB,OAAiB,IAAIiH,EAAE,SAASjH,EAAEoB,EAAEtC,EAAEyB,EAAEX,GAAyC,IAAIb,EAAE,QAA5C,IAASwB,IAAIA,GAAE,QAAI,IAASX,IAAIA,GAAE,GAAa,QAAQwB,EAAErC,EAAE,CAAC,gBAAgB,kBAAkB,YAAY,IAAI,KAAK,YAAY,CAAC,GAAG,SAASqC,EAAE,MAAM,IAAIS,MAAM,oCAAoC9C,EAAE,CAAC,eAAe,iBAAiB,aAAa,IAAI,OAAO,UAAliI,SAAWiB,EAAEoB,EAAEtC,EAAEyB,EAAEX,GAAG,IAAIb,EAAED,EAAE,GAAGS,EAAET,EAAE,GAAG+B,EAAE/B,EAAE,GAAGsH,EAAEtH,EAAE,GAAGuE,EAAEvE,EAAE,GAAGM,EAAEN,EAAE,QAAG,IAASyB,IAAIA,GAAE,QAAI,IAASX,IAAIA,GAAE,GAAI,IAAIgB,EAAEZ,EAAEoC,QAAQpC,EAAEqI,MAAMjC,GAAG,KAAKxF,EAAEC,GAAG,IAAIb,EAAEqI,MAAMjC,GAAG,SAASxF,EAAEC,GAAGb,EAAEjB,GAAGiB,EAAET,GAAG,IAAIS,EAAEqI,MAAMjC,GAAG,OAAOhF,IAAIR,EAAE0H,cAAcnJ,EAAE,aAAaiH,IAAIhF,EAAE,EAAER,EAAE0H,cAAcnJ,EAAE,aAAakE,IAAIjC,EAAE,GAAGR,EAAE0H,cAAcnJ,EAAE,aAAaC,IAAImB,GAAGyC,EAAEhD,EAAEoG,IAAIpG,EAAEqI,MAAMjC,KAAKhF,GAAGxB,IAAIgB,EAAE0H,cAAcnJ,EAAE,MAAMiH,EAAE,UAAUpG,EAAEqI,MAAMjC,KAA8pHA,CAAEpG,EAAElB,EAAEC,EAAEwB,EAAEX,IAAI2I,EAAY9G,UAAU,qBAAqBA,SAAS+G,gBAAgBhH,MAApE+G,EAAwFtF,SAAS,iBAAiBA,QAAQA,OAAOwF,eAAehH,oBAAoBwB,OAAOwF,eAA3KF,EAA4MG,WAAWA,UAAUC,iBAAkB7C,EAAE,SAAS9F,GAAG,IAAIoB,EAAEpB,EAAEoC,QAAQpC,EAAEoE,eAAehD,EAAEwH,YAAY5I,EAAE6I,gBAAgBzH,EAAE0H,aAAa9I,EAAEqE,aAAajD,EAAE2H,YAAY/I,EAAEgJ,cAAc5H,EAAE6H,aAAa7H,EAAEoB,SAASxC,EAAE4E,kBAAkB7F,EAAEqC,EAAElC,EAAEkD,QAAQwE,KAAK,MAAMwB,SAAQ,SAASpI,GAAG,OAAOJ,EAAEI,MAAKoB,EAAE8H,YAAYlJ,EAAE4E,iBAAiBxD,EAAEoB,SAASxC,EAAEoF,kBAAkBrG,EAAEqC,EAAElC,EAAEkD,QAAQwE,KAAK,MAAMwB,SAAQ,SAASpI,GAAG,OAAOJ,EAAEI,MAAKoB,EAAE8H,YAAYlJ,EAAEoF,kBAAkBpF,EAAE8C,SAASqG,iBAAiBnJ,EAAEoE,eAAepE,EAAE8C,SAASsG,oBAAoBpJ,EAAEqE,cAAcrE,EAAEqJ,kBAAiB,EAAGrJ,EAAE+D,WAAW/D,EAAEoE,eAAepE,EAAEsJ,iBAAiBtJ,EAAEuJ,WAAWvJ,EAAEoE,eAAepE,EAAE+D,WAAW/D,EAAEuF,gBAAgBhC,EAAEvD,EAAEqD,EAAErD,EAAE+D,WAAW/D,EAAEoE,eAAepE,EAAEqE,eAAerE,EAAEsF,eAAejC,GAAGrD,EAAEkE,yBAAyB9C,EAAE+C,aAAanE,EAAE+D,WAAW/D,EAAEuF,kBAAkBvF,EAAEqE,aAAarE,EAAEoE,kBAAkBpE,EAAEqJ,kBAAiB,GAAIrJ,EAAE8C,SAAS0G,iBAAiBxJ,EAAE6I,gBAAgB7I,EAAE8C,SAAS2G,oBAAoBzJ,EAAEgJ,eAAehJ,EAAE0J,kBAAiB,EAAG1J,EAAE8E,YAAY9E,EAAE6I,gBAAgB7I,EAAE2J,kBAAkB3J,EAAE4J,WAAW5J,EAAE6I,gBAAgB7I,EAAE8E,YAAY9E,EAAE2F,iBAAiBpC,EAAEvD,EAAEqD,EAAErD,EAAE8E,YAAY9E,EAAE6I,gBAAgB7I,EAAEgJ,gBAAgBhJ,EAAE0F,cAAcrC,EAAEjC,EAAEqD,WAAWzE,EAAE8E,YAAY9E,EAAE2F,mBAAmB3F,EAAEgJ,cAAchJ,EAAE6I,mBAAmB7I,EAAE0J,kBAAiB,EAAG1J,EAAEsF,gBAAgBtF,EAAE+D,WAAW/D,EAAEuF,kBAAkBvF,EAAEsF,eAAetF,EAAE+D,WAAW/D,EAAEuF,iBAAiBvF,EAAE0F,eAAe1F,EAAE8E,YAAY9E,EAAE2F,mBAAmB3F,EAAE0F,cAAc1F,EAAE8E,YAAY9E,EAAE2F,kBAAkB9B,EAAEzC,EAAEpB,GAAGA,EAAEqJ,iBAAiBjI,EAAEiB,UAAUM,IAAIzD,EAAEoD,MAAMyE,OAAO,OAAO3F,EAAEiB,UAAUP,OAAO5C,EAAEoD,MAAMyE,OAAO,MAAM/G,EAAEuF,gBAAgB,EAAEvF,EAAEsF,eAAe,EAAElE,EAAE+C,WAAW,GAAGnE,EAAE0J,iBAAiBtI,EAAEiB,UAAUM,IAAIzD,EAAEoD,MAAMyE,OAAO,OAAO3F,EAAEiB,UAAUP,OAAO5C,EAAEoD,MAAMyE,OAAO,MAAM/G,EAAE2F,iBAAiB,EAAE3F,EAAE0F,cAAc,EAAEtE,EAAEqD,UAAU,IAAIoF,EAAE,CAAC,aAAa,SAAS7J,GAAGA,EAAEiG,MAAM3F,KAAKN,EAAEyF,WAAW,aAAY,SAASzF,GAAG,OAAOA,EAAE+F,qBAAoB/F,EAAEiG,MAAM3F,KAAKN,EAAEoF,eAAe,aAAY,SAAShE,GAAG,IAAItC,EAAEsC,EAAE0I,MAAM7G,OAAO8G,YAAY/J,EAAEoF,eAAe4E,wBAAwBtF,IAAI1E,EAAE0F,cAAc,GAAG,EAAE1F,EAAEoC,QAAQqC,WAAW3F,EAAEkB,EAAE6I,gBAAgB/C,EAAE9F,GAAGoB,EAAE2E,qBAAoB/F,EAAEiG,MAAM3F,KAAKN,EAAEqF,WAAW,aAAY,SAASrF,GAAG,OAAOA,EAAE+F,qBAAoB/F,EAAEiG,MAAM3F,KAAKN,EAAE4E,eAAe,aAAY,SAASxD,GAAG,IAAItC,EAAEsC,EAAE6I,MAAMhH,OAAOiH,YAAYlK,EAAE4E,eAAeoF,wBAAwB/F,KAAKjE,EAAEsF,eAAe,GAAG,EAAEtF,EAAEoC,QAAQ+B,YAAYrF,EAAEkB,EAAEoE,eAAe0B,EAAE9F,GAAGoB,EAAE2E,sBAAqB,aAAa,SAAS/F,GAAG6F,EAAE7F,EAAE,CAAC,iBAAiB,eAAe,QAAQ,aAAa,aAAa,kBAAkB,aAAa,MAAM6F,EAAE7F,EAAE,CAAC,kBAAkB,gBAAgB,QAAQ,cAAc,aAAa,mBAAmB,YAAY,OAAOmK,SAAS,SAASnK,GAA2U,IAAIlB,EAAEkB,EAAEoC,QAAQxC,EAAE,WAAW,OAAOW,EAAEzB,EAAE,WAAWC,EAAE,WAAW,OAAOwB,EAAEP,EAAEqF,WAAW,WAAW9E,EAAEP,EAAEyF,WAAW,WAAWzF,EAAEiG,MAAM3F,KAAKN,EAAEmG,cAAc,WAAU,SAAS5F,GAAG,KAAKA,EAAE6J,oBAAoB7J,EAAE6J,sBAAsB7J,EAAE8J,oBAAoBzK,KAAKb,KAAK,CAAC,IAAIQ,EAAEkC,SAAS6I,cAAc7I,SAAS6I,cAActK,EAAEmG,cAAcmE,cAAc,GAAG/K,EAAE,CAAC,GAAG,WAAWA,EAAEgL,QAAQhL,EAAEA,EAAEiL,gBAAgBF,mBAAmB,KAAK/K,EAAEkL,YAAYlL,EAAEA,EAAEkL,WAAWH,cAAc,GAAGlL,EAAEG,GAAG,OAAO,IAAIsB,EAAE,EAAEmC,EAAE,EAAE,OAAOzC,EAAEmK,OAAO,KAAK,GAAG7J,EAAEN,EAAEoK,SAAS3K,EAAEqE,aAAa9D,EAAEqK,QAAQ5K,EAAEoE,gBAAgB,GAAG,MAAM,KAAK,GAAGpB,EAAEzC,EAAEoK,QAAQ3K,EAAEgJ,cAAczI,EAAEqK,OAAO5K,EAAE6I,gBAAgB,GAAG,MAAM,KAAK,GAAGhI,EAAEN,EAAEoK,QAAQ3K,EAAEqE,aAAa9D,EAAEqK,OAAO5K,EAAEoE,eAAe,GAAG,MAAM,KAAK,GAAGpB,EAAEzC,EAAEoK,SAAS3K,EAAEgJ,cAAczI,EAAEqK,QAAQ5K,EAAE6I,iBAAiB,GAAG,MAAM,KAAK,GAAG7F,EAAEzC,EAAEsK,SAAS7K,EAAE6I,iBAAiB7I,EAAE6I,gBAAgB,MAAM,KAAK,GAAG7F,EAAEhD,EAAE6I,gBAAgB,MAAM,KAAK,GAAG7F,GAAGhD,EAAE6I,gBAAgB,MAAM,KAAK,GAAG7F,EAAEhD,EAAEgJ,cAAc,MAAM,KAAK,GAAGhG,GAAGhD,EAAEgJ,cAAc,MAAM,QAAQ,OAAOhJ,EAAE8C,SAASqG,iBAAiB,IAAItI,GAAGb,EAAE8C,SAAS0G,iBAAiB,IAAIxG,IAAIlE,EAAE2F,WAAWzB,EAAElE,EAAEqF,YAAYtD,EAAEiF,EAAE9F,GAA35C,SAAWoB,EAAEb,GAAG,IAAIX,EAAEd,EAAE2F,UAAU,GAAG,IAAIrD,EAAE,CAAC,IAAIpB,EAAE0J,iBAAiB,OAAM,EAAG,GAAG,IAAI9J,GAAGW,EAAE,GAAGX,GAAGI,EAAEgJ,cAAchJ,EAAE6I,iBAAiBtI,EAAE,EAAE,OAAOP,EAAE8C,SAASgI,iBAAiB,IAAI/L,EAAED,EAAEqF,WAAW,GAAG,IAAI5D,EAAE,CAAC,IAAIP,EAAEqJ,iBAAiB,OAAM,EAAG,GAAG,IAAItK,GAAGqC,EAAE,GAAGrC,GAAGiB,EAAEqE,aAAarE,EAAEoE,gBAAgBhD,EAAE,EAAE,OAAOpB,EAAE8C,SAASgI,iBAAiB,OAAM,EAAylC1J,CAAEP,EAAEmC,IAAIzC,EAAEyF,uBAAsB+E,MAAM,SAAS3J,GAAsiB,SAASxB,EAAEwB,EAAEtC,EAAEyB,GAAG,IAAIgI,GAAYhJ,EAAEyL,cAAc,gBAAgB,OAAM,EAAG,IAAIzL,EAAEiD,SAASpB,GAAG,OAAM,EAAG,IAAI,IAAIxB,EAAEwB,EAAExB,GAAGA,IAAIL,GAAG,CAAC,GAAGK,EAAEyC,UAAUG,SAAStD,EAAEkD,QAAQyE,WAAW,OAAM,EAAG,IAAI9H,EAAEiB,EAAEJ,GAAG,GAAG,CAACb,EAAEkM,SAASlM,EAAEmM,UAAUnM,EAAEoM,WAAWC,KAAK,IAAIC,MAAM,iBAAiB,CAAC,IAAIxK,EAAEjB,EAAEqJ,aAAarJ,EAAEkJ,aAAa,GAAGjI,EAAE,KAAK,IAAIjB,EAAE6E,WAAWlE,EAAE,GAAGX,EAAE6E,YAAY5D,GAAGN,EAAE,GAAG,OAAM,EAAG,IAAIyC,EAAEpD,EAAEuE,WAAWvE,EAAEgJ,YAAY,GAAG5F,EAAE,KAAK,IAAIpD,EAAEuE,YAAYrF,EAAE,GAAGc,EAAEuE,aAAanB,GAAGlE,EAAE,GAAG,OAAM,EAAGc,EAAEA,EAAEmC,WAAW,OAAM,EAAG,SAAShD,EAAEiB,GAAG,IAAIjB,EAAjtB,SAAWiB,GAAG,IAAIoB,EAAEpB,EAAEsL,OAAOxM,GAAG,EAAEkB,EAAEuL,OAAO,YAAO,IAASnK,QAAG,IAAStC,IAAIsC,GAAG,EAAEpB,EAAEwL,YAAY,EAAE1M,EAAEkB,EAAEyL,YAAY,GAAGzL,EAAE0L,WAAW,IAAI1L,EAAE0L,YAAYtK,GAAG,GAAGtC,GAAG,IAAIsC,GAAIA,GAAGtC,GAAIA,IAAIsC,EAAE,EAAEtC,EAAEkB,EAAE2L,YAAY3L,EAAE6K,SAAS,EAAE/L,GAAGsC,GAAG,CAACA,EAAEtC,GAA2fyB,CAAEP,GAAGa,EAAE9B,EAAE,GAAGiE,EAAEjE,EAAE,GAAG,IAAIa,EAAEI,EAAE4L,OAAO/K,EAAEmC,GAAG,CAAC,IAAI7D,GAAE,EAAGiC,EAAE0B,SAAS+I,iBAAiBzK,EAAEsI,mBAAmBtI,EAAEiI,kBAAkBrG,EAAEzD,EAAEkF,WAAWzB,EAAE5B,EAAE0B,SAASgJ,WAAWvM,EAAEkF,WAAW5D,EAAEO,EAAE0B,SAASgJ,WAAW3M,GAAE,GAAIiC,EAAEiI,mBAAmBjI,EAAEsI,mBAAmB7I,EAAEtB,EAAE4E,YAAYtD,EAAEO,EAAE0B,SAASgJ,WAAWvM,EAAE4E,YAAYnB,EAAE5B,EAAE0B,SAASgJ,WAAW3M,GAAE,IAAKI,EAAEkF,WAAWzB,EAAE5B,EAAE0B,SAASgJ,WAAWvM,EAAE4E,YAAYtD,EAAEO,EAAE0B,SAASgJ,YAAYhG,EAAE1E,IAAIjC,EAAEA,GAAt7C,SAAWa,EAAElB,GAAG,IAAIyB,EAAEhB,EAAEkF,UAAU,GAAG,IAAIzE,EAAE,CAAC,IAAIoB,EAAEsI,iBAAiB,OAAM,EAAG,GAAG,IAAInJ,GAAGzB,EAAE,GAAGyB,GAAGa,EAAE4H,cAAc5H,EAAEyH,iBAAiB/J,EAAE,EAAE,OAAOsC,EAAE0B,SAASgI,iBAAiB,IAAIlL,EAAEL,EAAE4E,WAAW,GAAG,IAAIrF,EAAE,CAAC,IAAIsC,EAAEiI,iBAAiB,OAAM,EAAG,GAAG,IAAIzJ,GAAGI,EAAE,GAAGJ,GAAGwB,EAAEiD,aAAajD,EAAEgD,gBAAgBpE,EAAE,EAAE,OAAOoB,EAAE0B,SAASgI,iBAAiB,OAAM,EAAonChM,CAAE+B,EAAEmC,MAAMhD,EAAE+L,UAAU/L,EAAE+F,kBAAkB/F,EAAEgG,mBAAmB,IAAIzG,EAAE6B,EAAEgB,aAAQ,IAASa,OAAO+I,QAAQ5K,EAAE6E,MAAM3F,KAAKf,EAAE,QAAQR,QAAG,IAASkE,OAAOgJ,cAAc7K,EAAE6E,MAAM3F,KAAKf,EAAE,aAAaR,IAAImN,MAAM,SAASlM,GAAG,SAASoB,EAAEA,EAAEtC,GAAG,IAAIyB,EAAE6F,EAAE3B,UAAU7E,EAAEwG,EAAEjC,WAAWpF,EAAE0E,KAAK0I,IAAI/K,GAAG7B,EAAEkE,KAAK0I,IAAIrN,GAAG,GAAGS,EAAER,GAAG,GAAGD,EAAE,GAAGyB,IAAIP,EAAEgJ,cAAchJ,EAAE6I,iBAAiB/J,EAAE,GAAG,IAAIyB,EAAE,MAAM,CAAC6L,MAAMpM,EAAE8C,SAASuJ,iBAAiBC,QAAQ,IAAIrJ,OAAOsJ,cAAc,GAAGxN,EAAEQ,IAAI6B,EAAE,GAAGxB,IAAII,EAAEqE,aAAarE,EAAEoE,gBAAgBhD,EAAE,GAAG,IAAIxB,GAAG,MAAM,CAACwM,MAAMpM,EAAE8C,SAASuJ,iBAAiBC,SAAQ,GAAI,MAAM,CAACF,MAAK,EAAGE,SAAQ,GAAI,SAASxN,EAAEsC,EAAEtC,GAAGsH,EAAE3B,WAAW3F,EAAEsH,EAAEjC,YAAY/C,EAAE0E,EAAE9F,GAAG,SAASO,IAAIsD,GAAE,EAAG,SAASjE,IAAIiE,GAAE,EAAG,SAAS9E,EAAEiB,GAAG,OAAOA,EAAEwM,cAAcxM,EAAEwM,cAAc,GAAGxM,EAAE,SAAST,EAAES,GAAG,QAAQA,EAAEyM,aAAa,QAAQzM,EAAEyM,aAAa,IAAIzM,EAAE0M,WAAW1M,EAAEwM,eAAe,IAAIxM,EAAEwM,cAAc3E,WAAW7H,EAAEyM,aAAa,UAAUzM,EAAEyM,aAAazM,EAAEyM,cAAczM,EAAE2M,uBAAuB,SAAS9L,EAAEb,GAAG,GAAGT,EAAES,GAAG,CAAC6F,GAAE,EAAG,IAAIzE,EAAErC,EAAEiB,GAAGqD,EAAE4G,MAAM7I,EAAE6I,MAAM5G,EAAEyG,MAAM1I,EAAE0I,MAAM1K,GAAG,IAAIwN,MAAMC,UAAU,OAAOtJ,GAAGuJ,cAAcvJ,GAAGvD,EAAE+F,mBAAmB,SAAS/C,EAAEzC,GAAG,IAAIsF,GAAG7F,EAAE8C,SAASuJ,kBAAkBxL,EAAEN,IAAIsD,GAAGgC,GAAGtG,EAAEgB,GAAG,CAAC,IAAIX,EAAEb,EAAEwB,GAAGyC,EAAE,CAACiH,MAAMrK,EAAEqK,MAAMH,MAAMlK,EAAEkK,OAAO3K,EAAE6D,EAAEiH,MAAM5G,EAAE4G,MAAM7D,EAAEpD,EAAE8G,MAAMzG,EAAEyG,MAAMhL,EAAEK,EAAEiH,GAAG/C,EAAEL,EAAE,IAAIO,GAAG,IAAIqJ,MAAMC,UAAUjL,EAAE2B,EAAEnE,EAAEwC,EAAE,IAAIhB,EAAEoG,EAAE7H,EAAEyC,EAAEhB,EAAEqG,EAAEb,EAAExE,EAAExC,EAAEmE,GAAG,IAAIrE,EAAEkC,EAAEjC,EAAEiH,GAAG1D,EAAExD,EAAEkN,KAAKlF,EAAEhI,EAAEoN,QAAQ5J,GAAGnC,EAAEwF,kBAAkBmB,GAAG3G,EAAEyF,kBAAkB,SAAS7G,KAAK0E,GAAGgC,IAAIA,GAAE,EAAG7F,EAAE8C,SAASiK,cAAcD,cAAcvJ,GAAGA,EAAEyJ,aAAY,WAAWhN,EAAEiN,cAAcH,cAAcvJ,GAAG3C,EAAEoG,GAAGpG,EAAEqG,EAAExD,KAAK0I,IAAIvL,EAAEoG,GAAG,KAAKvD,KAAK0I,IAAIvL,EAAEqG,GAAG,IAAI6F,cAAcvJ,IAAIzE,EAAE,GAAG8B,EAAEoG,EAAE,GAAGpG,EAAEqG,GAAGrG,EAAEoG,GAAG,GAAGpG,EAAEqG,GAAG,IAAI6F,cAAcvJ,KAAI,MAAM,GAAGgF,GAAiBA,EAAoB,CAAC,IAAInC,EAAEpG,EAAEoC,QAAQiB,EAAE,GAAGjE,EAAE,EAAEwB,EAAE,GAAG2C,EAAE,KAAKM,GAAE,EAAGgC,GAAE,EAAG0C,GAAiBvI,EAAEiG,MAAM3F,KAAK2C,OAAO,aAAa1C,GAAGP,EAAEiG,MAAM3F,KAAK2C,OAAO,WAAWrD,GAAGI,EAAEiG,MAAM3F,KAAK8F,EAAE,aAAavF,GAAGb,EAAEiG,MAAM3F,KAAK8F,EAAE,YAAYpD,GAAGhD,EAAEiG,MAAM3F,KAAK8F,EAAE,WAAWjH,IAAIoJ,IAAsBtF,OAAOiK,cAAclN,EAAEiG,MAAM3F,KAAK2C,OAAO,cAAc1C,GAAGP,EAAEiG,MAAM3F,KAAK2C,OAAO,YAAYrD,GAAGI,EAAEiG,MAAM3F,KAAK8F,EAAE,cAAcvF,GAAGb,EAAEiG,MAAM3F,KAAK8F,EAAE,cAAcpD,GAAGhD,EAAEiG,MAAM3F,KAAK8F,EAAE,YAAYjH,IAAI8D,OAAOkK,iBAAiBnN,EAAEiG,MAAM3F,KAAK2C,OAAO,gBAAgB1C,GAAGP,EAAEiG,MAAM3F,KAAK2C,OAAO,cAAcrD,GAAGI,EAAEiG,MAAM3F,KAAK8F,EAAE,gBAAgBvF,GAAGb,EAAEiG,MAAM3F,KAAK8F,EAAE,gBAAgBpD,GAAGhD,EAAEiG,MAAM3F,KAAK8F,EAAE,cAAcjH,QAAQiO,EAAE,SAAS7M,EAAEX,GAAG,IAAIb,EAAEuC,KAAK,QAAG,IAAS1B,IAAIA,EAAE,IAAI,iBAAiBW,IAAIA,EAAEkB,SAASuJ,cAAczK,KAAKA,IAAIA,EAAE8M,SAAS,MAAM,IAAIxL,MAAM,0DAAka,IAAI,IAAItC,KAAhX+B,KAAKc,QAAQ7B,EAAEA,EAAE8B,UAAUM,IAAIzD,EAAEwH,MAAMpF,KAAKwB,SAAS,CAACqE,SAAS,CAAC,aAAa,aAAa,WAAW,QAAQ,SAASxD,mBAAmB,KAAKH,mBAAmB,KAAKT,mBAAmB,IAAIqG,oBAAoB,EAAEK,oBAAoB,EAAEN,iBAAgB,EAAGK,iBAAgB,EAAG6C,kBAAiB,EAAGU,aAAY,EAAGlB,kBAAiB,EAAGf,kBAAiB,EAAGgB,WAAW,GAAgBlM,EAAEb,EAAE+D,SAASvD,GAAGK,EAAEL,GAAG+B,KAAK8C,eAAe,KAAK9C,KAAKuH,gBAAgB,KAAKvH,KAAK+C,aAAa,KAAK/C,KAAK0H,cAAc,KAAK,IAAInI,EAAE,WAAW,OAAON,EAAE8B,UAAUM,IAAIzD,EAAEoD,MAAMwE,QAAQ9D,EAAE,WAAW,OAAOzC,EAAE8B,UAAUP,OAAO5C,EAAEoD,MAAMwE,QAAQxF,KAAK0C,MAAM,QAAQhE,EAAEO,GAAG+M,UAAUhM,KAAKiM,iBAAiB,WAAW,IAAmBnM,EAAfpB,EAAEO,EAAE4D,WAAkB,OAAO5D,EAAE4D,YAAY,EAAE/C,EAAEb,EAAE4D,WAAW,EAAE5D,EAAE4D,WAAWnE,EAAEoB,EAA5F,GAAiGE,KAAK4C,yBAAyB5C,KAAKiM,iBAAiBhN,EAAEwI,YAAYxI,EAAEqI,YAAY,EAAEtH,KAAK2E,MAAM,IAAI8B,EAAEzG,KAAK6E,cAAc5F,EAAE4F,eAAe1E,SAASH,KAAKsD,eAAe9F,EAAEI,EAAEkD,QAAQwE,KAAK,MAAMrG,EAAE2I,YAAY5H,KAAKsD,gBAAgBtD,KAAK+D,WAAWvG,EAAEI,EAAEkD,QAAQuE,MAAM,MAAMrF,KAAKsD,eAAesE,YAAY5H,KAAK+D,YAAY/D,KAAK+D,WAAWmI,aAAa,WAAW,GAAGlM,KAAK2E,MAAM3F,KAAKgB,KAAK+D,WAAW,QAAQxE,GAAGS,KAAK2E,MAAM3F,KAAKgB,KAAK+D,WAAW,OAAOrC,GAAG1B,KAAK+H,iBAAiB,KAAK/H,KAAKiE,gBAAgB,KAAKjE,KAAKgE,eAAe,KAAK,IAAInG,EAAEa,EAAEsB,KAAKsD,gBAAgBtD,KAAKkD,iBAAiBlB,SAASnE,EAAEoF,OAAO,IAAIkJ,MAAMnM,KAAKkD,mBAAmBlD,KAAKgD,yBAAwB,EAAGhD,KAAKqD,cAActB,EAAElE,EAAEuF,MAAMpD,KAAKgD,yBAAwB,EAAGhD,KAAKkE,iBAAiBnC,EAAElE,EAAEuO,iBAAiBrK,EAAElE,EAAEwO,kBAAkBvM,EAAEE,KAAKsD,eAAe,CAACgJ,QAAQ,UAAUtM,KAAKgI,iBAAiBjG,EAAElE,EAAE0O,YAAYxK,EAAElE,EAAE2O,aAAa1M,EAAEE,KAAKsD,eAAe,CAACgJ,QAAQ,KAAKtM,KAAKyC,WAAW,KAAKzC,KAAKiI,WAAW,KAAKjI,KAAK8D,eAAetG,EAAEI,EAAEkD,QAAQwE,KAAK,MAAMrG,EAAE2I,YAAY5H,KAAK8D,gBAAgB9D,KAAKmE,WAAW3G,EAAEI,EAAEkD,QAAQuE,MAAM,MAAMrF,KAAK8D,eAAe8D,YAAY5H,KAAKmE,YAAYnE,KAAKmE,WAAW+H,aAAa,WAAW,GAAGlM,KAAK2E,MAAM3F,KAAKgB,KAAKmE,WAAW,QAAQ5E,GAAGS,KAAK2E,MAAM3F,KAAKgB,KAAKmE,WAAW,OAAOzC,GAAG1B,KAAKoI,iBAAiB,KAAKpI,KAAKqE,iBAAiB,KAAKrE,KAAKoE,cAAc,KAAK,IAAIU,EAAEpG,EAAEsB,KAAK8D,gBAAgB9D,KAAK2D,gBAAgB3B,SAAS8C,EAAEpB,MAAM,IAAIyI,MAAMnM,KAAK2D,kBAAkB3D,KAAKyD,wBAAuB,EAAGzD,KAAK6D,eAAe9B,EAAE+C,EAAEnC,OAAO3C,KAAKyD,wBAAuB,EAAGzD,KAAK4D,qBAAqB5D,KAAK0C,MAAj3b,SAAW5C,GAAG,IAAItC,EAAEkB,EAAEoB,GAAG,OAAOiC,EAAEvE,EAAEgF,OAAOT,EAAEvE,EAAEiP,aAAa1K,EAAEvE,EAAEkP,cAAc3K,EAAEvE,EAAE4O,iBAAiBrK,EAAEvE,EAAE6O,kBAAgxb/M,CAAEU,KAAKmE,YAAY,KAAKnE,KAAKsE,iBAAiBvC,EAAE+C,EAAE6H,gBAAgB5K,EAAE+C,EAAE8H,mBAAmB9M,EAAEE,KAAK8D,eAAe,CAACwI,QAAQ,UAAUtM,KAAKqI,kBAAkBtG,EAAE+C,EAAE+H,WAAW9K,EAAE+C,EAAEgI,cAAchN,EAAEE,KAAK8D,eAAe,CAACwI,QAAQ,KAAKtM,KAAKwD,YAAY,KAAKxD,KAAKsI,WAAW,KAAKtI,KAAK+G,MAAM,CAACrB,EAAEzG,EAAE4D,YAAY,EAAE,QAAQ5D,EAAE4D,YAAY7C,KAAK+C,aAAa/C,KAAK8C,eAAe,MAAM,KAAK6C,EAAE1G,EAAEkE,WAAW,EAAE,QAAQlE,EAAEkE,WAAWnD,KAAK0H,cAAc1H,KAAKuH,gBAAgB,MAAM,MAAMvH,KAAKuB,SAAQ,EAAGvB,KAAKwB,SAASqE,SAASiB,SAAQ,SAASpI,GAAG,OAAO6J,EAAE7J,GAAGjB,MAAKuC,KAAK+M,cAAc9N,EAAEkE,UAAUnD,KAAKgN,eAAe/N,EAAE4D,WAAW7C,KAAK2E,MAAM3F,KAAKgB,KAAKc,QAAQ,UAAS,SAASpC,GAAG,OAAOjB,EAAEwP,SAASvO,MAAK8F,EAAExE,OAAO,OAAO8L,EAAE1M,UAAU8N,OAAO,WAAWlN,KAAKuB,UAAUvB,KAAK4C,yBAAyB5C,KAAKiM,iBAAiBjM,KAAKc,QAAQ2G,YAAYzH,KAAKc,QAAQwG,YAAY,EAAExH,EAAEE,KAAKsD,eAAe,CAACgJ,QAAQ,UAAUxM,EAAEE,KAAK8D,eAAe,CAACwI,QAAQ,UAAUtM,KAAKgI,iBAAiBjG,EAAErD,EAAEsB,KAAKsD,gBAAgBiJ,YAAYxK,EAAErD,EAAEsB,KAAKsD,gBAAgBkJ,aAAaxM,KAAKqI,kBAAkBtG,EAAErD,EAAEsB,KAAK8D,gBAAgB+I,WAAW9K,EAAErD,EAAEsB,KAAK8D,gBAAgBgJ,cAAchN,EAAEE,KAAKsD,eAAe,CAACgJ,QAAQ,SAASxM,EAAEE,KAAK8D,eAAe,CAACwI,QAAQ,SAAS9H,EAAExE,MAAM2F,EAAE3F,KAAK,MAAM,GAAE,GAAG,GAAI2F,EAAE3F,KAAK,OAAO,GAAE,GAAG,GAAIF,EAAEE,KAAKsD,eAAe,CAACgJ,QAAQ,KAAKxM,EAAEE,KAAK8D,eAAe,CAACwI,QAAQ,OAAOR,EAAE1M,UAAU6N,SAAS,SAASvO,GAAGsB,KAAKuB,UAAUiD,EAAExE,MAAM2F,EAAE3F,KAAK,MAAMA,KAAKc,QAAQqC,UAAUnD,KAAK+M,eAAepH,EAAE3F,KAAK,OAAOA,KAAKc,QAAQ+B,WAAW7C,KAAKgN,gBAAgBhN,KAAK+M,cAAc/M,KAAKc,QAAQqC,UAAUnD,KAAKgN,eAAehN,KAAKc,QAAQ+B,aAAaiJ,EAAE1M,UAAU+N,QAAQ,WAAWnN,KAAKuB,UAAUvB,KAAK2E,MAAMyB,YAAY9H,EAAE0B,KAAK+D,YAAYzF,EAAE0B,KAAKmE,YAAY7F,EAAE0B,KAAKsD,gBAAgBhF,EAAE0B,KAAK8D,gBAAgB9D,KAAKoN,kBAAkBpN,KAAKc,QAAQ,KAAKd,KAAK+D,WAAW,KAAK/D,KAAKmE,WAAW,KAAKnE,KAAKsD,eAAe,KAAKtD,KAAK8D,eAAe,KAAK9D,KAAKuB,SAAQ,IAAKuK,EAAE1M,UAAUgO,gBAAgB,WAAWpN,KAAKc,QAAQT,UAAUL,KAAKc,QAAQT,UAAUgN,MAAM,KAAKzM,QAAO,SAASlC,GAAG,OAAOA,EAAEqL,MAAM,oBAAmBD,KAAK,MAAMgC,M,cCoDnhjB,IAAUwB,EAqsBLC,EArsBKD,EA0vBPE,OArDED,EAAU,CACbE,OAAQ,CACPC,IAAK,CACJC,MAAM,EACNC,OAAQ,OACRC,YAAa,EACbC,WAAY,IACZC,KAAM,EACNC,OAAQ,CACPrL,KAAM,EACNS,IAAK,GACL6K,MAAO,KAERC,OAAQ,CACP9K,IAAK,EACLT,KAAM,QAEPwL,OAAQ,CACPC,MAAO,OACP5L,MAAO,GAER6L,MAAO,CACNV,KAAM,OACNW,UAAW,SAASD,EAAOE,GAC1B,MAAO,qEAAuEA,EAAMH,MAAQ,MAAQC,EAAQ,QAAUlM,KAAKqM,MAAMD,EAAME,SAAW,WAEnJb,OAAQ,EACRc,WAAY,CACXN,MAAO,KACPO,QAAS,GAEVC,UAAW,GAEZC,QAAS,CACRD,WAAY,EACZR,MAAO,KACPC,MAAO,SAERS,UAAW,CAEVH,QAAS,OAMbrB,EAAEyB,KAAKC,QAAQ/I,KAAK,CACnBgJ,KA1uBD,SAAcF,GAEb,IAAIG,EAAS,KACZ5E,EAAS,KACTiD,EAAU,KACV4B,EAAY,KACZC,EAAa,KACbC,EAAY,KACZC,GAAY,EACZC,EAAM,KAIHC,EAAa,GAwEjB,SAASC,EAAkBV,EAAMtB,EAAQiC,GACnCJ,IACJA,GAAY,EACZJ,EAASH,EAAKY,YACdrF,EAASgD,EAAE4B,GAAQU,SACnBrC,EAAUwB,EAAKc,aACfd,EAAKe,QAIP,SAAiBC,GAUhB,IARA,IAAIC,EAAQ,EACXC,EAAW,EACXC,EAAc,EACd9B,EAAQb,EAAQE,OAAOC,IAAImB,QAAQT,MACnC+B,EAAU,GAIF3S,EAAI,EAAGA,EAAIuS,EAAKxJ,SAAU/I,EAAG,CAErC,IAAIiB,EAAQsR,EAAKvS,GAAGuS,KAShBzC,EAAE8C,QAAQ3R,IAA0B,GAAhBA,EAAM8H,SAC1B9H,EAAQA,EAAM,IAGd6O,EAAE8C,QAAQ3R,IAER0N,MAAMkE,WAAW5R,EAAM,MAAQ6R,SAAS7R,EAAM,IAClDA,EAAM,IAAMA,EAAM,GAElBA,EAAM,GAAK,EAGZA,GADW0N,MAAMkE,WAAW5R,KAAW6R,SAAS7R,GACxC,CAAC,GAAIA,GAEL,CAAC,EAAG,GAGbsR,EAAKvS,GAAGuS,KAAO,CAACtR,GAKjB,IAASjB,EAAI,EAAGA,EAAIuS,EAAKxJ,SAAU/I,EAClCwS,GAASD,EAAKvS,GAAGuS,KAAK,GAAG,GAM1B,IAASvS,EAAI,EAAGA,EAAIuS,EAAKxJ,SAAU/I,GAC9BiB,EAAQsR,EAAKvS,GAAGuS,KAAK,GAAG,IAChBC,GAASzC,EAAQE,OAAOC,IAAImB,QAAQD,YAC/CqB,GAAYxR,EACZyR,IACK9B,IACJA,EAAQ2B,EAAKvS,GAAG4Q,QAKnB,IAAS5Q,EAAI,EAAGA,EAAIuS,EAAKxJ,SAAU/I,EAC9BiB,EAAQsR,EAAKvS,GAAGuS,KAAK,GAAG,IACxBG,EAAc,GAAKzR,EAAQuR,EAAQzC,EAAQE,OAAOC,IAAImB,QAAQD,YACjEuB,EAAQlK,KACPqH,EAAEiD,OAAOR,EAAKvS,GAAI,CAEjBuS,KAAM,CAAC,CAAC,EAAGtR,IACX2P,MAAO2B,EAAKvS,GAAG4Q,MACfC,MAAO0B,EAAKvS,GAAG6Q,MACfmC,MAAO/R,EAAQ0D,KAAKsO,GAAK,EAAIT,EAC7BvB,QAAShQ,GAASuR,EAAQ,QAgB9B,OAVIE,EAAc,GACjBC,EAAQlK,KAAK,CACZ8J,KAAM,CAAC,CAAC,EAAGE,IACX7B,MAAOA,EACPC,MAAOd,EAAQE,OAAOC,IAAImB,QAAQR,MAClCmC,MAAOP,EAAW9N,KAAKsO,GAAK,EAAIT,EAChCvB,QAASwB,GAAYD,EAAQ,OAIxBG,EA3FOtB,CAAQE,EAAK2B,aA8F5B,SAASC,EAAK5B,EAAM6B,GAEnB,GAAKtG,EAAL,CAIA,IAAIuG,EAAc9B,EAAK+B,iBAAiBtO,QACvCuO,EAAehC,EAAK+B,iBAAiBvN,SACrCyN,EAAc1G,EAAOzJ,WAAWD,OAAO,WAAWC,WAAW2B,SAAW,EAEzE+M,EAAMqB,EAuBNtB,GAAY,EAIZH,EAAahN,KAAKG,IAAIuO,EAAaE,EAAexD,EAAQE,OAAOC,IAAIK,MAAQ,EAC7EsB,EAAY0B,EAAe,EAAIxD,EAAQE,OAAOC,IAAIQ,OAAO9K,IACzDgM,EAAayB,EAAc,EAEW,QAAlCtD,EAAQE,OAAOC,IAAIQ,OAAOvL,MACzB4K,EAAQ0D,OAAOC,SAASnH,MAAM,KACjCqF,GAAc4B,EAAc,EAE5B5B,GAAc4B,EAAc,EAEzB5B,EAAaD,EAChBC,EAAaD,EACHC,EAAayB,EAAc1B,IACrCC,EAAayB,EAAc1B,IAG5BC,GAAc7B,EAAQE,OAAOC,IAAIQ,OAAOvL,KAGzC,IAAIwO,EAASpC,EAAK2B,UACjBU,EAAW,EAKZ,GACKA,EAAW,IACdjC,GA3PgB,KA6PjBiC,GAAY,EACZC,IACI9D,EAAQE,OAAOC,IAAIK,MAAQ,IAC9BuD,WAEQC,KAAaH,EAtQH,IAwQhBA,GAxQgB,KAyQnBC,IACA/G,EAAOkH,QAAQ,oFAGZzC,EAAK0C,WAAa1C,EAAK2C,eAC1B3C,EAAK0C,UAAUN,GACfpC,EAAK2C,gBAKN,SAASL,IACR9B,EAAIoC,UAAU,EAAG,EAAGd,EAAaE,GACjCzG,EAAOzJ,WAAWD,OAAO,kCAAkCJ,SAG5D,SAAS8Q,IAER,IAAIM,EAAarE,EAAQE,OAAOC,IAAIM,OAAOrL,KACvCkP,EAAYtE,EAAQE,OAAOC,IAAIM,OAAO5K,IAEtC6K,EAAQV,EAAQE,OAAOC,IAAIM,OAAOC,MAClCL,EAASL,EAAQE,OAAOC,IAAIE,OAAS,EAAIL,EAAQE,OAAOC,IAAIE,OAASuB,EAAY5B,EAAQE,OAAOC,IAAIE,OAExG,KAAIA,GAAUiD,EAAc,EAAIe,GAAchE,EAASL,EAAQE,OAAOC,IAAIK,MAAQgD,EAAe,EAAIc,GAAajE,GAJvG,IAIX,CAIA2B,EAAIuC,OACJvC,EAAIwC,UAAUH,EAAWC,GACzBtC,EAAIyC,YAAc/D,EAClBsB,EAAI0C,UAAY,OAIhB1C,EAAIwC,UAAU3C,EAAWC,GACzBE,EAAI2C,MAAM,EAAG3E,EAAQE,OAAOC,IAAIK,MAIhC,IAAK,IAAIvQ,EAAI,EAAGA,GApBL,GAoBgBA,IAC1B+R,EAAI4C,YACJ5C,EAAI6C,IAAI,EAAG,EAAGxE,EAAQ,EAAa,EAAVzL,KAAKsO,IAAQ,GACtClB,EAAI8C,OACJzE,GAAUpQ,EAGX+R,EAAI+C,WAGL,SAASf,IAER,IAAIzD,EAAa3L,KAAKsO,GAAKlD,EAAQE,OAAOC,IAAII,WAC1CF,EAASL,EAAQE,OAAOC,IAAIE,OAAS,EAAIL,EAAQE,OAAOC,IAAIE,OAASuB,EAAY5B,EAAQE,OAAOC,IAAIE,OAIxG2B,EAAIuC,OACJvC,EAAIwC,UAAU3C,EAAWC,GACzBE,EAAI2C,MAAM,EAAG3E,EAAQE,OAAOC,IAAIK,MAKhCwB,EAAIuC,OAEJ,IADA,IAAIS,EAAezE,EACVtQ,EAAI,EAAGA,EAAI2T,EAAO5K,SAAU/I,EACpC2T,EAAO3T,GAAGsQ,WAAayE,EACvBC,EAAUrB,EAAO3T,GAAGgT,MAAOW,EAAO3T,GAAG4Q,OAAO,GAM7C,GAJAmB,EAAI+C,UAIA/E,EAAQE,OAAOC,IAAIS,OAAO3L,MAAQ,EAAG,CAIxC,IAHA+M,EAAIuC,OACJvC,EAAIkD,UAAYlF,EAAQE,OAAOC,IAAIS,OAAO3L,MAC1C+P,EAAezE,EACNtQ,EAAI,EAAGA,EAAI2T,EAAO5K,SAAU/I,EACpCgV,EAAUrB,EAAO3T,GAAGgT,MAAOjD,EAAQE,OAAOC,IAAIS,OAAOC,OAAO,GAE7DmB,EAAI+C,UAWL,OANAI,EAAcnD,GAEdA,EAAI+C,WAIA/E,EAAQE,OAAOC,IAAIW,MAAMV,MAoC7B,WAKC,IAHA,IAAI4E,EAAezE,EACfF,EAASL,EAAQE,OAAOC,IAAIW,MAAMT,OAAS,EAAIL,EAAQE,OAAOC,IAAIW,MAAMT,OAASuB,EAAY5B,EAAQE,OAAOC,IAAIW,MAAMT,OAEjHpQ,EAAI,EAAGA,EAAI2T,EAAO5K,SAAU/I,EAAG,CACvC,GAAI2T,EAAO3T,GAAGiR,SAAgD,IAArClB,EAAQE,OAAOC,IAAIW,MAAMO,YAC5C+D,EAAUxB,EAAO3T,GAAI+U,EAAc/U,GACvC,OAAO,EAGT+U,GAAgBpB,EAAO3T,GAAGgT,MAG3B,OAAO,EAEP,SAASmC,EAAUpE,EAAOT,EAAY8E,GAErC,GAAwB,GAApBrE,EAAMwB,KAAK,GAAG,GACjB,OAAO,EAKR,IAAwC8C,EAApCC,EAAKvF,EAAQ0D,OAAO8B,eAAsBC,EAAMzF,EAAQE,OAAOC,IAAIW,MAAMC,UAG5EuE,EADGC,EACIA,EAAGvE,EAAMF,MAAOE,GAEhBA,EAAMF,MAGV2E,IACHH,EAAOG,EAAIH,EAAMtE,IAGlB,IAAI0E,GAAcnF,EAAaS,EAAMiC,MAAS1C,GAAc,EACxDpI,EAAI0J,EAAajN,KAAKqM,MAAMrM,KAAK+Q,IAAID,GAAarF,GAClDjI,EAAI0J,EAAYlN,KAAKqM,MAAMrM,KAAKgR,IAAIF,GAAarF,GAAUL,EAAQE,OAAOC,IAAIK,KAE9EqF,EAAO,sCAAwCR,EAAQ,kCAAoCjN,EAAI,WAAaD,EAAI,QAAUmN,EAAO,UACrIvI,EAAO+I,OAAOD,GAEd,IAAI/E,EAAQ/D,EAAOzJ,SAAS,YAAc+R,GACtCU,EAAY3N,EAAI0I,EAAM9K,SAAW,EACjCgQ,EAAa7N,EAAI2I,EAAM7L,QAAU,EAOrC,GALA6L,EAAMmF,IAAI,MAAOF,GACjBjF,EAAMmF,IAAI,OAAQD,GAId,EAAID,EAAW,GAAK,EAAIC,EAAY,GAAKxC,GAAgBuC,EAAWjF,EAAM9K,UAAY,GAAKsN,GAAe0C,EAAYlF,EAAM7L,SAAW,EAC1I,OAAO,EAGR,GAAmD,GAA/C+K,EAAQE,OAAOC,IAAIW,MAAMK,WAAWC,QAAc,CAIrD,IAAI9Q,EAAI0P,EAAQE,OAAOC,IAAIW,MAAMK,WAAWN,MAEnC,MAALvQ,IACHA,EAAI0Q,EAAMH,OAGX,IAAIqF,EAAM,OAASH,EAAW,WAAaC,EAAY,MACvDjG,EAAE,kEAAoEe,EAAM7L,QAAU,aAAe6L,EAAM9K,SAAW,MAAQkQ,EAAM,oBAAsB5V,EAAI,aAC5J2V,IAAI,UAAWjG,EAAQE,OAAOC,IAAIW,MAAMK,WAAWC,SACnD+E,aAAarF,GAGhB,OAAO,GA3GDsF,GAGR,SAASnB,EAAUhC,EAAOpC,EAAOiE,GAE5B7B,GAAS,GAAKrE,MAAMqE,KAIpB6B,EACH9C,EAAI0C,UAAY7D,GAEhBmB,EAAIqE,YAAcxF,EAClBmB,EAAIsE,SAAW,SAGhBtE,EAAI4C,YACAhQ,KAAK0I,IAAI2F,EAAkB,EAAVrO,KAAKsO,IAAU,MACnClB,EAAIuE,OAAO,EAAG,GAIfvE,EAAI6C,IAAI,EAAG,EAAGxE,EAAO2E,EAAcA,EAAe/B,EAAQ,GAAG,GAC7DjB,EAAI6C,IAAI,EAAG,EAAGxE,EAAO2E,EAAe/B,EAAQ,EAAG+B,EAAe/B,GAAO,GACrEjB,EAAIwE,YAEJxB,GAAgB/B,EAEZ6B,EACH9C,EAAI8C,OAEJ9C,EAAIpB,YAoFR,SAASuE,EAAcsB,GACtB,GAAIzG,EAAQE,OAAOC,IAAIG,YAAc,EAAG,CAIvCmG,EAAMlC,OACN,IAAIjE,EAAcN,EAAQE,OAAOC,IAAIG,YAAc,EAAIN,EAAQE,OAAOC,IAAIG,YAAcsB,EAAY5B,EAAQE,OAAOC,IAAIG,YACvHmG,EAAMC,yBAA2B,kBACjCD,EAAM7B,YACN6B,EAAM/B,UAAY1E,EAAQE,OAAOC,IAAIS,OAAOC,MAC5C4F,EAAM5B,IAAI,EAAG,EAAGvE,EAAa,EAAa,EAAV1L,KAAKsO,IAAQ,GAC7CuD,EAAM3B,OACN2B,EAAMD,YACNC,EAAM1B,UAIN0B,EAAMlC,OACNkC,EAAM7B,YACN6B,EAAMJ,YAAcrG,EAAQE,OAAOC,IAAIS,OAAOC,MAC9C4F,EAAM5B,IAAI,EAAG,EAAGvE,EAAa,EAAa,EAAV1L,KAAKsO,IAAQ,GAC7CuD,EAAM7F,SACN6F,EAAMD,YACNC,EAAM1B,WAQR,SAAS4B,EAAcC,EAAMC,GAC5B,IAAI,IAAIvW,GAAI,EAAOL,GAAK,EAAGC,EAAI0W,EAAK5N,OAAQ8N,EAAI5W,EAAI,IAAKD,EAAIC,EAAG4W,EAAI7W,GACjE2W,EAAK3W,GAAG,IAAM4W,EAAG,IAAMA,EAAG,GAAKD,EAAKE,GAAG,IAAQF,EAAKE,GAAG,IAAMD,EAAG,IAAMA,EAAG,GAAID,EAAK3W,GAAG,KACnF4W,EAAG,IAAMD,EAAKE,GAAG,GAAKF,EAAK3W,GAAG,KAAO4W,EAAG,GAAKD,EAAK3W,GAAG,KAAO2W,EAAKE,GAAG,GAAKF,EAAK3W,GAAG,IAAM2W,EAAK3W,GAAG,KAC/FK,GAAKA,GACV,OAAOA,EAyER,SAASyW,EAAYxU,GACpByU,EAAuB,YAAazU,GAGrC,SAAS0U,EAAQ1U,GAChByU,EAAuB,YAAazU,GAKrC,SAASyU,EAAuBE,EAAW3U,GAE1C,IAAIoO,EAASa,EAAKb,SAGdwG,EArFL,SAAyBC,EAAQC,GAOhC,IALA,IAGClP,EAAGC,EAHAwL,EAASpC,EAAK2B,UACjBnD,EAAUwB,EAAKc,aACfjC,EAASL,EAAQE,OAAOC,IAAIE,OAAS,EAAIL,EAAQE,OAAOC,IAAIE,OAASuB,EAAY5B,EAAQE,OAAOC,IAAIE,OAG5FpQ,EAAI,EAAGA,EAAI2T,EAAO5K,SAAU/I,EAAG,CAEvC,IAAI+B,EAAI4R,EAAO3T,GAEf,GAAI+B,EAAEmO,IAAIC,KAAM,CAYf,GAVA4B,EAAIuC,OACJvC,EAAI4C,YACJ5C,EAAIuE,OAAO,EAAG,GAEdvE,EAAI6C,IAAI,EAAG,EAAGxE,EAAQrO,EAAEuO,WAAYvO,EAAEuO,WAAavO,EAAEiR,MAAQ,GAAG,GAChEjB,EAAI6C,IAAI,EAAG,EAAGxE,EAAQrO,EAAEuO,WAAavO,EAAEiR,MAAQ,EAAGjR,EAAEuO,WAAavO,EAAEiR,OAAO,GAC1EjB,EAAIwE,YACJrO,EAAIiP,EAASvF,EACbzJ,EAAIiP,EAASvF,EAETE,EAAIsF,eACP,GAAItF,EAAIsF,cAAcF,EAASvF,EAAYwF,EAASvF,GAEnD,OADAE,EAAI+C,UACG,CACNwC,UAAW,CAACvV,EAAEkP,QAASlP,EAAEwQ,MACzBgF,UAAW,EACXtH,OAAQlO,EACRyV,YAAaxX,QAsBf,GAAI0W,EALO,CAAC,CAAC,EAAG,GAAI,CAVVtG,EAASzL,KAAK+Q,IAAI3T,EAAEuO,YACvBF,EAASzL,KAAKgR,IAAI5T,EAAEuO,aASK,CARzBF,EAASzL,KAAK+Q,IAAI3T,EAAEuO,WAAavO,EAAEiR,MAAQ,GAC3C5C,EAASzL,KAAKgR,IAAI5T,EAAEuO,WAAavO,EAAEiR,MAAQ,IAON,CANrC5C,EAASzL,KAAK+Q,IAAI3T,EAAEuO,WAAavO,EAAEiR,MAAQ,GAC3C5C,EAASzL,KAAKgR,IAAI5T,EAAEuO,WAAavO,EAAEiR,MAAQ,IAKM,CAJjD5C,EAASzL,KAAK+Q,IAAI3T,EAAEuO,WAAavO,EAAEiR,MAAQ,KAC3C5C,EAASzL,KAAKgR,IAAI5T,EAAEuO,WAAavO,EAAEiR,MAAQ,MAGkB,CAF7D5C,EAASzL,KAAK+Q,IAAI3T,EAAEuO,WAAavO,EAAEiR,OACnC5C,EAASzL,KAAKgR,IAAI5T,EAAEuO,WAAavO,EAAEiR,SAE9B,CAAC9K,EAAGC,IAMf,OADA4J,EAAI+C,UACG,CACNwC,UAAW,CAACvV,EAAEkP,QAASlP,EAAEwQ,MACzBgF,UAAW,EACXtH,OAAQlO,EACRyV,YAAaxX,GAKhB+R,EAAI+C,WAIN,OAAO,KAkBI2C,CAFGjT,SAASlC,EAAE6I,MAAQuF,EAAOvL,MACzBX,SAASlC,EAAE0I,MAAQ0F,EAAO9K,MAGzC,GAAImK,EAAQ2H,KAAKC,cAIhB,IAAK,IAAI3X,EAAI,EAAGA,EAAIgS,EAAWjJ,SAAU/I,EAAG,CAC3C,IAAIsH,EAAI0K,EAAWhS,GACfsH,EAAEsQ,MAAQX,GAAeC,GAAQ5P,EAAE2I,QAAUiH,EAAKjH,QACrD4H,EAAYvQ,EAAE2I,QAObiH,GAUL,SAAmBnV,EAAG6V,GAKrB,IAAI5X,EAAI8X,EAAiB/V,IAEf,GAAN/B,GACHgS,EAAWvJ,KAAK,CAAEwH,OAAQlO,EAAG6V,KAAMA,IACnCrG,EAAKwG,wBACMH,IACX5F,EAAWhS,GAAG4X,MAAO,GApBrBtG,CAAU4F,EAAKjH,OAAQgH,GAKxB,IAAIhB,EAAM,CAAE9K,MAAO7I,EAAE6I,MAAOH,MAAO1I,EAAE0I,OACrC8B,EAAOkL,QAAQf,EAAW,CAAChB,EAAKiB,IAkBjC,SAASW,EAAY9V,GACX,MAALA,IACHiQ,EAAa,GACbT,EAAKwG,wBAON,IAAI/X,EAAI8X,EAAiB/V,IAEf,GAAN/B,IACHgS,EAAW5I,OAAOpJ,EAAG,GACrBuR,EAAKwG,wBAIP,SAASD,EAAiB/V,GACzB,IAAK,IAAI/B,EAAI,EAAGA,EAAIgS,EAAWjJ,SAAU/I,EAExC,GADQgS,EAAWhS,GACbiQ,QAAUlO,EACf,OAAO/B,EAET,OAAQ,EA/nBTuR,EAAK0G,MAAMC,eAAezP,MAAK,SAAS8I,EAAMxB,GACzCA,EAAQE,OAAOC,IAAIC,OAEtBJ,EAAQ2H,KAAKvH,MAAO,EAIiB,QAAjCJ,EAAQE,OAAOC,IAAIW,MAAMV,OACxBJ,EAAQ0D,OAAOtD,KAClBJ,EAAQE,OAAOC,IAAIW,MAAMV,MAAO,EAEhCJ,EAAQE,OAAOC,IAAIW,MAAMV,MAAO,GAMD,QAA7BJ,EAAQE,OAAOC,IAAIE,SAClBL,EAAQE,OAAOC,IAAIW,MAAMV,KAC5BJ,EAAQE,OAAOC,IAAIE,OAAS,EAAE,EAE9BL,EAAQE,OAAOC,IAAIE,OAAS,GAM1BL,EAAQE,OAAOC,IAAIK,KAAO,EAC7BR,EAAQE,OAAOC,IAAIK,KAAO,EAChBR,EAAQE,OAAOC,IAAIK,KAAO,IACpCR,EAAQE,OAAOC,IAAIK,KAAO,OAK7BgB,EAAK0G,MAAME,WAAW1P,MAAK,SAAS8I,EAAM6G,GACzC,IAAIrI,EAAUwB,EAAKc,aACftC,EAAQE,OAAOC,IAAIC,OAClBJ,EAAQ2H,KAAKW,WAChBD,EAAYhR,OAAO,aAAakR,UAAUxB,GAEvC/G,EAAQ2H,KAAKa,WAChBH,EAAYhR,OAAO,SAASoR,MAAMxB,OAKrCzF,EAAK0G,MAAMhG,kBAAkBxJ,MAAK,SAAS8I,EAAMtB,EAAQsC,EAAML,GAChDX,EAAKc,aACPpC,OAAOC,IAAIC,MACtB8B,EAAkBV,MAIpBA,EAAK0G,MAAMQ,YAAYhQ,MAAK,SAAS8I,EAAMmH,GAC5BnH,EAAKc,aACPpC,OAAOC,IAAIC,MA0kBxB,SAAqBoB,EAAMmH,GAE1B,IAgBuBzI,EAhBnBF,EAAUwB,EAAKc,aAEfjC,EAASL,EAAQE,OAAOC,IAAIE,OAAS,EAAIL,EAAQE,OAAOC,IAAIE,OAASuB,EAAY5B,EAAQE,OAAOC,IAAIE,OAExGsI,EAAKpE,OACLoE,EAAKnE,UAAU3C,EAAYC,GAC3B6G,EAAKhE,MAAM,EAAG3E,EAAQE,OAAOC,IAAIK,MAEjC,IAAK,IAAIvQ,EAAI,EAAGA,EAAIgS,EAAWjJ,SAAU/I,GAQlBiQ,EAPR+B,EAAWhS,GAAGiQ,QASjB+C,OAAS,GAAKrE,MAAMsB,EAAO+C,SAKtC0F,EAAKjE,UAAY,uBAAyB1E,EAAQE,OAAOC,IAAIoB,UAAUH,QAAU,IACjFuH,EAAK/D,YACDhQ,KAAK0I,IAAI4C,EAAO+C,MAAkB,EAAVrO,KAAKsO,IAAU,MAC1CyF,EAAKpC,OAAO,EAAG,GAEhBoC,EAAK9D,IAAI,EAAG,EAAGxE,EAAQH,EAAOK,WAAYL,EAAOK,WAAaL,EAAO+C,MAAQ,GAAG,GAChF0F,EAAK9D,IAAI,EAAG,EAAGxE,EAAQH,EAAOK,WAAaL,EAAO+C,MAAQ,EAAG/C,EAAOK,WAAaL,EAAO+C,OAAO,GAC/F0F,EAAKnC,YACLmC,EAAK7D,QAnBNK,EAAcwD,GAEdA,EAAK5D,UAzlBJ2D,CAAYlH,EAAMmH,MAIpBnH,EAAK0G,MAAM9E,KAAK1K,MAAK,SAAS8I,EAAM6B,GACrB7B,EAAKc,aACPpC,OAAOC,IAAIC,MACtBgD,EAAK5B,EAAM6B,OA0pBbrD,QAASA,EACTxP,KAAM,MACNoY,QAAS,S,eCtyBX,SAAU7I,GAaT,SAAS8I,EAAYnX,EAAGoX,GACvB,OAAOA,EAAOlU,KAAKmU,MAAMrX,EAAIoX,GAM9B,SAASE,EAAWzY,EAAG0Y,EAAKC,EAAYC,GAEvC,GAAyB,mBAAd5Y,EAAE6Y,SACZ,OAAO7Y,EAAE6Y,SAASH,GAGnB,IAmBII,EAnBAC,EAAU,SAAS5X,EAAG6X,GAGzB,OADAA,EAAM,IAAa,MAAPA,EAAc,IAAMA,GACb,IAFnB7X,EAAI,GAAKA,GAEAsH,OAAcuQ,EAAM7X,EAAIA,GAG9BX,EAAI,GACJyY,GAAS,EACTC,EAAQlZ,EAAEmZ,WACVC,EAAOF,EAAQ,GAED,MAAdP,IACHA,EAAa,CAAC,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,QAG5E,MAAZC,IACHA,EAAW,CAAC,MAAO,MAAO,MAAO,MAAO,MAAO,MAAO,QAMtDE,EADGI,EAAQ,GACDA,EAAQ,GACC,GAATA,EACA,GAEAA,EAGX,IAAK,IAAIxZ,EAAI,EAAGA,EAAIgZ,EAAIjQ,SAAU/I,EAAG,CAEpC,IAAIK,EAAI2Y,EAAIW,OAAO3Z,GAEnB,GAAIuZ,EAAQ,CACX,OAAQlZ,GACP,IAAK,IAAKA,EAAI,GAAK6Y,EAAS5Y,EAAEsZ,UAAW,MACzC,IAAK,IAAKvZ,EAAI,GAAK4Y,EAAW3Y,EAAEuZ,YAAa,MAC7C,IAAK,IAAKxZ,EAAIgZ,EAAQ/Y,EAAEwZ,WAAY,MACpC,IAAK,IAAKzZ,EAAIgZ,EAAQ/Y,EAAEwZ,UAAW,KAAM,MACzC,IAAK,IACL,IAAK,IAAKzZ,EAAIgZ,EAAQG,GAAQ,MAC9B,IAAK,IAAKnZ,EAAIgZ,EAAQD,GAAU,MAChC,IAAK,IAAK/Y,EAAIgZ,EAAQD,EAAS,KAAM,MACrC,IAAK,IAAK/Y,EAAIgZ,EAAQ/Y,EAAEuZ,WAAa,GAAI,MACzC,IAAK,IAAKxZ,EAAIgZ,EAAQ/Y,EAAEyZ,cAAe,MAEvC,IAAK,IACJ1Z,EAAI,IAAMsE,KAAKmU,MAAMxY,EAAEuZ,WAAa,GAAK,GAAI,MAC9C,IAAK,IAAKxZ,EAAIgZ,EAAQ/Y,EAAE0Z,cAAe,MACvC,IAAK,IAAK3Z,EAAIgZ,EAAQ/Y,EAAE2Z,cAAgB,KAAM,MAC9C,IAAK,IAAK5Z,EAAI,GAAKC,EAAE2Z,cAAe,MACpC,IAAK,IAAK5Z,EAAKqZ,EAAc,KAAc,KAAO,MAClD,IAAK,IAAKrZ,EAAKqZ,EAAc,KAAc,KAAO,MAClD,IAAK,IAAKrZ,EAAI,GAAKC,EAAEsZ,SAEtB9Y,EAAE2H,KAAKpI,GACPkZ,GAAS,MAEA,KAALlZ,EACHkZ,GAAS,EAETzY,EAAE2H,KAAKpI,GAKV,OAAOS,EAAEwL,KAAK,IAQf,SAAS4N,EAAe5Z,GAEvB,SAAS6Z,EAAeC,EAAWC,EAAcC,EAAWC,GAC3DH,EAAUC,GAAgB,WACzB,OAAOC,EAAUC,GAAcC,MAAMF,EAAWG,YAIlD,IAAIC,EAAM,CACTC,KAAMra,GAKWsa,MAAdta,EAAE6Y,UACLgB,EAAeO,EAAK,WAAYpa,EAAG,YAGpC6Z,EAAeO,EAAK,UAAWpa,EAAG,WAClC6Z,EAAeO,EAAK,UAAWpa,EAAG,WAIlC,IAFA,IAAIua,EAAQ,CAAC,OAAQ,MAAO,WAAY,QAAS,eAAgB,UAAW,QAAS,WAE5E/Y,EAAI,EAAGA,EAAI+Y,EAAM9R,OAAQjH,IACjCqY,EAAeO,EAAK,MAAQG,EAAM/Y,GAAIxB,EAAG,SAAWua,EAAM/Y,IAC1DqY,EAAeO,EAAK,MAAQG,EAAM/Y,GAAIxB,EAAG,SAAWua,EAAM/Y,IAG3D,OAAO4Y,EAMR,SAASI,EAAcC,EAAIC,GAC1B,GAAqB,WAAjBA,EAAKC,SACR,OAAO,IAAInN,KAAKiN,GACV,GAAKC,EAAKC,UAA6B,OAAjBD,EAAKC,SAE3B,IAAyB,oBAAdC,iBAAuD,IAAnBA,WAAWpN,KAAqB,CACrF,IAAIxN,EAAI,IAAI4a,WAAWpN,KAKvB,OAFAxN,EAAE6a,YAAYH,EAAKC,UACnB3a,EAAE8a,QAAQL,GACHza,EAEP,OAAO4Z,EAAe,IAAIpM,KAAKiN,IAT/B,OAAOb,EAAe,IAAIpM,KAAKiN,IAejC,IAAIM,EAAe,CAClB,OAAU,IACV,OAAU,IACV,KAAQ,KACR,IAAO,MACP,MAAS,OACT,QAAW,OACX,KAAQ,SAAqB,GAAK,KAM/BC,EAAW,CACd,CAAC,EAAG,UAAW,CAAC,EAAG,UAAW,CAAC,EAAG,UAAW,CAAC,GAAI,UAClD,CAAC,GAAI,UACL,CAAC,EAAG,UAAW,CAAC,EAAG,UAAW,CAAC,EAAG,UAAW,CAAC,GAAI,UAClD,CAAC,GAAI,UACL,CAAC,EAAG,QAAS,CAAC,EAAG,QAAS,CAAC,EAAG,QAC9B,CAAC,EAAG,QAAS,CAAC,GAAI,QAClB,CAAC,EAAG,OAAQ,CAAC,EAAG,OAAQ,CAAC,EAAG,OAC5B,CAAC,IAAM,SAAU,CAAC,GAAK,SAAU,CAAC,EAAG,SACrC,CAAC,EAAG,UAMDC,EAAaD,EAASE,OAAO,CAAC,CAAC,EAAG,SAAU,CAAC,EAAG,SACnD,CAAC,EAAG,UACDC,EAAeH,EAASE,OAAO,CAAC,CAAC,EAAG,WAAY,CAAC,EAAG,WACvD,CAAC,EAAG,UA+NL1L,EAAEyB,KAAKC,QAAQ/I,KAAK,CACnBgJ,KA9ND,SAAcF,GACbA,EAAK0G,MAAMC,eAAezP,MAAK,SAAU8I,EAAMxB,GAC9CD,EAAE4L,KAAKnK,EAAKoK,WAAW,SAASC,EAAUC,GAEzC,IAAIb,EAAOa,EAAK9L,QAEC,QAAbiL,EAAK7Z,OACR0a,EAAKC,cAAgB,SAASD,GAE7B,IAAIE,EAAQ,GACRzb,EAAIwa,EAAce,EAAK/W,IAAKkW,GAC5BgB,EAAU,EAKVC,EAAQjB,EAAKkB,UAChB,YAD4BlB,EAAKkB,SAAS,IAEzClB,EAAKmB,aACN,YADqBnB,EAAKmB,YAAY,GACzBV,EAAeF,EAEL,MAApBP,EAAKmB,cAEPH,EAD2B,iBAAjBhB,EAAKkB,SACLlB,EAAKkB,SAELlB,EAAKmB,YAAY,GAAKd,EAAaL,EAAKmB,YAAY,KAIhE,IAAK,IAAInc,EAAI,EAAGA,EAAIic,EAAKlT,OAAS,KAC7B8S,EAAKO,OAASH,EAAKjc,GAAG,GAAKqb,EAAaY,EAAKjc,GAAG,IAC5Cic,EAAKjc,EAAI,GAAG,GAAKqb,EAAaY,EAAKjc,EAAI,GAAG,KAAO,GACrDic,EAAKjc,GAAG,GAAKqb,EAAaY,EAAKjc,GAAG,KAAOgc,KAHPhc,GAQvC,IAAIqc,EAAOJ,EAAKjc,GAAG,GACfsc,EAAOL,EAAKjc,GAAG,GAInB,GAAY,QAARsc,EAAgB,CAKnB,GAAwB,MAApBtB,EAAKmB,aAA8C,QAAvBnB,EAAKmB,YAAY,GAChDE,EAAO1X,KAAKmU,MAAMkC,EAAKmB,YAAY,QAC7B,CAEN,IAAII,EAAO5X,KAAK6X,IAAI,GAAI7X,KAAKmU,MAAMnU,KAAK8X,IAAIZ,EAAKO,MAAQf,EAAaqB,MAAQ/X,KAAKgY,OAC/EC,EAAQf,EAAKO,MAAQf,EAAaqB,KAAQH,EAG7CF,EADGO,EAAO,IACH,EACGA,EAAO,EACV,EACGA,EAAO,IACV,EAEA,GAGRP,GAAQE,EAKLF,EAAO,IACVA,EAAO,GAITR,EAAKK,SAAWlB,EAAKkB,UAAY,CAACG,EAAMC,GACxC,IAAIJ,EAAWL,EAAKK,SAAS,GAC7BI,EAAOT,EAAKK,SAAS,GAErB,IAAIW,EAAOX,EAAWb,EAAaiB,GAEvB,UAARA,EACHhc,EAAEwc,WAAWlE,EAAYtY,EAAE0Z,aAAckC,IACvB,UAARI,EACVhc,EAAEyc,WAAWnE,EAAYtY,EAAEyZ,aAAcmC,IACvB,QAARI,EACVhc,EAAE0c,SAASpE,EAAYtY,EAAEmZ,WAAYyC,IACnB,SAARI,EACVhc,EAAE2c,SAASrE,EAAYtY,EAAEuZ,WAAYqC,IACnB,WAARI,EACVhc,EAAE2c,SAAS,EAAIrE,EAAYtY,EAAEuZ,WAAa,EACzCqC,IACiB,QAARI,GACVhc,EAAE4c,YAAYtE,EAAYtY,EAAE2Z,cAAeiC,IAK5C5b,EAAE6c,gBAAgB,GAEdN,GAAQxB,EAAa+B,QACxB9c,EAAEwc,WAAW,GAEVD,GAAQxB,EAAagC,MACxB/c,EAAEyc,WAAW,GAEVF,GAAQxB,EAAaiC,KACxBhd,EAAE0c,SAAS,GAERH,GAA2B,EAAnBxB,EAAaiC,KACxBhd,EAAEid,QAAQ,GAEPV,GAA6B,EAArBxB,EAAamC,OACxBld,EAAE2c,SAASrE,EAAYtY,EAAEuZ,WAAY,IAElCgD,GAA+B,EAAvBxB,EAAaoC,SACxBnd,EAAE2c,SAASrE,EAAYtY,EAAEuZ,WAAY,IAElCgD,GAAQxB,EAAaqB,MACxBpc,EAAE2c,SAAS,GAGZ,IAEIS,EAFAC,EAAQ,EACR7a,EAAI8a,OAAOC,IAGf,GAMC,GAJAH,EAAO5a,EACPA,EAAIxC,EAAEyN,UACNgO,EAAMtT,KAAK3F,GAEC,SAARwZ,GAA2B,WAARA,EACtB,GAAIJ,EAAW,EAAG,CAOjB5b,EAAEid,QAAQ,GACV,IAAIO,EAAQxd,EAAEyN,UACdzN,EAAE2c,SAAS3c,EAAEuZ,YACH,WAARyC,EAAoB,EAAI,IAC1B,IAAIyB,EAAMzd,EAAEyN,UACZzN,EAAE8a,QAAQtY,EAAI6a,EAAQtC,EAAagC,MAAQU,EAAMD,GAAS5B,GAC1DyB,EAAQrd,EAAEmZ,WACVnZ,EAAE0c,SAAS,QAEX1c,EAAE2c,SAAS3c,EAAEuZ,WACZqC,GAAoB,WAARI,EAAoB,EAAI,QAEpB,QAARA,EACVhc,EAAE4c,YAAY5c,EAAE2Z,cAAgBiC,GAEhC5b,EAAE8a,QAAQtY,EAAI+Z,SAEP/Z,EAAI+Y,EAAKjX,KAAO9B,GAAK4a,GAE9B,OAAO3B,GAGRF,EAAKmC,cAAgB,SAAUlb,EAAG+Y,GAEjC,IAAIvb,EAAIwa,EAAchY,EAAG+Y,EAAK9L,SAI9B,GAAuB,MAAnBiL,EAAKiD,WACR,OAAOlF,EAAWzY,EAAG0a,EAAKiD,WAAYjD,EAAK/B,WAAY+B,EAAK9B,UAM7D,IAAIgF,EAAerC,EAAK9L,QAAQmM,UACF,WAA5BL,EAAK9L,QAAQmM,SAAS,IACtBL,EAAK9L,QAAQoM,aACkB,WAA/BN,EAAK9L,QAAQoM,YAAY,GAEvBjb,EAAI2a,EAAKK,SAAS,GAAKb,EAAaQ,EAAKK,SAAS,IAClDiC,EAAOtC,EAAKjX,IAAMiX,EAAK/W,IACvBsZ,EAAUpD,EAAKqD,gBAAmB,MAAQ,GAC1CC,EAAYtD,EAAKqD,gBAAmB,KAAO,KAgC/C,OAFStF,EAAWzY,EA3BhBY,EAAIma,EAAa+B,OACdkB,EAAW,SAAWF,EAClBld,EAAIma,EAAaiC,IACvBa,EAAO,EAAI9C,EAAaiC,IACrBgB,EAAW,MAAQF,EAEnB,SAAWE,EAAW,MAAQF,EAE3Bld,EAAIma,EAAamC,MACrB,QACKU,GAAehd,EAAIma,EAAaoC,UACzCS,GAAehd,EAAIma,EAAaqB,KAC9ByB,EAAO9C,EAAaqB,KACjB,KAEA,QAEGwB,GAAehd,EAAIma,EAAaqB,KACtCyB,EAAO9C,EAAaqB,KACjB,MAEA,SAGD,KAGqB1B,EAAK/B,WAAY+B,EAAK9B,mBAWtDnJ,QAvZa,CACbwO,MAAO,CACNtD,SAAU,KACVgD,WAAY,KACZI,iBAAiB,EACjBpF,WAAY,OAmZb1Y,KAAM,OACNoY,QAAS,QAOV7I,EAAEyB,KAAKwH,WAAaA,EACpBjJ,EAAEyB,KAAKuJ,cAAgBA,EAnaxB,CAqaG9K,S,sCC/ZH,IAAIwO,EAAgB,SAASle,EAAGyE,GAI5B,OAHAyZ,EAAgB9d,OAAO+d,gBAClB,CAAEC,UAAW,cAAgBvb,OAAS,SAAU7C,EAAGyE,GAAKzE,EAAEoe,UAAY3Z,IACvE,SAAUzE,EAAGyE,GAAK,IAAK,IAAIjD,KAAKiD,EAAOA,EAAElD,eAAeC,KAAIxB,EAAEwB,GAAKiD,EAAEjD,MACpDxB,EAAGyE,I,kFCfd,SAAU,EAAK4Z,EAAYC,EAAWC,EAAYC,GAC9D,IAAIvM,EACEwM,EAAQD,EAAKC,MACnBH,EAAOA,EAAKI,KAAK,0BACjB,IAAMC,EAAW,IAAE,sBA2BnB,SAASnO,EAAUD,EAAYE,GAC7B,IAAMmO,EAAYnO,EAAMwB,KAAK,GAAGxB,EAAMwB,KAAK,GAAGxJ,OAAS,GACnDoW,EAAU,EACRrB,EAAQ,yBAAyBgB,EAAKC,MAAMK,SAAQ,oCAAoCvO,EAAK,QAKnG,OAHIiO,EAAKC,MAAMtL,OAAO4L,qBACpBF,EAAUL,EAAKC,MAAMtL,OAAO4L,oBAE1BP,EAAKC,MAAMtL,OAAO6L,QAAUR,EAAKC,MAAMtL,OAAO8L,WACzCzB,EAAQgB,EAAKU,YAAYN,GAAa,QAAUnO,EAAME,QAAQwO,QAAQN,GAAW,UAC/EL,EAAKC,MAAMtL,OAAO6L,OACpBxB,EAAQgB,EAAKU,YAAYN,GAAa,SACpCJ,EAAKC,MAAMtL,OAAO8L,WACpBzB,EAAQ/M,EAAME,QAAQwO,QAAQN,GAAW,UAEzCrB,EAAQ,SASnB,SAAS4B,IACP,IAAM1a,EAAQ4Z,EAAK5Z,QACbe,EAAS+Y,EAAK/Y,OAxCtB,SAAyB4Z,GACvB,IAAKb,EAAKC,MAAMtL,OAAOtD,MAAkC,eAA1B2O,EAAKC,MAAMa,YAAyD,aAA1Bd,EAAKC,MAAMa,WAClF,OAAO,GAGT,GAA+B,gBAA1Bd,EAAKC,MAAMa,YAAgCd,EAAKC,MAAMtL,OAAO8L,YAAeT,EAAKC,MAAMtL,OAAO6L,OAAQ,CACzG,IAAMO,EAAarb,SAASsa,EAAKC,MAAMc,WAAY,IAAM,IACnDrN,EAAQ,GAAK,GAAKD,EAAKxJ,OAC7B,OAAOpE,KAAKG,IAAI0N,EAAO7N,KAAKmU,MAAM6G,EAAcE,IAGlD,OAAO,EA6BsBC,CAAgBhB,EAAK/Y,QAE5CsW,EAAO1X,KAAKG,IAAIE,EAAOe,GAEvBga,EAAa,IAAE,eACfC,EAAU,CACdC,OAAQ,OACRvM,SAAU,WACVwM,cAAe,OACfna,OAAQsW,EAAO,MAGjB0D,EAAW/J,IAAIgK,GAEf,IAEMjQ,EAAU,CACd0D,OAAQ,CACNtD,MAAM,GAERF,OAAQ,CACNC,IAAK,CACHE,OAAQ,EACRC,YAAa,EACbF,MAAM,EACNQ,OAAQ,CACNC,MAZgB,IAAE,QAAQoF,IAAI,oBAa9BhR,MAAO6N,WAAWiM,EAAKC,MAAMoB,aAAaV,QAAQ,IAEpD5O,MAAO,CACLV,KAAM2O,EAAKC,MAAMtL,OAAOtD,MAAkC,aAA1B2O,EAAKC,MAAMa,WAC3C9O,UAAWA,GAEbQ,UAAW,CACTH,QAAS,GAEXE,QAAS,CACPD,UAAW0N,EAAKC,MAAM1N,QAAQD,UAC9BP,MAAOiO,EAAKC,MAAM1N,QAAQR,SAIhC6G,KAAM,CACJW,WAAW,EACXE,WAAW,IAIO,UAAlBwG,EAAMqB,UACRrQ,EAAQE,OAAOC,IAAIG,YAAc,IAGnCkC,EAAOuM,EAAKvM,KAEZ,IAAK,IAAIvS,EAAI,EAAGA,EAAIuS,EAAKxJ,OAAQ/I,IAAK,CACpC,IAAMiQ,EAASsC,EAAKvS,GAGhB8e,EAAKuB,aAAapQ,EAAOY,SAC3BZ,EAAOsC,KAAO,IAIdwM,EAAMtL,OAAO6M,OACXxB,EAAKC,MAAMwB,YAAcxB,EAAMtL,OAAO6M,OACxCvB,EAAMtL,OAAO6M,KAAOxB,EAAKC,MAAMwB,YAEH,IAA1BxB,EAAMtL,OAAO+M,SACfjO,EAAK+N,MAAK,SAACpc,EAAQa,GACjB,OAAOA,EAAE0b,WAAavc,EAAEuc,cAG1BlO,EAAK+N,MAAK,SAACpc,EAAQa,GACjB,OAAOb,EAAEuc,WAAa1b,EAAE0b,eAK9B7B,EAAKhJ,KAAKmK,GAGV,IAAExO,KAAKwO,EAAYxN,EAAMxC,GACzBgQ,EAAWve,KAAK,aAAa,SAAC2F,EAAY8O,EAAUiB,GAClD,GAAKA,EAAL,CAKA,IAAIwJ,EACEzP,EAAU4B,WAAWqE,EAAKjH,OAAOgB,SAASwO,QAAQ,GAClDkB,EAAY7B,EAAKU,YAAYtI,EAAKjH,OAAOsC,KAAK,GAAG,IAEvDmO,EAAO,0EACPA,GAAQ,uCAAyC,IAAEnH,OAAOrC,EAAKjH,OAAOY,OAAS,KAAO8P,EACtFD,GAAQ,KAAOzP,EAAP,WACRyP,GAAQ,eAERzB,EAASrJ,KAAK8K,GAAME,SAAS3K,EAAI9K,MAAQ,GAAI8K,EAAIjL,YAb/CiU,EAAS4B,YAiBf,SAASC,EAAOC,GACTjC,EAAKvM,OAIVA,EAAOuM,EAAKvM,KAER,IAAMuM,EAAKvM,KAAKxJ,OAjHpB6V,EAAKhJ,KADQ,mFAqHX8J,IAGEqB,GACFjC,EAAKkC,sBAtKTlC,EAAKmC,OAAOC,GAAG,UAAU,WACE,eAArBnC,EAAMa,YACRkB,GAAO,GACPhd,YAAW,WACTgd,GAAO,KACN,KAEHA,GAAO,M,2CCJb,EAAA5c,EAAQnE,OAAO,sBAAsBohB,UAAU,iBAA/C,yBAAiE,SAACC,EAAiBC,GACjF,MAAO,CACLC,KAAM,SAAC3C,EAAYC,GACjB,IAIIrM,EACAgP,EACAC,EACAxhB,EACAyhB,EAREC,EAAa,IAAE,kDACjBC,GAAc,EACZ7C,EAAOH,EAAMG,KACbC,EAAQD,EAAKC,MAuBnB,SAAS6C,EAAyBC,GAChC,OAAOA,EAAGC,QAAQ,uBAAuBvP,KAAK,gBAGhD,SAASwP,EAAazf,GACpB,IAAMuf,EAAK,IAAEvf,EAAE0f,eAEf,GAAIH,GAAMA,EAAGxM,SAAW0J,EAAM1N,QAAQR,MAAO,CAC3C,IAAMuE,EAAQwM,EAAyBC,GACjCI,EAAaT,EAASpM,GACtB8M,EAAiB,IAAER,EAAWre,SAAS,UAAUsC,YACvDmZ,EAAKiD,aAAaE,QACY,IAAnBC,GACT,IAAER,EAAWre,SAAS,UAAUsC,UAAUuc,IAKhD,SAASC,EAAW7f,GAClB,IACM8f,EADK,IAAE9f,EAAE0f,eACCzP,KAAK,QAOrB,GALI6P,IAASrD,EAAMtL,OAAO6M,OACxBvB,EAAMtL,OAAO+M,SAAW,OAII,IAA1BzB,EAAMtL,OAAO+M,SAIf,OAHAzB,EAAMtL,OAAO6M,KAAO,KACpBvB,EAAMtL,OAAO+M,SAAW,UACxB1B,EAAKgC,SAIP/B,EAAMtL,OAAO+M,UAAYzB,EAAMtL,OAAO+M,SACtCzB,EAAMtL,OAAO6M,KAAO8B,EACpBtD,EAAKgC,SAgCP,SAASuB,EAAkB/f,GAEzB,IAAI,IAAEA,EAAEwK,QAAQgV,QAAQ,YAAY/Y,OAApC,CAIA,IAAM8Y,EAAK,IAAEvf,EAAE0f,eAAehD,KAAK,aAC7B5J,EAAQwM,EAAyBC,GACjC5R,EAASsR,EAAWnM,GAE1BiM,GAAS,WACPD,EAAWjR,KAAK,CACd7M,QAASue,EAAG,GACZnO,SAAU,eACV4O,SACE,sIAEFC,OAAQ,QACRC,WAAY,yCACZC,MAAO,CACLC,WAAW,EACXzS,OAAQA,EACR0S,WAAY,aACZC,cAAe,SAAChS,GACdkO,EAAK+D,kBAAkB5S,EAAQW,WAgJzC,SAASkS,EAAmBvQ,EAAW6C,EAAY5C,EAAYuQ,EAAqBC,GAClF,IAAIpN,EAAO,qCACPkJ,EAAKuB,aAAa9N,EAAK1B,SACzB+E,GAAQ,kCAEVA,GAAQ,wBAA0BR,EAAQ,KAC1CQ,GAAQ,0DACRA,GAAQ,+CAAiDrD,EAAK3B,MAAQ,SACtEgF,GAAQ,UAERA,GAAQ,wDAA0D,IAAE2D,OAAOhH,EAAK1B,OAAS,OACzF,IAAIsO,EAAU,EAKd,GAJIL,EAAKC,MAAMtL,OAAO4L,qBACpBF,EAAUL,EAAKC,MAAMtL,OAAO4L,oBAG1B0D,GAAcC,EAAa,CAC7B,IAAM/hB,EAAQsR,EAAKkO,WAInB,GAHI1B,EAAMtL,OAAO6L,SACf1J,GAAQ,sCAAwCkJ,EAAKU,YAAYve,GAAS,UAExEuR,EAEFoD,GAAQ,wCADS3U,EAAQuR,EAAS,KAAKiN,QAAQN,GAAW,KACD,SAK7D,OAFAvJ,GAAQ,SAtRV+I,EAAMsE,IAAI,YAAY,WAChBxB,GACFA,EAAgB9R,aAIpBmP,EAAKmC,OAAOC,GAAG,UAAU,WAEvB,GADA3O,EAAOuM,EAAK7O,OACF,CACR,IAAK,IAAM,KAAKsC,EACdA,EAAK,GAAG3B,MAAQkO,EAAKvM,KAAK,GAAG3B,OAyGnC,WACE,GAAyB,aAArBmO,EAAMa,aAA8Bb,EAAMtL,OAAOtD,KAGnD,OAFAuR,EAAWwB,aACXtE,EAAKI,KAAK,oBAAoBhJ,IAAI,cAAe,GAGjD4I,EAAKI,KAAK,oBAAoBhJ,IAAI,cAAe,GAG/C2L,IACF/C,EAAK/I,OAAO6L,GACZA,EAAWR,GAAG,QAAS,wBAAyBmB,GAChDX,EAAWR,GAAG,QAAS,yBAA0Ba,GACjDL,EAAWR,GAAG,QAAS,KAAMiB,GAC7BR,GAAc,GAGhBJ,EAAahP,EACbiP,EAAW1C,EAAKvM,KAEhBmP,EAAWwB,QAEX,IAAMle,EAA6B,eAArB+Z,EAAMa,YAA+Bb,EAAMtL,OAAO0P,UAAYpE,EAAMtL,OAAO0P,UAAY,KAAO,GACtGC,EACiB,eAArBrE,EAAMa,YAA+Bb,EAAMtL,OAAO0P,UAAYpE,EAAMtL,OAAO0P,UAAY,EAAI,KAAO,GACpGvE,EAAK5I,IAAI,YAAahR,GACtB4Z,EAAK5I,IAAI,QAASoN,GAElB,IAKIC,EALEN,EAAahE,EAAMtL,OAAO6L,QAAUP,EAAMtL,OAAO8L,WACjDyD,GAAoC,gBAArBjE,EAAMa,YAAqD,eAArBb,EAAMa,aAAgCmD,EAKjG,GAHArB,EAAW4B,YAAY,wBAAyBN,GAG5CA,EAAa,CACf,IAAIO,EAAS,oDACTxE,EAAMtL,OAAO6L,SACfiE,GAjGN,SAA6BC,GAC3B,IAAIjjB,EAAOijB,EAEPzE,EAAMtL,OAAO8P,SACfhjB,EAAOwe,EAAMtL,OAAO8P,QAGtB,IAAI3N,EAAO,kCAAoC,IAAE2D,OAAOiK,GAAY,KAAO,IAAEjK,OAAOhZ,GAEpF,GAAIwe,EAAMtL,OAAO6M,OAASkD,EAAU,CAClC,IAAMC,EAAW1E,EAAMtL,OAAO+M,SAAW,mBAAqB,iBAC9D5K,GAAQ,iBAAmB6N,EAAW,YAGxC,OAAO7N,EAAO,QAmFA8N,CAAoB5E,EAAKC,MAAMwB,YAEvCxB,EAAMtL,OAAO8L,aACfgE,GAnFN,SAAiCC,GAC/B,IACI5N,EAAO,kCAAoC4N,EAApC,eAEX,GAAIzE,EAAMtL,OAAO6M,OAASkD,EAAU,CAClC,IAAMC,EAAW1E,EAAMtL,OAAO+M,SAAW,mBAAqB,iBAC9D5K,GAAQ,iBAAmB6N,EAAW,YAGxC,OAAO7N,EAAO,QA0EA+N,CAAwB7E,EAAKC,MAAMwB,YAE/CgD,GAAU,QACVF,EAAe,IAAEE,GAGnB,IAAI/Q,EAAQ,EACZ,GAAIuM,EAAMtL,OAAO8L,WACf,IAAKvf,EAAI,EAAGA,EAAIuhB,EAAWxY,OAAQ/I,IAC5B8e,EAAKuB,aAAakB,EAAWvhB,GAAG6Q,SACnC2B,GAAS+O,EAAWvhB,GAAG4jB,MAAM9E,EAAKC,MAAMwB,YAK9C,IAAIsD,EAAa,EACXC,EAAa,CACjBjT,MAAOkO,EAAM1N,QAAQR,MACrBD,MAAO,GACP6P,WAAY,GAERsD,EAAiB,GAEvB,IAAK/jB,EAAI,EAAGA,EAAIuhB,EAAWxY,OAAQ/I,IAAK,CACtC,IAAMiQ,EAASsR,EAAWvhB,GACpBgkB,EAAaxC,EAASxhB,GAE5B,GAAIgkB,EAAWzR,KAAOC,EAAQuM,EAAM1N,QAAQD,UAErC0N,EAAKuB,aAAa2D,EAAWnT,SAChCgT,IACAC,EAAWrD,YAAcuD,EAAWzR,UAEjC,CAEL,GAAIwM,EAAMtL,OAAOwQ,WAAahU,EAAOiU,UACnC,SAGF,IAAKjU,EAAOwD,OACV,SAGFsQ,EAAetb,KAAK,IAAEqa,EAAmBkB,EAAYhkB,EAAGwS,EAAOuQ,EAAYC,MAK/E,GAAIa,EAAa,EAAG,CAElB,QAAqC,IAA1B9E,EAAMtL,OAAO+M,UAAsD,OAA1BzB,EAAMtL,OAAO+M,UAAqBzB,EAAMtL,OAAO+M,SACjG,GAAI9f,OAAOmI,KAAKiW,EAAKuB,cAActX,OAAS,EAAG,CAC7C,IAAIob,OAAG,EAAEC,OAAI,E,WACFC,GACTF,EAAM3C,EAASxC,MAAK,SAAC9W,GAAW,OAAAA,EAAE2I,QAAF,WACZ,IAATuT,GAILD,EAAI1D,WAAa2D,KAHrBA,EAAOD,EAAI1D,WACXqD,EAAWlT,MAAQuT,EAAIvT,QAJ3B,IAAK,IAAMyT,KAAQvF,EAAKuB,a,EAAbgE,QAaXP,EAAWlT,MAAQ2Q,EAAWA,EAAWxY,OAAS8a,GAAYjT,WAGhEkT,EAAWlT,MAAQ2Q,EAAW,GAAG3Q,MAGnCmT,EAAetb,KACb,IAAEqa,EAAmBgB,EAAYtC,EAASzY,OAAS8a,EAAYrR,EAAOuQ,EAAYC,KAItF,GAAIA,EAAa,CAEf,IAAMsB,EAAY,IAAE,wBAEQ,IAAjBjB,GACTiB,EAAUzO,OAAOwN,GAEnBiB,EAAUzO,OAAOkO,GACjBrC,EAAW7L,OAAOyO,QAElB5C,EAAW7L,OAAOkO,GAGK,gBAArBhF,EAAMa,WA6CL6B,EAGHA,EAAgB/R,SAFhB+R,EAAkB,IAAI,IAAiB7C,EAAK,GAPrB,CAEvBjU,oBAAqB,EACrBN,iBAAiB,IAWfoX,IACFA,EAAgB9R,UAChB8R,EAAkB,MAhSlBX,YC/BV,kBASE,WAAYyD,EAAaC,EAAgBC,GAAzC,MACE,YAAMF,EAAQC,IAAU,KACxB,EAAKC,WAAaA,EAClB,EAAKpE,aAAe,GAEpB,IAAMqE,EAAgB,CACpBtE,QAAS,MACT3M,OAAQ,CACNtD,MAAM,EACNmP,QAAQ,GAEVqF,MAAO,GACPC,WAAY,KACZC,cAAe,EACfC,SAAU,KACVC,QAAS,CAAC,IACVC,aAAc,KACdC,cAAe,YACfrF,WAAY,cACZC,WAAY,MACZqF,YAAa,GACbC,OAAQ,QACR5E,UAAW,UACXJ,YAAa,EACbf,SAAU,MACV/N,QAAS,CACPD,UAAW,EACXP,MAAO,W,OAIX,IAAEuU,SAAS,EAAKrG,MAAO2F,GACvB,IAAEU,SAAS,EAAKrG,MAAMtL,OAAQiR,EAAcjR,QAE5C,EAAKwN,OAAOC,GAAG,SAAU,EAAKmE,SAAS7jB,KAAK,IAC5C,EAAKyf,OAAOC,GAAG,gBAAiB,EAAKoE,eAAe9jB,KAAK,IACzD,EAAKyf,OAAOC,GAAG,aAAc,EAAKqE,YAAY/jB,KAAK,IACnD,EAAKyf,OAAOC,GAAG,qBAAsB,EAAKoE,eAAe9jB,KAAK,IAC9D,EAAKyf,OAAOC,GAAG,iBAAkB,EAAKsE,eAAehkB,KAAK,IAE1D,EAAKikB,iC,EAqIT,OAtLA,8CHeO,SAAmBnlB,EAAGyE,GAEzB,SAAS2gB,IAAOljB,KAAKmjB,YAAcrlB,EADnCke,EAAcle,EAAGyE,GAEjBzE,EAAEsB,UAAkB,OAANmD,EAAarE,OAAOY,OAAOyD,IAAM2gB,EAAG9jB,UAAYmD,EAAEnD,UAAW,IAAI8jB,GGlBxD,MAoDzB,YAAAF,eAAA,WACEhjB,KAAKojB,aAAa,UAAW,oDAAqD,GAClFpjB,KAAKqjB,YAAc,IAAIC,kBAGzB,YAAAC,cAAA,SAAcC,GACZxjB,KAAKuc,MAAMoG,OAASa,EAAQ/kB,MAC5BuB,KAAKse,UAGP,YAAAyE,YAAA,WACE/iB,KAAKyN,OAAS,GACdzN,KAAKse,UAGP,YAAA+B,kBAAA,SAAkB5S,EAAaW,GAC7BX,EAAOW,MAAQA,EACfpO,KAAKuc,MAAMmG,YAAYjV,EAAOgW,OAAShW,EAAOW,MAC9CpO,KAAKse,UAGP,YAAAuE,SAAA,WACE7iB,KAAK+P,KAAO/P,KAAK0jB,YAAY1jB,KAAKyN,SAGpC,YAAAiW,YAAA,SAAYjW,GAAZ,WACE,OAAO,IAAEkW,IAAI3jB,KAAKyN,QAAQ,SAACmW,EAAOpmB,GAChC,MAAO,CACL6Q,MAAOuV,EAAMH,MACb1T,KAAM6T,EAAMxC,MAAM,EAAK7E,MAAMwB,WAC7B3P,MAAO,EAAKmO,MAAMmG,YAAYkB,EAAMH,QAAU,EAAKxB,WAAW4B,OAAOrmB,GACrEygB,WAAY2F,EAAMxC,MAAM,EAAK7E,MAAMwB,gBAKzC,YAAA+E,eAAA,SAAe9D,GACbhf,KAAKyN,OAASuR,EAAS2E,IAAI3jB,KAAK8jB,cAAc9kB,KAAKgB,OACnDA,KAAK+P,KAAO/P,KAAK0jB,YAAY1jB,KAAKyN,QAClCzN,KAAKse,OAAOte,KAAK+P,OAGnB,YAAA+T,cAAA,SAActC,GACZ,IAAM/T,EAAS,IAAI,IAAW,CAC5BiC,WAAY8R,EAAW9R,WACvB+T,MAAOjC,EAAWlX,SAIpB,OADAmD,EAAOsW,UAAYtW,EAAOuW,aAAahkB,KAAKuc,MAAMkG,eAC3ChV,GAGT,YAAAwW,oBAAA,SAAoBxlB,GAClB,GAAI,IAAEylB,SAASlkB,KAAKuc,MAAM4H,UACxB,MAAO,CAAEA,SAAUnkB,KAAKuc,MAAM4H,SAAUC,eAAgB,MAG1D,IAKIvK,EALED,EAAQnb,EAAQ,EAClB4lB,GAAOliB,KAAKmU,MAAMnU,KAAK8X,IAAIL,GAASzX,KAAKgY,MAEvCJ,EAAO5X,KAAK6X,IAAI,IAAKqK,GACrBjK,EAAOR,EAAQG,EAGjBK,EAAO,IACTP,EAAO,EACEO,EAAO,GAChBP,EAAO,EAEHO,EAAO,OACTP,EAAO,MACLwK,IAGJxK,EADSO,EAAO,IACT,EAEA,GAGTP,GAAQE,EAGJ5X,KAAKmU,MAAM7X,KAAWA,IACxB4lB,EAAM,GAGR,IAAMC,EAAS,CACbH,SAAU,EACVC,eAAgB,GAKlB,OAHAE,EAAOH,SAAWhiB,KAAKC,IAAI,EAAGiiB,GAC9BC,EAAOF,eAAiBE,EAAOH,SAAWhiB,KAAKmU,MAAMnU,KAAK8X,IAAIJ,GAAQ1X,KAAKgY,MAAQ,EAE5EmK,GAGT,YAAAtH,YAAA,SAAYve,GACV,IAAM8lB,EAAcvkB,KAAKikB,oBAAoBxlB,GACvC+lB,EAAa,IAAIC,aAAazkB,KAAKuc,MAAMoG,QAC/C,OAAI6B,EACKA,EAAW/lB,EAAO8lB,EAAYJ,SAAUI,EAAYH,gBAEtD3lB,GAGT,YAAAqgB,KAAA,SAAK3C,EAAYC,EAAWC,EAAYC,GACtC,EAAUH,EAAOC,EAAMC,EAAOC,IAGhC,YAAAiD,aAAA,SAAaqE,GACP5jB,KAAK6d,aAAa+F,EAAMvV,cACnBrO,KAAK6d,aAAa+F,EAAMvV,OAE/BrO,KAAK6d,aAAa+F,EAAMvV,QAAS,EAEnCrO,KAAKse,UAGP,YAAAoG,oBAAA,WACE1kB,KAAKijB,iCACLjjB,KAAKse,UAGP,YAAA2E,+BAAA,aAEmBthB,OAAOgjB,wBAA0BxkB,SAASykB,cACnB,eAA1B5kB,KAAKuc,MAAMa,aAAgCpd,KAAKuc,MAAMtL,OAAO0P,YACzE3gB,KAAKuc,MAAMtL,OAAO0P,UAAY,MAlL3B,EAAAkE,YAAc,cAqLvB,EAtLA,CAA2B,oBCR3B,0CAGA,wBAAc,CACZC,KAAM,iDACNC,MAAO","file":"module.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 11);\n","module.exports = __WEBPACK_EXTERNAL_MODULE__0__;","module.exports = __WEBPACK_EXTERNAL_MODULE__1__;","module.exports = __WEBPACK_EXTERNAL_MODULE__2__;","module.exports = __WEBPACK_EXTERNAL_MODULE__3__;","module.exports = __WEBPACK_EXTERNAL_MODULE__4__;","module.exports = __WEBPACK_EXTERNAL_MODULE__5__;","/*!\n * perfect-scrollbar v1.2.0\n * (c) 2017 Hyunje Jun\n * @license MIT\n */\n!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):t.PerfectScrollbar=e()}(this,function(){\"use strict\";function t(t){return getComputedStyle(t)}function e(t,e){for(var i in e){var n=e[i];\"number\"==typeof n&&(n+=\"px\"),t.style[i]=n}return t}function i(t){var e=document.createElement(\"div\");return e.className=t,e}function n(t,e){if(!v)throw new Error(\"No element matching method supported\");return v.call(t,e)}function r(t){t.remove?t.remove():t.parentNode&&t.parentNode.removeChild(t)}function l(t,e){return Array.prototype.filter.call(t.children,function(t){return n(t,e)})}function o(t,e){var i=t.element.classList,n=m.state.scrolling(e);i.contains(n)?clearTimeout(w[e]):i.add(n)}function s(t,e){w[e]=setTimeout(function(){return t.isAlive&&t.element.classList.remove(m.state.scrolling(e))},t.settings.scrollingThreshold)}function a(t,e){o(t,e),s(t,e)}function c(t){if(\"function\"==typeof window.CustomEvent)return new CustomEvent(t);var e=document.createEvent(\"CustomEvent\");return e.initCustomEvent(t,!1,!1,void 0),e}function h(t,e,i,n,r){var l=i[0],o=i[1],s=i[2],h=i[3],u=i[4],d=i[5];void 0===n&&(n=!0),void 0===r&&(r=!1);var p=t.element;t.reach[h]=null,p[s]<1&&(t.reach[h]=\"start\"),p[s]>t[l]-t[o]-1&&(t.reach[h]=\"end\"),e&&(p.dispatchEvent(c(\"ps-scroll-\"+h)),e<0?p.dispatchEvent(c(\"ps-scroll-\"+u)):e>0&&p.dispatchEvent(c(\"ps-scroll-\"+d)),n&&a(t,h)),t.reach[h]&&(e||r)&&p.dispatchEvent(c(\"ps-\"+h+\"-reach-\"+t.reach[h]))}function u(t){return parseInt(t,10)||0}function d(t){return n(t,\"input,[contenteditable]\")||n(t,\"select,[contenteditable]\")||n(t,\"textarea,[contenteditable]\")||n(t,\"button,[contenteditable]\")}function p(e){var i=t(e);return u(i.width)+u(i.paddingLeft)+u(i.paddingRight)+u(i.borderLeftWidth)+u(i.borderRightWidth)}function f(t,e){return t.settings.minScrollbarLength&&(e=Math.max(e,t.settings.minScrollbarLength)),t.settings.maxScrollbarLength&&(e=Math.min(e,t.settings.maxScrollbarLength)),e}function b(t,i){var n={width:i.railXWidth};i.isRtl?n.left=i.negativeScrollAdjustment+t.scrollLeft+i.containerWidth-i.contentWidth:n.left=t.scrollLeft,i.isScrollbarXUsingBottom?n.bottom=i.scrollbarXBottom-t.scrollTop:n.top=i.scrollbarXTop+t.scrollTop,e(i.scrollbarXRail,n);var r={top:t.scrollTop,height:i.railYHeight};i.isScrollbarYUsingRight?i.isRtl?r.right=i.contentWidth-(i.negativeScrollAdjustment+t.scrollLeft)-i.scrollbarYRight-i.scrollbarYOuterWidth:r.right=i.scrollbarYRight-t.scrollLeft:i.isRtl?r.left=i.negativeScrollAdjustment+t.scrollLeft+2*i.containerWidth-i.contentWidth-i.scrollbarYLeft-i.scrollbarYOuterWidth:r.left=i.scrollbarYLeft+t.scrollLeft,e(i.scrollbarYRail,r),e(i.scrollbarX,{left:i.scrollbarXLeft,width:i.scrollbarXWidth-i.railBorderXWidth}),e(i.scrollbarY,{top:i.scrollbarYTop,height:i.scrollbarYHeight-i.railBorderYWidth})}function g(t,e){function i(e){f[d]=b+v*(e[a]-g),o(t,p),R(t),e.stopPropagation(),e.preventDefault()}function n(){s(t,p),t.event.unbind(t.ownerDocument,\"mousemove\",i)}var r=e[0],l=e[1],a=e[2],c=e[3],h=e[4],u=e[5],d=e[6],p=e[7],f=t.element,b=null,g=null,v=null;t.event.bind(t[h],\"mousedown\",function(e){b=f[d],g=e[a],v=(t[l]-t[r])/(t[c]-t[u]),t.event.bind(t.ownerDocument,\"mousemove\",i),t.event.once(t.ownerDocument,\"mouseup\",n),e.stopPropagation(),e.preventDefault()})}var v=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.msMatchesSelector,m={main:\"ps\",element:{thumb:function(t){return\"ps__thumb-\"+t},rail:function(t){return\"ps__rail-\"+t},consuming:\"ps__child--consume\"},state:{focus:\"ps--focus\",active:function(t){return\"ps--active-\"+t},scrolling:function(t){return\"ps--scrolling-\"+t}}},w={x:null,y:null},Y=function(t){this.element=t,this.handlers={}},X={isEmpty:{configurable:!0}};Y.prototype.bind=function(t,e){void 0===this.handlers[t]&&(this.handlers[t]=[]),this.handlers[t].push(e),this.element.addEventListener(t,e,!1)},Y.prototype.unbind=function(t,e){var i=this;this.handlers[t]=this.handlers[t].filter(function(n){return!(!e||n===e)||(i.element.removeEventListener(t,n,!1),!1)})},Y.prototype.unbindAll=function(){var t=this;for(var e in t.handlers)t.unbind(e)},X.isEmpty.get=function(){var t=this;return Object.keys(this.handlers).every(function(e){return 0===t.handlers[e].length})},Object.defineProperties(Y.prototype,X);var W=function(){this.eventElements=[]};W.prototype.eventElement=function(t){var e=this.eventElements.filter(function(e){return e.element===t})[0];return e||(e=new Y(t),this.eventElements.push(e)),e},W.prototype.bind=function(t,e,i){this.eventElement(t).bind(e,i)},W.prototype.unbind=function(t,e,i){var n=this.eventElement(t);n.unbind(e,i),n.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(n),1)},W.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]},W.prototype.once=function(t,e,i){var n=this.eventElement(t),r=function(t){n.unbind(e,r),i(t)};n.bind(e,r)};var y=function(t,e,i,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1);var l;if(\"top\"===e)l=[\"contentHeight\",\"containerHeight\",\"scrollTop\",\"y\",\"up\",\"down\"];else{if(\"left\"!==e)throw new Error(\"A proper axis should be provided\");l=[\"contentWidth\",\"containerWidth\",\"scrollLeft\",\"x\",\"left\",\"right\"]}h(t,i,l,n,r)},L={isWebKit:document&&\"WebkitAppearance\"in document.documentElement.style,supportsTouch:window&&(\"ontouchstart\"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:navigator&&navigator.msMaxTouchPoints},R=function(t){var e=t.element;t.containerWidth=e.clientWidth,t.containerHeight=e.clientHeight,t.contentWidth=e.scrollWidth,t.contentHeight=e.scrollHeight,e.contains(t.scrollbarXRail)||(l(e,m.element.rail(\"x\")).forEach(function(t){return r(t)}),e.appendChild(t.scrollbarXRail)),e.contains(t.scrollbarYRail)||(l(e,m.element.rail(\"y\")).forEach(function(t){return r(t)}),e.appendChild(t.scrollbarYRail)),!t.settings.suppressScrollX&&t.containerWidth+t.settings.scrollXMarginOffset=t.railXWidth-t.scrollbarXWidth&&(t.scrollbarXLeft=t.railXWidth-t.scrollbarXWidth),t.scrollbarYTop>=t.railYHeight-t.scrollbarYHeight&&(t.scrollbarYTop=t.railYHeight-t.scrollbarYHeight),b(e,t),t.scrollbarXActive?e.classList.add(m.state.active(\"x\")):(e.classList.remove(m.state.active(\"x\")),t.scrollbarXWidth=0,t.scrollbarXLeft=0,e.scrollLeft=0),t.scrollbarYActive?e.classList.add(m.state.active(\"y\")):(e.classList.remove(m.state.active(\"y\")),t.scrollbarYHeight=0,t.scrollbarYTop=0,e.scrollTop=0)},T={\"click-rail\":function(t){t.event.bind(t.scrollbarY,\"mousedown\",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarYRail,\"mousedown\",function(e){var i=e.pageY-window.pageYOffset-t.scrollbarYRail.getBoundingClientRect().top>t.scrollbarYTop?1:-1;t.element.scrollTop+=i*t.containerHeight,R(t),e.stopPropagation()}),t.event.bind(t.scrollbarX,\"mousedown\",function(t){return t.stopPropagation()}),t.event.bind(t.scrollbarXRail,\"mousedown\",function(e){var i=e.pageX-window.pageXOffset-t.scrollbarXRail.getBoundingClientRect().left>t.scrollbarXLeft?1:-1;t.element.scrollLeft+=i*t.containerWidth,R(t),e.stopPropagation()})},\"drag-thumb\":function(t){g(t,[\"containerWidth\",\"contentWidth\",\"pageX\",\"railXWidth\",\"scrollbarX\",\"scrollbarXWidth\",\"scrollLeft\",\"x\"]),g(t,[\"containerHeight\",\"contentHeight\",\"pageY\",\"railYHeight\",\"scrollbarY\",\"scrollbarYHeight\",\"scrollTop\",\"y\"])},keyboard:function(t){function e(e,n){var r=i.scrollTop;if(0===e){if(!t.scrollbarYActive)return!1;if(0===r&&n>0||r>=t.contentHeight-t.containerHeight&&n<0)return!t.settings.wheelPropagation}var l=i.scrollLeft;if(0===n){if(!t.scrollbarXActive)return!1;if(0===l&&e<0||l>=t.contentWidth-t.containerWidth&&e>0)return!t.settings.wheelPropagation}return!0}var i=t.element,r=function(){return n(i,\":hover\")},l=function(){return n(t.scrollbarX,\":focus\")||n(t.scrollbarY,\":focus\")};t.event.bind(t.ownerDocument,\"keydown\",function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(r()||l())){var o=document.activeElement?document.activeElement:t.ownerDocument.activeElement;if(o){if(\"IFRAME\"===o.tagName)o=o.contentDocument.activeElement;else for(;o.shadowRoot;)o=o.shadowRoot.activeElement;if(d(o))return}var s=0,a=0;switch(n.which){case 37:s=n.metaKey?-t.contentWidth:n.altKey?-t.containerWidth:-30;break;case 38:a=n.metaKey?t.contentHeight:n.altKey?t.containerHeight:30;break;case 39:s=n.metaKey?t.contentWidth:n.altKey?t.containerWidth:30;break;case 40:a=n.metaKey?-t.contentHeight:n.altKey?-t.containerHeight:-30;break;case 32:a=n.shiftKey?t.containerHeight:-t.containerHeight;break;case 33:a=t.containerHeight;break;case 34:a=-t.containerHeight;break;case 36:a=t.contentHeight;break;case 35:a=-t.contentHeight;break;default:return}t.settings.suppressScrollX&&0!==s||t.settings.suppressScrollY&&0!==a||(i.scrollTop-=a,i.scrollLeft+=s,R(t),e(s,a)&&n.preventDefault())}})},wheel:function(e){function i(t,i){var n=o.scrollTop;if(0===t){if(!e.scrollbarYActive)return!1;if(0===n&&i>0||n>=e.contentHeight-e.containerHeight&&i<0)return!e.settings.wheelPropagation}var r=o.scrollLeft;if(0===i){if(!e.scrollbarXActive)return!1;if(0===r&&t<0||r>=e.contentWidth-e.containerWidth&&t>0)return!e.settings.wheelPropagation}return!0}function n(t){var e=t.deltaX,i=-1*t.deltaY;return void 0!==e&&void 0!==i||(e=-1*t.wheelDeltaX/6,i=t.wheelDeltaY/6),t.deltaMode&&1===t.deltaMode&&(e*=10,i*=10),e!==e&&i!==i&&(e=0,i=t.wheelDelta),t.shiftKey?[-i,-e]:[e,i]}function r(e,i,n){if(!L.isWebKit&&o.querySelector(\"select:focus\"))return!0;if(!o.contains(e))return!1;for(var r=e;r&&r!==o;){if(r.classList.contains(m.element.consuming))return!0;var l=t(r);if([l.overflow,l.overflowX,l.overflowY].join(\"\").match(/(scroll|auto)/)){var s=r.scrollHeight-r.clientHeight;if(s>0&&!(0===r.scrollTop&&n>0||r.scrollTop===s&&n<0))return!0;var a=r.scrollLeft-r.clientWidth;if(a>0&&!(0===r.scrollLeft&&i<0||r.scrollLeft===a&&i>0))return!0}r=r.parentNode}return!1}function l(t){var l=n(t),s=l[0],a=l[1];if(!r(t.target,s,a)){var c=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(a?o.scrollTop-=a*e.settings.wheelSpeed:o.scrollTop+=s*e.settings.wheelSpeed,c=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(s?o.scrollLeft+=s*e.settings.wheelSpeed:o.scrollLeft-=a*e.settings.wheelSpeed,c=!0):(o.scrollTop-=a*e.settings.wheelSpeed,o.scrollLeft+=s*e.settings.wheelSpeed),R(e),(c=c||i(s,a))&&!t.ctrlKey&&(t.stopPropagation(),t.preventDefault())}}var o=e.element;void 0!==window.onwheel?e.event.bind(o,\"wheel\",l):void 0!==window.onmousewheel&&e.event.bind(o,\"mousewheel\",l)},touch:function(t){function e(e,i){var n=h.scrollTop,r=h.scrollLeft,l=Math.abs(e),o=Math.abs(i);if(o>l){if(i<0&&n===t.contentHeight-t.containerHeight||i>0&&0===n)return{stop:!t.settings.swipePropagation,prevent:0===window.scrollY}}else if(l>o&&(e<0&&r===t.contentWidth-t.containerWidth||e>0&&0===r))return{stop:!t.settings.swipePropagation,prevent:!0};return{stop:!0,prevent:!0}}function i(e,i){h.scrollTop-=i,h.scrollLeft-=e,R(t)}function n(){b=!0}function r(){b=!1}function l(t){return t.targetTouches?t.targetTouches[0]:t}function o(t){return!(t.pointerType&&\"pen\"===t.pointerType&&0===t.buttons||(!t.targetTouches||1!==t.targetTouches.length)&&(!t.pointerType||\"mouse\"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))}function s(t){if(o(t)){g=!0;var e=l(t);u.pageX=e.pageX,u.pageY=e.pageY,d=(new Date).getTime(),null!==f&&clearInterval(f),t.stopPropagation()}}function a(n){if(!g&&t.settings.swipePropagation&&s(n),!b&&g&&o(n)){var r=l(n),a={pageX:r.pageX,pageY:r.pageY},c=a.pageX-u.pageX,h=a.pageY-u.pageY;i(c,h),u=a;var f=(new Date).getTime(),v=f-d;v>0&&(p.x=c/v,p.y=h/v,d=f);var m=e(c,h),w=m.stop,Y=m.prevent;w&&n.stopPropagation(),Y&&n.preventDefault()}}function c(){!b&&g&&(g=!1,t.settings.swipeEasing&&(clearInterval(f),f=setInterval(function(){t.isInitialized?clearInterval(f):p.x||p.y?Math.abs(p.x)<.01&&Math.abs(p.y)<.01?clearInterval(f):(i(30*p.x,30*p.y),p.x*=.8,p.y*=.8):clearInterval(f)},10)))}if(L.supportsTouch||L.supportsIePointer){var h=t.element,u={},d=0,p={},f=null,b=!1,g=!1;L.supportsTouch?(t.event.bind(window,\"touchstart\",n),t.event.bind(window,\"touchend\",r),t.event.bind(h,\"touchstart\",s),t.event.bind(h,\"touchmove\",a),t.event.bind(h,\"touchend\",c)):L.supportsIePointer&&(window.PointerEvent?(t.event.bind(window,\"pointerdown\",n),t.event.bind(window,\"pointerup\",r),t.event.bind(h,\"pointerdown\",s),t.event.bind(h,\"pointermove\",a),t.event.bind(h,\"pointerup\",c)):window.MSPointerEvent&&(t.event.bind(window,\"MSPointerDown\",n),t.event.bind(window,\"MSPointerUp\",r),t.event.bind(h,\"MSPointerDown\",s),t.event.bind(h,\"MSPointerMove\",a),t.event.bind(h,\"MSPointerUp\",c)))}}},H=function(n,r){var l=this;if(void 0===r&&(r={}),\"string\"==typeof n&&(n=document.querySelector(n)),!n||!n.nodeName)throw new Error(\"no element is specified to initialize PerfectScrollbar\");this.element=n,n.classList.add(m.main),this.settings={handlers:[\"click-rail\",\"drag-thumb\",\"keyboard\",\"wheel\",\"touch\"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipePropagation:!0,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!1,wheelSpeed:1};for(var o in r)l.settings[o]=r[o];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var s=function(){return n.classList.add(m.state.focus)},a=function(){return n.classList.remove(m.state.focus)};this.isRtl=\"rtl\"===t(n).direction,this.isNegativeScroll=function(){var t=n.scrollLeft,e=null;return n.scrollLeft=-1,e=n.scrollLeft<0,n.scrollLeft=t,e}(),this.negativeScrollAdjustment=this.isNegativeScroll?n.scrollWidth-n.clientWidth:0,this.event=new W,this.ownerDocument=n.ownerDocument||document,this.scrollbarXRail=i(m.element.rail(\"x\")),n.appendChild(this.scrollbarXRail),this.scrollbarX=i(m.element.thumb(\"x\")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute(\"tabindex\",0),this.event.bind(this.scrollbarX,\"focus\",s),this.event.bind(this.scrollbarX,\"blur\",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=t(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=u(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=u(c.borderLeftWidth)+u(c.borderRightWidth),e(this.scrollbarXRail,{display:\"block\"}),this.railXMarginWidth=u(c.marginLeft)+u(c.marginRight),e(this.scrollbarXRail,{display:\"\"}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=i(m.element.rail(\"y\")),n.appendChild(this.scrollbarYRail),this.scrollbarY=i(m.element.thumb(\"y\")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute(\"tabindex\",0),this.event.bind(this.scrollbarY,\"focus\",s),this.event.bind(this.scrollbarY,\"blur\",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var h=t(this.scrollbarYRail);this.scrollbarYRight=parseInt(h.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=u(h.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?p(this.scrollbarY):null,this.railBorderYWidth=u(h.borderTopWidth)+u(h.borderBottomWidth),e(this.scrollbarYRail,{display:\"block\"}),this.railYMarginHeight=u(h.marginTop)+u(h.marginBottom),e(this.scrollbarYRail,{display:\"\"}),this.railYHeight=null,this.railYRatio=null,this.reach={x:n.scrollLeft<=0?\"start\":n.scrollLeft>=this.contentWidth-this.containerWidth?\"end\":null,y:n.scrollTop<=0?\"start\":n.scrollTop>=this.contentHeight-this.containerHeight?\"end\":null},this.isAlive=!0,this.settings.handlers.forEach(function(t){return T[t](l)}),this.lastScrollTop=n.scrollTop,this.lastScrollLeft=n.scrollLeft,this.event.bind(this.element,\"scroll\",function(t){return l.onScroll(t)}),R(this)};return H.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,e(this.scrollbarXRail,{display:\"block\"}),e(this.scrollbarYRail,{display:\"block\"}),this.railXMarginWidth=u(t(this.scrollbarXRail).marginLeft)+u(t(this.scrollbarXRail).marginRight),this.railYMarginHeight=u(t(this.scrollbarYRail).marginTop)+u(t(this.scrollbarYRail).marginBottom),e(this.scrollbarXRail,{display:\"none\"}),e(this.scrollbarYRail,{display:\"none\"}),R(this),y(this,\"top\",0,!1,!0),y(this,\"left\",0,!1,!0),e(this.scrollbarXRail,{display:\"\"}),e(this.scrollbarYRail,{display:\"\"}))},H.prototype.onScroll=function(t){this.isAlive&&(R(this),y(this,\"top\",this.element.scrollTop-this.lastScrollTop),y(this,\"left\",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=this.element.scrollTop,this.lastScrollLeft=this.element.scrollLeft)},H.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),r(this.scrollbarX),r(this.scrollbarY),r(this.scrollbarXRail),r(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},H.prototype.removePsClasses=function(){this.element.className=this.element.className.split(\" \").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(\" \")},H});","/* Flot plugin for rendering pie charts.\n\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\nLicensed under the MIT license.\n\nThe plugin assumes that each series has a single data value, and that each\nvalue is a positive integer or zero. Negative numbers don't make sense for a\npie chart, and have unpredictable results. The values do NOT need to be\npassed in as percentages; the plugin will calculate the total and per-slice\npercentages internally.\n\n* Created by Brian Medendorp\n\n* Updated with contributions from btburnett3, Anthony Aragues and Xavi Ivars\n\nThe plugin supports these options:\n\n\tseries: {\n\t\tpie: {\n\t\t\tshow: true/false\n\t\t\tradius: 0-1 for percentage of fullsize, or a specified pixel length, or 'auto'\n\t\t\tinnerRadius: 0-1 for percentage of fullsize or a specified pixel length, for creating a donut effect\n\t\t\tstartAngle: 0-2 factor of PI used for starting angle (in radians) i.e 3/2 starts at the top, 0 and 2 have the same result\n\t\t\ttilt: 0-1 for percentage to tilt the pie, where 1 is no tilt, and 0 is completely flat (nothing will show)\n\t\t\toffset: {\n\t\t\t\ttop: integer value to move the pie up or down\n\t\t\t\tleft: integer value to move the pie left or right, or 'auto'\n\t\t\t},\n\t\t\tstroke: {\n\t\t\t\tcolor: any hexidecimal color value (other formats may or may not work, so best to stick with something like '#FFF')\n\t\t\t\twidth: integer pixel width of the stroke\n\t\t\t},\n\t\t\tlabel: {\n\t\t\t\tshow: true/false, or 'auto'\n\t\t\t\tformatter: a user-defined function that modifies the text/style of the label text\n\t\t\t\tradius: 0-1 for percentage of fullsize, or a specified pixel length\n\t\t\t\tbackground: {\n\t\t\t\t\tcolor: any hexidecimal color value (other formats may or may not work, so best to stick with something like '#000')\n\t\t\t\t\topacity: 0-1\n\t\t\t\t},\n\t\t\t\tthreshold: 0-1 for the percentage value at which to hide labels (if they're too small)\n\t\t\t},\n\t\t\tcombine: {\n\t\t\t\tthreshold: 0-1 for the percentage value at which to combine slices (if they're too small)\n\t\t\t\tcolor: any hexidecimal color value (other formats may or may not work, so best to stick with something like '#CCC'), if null, the plugin will automatically use the color of the first slice to be combined\n\t\t\t\tlabel: any text value of what the combined slice should be labeled\n\t\t\t}\n\t\t\thighlight: {\n\t\t\t\topacity: 0-1\n\t\t\t}\n\t\t}\n\t}\n\nMore detail and specific examples can be found in the included HTML file.\n\n*/\n\n(function($) {\n\n\t// Maximum redraw attempts when fitting labels within the plot\n\n\tvar REDRAW_ATTEMPTS = 10;\n\n\t// Factor by which to shrink the pie when fitting labels within the plot\n\n\tvar REDRAW_SHRINK = 0.95;\n\n\tfunction init(plot) {\n\n\t\tvar canvas = null,\n\t\t\ttarget = null,\n\t\t\toptions = null,\n\t\t\tmaxRadius = null,\n\t\t\tcenterLeft = null,\n\t\t\tcenterTop = null,\n\t\t\tprocessed = false,\n\t\t\tctx = null;\n\n\t\t// interactive variables\n\n\t\tvar highlights = [];\n\n\t\t// add hook to determine if pie plugin in enabled, and then perform necessary operations\n\n\t\tplot.hooks.processOptions.push(function(plot, options) {\n\t\t\tif (options.series.pie.show) {\n\n\t\t\t\toptions.grid.show = false;\n\n\t\t\t\t// set labels.show\n\n\t\t\t\tif (options.series.pie.label.show == \"auto\") {\n\t\t\t\t\tif (options.legend.show) {\n\t\t\t\t\t\toptions.series.pie.label.show = false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\toptions.series.pie.label.show = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// set radius\n\n\t\t\t\tif (options.series.pie.radius == \"auto\") {\n\t\t\t\t\tif (options.series.pie.label.show) {\n\t\t\t\t\t\toptions.series.pie.radius = 3/4;\n\t\t\t\t\t} else {\n\t\t\t\t\t\toptions.series.pie.radius = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// ensure sane tilt\n\n\t\t\t\tif (options.series.pie.tilt > 1) {\n\t\t\t\t\toptions.series.pie.tilt = 1;\n\t\t\t\t} else if (options.series.pie.tilt < 0) {\n\t\t\t\t\toptions.series.pie.tilt = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tplot.hooks.bindEvents.push(function(plot, eventHolder) {\n\t\t\tvar options = plot.getOptions();\n\t\t\tif (options.series.pie.show) {\n\t\t\t\tif (options.grid.hoverable) {\n\t\t\t\t\teventHolder.unbind(\"mousemove\").mousemove(onMouseMove);\n\t\t\t\t}\n\t\t\t\tif (options.grid.clickable) {\n\t\t\t\t\teventHolder.unbind(\"click\").click(onClick);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tplot.hooks.processDatapoints.push(function(plot, series, data, datapoints) {\n\t\t\tvar options = plot.getOptions();\n\t\t\tif (options.series.pie.show) {\n\t\t\t\tprocessDatapoints(plot, series, data, datapoints);\n\t\t\t}\n\t\t});\n\n\t\tplot.hooks.drawOverlay.push(function(plot, octx) {\n\t\t\tvar options = plot.getOptions();\n\t\t\tif (options.series.pie.show) {\n\t\t\t\tdrawOverlay(plot, octx);\n\t\t\t}\n\t\t});\n\n\t\tplot.hooks.draw.push(function(plot, newCtx) {\n\t\t\tvar options = plot.getOptions();\n\t\t\tif (options.series.pie.show) {\n\t\t\t\tdraw(plot, newCtx);\n\t\t\t}\n\t\t});\n\n\t\tfunction processDatapoints(plot, series, datapoints) {\n\t\t\tif (!processed)\t{\n\t\t\t\tprocessed = true;\n\t\t\t\tcanvas = plot.getCanvas();\n\t\t\t\ttarget = $(canvas).parent();\n\t\t\t\toptions = plot.getOptions();\n\t\t\t\tplot.setData(combine(plot.getData()));\n\t\t\t}\n\t\t}\n\n\t\tfunction combine(data) {\n\n\t\t\tvar total = 0,\n\t\t\t\tcombined = 0,\n\t\t\t\tnumCombined = 0,\n\t\t\t\tcolor = options.series.pie.combine.color,\n\t\t\t\tnewdata = [];\n\n\t\t\t// Fix up the raw data from Flot, ensuring the data is numeric\n\n\t\t\tfor (var i = 0; i < data.length; ++i) {\n\n\t\t\t\tvar value = data[i].data;\n\n\t\t\t\t// If the data is an array, we'll assume that it's a standard\n\t\t\t\t// Flot x-y pair, and are concerned only with the second value.\n\n\t\t\t\t// Note how we use the original array, rather than creating a\n\t\t\t\t// new one; this is more efficient and preserves any extra data\n\t\t\t\t// that the user may have stored in higher indexes.\n\n\t\t\t\tif ($.isArray(value) && value.length == 1) {\n \t\t\t\tvalue = value[0];\n\t\t\t\t}\n\n\t\t\t\tif ($.isArray(value)) {\n\t\t\t\t\t// Equivalent to $.isNumeric() but compatible with jQuery < 1.7\n\t\t\t\t\tif (!isNaN(parseFloat(value[1])) && isFinite(value[1])) {\n\t\t\t\t\t\tvalue[1] = +value[1];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvalue[1] = 0;\n\t\t\t\t\t}\n\t\t\t\t} else if (!isNaN(parseFloat(value)) && isFinite(value)) {\n\t\t\t\t\tvalue = [1, +value];\n\t\t\t\t} else {\n\t\t\t\t\tvalue = [1, 0];\n\t\t\t\t}\n\n\t\t\t\tdata[i].data = [value];\n\t\t\t}\n\n\t\t\t// Sum up all the slices, so we can calculate percentages for each\n\n\t\t\tfor (var i = 0; i < data.length; ++i) {\n\t\t\t\ttotal += data[i].data[0][1];\n\t\t\t}\n\n\t\t\t// Count the number of slices with percentages below the combine\n\t\t\t// threshold; if it turns out to be just one, we won't combine.\n\n\t\t\tfor (var i = 0; i < data.length; ++i) {\n\t\t\t\tvar value = data[i].data[0][1];\n\t\t\t\tif (value / total <= options.series.pie.combine.threshold) {\n\t\t\t\t\tcombined += value;\n\t\t\t\t\tnumCombined++;\n\t\t\t\t\tif (!color) {\n\t\t\t\t\t\tcolor = data[i].color;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (var i = 0; i < data.length; ++i) {\n\t\t\t\tvar value = data[i].data[0][1];\n\t\t\t\tif (numCombined < 2 || value / total > options.series.pie.combine.threshold) {\n\t\t\t\t\tnewdata.push(\n\t\t\t\t\t\t$.extend(data[i], { /* extend to allow keeping all other original data values\n\t\t\t\t\t\t and using them e.g. in labelFormatter. */\n\t\t\t\t\t\t\tdata: [[1, value]],\n\t\t\t\t\t\t\tcolor: data[i].color,\n\t\t\t\t\t\t\tlabel: data[i].label,\n\t\t\t\t\t\t\tangle: value * Math.PI * 2 / total,\n\t\t\t\t\t\t\tpercent: value / (total / 100)\n\t\t\t\t\t\t})\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (numCombined > 1) {\n\t\t\t\tnewdata.push({\n\t\t\t\t\tdata: [[1, combined]],\n\t\t\t\t\tcolor: color,\n\t\t\t\t\tlabel: options.series.pie.combine.label,\n\t\t\t\t\tangle: combined * Math.PI * 2 / total,\n\t\t\t\t\tpercent: combined / (total / 100)\n\t\t\t\t});\n\t\t\t}\n\n\t\t\treturn newdata;\n\t\t}\n\n\t\tfunction draw(plot, newCtx) {\n\n\t\t\tif (!target) {\n\t\t\t\treturn; // if no series were passed\n\t\t\t}\n\n\t\t\tvar canvasWidth = plot.getPlaceholder().width(),\n\t\t\t\tcanvasHeight = plot.getPlaceholder().height(),\n\t\t\t\tlegendWidth = target.children().filter(\".legend\").children().width() || 0;\n\n\t\t\tctx = newCtx;\n\n\t\t\t// WARNING: HACK! REWRITE THIS CODE AS SOON AS POSSIBLE!\n\n\t\t\t// When combining smaller slices into an 'other' slice, we need to\n\t\t\t// add a new series. Since Flot gives plugins no way to modify the\n\t\t\t// list of series, the pie plugin uses a hack where the first call\n\t\t\t// to processDatapoints results in a call to setData with the new\n\t\t\t// list of series, then subsequent processDatapoints do nothing.\n\n\t\t\t// The plugin-global 'processed' flag is used to control this hack;\n\t\t\t// it starts out false, and is set to true after the first call to\n\t\t\t// processDatapoints.\n\n\t\t\t// Unfortunately this turns future setData calls into no-ops; they\n\t\t\t// call processDatapoints, the flag is true, and nothing happens.\n\n\t\t\t// To fix this we'll set the flag back to false here in draw, when\n\t\t\t// all series have been processed, so the next sequence of calls to\n\t\t\t// processDatapoints once again starts out with a slice-combine.\n\t\t\t// This is really a hack; in 0.9 we need to give plugins a proper\n\t\t\t// way to modify series before any processing begins.\n\n\t\t\tprocessed = false;\n\n\t\t\t// calculate maximum radius and center point\n\n\t\t\tmaxRadius = Math.min(canvasWidth, canvasHeight / options.series.pie.tilt) / 2;\n\t\t\tcenterTop = canvasHeight / 2 + options.series.pie.offset.top;\n\t\t\tcenterLeft = canvasWidth / 2;\n\n\t\t\tif (options.series.pie.offset.left == \"auto\") {\n\t\t\t\tif (options.legend.position.match(\"w\")) {\n\t\t\t\t\tcenterLeft += legendWidth / 2;\n\t\t\t\t} else {\n\t\t\t\t\tcenterLeft -= legendWidth / 2;\n\t\t\t\t}\n\t\t\t\tif (centerLeft < maxRadius) {\n\t\t\t\t\tcenterLeft = maxRadius;\n\t\t\t\t} else if (centerLeft > canvasWidth - maxRadius) {\n\t\t\t\t\tcenterLeft = canvasWidth - maxRadius;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcenterLeft += options.series.pie.offset.left;\n\t\t\t}\n\n\t\t\tvar slices = plot.getData(),\n\t\t\t\tattempts = 0;\n\n\t\t\t// Keep shrinking the pie's radius until drawPie returns true,\n\t\t\t// indicating that all the labels fit, or we try too many times.\n\n\t\t\tdo {\n\t\t\t\tif (attempts > 0) {\n\t\t\t\t\tmaxRadius *= REDRAW_SHRINK;\n\t\t\t\t}\n\t\t\t\tattempts += 1;\n\t\t\t\tclear();\n\t\t\t\tif (options.series.pie.tilt <= 0.8) {\n\t\t\t\t\tdrawShadow();\n\t\t\t\t}\n\t\t\t} while (!drawPie() && attempts < REDRAW_ATTEMPTS)\n\n\t\t\tif (attempts >= REDRAW_ATTEMPTS) {\n\t\t\t\tclear();\n\t\t\t\ttarget.prepend(\"
Could not draw pie with labels contained inside canvas
\");\n\t\t\t}\n\n\t\t\tif (plot.setSeries && plot.insertLegend) {\n\t\t\t\tplot.setSeries(slices);\n\t\t\t\tplot.insertLegend();\n\t\t\t}\n\n\t\t\t// we're actually done at this point, just defining internal functions at this point\n\n\t\t\tfunction clear() {\n\t\t\t\tctx.clearRect(0, 0, canvasWidth, canvasHeight);\n\t\t\t\ttarget.children().filter(\".pieLabel, .pieLabelBackground\").remove();\n\t\t\t}\n\n\t\t\tfunction drawShadow() {\n\n\t\t\t\tvar shadowLeft = options.series.pie.shadow.left;\n\t\t\t\tvar shadowTop = options.series.pie.shadow.top;\n\t\t\t\tvar edge = 10;\n\t\t\t\tvar alpha = options.series.pie.shadow.alpha;\n\t\t\t\tvar radius = options.series.pie.radius > 1 ? options.series.pie.radius : maxRadius * options.series.pie.radius;\n\n\t\t\t\tif (radius >= canvasWidth / 2 - shadowLeft || radius * options.series.pie.tilt >= canvasHeight / 2 - shadowTop || radius <= edge) {\n\t\t\t\t\treturn;\t// shadow would be outside canvas, so don't draw it\n\t\t\t\t}\n\n\t\t\t\tctx.save();\n\t\t\t\tctx.translate(shadowLeft,shadowTop);\n\t\t\t\tctx.globalAlpha = alpha;\n\t\t\t\tctx.fillStyle = \"#000\";\n\n\t\t\t\t// center and rotate to starting position\n\n\t\t\t\tctx.translate(centerLeft,centerTop);\n\t\t\t\tctx.scale(1, options.series.pie.tilt);\n\n\t\t\t\t//radius -= edge;\n\n\t\t\t\tfor (var i = 1; i <= edge; i++) {\n\t\t\t\t\tctx.beginPath();\n\t\t\t\t\tctx.arc(0, 0, radius, 0, Math.PI * 2, false);\n\t\t\t\t\tctx.fill();\n\t\t\t\t\tradius -= i;\n\t\t\t\t}\n\n\t\t\t\tctx.restore();\n\t\t\t}\n\n\t\t\tfunction drawPie() {\n\n\t\t\t\tvar startAngle = Math.PI * options.series.pie.startAngle;\n\t\t\t\tvar radius = options.series.pie.radius > 1 ? options.series.pie.radius : maxRadius * options.series.pie.radius;\n\n\t\t\t\t// center and rotate to starting position\n\n\t\t\t\tctx.save();\n\t\t\t\tctx.translate(centerLeft,centerTop);\n\t\t\t\tctx.scale(1, options.series.pie.tilt);\n\t\t\t\t//ctx.rotate(startAngle); // start at top; -- This doesn't work properly in Opera\n\n\t\t\t\t// draw slices\n\n\t\t\t\tctx.save();\n\t\t\t\tvar currentAngle = startAngle;\n\t\t\t\tfor (var i = 0; i < slices.length; ++i) {\n\t\t\t\t\tslices[i].startAngle = currentAngle;\n\t\t\t\t\tdrawSlice(slices[i].angle, slices[i].color, true);\n\t\t\t\t}\n\t\t\t\tctx.restore();\n\n\t\t\t\t// draw slice outlines\n\n\t\t\t\tif (options.series.pie.stroke.width > 0) {\n\t\t\t\t\tctx.save();\n\t\t\t\t\tctx.lineWidth = options.series.pie.stroke.width;\n\t\t\t\t\tcurrentAngle = startAngle;\n\t\t\t\t\tfor (var i = 0; i < slices.length; ++i) {\n\t\t\t\t\t\tdrawSlice(slices[i].angle, options.series.pie.stroke.color, false);\n\t\t\t\t\t}\n\t\t\t\t\tctx.restore();\n\t\t\t\t}\n\n\t\t\t\t// draw donut hole\n\n\t\t\t\tdrawDonutHole(ctx);\n\n\t\t\t\tctx.restore();\n\n\t\t\t\t// Draw the labels, returning true if they fit within the plot\n\n\t\t\t\tif (options.series.pie.label.show) {\n\t\t\t\t\treturn drawLabels();\n\t\t\t\t} else return true;\n\n\t\t\t\tfunction drawSlice(angle, color, fill) {\n\n\t\t\t\t\tif (angle <= 0 || isNaN(angle)) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (fill) {\n\t\t\t\t\t\tctx.fillStyle = color;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tctx.strokeStyle = color;\n\t\t\t\t\t\tctx.lineJoin = \"round\";\n\t\t\t\t\t}\n\n\t\t\t\t\tctx.beginPath();\n\t\t\t\t\tif (Math.abs(angle - Math.PI * 2) > 0.000000001) {\n\t\t\t\t\t\tctx.moveTo(0, 0); // Center of the pie\n\t\t\t\t\t}\n\n\t\t\t\t\t//ctx.arc(0, 0, radius, 0, angle, false); // This doesn't work properly in Opera\n\t\t\t\t\tctx.arc(0, 0, radius,currentAngle, currentAngle + angle / 2, false);\n\t\t\t\t\tctx.arc(0, 0, radius,currentAngle + angle / 2, currentAngle + angle, false);\n\t\t\t\t\tctx.closePath();\n\t\t\t\t\t//ctx.rotate(angle); // This doesn't work properly in Opera\n\t\t\t\t\tcurrentAngle += angle;\n\n\t\t\t\t\tif (fill) {\n\t\t\t\t\t\tctx.fill();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tctx.stroke();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfunction drawLabels() {\n\n\t\t\t\t\tvar currentAngle = startAngle;\n\t\t\t\t\tvar radius = options.series.pie.label.radius > 1 ? options.series.pie.label.radius : maxRadius * options.series.pie.label.radius;\n\n\t\t\t\t\tfor (var i = 0; i < slices.length; ++i) {\n\t\t\t\t\t\tif (slices[i].percent >= options.series.pie.label.threshold * 100) {\n\t\t\t\t\t\t\tif (!drawLabel(slices[i], currentAngle, i)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentAngle += slices[i].angle;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn true;\n\n\t\t\t\t\tfunction drawLabel(slice, startAngle, index) {\n\n\t\t\t\t\t\tif (slice.data[0][1] == 0) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// format label text\n\n\t\t\t\t\t\tvar lf = options.legend.labelFormatter, text, plf = options.series.pie.label.formatter;\n\n\t\t\t\t\t\tif (lf) {\n\t\t\t\t\t\t\ttext = lf(slice.label, slice);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttext = slice.label;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (plf) {\n\t\t\t\t\t\t\ttext = plf(text, slice);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar halfAngle = ((startAngle + slice.angle) + startAngle) / 2;\n\t\t\t\t\t\tvar x = centerLeft + Math.round(Math.cos(halfAngle) * radius);\n\t\t\t\t\t\tvar y = centerTop + Math.round(Math.sin(halfAngle) * radius) * options.series.pie.tilt;\n\n\t\t\t\t\t\tvar html = \"\" + text + \"\";\n\t\t\t\t\t\ttarget.append(html);\n\n\t\t\t\t\t\tvar label = target.children(\"#pieLabel\" + index);\n\t\t\t\t\t\tvar labelTop = (y - label.height() / 2);\n\t\t\t\t\t\tvar labelLeft = (x - label.width() / 2);\n\n\t\t\t\t\t\tlabel.css(\"top\", labelTop);\n\t\t\t\t\t\tlabel.css(\"left\", labelLeft);\n\n\t\t\t\t\t\t// check to make sure that the label is not outside the canvas\n\n\t\t\t\t\t\tif (0 - labelTop > 0 || 0 - labelLeft > 0 || canvasHeight - (labelTop + label.height()) < 0 || canvasWidth - (labelLeft + label.width()) < 0) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (options.series.pie.label.background.opacity != 0) {\n\n\t\t\t\t\t\t\t// put in the transparent background separately to avoid blended labels and label boxes\n\n\t\t\t\t\t\t\tvar c = options.series.pie.label.background.color;\n\n\t\t\t\t\t\t\tif (c == null) {\n\t\t\t\t\t\t\t\tc = slice.color;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tvar pos = \"top:\" + labelTop + \"px;left:\" + labelLeft + \"px;\";\n\t\t\t\t\t\t\t$(\"
\")\n\t\t\t\t\t\t\t\t.css(\"opacity\", options.series.pie.label.background.opacity)\n\t\t\t\t\t\t\t\t.insertBefore(label);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t} // end individual label function\n\t\t\t\t} // end drawLabels function\n\t\t\t} // end drawPie function\n\t\t} // end draw function\n\n\t\t// Placed here because it needs to be accessed from multiple locations\n\n\t\tfunction drawDonutHole(layer) {\n\t\t\tif (options.series.pie.innerRadius > 0) {\n\n\t\t\t\t// subtract the center\n\n\t\t\t\tlayer.save();\n\t\t\t\tvar innerRadius = options.series.pie.innerRadius > 1 ? options.series.pie.innerRadius : maxRadius * options.series.pie.innerRadius;\n\t\t\t\tlayer.globalCompositeOperation = \"destination-out\"; // this does not work with excanvas, but it will fall back to using the stroke color\n\t\t\t\tlayer.beginPath();\n\t\t\t\tlayer.fillStyle = options.series.pie.stroke.color;\n\t\t\t\tlayer.arc(0, 0, innerRadius, 0, Math.PI * 2, false);\n\t\t\t\tlayer.fill();\n\t\t\t\tlayer.closePath();\n\t\t\t\tlayer.restore();\n\n\t\t\t\t// add inner stroke\n\n\t\t\t\tlayer.save();\n\t\t\t\tlayer.beginPath();\n\t\t\t\tlayer.strokeStyle = options.series.pie.stroke.color;\n\t\t\t\tlayer.arc(0, 0, innerRadius, 0, Math.PI * 2, false);\n\t\t\t\tlayer.stroke();\n\t\t\t\tlayer.closePath();\n\t\t\t\tlayer.restore();\n\n\t\t\t\t// TODO: add extra shadow inside hole (with a mask) if the pie is tilted.\n\t\t\t}\n\t\t}\n\n\t\t//-- Additional Interactive related functions --\n\n\t\tfunction isPointInPoly(poly, pt) {\n\t\t\tfor(var c = false, i = -1, l = poly.length, j = l - 1; ++i < l; j = i)\n\t\t\t\t((poly[i][1] <= pt[1] && pt[1] < poly[j][1]) || (poly[j][1] <= pt[1] && pt[1]< poly[i][1]))\n\t\t\t\t&& (pt[0] < (poly[j][0] - poly[i][0]) * (pt[1] - poly[i][1]) / (poly[j][1] - poly[i][1]) + poly[i][0])\n\t\t\t\t&& (c = !c);\n\t\t\treturn c;\n\t\t}\n\n\t\tfunction findNearbySlice(mouseX, mouseY) {\n\n\t\t\tvar slices = plot.getData(),\n\t\t\t\toptions = plot.getOptions(),\n\t\t\t\tradius = options.series.pie.radius > 1 ? options.series.pie.radius : maxRadius * options.series.pie.radius,\n\t\t\t\tx, y;\n\n\t\t\tfor (var i = 0; i < slices.length; ++i) {\n\n\t\t\t\tvar s = slices[i];\n\n\t\t\t\tif (s.pie.show) {\n\n\t\t\t\t\tctx.save();\n\t\t\t\t\tctx.beginPath();\n\t\t\t\t\tctx.moveTo(0, 0); // Center of the pie\n\t\t\t\t\t//ctx.scale(1, options.series.pie.tilt);\t// this actually seems to break everything when here.\n\t\t\t\t\tctx.arc(0, 0, radius, s.startAngle, s.startAngle + s.angle / 2, false);\n\t\t\t\t\tctx.arc(0, 0, radius, s.startAngle + s.angle / 2, s.startAngle + s.angle, false);\n\t\t\t\t\tctx.closePath();\n\t\t\t\t\tx = mouseX - centerLeft;\n\t\t\t\t\ty = mouseY - centerTop;\n\n\t\t\t\t\tif (ctx.isPointInPath) {\n\t\t\t\t\t\tif (ctx.isPointInPath(mouseX - centerLeft, mouseY - centerTop)) {\n\t\t\t\t\t\t\tctx.restore();\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\tdatapoint: [s.percent, s.data],\n\t\t\t\t\t\t\t\tdataIndex: 0,\n\t\t\t\t\t\t\t\tseries: s,\n\t\t\t\t\t\t\t\tseriesIndex: i\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// excanvas for IE doesn;t support isPointInPath, this is a workaround.\n\n\t\t\t\t\t\tvar p1X = radius * Math.cos(s.startAngle),\n\t\t\t\t\t\t\tp1Y = radius * Math.sin(s.startAngle),\n\t\t\t\t\t\t\tp2X = radius * Math.cos(s.startAngle + s.angle / 4),\n\t\t\t\t\t\t\tp2Y = radius * Math.sin(s.startAngle + s.angle / 4),\n\t\t\t\t\t\t\tp3X = radius * Math.cos(s.startAngle + s.angle / 2),\n\t\t\t\t\t\t\tp3Y = radius * Math.sin(s.startAngle + s.angle / 2),\n\t\t\t\t\t\t\tp4X = radius * Math.cos(s.startAngle + s.angle / 1.5),\n\t\t\t\t\t\t\tp4Y = radius * Math.sin(s.startAngle + s.angle / 1.5),\n\t\t\t\t\t\t\tp5X = radius * Math.cos(s.startAngle + s.angle),\n\t\t\t\t\t\t\tp5Y = radius * Math.sin(s.startAngle + s.angle),\n\t\t\t\t\t\t\tarrPoly = [[0, 0], [p1X, p1Y], [p2X, p2Y], [p3X, p3Y], [p4X, p4Y], [p5X, p5Y]],\n\t\t\t\t\t\t\tarrPoint = [x, y];\n\n\t\t\t\t\t\t// TODO: perhaps do some mathmatical trickery here with the Y-coordinate to compensate for pie tilt?\n\n\t\t\t\t\t\tif (isPointInPoly(arrPoly, arrPoint)) {\n\t\t\t\t\t\t\tctx.restore();\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\tdatapoint: [s.percent, s.data],\n\t\t\t\t\t\t\t\tdataIndex: 0,\n\t\t\t\t\t\t\t\tseries: s,\n\t\t\t\t\t\t\t\tseriesIndex: i\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tctx.restore();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}\n\n\t\tfunction onMouseMove(e) {\n\t\t\ttriggerClickHoverEvent(\"plothover\", e);\n\t\t}\n\n\t\tfunction onClick(e) {\n\t\t\ttriggerClickHoverEvent(\"plotclick\", e);\n\t\t}\n\n\t\t// trigger click or hover event (they send the same parameters so we share their code)\n\n\t\tfunction triggerClickHoverEvent(eventname, e) {\n\n\t\t\tvar offset = plot.offset();\n\t\t\tvar canvasX = parseInt(e.pageX - offset.left);\n\t\t\tvar canvasY = parseInt(e.pageY - offset.top);\n\t\t\tvar item = findNearbySlice(canvasX, canvasY);\n\n\t\t\tif (options.grid.autoHighlight) {\n\n\t\t\t\t// clear auto-highlights\n\n\t\t\t\tfor (var i = 0; i < highlights.length; ++i) {\n\t\t\t\t\tvar h = highlights[i];\n\t\t\t\t\tif (h.auto == eventname && !(item && h.series == item.series)) {\n\t\t\t\t\t\tunhighlight(h.series);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// highlight the slice\n\n\t\t\tif (item) {\n\t\t\t\thighlight(item.series, eventname);\n\t\t\t}\n\n\t\t\t// trigger any hover bind events\n\n\t\t\tvar pos = { pageX: e.pageX, pageY: e.pageY };\n\t\t\ttarget.trigger(eventname, [pos, item]);\n\t\t}\n\n\t\tfunction highlight(s, auto) {\n\t\t\t//if (typeof s == \"number\") {\n\t\t\t//\ts = series[s];\n\t\t\t//}\n\n\t\t\tvar i = indexOfHighlight(s);\n\n\t\t\tif (i == -1) {\n\t\t\t\thighlights.push({ series: s, auto: auto });\n\t\t\t\tplot.triggerRedrawOverlay();\n\t\t\t} else if (!auto) {\n\t\t\t\thighlights[i].auto = false;\n\t\t\t}\n\t\t}\n\n\t\tfunction unhighlight(s) {\n\t\t\tif (s == null) {\n\t\t\t\thighlights = [];\n\t\t\t\tplot.triggerRedrawOverlay();\n\t\t\t}\n\n\t\t\t//if (typeof s == \"number\") {\n\t\t\t//\ts = series[s];\n\t\t\t//}\n\n\t\t\tvar i = indexOfHighlight(s);\n\n\t\t\tif (i != -1) {\n\t\t\t\thighlights.splice(i, 1);\n\t\t\t\tplot.triggerRedrawOverlay();\n\t\t\t}\n\t\t}\n\n\t\tfunction indexOfHighlight(s) {\n\t\t\tfor (var i = 0; i < highlights.length; ++i) {\n\t\t\t\tvar h = highlights[i];\n\t\t\t\tif (h.series == s)\n\t\t\t\t\treturn i;\n\t\t\t}\n\t\t\treturn -1;\n\t\t}\n\n\t\tfunction drawOverlay(plot, octx) {\n\n\t\t\tvar options = plot.getOptions();\n\n\t\t\tvar radius = options.series.pie.radius > 1 ? options.series.pie.radius : maxRadius * options.series.pie.radius;\n\n\t\t\toctx.save();\n\t\t\toctx.translate(centerLeft, centerTop);\n\t\t\toctx.scale(1, options.series.pie.tilt);\n\n\t\t\tfor (var i = 0; i < highlights.length; ++i) {\n\t\t\t\tdrawHighlight(highlights[i].series);\n\t\t\t}\n\n\t\t\tdrawDonutHole(octx);\n\n\t\t\toctx.restore();\n\n\t\t\tfunction drawHighlight(series) {\n\n\t\t\t\tif (series.angle <= 0 || isNaN(series.angle)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t//octx.fillStyle = parseColor(options.series.pie.highlight.color).scale(null, null, null, options.series.pie.highlight.opacity).toString();\n\t\t\t\toctx.fillStyle = \"rgba(255, 255, 255, \" + options.series.pie.highlight.opacity + \")\"; // this is temporary until we have access to parseColor\n\t\t\t\toctx.beginPath();\n\t\t\t\tif (Math.abs(series.angle - Math.PI * 2) > 0.000000001) {\n\t\t\t\t\toctx.moveTo(0, 0); // Center of the pie\n\t\t\t\t}\n\t\t\t\toctx.arc(0, 0, radius, series.startAngle, series.startAngle + series.angle / 2, false);\n\t\t\t\toctx.arc(0, 0, radius, series.startAngle + series.angle / 2, series.startAngle + series.angle, false);\n\t\t\t\toctx.closePath();\n\t\t\t\toctx.fill();\n\t\t\t}\n\t\t}\n\t} // end init (plugin body)\n\n\t// define pie specific options and their default values\n\n\tvar options = {\n\t\tseries: {\n\t\t\tpie: {\n\t\t\t\tshow: false,\n\t\t\t\tradius: \"auto\",\t// actual radius of the visible pie (based on full calculated radius if <=1, or hard pixel value)\n\t\t\t\tinnerRadius: 0, /* for donut */\n\t\t\t\tstartAngle: 3/2,\n\t\t\t\ttilt: 1,\n\t\t\t\tshadow: {\n\t\t\t\t\tleft: 5,\t// shadow left offset\n\t\t\t\t\ttop: 15,\t// shadow top offset\n\t\t\t\t\talpha: 0.02\t// shadow alpha\n\t\t\t\t},\n\t\t\t\toffset: {\n\t\t\t\t\ttop: 0,\n\t\t\t\t\tleft: \"auto\"\n\t\t\t\t},\n\t\t\t\tstroke: {\n\t\t\t\t\tcolor: \"#fff\",\n\t\t\t\t\twidth: 1\n\t\t\t\t},\n\t\t\t\tlabel: {\n\t\t\t\t\tshow: \"auto\",\n\t\t\t\t\tformatter: function(label, slice) {\n\t\t\t\t\t\treturn \"
\" + label + \"
\" + Math.round(slice.percent) + \"%
\";\n\t\t\t\t\t},\t// formatter function\n\t\t\t\t\tradius: 1,\t// radius at which to place the labels (based on full calculated radius if <=1, or hard pixel value)\n\t\t\t\t\tbackground: {\n\t\t\t\t\t\tcolor: null,\n\t\t\t\t\t\topacity: 0\n\t\t\t\t\t},\n\t\t\t\t\tthreshold: 0\t// percentage at which to hide the label (i.e. the slice is too narrow)\n\t\t\t\t},\n\t\t\t\tcombine: {\n\t\t\t\t\tthreshold: -1,\t// percentage at which to combine little slices into one larger slice\n\t\t\t\t\tcolor: null,\t// color to give the new slice (auto-generated if null)\n\t\t\t\t\tlabel: \"Other\"\t// label to give the new slice\n\t\t\t\t},\n\t\t\t\thighlight: {\n\t\t\t\t\t//color: \"#fff\",\t\t// will add this functionality once parseColor is available\n\t\t\t\t\topacity: 0.5\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\t$.plot.plugins.push({\n\t\tinit: init,\n\t\toptions: options,\n\t\tname: \"pie\",\n\t\tversion: \"1.1\"\n\t});\n\n})(jQuery);\n","/* Pretty handling of time axes.\n\nCopyright (c) 2007-2014 IOLA and Ole Laursen.\nLicensed under the MIT license.\n\nSet axis.mode to \"time\" to enable. See the section \"Time series data\" in\nAPI.txt for details.\n\n*/\n\n(function($) {\n\n\tvar options = {\n\t\txaxis: {\n\t\t\ttimezone: null,\t\t// \"browser\" for local to the client or timezone for timezone-js\n\t\t\ttimeformat: null,\t// format string to use\n\t\t\ttwelveHourClock: false,\t// 12 or 24 time in time mode\n\t\t\tmonthNames: null\t// list of names of months\n\t\t}\n\t};\n\n\t// round to nearby lower multiple of base\n\n\tfunction floorInBase(n, base) {\n\t\treturn base * Math.floor(n / base);\n\t}\n\n\t// Returns a string with the date d formatted according to fmt.\n\t// A subset of the Open Group's strftime format is supported.\n\n\tfunction formatDate(d, fmt, monthNames, dayNames) {\n\n\t\tif (typeof d.strftime == \"function\") {\n\t\t\treturn d.strftime(fmt);\n\t\t}\n\n\t\tvar leftPad = function(n, pad) {\n\t\t\tn = \"\" + n;\n\t\t\tpad = \"\" + (pad == null ? \"0\" : pad);\n\t\t\treturn n.length == 1 ? pad + n : n;\n\t\t};\n\n\t\tvar r = [];\n\t\tvar escape = false;\n\t\tvar hours = d.getHours();\n\t\tvar isAM = hours < 12;\n\n\t\tif (monthNames == null) {\n\t\t\tmonthNames = [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"];\n\t\t}\n\n\t\tif (dayNames == null) {\n\t\t\tdayNames = [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"];\n\t\t}\n\n\t\tvar hours12;\n\n\t\tif (hours > 12) {\n\t\t\thours12 = hours - 12;\n\t\t} else if (hours == 0) {\n\t\t\thours12 = 12;\n\t\t} else {\n\t\t\thours12 = hours;\n\t\t}\n\n\t\tfor (var i = 0; i < fmt.length; ++i) {\n\n\t\t\tvar c = fmt.charAt(i);\n\n\t\t\tif (escape) {\n\t\t\t\tswitch (c) {\n\t\t\t\t\tcase 'a': c = \"\" + dayNames[d.getDay()]; break;\n\t\t\t\t\tcase 'b': c = \"\" + monthNames[d.getMonth()]; break;\n\t\t\t\t\tcase 'd': c = leftPad(d.getDate()); break;\n\t\t\t\t\tcase 'e': c = leftPad(d.getDate(), \" \"); break;\n\t\t\t\t\tcase 'h':\t// For back-compat with 0.7; remove in 1.0\n\t\t\t\t\tcase 'H': c = leftPad(hours); break;\n\t\t\t\t\tcase 'I': c = leftPad(hours12); break;\n\t\t\t\t\tcase 'l': c = leftPad(hours12, \" \"); break;\n\t\t\t\t\tcase 'm': c = leftPad(d.getMonth() + 1); break;\n\t\t\t\t\tcase 'M': c = leftPad(d.getMinutes()); break;\n\t\t\t\t\t// quarters not in Open Group's strftime specification\n\t\t\t\t\tcase 'q':\n\t\t\t\t\t\tc = \"\" + (Math.floor(d.getMonth() / 3) + 1); break;\n\t\t\t\t\tcase 'S': c = leftPad(d.getSeconds()); break;\n\t\t\t\t\tcase 'y': c = leftPad(d.getFullYear() % 100); break;\n\t\t\t\t\tcase 'Y': c = \"\" + d.getFullYear(); break;\n\t\t\t\t\tcase 'p': c = (isAM) ? (\"\" + \"am\") : (\"\" + \"pm\"); break;\n\t\t\t\t\tcase 'P': c = (isAM) ? (\"\" + \"AM\") : (\"\" + \"PM\"); break;\n\t\t\t\t\tcase 'w': c = \"\" + d.getDay(); break;\n\t\t\t\t}\n\t\t\t\tr.push(c);\n\t\t\t\tescape = false;\n\t\t\t} else {\n\t\t\t\tif (c == \"%\") {\n\t\t\t\t\tescape = true;\n\t\t\t\t} else {\n\t\t\t\t\tr.push(c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn r.join(\"\");\n\t}\n\n\t// To have a consistent view of time-based data independent of which time\n\t// zone the client happens to be in we need a date-like object independent\n\t// of time zones. This is done through a wrapper that only calls the UTC\n\t// versions of the accessor methods.\n\n\tfunction makeUtcWrapper(d) {\n\n\t\tfunction addProxyMethod(sourceObj, sourceMethod, targetObj, targetMethod) {\n\t\t\tsourceObj[sourceMethod] = function() {\n\t\t\t\treturn targetObj[targetMethod].apply(targetObj, arguments);\n\t\t\t};\n\t\t};\n\n\t\tvar utc = {\n\t\t\tdate: d\n\t\t};\n\n\t\t// support strftime, if found\n\n\t\tif (d.strftime != undefined) {\n\t\t\taddProxyMethod(utc, \"strftime\", d, \"strftime\");\n\t\t}\n\n\t\taddProxyMethod(utc, \"getTime\", d, \"getTime\");\n\t\taddProxyMethod(utc, \"setTime\", d, \"setTime\");\n\n\t\tvar props = [\"Date\", \"Day\", \"FullYear\", \"Hours\", \"Milliseconds\", \"Minutes\", \"Month\", \"Seconds\"];\n\n\t\tfor (var p = 0; p < props.length; p++) {\n\t\t\taddProxyMethod(utc, \"get\" + props[p], d, \"getUTC\" + props[p]);\n\t\t\taddProxyMethod(utc, \"set\" + props[p], d, \"setUTC\" + props[p]);\n\t\t}\n\n\t\treturn utc;\n\t};\n\n\t// select time zone strategy. This returns a date-like object tied to the\n\t// desired timezone\n\n\tfunction dateGenerator(ts, opts) {\n\t\tif (opts.timezone == \"browser\") {\n\t\t\treturn new Date(ts);\n\t\t} else if (!opts.timezone || opts.timezone == \"utc\") {\n\t\t\treturn makeUtcWrapper(new Date(ts));\n\t\t} else if (typeof timezoneJS != \"undefined\" && typeof timezoneJS.Date != \"undefined\") {\n\t\t\tvar d = new timezoneJS.Date();\n\t\t\t// timezone-js is fickle, so be sure to set the time zone before\n\t\t\t// setting the time.\n\t\t\td.setTimezone(opts.timezone);\n\t\t\td.setTime(ts);\n\t\t\treturn d;\n\t\t} else {\n\t\t\treturn makeUtcWrapper(new Date(ts));\n\t\t}\n\t}\n\t\n\t// map of app. size of time units in milliseconds\n\n\tvar timeUnitSize = {\n\t\t\"second\": 1000,\n\t\t\"minute\": 60 * 1000,\n\t\t\"hour\": 60 * 60 * 1000,\n\t\t\"day\": 24 * 60 * 60 * 1000,\n\t\t\"month\": 30 * 24 * 60 * 60 * 1000,\n\t\t\"quarter\": 3 * 30 * 24 * 60 * 60 * 1000,\n\t\t\"year\": 365.2425 * 24 * 60 * 60 * 1000\n\t};\n\n\t// the allowed tick sizes, after 1 year we use\n\t// an integer algorithm\n\n\tvar baseSpec = [\n\t\t[1, \"second\"], [2, \"second\"], [5, \"second\"], [10, \"second\"],\n\t\t[30, \"second\"], \n\t\t[1, \"minute\"], [2, \"minute\"], [5, \"minute\"], [10, \"minute\"],\n\t\t[30, \"minute\"], \n\t\t[1, \"hour\"], [2, \"hour\"], [4, \"hour\"],\n\t\t[8, \"hour\"], [12, \"hour\"],\n\t\t[1, \"day\"], [2, \"day\"], [3, \"day\"],\n\t\t[0.25, \"month\"], [0.5, \"month\"], [1, \"month\"],\n\t\t[2, \"month\"]\n\t];\n\n\t// we don't know which variant(s) we'll need yet, but generating both is\n\t// cheap\n\n\tvar specMonths = baseSpec.concat([[3, \"month\"], [6, \"month\"],\n\t\t[1, \"year\"]]);\n\tvar specQuarters = baseSpec.concat([[1, \"quarter\"], [2, \"quarter\"],\n\t\t[1, \"year\"]]);\n\n\tfunction init(plot) {\n\t\tplot.hooks.processOptions.push(function (plot, options) {\n\t\t\t$.each(plot.getAxes(), function(axisName, axis) {\n\n\t\t\t\tvar opts = axis.options;\n\n\t\t\t\tif (opts.mode == \"time\") {\n\t\t\t\t\taxis.tickGenerator = function(axis) {\n\n\t\t\t\t\t\tvar ticks = [];\n\t\t\t\t\t\tvar d = dateGenerator(axis.min, opts);\n\t\t\t\t\t\tvar minSize = 0;\n\n\t\t\t\t\t\t// make quarter use a possibility if quarters are\n\t\t\t\t\t\t// mentioned in either of these options\n\n\t\t\t\t\t\tvar spec = (opts.tickSize && opts.tickSize[1] ===\n\t\t\t\t\t\t\t\"quarter\") ||\n\t\t\t\t\t\t\t(opts.minTickSize && opts.minTickSize[1] ===\n\t\t\t\t\t\t\t\"quarter\") ? specQuarters : specMonths;\n\n\t\t\t\t\t\tif (opts.minTickSize != null) {\n\t\t\t\t\t\t\tif (typeof opts.tickSize == \"number\") {\n\t\t\t\t\t\t\t\tminSize = opts.tickSize;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tminSize = opts.minTickSize[0] * timeUnitSize[opts.minTickSize[1]];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfor (var i = 0; i < spec.length - 1; ++i) {\n\t\t\t\t\t\t\tif (axis.delta < (spec[i][0] * timeUnitSize[spec[i][1]]\n\t\t\t\t\t\t\t\t\t\t\t + spec[i + 1][0] * timeUnitSize[spec[i + 1][1]]) / 2\n\t\t\t\t\t\t\t\t&& spec[i][0] * timeUnitSize[spec[i][1]] >= minSize) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar size = spec[i][0];\n\t\t\t\t\t\tvar unit = spec[i][1];\n\n\t\t\t\t\t\t// special-case the possibility of several years\n\n\t\t\t\t\t\tif (unit == \"year\") {\n\n\t\t\t\t\t\t\t// if given a minTickSize in years, just use it,\n\t\t\t\t\t\t\t// ensuring that it's an integer\n\n\t\t\t\t\t\t\tif (opts.minTickSize != null && opts.minTickSize[1] == \"year\") {\n\t\t\t\t\t\t\t\tsize = Math.floor(opts.minTickSize[0]);\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tvar magn = Math.pow(10, Math.floor(Math.log(axis.delta / timeUnitSize.year) / Math.LN10));\n\t\t\t\t\t\t\t\tvar norm = (axis.delta / timeUnitSize.year) / magn;\n\n\t\t\t\t\t\t\t\tif (norm < 1.5) {\n\t\t\t\t\t\t\t\t\tsize = 1;\n\t\t\t\t\t\t\t\t} else if (norm < 3) {\n\t\t\t\t\t\t\t\t\tsize = 2;\n\t\t\t\t\t\t\t\t} else if (norm < 7.5) {\n\t\t\t\t\t\t\t\t\tsize = 5;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tsize = 10;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tsize *= magn;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// minimum size for years is 1\n\n\t\t\t\t\t\t\tif (size < 1) {\n\t\t\t\t\t\t\t\tsize = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\taxis.tickSize = opts.tickSize || [size, unit];\n\t\t\t\t\t\tvar tickSize = axis.tickSize[0];\n\t\t\t\t\t\tunit = axis.tickSize[1];\n\n\t\t\t\t\t\tvar step = tickSize * timeUnitSize[unit];\n\n\t\t\t\t\t\tif (unit == \"second\") {\n\t\t\t\t\t\t\td.setSeconds(floorInBase(d.getSeconds(), tickSize));\n\t\t\t\t\t\t} else if (unit == \"minute\") {\n\t\t\t\t\t\t\td.setMinutes(floorInBase(d.getMinutes(), tickSize));\n\t\t\t\t\t\t} else if (unit == \"hour\") {\n\t\t\t\t\t\t\td.setHours(floorInBase(d.getHours(), tickSize));\n\t\t\t\t\t\t} else if (unit == \"month\") {\n\t\t\t\t\t\t\td.setMonth(floorInBase(d.getMonth(), tickSize));\n\t\t\t\t\t\t} else if (unit == \"quarter\") {\n\t\t\t\t\t\t\td.setMonth(3 * floorInBase(d.getMonth() / 3,\n\t\t\t\t\t\t\t\ttickSize));\n\t\t\t\t\t\t} else if (unit == \"year\") {\n\t\t\t\t\t\t\td.setFullYear(floorInBase(d.getFullYear(), tickSize));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// reset smaller components\n\n\t\t\t\t\t\td.setMilliseconds(0);\n\n\t\t\t\t\t\tif (step >= timeUnitSize.minute) {\n\t\t\t\t\t\t\td.setSeconds(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (step >= timeUnitSize.hour) {\n\t\t\t\t\t\t\td.setMinutes(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (step >= timeUnitSize.day) {\n\t\t\t\t\t\t\td.setHours(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (step >= timeUnitSize.day * 4) {\n\t\t\t\t\t\t\td.setDate(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (step >= timeUnitSize.month * 2) {\n\t\t\t\t\t\t\td.setMonth(floorInBase(d.getMonth(), 3));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (step >= timeUnitSize.quarter * 2) {\n\t\t\t\t\t\t\td.setMonth(floorInBase(d.getMonth(), 6));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (step >= timeUnitSize.year) {\n\t\t\t\t\t\t\td.setMonth(0);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar carry = 0;\n\t\t\t\t\t\tvar v = Number.NaN;\n\t\t\t\t\t\tvar prev;\n\n\t\t\t\t\t\tdo {\n\n\t\t\t\t\t\t\tprev = v;\n\t\t\t\t\t\t\tv = d.getTime();\n\t\t\t\t\t\t\tticks.push(v);\n\n\t\t\t\t\t\t\tif (unit == \"month\" || unit == \"quarter\") {\n\t\t\t\t\t\t\t\tif (tickSize < 1) {\n\n\t\t\t\t\t\t\t\t\t// a bit complicated - we'll divide the\n\t\t\t\t\t\t\t\t\t// month/quarter up but we need to take\n\t\t\t\t\t\t\t\t\t// care of fractions so we don't end up in\n\t\t\t\t\t\t\t\t\t// the middle of a day\n\n\t\t\t\t\t\t\t\t\td.setDate(1);\n\t\t\t\t\t\t\t\t\tvar start = d.getTime();\n\t\t\t\t\t\t\t\t\td.setMonth(d.getMonth() +\n\t\t\t\t\t\t\t\t\t\t(unit == \"quarter\" ? 3 : 1));\n\t\t\t\t\t\t\t\t\tvar end = d.getTime();\n\t\t\t\t\t\t\t\t\td.setTime(v + carry * timeUnitSize.hour + (end - start) * tickSize);\n\t\t\t\t\t\t\t\t\tcarry = d.getHours();\n\t\t\t\t\t\t\t\t\td.setHours(0);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\td.setMonth(d.getMonth() +\n\t\t\t\t\t\t\t\t\t\ttickSize * (unit == \"quarter\" ? 3 : 1));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (unit == \"year\") {\n\t\t\t\t\t\t\t\td.setFullYear(d.getFullYear() + tickSize);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\td.setTime(v + step);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} while (v < axis.max && v != prev);\n\n\t\t\t\t\t\treturn ticks;\n\t\t\t\t\t};\n\n\t\t\t\t\taxis.tickFormatter = function (v, axis) {\n\n\t\t\t\t\t\tvar d = dateGenerator(v, axis.options);\n\n\t\t\t\t\t\t// first check global format\n\n\t\t\t\t\t\tif (opts.timeformat != null) {\n\t\t\t\t\t\t\treturn formatDate(d, opts.timeformat, opts.monthNames, opts.dayNames);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// possibly use quarters if quarters are mentioned in\n\t\t\t\t\t\t// any of these places\n\n\t\t\t\t\t\tvar useQuarters = (axis.options.tickSize &&\n\t\t\t\t\t\t\t\taxis.options.tickSize[1] == \"quarter\") ||\n\t\t\t\t\t\t\t(axis.options.minTickSize &&\n\t\t\t\t\t\t\t\taxis.options.minTickSize[1] == \"quarter\");\n\n\t\t\t\t\t\tvar t = axis.tickSize[0] * timeUnitSize[axis.tickSize[1]];\n\t\t\t\t\t\tvar span = axis.max - axis.min;\n\t\t\t\t\t\tvar suffix = (opts.twelveHourClock) ? \" %p\" : \"\";\n\t\t\t\t\t\tvar hourCode = (opts.twelveHourClock) ? \"%I\" : \"%H\";\n\t\t\t\t\t\tvar fmt;\n\n\t\t\t\t\t\tif (t < timeUnitSize.minute) {\n\t\t\t\t\t\t\tfmt = hourCode + \":%M:%S\" + suffix;\n\t\t\t\t\t\t} else if (t < timeUnitSize.day) {\n\t\t\t\t\t\t\tif (span < 2 * timeUnitSize.day) {\n\t\t\t\t\t\t\t\tfmt = hourCode + \":%M\" + suffix;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tfmt = \"%b %d \" + hourCode + \":%M\" + suffix;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (t < timeUnitSize.month) {\n\t\t\t\t\t\t\tfmt = \"%b %d\";\n\t\t\t\t\t\t} else if ((useQuarters && t < timeUnitSize.quarter) ||\n\t\t\t\t\t\t\t(!useQuarters && t < timeUnitSize.year)) {\n\t\t\t\t\t\t\tif (span < timeUnitSize.year) {\n\t\t\t\t\t\t\t\tfmt = \"%b\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tfmt = \"%b %Y\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (useQuarters && t < timeUnitSize.year) {\n\t\t\t\t\t\t\tif (span < timeUnitSize.year) {\n\t\t\t\t\t\t\t\tfmt = \"Q%q\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tfmt = \"Q%q %Y\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfmt = \"%Y\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar rt = formatDate(d, fmt, opts.monthNames, opts.dayNames);\n\n\t\t\t\t\t\treturn rt;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t}\n\n\t$.plot.plugins.push({\n\t\tinit: init,\n\t\toptions: options,\n\t\tname: 'time',\n\t\tversion: '1.0'\n\t});\n\n\t// Time-axis support used to be in Flot core, which exposed the\n\t// formatDate function on the plot object. Various plugins depend\n\t// on the function, so we need to re-expose it here.\n\n\t$.plot.formatDate = formatDate;\n\t$.plot.dateGenerator = dateGenerator;\n\n})(jQuery);\n","/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import _ from 'lodash';\nimport './lib/jquery.flot.pie';\nimport $ from 'jquery';\n//import './lib/jquery.flot';\n\nexport default function link(scope: any, elem: any, attrs: any, ctrl: any) {\n let data;\n const panel = ctrl.panel;\n elem = elem.find('.piechart-panel__chart');\n const $tooltip = $('
') as any;\n\n ctrl.events.on('render', () => {\n if (panel.legendType === 'Right side') {\n render(false);\n setTimeout(() => {\n render(true);\n }, 50);\n } else {\n render(true);\n }\n });\n\n function getLegendHeight(panelHeight: any) {\n if (!ctrl.panel.legend.show || ctrl.panel.legendType === 'Right side' || ctrl.panel.legendType === 'On graph') {\n return 20;\n }\n\n if ((ctrl.panel.legendType === 'Under graph' && ctrl.panel.legend.percentage) || ctrl.panel.legend.values) {\n const breakPoint = parseInt(ctrl.panel.breakPoint, 10) / 100;\n const total = 23 + 20 * data.length;\n return Math.min(total, Math.floor(panelHeight * breakPoint));\n }\n\n return 0;\n }\n\n function formatter(label: any, slice: any) {\n const sliceData = slice.data[0][slice.data[0].length - 1];\n let decimal = 2;\n const start = `
${label}
`;\n\n if (ctrl.panel.legend.percentageDecimals) {\n decimal = ctrl.panel.legend.percentageDecimals;\n }\n if (ctrl.panel.legend.values && ctrl.panel.legend.percentage) {\n return start + ctrl.formatValue(sliceData) + '
' + slice.percent.toFixed(decimal) + '%
';\n } else if (ctrl.panel.legend.values) {\n return start + ctrl.formatValue(sliceData) + '
';\n } else if (ctrl.panel.legend.percentage) {\n return start + slice.percent.toFixed(decimal) + '%';\n } else {\n return start + '';\n }\n }\n\n function noDataPoints() {\n const html = '
No data points
';\n elem.html(html);\n }\n\n function addPieChart() {\n const width = elem.width();\n const height = ctrl.height - getLegendHeight(ctrl.height);\n\n const size = Math.min(width, height);\n\n const plotCanvas = $('
');\n const plotCss = {\n margin: 'auto',\n position: 'relative',\n paddingBottom: 20 + 'px',\n height: size + 'px',\n };\n\n plotCanvas.css(plotCss);\n\n const backgroundColor = $('body').css('background-color');\n\n const options = {\n legend: {\n show: false,\n },\n series: {\n pie: {\n radius: 1,\n innerRadius: 0,\n show: true,\n stroke: {\n color: backgroundColor,\n width: parseFloat(ctrl.panel.strokeWidth).toFixed(1),\n },\n label: {\n show: ctrl.panel.legend.show && ctrl.panel.legendType === 'On graph',\n formatter: formatter,\n },\n highlight: {\n opacity: 0.0,\n },\n combine: {\n threshold: ctrl.panel.combine.threshold,\n label: ctrl.panel.combine.label,\n },\n },\n },\n grid: {\n hoverable: true,\n clickable: false,\n },\n };\n\n if (panel.pieType === 'donut') {\n options.series.pie.innerRadius = 0.5;\n }\n\n data = ctrl.data;\n\n for (let i = 0; i < data.length; i++) {\n const series = data[i];\n\n // if hidden remove points\n if (ctrl.hiddenSeries[series.label]) {\n series.data = {};\n }\n }\n\n if (panel.legend.sort) {\n if (ctrl.panel.valueName !== panel.legend.sort) {\n panel.legend.sort = ctrl.panel.valueName;\n }\n if (panel.legend.sortDesc === true) {\n data.sort((a: any, b: any) => {\n return b.legendData - a.legendData;\n });\n } else {\n data.sort((a: any, b: any) => {\n return a.legendData - b.legendData;\n });\n }\n }\n\n elem.html(plotCanvas);\n\n // @ts-ignore\n $.plot(plotCanvas, data, options);\n plotCanvas.bind('plothover', (event: any, pos: any, item: any) => {\n if (!item) {\n $tooltip.detach();\n return;\n }\n\n let body;\n const percent = parseFloat(item.series.percent).toFixed(2);\n const formatted = ctrl.formatValue(item.series.data[0][1]);\n\n body = '
';\n body += '
' + _.escape(item.series.label) + ': ' + formatted;\n body += ' (' + percent + '%)' + '
';\n body += '
';\n\n $tooltip.html(body).place_tt(pos.pageX + 20, pos.pageY);\n });\n }\n\n function render(incrementRenderCounter: any) {\n if (!ctrl.data) {\n return;\n }\n\n data = ctrl.data;\n\n if (0 === ctrl.data.length) {\n noDataPoints();\n } else {\n addPieChart();\n }\n\n if (incrementRenderCounter) {\n ctrl.renderingCompleted();\n }\n }\n}\n","import angular from 'angular';\n// @ts-ignore\nimport $ from 'jquery';\n//import './lib/jquery.flot.pie';\n\n//import 'jquery.flot';\n\nimport './lib/jquery.flot.time';\n\nimport _ from 'lodash';\n\n// @ts-ignore\nimport PerfectScrollbar from './lib/perfect-scrollbar.min';\n\nangular.module('grafana.directives').directive('piechartLegend', (popoverSrv: any, $timeout: any) => {\n return {\n link: (scope: any, elem: any) => {\n const $container = $('
');\n let firstRender = true;\n const ctrl = scope.ctrl;\n const panel = ctrl.panel;\n let data: any;\n let seriesList: any;\n let dataList: any;\n let i;\n let legendScrollbar: any;\n\n scope.$on('$destroy', () => {\n if (legendScrollbar) {\n legendScrollbar.destroy();\n }\n });\n\n ctrl.events.on('render', () => {\n data = ctrl.series;\n if (data) {\n for (const i in data) {\n data[i].color = ctrl.data[i].color;\n }\n render();\n }\n });\n\n function getSeriesIndexForElement(el: any) {\n return el.parents('[data-series-index]').data('series-index');\n }\n\n function toggleSeries(e: any) {\n const el = $(e.currentTarget);\n // Consider Combine entry as special case (not clickable)\n if (el && el.text() !== panel.combine.label) {\n const index = getSeriesIndexForElement(el);\n const seriesInfo = dataList[index];\n const scrollPosition = $($container.children('tbody')).scrollTop();\n ctrl.toggleSeries(seriesInfo);\n if (typeof scrollPosition !== 'undefined') {\n $($container.children('tbody')).scrollTop(scrollPosition);\n }\n }\n }\n\n function sortLegend(e: any) {\n const el = $(e.currentTarget);\n const stat = el.data('stat');\n\n if (stat !== panel.legend.sort) {\n panel.legend.sortDesc = null;\n }\n\n // if already sort ascending, disable sorting\n if (panel.legend.sortDesc === false) {\n panel.legend.sort = null;\n panel.legend.sortDesc = null;\n ctrl.render();\n return;\n }\n\n panel.legend.sortDesc = !panel.legend.sortDesc;\n panel.legend.sort = stat;\n ctrl.render();\n }\n\n function getLegendHeaderHtml(statName: any) {\n let name = statName;\n\n if (panel.legend.header) {\n name = panel.legend.header;\n }\n\n let html = '' + _.escape(name);\n\n if (panel.legend.sort === statName) {\n const cssClass = panel.legend.sortDesc ? 'fa fa-caret-down' : 'fa fa-caret-up';\n html += ' ';\n }\n\n return html + '';\n }\n\n function getLegendPercentageHtml(statName: any) {\n const name = 'percentage';\n let html = '' + name;\n\n if (panel.legend.sort === statName) {\n const cssClass = panel.legend.sortDesc ? 'fa fa-caret-down' : 'fa fa-caret-up';\n html += ' ';\n }\n\n return html + '';\n }\n\n function openColorSelector(e: any) {\n // if we clicked inside poup container ignore click\n if ($(e.target).parents('.popover').length) {\n return;\n }\n\n const el = $(e.currentTarget).find('.fa-minus');\n const index = getSeriesIndexForElement(el);\n const series = seriesList[index];\n\n $timeout(() => {\n popoverSrv.show({\n element: el[0],\n position: 'right center',\n template:\n '' +\n '',\n openOn: 'hover',\n classNames: 'drop-popover drop-popover--transparent',\n model: {\n autoClose: true,\n series: series,\n toggleAxis: () => {},\n colorSelected: (color: any) => {\n ctrl.changeSeriesColor(series, color);\n },\n },\n });\n });\n }\n\n function render() {\n if (panel.legendType === 'On graph' || !panel.legend.show) {\n $container.empty();\n elem.find('.piechart-legend').css('padding-top', 0);\n return;\n } else {\n elem.find('.piechart-legend').css('padding-top', 6);\n }\n\n if (firstRender) {\n elem.append($container);\n $container.on('click', '.piechart-legend-icon', openColorSelector);\n $container.on('click', '.piechart-legend-alias', toggleSeries);\n $container.on('click', 'th', sortLegend);\n firstRender = false;\n }\n\n seriesList = data;\n dataList = ctrl.data;\n\n $container.empty();\n\n const width = panel.legendType === 'Right side' && panel.legend.sideWidth ? panel.legend.sideWidth + 'px' : '';\n const ieWidth =\n panel.legendType === 'Right side' && panel.legend.sideWidth ? panel.legend.sideWidth - 1 + 'px' : '';\n elem.css('min-width', width);\n elem.css('width', ieWidth);\n\n const showValues = panel.legend.values || panel.legend.percentage;\n const tableLayout = (panel.legendType === 'Under graph' || panel.legendType === 'Right side') && showValues;\n\n $container.toggleClass('piechart-legend-table', tableLayout);\n\n let legendHeader;\n if (tableLayout) {\n let header = '';\n if (panel.legend.values) {\n header += getLegendHeaderHtml(ctrl.panel.valueName);\n }\n if (panel.legend.percentage) {\n header += getLegendPercentageHtml(ctrl.panel.valueName);\n }\n header += '';\n legendHeader = $(header);\n }\n\n let total = 0;\n if (panel.legend.percentage) {\n for (i = 0; i < seriesList.length; i++) {\n if (!ctrl.hiddenSeries[seriesList[i].label]) {\n total += seriesList[i].stats[ctrl.panel.valueName];\n }\n }\n }\n\n let combineNum = 0;\n const combineVal = {\n label: panel.combine.label,\n color: '',\n legendData: 0,\n };\n const seriesElements = [];\n\n for (i = 0; i < seriesList.length; i++) {\n const series = seriesList[i];\n const seriesData = dataList[i];\n // combine lower values than threshold and not include into legent\n if (seriesData.data / total < panel.combine.threshold) {\n // Jump hidden series\n if (!ctrl.hiddenSeries[seriesData.label]) {\n combineNum++;\n combineVal.legendData += seriesData.data;\n }\n } else {\n // ignore empty series\n if (panel.legend.hideEmpty && series.allIsNull) {\n continue;\n }\n // ignore series excluded via override\n if (!series.legend) {\n continue;\n }\n\n seriesElements.push($(generateLegendItem(seriesData, i, total, showValues, tableLayout)));\n }\n }\n\n // Add combine to legend\n if (combineNum > 0) {\n // Define color according to hiddenSeries and combineNum\n if (typeof panel.legend.sortDesc === 'undefined' || panel.legend.sortDesc === null || panel.legend.sortDesc) {\n if (Object.keys(ctrl.hiddenSeries).length > 0) {\n let _el, _max;\n for (const _key in ctrl.hiddenSeries) {\n _el = dataList.find((x: any) => x.label === _key);\n if (typeof _max === 'undefined') {\n _max = _el.legendData;\n combineVal.color = _el.color;\n } else {\n if (_el.legendData > _max) {\n _max = _el.legendData;\n combineVal.color = _el.color;\n }\n }\n }\n } else {\n combineVal.color = seriesList[seriesList.length - combineNum].color;\n }\n } else {\n combineVal.color = seriesList[0].color;\n }\n\n seriesElements.push(\n $(generateLegendItem(combineVal, dataList.length - combineNum, total, showValues, tableLayout))\n );\n }\n\n if (tableLayout) {\n // const topPadding = 6;\n const tbodyElem = $('');\n // tbodyElem.css(\"max-height\", maxHeight - topPadding);\n if (typeof legendHeader !== 'undefined') {\n tbodyElem.append(legendHeader);\n }\n tbodyElem.append(seriesElements);\n $container.append(tbodyElem);\n } else {\n $container.append(seriesElements);\n }\n\n if (panel.legendType === 'Under graph') {\n addScrollbar();\n } else {\n destroyScrollbar();\n }\n }\n\n function generateLegendItem(data: any, index: any, total: any, showValues: boolean, tableLayout: boolean) {\n let html = '
';\n html += '';\n html += '';\n html += '';\n\n html += '' + _.escape(data.label) + '';\n let decimal = 0;\n if (ctrl.panel.legend.percentageDecimals) {\n decimal = ctrl.panel.legend.percentageDecimals;\n }\n\n if (showValues && tableLayout) {\n const value = data.legendData;\n if (panel.legend.values) {\n html += '
' + ctrl.formatValue(value) + '
';\n }\n if (total) {\n const pvalue = ((value / total) * 100).toFixed(decimal) + '%';\n html += '
' + pvalue + '
';\n }\n }\n html += '
';\n\n return html;\n }\n\n function addScrollbar() {\n const scrollbarOptions = {\n // Number of pixels the content height can surpass the container height without enabling the scroll bar.\n scrollYMarginOffset: 2,\n suppressScrollX: true,\n };\n\n if (!legendScrollbar) {\n legendScrollbar = new PerfectScrollbar(elem[0], scrollbarOptions);\n } else {\n legendScrollbar.update();\n }\n }\n\n function destroyScrollbar() {\n if (legendScrollbar) {\n legendScrollbar.destroy();\n legendScrollbar = null;\n }\n }\n },\n };\n});\n","import { MetricsPanelCtrl } from 'grafana/app/plugins/sdk';\nimport _ from 'lodash';\nimport kbn from 'grafana/app/core/utils/kbn';\n// @ts-ignore\nimport TimeSeries from 'grafana/app/core/time_series';\nimport rendering from './rendering';\nimport './legend';\n\nclass PieChartCtrl extends MetricsPanelCtrl {\n static templateUrl = 'module.html';\n $rootScope: any;\n hiddenSeries: any;\n unitFormats: any;\n series: any;\n data: any;\n\n /** @ngInject */\n constructor($scope: any, $injector: any, $rootScope: any) {\n super($scope, $injector);\n this.$rootScope = $rootScope;\n this.hiddenSeries = {};\n\n const panelDefaults = {\n pieType: 'pie',\n legend: {\n show: true, // disable/enable legend\n values: true,\n },\n links: [],\n datasource: null,\n maxDataPoints: 1,\n interval: null,\n targets: [{}],\n cacheTimeout: null,\n nullPointMode: 'connected',\n legendType: 'Under graph',\n breakPoint: '50%',\n aliasColors: {},\n format: 'short',\n valueName: 'current',\n strokeWidth: 1,\n fontSize: '80%',\n combine: {\n threshold: 0.0,\n label: 'Others',\n },\n };\n\n _.defaults(this.panel, panelDefaults);\n _.defaults(this.panel.legend, panelDefaults.legend);\n\n this.events.on('render', this.onRender.bind(this));\n this.events.on('data-received', this.onDataReceived.bind(this));\n this.events.on('data-error', this.onDataError.bind(this));\n this.events.on('data-snapshot-load', this.onDataReceived.bind(this));\n this.events.on('init-edit-mode', this.onInitEditMode.bind(this));\n\n this.setLegendWidthForLegacyBrowser();\n }\n\n onInitEditMode() {\n this.addEditorTab('Options', 'public/plugins/grafana-piechart-panel/editor.html', 2);\n this.unitFormats = kbn.getUnitFormats();\n }\n\n setUnitFormat(subItem: any) {\n this.panel.format = subItem.value;\n this.render();\n }\n\n onDataError() {\n this.series = [];\n this.render();\n }\n\n changeSeriesColor(series: any, color: any) {\n series.color = color;\n this.panel.aliasColors[series.alias] = series.color;\n this.render();\n }\n\n onRender() {\n this.data = this.parseSeries(this.series);\n }\n\n parseSeries(series: any) {\n return _.map(this.series, (serie, i) => {\n return {\n label: serie.alias,\n data: serie.stats[this.panel.valueName],\n color: this.panel.aliasColors[serie.alias] || this.$rootScope.colors[i],\n legendData: serie.stats[this.panel.valueName],\n };\n });\n }\n\n onDataReceived(dataList: any) {\n this.series = dataList.map(this.seriesHandler.bind(this));\n this.data = this.parseSeries(this.series);\n this.render(this.data);\n }\n\n seriesHandler(seriesData: any) {\n const series = new TimeSeries({\n datapoints: seriesData.datapoints,\n alias: seriesData.target,\n });\n\n series.flotpairs = series.getFlotPairs(this.panel.nullPointMode);\n return series;\n }\n\n getDecimalsForValue(value: any) {\n if (_.isNumber(this.panel.decimals)) {\n return { decimals: this.panel.decimals, scaledDecimals: null };\n }\n\n const delta = value / 2;\n let dec = -Math.floor(Math.log(delta) / Math.LN10);\n\n const magn = Math.pow(10, -dec);\n const norm = delta / magn; // norm is between 1.0 and 10.0\n let size;\n\n if (norm < 1.5) {\n size = 1;\n } else if (norm < 3) {\n size = 2;\n // special case for 2.5, requires an extra decimal\n if (norm > 2.25) {\n size = 2.5;\n ++dec;\n }\n } else if (norm < 7.5) {\n size = 5;\n } else {\n size = 10;\n }\n\n size *= magn;\n\n // reduce starting decimals if not needed\n if (Math.floor(value) === value) {\n dec = 0;\n }\n\n const result = {\n decimals: 0,\n scaledDecimals: 0,\n };\n result.decimals = Math.max(0, dec);\n result.scaledDecimals = result.decimals - Math.floor(Math.log(size) / Math.LN10) + 2;\n\n return result;\n }\n\n formatValue(value: any) {\n const decimalInfo = this.getDecimalsForValue(value);\n const formatFunc = kbn.valueFormats[this.panel.format];\n if (formatFunc) {\n return formatFunc(value, decimalInfo.decimals, decimalInfo.scaledDecimals);\n }\n return value;\n }\n\n link(scope: any, elem: any, attrs: any, ctrl: any) {\n rendering(scope, elem, attrs, ctrl);\n }\n\n toggleSeries(serie: any) {\n if (this.hiddenSeries[serie.label]) {\n delete this.hiddenSeries[serie.label];\n } else {\n this.hiddenSeries[serie.label] = true;\n }\n this.render();\n }\n\n onLegendTypeChanged() {\n this.setLegendWidthForLegacyBrowser();\n this.render();\n }\n\n setLegendWidthForLegacyBrowser() {\n // @ts-ignore\n const isIE11 = !!window.MSInputMethodContext && !!document.documentMode;\n if (isIE11 && this.panel.legendType === 'Right side' && !this.panel.legend.sideWidth) {\n this.panel.legend.sideWidth = 150;\n }\n }\n}\n\nexport { PieChartCtrl, PieChartCtrl as MetricsPanelCtrl };\n","import { PieChartCtrl } from './piechart_ctrl';\nimport { loadPluginCss } from 'grafana/app/plugins/sdk';\n\nloadPluginCss({\n dark: 'plugins/grafana-piechart-panel/styles/dark.css',\n light: 'plugins/grafana-piechart-panel/styles/light.css',\n});\n\nexport { PieChartCtrl as PanelCtrl };\n"],"sourceRoot":""} \ No newline at end of file diff --git a/data/plugins/grafana-piechart-panel/dist/plugin.json b/data/plugins/grafana-piechart-panel/dist/plugin.json new file mode 100644 index 0000000000000..2ba0cc4ddfd8a --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/plugin.json @@ -0,0 +1,70 @@ +{ + "type": "panel", + "name": "Pie Chart", + "id": "grafana-piechart-panel", + "info": { + "description": "Pie chart panel for grafana", + "author": { + "name": "Grafana Labs", + "url": "http://grafana.com" + }, + "keywords": [ + "piechart", + "panel" + ], + "logos": { + "small": "img/piechart_logo_small.svg", + "large": "img/piechart_logo_large.svg" + }, + "links": [ + { + "name": "Project site", + "url": "https://github.com/grafana/piechart-panel" + }, + { + "name": "Blog Post", + "url": "https://blog.raintank.io/friends-dont-let-friends-abuse-pie-charts/" + }, + { + "name": "MIT License", + "url": "https://github.com/grafana/piechart-panel/blob/master/LICENSE" + } + ], + "screenshots": [ + { + "name": "Donut!", + "path": "img/piechart-donut.png" + }, + { + "name": "Legend on the graph", + "path": "img/piechart-legend-on-graph.png" + }, + { + "name": "Legend to the right", + "path": "img/piechart-legend-rhs.png" + }, + { + "name": "Legend underneath", + "path": "img/piechart-legend-under.png" + }, + { + "name": "Piechart options", + "path": "img/piechart-options.png" + } + ], + "version": "1.5.0", + "updated": "2020-05-15", + "build": { + "time": 1589585452459, + "repo": "git@github.com:grafana/piechart-panel.git", + "branch": "v1.5.x", + "hash": "cc9a10765bb9be75c4e5404b71c4581d683cbfeb", + "pr": 232, + "number": 209 + } + }, + "dependencies": { + "grafanaVersion": "6.x.x", + "plugins": [] + } +} \ No newline at end of file diff --git a/data/plugins/grafana-piechart-panel/dist/styles/dark.css b/data/plugins/grafana-piechart-panel/dist/styles/dark.css new file mode 100644 index 0000000000000..cb3af06bb8658 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/styles/dark.css @@ -0,0 +1 @@ +.pieLabel>div{color:#fff}.piechart-panel{display:flex;flex-direction:column;height:100%}.piechart-panel--legend-right{flex-direction:row}.piechart-panel--legend-right .piechart-legend{flex:0 1 10px;height:100%}.piechart-panel--legend-right .piechart-legend-series{display:block;padding-left:0}.piechart-panel--legend-right .piechart-legend-table .piechart-legend-series{display:table-row}.piechart-legend__container{height:100%}.piechart-panel__chart{position:relative;cursor:crosshair;flex-grow:1;top:10px}.datapoints-warning{pointer:none;position:absolute;top:50%;left:50%;z-index:10;margin-top:-50px;margin-left:-100px;width:200px;text-align:center;cursor:auto;padding:10px}.piechart-legend{flex:0 1 auto;margin:0 1rem;text-align:center;padding-top:6px;position:relative}.piechart-legend .popover-content{padding:0}.piechart-legend-icon{position:relative;padding-right:4px;top:1px}.piechart-legend-alias,.piechart-legend-icon,.piechart-legend-value{cursor:pointer;float:left;white-space:nowrap;font-size:85%;text-align:left;color:#d8d9da}.piechart-legend-icon.current:before{content:"Current: "}.piechart-legend-icon.max:before{content:"Max: "}.piechart-legend-icon.min:before{content:"Min: "}.piechart-legend-icon.total:before{content:"Total: "}.piechart-legend-icon.avg:before{content:"Avg: "}.piechart-legend-alias.current:before{content:"Current: "}.piechart-legend-alias.max:before{content:"Max: "}.piechart-legend-alias.min:before{content:"Min: "}.piechart-legend-alias.total:before{content:"Total: "}.piechart-legend-alias.avg:before{content:"Avg: "}.piechart-legend-value.current:before{content:"Current: "}.piechart-legend-value.max:before{content:"Max: "}.piechart-legend-value.min:before{content:"Min: "}.piechart-legend-value.total:before{content:"Total: "}.piechart-legend-value.avg:before{content:"Avg: "}.piechart-legend-icon .fa{font-size:135%;position:relative;top:1px}.piechart-legend-series{float:left;white-space:nowrap;padding-left:10px}.piechart-legend-series--right-y{float:right}.piechart-legend-value{padding-left:6px}.piechart-legend-table tbody{display:block;overflow-y:auto;overflow-x:hidden;height:100%;padding-bottom:1px;padding-right:5px}.piechart-legend-table .piechart-legend-series{display:table-row;float:none;padding-left:0}.piechart-legend-table .piechart-legend-series--right-y{float:none}.piechart-legend-table .piechart-legend-series--right-y .piechart-legend-alias:after{content:"(right-y)";padding:0 5px;color:#8e8e8e}.piechart-legend-alias,.piechart-legend-icon,.piechart-legend-table td,.piechart-legend-value{float:none;display:table-cell;white-space:nowrap;padding:2px 10px;text-align:right}.piechart-legend-table .piechart-legend-icon{width:5px;padding:0;top:0}.piechart-legend-table .piechart-legend-icon .fa{top:4px}.piechart-legend-table .piechart-legend-value{padding-left:15px}.piechart-legend-table .piechart-legend-alias{padding-left:7px;text-align:left;width:95%;max-width:650px;text-overflow:ellipsis;overflow:hidden}.piechart-legend-table .piechart-legend-series:nth-child(odd){background:#262628}.piechart-legend-table .piechart-legend-value.avg:before,.piechart-legend-table .piechart-legend-value.current:before,.piechart-legend-table .piechart-legend-value.max:before,.piechart-legend-table .piechart-legend-value.min:before,.piechart-legend-table .piechart-legend-value.total:before{content:""}.piechart-legend-table th{text-align:right;padding:0 10px 1px 0;font-weight:700;color:#33b5e5;font-size:85%;white-space:nowrap}.piechart-legend-series-hidden .piechart-legend-alias,.piechart-legend-series-hidden .piechart-legend-value{color:#8e8e8e}.piechart-tooltip{white-space:nowrap;font-size:12px;background-color:#141414;color:#d8d9da}.piechart-tooltip .piechart-tooltip-time{text-align:center;position:relative;top:-3px;padding:.2rem;font-weight:700;color:#d8d9da}.piechart-tooltip .piechart-tooltip-value{display:table-cell;font-weight:700;padding-left:15px;text-align:right} \ No newline at end of file diff --git a/data/plugins/grafana-piechart-panel/dist/styles/light.css b/data/plugins/grafana-piechart-panel/dist/styles/light.css new file mode 100644 index 0000000000000..175a08f1ca2e8 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/dist/styles/light.css @@ -0,0 +1 @@ +.pieLabel>div{color:#000}.piechart-panel{display:flex;flex-direction:column;height:100%}.piechart-panel--legend-right{flex-direction:row}.piechart-panel--legend-right .piechart-legend{flex:0 1 10px;height:100%}:root .piechart-panel--legend-right .piechart-legend,_:-ms-fullscreen{flex:0 1 200px}.piechart-panel--legend-right .piechart-legend-series{display:block;padding-left:0}.piechart-panel--legend-right .piechart-legend-table .piechart-legend-series{display:table-row}.piechart-legend__container{height:100%}.piechart-panel__chart{position:relative;cursor:crosshair;flex-grow:1;top:10px}.datapoints-warning{pointer:none;position:absolute;top:50%;left:50%;z-index:10;margin-top:-50px;margin-left:-100px;width:200px;text-align:center;cursor:auto;padding:10px}.piechart-legend{flex:0 1 auto;margin:0 1rem;text-align:center;padding-top:6px;position:relative}.piechart-legend .popover-content{padding:0}.piechart-legend-icon{position:relative;padding-right:4px;top:1px}.piechart-legend-alias,.piechart-legend-icon,.piechart-legend-value{cursor:pointer;float:left;white-space:nowrap;font-size:85%;text-align:left;color:52545c}.piechart-legend-icon.current:before{content:"Current: "}.piechart-legend-icon.max:before{content:"Max: "}.piechart-legend-icon.min:before{content:"Min: "}.piechart-legend-icon.total:before{content:"Total: "}.piechart-legend-icon.avg:before{content:"Avg: "}.piechart-legend-alias.current:before{content:"Current: "}.piechart-legend-alias.max:before{content:"Max: "}.piechart-legend-alias.min:before{content:"Min: "}.piechart-legend-alias.total:before{content:"Total: "}.piechart-legend-alias.avg:before{content:"Avg: "}.piechart-legend-value.current:before{content:"Current: "}.piechart-legend-value.max:before{content:"Max: "}.piechart-legend-value.min:before{content:"Min: "}.piechart-legend-value.total:before{content:"Total: "}.piechart-legend-value.avg:before{content:"Avg: "}.piechart-legend-icon .fa{font-size:135%;position:relative;top:1px}.piechart-legend-series{float:left;white-space:nowrap;padding-left:10px}.piechart-legend-series--right-y{float:right}.piechart-legend-value{padding-left:6px}.piechart-legend-table tbody{display:block;overflow-y:auto;overflow-x:hidden;height:100%;padding-bottom:1px;padding-right:5px}.piechart-legend-table .piechart-legend-series{display:table-row;float:none;padding-left:0}.piechart-legend-table .piechart-legend-series--right-y{float:none}.piechart-legend-table .piechart-legend-series--right-y .piechart-legend-alias:after{content:"(right-y)";padding:0 5px;color:#767980}.piechart-legend-alias,.piechart-legend-icon,.piechart-legend-table td,.piechart-legend-value{float:none;display:table-cell;white-space:nowrap;padding:2px 10px;text-align:right}.piechart-legend-table .piechart-legend-icon{width:5px;padding:0;top:0}.piechart-legend-table .piechart-legend-icon .fa{top:4px}.piechart-legend-table .piechart-legend-value{padding-left:15px}.piechart-legend-table .piechart-legend-alias{padding-left:7px;text-align:left;width:95%;max-width:650px;text-overflow:ellipsis;overflow:hidden}.piechart-legend-table .piechart-legend-series:nth-child(odd){background:#dde4ed}.piechart-legend-table .piechart-legend-value.avg:before,.piechart-legend-table .piechart-legend-value.current:before,.piechart-legend-table .piechart-legend-value.max:before,.piechart-legend-table .piechart-legend-value.min:before,.piechart-legend-table .piechart-legend-value.total:before{content:""}.piechart-legend-table th{text-align:right;padding:0 10px 1px 0;font-weight:700;color:#61c2f2;font-size:85%;white-space:nowrap}.piechart-legend-series-hidden .piechart-legend-alias,.piechart-legend-series-hidden .piechart-legend-value{color:#acb6bf}.piechart-tooltip{white-space:nowrap;font-size:12px;background-color:#dde4ed;color:#35373f}.piechart-tooltip .piechart-tooltip-time{text-align:center;position:relative;top:-3px;padding:.2rem;font-weight:700;color:#35373f}.piechart-tooltip .piechart-tooltip-value{display:table-cell;font-weight:700;padding-left:15px;text-align:right} \ No newline at end of file diff --git a/data/plugins/grafana-piechart-panel/docker-compose.yml b/data/plugins/grafana-piechart-panel/docker-compose.yml new file mode 100644 index 0000000000000..a478ec77c58e6 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/docker-compose.yml @@ -0,0 +1,12 @@ +grafana: + image: grafana/grafana:6.6.0 + #image: grafana/grafana:6.5.3 + #image: grafana/grafana:6.4.5 + #image: grafana/grafana:5.4.4 + ports: + - "3000:3000" + volumes: + - ./:/var/lib/grafana/plugins/grafana-piechart-panel + - ./provisioning:/etc/grafana/provisioning + environment: + - TERM=linux diff --git a/data/plugins/grafana-piechart-panel/jest.config.js b/data/plugins/grafana-piechart-panel/jest.config.js new file mode 100644 index 0000000000000..bcf17c9087d1f --- /dev/null +++ b/data/plugins/grafana-piechart-panel/jest.config.js @@ -0,0 +1,8 @@ +// This file is needed because it is used by vscode and other tools that +// call `jest` directly. However, unless you are doing anything special +// do not edit this file + +const standard = require('@grafana/toolkit/src/config/jest.plugin.config'); + +// This process will use the same config that `yarn test` is using +module.exports = standard.jestConfig(); diff --git a/data/plugins/grafana-piechart-panel/package.json b/data/plugins/grafana-piechart-panel/package.json new file mode 100644 index 0000000000000..27d231da21f67 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/package.json @@ -0,0 +1,31 @@ +{ + "name": "piechart-panel", + "version": "1.5.0", + "description": "Pie chart panel for Grafana", + "scripts": { + "build": "grafana-toolkit plugin:build", + "test": "grafana-toolkit plugin:test", + "dev": "grafana-toolkit plugin:dev", + "watch": "grafana-toolkit plugin:dev --watch" + }, + "repository": "github:grafana/piechart-panel.git", + "author": "Grafana Labs", + "license": "MIT", + "private": true, + "dependencies": { + "angular": "^1.7.9", + "flot": "^4.1.1", + "jquery": "^3.4.1", + "jquery.flot": "^0.8.3", + "lodash": "^4.17.15" + }, + "devDependencies": { + "@grafana/data": "next", + "@grafana/toolkit": "next", + "@grafana/ui": "next", + "@types/angular": "^1.6.57", + "@types/flot": "^0.0.31", + "@types/grafana": "github:CorpGlory/types-grafana", + "@types/lodash": "4.14.149" + } +} diff --git a/data/plugins/grafana-piechart-panel/tsconfig.json b/data/plugins/grafana-piechart-panel/tsconfig.json new file mode 100644 index 0000000000000..211e352ef5eb0 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "./node_modules/@grafana/toolkit/src/config/tsconfig.plugin.json", + "include": ["src", "types"], + "compilerOptions": { + "rootDir": "./src", + "baseUrl": "./src", + "typeRoots": ["./node_modules/@types"] + } +} diff --git a/data/plugins/grafana-piechart-panel/yarn.lock b/data/plugins/grafana-piechart-panel/yarn.lock new file mode 100644 index 0000000000000..36f20f483fbc7 --- /dev/null +++ b/data/plugins/grafana-piechart-panel/yarn.lock @@ -0,0 +1,12069 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@ant-design/css-animation@^1.7.2": + version "1.7.2" + resolved "https://registry.yarnpkg.com/@ant-design/css-animation/-/css-animation-1.7.2.tgz#4ee5d2ec0fb7cc0a78b44e1c82628bd4621ac7e3" + integrity sha512-bvVOe7A+r7lws58B7r+fgnQDK90cV45AXuvGx6i5CCSX1W/M3AJnHsNggDANBxEtWdNdFWcDd5LorB+RdSIlBw== + +"@antv/adjust@~0.1.0": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@antv/adjust/-/adjust-0.1.1.tgz#e263ab0e1a1941a648842fc086cf65a7e3b75e98" + integrity sha512-9FaMOyBlM4AgoRL0b5o0VhEKAYkexBNUrxV8XmpHU/9NBPJONBOB/NZUlQDqxtLItrt91tCfbAuMQmF529UX2Q== + dependencies: + "@antv/util" "~1.3.1" + +"@antv/attr@~0.1.2": + version "0.1.2" + resolved "https://registry.yarnpkg.com/@antv/attr/-/attr-0.1.2.tgz#2eeb122fcaaf851a2d8749abc7c60519d3f77e37" + integrity sha512-QXjP+T2I+pJQcwZx1oCA4tipG43vgeCeKcGGKahlcxb71OBAzjJZm1QbF4frKXcnOqRkxVXtCr70X9TRair3Ew== + dependencies: + "@antv/util" "~1.3.1" + +"@antv/component@~0.3.3": + version "0.3.9" + resolved "https://registry.yarnpkg.com/@antv/component/-/component-0.3.9.tgz#ed561c639b7738ce03ff63a866f59e251de82a17" + integrity sha512-Knh/Nq0S8UkTfZj4SL7XizagTfXYqjFAYIqFtOmUaKpRMgccUi7p1oA7fJdNPGktkndljy6fUmCWocEeBXRS2g== + dependencies: + "@antv/attr" "~0.1.2" + "@antv/g" "~3.3.5" + "@antv/util" "~1.3.1" + wolfy87-eventemitter "~5.1.0" + +"@antv/coord@~0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@antv/coord/-/coord-0.1.0.tgz#48a80ae36d07552f96657e7f8095227c63f0c0a9" + integrity sha512-W1R8h3Jfb3AfMBVfCreFPMVetgEYuwHBIGn0+d3EgYXe2ckOF8XWjkpGF1fZhOMHREMr+Gt27NGiQh8yBdLUgg== + dependencies: + "@antv/util" "~1.3.1" + +"@antv/g2@3.5.15": + version "3.5.15" + resolved "https://registry.yarnpkg.com/@antv/g2/-/g2-3.5.15.tgz#5951808f88210f4a45ca1acb38fb25a743b4a578" + integrity sha512-gWN28V/BRHrCe6O12WcJ7ji9UE8XETSQ146ur4zMu5I50ZO7kxc/3s038N0iyuJh3Em9nlrTjfhqjlysogrX7g== + dependencies: + "@antv/adjust" "~0.1.0" + "@antv/attr" "~0.1.2" + "@antv/component" "~0.3.3" + "@antv/coord" "~0.1.0" + "@antv/g" "~3.3.6" + "@antv/scale" "~0.1.1" + "@antv/util" "~1.3.1" + venn.js "~0.2.20" + wolfy87-eventemitter "~5.1.0" + +"@antv/g@~3.3.5", "@antv/g@~3.3.6": + version "3.3.6" + resolved "https://registry.yarnpkg.com/@antv/g/-/g-3.3.6.tgz#11fed9ddc9ed4e5a2aa244b7c8abb982a003f201" + integrity sha512-2GtyTz++s0BbN6s0ZL2/nrqGYCkd52pVoNH92YkrTdTOvpO6Z4DNoo6jGVgZdPX6Nzwli6yduC8MinVAhE8X6g== + dependencies: + "@antv/gl-matrix" "~2.7.1" + "@antv/util" "~1.3.1" + d3-ease "~1.0.3" + d3-interpolate "~1.1.5" + d3-timer "~1.0.6" + wolfy87-eventemitter "~5.1.0" + +"@antv/gl-matrix@^2.7.1", "@antv/gl-matrix@~2.7.1": + version "2.7.1" + resolved "https://registry.yarnpkg.com/@antv/gl-matrix/-/gl-matrix-2.7.1.tgz#acb8e37f7ab3df01345aba4372d7942be42eba14" + integrity sha512-oOWcVNlpELIKi9x+Mm1Vwbz8pXfkbJKykoCIOJ/dNK79hSIANbpXJ5d3Rra9/wZqK6MC961B7sybFhPlLraT3Q== + +"@antv/scale@~0.1.1": + version "0.1.5" + resolved "https://registry.yarnpkg.com/@antv/scale/-/scale-0.1.5.tgz#243266e8b9047cf64b2fdfc40f9834cf0846496e" + integrity sha512-7RAu4iH5+Hk21h6+aBMiDTfmLf4IibK2SWjx/+E4f4AXRpqucO+8u7IbZdFkakAWxvqhJtN3oePJuTKqOMcmlg== + dependencies: + "@antv/util" "~1.3.1" + fecha "~2.3.3" + +"@antv/util@~1.3.1": + version "1.3.1" + resolved "https://registry.yarnpkg.com/@antv/util/-/util-1.3.1.tgz#30a34b201ff9126ec0d58c72c8166a9c3e644ccd" + integrity sha512-cbUta0hIJrKEaW3eKoGarz3Ita+9qUPF2YzTj8A6wds/nNiy20G26ztIWHU+5ThLc13B1n5Ik52LbaCaeg9enA== + dependencies: + "@antv/gl-matrix" "^2.7.1" + +"@babel/code-frame@7.8.3", "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.8.3.tgz#33e25903d7481181534e12ec0a25f16b6fcf419e" + integrity sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g== + dependencies: + "@babel/highlight" "^7.8.3" + +"@babel/compat-data@^7.9.0", "@babel/compat-data@^7.9.6": + version "7.9.6" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.9.6.tgz#3f604c40e420131affe6f2c8052e9a275ae2049b" + integrity sha512-5QPTrNen2bm7RBc7dsOmcA5hbrS4O2Vhmk5XOL4zWW/zD/hV0iinpefDlkm+tBBy8kDtFaaeEvmAqt+nURAV2g== + dependencies: + browserslist "^4.11.1" + invariant "^2.2.4" + semver "^5.5.0" + +"@babel/core@7.9.0": + version "7.9.0" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.9.0.tgz#ac977b538b77e132ff706f3b8a4dbad09c03c56e" + integrity sha512-kWc7L0fw1xwvI0zi8OKVBuxRVefwGOrKSQMvrQ3dW+bIIavBY3/NpXmpjMy7bQnLgwgzWQZ8TlM57YHpHNHz4w== + dependencies: + "@babel/code-frame" "^7.8.3" + "@babel/generator" "^7.9.0" + "@babel/helper-module-transforms" "^7.9.0" + "@babel/helpers" "^7.9.0" + "@babel/parser" "^7.9.0" + "@babel/template" "^7.8.6" + "@babel/traverse" "^7.9.0" + "@babel/types" "^7.9.0" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.1" + json5 "^2.1.2" + lodash "^4.17.13" + resolve "^1.3.2" + semver "^5.4.1" + source-map "^0.5.0" + +"@babel/core@^7.1.0": + version "7.9.6" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.9.6.tgz#d9aa1f580abf3b2286ef40b6904d390904c63376" + integrity sha512-nD3deLvbsApbHAHttzIssYqgb883yU/d9roe4RZymBCDaZryMJDbptVpEpeQuRh4BJ+SYI8le9YGxKvFEvl1Wg== + dependencies: + "@babel/code-frame" "^7.8.3" + "@babel/generator" "^7.9.6" + "@babel/helper-module-transforms" "^7.9.0" + "@babel/helpers" "^7.9.6" + "@babel/parser" "^7.9.6" + "@babel/template" "^7.8.6" + "@babel/traverse" "^7.9.6" + "@babel/types" "^7.9.6" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.1" + json5 "^2.1.2" + lodash "^4.17.13" + resolve "^1.3.2" + semver "^5.4.1" + source-map "^0.5.0" + +"@babel/generator@^7.4.0", "@babel/generator@^7.9.0", "@babel/generator@^7.9.6": + version "7.9.6" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.9.6.tgz#5408c82ac5de98cda0d77d8124e99fa1f2170a43" + integrity sha512-+htwWKJbH2bL72HRluF8zumBxzuX0ZZUFl3JLNyoUjM/Ho8wnVpPXM6aUz8cfKDqQ/h7zHqKt4xzJteUosckqQ== + dependencies: + "@babel/types" "^7.9.6" + jsesc "^2.5.1" + lodash "^4.17.13" + source-map "^0.5.0" + +"@babel/helper-annotate-as-pure@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.8.3.tgz#60bc0bc657f63a0924ff9a4b4a0b24a13cf4deee" + integrity sha512-6o+mJrZBxOoEX77Ezv9zwW7WV8DdluouRKNY/IR5u/YTMuKHgugHOzYWlYvYLpLA9nPsQCAAASpCIbjI9Mv+Uw== + dependencies: + "@babel/types" "^7.8.3" + +"@babel/helper-builder-binary-assignment-operator-visitor@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.8.3.tgz#c84097a427a061ac56a1c30ebf54b7b22d241503" + integrity sha512-5eFOm2SyFPK4Rh3XMMRDjN7lBH0orh3ss0g3rTYZnBQ+r6YPj7lgDyCvPphynHvUrobJmeMignBr6Acw9mAPlw== + dependencies: + "@babel/helper-explode-assignable-expression" "^7.8.3" + "@babel/types" "^7.8.3" + +"@babel/helper-compilation-targets@^7.8.7": + version "7.9.6" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.9.6.tgz#1e05b7ccc9d38d2f8b40b458b380a04dcfadd38a" + integrity sha512-x2Nvu0igO0ejXzx09B/1fGBxY9NXQlBW2kZsSxCJft+KHN8t9XWzIvFxtPHnBOAXpVsdxZKZFbRUC8TsNKajMw== + dependencies: + "@babel/compat-data" "^7.9.6" + browserslist "^4.11.1" + invariant "^2.2.4" + levenary "^1.1.1" + semver "^5.5.0" + +"@babel/helper-create-regexp-features-plugin@^7.8.3", "@babel/helper-create-regexp-features-plugin@^7.8.8": + version "7.8.8" + resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.8.8.tgz#5d84180b588f560b7864efaeea89243e58312087" + integrity sha512-LYVPdwkrQEiX9+1R29Ld/wTrmQu1SSKYnuOk3g0CkcZMA1p0gsNxJFj/3gBdaJ7Cg0Fnek5z0DsMULePP7Lrqg== + dependencies: + "@babel/helper-annotate-as-pure" "^7.8.3" + "@babel/helper-regex" "^7.8.3" + regexpu-core "^4.7.0" + +"@babel/helper-define-map@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/helper-define-map/-/helper-define-map-7.8.3.tgz#a0655cad5451c3760b726eba875f1cd8faa02c15" + integrity sha512-PoeBYtxoZGtct3md6xZOCWPcKuMuk3IHhgxsRRNtnNShebf4C8YonTSblsK4tvDbm+eJAw2HAPOfCr+Q/YRG/g== + dependencies: + "@babel/helper-function-name" "^7.8.3" + "@babel/types" "^7.8.3" + lodash "^4.17.13" + +"@babel/helper-explode-assignable-expression@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.8.3.tgz#a728dc5b4e89e30fc2dfc7d04fa28a930653f982" + integrity sha512-N+8eW86/Kj147bO9G2uclsg5pwfs/fqqY5rwgIL7eTBklgXjcOJ3btzS5iM6AitJcftnY7pm2lGsrJVYLGjzIw== + dependencies: + "@babel/traverse" "^7.8.3" + "@babel/types" "^7.8.3" + +"@babel/helper-function-name@^7.8.3", "@babel/helper-function-name@^7.9.5": + version "7.9.5" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.9.5.tgz#2b53820d35275120e1874a82e5aabe1376920a5c" + integrity sha512-JVcQZeXM59Cd1qanDUxv9fgJpt3NeKUaqBqUEvfmQ+BCOKq2xUgaWZW2hr0dkbyJgezYuplEoh5knmrnS68efw== + dependencies: + "@babel/helper-get-function-arity" "^7.8.3" + "@babel/template" "^7.8.3" + "@babel/types" "^7.9.5" + +"@babel/helper-get-function-arity@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.8.3.tgz#b894b947bd004381ce63ea1db9f08547e920abd5" + integrity sha512-FVDR+Gd9iLjUMY1fzE2SR0IuaJToR4RkCDARVfsBBPSP53GEqSFjD8gNyxg246VUyc/ALRxFaAK8rVG7UT7xRA== + dependencies: + "@babel/types" "^7.8.3" + +"@babel/helper-hoist-variables@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.8.3.tgz#1dbe9b6b55d78c9b4183fc8cdc6e30ceb83b7134" + integrity sha512-ky1JLOjcDUtSc+xkt0xhYff7Z6ILTAHKmZLHPxAhOP0Nd77O+3nCsd6uSVYur6nJnCI029CrNbYlc0LoPfAPQg== + dependencies: + "@babel/types" "^7.8.3" + +"@babel/helper-member-expression-to-functions@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.8.3.tgz#659b710498ea6c1d9907e0c73f206eee7dadc24c" + integrity sha512-fO4Egq88utkQFjbPrSHGmGLFqmrshs11d46WI+WZDESt7Wu7wN2G2Iu+NMMZJFDOVRHAMIkB5SNh30NtwCA7RA== + dependencies: + "@babel/types" "^7.8.3" + +"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz#7fe39589b39c016331b6b8c3f441e8f0b1419498" + integrity sha512-R0Bx3jippsbAEtzkpZ/6FIiuzOURPcMjHp+Z6xPe6DtApDJx+w7UYyOLanZqO8+wKR9G10s/FmHXvxaMd9s6Kg== + dependencies: + "@babel/types" "^7.8.3" + +"@babel/helper-module-transforms@^7.9.0": + version "7.9.0" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.9.0.tgz#43b34dfe15961918707d247327431388e9fe96e5" + integrity sha512-0FvKyu0gpPfIQ8EkxlrAydOWROdHpBmiCiRwLkUiBGhCUPRRbVD2/tm3sFr/c/GWFrQ/ffutGUAnx7V0FzT2wA== + dependencies: + "@babel/helper-module-imports" "^7.8.3" + "@babel/helper-replace-supers" "^7.8.6" + "@babel/helper-simple-access" "^7.8.3" + "@babel/helper-split-export-declaration" "^7.8.3" + "@babel/template" "^7.8.6" + "@babel/types" "^7.9.0" + lodash "^4.17.13" + +"@babel/helper-optimise-call-expression@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.8.3.tgz#7ed071813d09c75298ef4f208956006b6111ecb9" + integrity sha512-Kag20n86cbO2AvHca6EJsvqAd82gc6VMGule4HwebwMlwkpXuVqrNRj6CkCV2sKxgi9MyAUnZVnZ6lJ1/vKhHQ== + dependencies: + "@babel/types" "^7.8.3" + +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz#9ea293be19babc0f52ff8ca88b34c3611b208670" + integrity sha512-j+fq49Xds2smCUNYmEHF9kGNkhbet6yVIBp4e6oeQpH1RUs/Ir06xUKzDjDkGcaaokPiTNs2JBWHjaE4csUkZQ== + +"@babel/helper-regex@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.8.3.tgz#139772607d51b93f23effe72105b319d2a4c6965" + integrity sha512-BWt0QtYv/cg/NecOAZMdcn/waj/5P26DR4mVLXfFtDokSR6fyuG0Pj+e2FqtSME+MqED1khnSMulkmGl8qWiUQ== + dependencies: + lodash "^4.17.13" + +"@babel/helper-remap-async-to-generator@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.8.3.tgz#273c600d8b9bf5006142c1e35887d555c12edd86" + integrity sha512-kgwDmw4fCg7AVgS4DukQR/roGp+jP+XluJE5hsRZwxCYGg+Rv9wSGErDWhlI90FODdYfd4xG4AQRiMDjjN0GzA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.8.3" + "@babel/helper-wrap-function" "^7.8.3" + "@babel/template" "^7.8.3" + "@babel/traverse" "^7.8.3" + "@babel/types" "^7.8.3" + +"@babel/helper-replace-supers@^7.8.3", "@babel/helper-replace-supers@^7.8.6": + version "7.9.6" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.9.6.tgz#03149d7e6a5586ab6764996cd31d6981a17e1444" + integrity sha512-qX+chbxkbArLyCImk3bWV+jB5gTNU/rsze+JlcF6Nf8tVTigPJSI1o1oBow/9Resa1yehUO9lIipsmu9oG4RzA== + dependencies: + "@babel/helper-member-expression-to-functions" "^7.8.3" + "@babel/helper-optimise-call-expression" "^7.8.3" + "@babel/traverse" "^7.9.6" + "@babel/types" "^7.9.6" + +"@babel/helper-simple-access@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.8.3.tgz#7f8109928b4dab4654076986af575231deb639ae" + integrity sha512-VNGUDjx5cCWg4vvCTR8qQ7YJYZ+HBjxOgXEl7ounz+4Sn7+LMD3CFrCTEU6/qXKbA2nKg21CwhhBzO0RpRbdCw== + dependencies: + "@babel/template" "^7.8.3" + "@babel/types" "^7.8.3" + +"@babel/helper-split-export-declaration@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz#31a9f30070f91368a7182cf05f831781065fc7a9" + integrity sha512-3x3yOeyBhW851hroze7ElzdkeRXQYQbFIb7gLK1WQYsw2GWDay5gAJNw1sWJ0VFP6z5J1whqeXH/WCdCjZv6dA== + dependencies: + "@babel/types" "^7.8.3" + +"@babel/helper-validator-identifier@^7.9.0", "@babel/helper-validator-identifier@^7.9.5": + version "7.9.5" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz#90977a8e6fbf6b431a7dc31752eee233bf052d80" + integrity sha512-/8arLKUFq882w4tWGj9JYzRpAlZgiWUJ+dtteNTDqrRBz9Iguck9Rn3ykuBDoUwh2TO4tSAJlrxDUOXWklJe4g== + +"@babel/helper-wrap-function@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.8.3.tgz#9dbdb2bb55ef14aaa01fe8c99b629bd5352d8610" + integrity sha512-LACJrbUET9cQDzb6kG7EeD7+7doC3JNvUgTEQOx2qaO1fKlzE/Bf05qs9w1oXQMmXlPO65lC3Tq9S6gZpTErEQ== + dependencies: + "@babel/helper-function-name" "^7.8.3" + "@babel/template" "^7.8.3" + "@babel/traverse" "^7.8.3" + "@babel/types" "^7.8.3" + +"@babel/helpers@^7.9.0", "@babel/helpers@^7.9.6": + version "7.9.6" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.9.6.tgz#092c774743471d0bb6c7de3ad465ab3d3486d580" + integrity sha512-tI4bUbldloLcHWoRUMAj4g1bF313M/o6fBKhIsb3QnGVPwRm9JsNf/gqMkQ7zjqReABiffPV6RWj7hEglID5Iw== + dependencies: + "@babel/template" "^7.8.3" + "@babel/traverse" "^7.9.6" + "@babel/types" "^7.9.6" + +"@babel/highlight@^7.8.3": + version "7.9.0" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.9.0.tgz#4e9b45ccb82b79607271b2979ad82c7b68163079" + integrity sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ== + dependencies: + "@babel/helper-validator-identifier" "^7.9.0" + chalk "^2.0.0" + js-tokens "^4.0.0" + +"@babel/parser@^7.1.0", "@babel/parser@^7.4.3", "@babel/parser@^7.8.6", "@babel/parser@^7.9.0", "@babel/parser@^7.9.6": + version "7.9.6" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.9.6.tgz#3b1bbb30dabe600cd72db58720998376ff653bc7" + integrity sha512-AoeIEJn8vt+d/6+PXDRPaksYhnlbMIiejioBZvvMQsOjW/JYK6k/0dKnvvP3EhK5GfMBWDPtrxRtegWdAcdq9Q== + +"@babel/plugin-proposal-async-generator-functions@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.8.3.tgz#bad329c670b382589721b27540c7d288601c6e6f" + integrity sha512-NZ9zLv848JsV3hs8ryEh7Uaz/0KsmPLqv0+PdkDJL1cJy0K4kOCFa8zc1E3mp+RHPQcpdfb/6GovEsW4VDrOMw== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + "@babel/helper-remap-async-to-generator" "^7.8.3" + "@babel/plugin-syntax-async-generators" "^7.8.0" + +"@babel/plugin-proposal-dynamic-import@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.8.3.tgz#38c4fe555744826e97e2ae930b0fb4cc07e66054" + integrity sha512-NyaBbyLFXFLT9FP+zk0kYlUlA8XtCUbehs67F0nnEg7KICgMc2mNkIeu9TYhKzyXMkrapZFwAhXLdnt4IYHy1w== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + "@babel/plugin-syntax-dynamic-import" "^7.8.0" + +"@babel/plugin-proposal-json-strings@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.8.3.tgz#da5216b238a98b58a1e05d6852104b10f9a70d6b" + integrity sha512-KGhQNZ3TVCQG/MjRbAUwuH+14y9q0tpxs1nWWs3pbSleRdDro9SAMMDyye8HhY1gqZ7/NqIc8SKhya0wRDgP1Q== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + "@babel/plugin-syntax-json-strings" "^7.8.0" + +"@babel/plugin-proposal-nullish-coalescing-operator@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.8.3.tgz#e4572253fdeed65cddeecfdab3f928afeb2fd5d2" + integrity sha512-TS9MlfzXpXKt6YYomudb/KU7nQI6/xnapG6in1uZxoxDghuSMZsPb6D2fyUwNYSAp4l1iR7QtFOjkqcRYcUsfw== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0" + +"@babel/plugin-proposal-numeric-separator@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.8.3.tgz#5d6769409699ec9b3b68684cd8116cedff93bad8" + integrity sha512-jWioO1s6R/R+wEHizfaScNsAx+xKgwTLNXSh7tTC4Usj3ItsPEhYkEpU4h+lpnBwq7NBVOJXfO6cRFYcX69JUQ== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + "@babel/plugin-syntax-numeric-separator" "^7.8.3" + +"@babel/plugin-proposal-object-rest-spread@^7.9.0": + version "7.9.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.9.6.tgz#7a093586fcb18b08266eb1a7177da671ac575b63" + integrity sha512-Ga6/fhGqA9Hj+y6whNpPv8psyaK5xzrQwSPsGPloVkvmH+PqW1ixdnfJ9uIO06OjQNYol3PMnfmJ8vfZtkzF+A== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + "@babel/plugin-syntax-object-rest-spread" "^7.8.0" + "@babel/plugin-transform-parameters" "^7.9.5" + +"@babel/plugin-proposal-optional-catch-binding@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.8.3.tgz#9dee96ab1650eed88646ae9734ca167ac4a9c5c9" + integrity sha512-0gkX7J7E+AtAw9fcwlVQj8peP61qhdg/89D5swOkjYbkboA2CVckn3kiyum1DE0wskGb7KJJxBdyEBApDLLVdw== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.0" + +"@babel/plugin-proposal-optional-chaining@^7.9.0": + version "7.9.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.9.0.tgz#31db16b154c39d6b8a645292472b98394c292a58" + integrity sha512-NDn5tu3tcv4W30jNhmc2hyD5c56G6cXx4TesJubhxrJeCvuuMpttxr0OnNCqbZGhFjLrg+NIhxxC+BK5F6yS3w== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + "@babel/plugin-syntax-optional-chaining" "^7.8.0" + +"@babel/plugin-proposal-unicode-property-regex@^7.4.4", "@babel/plugin-proposal-unicode-property-regex@^7.8.3": + version "7.8.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.8.8.tgz#ee3a95e90cdc04fe8cd92ec3279fa017d68a0d1d" + integrity sha512-EVhjVsMpbhLw9ZfHWSx2iy13Q8Z/eg8e8ccVWt23sWQK5l1UdkoLJPN5w69UA4uITGBnEZD2JOe4QOHycYKv8A== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.8.8" + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-syntax-async-generators@^7.8.0": + version "7.8.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" + integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-dynamic-import@^7.8.0": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3" + integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-json-strings@^7.8.0": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" + integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.0": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" + integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-numeric-separator@^7.8.0", "@babel/plugin-syntax-numeric-separator@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.8.3.tgz#0e3fb63e09bea1b11e96467271c8308007e7c41f" + integrity sha512-H7dCMAdN83PcCmqmkHB5dtp+Xa9a6LKSvA2hiFBC/5alSHxM5VgWZXFqDi0YFe8XNGT6iCa+z4V4zSt/PdZ7Dw== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-syntax-object-rest-spread@^7.0.0", "@babel/plugin-syntax-object-rest-spread@^7.8.0": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" + integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-optional-catch-binding@^7.8.0": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" + integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-optional-chaining@^7.8.0": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" + integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-top-level-await@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.8.3.tgz#3acdece695e6b13aaf57fc291d1a800950c71391" + integrity sha512-kwj1j9lL/6Wd0hROD3b/OZZ7MSrZLqqn9RAZ5+cYYsflQ9HZBIKCUkr3+uL1MEJ1NePiUbf98jjiMQSv0NMR9g== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-arrow-functions@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.8.3.tgz#82776c2ed0cd9e1a49956daeb896024c9473b8b6" + integrity sha512-0MRF+KC8EqH4dbuITCWwPSzsyO3HIWWlm30v8BbbpOrS1B++isGxPnnuq/IZvOX5J2D/p7DQalQm+/2PnlKGxg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-async-to-generator@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.8.3.tgz#4308fad0d9409d71eafb9b1a6ee35f9d64b64086" + integrity sha512-imt9tFLD9ogt56Dd5CI/6XgpukMwd/fLGSrix2httihVe7LOGVPhyhMh1BU5kDM7iHD08i8uUtmV2sWaBFlHVQ== + dependencies: + "@babel/helper-module-imports" "^7.8.3" + "@babel/helper-plugin-utils" "^7.8.3" + "@babel/helper-remap-async-to-generator" "^7.8.3" + +"@babel/plugin-transform-block-scoped-functions@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.8.3.tgz#437eec5b799b5852072084b3ae5ef66e8349e8a3" + integrity sha512-vo4F2OewqjbB1+yaJ7k2EJFHlTP3jR634Z9Cj9itpqNjuLXvhlVxgnjsHsdRgASR8xYDrx6onw4vW5H6We0Jmg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-block-scoping@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.8.3.tgz#97d35dab66857a437c166358b91d09050c868f3a" + integrity sha512-pGnYfm7RNRgYRi7bids5bHluENHqJhrV4bCZRwc5GamaWIIs07N4rZECcmJL6ZClwjDz1GbdMZFtPs27hTB06w== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + lodash "^4.17.13" + +"@babel/plugin-transform-classes@^7.9.0": + version "7.9.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.9.5.tgz#800597ddb8aefc2c293ed27459c1fcc935a26c2c" + integrity sha512-x2kZoIuLC//O5iA7PEvecB105o7TLzZo8ofBVhP79N+DO3jaX+KYfww9TQcfBEZD0nikNyYcGB1IKtRq36rdmg== + dependencies: + "@babel/helper-annotate-as-pure" "^7.8.3" + "@babel/helper-define-map" "^7.8.3" + "@babel/helper-function-name" "^7.9.5" + "@babel/helper-optimise-call-expression" "^7.8.3" + "@babel/helper-plugin-utils" "^7.8.3" + "@babel/helper-replace-supers" "^7.8.6" + "@babel/helper-split-export-declaration" "^7.8.3" + globals "^11.1.0" + +"@babel/plugin-transform-computed-properties@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.8.3.tgz#96d0d28b7f7ce4eb5b120bb2e0e943343c86f81b" + integrity sha512-O5hiIpSyOGdrQZRQ2ccwtTVkgUDBBiCuK//4RJ6UfePllUTCENOzKxfh6ulckXKc0DixTFLCfb2HVkNA7aDpzA== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-destructuring@^7.8.3": + version "7.9.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.9.5.tgz#72c97cf5f38604aea3abf3b935b0e17b1db76a50" + integrity sha512-j3OEsGel8nHL/iusv/mRd5fYZ3DrOxWC82x0ogmdN/vHfAP4MYw+AFKYanzWlktNwikKvlzUV//afBW5FTp17Q== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-dotall-regex@^7.4.4", "@babel/plugin-transform-dotall-regex@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.8.3.tgz#c3c6ec5ee6125c6993c5cbca20dc8621a9ea7a6e" + integrity sha512-kLs1j9Nn4MQoBYdRXH6AeaXMbEJFaFu/v1nQkvib6QzTj8MZI5OQzqmD83/2jEM1z0DLilra5aWO5YpyC0ALIw== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.8.3" + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-duplicate-keys@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.8.3.tgz#8d12df309aa537f272899c565ea1768e286e21f1" + integrity sha512-s8dHiBUbcbSgipS4SMFuWGqCvyge5V2ZeAWzR6INTVC3Ltjig/Vw1G2Gztv0vU/hRG9X8IvKvYdoksnUfgXOEQ== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-exponentiation-operator@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.8.3.tgz#581a6d7f56970e06bf51560cd64f5e947b70d7b7" + integrity sha512-zwIpuIymb3ACcInbksHaNcR12S++0MDLKkiqXHl3AzpgdKlFNhog+z/K0+TGW+b0w5pgTq4H6IwV/WhxbGYSjQ== + dependencies: + "@babel/helper-builder-binary-assignment-operator-visitor" "^7.8.3" + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-for-of@^7.9.0": + version "7.9.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.9.0.tgz#0f260e27d3e29cd1bb3128da5e76c761aa6c108e" + integrity sha512-lTAnWOpMwOXpyDx06N+ywmF3jNbafZEqZ96CGYabxHrxNX8l5ny7dt4bK/rGwAh9utyP2b2Hv7PlZh1AAS54FQ== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-function-name@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.8.3.tgz#279373cb27322aaad67c2683e776dfc47196ed8b" + integrity sha512-rO/OnDS78Eifbjn5Py9v8y0aR+aSYhDhqAwVfsTl0ERuMZyr05L1aFSCJnbv2mmsLkit/4ReeQ9N2BgLnOcPCQ== + dependencies: + "@babel/helper-function-name" "^7.8.3" + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-literals@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.8.3.tgz#aef239823d91994ec7b68e55193525d76dbd5dc1" + integrity sha512-3Tqf8JJ/qB7TeldGl+TT55+uQei9JfYaregDcEAyBZ7akutriFrt6C/wLYIer6OYhleVQvH/ntEhjE/xMmy10A== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-member-expression-literals@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.8.3.tgz#963fed4b620ac7cbf6029c755424029fa3a40410" + integrity sha512-3Wk2EXhnw+rP+IDkK6BdtPKsUE5IeZ6QOGrPYvw52NwBStw9V1ZVzxgK6fSKSxqUvH9eQPR3tm3cOq79HlsKYA== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-modules-amd@^7.9.0": + version "7.9.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.9.6.tgz#8539ec42c153d12ea3836e0e3ac30d5aae7b258e" + integrity sha512-zoT0kgC3EixAyIAU+9vfaUVKTv9IxBDSabgHoUCBP6FqEJ+iNiN7ip7NBKcYqbfUDfuC2mFCbM7vbu4qJgOnDw== + dependencies: + "@babel/helper-module-transforms" "^7.9.0" + "@babel/helper-plugin-utils" "^7.8.3" + babel-plugin-dynamic-import-node "^2.3.3" + +"@babel/plugin-transform-modules-commonjs@^7.9.0": + version "7.9.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.9.6.tgz#64b7474a4279ee588cacd1906695ca721687c277" + integrity sha512-7H25fSlLcn+iYimmsNe3uK1at79IE6SKW9q0/QeEHTMC9MdOZ+4bA+T1VFB5fgOqBWoqlifXRzYD0JPdmIrgSQ== + dependencies: + "@babel/helper-module-transforms" "^7.9.0" + "@babel/helper-plugin-utils" "^7.8.3" + "@babel/helper-simple-access" "^7.8.3" + babel-plugin-dynamic-import-node "^2.3.3" + +"@babel/plugin-transform-modules-systemjs@^7.9.0": + version "7.9.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.9.6.tgz#207f1461c78a231d5337a92140e52422510d81a4" + integrity sha512-NW5XQuW3N2tTHim8e1b7qGy7s0kZ2OH3m5octc49K1SdAKGxYxeIx7hiIz05kS1R2R+hOWcsr1eYwcGhrdHsrg== + dependencies: + "@babel/helper-hoist-variables" "^7.8.3" + "@babel/helper-module-transforms" "^7.9.0" + "@babel/helper-plugin-utils" "^7.8.3" + babel-plugin-dynamic-import-node "^2.3.3" + +"@babel/plugin-transform-modules-umd@^7.9.0": + version "7.9.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.9.0.tgz#e909acae276fec280f9b821a5f38e1f08b480697" + integrity sha512-uTWkXkIVtg/JGRSIABdBoMsoIeoHQHPTL0Y2E7xf5Oj7sLqwVsNXOkNk0VJc7vF0IMBsPeikHxFjGe+qmwPtTQ== + dependencies: + "@babel/helper-module-transforms" "^7.9.0" + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-named-capturing-groups-regex@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.8.3.tgz#a2a72bffa202ac0e2d0506afd0939c5ecbc48c6c" + integrity sha512-f+tF/8UVPU86TrCb06JoPWIdDpTNSGGcAtaD9mLP0aYGA0OS0j7j7DHJR0GTFrUZPUU6loZhbsVZgTh0N+Qdnw== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.8.3" + +"@babel/plugin-transform-new-target@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.8.3.tgz#60cc2ae66d85c95ab540eb34babb6434d4c70c43" + integrity sha512-QuSGysibQpyxexRyui2vca+Cmbljo8bcRckgzYV4kRIsHpVeyeC3JDO63pY+xFZ6bWOBn7pfKZTqV4o/ix9sFw== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-object-super@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.8.3.tgz#ebb6a1e7a86ffa96858bd6ac0102d65944261725" + integrity sha512-57FXk+gItG/GejofIyLIgBKTas4+pEU47IXKDBWFTxdPd7F80H8zybyAY7UoblVfBhBGs2EKM+bJUu2+iUYPDQ== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + "@babel/helper-replace-supers" "^7.8.3" + +"@babel/plugin-transform-parameters@^7.8.7", "@babel/plugin-transform-parameters@^7.9.5": + version "7.9.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.9.5.tgz#173b265746f5e15b2afe527eeda65b73623a0795" + integrity sha512-0+1FhHnMfj6lIIhVvS4KGQJeuhe1GI//h5uptK4PvLt+BGBxsoUJbd3/IW002yk//6sZPlFgsG1hY6OHLcy6kA== + dependencies: + "@babel/helper-get-function-arity" "^7.8.3" + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-property-literals@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.8.3.tgz#33194300d8539c1ed28c62ad5087ba3807b98263" + integrity sha512-uGiiXAZMqEoQhRWMK17VospMZh5sXWg+dlh2soffpkAl96KAm+WZuJfa6lcELotSRmooLqg0MWdH6UUq85nmmg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-regenerator@^7.8.7": + version "7.8.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.8.7.tgz#5e46a0dca2bee1ad8285eb0527e6abc9c37672f8" + integrity sha512-TIg+gAl4Z0a3WmD3mbYSk+J9ZUH6n/Yc57rtKRnlA/7rcCvpekHXe0CMZHP1gYp7/KLe9GHTuIba0vXmls6drA== + dependencies: + regenerator-transform "^0.14.2" + +"@babel/plugin-transform-reserved-words@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.8.3.tgz#9a0635ac4e665d29b162837dd3cc50745dfdf1f5" + integrity sha512-mwMxcycN3omKFDjDQUl+8zyMsBfjRFr0Zn/64I41pmjv4NJuqcYlEtezwYtw9TFd9WR1vN5kiM+O0gMZzO6L0A== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-shorthand-properties@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.8.3.tgz#28545216e023a832d4d3a1185ed492bcfeac08c8" + integrity sha512-I9DI6Odg0JJwxCHzbzW08ggMdCezoWcuQRz3ptdudgwaHxTjxw5HgdFJmZIkIMlRymL6YiZcped4TTCB0JcC8w== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-spread@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.8.3.tgz#9c8ffe8170fdfb88b114ecb920b82fb6e95fe5e8" + integrity sha512-CkuTU9mbmAoFOI1tklFWYYbzX5qCIZVXPVy0jpXgGwkplCndQAa58s2jr66fTeQnA64bDox0HL4U56CFYoyC7g== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-sticky-regex@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.8.3.tgz#be7a1290f81dae767475452199e1f76d6175b100" + integrity sha512-9Spq0vGCD5Bb4Z/ZXXSK5wbbLFMG085qd2vhL1JYu1WcQ5bXqZBAYRzU1d+p79GcHs2szYv5pVQCX13QgldaWw== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + "@babel/helper-regex" "^7.8.3" + +"@babel/plugin-transform-template-literals@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.8.3.tgz#7bfa4732b455ea6a43130adc0ba767ec0e402a80" + integrity sha512-820QBtykIQOLFT8NZOcTRJ1UNuztIELe4p9DCgvj4NK+PwluSJ49we7s9FB1HIGNIYT7wFUJ0ar2QpCDj0escQ== + dependencies: + "@babel/helper-annotate-as-pure" "^7.8.3" + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-typeof-symbol@^7.8.4": + version "7.8.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.8.4.tgz#ede4062315ce0aaf8a657a920858f1a2f35fc412" + integrity sha512-2QKyfjGdvuNfHsb7qnBBlKclbD4CfshH2KvDabiijLMGXPHJXGxtDzwIF7bQP+T0ysw8fYTtxPafgfs/c1Lrqg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-transform-unicode-regex@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.8.3.tgz#0cef36e3ba73e5c57273effb182f46b91a1ecaad" + integrity sha512-+ufgJjYdmWfSQ+6NS9VGUR2ns8cjJjYbrbi11mZBTaWm+Fui/ncTLFF28Ei1okavY+xkojGr1eJxNsWYeA5aZw== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.8.3" + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/preset-env@7.9.0": + version "7.9.0" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.9.0.tgz#a5fc42480e950ae8f5d9f8f2bbc03f52722df3a8" + integrity sha512-712DeRXT6dyKAM/FMbQTV/FvRCms2hPCx+3weRjZ8iQVQWZejWWk1wwG6ViWMyqb/ouBbGOl5b6aCk0+j1NmsQ== + dependencies: + "@babel/compat-data" "^7.9.0" + "@babel/helper-compilation-targets" "^7.8.7" + "@babel/helper-module-imports" "^7.8.3" + "@babel/helper-plugin-utils" "^7.8.3" + "@babel/plugin-proposal-async-generator-functions" "^7.8.3" + "@babel/plugin-proposal-dynamic-import" "^7.8.3" + "@babel/plugin-proposal-json-strings" "^7.8.3" + "@babel/plugin-proposal-nullish-coalescing-operator" "^7.8.3" + "@babel/plugin-proposal-numeric-separator" "^7.8.3" + "@babel/plugin-proposal-object-rest-spread" "^7.9.0" + "@babel/plugin-proposal-optional-catch-binding" "^7.8.3" + "@babel/plugin-proposal-optional-chaining" "^7.9.0" + "@babel/plugin-proposal-unicode-property-regex" "^7.8.3" + "@babel/plugin-syntax-async-generators" "^7.8.0" + "@babel/plugin-syntax-dynamic-import" "^7.8.0" + "@babel/plugin-syntax-json-strings" "^7.8.0" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.0" + "@babel/plugin-syntax-numeric-separator" "^7.8.0" + "@babel/plugin-syntax-object-rest-spread" "^7.8.0" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.0" + "@babel/plugin-syntax-optional-chaining" "^7.8.0" + "@babel/plugin-syntax-top-level-await" "^7.8.3" + "@babel/plugin-transform-arrow-functions" "^7.8.3" + "@babel/plugin-transform-async-to-generator" "^7.8.3" + "@babel/plugin-transform-block-scoped-functions" "^7.8.3" + "@babel/plugin-transform-block-scoping" "^7.8.3" + "@babel/plugin-transform-classes" "^7.9.0" + "@babel/plugin-transform-computed-properties" "^7.8.3" + "@babel/plugin-transform-destructuring" "^7.8.3" + "@babel/plugin-transform-dotall-regex" "^7.8.3" + "@babel/plugin-transform-duplicate-keys" "^7.8.3" + "@babel/plugin-transform-exponentiation-operator" "^7.8.3" + "@babel/plugin-transform-for-of" "^7.9.0" + "@babel/plugin-transform-function-name" "^7.8.3" + "@babel/plugin-transform-literals" "^7.8.3" + "@babel/plugin-transform-member-expression-literals" "^7.8.3" + "@babel/plugin-transform-modules-amd" "^7.9.0" + "@babel/plugin-transform-modules-commonjs" "^7.9.0" + "@babel/plugin-transform-modules-systemjs" "^7.9.0" + "@babel/plugin-transform-modules-umd" "^7.9.0" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.8.3" + "@babel/plugin-transform-new-target" "^7.8.3" + "@babel/plugin-transform-object-super" "^7.8.3" + "@babel/plugin-transform-parameters" "^7.8.7" + "@babel/plugin-transform-property-literals" "^7.8.3" + "@babel/plugin-transform-regenerator" "^7.8.7" + "@babel/plugin-transform-reserved-words" "^7.8.3" + "@babel/plugin-transform-shorthand-properties" "^7.8.3" + "@babel/plugin-transform-spread" "^7.8.3" + "@babel/plugin-transform-sticky-regex" "^7.8.3" + "@babel/plugin-transform-template-literals" "^7.8.3" + "@babel/plugin-transform-typeof-symbol" "^7.8.4" + "@babel/plugin-transform-unicode-regex" "^7.8.3" + "@babel/preset-modules" "^0.1.3" + "@babel/types" "^7.9.0" + browserslist "^4.9.1" + core-js-compat "^3.6.2" + invariant "^2.2.2" + levenary "^1.1.1" + semver "^5.5.0" + +"@babel/preset-modules@^0.1.3": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.3.tgz#13242b53b5ef8c883c3cf7dddd55b36ce80fbc72" + integrity sha512-Ra3JXOHBq2xd56xSF7lMKXdjBn3T772Y1Wet3yWnkDly9zHvJki029tAFzvAAK5cf4YV3yoxuP61crYRol6SVg== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-proposal-unicode-property-regex" "^7.4.4" + "@babel/plugin-transform-dotall-regex" "^7.4.4" + "@babel/types" "^7.4.4" + esutils "^2.0.2" + +"@babel/runtime@^7.1.2", "@babel/runtime@^7.4.4", "@babel/runtime@^7.5.5", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.6", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7", "@babel/runtime@^7.9.2": + version "7.9.6" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.9.6.tgz#a9102eb5cadedf3f31d08a9ecf294af7827ea29f" + integrity sha512-64AF1xY3OAkFHqOb9s4jpgk1Mm5vDZ4L3acHvAml+53nO1XbXLuDodsVpO4OIUsmemlUHMxNdYMNJmsvOwLrvQ== + dependencies: + regenerator-runtime "^0.13.4" + +"@babel/template@^7.4.0", "@babel/template@^7.8.3", "@babel/template@^7.8.6": + version "7.8.6" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.8.6.tgz#86b22af15f828dfb086474f964dcc3e39c43ce2b" + integrity sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg== + dependencies: + "@babel/code-frame" "^7.8.3" + "@babel/parser" "^7.8.6" + "@babel/types" "^7.8.6" + +"@babel/traverse@^7.1.0", "@babel/traverse@^7.4.3", "@babel/traverse@^7.8.3", "@babel/traverse@^7.9.0", "@babel/traverse@^7.9.6": + version "7.9.6" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.9.6.tgz#5540d7577697bf619cc57b92aa0f1c231a94f442" + integrity sha512-b3rAHSjbxy6VEAvlxM8OV/0X4XrG72zoxme6q1MOoe2vd0bEc+TwayhuC1+Dfgqh1QEG+pj7atQqvUprHIccsg== + dependencies: + "@babel/code-frame" "^7.8.3" + "@babel/generator" "^7.9.6" + "@babel/helper-function-name" "^7.9.5" + "@babel/helper-split-export-declaration" "^7.8.3" + "@babel/parser" "^7.9.6" + "@babel/types" "^7.9.6" + debug "^4.1.0" + globals "^11.1.0" + lodash "^4.17.13" + +"@babel/types@^7.0.0", "@babel/types@^7.2.0", "@babel/types@^7.3.0", "@babel/types@^7.4.0", "@babel/types@^7.4.4", "@babel/types@^7.8.3", "@babel/types@^7.8.6", "@babel/types@^7.9.0", "@babel/types@^7.9.5", "@babel/types@^7.9.6": + version "7.9.6" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.9.6.tgz#2c5502b427251e9de1bd2dff95add646d95cc9f7" + integrity sha512-qxXzvBO//jO9ZnoasKF1uJzHd2+M6Q2ZPIVfnFps8JJvXy0ZBbwbNOmE6SGIY5XOY6d1Bo5lb9d9RJ8nv3WSeA== + dependencies: + "@babel/helper-validator-identifier" "^7.9.5" + lodash "^4.17.13" + to-fast-properties "^2.0.0" + +"@braintree/sanitize-url@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@braintree/sanitize-url/-/sanitize-url-4.0.0.tgz#2cda79ffd67b6ea919a63b5e1a883b92d636e844" + integrity sha512-bOoFoTxuEUuri/v1q0OXN0HIrZ2EiZlRSKdveU8vS5xf2+g0TmpXhmxkTc1s+XWR5xZNoVU4uvf/Mher98tfLw== + +"@cnakazawa/watch@^1.0.3": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@cnakazawa/watch/-/watch-1.0.4.tgz#f864ae85004d0fcab6f50be9141c4da368d1656a" + integrity sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ== + dependencies: + exec-sh "^0.3.2" + minimist "^1.2.0" + +"@csstools/convert-colors@^1.4.0": + version "1.4.0" + resolved "https://registry.yarnpkg.com/@csstools/convert-colors/-/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7" + integrity sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw== + +"@emotion/cache@^10.0.27", "@emotion/cache@^10.0.9": + version "10.0.29" + resolved "https://registry.yarnpkg.com/@emotion/cache/-/cache-10.0.29.tgz#87e7e64f412c060102d589fe7c6dc042e6f9d1e0" + integrity sha512-fU2VtSVlHiF27empSbxi1O2JFdNWZO+2NFHfwO0pxgTep6Xa3uGb+3pVKfLww2l/IBGLNEZl5Xf/++A4wAYDYQ== + dependencies: + "@emotion/sheet" "0.9.4" + "@emotion/stylis" "0.8.5" + "@emotion/utils" "0.11.3" + "@emotion/weak-memoize" "0.2.5" + +"@emotion/core@^10.0.27", "@emotion/core@^10.0.9": + version "10.0.28" + resolved "https://registry.yarnpkg.com/@emotion/core/-/core-10.0.28.tgz#bb65af7262a234593a9e952c041d0f1c9b9bef3d" + integrity sha512-pH8UueKYO5jgg0Iq+AmCLxBsvuGtvlmiDCOuv8fGNYn3cowFpLN98L8zO56U0H1PjDIyAlXymgL3Wu7u7v6hbA== + dependencies: + "@babel/runtime" "^7.5.5" + "@emotion/cache" "^10.0.27" + "@emotion/css" "^10.0.27" + "@emotion/serialize" "^0.11.15" + "@emotion/sheet" "0.9.4" + "@emotion/utils" "0.11.3" + +"@emotion/css@^10.0.27", "@emotion/css@^10.0.9": + version "10.0.27" + resolved "https://registry.yarnpkg.com/@emotion/css/-/css-10.0.27.tgz#3a7458198fbbebb53b01b2b87f64e5e21241e14c" + integrity sha512-6wZjsvYeBhyZQYNrGoR5yPMYbMBNEnanDrqmsqS1mzDm1cOTu12shvl2j4QHNS36UaTE0USIJawCH9C8oW34Zw== + dependencies: + "@emotion/serialize" "^0.11.15" + "@emotion/utils" "0.11.3" + babel-plugin-emotion "^10.0.27" + +"@emotion/hash@0.8.0": + version "0.8.0" + resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.8.0.tgz#bbbff68978fefdbe68ccb533bc8cbe1d1afb5413" + integrity sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow== + +"@emotion/memoize@0.7.4": + version "0.7.4" + resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.7.4.tgz#19bf0f5af19149111c40d98bb0cf82119f5d9eeb" + integrity sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw== + +"@emotion/serialize@^0.11.15", "@emotion/serialize@^0.11.16": + version "0.11.16" + resolved "https://registry.yarnpkg.com/@emotion/serialize/-/serialize-0.11.16.tgz#dee05f9e96ad2fb25a5206b6d759b2d1ed3379ad" + integrity sha512-G3J4o8by0VRrO+PFeSc3js2myYNOXVJ3Ya+RGVxnshRYgsvErfAOglKAiy1Eo1vhzxqtUvjCyS5gtewzkmvSSg== + dependencies: + "@emotion/hash" "0.8.0" + "@emotion/memoize" "0.7.4" + "@emotion/unitless" "0.7.5" + "@emotion/utils" "0.11.3" + csstype "^2.5.7" + +"@emotion/sheet@0.9.4": + version "0.9.4" + resolved "https://registry.yarnpkg.com/@emotion/sheet/-/sheet-0.9.4.tgz#894374bea39ec30f489bbfc3438192b9774d32e5" + integrity sha512-zM9PFmgVSqBw4zL101Q0HrBVTGmpAxFZH/pYx/cjJT5advXguvcgjHFTCaIO3enL/xr89vK2bh0Mfyj9aa0ANA== + +"@emotion/stylis@0.8.5": + version "0.8.5" + resolved "https://registry.yarnpkg.com/@emotion/stylis/-/stylis-0.8.5.tgz#deacb389bd6ee77d1e7fcaccce9e16c5c7e78e04" + integrity sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ== + +"@emotion/unitless@0.7.5": + version "0.7.5" + resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.7.5.tgz#77211291c1900a700b8a78cfafda3160d76949ed" + integrity sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg== + +"@emotion/utils@0.11.3": + version "0.11.3" + resolved "https://registry.yarnpkg.com/@emotion/utils/-/utils-0.11.3.tgz#a759863867befa7e583400d322652a3f44820924" + integrity sha512-0o4l6pZC+hI88+bzuaX/6BgOvQVhbt2PfmxauVaYOGgbsAw14wdKyvMCZXnsnsHys94iadcF+RG/wZyx6+ZZBw== + +"@emotion/weak-memoize@0.2.5": + version "0.2.5" + resolved "https://registry.yarnpkg.com/@emotion/weak-memoize/-/weak-memoize-0.2.5.tgz#8eed982e2ee6f7f4e44c253e12962980791efd46" + integrity sha512-6U71C2Wp7r5XtFtQzYrW5iKFT67OixrSxjI4MptCHzdSVlgabczzqLe0ZSgnub/5Kp4hSbpDB1tMytZY9pwxxA== + +"@grafana/data@7.0.0-beta.3", "@grafana/data@next": + version "7.0.0-beta.3" + resolved "https://registry.yarnpkg.com/@grafana/data/-/data-7.0.0-beta.3.tgz#45533ae793584b06d63b9a4edbf95d119784b43d" + integrity sha512-se9OBNYqQk5YlDivN6jDCZDpte4A8AGMFm1WqEfT8DBu6IAfWigQJGPMVT/26aYVP+kDFgwEymr+G/Zgs0zaew== + dependencies: + "@braintree/sanitize-url" "4.0.0" + apache-arrow "0.16.0" + lodash "4.17.15" + rxjs "6.5.5" + xss "1.0.6" + +"@grafana/e2e-selectors@7.0.0-beta.3": + version "7.0.0-beta.3" + resolved "https://registry.yarnpkg.com/@grafana/e2e-selectors/-/e2e-selectors-7.0.0-beta.3.tgz#212e30ab18a4c77cbd599591384857ff55014e84" + integrity sha512-IYhvNtAJ2/MiCPc4RNovfTgQvPGBx9BHVnh00OIyLRWn3n6ElvBzHJ6vY2lsFLZONSY8TfrXKNKVFljDNBnOyg== + dependencies: + "@grafana/tsconfig" "^1.0.0-rc1" + commander "5.0.0" + execa "4.0.0" + typescript "3.7.5" + yaml "^1.8.3" + +"@grafana/eslint-config@^1.0.0-rc1": + version "1.0.0-rc1" + resolved "https://registry.yarnpkg.com/@grafana/eslint-config/-/eslint-config-1.0.0-rc1.tgz#3b0a1abddfea900a57abc9526ad31abb1da2d42c" + integrity sha512-xmcJR6mUYw1llq3m8gT2kE7xoq6yLMUgNf2Mf1yZvDCx2cXFSyaLlGs1dqjFWjJDbV46GdhYRAyRbyGR+J9QKg== + +"@grafana/slate-react@0.22.9-grafana": + version "0.22.9-grafana" + resolved "https://registry.yarnpkg.com/@grafana/slate-react/-/slate-react-0.22.9-grafana.tgz#07f35f0ffc018f616b9f82fa6e5ba65fae75c6a0" + integrity sha512-9NYjwabVOUQ/e4Y/Wm+sgePM65rb/gju59D52t4O42HsIm9exXv+SLajEBF/HiLHzuH5V+5uuHajbzv0vuE2VA== + dependencies: + debug "^3.1.0" + get-window "^1.1.1" + is-window "^1.0.2" + lodash "^4.1.1" + memoize-one "^4.0.0" + prop-types "^15.5.8" + react-immutable-proptypes "^2.1.0" + selection-is-backward "^1.0.0" + slate-base64-serializer "^0.2.111" + slate-dev-environment "^0.2.2" + slate-hotkeys "^0.2.9" + slate-plain-serializer "^0.7.10" + slate-prop-types "^0.5.41" + slate-react-placeholder "^0.2.8" + tiny-invariant "^1.0.1" + tiny-warning "^0.0.3" + +"@grafana/toolkit@next": + version "7.0.0-beta.3" + resolved "https://registry.yarnpkg.com/@grafana/toolkit/-/toolkit-7.0.0-beta.3.tgz#0f8702f99fdf461d21903284b6bfbce0c04dc61b" + integrity sha512-ke3ic4/iBqIS9o/im3d7os69dZl1E0ghxEbf7whnkpevidivRb2fHthAw0NHZOH7jJVOB/CGOqNpgl+uH4tOLQ== + dependencies: + "@babel/core" "7.9.0" + "@babel/preset-env" "7.9.0" + "@grafana/data" "7.0.0-beta.3" + "@grafana/eslint-config" "^1.0.0-rc1" + "@grafana/tsconfig" "^1.0.0-rc1" + "@grafana/ui" "7.0.0-beta.3" + "@types/command-exists" "^1.2.0" + "@types/execa" "^0.9.0" + "@types/expect-puppeteer" "3.3.1" + "@types/fs-extra" "^8.1.0" + "@types/inquirer" "^6.0.3" + "@types/jest" "24.0.13" + "@types/jest-cli" "^23.6.0" + "@types/node" "^12.0.4" + "@types/prettier" "^1.16.4" + "@types/puppeteer-core" "1.9.0" + "@types/react-dev-utils" "^9.0.4" + "@types/rimraf" "^2.0.3" + "@types/semver" "^6.0.0" + "@types/tmp" "^0.1.0" + "@types/webpack" "4.41.7" + "@typescript-eslint/eslint-plugin" "2.24.0" + "@typescript-eslint/parser" "2.24.0" + axios "0.19.2" + babel-jest "24.8.0" + babel-loader "8.1.0" + babel-plugin-angularjs-annotate "0.10.0" + chalk "^2.4.2" + command-exists "^1.2.8" + commander "^5.0.0" + concurrently "4.1.0" + copy-webpack-plugin "5.1.1" + css-loader "^3.0.0" + eslint "6.8.0" + eslint-config-prettier "6.10.0" + eslint-plugin-jsdoc "22.1.0" + eslint-plugin-prettier "3.1.2" + execa "^1.0.0" + expect-puppeteer "4.1.1" + file-loader "^4.0.0" + fork-ts-checker-webpack-plugin "1.0.0" + fs-extra "^8.1.0" + globby "^10.0.1" + html-loader "0.5.5" + html-webpack-plugin "^3.2.0" + inquirer "^6.3.1" + jest "24.8.0" + jest-canvas-mock "2.1.2" + jest-cli "^24.8.0" + jest-coverage-badges "^1.1.2" + jest-junit "^6.4.0" + less "^3.11.1" + less-loader "^5.0.0" + lodash "4.17.15" + md5-file "^4.0.0" + mini-css-extract-plugin "^0.7.0" + node-sass "^4.13.1" + optimize-css-assets-webpack-plugin "^5.0.3" + ora "^4.0.3" + pixelmatch "^5.1.0" + pngjs "^3.4.0" + postcss-flexbugs-fixes "4.2.0" + postcss-loader "3.0.0" + postcss-preset-env "6.7.0" + prettier "^1.19.1" + puppeteer-core "1.18.1" + react-dev-utils "^10.2.1" + replace-in-file "^4.1.0" + replace-in-file-webpack-plugin "^1.0.6" + rimraf "^3.0.0" + sass-loader "7.1.0" + semver "^7.1.3" + simple-git "^1.132.0" + style-loader "^0.23.1" + terser-webpack-plugin "^2.3.4" + ts-jest "24.1.0" + ts-loader "6.2.1" + ts-node "8.8.1" + tslib "1.10.0" + typescript "3.7.5" + url-loader "^2.0.1" + webpack "4.41.5" + +"@grafana/tsconfig@^1.0.0-rc1": + version "1.0.0-rc1" + resolved "https://registry.yarnpkg.com/@grafana/tsconfig/-/tsconfig-1.0.0-rc1.tgz#d07ea16755a50cae21000113f30546b61647a200" + integrity sha512-nucKPGyzlSKYSiJk5RA8GzMdVWhdYNdF+Hh65AXxjD9PlY69JKr5wANj8bVdQboag6dgg0BFKqgKPyY+YtV4Iw== + +"@grafana/ui@7.0.0-beta.3", "@grafana/ui@next": + version "7.0.0-beta.3" + resolved "https://registry.yarnpkg.com/@grafana/ui/-/ui-7.0.0-beta.3.tgz#5a664b91c1e155205ea67bfb53bffb8f14f7db27" + integrity sha512-fShi3Qf2RHLLU0MhtLGo5c5AwreUw75R1Ci2GQRvOnRqePsj6qSug1ipikCOhjW/JW90rxV974Or7PZETRRSYQ== + dependencies: + "@emotion/core" "^10.0.27" + "@grafana/data" "7.0.0-beta.3" + "@grafana/e2e-selectors" "7.0.0-beta.3" + "@grafana/slate-react" "0.22.9-grafana" + "@grafana/tsconfig" "^1.0.0-rc1" + "@iconscout/react-unicons" "^1.0.0" + "@torkelo/react-select" "3.0.8" + "@types/react-beautiful-dnd" "12.1.2" + "@types/react-color" "3.0.1" + "@types/react-select" "3.0.8" + "@types/react-table" "7.0.12" + "@types/slate" "0.47.1" + "@types/slate-react" "0.22.5" + bizcharts "^3.5.8" + classnames "2.2.6" + d3 "5.15.0" + emotion "10.0.27" + immutable "3.8.2" + jquery "3.4.1" + lodash "4.17.15" + moment "2.24.0" + papaparse "4.6.3" + rc-cascader "1.0.1" + rc-drawer "3.1.3" + rc-slider "8.7.1" + rc-time-picker "^3.7.3" + react "16.12.0" + react-beautiful-dnd "13.0.0" + react-calendar "2.19.2" + react-color "2.18.0" + react-custom-scrollbars "4.2.1" + react-dom "16.12.0" + react-highlight-words "0.16.0" + react-hook-form "5.1.3" + react-popper "1.3.3" + react-storybook-addon-props-combinations "1.1.0" + react-table "7.0.0" + react-transition-group "4.3.0" + slate "0.47.8" + storybook-dark-mode "0.4.0" + tinycolor2 "1.4.1" + +"@icons/material@^0.2.4": + version "0.2.4" + resolved "https://registry.yarnpkg.com/@icons/material/-/material-0.2.4.tgz#e90c9f71768b3736e76d7dd6783fc6c2afa88bc8" + integrity sha512-QPcGmICAPbGLGb6F/yNf/KzKqvFx8z5qx3D1yFqVAjoFmXK35EgyW+cJ57Te3CNsmzblwtzakLGFqHPqrfb4Tw== + +"@iconscout/react-unicons@^1.0.0": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@iconscout/react-unicons/-/react-unicons-1.1.1.tgz#c4730ae1c552812c793c8e7a9e1f52a85eda2ddd" + integrity sha512-SHbPf5a46HCe3mjNTrAuGW9MTFHwlxmnEAn8b65FB58QeZJ2fl11ffOYt/KutX0RFGWApQ79d0GKeOhP1J/MNQ== + dependencies: + react ">=15.0.0 <17.0.0" + +"@jest/console@^24.7.1", "@jest/console@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/console/-/console-24.9.0.tgz#79b1bc06fb74a8cfb01cbdedf945584b1b9707f0" + integrity sha512-Zuj6b8TnKXi3q4ymac8EQfc3ea/uhLeCGThFqXeC8H9/raaH8ARPUTdId+XyGd03Z4In0/VjD2OYFcBF09fNLQ== + dependencies: + "@jest/source-map" "^24.9.0" + chalk "^2.0.1" + slash "^2.0.0" + +"@jest/core@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/core/-/core-24.9.0.tgz#2ceccd0b93181f9c4850e74f2a9ad43d351369c4" + integrity sha512-Fogg3s4wlAr1VX7q+rhV9RVnUv5tD7VuWfYy1+whMiWUrvl7U3QJSJyWcDio9Lq2prqYsZaeTv2Rz24pWGkJ2A== + dependencies: + "@jest/console" "^24.7.1" + "@jest/reporters" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + ansi-escapes "^3.0.0" + chalk "^2.0.1" + exit "^0.1.2" + graceful-fs "^4.1.15" + jest-changed-files "^24.9.0" + jest-config "^24.9.0" + jest-haste-map "^24.9.0" + jest-message-util "^24.9.0" + jest-regex-util "^24.3.0" + jest-resolve "^24.9.0" + jest-resolve-dependencies "^24.9.0" + jest-runner "^24.9.0" + jest-runtime "^24.9.0" + jest-snapshot "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" + jest-watcher "^24.9.0" + micromatch "^3.1.10" + p-each-series "^1.0.0" + realpath-native "^1.1.0" + rimraf "^2.5.4" + slash "^2.0.0" + strip-ansi "^5.0.0" + +"@jest/environment@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-24.9.0.tgz#21e3afa2d65c0586cbd6cbefe208bafade44ab18" + integrity sha512-5A1QluTPhvdIPFYnO3sZC3smkNeXPVELz7ikPbhUj0bQjB07EoE9qtLrem14ZUYWdVayYbsjVwIiL4WBIMV4aQ== + dependencies: + "@jest/fake-timers" "^24.9.0" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + jest-mock "^24.9.0" + +"@jest/fake-timers@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-24.9.0.tgz#ba3e6bf0eecd09a636049896434d306636540c93" + integrity sha512-eWQcNa2YSwzXWIMC5KufBh3oWRIijrQFROsIqt6v/NS9Io/gknw1jsAC9c+ih/RQX4A3O7SeWAhQeN0goKhT9A== + dependencies: + "@jest/types" "^24.9.0" + jest-message-util "^24.9.0" + jest-mock "^24.9.0" + +"@jest/reporters@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-24.9.0.tgz#86660eff8e2b9661d042a8e98a028b8d631a5b43" + integrity sha512-mu4X0yjaHrffOsWmVLzitKmmmWSQ3GGuefgNscUSWNiUNcEOSEQk9k3pERKEQVBb0Cnn88+UESIsZEMH3o88Gw== + dependencies: + "@jest/environment" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + chalk "^2.0.1" + exit "^0.1.2" + glob "^7.1.2" + istanbul-lib-coverage "^2.0.2" + istanbul-lib-instrument "^3.0.1" + istanbul-lib-report "^2.0.4" + istanbul-lib-source-maps "^3.0.1" + istanbul-reports "^2.2.6" + jest-haste-map "^24.9.0" + jest-resolve "^24.9.0" + jest-runtime "^24.9.0" + jest-util "^24.9.0" + jest-worker "^24.6.0" + node-notifier "^5.4.2" + slash "^2.0.0" + source-map "^0.6.0" + string-length "^2.0.0" + +"@jest/source-map@^24.3.0", "@jest/source-map@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-24.9.0.tgz#0e263a94430be4b41da683ccc1e6bffe2a191714" + integrity sha512-/Xw7xGlsZb4MJzNDgB7PW5crou5JqWiBQaz6xyPd3ArOg2nfn/PunV8+olXbbEZzNl591o5rWKE9BRDaFAuIBg== + dependencies: + callsites "^3.0.0" + graceful-fs "^4.1.15" + source-map "^0.6.0" + +"@jest/test-result@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-24.9.0.tgz#11796e8aa9dbf88ea025757b3152595ad06ba0ca" + integrity sha512-XEFrHbBonBJ8dGp2JmF8kP/nQI/ImPpygKHwQ/SY+es59Z3L5PI4Qb9TQQMAEeYsThG1xF0k6tmG0tIKATNiiA== + dependencies: + "@jest/console" "^24.9.0" + "@jest/types" "^24.9.0" + "@types/istanbul-lib-coverage" "^2.0.0" + +"@jest/test-sequencer@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-24.9.0.tgz#f8f334f35b625a4f2f355f2fe7e6036dad2e6b31" + integrity sha512-6qqsU4o0kW1dvA95qfNog8v8gkRN9ph6Lz7r96IvZpHdNipP2cBcb07J1Z45mz/VIS01OHJ3pY8T5fUY38tg4A== + dependencies: + "@jest/test-result" "^24.9.0" + jest-haste-map "^24.9.0" + jest-runner "^24.9.0" + jest-runtime "^24.9.0" + +"@jest/transform@^24.8.0", "@jest/transform@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-24.9.0.tgz#4ae2768b296553fadab09e9ec119543c90b16c56" + integrity sha512-TcQUmyNRxV94S0QpMOnZl0++6RMiqpbH/ZMccFB/amku6Uwvyb1cjYX7xkp5nGNkbX4QPH/FcB6q1HBTHynLmQ== + dependencies: + "@babel/core" "^7.1.0" + "@jest/types" "^24.9.0" + babel-plugin-istanbul "^5.1.0" + chalk "^2.0.1" + convert-source-map "^1.4.0" + fast-json-stable-stringify "^2.0.0" + graceful-fs "^4.1.15" + jest-haste-map "^24.9.0" + jest-regex-util "^24.9.0" + jest-util "^24.9.0" + micromatch "^3.1.10" + pirates "^4.0.1" + realpath-native "^1.1.0" + slash "^2.0.0" + source-map "^0.6.1" + write-file-atomic "2.4.1" + +"@jest/types@^24.8.0", "@jest/types@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-24.9.0.tgz#63cb26cb7500d069e5a389441a7c6ab5e909fc59" + integrity sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^1.1.1" + "@types/yargs" "^13.0.0" + +"@jest/types@^25.5.0": + version "25.5.0" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-25.5.0.tgz#4d6a4793f7b9599fc3680877b856a97dbccf2a9d" + integrity sha512-OXD0RgQ86Tu3MazKo8bnrkDRaDXXMGUqd+kTtLtK1Zb7CRzQcaSRPPPV37SvYTdevXEBVxe0HXylEjs8ibkmCw== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^1.1.1" + "@types/yargs" "^15.0.0" + chalk "^3.0.0" + +"@jest/types@^26.0.1": + version "26.0.1" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-26.0.1.tgz#b78333fbd113fa7aec8d39de24f88de8686dac67" + integrity sha512-IbtjvqI9+eS1qFnOIEL7ggWmT+iK/U+Vde9cGWtYb/b6XgKb3X44ZAe/z9YZzoAAZ/E92m0DqrilF934IGNnQA== + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^1.1.1" + "@types/yargs" "^15.0.0" + chalk "^4.0.0" + +"@mrmlnc/readdir-enhanced@^2.2.1": + version "2.2.1" + resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde" + integrity sha512-bPHp6Ji8b41szTOcaP63VlnbbO5Ny6dwAATtY6JTjh5N2OLrb5Qk/Th5cRkRQhkWCt+EJsYrNB0MiL+Gpn6e3g== + dependencies: + call-me-maybe "^1.0.1" + glob-to-regexp "^0.3.0" + +"@nodelib/fs.scandir@2.1.3": + version "2.1.3" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz#3a582bdb53804c6ba6d146579c46e52130cf4a3b" + integrity sha512-eGmwYQn3gxo4r7jdQnkrrN6bY478C3P+a/y72IJukF8LjB6ZHeB3c+Ehacj3sYeSmUXGlnA67/PmbM9CVwL7Dw== + dependencies: + "@nodelib/fs.stat" "2.0.3" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.3", "@nodelib/fs.stat@^2.0.2": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz#34dc5f4cabbc720f4e60f75a747e7ecd6c175bd3" + integrity sha512-bQBFruR2TAwoevBEd/NWMoAAtNGzTRgdrqnYCc7dhzfoNvqPzLyqlEQnzZ3kVnNrSp25iyxE00/3h2fqGAGArA== + +"@nodelib/fs.stat@^1.1.2": + version "1.1.3" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" + integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== + +"@nodelib/fs.walk@^1.2.3": + version "1.2.4" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.4.tgz#011b9202a70a6366e436ca5c065844528ab04976" + integrity sha512-1V9XOY4rDW0rehzbrcqAmHnz8e7SKvX27gh8Gt2WgB0+pdzdiLV83p72kZPU+jvMbS1qU5mauP2iOvO8rhmurQ== + dependencies: + "@nodelib/fs.scandir" "2.1.3" + fastq "^1.6.0" + +"@torkelo/react-select@3.0.8": + version "3.0.8" + resolved "https://registry.yarnpkg.com/@torkelo/react-select/-/react-select-3.0.8.tgz#04bfc877118af425f97eac2b471b66705484ee4a" + integrity sha512-becmEGnaOQpUcZS7kjQLaxjY0WKJcFFvAOTWIiU1XfwBV1sdCSgYFGWT+QhkCdRlP2Ux5U4cKhTUsWSeI9FsIA== + dependencies: + "@babel/runtime" "^7.4.4" + "@emotion/cache" "^10.0.9" + "@emotion/core" "^10.0.9" + "@emotion/css" "^10.0.9" + memoize-one "^5.0.0" + prop-types "^15.6.0" + react-input-autosize "^2.2.2" + react-transition-group "^4.3.0" + +"@types/angular@^1.6.57": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@types/angular/-/angular-1.7.0.tgz#3dd8d3b2d3b7ce2cca51b9fc3691b48b638eb468" + integrity sha512-zneUmi5I6oSkGBqkRP9rxbWX1mi6Yj7gNV+WNffmJLf8x4cnV0MGqXFNSP90NZ1kRRLCOdKBf9RIVD1TMg4aog== + +"@types/anymatch@*": + version "1.3.1" + resolved "https://registry.yarnpkg.com/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a" + integrity sha512-/+CRPXpBDpo2RK9C68N3b2cOvO0Cf5B9aPijHsoDQTHivnGSObdOF2BRQOYjojWTDy6nQvMjmqRXIxH55VjxxA== + +"@types/babel__core@^7.1.0": + version "7.1.7" + resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.7.tgz#1dacad8840364a57c98d0dd4855c6dd3752c6b89" + integrity sha512-RL62NqSFPCDK2FM1pSDH0scHpJvsXtZNiYlMB73DgPBaG1E38ZYVL+ei5EkWRbr+KC4YNiAUNBnRj+bgwpgjMw== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + "@types/babel__generator" "*" + "@types/babel__template" "*" + "@types/babel__traverse" "*" + +"@types/babel__generator@*": + version "7.6.1" + resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.1.tgz#4901767b397e8711aeb99df8d396d7ba7b7f0e04" + integrity sha512-bBKm+2VPJcMRVwNhxKu8W+5/zT7pwNEqeokFOmbvVSqGzFneNxYcEBro9Ac7/N9tlsaPYnZLK8J1LWKkMsLAew== + dependencies: + "@babel/types" "^7.0.0" + +"@types/babel__template@*": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.0.2.tgz#4ff63d6b52eddac1de7b975a5223ed32ecea9307" + integrity sha512-/K6zCpeW7Imzgab2bLkLEbz0+1JlFSrUMdw7KoIIu+IUdu51GWaBZpd3y1VXGVXzynvGa4DaIaxNZHiON3GXUg== + dependencies: + "@babel/parser" "^7.1.0" + "@babel/types" "^7.0.0" + +"@types/babel__traverse@*", "@types/babel__traverse@^7.0.6": + version "7.0.11" + resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.0.11.tgz#1ae3010e8bf8851d324878b42acec71986486d18" + integrity sha512-ddHK5icION5U6q11+tV2f9Mo6CZVuT8GJKld2q9LqHSZbvLbH34Kcu2yFGckZut453+eQU6btIA3RihmnRgI+Q== + dependencies: + "@babel/types" "^7.3.0" + +"@types/body-parser@*": + version "1.19.0" + resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.19.0.tgz#0685b3c47eb3006ffed117cdd55164b61f80538f" + integrity sha512-W98JrE0j2K78swW4ukqMleo8R7h/pFETjM2DQ90MF6XK2i4LO4W3gQ71Lt4w3bfm2EvVSyWHplECvB5sK22yFQ== + dependencies: + "@types/connect" "*" + "@types/node" "*" + +"@types/clean-css@*": + version "4.2.1" + resolved "https://registry.yarnpkg.com/@types/clean-css/-/clean-css-4.2.1.tgz#cb0134241ec5e6ede1b5344bc829668fd9871a8d" + integrity sha512-A1HQhQ0hkvqqByJMgg+Wiv9p9XdoYEzuwm11SVo1mX2/4PSdhjcrUlilJQoqLscIheC51t1D5g+EFWCXZ2VTQQ== + dependencies: + "@types/node" "*" + +"@types/color-name@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" + integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== + +"@types/command-exists@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@types/command-exists/-/command-exists-1.2.0.tgz#d97e0ed10097090e4ab0367ed425b0312fad86f3" + integrity sha512-ugsxEJfsCuqMLSuCD4PIJkp5Uk2z6TCMRCgYVuhRo5cYQY3+1xXTQkSlPtkpGHuvWMjS2KTeVQXxkXRACMbM6A== + +"@types/connect-history-api-fallback@*": + version "1.3.3" + resolved "https://registry.yarnpkg.com/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.3.3.tgz#4772b79b8b53185f0f4c9deab09236baf76ee3b4" + integrity sha512-7SxFCd+FLlxCfwVwbyPxbR4khL9aNikJhrorw8nUIOqeuooc9gifBuDQOJw5kzN7i6i3vLn9G8Wde/4QDihpYw== + dependencies: + "@types/express-serve-static-core" "*" + "@types/node" "*" + +"@types/connect@*": + version "3.4.33" + resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.33.tgz#31610c901eca573b8713c3330abc6e6b9f588546" + integrity sha512-2+FrkXY4zllzTNfJth7jOqEHC+enpLeGslEhpnTAkg21GkRrWV4SsAtqchtT4YS9/nODBU2/ZfsBY2X4J/dX7A== + dependencies: + "@types/node" "*" + +"@types/eslint-visitor-keys@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d" + integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag== + +"@types/eslint@*": + version "6.8.0" + resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-6.8.0.tgz#5f2289b9f01316da7cf31c9e63109a10602a23cb" + integrity sha512-hqzmggoxkOubpgTdcOltkfc5N8IftRJqU70d1jbOISjjZVPvjcr+CLi2CI70hx1SUIRkLgpglTy9w28nGe2Hsw== + dependencies: + "@types/estree" "*" + "@types/json-schema" "*" + +"@types/estree@*": + version "0.0.44" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.44.tgz#980cc5a29a3ef3bea6ff1f7d021047d7ea575e21" + integrity sha512-iaIVzr+w2ZJ5HkidlZ3EJM8VTZb2MJLCjw3V+505yVts0gRC4UMvjw0d1HPtGqI/HQC/KdsYtayfzl+AXY2R8g== + +"@types/events@*": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@types/events/-/events-3.0.0.tgz#2862f3f58a9a7f7c3e78d79f130dd4d71c25c2a7" + integrity sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g== + +"@types/execa@^0.9.0": + version "0.9.0" + resolved "https://registry.yarnpkg.com/@types/execa/-/execa-0.9.0.tgz#9b025d2755f17e80beaf9368c3f4f319d8b0fb93" + integrity sha512-mgfd93RhzjYBUHHV532turHC2j4l/qxsF/PbfDmprHDEUHmNZGlDn1CEsulGK3AfsPdhkWzZQT/S/k0UGhLGsA== + dependencies: + "@types/node" "*" + +"@types/expect-puppeteer@3.3.1": + version "3.3.1" + resolved "https://registry.yarnpkg.com/@types/expect-puppeteer/-/expect-puppeteer-3.3.1.tgz#46e5944bf425b86ea13a563c7c8b86901414988d" + integrity sha512-3raSnf28NelDtv0ksvQPZs410taJZ4d70vA8sVzmbRPV04fpmQm9/BOxUCloETD/ZI1EXRpv0pzOQKhPTbm4jg== + dependencies: + "@types/jest" "*" + "@types/puppeteer" "*" + +"@types/express-serve-static-core@*": + version "4.17.7" + resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.7.tgz#dfe61f870eb549dc6d7e12050901847c7d7e915b" + integrity sha512-EMgTj/DF9qpgLXyc+Btimg+XoH7A2liE8uKul8qSmMTHCeNYzydDKFdsJskDvw42UsesCnhO63dO0Grbj8J4Dw== + dependencies: + "@types/node" "*" + "@types/qs" "*" + "@types/range-parser" "*" + +"@types/express@*": + version "4.17.6" + resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.6.tgz#6bce49e49570507b86ea1b07b806f04697fac45e" + integrity sha512-n/mr9tZI83kd4azlPG5y997C/M4DNABK9yErhFM6hKdym4kkmd9j0vtsJyjFIwfRBxtrxZtAfGZCNRIBMFLK5w== + dependencies: + "@types/body-parser" "*" + "@types/express-serve-static-core" "*" + "@types/qs" "*" + "@types/serve-static" "*" + +"@types/flatbuffers@^1.9.1": + version "1.10.0" + resolved "https://registry.yarnpkg.com/@types/flatbuffers/-/flatbuffers-1.10.0.tgz#aa74e30ffdc86445f2f060e1808fc9d56b5603ba" + integrity sha512-7btbphLrKvo5yl/5CC2OCxUSMx1wV1wvGT1qDXkSt7yi00/YW7E8k6qzXqJHsp+WU0eoG7r6MTQQXI9lIvd0qA== + +"@types/flot@^0.0.31": + version "0.0.31" + resolved "https://registry.yarnpkg.com/@types/flot/-/flot-0.0.31.tgz#0daca37c6c855b69a0a7e2e37dd0f84b3db8c8c1" + integrity sha512-X+RcMQCqPlQo8zPT6cUFTd/PoYBShMQlHUeOXf05jWlfYnvLuRmluB9z+2EsOKFgUzqzZve5brx+gnFxBaHEUw== + dependencies: + "@types/jquery" "*" + +"@types/fs-extra@^8.1.0": + version "8.1.0" + resolved "https://registry.yarnpkg.com/@types/fs-extra/-/fs-extra-8.1.0.tgz#1114834b53c3914806cd03b3304b37b3bd221a4d" + integrity sha512-UoOfVEzAUpeSPmjm7h1uk5MH6KZma2z2O7a75onTGjnNvAvMVrPzPL/vBbT65iIGHWj6rokwfmYcmxmlSf2uwg== + dependencies: + "@types/node" "*" + +"@types/glob@*", "@types/glob@^7.1.1": + version "7.1.1" + resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.1.1.tgz#aa59a1c6e3fbc421e07ccd31a944c30eba521575" + integrity sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w== + dependencies: + "@types/events" "*" + "@types/minimatch" "*" + "@types/node" "*" + +"@types/grafana@github:CorpGlory/types-grafana": + version "4.6.3" + resolved "https://codeload.github.com/CorpGlory/types-grafana/tar.gz/c58c08dc33585cc234f4d69013616edc05760e21" + +"@types/html-minifier@*": + version "3.5.3" + resolved "https://registry.yarnpkg.com/@types/html-minifier/-/html-minifier-3.5.3.tgz#5276845138db2cebc54c789e0aaf87621a21e84f" + integrity sha512-j1P/4PcWVVCPEy5lofcHnQ6BtXz9tHGiFPWzqm7TtGuWZEfCHEP446HlkSNc9fQgNJaJZ6ewPtp2aaFla/Uerg== + dependencies: + "@types/clean-css" "*" + "@types/relateurl" "*" + "@types/uglify-js" "*" + +"@types/html-webpack-plugin@*": + version "3.2.2" + resolved "https://registry.yarnpkg.com/@types/html-webpack-plugin/-/html-webpack-plugin-3.2.2.tgz#f552121f3c0a3972dda9a425de1e0029069b2907" + integrity sha512-KsL5cHtNWhOQF9Cu+Dpn7GemzQRxdKhe1/LgZUSku33B5L4Cx2/p3DX6YbeRNOoI552MNbB/VNbCDNEYU//iAw== + dependencies: + "@types/html-minifier" "*" + "@types/tapable" "*" + "@types/webpack" "*" + +"@types/http-proxy-middleware@*": + version "0.19.3" + resolved "https://registry.yarnpkg.com/@types/http-proxy-middleware/-/http-proxy-middleware-0.19.3.tgz#b2eb96fbc0f9ac7250b5d9c4c53aade049497d03" + integrity sha512-lnBTx6HCOUeIJMLbI/LaL5EmdKLhczJY5oeXZpX/cXE4rRqb3RmV7VcMpiEfYkmTjipv3h7IAyIINe4plEv7cA== + dependencies: + "@types/connect" "*" + "@types/http-proxy" "*" + "@types/node" "*" + +"@types/http-proxy@*": + version "1.17.4" + resolved "https://registry.yarnpkg.com/@types/http-proxy/-/http-proxy-1.17.4.tgz#e7c92e3dbe3e13aa799440ff42e6d3a17a9d045b" + integrity sha512-IrSHl2u6AWXduUaDLqYpt45tLVCtYv7o4Z0s1KghBCDgIIS9oW5K1H8mZG/A2CfeLdEa7rTd1ACOiHBc1EMT2Q== + dependencies: + "@types/node" "*" + +"@types/inquirer@^6.0.3": + version "6.5.0" + resolved "https://registry.yarnpkg.com/@types/inquirer/-/inquirer-6.5.0.tgz#b83b0bf30b88b8be7246d40e51d32fe9d10e09be" + integrity sha512-rjaYQ9b9y/VFGOpqBEXRavc3jh0a+e6evAbI31tMda8VlPaSy0AZJfXsvmIe3wklc7W6C3zCSfleuMXR7NOyXw== + dependencies: + "@types/through" "*" + rxjs "^6.4.0" + +"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz#42995b446db9a48a11a07ec083499a860e9138ff" + integrity sha512-hRJD2ahnnpLgsj6KWMYSrmXkM3rm2Dl1qkx6IOFD5FnuNPXJIG5L0dhgKXCYTRMGzU4n0wImQ/xfmRc4POUFlg== + +"@types/istanbul-lib-report@*": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686" + integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg== + dependencies: + "@types/istanbul-lib-coverage" "*" + +"@types/istanbul-reports@^1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-1.1.1.tgz#7a8cbf6a406f36c8add871625b278eaf0b0d255a" + integrity sha512-UpYjBi8xefVChsCoBpKShdxTllC9pwISirfoZsUa2AAdQg/Jd2KQGtSbw+ya7GPo7x/wAPlH6JBhKhAsXUEZNA== + dependencies: + "@types/istanbul-lib-coverage" "*" + "@types/istanbul-lib-report" "*" + +"@types/jest-cli@^23.6.0": + version "23.6.0" + resolved "https://registry.yarnpkg.com/@types/jest-cli/-/jest-cli-23.6.0.tgz#c9cf542d28328cf5a6f1fb017dabaa3f71ab6499" + integrity sha512-o7vy+63lsHKFDibL3qZud87WpB0nTfk4j4QYB2aD6vtWMVVRRBACNcK9tMTm7Ebo68b7WiPsb/nyDYPZgtD0tg== + +"@types/jest-diff@*": + version "24.3.0" + resolved "https://registry.yarnpkg.com/@types/jest-diff/-/jest-diff-24.3.0.tgz#29e237a3d954babfe6e23cc59b57ecd8ca8d858d" + integrity sha512-vx1CRDeDUwQ0Pc7v+hS61O1ETA81kD04IMEC0hS1kPyVtHDdZrokAvpF7MT9VI/fVSzicelUZNCepDvhRV1PeA== + dependencies: + jest-diff "*" + +"@types/jest@*": + version "25.2.2" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-25.2.2.tgz#6a752e7a00f69c3e790ea00c345029d5cefa92bf" + integrity sha512-aRctFbG8Pb7DSLzUt/fEtL3q/GKb9mretFuYhRub2J0q6NhzBYbx9HTQzHrWgBNIxYOlxGNVe6Z54cpbUt+Few== + dependencies: + jest-diff "^25.2.1" + pretty-format "^25.2.1" + +"@types/jest@24.0.13": + version "24.0.13" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-24.0.13.tgz#10f50b64cb05fb02411fbba49e9042a3a11da3f9" + integrity sha512-3m6RPnO35r7Dg+uMLj1+xfZaOgIHHHut61djNjzwExXN4/Pm9has9C6I1KMYSfz7mahDhWUOVg4HW/nZdv5Pww== + dependencies: + "@types/jest-diff" "*" + +"@types/jquery@*": + version "3.3.38" + resolved "https://registry.yarnpkg.com/@types/jquery/-/jquery-3.3.38.tgz#6385f1e1b30bd2bff55ae8ee75ea42a999cc3608" + integrity sha512-nkDvmx7x/6kDM5guu/YpXkGZ/Xj/IwGiLDdKM99YA5Vag7pjGyTJ8BNUh/6hxEn/sEu5DKtyRgnONJ7EmOoKrA== + dependencies: + "@types/sizzle" "*" + +"@types/json-schema@*", "@types/json-schema@^7.0.3": + version "7.0.4" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.4.tgz#38fd73ddfd9b55abb1e1b2ed578cb55bd7b7d339" + integrity sha512-8+KAKzEvSUdeo+kmqnKrqgeE+LcA0tjYWFY7RPProVYwnqDjukzO+3b6dLD56rYX5TdWejnEOLJYOIeh4CXKuA== + +"@types/lodash@4.14.149": + version "4.14.149" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.149.tgz#1342d63d948c6062838fbf961012f74d4e638440" + integrity sha512-ijGqzZt/b7BfzcK9vTrS6MFljQRPn5BFWOx8oE0GYxribu6uV+aA9zZuXI1zc/etK9E8nrgdoF2+LgUw7+9tJQ== + +"@types/mime@*": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@types/mime/-/mime-2.0.1.tgz#dc488842312a7f075149312905b5e3c0b054c79d" + integrity sha512-FwI9gX75FgVBJ7ywgnq/P7tw+/o1GUbtP0KzbtusLigAOgIgNISRK0ZPl4qertvXSIE8YbsVJueQ90cDt9YYyw== + +"@types/minimatch@*": + version "3.0.3" + resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" + integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA== + +"@types/node@*": + version "14.0.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.0.1.tgz#5d93e0a099cd0acd5ef3d5bde3c086e1f49ff68c" + integrity sha512-FAYBGwC+W6F9+huFIDtn43cpy7+SzG+atzRiTfdp3inUKL2hXnd4rG8hylJLIh4+hqrQy1P17kvJByE/z825hA== + +"@types/node@^12.0.4": + version "12.12.39" + resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.39.tgz#532d25c1e639d89dd6f3aa1d7b3962e3e7fa943d" + integrity sha512-pADGfwnDkr6zagDwEiCVE4yQrv7XDkoeVa4OfA9Ju/zRTk6YNDLGtQbkdL4/56mCQQCs4AhNrBIag6jrp7ZuOg== + +"@types/parse-json@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0" + integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== + +"@types/prettier@^1.16.4": + version "1.19.1" + resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-1.19.1.tgz#33509849f8e679e4add158959fdb086440e9553f" + integrity sha512-5qOlnZscTn4xxM5MeGXAMOsIOIKIbh9e85zJWfBRVPlRMEVawzoPhINYbRGkBZCI8LxvBe7tJCdWiarA99OZfQ== + +"@types/prop-types@*": + version "15.7.3" + resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7" + integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw== + +"@types/puppeteer-core@1.9.0": + version "1.9.0" + resolved "https://registry.yarnpkg.com/@types/puppeteer-core/-/puppeteer-core-1.9.0.tgz#5ceb397e3ff769081fb07d71289b5009392d24d3" + integrity sha512-YJwGTq0a8xZxN7/QDeW59XMdKTRNzDTc8ZVBPDB6J13GgXn1+QzgMA8pAq1/bj2FD0R7xj3nYoZra10b0HLzFw== + dependencies: + "@types/puppeteer" "*" + +"@types/puppeteer@*": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@types/puppeteer/-/puppeteer-2.1.0.tgz#31367580654632f87f86df565f1bde0533577401" + integrity sha512-QIRQXl0VaSgnwOZ1LwxD321Tfb1jLOzCWuF2BrwjEkWq2IhxSicPOddUywLV7dRSO6mcU4sWKRdoGdci6gk0Aw== + dependencies: + "@types/node" "*" + +"@types/q@^1.5.1": + version "1.5.2" + resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.2.tgz#690a1475b84f2a884fd07cd797c00f5f31356ea8" + integrity sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw== + +"@types/qs@*": + version "6.9.2" + resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.2.tgz#faab98ec4f96ee72c829b7ec0983af4f4d343113" + integrity sha512-a9bDi4Z3zCZf4Lv1X/vwnvbbDYSNz59h3i3KdyuYYN+YrLjSeJD0dnphdULDfySvUv6Exy/O0K6wX/kQpnPQ+A== + +"@types/range-parser@*": + version "1.2.3" + resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.3.tgz#7ee330ba7caafb98090bece86a5ee44115904c2c" + integrity sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA== + +"@types/react-beautiful-dnd@12.1.2": + version "12.1.2" + resolved "https://registry.yarnpkg.com/@types/react-beautiful-dnd/-/react-beautiful-dnd-12.1.2.tgz#dfd1bdb072e92c1363e5f7a4c1842eaf95f77b21" + integrity sha512-h+0mA4cHmzL4BhyCniB6ZSSZhfO9LpXXbnhdAfa2k7klS03woiOT+Dh5AchY6eoQXk3vQVtqn40YY3u+MwFs8A== + dependencies: + "@types/react" "*" + +"@types/react-color@3.0.1": + version "3.0.1" + resolved "https://registry.yarnpkg.com/@types/react-color/-/react-color-3.0.1.tgz#5433e2f503ea0e0831cbc6fd0c20f8157d93add0" + integrity sha512-J6mYm43Sid9y+OjZ7NDfJ2VVkeeuTPNVImNFITgQNXodHteKfl/t/5pAR5Z9buodZ2tCctsZjgiMlQOpfntakw== + dependencies: + "@types/react" "*" + +"@types/react-dev-utils@^9.0.4": + version "9.0.4" + resolved "https://registry.yarnpkg.com/@types/react-dev-utils/-/react-dev-utils-9.0.4.tgz#3e4bee79b7536777cef219427ab1d38adc24f3f2" + integrity sha512-8cv9rAeSP1EmyRQAbZ/i6uYtai1VoKHGSBwDyCLM82wCkqoh3WPjJgI1pfi2kiLc0C5hNU7DLo7/c4hylfHLWg== + dependencies: + "@types/eslint" "*" + "@types/express" "*" + "@types/html-webpack-plugin" "*" + "@types/webpack" "*" + "@types/webpack-dev-server" "*" + +"@types/react-dom@*": + version "16.9.8" + resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-16.9.8.tgz#fe4c1e11dfc67155733dfa6aa65108b4971cb423" + integrity sha512-ykkPQ+5nFknnlU6lDd947WbQ6TE3NNzbQAkInC2EKY1qeYdTKp7onFusmYZb+ityzx2YviqT6BXSu+LyWWJwcA== + dependencies: + "@types/react" "*" + +"@types/react-select@3.0.8": + version "3.0.8" + resolved "https://registry.yarnpkg.com/@types/react-select/-/react-select-3.0.8.tgz#b824a12d438dd493c30ffff49a805f797602a837" + integrity sha512-0763TXYZc8bTiHM+DUnWoy9Rg5mk6PxYWBrEe6Fkjgc0Kv0r1RqjZk9/BrK4wdM0RNjYjixlFPnUhOJb76sMGg== + dependencies: + "@types/react" "*" + "@types/react-dom" "*" + "@types/react-transition-group" "*" + +"@types/react-table@7.0.12": + version "7.0.12" + resolved "https://registry.yarnpkg.com/@types/react-table/-/react-table-7.0.12.tgz#cb57c8dfb110f8c2d0f04b9d44a70f9235a13b27" + integrity sha512-x/8nFrCjr1ySs51pkHsDQz3t+nW94qS/M9mpyLoweJNd9YKFzJ2mbVcUshfcMOyR1/UR+6lfz2EKA1lzOoJz+w== + dependencies: + "@types/react" "*" + +"@types/react-transition-group@*": + version "4.2.4" + resolved "https://registry.yarnpkg.com/@types/react-transition-group/-/react-transition-group-4.2.4.tgz#c7416225987ccdb719262766c1483da8f826838d" + integrity sha512-8DMUaDqh0S70TjkqU0DxOu80tFUiiaS9rxkWip/nb7gtvAsbqOXm02UCmR8zdcjWujgeYPiPNTVpVpKzUDotwA== + dependencies: + "@types/react" "*" + +"@types/react@*": + version "16.9.35" + resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.35.tgz#a0830d172e8aadd9bd41709ba2281a3124bbd368" + integrity sha512-q0n0SsWcGc8nDqH2GJfWQWUOmZSJhXV64CjVN5SvcNti3TdEaA3AH0D8DwNmMdzjMAC/78tB8nAZIlV8yTz+zQ== + dependencies: + "@types/prop-types" "*" + csstype "^2.2.0" + +"@types/relateurl@*": + version "0.2.28" + resolved "https://registry.yarnpkg.com/@types/relateurl/-/relateurl-0.2.28.tgz#6bda7db8653fa62643f5ee69e9f69c11a392e3a6" + integrity sha1-a9p9uGU/piZD9e5p6facEaOS46Y= + +"@types/rimraf@^2.0.3": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@types/rimraf/-/rimraf-2.0.4.tgz#403887b0b53c6100a6c35d2ab24f6ccc042fec46" + integrity sha512-8gBudvllD2A/c0CcEX/BivIDorHFt5UI5m46TsNj8DjWCCTTZT74kEe4g+QsY7P/B9WdO98d82zZgXO/RQzu2Q== + dependencies: + "@types/glob" "*" + "@types/node" "*" + +"@types/semver@^6.0.0": + version "6.2.1" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-6.2.1.tgz#a236185670a7860f1597cf73bea2e16d001461ba" + integrity sha512-+beqKQOh9PYxuHvijhVl+tIHvT6tuwOrE9m14zd+MT2A38KoKZhh7pYJ0SNleLtwDsiIxHDsIk9bv01oOxvSvA== + +"@types/serve-static@*": + version "1.13.3" + resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.3.tgz#eb7e1c41c4468272557e897e9171ded5e2ded9d1" + integrity sha512-oprSwp094zOglVrXdlo/4bAHtKTAxX6VT8FOZlBKrmyLbNvE1zxZyJ6yikMVtHIvwP45+ZQGJn+FdXGKTozq0g== + dependencies: + "@types/express-serve-static-core" "*" + "@types/mime" "*" + +"@types/sizzle@*": + version "2.3.2" + resolved "https://registry.yarnpkg.com/@types/sizzle/-/sizzle-2.3.2.tgz#a811b8c18e2babab7d542b3365887ae2e4d9de47" + integrity sha512-7EJYyKTL7tFR8+gDbB6Wwz/arpGa0Mywk1TJbNzKzHtzbwVmY4HR9WqS5VV7dsBUKQmPNr192jHr/VpBluj/hg== + +"@types/slate-react@0.22.5": + version "0.22.5" + resolved "https://registry.yarnpkg.com/@types/slate-react/-/slate-react-0.22.5.tgz#a10796758aa6b3133e1c777959facbf8806959f7" + integrity sha512-WKJic5LlNRNUCnD6lEdlOZCcXWoDN8Ais2CmwVMn8pdt5Kh8hJsTYhXawNxOShPIOLVB+G+aVZNAXAAubEOpaw== + dependencies: + "@types/react" "*" + "@types/slate" "*" + immutable "^3.8.2" + +"@types/slate@*": + version "0.47.7" + resolved "https://registry.yarnpkg.com/@types/slate/-/slate-0.47.7.tgz#fec860e24456fdf9f1169f69aadd7ce64707881f" + integrity sha512-Vy4E9lOKGFc5msZMwLWtVN9nrGYsdk6S7jXdC0Wf26UoMqJCS3yzXbNoFILSoCh7fq57ftJZrM6+8kkC/yT+LA== + dependencies: + "@types/react" "*" + immutable "^3.8.2" + +"@types/slate@0.47.1": + version "0.47.1" + resolved "https://registry.yarnpkg.com/@types/slate/-/slate-0.47.1.tgz#6c66f82df085c764039eea2229be763f7e1906fd" + integrity sha512-2ZlnWI6/RYMXxeGFIeZtvmaXAeYAJh4ZVumziqVl77/liNEi9hOwkUTU2zFu+j/z21v385I2WVPl8sgadxfzXg== + dependencies: + "@types/react" "*" + immutable "^3.8.2" + +"@types/source-list-map@*": + version "0.1.2" + resolved "https://registry.yarnpkg.com/@types/source-list-map/-/source-list-map-0.1.2.tgz#0078836063ffaf17412349bba364087e0ac02ec9" + integrity sha512-K5K+yml8LTo9bWJI/rECfIPrGgxdpeNbj+d53lwN4QjW1MCwlkhUms+gtdzigTeUyBr09+u8BwOIY3MXvHdcsA== + +"@types/stack-utils@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e" + integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw== + +"@types/tapable@*": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@types/tapable/-/tapable-1.0.5.tgz#9adbc12950582aa65ead76bffdf39fe0c27a3c02" + integrity sha512-/gG2M/Imw7cQFp8PGvz/SwocNrmKFjFsm5Pb8HdbHkZ1K8pmuPzOX4VeVoiEecFCVf4CsN1r3/BRvx+6sNqwtQ== + +"@types/text-encoding-utf-8@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@types/text-encoding-utf-8/-/text-encoding-utf-8-1.0.1.tgz#908d884af1114e5d8df47597b1e04f833383d23d" + integrity sha512-GpIEYaS+yNfYqpowLLziiY42pyaL+lThd/wMh6tTubaKuG4IRkXqqyxK7Nddn3BvpUg2+go3Gv/jbXvAFMRjiQ== + +"@types/through@*": + version "0.0.30" + resolved "https://registry.yarnpkg.com/@types/through/-/through-0.0.30.tgz#e0e42ce77e897bd6aead6f6ea62aeb135b8a3895" + integrity sha512-FvnCJljyxhPM3gkRgWmxmDZyAQSiBQQWLI0A0VFL0K7W1oRUrPJSqNO0NvTnLkBcotdlp3lKvaT0JrnyRDkzOg== + dependencies: + "@types/node" "*" + +"@types/tmp@^0.1.0": + version "0.1.0" + resolved "https://registry.yarnpkg.com/@types/tmp/-/tmp-0.1.0.tgz#19cf73a7bcf641965485119726397a096f0049bd" + integrity sha512-6IwZ9HzWbCq6XoQWhxLpDjuADodH/MKXRUIDFudvgjcVdjFknvmR+DNsoUeer4XPrEnrZs04Jj+kfV9pFsrhmA== + +"@types/uglify-js@*": + version "3.9.1" + resolved "https://registry.yarnpkg.com/@types/uglify-js/-/uglify-js-3.9.1.tgz#0ad39d6a72979593f669acdfc7e980d590d3fb94" + integrity sha512-rdBIeMQyRBOXogop/EYBvSkYFn9D9yGxUa5hagBVG55KIdSUbp22EACJSHCs6kmmfunojAhf7zJH+Ds06/qLaQ== + dependencies: + source-map "^0.6.1" + +"@types/webpack-dev-server@*": + version "3.10.1" + resolved "https://registry.yarnpkg.com/@types/webpack-dev-server/-/webpack-dev-server-3.10.1.tgz#93b7133cc9dab1ca1b76659f5ef8b763ad54c28a" + integrity sha512-2nwwQ/qHRghUirvG/gEDkOQDa+d881UTJM7EG9ok5KNaYCjYVvy7fdaO528Lcym9OQDn75SvruPYVVvMJxqO0g== + dependencies: + "@types/connect-history-api-fallback" "*" + "@types/express" "*" + "@types/http-proxy-middleware" "*" + "@types/serve-static" "*" + "@types/webpack" "*" + +"@types/webpack-sources@*": + version "0.1.7" + resolved "https://registry.yarnpkg.com/@types/webpack-sources/-/webpack-sources-0.1.7.tgz#0a330a9456113410c74a5d64180af0cbca007141" + integrity sha512-XyaHrJILjK1VHVC4aVlKsdNN5KBTwufMb43cQs+flGxtPAf/1Qwl8+Q0tp5BwEGaI8D6XT1L+9bSWXckgkjTLw== + dependencies: + "@types/node" "*" + "@types/source-list-map" "*" + source-map "^0.6.1" + +"@types/webpack@*": + version "4.41.13" + resolved "https://registry.yarnpkg.com/@types/webpack/-/webpack-4.41.13.tgz#988d114c8913d039b8a0e0502a7fe4f1f84f3d5e" + integrity sha512-RYmIHOWSxnTTa765N6jJBVE45pd2SYNblEYshVDduLw6RhocazNmRzE5/ytvBD8IkDMH6DI+bcrqxh8NILimBA== + dependencies: + "@types/anymatch" "*" + "@types/node" "*" + "@types/tapable" "*" + "@types/uglify-js" "*" + "@types/webpack-sources" "*" + source-map "^0.6.0" + +"@types/webpack@4.41.7": + version "4.41.7" + resolved "https://registry.yarnpkg.com/@types/webpack/-/webpack-4.41.7.tgz#22be27dbd4362b01c3954ca9b021dbc9328d9511" + integrity sha512-OQG9viYwO0V1NaNV7d0n79V+n6mjOV30CwgFPIfTzwmk8DHbt+C4f2aBGdCYbo3yFyYD6sjXfqqOjwkl1j+ulA== + dependencies: + "@types/anymatch" "*" + "@types/node" "*" + "@types/tapable" "*" + "@types/uglify-js" "*" + "@types/webpack-sources" "*" + source-map "^0.6.0" + +"@types/yargs-parser@*": + version "15.0.0" + resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-15.0.0.tgz#cb3f9f741869e20cce330ffbeb9271590483882d" + integrity sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw== + +"@types/yargs@^13.0.0": + version "13.0.9" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-13.0.9.tgz#44028e974343c7afcf3960f1a2b1099c39a7b5e1" + integrity sha512-xrvhZ4DZewMDhoH1utLtOAwYQy60eYFoXeje30TzM3VOvQlBwQaEpKFq5m34k1wOw2AKIi2pwtiAjdmhvlBUzg== + dependencies: + "@types/yargs-parser" "*" + +"@types/yargs@^15.0.0": + version "15.0.5" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-15.0.5.tgz#947e9a6561483bdee9adffc983e91a6902af8b79" + integrity sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w== + dependencies: + "@types/yargs-parser" "*" + +"@typescript-eslint/eslint-plugin@2.24.0": + version "2.24.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.24.0.tgz#a86cf618c965a462cddf3601f594544b134d6d68" + integrity sha512-wJRBeaMeT7RLQ27UQkDFOu25MqFOBus8PtOa9KaT5ZuxC1kAsd7JEHqWt4YXuY9eancX0GK9C68i5OROnlIzBA== + dependencies: + "@typescript-eslint/experimental-utils" "2.24.0" + eslint-utils "^1.4.3" + functional-red-black-tree "^1.0.1" + regexpp "^3.0.0" + tsutils "^3.17.1" + +"@typescript-eslint/experimental-utils@2.24.0": + version "2.24.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.24.0.tgz#a5cb2ed89fedf8b59638dc83484eb0c8c35e1143" + integrity sha512-DXrwuXTdVh3ycNCMYmWhUzn/gfqu9N0VzNnahjiDJvcyhfBy4gb59ncVZVxdp5XzBC77dCncu0daQgOkbvPwBw== + dependencies: + "@types/json-schema" "^7.0.3" + "@typescript-eslint/typescript-estree" "2.24.0" + eslint-scope "^5.0.0" + +"@typescript-eslint/parser@2.24.0": + version "2.24.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.24.0.tgz#2cf0eae6e6dd44d162486ad949c126b887f11eb8" + integrity sha512-H2Y7uacwSSg8IbVxdYExSI3T7uM1DzmOn2COGtCahCC3g8YtM1xYAPi2MAHyfPs61VKxP/J/UiSctcRgw4G8aw== + dependencies: + "@types/eslint-visitor-keys" "^1.0.0" + "@typescript-eslint/experimental-utils" "2.24.0" + "@typescript-eslint/typescript-estree" "2.24.0" + eslint-visitor-keys "^1.1.0" + +"@typescript-eslint/typescript-estree@2.24.0": + version "2.24.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.24.0.tgz#38bbc8bb479790d2f324797ffbcdb346d897c62a" + integrity sha512-RJ0yMe5owMSix55qX7Mi9V6z2FDuuDpN6eR5fzRJrp+8in9UF41IGNQHbg5aMK4/PjVaEQksLvz0IA8n+Mr/FA== + dependencies: + debug "^4.1.1" + eslint-visitor-keys "^1.1.0" + glob "^7.1.6" + is-glob "^4.0.1" + lodash "^4.17.15" + semver "^6.3.0" + tsutils "^3.17.1" + +"@webassemblyjs/ast@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.8.5.tgz#51b1c5fe6576a34953bf4b253df9f0d490d9e359" + integrity sha512-aJMfngIZ65+t71C3y2nBBg5FFG0Okt9m0XEgWZ7Ywgn1oMAT8cNwx00Uv1cQyHtidq0Xn94R4TAywO+LCQ+ZAQ== + dependencies: + "@webassemblyjs/helper-module-context" "1.8.5" + "@webassemblyjs/helper-wasm-bytecode" "1.8.5" + "@webassemblyjs/wast-parser" "1.8.5" + +"@webassemblyjs/floating-point-hex-parser@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.8.5.tgz#1ba926a2923613edce496fd5b02e8ce8a5f49721" + integrity sha512-9p+79WHru1oqBh9ewP9zW95E3XAo+90oth7S5Re3eQnECGq59ly1Ri5tsIipKGpiStHsUYmY3zMLqtk3gTcOtQ== + +"@webassemblyjs/helper-api-error@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.8.5.tgz#c49dad22f645227c5edb610bdb9697f1aab721f7" + integrity sha512-Za/tnzsvnqdaSPOUXHyKJ2XI7PDX64kWtURyGiJJZKVEdFOsdKUCPTNEVFZq3zJ2R0G5wc2PZ5gvdTRFgm81zA== + +"@webassemblyjs/helper-buffer@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.8.5.tgz#fea93e429863dd5e4338555f42292385a653f204" + integrity sha512-Ri2R8nOS0U6G49Q86goFIPNgjyl6+oE1abW1pS84BuhP1Qcr5JqMwRFT3Ah3ADDDYGEgGs1iyb1DGX+kAi/c/Q== + +"@webassemblyjs/helper-code-frame@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.8.5.tgz#9a740ff48e3faa3022b1dff54423df9aa293c25e" + integrity sha512-VQAadSubZIhNpH46IR3yWO4kZZjMxN1opDrzePLdVKAZ+DFjkGD/rf4v1jap744uPVU6yjL/smZbRIIJTOUnKQ== + dependencies: + "@webassemblyjs/wast-printer" "1.8.5" + +"@webassemblyjs/helper-fsm@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-fsm/-/helper-fsm-1.8.5.tgz#ba0b7d3b3f7e4733da6059c9332275d860702452" + integrity sha512-kRuX/saORcg8se/ft6Q2UbRpZwP4y7YrWsLXPbbmtepKr22i8Z4O3V5QE9DbZK908dh5Xya4Un57SDIKwB9eow== + +"@webassemblyjs/helper-module-context@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-module-context/-/helper-module-context-1.8.5.tgz#def4b9927b0101dc8cbbd8d1edb5b7b9c82eb245" + integrity sha512-/O1B236mN7UNEU4t9X7Pj38i4VoU8CcMHyy3l2cV/kIF4U5KoHXDVqcDuOs1ltkac90IM4vZdHc52t1x8Yfs3g== + dependencies: + "@webassemblyjs/ast" "1.8.5" + mamacro "^0.0.3" + +"@webassemblyjs/helper-wasm-bytecode@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.8.5.tgz#537a750eddf5c1e932f3744206551c91c1b93e61" + integrity sha512-Cu4YMYG3Ddl72CbmpjU/wbP6SACcOPVbHN1dI4VJNJVgFwaKf1ppeFJrwydOG3NDHxVGuCfPlLZNyEdIYlQ6QQ== + +"@webassemblyjs/helper-wasm-section@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.8.5.tgz#74ca6a6bcbe19e50a3b6b462847e69503e6bfcbf" + integrity sha512-VV083zwR+VTrIWWtgIUpqfvVdK4ff38loRmrdDBgBT8ADXYsEZ5mPQ4Nde90N3UYatHdYoDIFb7oHzMncI02tA== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/helper-buffer" "1.8.5" + "@webassemblyjs/helper-wasm-bytecode" "1.8.5" + "@webassemblyjs/wasm-gen" "1.8.5" + +"@webassemblyjs/ieee754@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.8.5.tgz#712329dbef240f36bf57bd2f7b8fb9bf4154421e" + integrity sha512-aaCvQYrvKbY/n6wKHb/ylAJr27GglahUO89CcGXMItrOBqRarUMxWLJgxm9PJNuKULwN5n1csT9bYoMeZOGF3g== + dependencies: + "@xtuc/ieee754" "^1.2.0" + +"@webassemblyjs/leb128@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/leb128/-/leb128-1.8.5.tgz#044edeb34ea679f3e04cd4fd9824d5e35767ae10" + integrity sha512-plYUuUwleLIziknvlP8VpTgO4kqNaH57Y3JnNa6DLpu/sGcP6hbVdfdX5aHAV716pQBKrfuU26BJK29qY37J7A== + dependencies: + "@xtuc/long" "4.2.2" + +"@webassemblyjs/utf8@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.8.5.tgz#a8bf3b5d8ffe986c7c1e373ccbdc2a0915f0cedc" + integrity sha512-U7zgftmQriw37tfD934UNInokz6yTmn29inT2cAetAsaU9YeVCveWEwhKL1Mg4yS7q//NGdzy79nlXh3bT8Kjw== + +"@webassemblyjs/wasm-edit@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.8.5.tgz#962da12aa5acc1c131c81c4232991c82ce56e01a" + integrity sha512-A41EMy8MWw5yvqj7MQzkDjU29K7UJq1VrX2vWLzfpRHt3ISftOXqrtojn7nlPsZ9Ijhp5NwuODuycSvfAO/26Q== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/helper-buffer" "1.8.5" + "@webassemblyjs/helper-wasm-bytecode" "1.8.5" + "@webassemblyjs/helper-wasm-section" "1.8.5" + "@webassemblyjs/wasm-gen" "1.8.5" + "@webassemblyjs/wasm-opt" "1.8.5" + "@webassemblyjs/wasm-parser" "1.8.5" + "@webassemblyjs/wast-printer" "1.8.5" + +"@webassemblyjs/wasm-gen@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.8.5.tgz#54840766c2c1002eb64ed1abe720aded714f98bc" + integrity sha512-BCZBT0LURC0CXDzj5FXSc2FPTsxwp3nWcqXQdOZE4U7h7i8FqtFK5Egia6f9raQLpEKT1VL7zr4r3+QX6zArWg== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/helper-wasm-bytecode" "1.8.5" + "@webassemblyjs/ieee754" "1.8.5" + "@webassemblyjs/leb128" "1.8.5" + "@webassemblyjs/utf8" "1.8.5" + +"@webassemblyjs/wasm-opt@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.8.5.tgz#b24d9f6ba50394af1349f510afa8ffcb8a63d264" + integrity sha512-HKo2mO/Uh9A6ojzu7cjslGaHaUU14LdLbGEKqTR7PBKwT6LdPtLLh9fPY33rmr5wcOMrsWDbbdCHq4hQUdd37Q== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/helper-buffer" "1.8.5" + "@webassemblyjs/wasm-gen" "1.8.5" + "@webassemblyjs/wasm-parser" "1.8.5" + +"@webassemblyjs/wasm-parser@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.8.5.tgz#21576f0ec88b91427357b8536383668ef7c66b8d" + integrity sha512-pi0SYE9T6tfcMkthwcgCpL0cM9nRYr6/6fjgDtL6q/ZqKHdMWvxitRi5JcZ7RI4SNJJYnYNaWy5UUrHQy998lw== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/helper-api-error" "1.8.5" + "@webassemblyjs/helper-wasm-bytecode" "1.8.5" + "@webassemblyjs/ieee754" "1.8.5" + "@webassemblyjs/leb128" "1.8.5" + "@webassemblyjs/utf8" "1.8.5" + +"@webassemblyjs/wast-parser@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-parser/-/wast-parser-1.8.5.tgz#e10eecd542d0e7bd394f6827c49f3df6d4eefb8c" + integrity sha512-daXC1FyKWHF1i11obK086QRlsMsY4+tIOKgBqI1lxAnkp9xe9YMcgOxm9kLe+ttjs5aWV2KKE1TWJCN57/Btsg== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/floating-point-hex-parser" "1.8.5" + "@webassemblyjs/helper-api-error" "1.8.5" + "@webassemblyjs/helper-code-frame" "1.8.5" + "@webassemblyjs/helper-fsm" "1.8.5" + "@xtuc/long" "4.2.2" + +"@webassemblyjs/wast-printer@1.8.5": + version "1.8.5" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-printer/-/wast-printer-1.8.5.tgz#114bbc481fd10ca0e23b3560fa812748b0bae5bc" + integrity sha512-w0U0pD4EhlnvRyeJzBqaVSJAo9w/ce7/WPogeXLzGkO6hzhr4GnQIZ4W4uUt5b9ooAaXPtnXlj0gzsXEOUNYMg== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/wast-parser" "1.8.5" + "@xtuc/long" "4.2.2" + +"@xtuc/ieee754@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790" + integrity sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA== + +"@xtuc/long@4.2.2": + version "4.2.2" + resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d" + integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== + +abab@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.3.tgz#623e2075e02eb2d3f2475e49f99c91846467907a" + integrity sha512-tsFzPpcttalNjFBCFMqsKYQcWxxen1pgJR56by//QwvJc4/OUS3kPOOttx2tSIfjsylB0pYu7f5D3K1RCxUnUg== + +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + +acorn-globals@^4.1.0: + version "4.3.4" + resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.3.4.tgz#9fa1926addc11c97308c4e66d7add0d40c3272e7" + integrity sha512-clfQEh21R+D0leSbUdWf3OcfqyaCSAQ8Ryq00bofSekfr9W8u1jyYZo6ir0xu9Gtcf7BjcHJpnbZH7JOCpP60A== + dependencies: + acorn "^6.0.1" + acorn-walk "^6.0.1" + +acorn-jsx@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.2.0.tgz#4c66069173d6fdd68ed85239fc256226182b2ebe" + integrity sha512-HiUX/+K2YpkpJ+SzBffkM/AQ2YE03S0U1kjTLVpoJdhZMOWy8qvXVN9JdLqv2QsaQ6MPYQIuNmwD8zOiYUofLQ== + +acorn-walk@^6.0.1: + version "6.2.0" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.2.0.tgz#123cb8f3b84c2171f1f7fb252615b1c78a6b1a8c" + integrity sha512-7evsyfH1cLOCdAzZAd43Cic04yKydNx0cF+7tiA19p1XnLLPU4dpCQOqpjqwokFe//vS0QqfqqjCS2JkiIs0cA== + +acorn@^5.5.3: + version "5.7.4" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.4.tgz#3e8d8a9947d0599a1796d10225d7432f4a4acf5e" + integrity sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg== + +acorn@^6.0.1, acorn@^6.2.1: + version "6.4.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.4.1.tgz#531e58ba3f51b9dacb9a6646ca4debf5b14ca474" + integrity sha512-ZVA9k326Nwrj3Cj9jlh3wGFutC2ZornPNARZwsNYqQYgN0EsV2d53w5RN/co65Ohn4sUAUtb1rSUAOD6XN9idA== + +acorn@^7.1.1: + version "7.2.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.2.0.tgz#17ea7e40d7c8640ff54a694c889c26f31704effe" + integrity sha512-apwXVmYVpQ34m/i71vrApRrRKCWQnZZF1+npOD0WV5xZFfwWOmKGQ2RWlfdy9vWITsenisM8M0Qeq8agcFHNiQ== + +add-dom-event-listener@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/add-dom-event-listener/-/add-dom-event-listener-1.1.0.tgz#6a92db3a0dd0abc254e095c0f1dc14acbbaae310" + integrity sha512-WCxx1ixHT0GQU9hb0KI/mhgRQhnU+U3GvwY6ZvVjYq8rsihIGoaIOUbY0yMPBxLH5MDtr0kz3fisWGNcbWW7Jw== + dependencies: + object-assign "4.x" + +add-px-to-style@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/add-px-to-style/-/add-px-to-style-1.0.0.tgz#d0c135441fa8014a8137904531096f67f28f263a" + integrity sha1-0ME1RB+oAUqBN5BFMQlvZ/KPJjo= + +address@1.1.2, address@^1.0.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/address/-/address-1.1.2.tgz#bf1116c9c758c51b7a933d296b72c221ed9428b6" + integrity sha512-aT6camzM4xEA54YVJYSqxz1kv4IHnQZRtThJJHhUMRExaU5spC7jX5ugSwTaTgJliIgs4VhZOk7htClvQ/LmRA== + +agent-base@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.3.0.tgz#8165f01c436009bccad0b1d122f05ed770efc6ee" + integrity sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg== + dependencies: + es6-promisify "^5.0.0" + +aggregate-error@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.0.1.tgz#db2fe7246e536f40d9b5442a39e117d7dd6a24e0" + integrity sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA== + dependencies: + clean-stack "^2.0.0" + indent-string "^4.0.0" + +ajv-errors@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/ajv-errors/-/ajv-errors-1.0.1.tgz#f35986aceb91afadec4102fbd85014950cefa64d" + integrity sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ== + +ajv-keywords@^3.1.0, ajv-keywords@^3.4.1: + version "3.4.1" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.4.1.tgz#ef916e271c64ac12171fd8384eaae6b2345854da" + integrity sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ== + +ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.0, ajv@^6.5.5: + version "6.12.2" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.2.tgz#c629c5eced17baf314437918d2da88c99d5958cd" + integrity sha512-k+V+hzjm5q/Mr8ef/1Y9goCmlsK4I6Sm74teeyGvFk1XrOsbsKLjEdrvny42CZ+a8sXbk8KWpY/bDwS+FLL2UQ== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +align-text@^0.1.1, align-text@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" + integrity sha1-DNkKVhCT810KmSVsIrcGlDP60Rc= + dependencies: + kind-of "^3.0.2" + longest "^1.0.1" + repeat-string "^1.5.2" + +alphanum-sort@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3" + integrity sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM= + +amdefine@>=0.0.4: + version "1.0.1" + resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" + integrity sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU= + +angular@^1.7.9: + version "1.7.9" + resolved "https://registry.yarnpkg.com/angular/-/angular-1.7.9.tgz#e52616e8701c17724c3c238cfe4f9446fd570bc4" + integrity sha512-5se7ZpcOtu0MBFlzGv5dsM1quQDoDeUTwZrWjGtTNA7O88cD8TEk5IEKCTDa3uECV9XnvKREVUr7du1ACiWGFQ== + +ansi-colors@^3.0.0: + version "3.2.4" + resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.2.4.tgz#e3a3da4bfbae6c86a9c285625de124a234026fbf" + integrity sha512-hHUXGagefjN2iRrID63xckIvotOXOojhQKWIPUZ4mNUZ9nLZW+7FMNoE1lOkEhNWYsx/7ysGIuJYCiMAA9FnrA== + +ansi-escapes@^3.0.0, ansi-escapes@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" + integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== + +ansi-escapes@^4.2.1: + version "4.3.1" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.1.tgz#a5c47cc43181f1f38ffd7076837700d395522a61" + integrity sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA== + dependencies: + type-fest "^0.11.0" + +ansi-regex@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8= + +ansi-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" + integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= + +ansi-regex@^4.0.0, ansi-regex@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" + integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== + +ansi-regex@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" + integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== + +ansi-styles@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + integrity sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4= + +ansi-styles@^3.2.0, ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + +ansi-styles@^4.0.0, ansi-styles@^4.1.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz#90ae75c424d008d2624c5bf29ead3177ebfcf359" + integrity sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA== + dependencies: + "@types/color-name" "^1.1.1" + color-convert "^2.0.1" + +anymatch@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-2.0.0.tgz#bcb24b4f37934d9aa7ac17b4adaf89e7c76ef2eb" + integrity sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw== + dependencies: + micromatch "^3.1.4" + normalize-path "^2.1.1" + +anymatch@~3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.1.tgz#c55ecf02185e2469259399310c173ce31233b142" + integrity sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + +apache-arrow@0.16.0: + version "0.16.0" + resolved "https://registry.yarnpkg.com/apache-arrow/-/apache-arrow-0.16.0.tgz#7ee7a6397d1a2d6349aed90c6ce5b92362e79881" + integrity sha512-hiabMZb2XgHiNK6f7C/2x/fyGS85PoCdkeMhJDyZipaJy1il1BJMDDEa3VLvM6mdxsG61pY1zev6zWetOj8Eog== + dependencies: + "@types/flatbuffers" "^1.9.1" + "@types/node" "^12.0.4" + "@types/text-encoding-utf-8" "^1.0.1" + command-line-args "5.0.2" + command-line-usage "5.0.5" + flatbuffers "1.11.0" + json-bignum "^0.0.3" + pad-left "^2.1.0" + text-encoding-utf-8 "^1.0.2" + tslib "^1.9.3" + +aproba@^1.0.3, aproba@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" + integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw== + +are-we-there-yet@~1.1.2: + version "1.1.5" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" + integrity sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w== + dependencies: + delegates "^1.0.0" + readable-stream "^2.0.6" + +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + +argv-tools@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/argv-tools/-/argv-tools-0.1.2.tgz#fc4918a70775b8cc5f8296fa0cfea137bd8a8229" + integrity sha512-wxqoymY0BEu9NblZVQiOTOAiJUjPhaa/kbNMjC2h6bnrmUSgnxKgWJo3lzXvi3bHJRwXyqK/dHzMlZVRT89Cxg== + dependencies: + array-back "^2.0.0" + find-replace "^2.0.1" + +arr-diff@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" + integrity sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA= + +arr-flatten@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" + integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== + +arr-union@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" + integrity sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ= + +array-back@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/array-back/-/array-back-2.0.0.tgz#6877471d51ecc9c9bfa6136fb6c7d5fe69748022" + integrity sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw== + dependencies: + typical "^2.6.1" + +array-equal@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" + integrity sha1-jCpe8kcv2ep0KwTHenUJO6J1fJM= + +array-find-index@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" + integrity sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E= + +array-tree-filter@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/array-tree-filter/-/array-tree-filter-2.1.0.tgz#873ac00fec83749f255ac8dd083814b4f6329190" + integrity sha512-4ROwICNlNw/Hqa9v+rk5h22KjmzB1JGTMVKP2AKJBOCgb0yL0ASf0+YvCcLNNwquOHNX48jkeZIJ3a+oOQqKcw== + +array-union@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" + integrity sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk= + dependencies: + array-uniq "^1.0.1" + +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" + integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== + +array-uniq@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" + integrity sha1-r2rId6Jcx/dOBYiUdThY39sk/bY= + +array-unique@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" + integrity sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg= + +arrify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= + +asap@~2.0.3: + version "2.0.6" + resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" + integrity sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY= + +asn1.js@^4.0.0: + version "4.10.1" + resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-4.10.1.tgz#b9c2bf5805f1e64aadeed6df3a2bfafb5a73f5a0" + integrity sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw== + dependencies: + bn.js "^4.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +asn1@~0.2.3: + version "0.2.4" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" + integrity sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg== + dependencies: + safer-buffer "~2.1.0" + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= + +assert@^1.1.1: + version "1.5.0" + resolved "https://registry.yarnpkg.com/assert/-/assert-1.5.0.tgz#55c109aaf6e0aefdb3dc4b71240c70bf574b18eb" + integrity sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA== + dependencies: + object-assign "^4.1.1" + util "0.10.3" + +assign-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" + integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= + +ast-types@0.9.6: + version "0.9.6" + resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.9.6.tgz#102c9e9e9005d3e7e3829bf0c4fa24ee862ee9b9" + integrity sha1-ECyenpAF0+fjgpvwxPok7oYu6bk= + +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" + integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== + +async-each@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf" + integrity sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ== + +async-foreach@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/async-foreach/-/async-foreach-0.1.3.tgz#36121f845c0578172de419a97dbeb1d16ec34542" + integrity sha1-NhIfhFwFeBct5Bmpfb6x0W7DRUI= + +async-limiter@~1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.1.tgz#dd379e94f0db8310b08291f9d64c3209766617fd" + integrity sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ== + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + +atob@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" + integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== + +autoprefixer@^9.6.1: + version "9.7.6" + resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.7.6.tgz#63ac5bbc0ce7934e6997207d5bb00d68fa8293a4" + integrity sha512-F7cYpbN7uVVhACZTeeIeealwdGM6wMtfWARVLTy5xmKtgVdBNJvbDRoCK3YO1orcs7gv/KwYlb3iXwu9Ug9BkQ== + dependencies: + browserslist "^4.11.1" + caniuse-lite "^1.0.30001039" + chalk "^2.4.2" + normalize-range "^0.1.2" + num2fraction "^1.2.2" + postcss "^7.0.27" + postcss-value-parser "^4.0.3" + +aws-sign2@~0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" + integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg= + +aws4@^1.8.0: + version "1.9.1" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.9.1.tgz#7e33d8f7d449b3f673cd72deb9abdc552dbe528e" + integrity sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug== + +axios@0.19.2: + version "0.19.2" + resolved "https://registry.yarnpkg.com/axios/-/axios-0.19.2.tgz#3ea36c5d8818d0d5f8a8a97a6d36b86cdc00cb27" + integrity sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA== + dependencies: + follow-redirects "1.5.10" + +babel-code-frame@^6.22.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.26.0.tgz#63fd43f7dc1e3bb7ce35947db8fe369a3f58c74b" + integrity sha1-Y/1D99weO7fONZR9uP42mj9Yx0s= + dependencies: + chalk "^1.1.3" + esutils "^2.0.2" + js-tokens "^3.0.2" + +babel-jest@24.8.0: + version "24.8.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-24.8.0.tgz#5c15ff2b28e20b0f45df43fe6b7f2aae93dba589" + integrity sha512-+5/kaZt4I9efoXzPlZASyK/lN9qdRKmmUav9smVc0ruPQD7IsfucQ87gpOE8mn2jbDuS6M/YOW6n3v9ZoIfgnw== + dependencies: + "@jest/transform" "^24.8.0" + "@jest/types" "^24.8.0" + "@types/babel__core" "^7.1.0" + babel-plugin-istanbul "^5.1.0" + babel-preset-jest "^24.6.0" + chalk "^2.4.2" + slash "^2.0.0" + +babel-jest@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-24.9.0.tgz#3fc327cb8467b89d14d7bc70e315104a783ccd54" + integrity sha512-ntuddfyiN+EhMw58PTNL1ph4C9rECiQXjI4nMMBKBaNjXvqLdkXpPRcMSr4iyBrJg/+wz9brFUD6RhOAT6r4Iw== + dependencies: + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + "@types/babel__core" "^7.1.0" + babel-plugin-istanbul "^5.1.0" + babel-preset-jest "^24.9.0" + chalk "^2.4.2" + slash "^2.0.0" + +babel-loader@8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.1.0.tgz#c611d5112bd5209abe8b9fa84c3e4da25275f1c3" + integrity sha512-7q7nC1tYOrqvUrN3LQK4GwSk/TQorZSOlO9C+RZDZpODgyN4ZlCqE5q9cDsyWOliN+aU9B4JX01xK9eJXowJLw== + dependencies: + find-cache-dir "^2.1.0" + loader-utils "^1.4.0" + mkdirp "^0.5.3" + pify "^4.0.1" + schema-utils "^2.6.5" + +babel-plugin-angularjs-annotate@0.10.0: + version "0.10.0" + resolved "https://registry.yarnpkg.com/babel-plugin-angularjs-annotate/-/babel-plugin-angularjs-annotate-0.10.0.tgz#4213b3aaae494a087aad0b8237c5d0716d22ca76" + integrity sha512-NPE7FOAxcLPCUR/kNkrhHIjoScR3RyIlRH3yRn79j8EZWtpILVnCOdA9yKfsOmRh6BHnLHKl8ZAThc+YDd/QwQ== + dependencies: + "@babel/code-frame" "^7.0.0" + "@babel/types" "^7.2.0" + simple-is "~0.2.0" + +babel-plugin-dynamic-import-node@^2.3.3: + version "2.3.3" + resolved "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz#84fda19c976ec5c6defef57f9427b3def66e17a3" + integrity sha512-jZVI+s9Zg3IqA/kdi0i6UDCybUI3aSBLnglhYbSSjKlV7yF1F/5LWv8MakQmvYpnbJDS6fcBL2KzHSxNCMtWSQ== + dependencies: + object.assign "^4.1.0" + +babel-plugin-emotion@^10.0.27: + version "10.0.33" + resolved "https://registry.yarnpkg.com/babel-plugin-emotion/-/babel-plugin-emotion-10.0.33.tgz#ce1155dcd1783bbb9286051efee53f4e2be63e03" + integrity sha512-bxZbTTGz0AJQDHm8k6Rf3RQJ8tX2scsfsRyKVgAbiUPUNIRtlK+7JxP+TAd1kRLABFxe0CFm2VdK4ePkoA9FxQ== + dependencies: + "@babel/helper-module-imports" "^7.0.0" + "@emotion/hash" "0.8.0" + "@emotion/memoize" "0.7.4" + "@emotion/serialize" "^0.11.16" + babel-plugin-macros "^2.0.0" + babel-plugin-syntax-jsx "^6.18.0" + convert-source-map "^1.5.0" + escape-string-regexp "^1.0.5" + find-root "^1.1.0" + source-map "^0.5.7" + +babel-plugin-istanbul@^5.1.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-5.2.0.tgz#df4ade83d897a92df069c4d9a25cf2671293c854" + integrity sha512-5LphC0USA8t4i1zCtjbbNb6jJj/9+X6P37Qfirc/70EQ34xKlMW+a1RHGwxGI+SwWpNwZ27HqvzAobeqaXwiZw== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + find-up "^3.0.0" + istanbul-lib-instrument "^3.3.0" + test-exclude "^5.2.3" + +babel-plugin-jest-hoist@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-24.9.0.tgz#4f837091eb407e01447c8843cbec546d0002d756" + integrity sha512-2EMA2P8Vp7lG0RAzr4HXqtYwacfMErOuv1U3wrvxHX6rD1sV6xS3WXG3r8TRQ2r6w8OhvSdWt+z41hQNwNm3Xw== + dependencies: + "@types/babel__traverse" "^7.0.6" + +babel-plugin-macros@^2.0.0: + version "2.8.0" + resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-2.8.0.tgz#0f958a7cc6556b1e65344465d99111a1e5e10138" + integrity sha512-SEP5kJpfGYqYKpBrj5XU3ahw5p5GOHJ0U5ssOSQ/WBVdwkD2Dzlce95exQTs3jOVWPPKLBN2rlEWkCK7dSmLvg== + dependencies: + "@babel/runtime" "^7.7.2" + cosmiconfig "^6.0.0" + resolve "^1.12.0" + +babel-plugin-syntax-jsx@^6.18.0: + version "6.18.0" + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946" + integrity sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY= + +babel-preset-jest@^24.6.0, babel-preset-jest@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-24.9.0.tgz#192b521e2217fb1d1f67cf73f70c336650ad3cdc" + integrity sha512-izTUuhE4TMfTRPF92fFwD2QfdXaZW08qvWTFCI51V8rW5x00UuPgc3ajRoWofXOuxjfcOM5zzSYsQS3H8KGCAg== + dependencies: + "@babel/plugin-syntax-object-rest-spread" "^7.0.0" + babel-plugin-jest-hoist "^24.9.0" + +babel-runtime@6.x, babel-runtime@^6.26.0: + version "6.26.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" + integrity sha1-llxwWGaOgrVde/4E/yM3vItWR/4= + dependencies: + core-js "^2.4.0" + regenerator-runtime "^0.11.0" + +balanced-match@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" + integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= + +base64-js@^1.0.2: + version "1.3.1" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.1.tgz#58ece8cb75dd07e71ed08c736abc5fac4dbf8df1" + integrity sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g== + +base@^0.11.1: + version "0.11.2" + resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" + integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== + dependencies: + cache-base "^1.0.1" + class-utils "^0.3.5" + component-emitter "^1.2.1" + define-property "^1.0.0" + isobject "^3.0.1" + mixin-deep "^1.2.0" + pascalcase "^0.1.1" + +bcrypt-pbkdf@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" + integrity sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4= + dependencies: + tweetnacl "^0.14.3" + +big.js@^3.1.3: + version "3.2.0" + resolved "https://registry.yarnpkg.com/big.js/-/big.js-3.2.0.tgz#a5fc298b81b9e0dca2e458824784b65c52ba588e" + integrity sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q== + +big.js@^5.2.2: + version "5.2.2" + resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" + integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== + +binary-extensions@^1.0.0: + version "1.13.1" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.13.1.tgz#598afe54755b2868a5330d2aff9d4ebb53209b65" + integrity sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw== + +binary-extensions@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.0.0.tgz#23c0df14f6a88077f5f986c0d167ec03c3d5537c" + integrity sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow== + +bindings@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/bindings/-/bindings-1.5.0.tgz#10353c9e945334bc0511a6d90b38fbc7c9c504df" + integrity sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ== + dependencies: + file-uri-to-path "1.0.0" + +bizcharts@^3.5.8: + version "3.5.9" + resolved "https://registry.yarnpkg.com/bizcharts/-/bizcharts-3.5.9.tgz#b4c56c8bc5e8567f65748aeb3916902c4e9c98c0" + integrity sha512-1GI1SWNHfU3xRYGh4b4Dn6gfHMaOZnl0EXewZGEL5V5/m97k2kBonedA0LvtdrOQZRAAM+sP1uwny/ttkNsnEQ== + dependencies: + "@antv/g2" "3.5.15" + "@babel/runtime" "^7.7.6" + invariant "^2.2.2" + lodash.debounce "^4.0.8" + prop-types "^15.6.0" + resize-observer-polyfill "^1.5.1" + warning "^3.0.0" + +block-stream@*: + version "0.0.9" + resolved "https://registry.yarnpkg.com/block-stream/-/block-stream-0.0.9.tgz#13ebfe778a03205cfe03751481ebb4b3300c126a" + integrity sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo= + dependencies: + inherits "~2.0.0" + +bluebird@^3.5.5: + version "3.7.2" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" + integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== + +bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.4.0: + version "4.11.8" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.11.8.tgz#2cde09eb5ee341f484746bb0309b3253b1b1442f" + integrity sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA== + +bn.js@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.1.1.tgz#48efc4031a9c4041b9c99c6941d903463ab62eb5" + integrity sha512-IUTD/REb78Z2eodka1QZyyEk66pciRcP6Sroka0aI3tG/iwIdYLrBD62RsubR7vqdt3WyX8p4jxeatzmRSphtA== + +boolbase@^1.0.0, boolbase@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" + integrity sha1-aN/1++YMUes3cl6p4+0xDcwed24= + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +braces@^2.3.1, braces@^2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" + integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== + dependencies: + arr-flatten "^1.1.0" + array-unique "^0.3.2" + extend-shallow "^2.0.1" + fill-range "^4.0.0" + isobject "^3.0.1" + repeat-element "^1.1.2" + snapdragon "^0.8.1" + snapdragon-node "^2.0.1" + split-string "^3.0.2" + to-regex "^3.0.1" + +braces@^3.0.1, braces@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" + integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== + dependencies: + fill-range "^7.0.1" + +brorand@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" + integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8= + +browser-process-hrtime@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" + integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== + +browser-resolve@^1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.3.tgz#9b7cbb3d0f510e4cb86bdbd796124d28b5890af6" + integrity sha512-exDi1BYWB/6raKHmDTCicQfTkqwN5fioMFV4j8BsfMU4R2DK/QfZfK7kOVkmWCNANf0snkBzqGqAJBao9gZMdQ== + dependencies: + resolve "1.1.7" + +browserify-aes@^1.0.0, browserify-aes@^1.0.4: + version "1.2.0" + resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48" + integrity sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA== + dependencies: + buffer-xor "^1.0.3" + cipher-base "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.3" + inherits "^2.0.1" + safe-buffer "^5.0.1" + +browserify-cipher@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/browserify-cipher/-/browserify-cipher-1.0.1.tgz#8d6474c1b870bfdabcd3bcfcc1934a10e94f15f0" + integrity sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w== + dependencies: + browserify-aes "^1.0.4" + browserify-des "^1.0.0" + evp_bytestokey "^1.0.0" + +browserify-des@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/browserify-des/-/browserify-des-1.0.2.tgz#3af4f1f59839403572f1c66204375f7a7f703e9c" + integrity sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A== + dependencies: + cipher-base "^1.0.1" + des.js "^1.0.0" + inherits "^2.0.1" + safe-buffer "^5.1.2" + +browserify-rsa@^4.0.0, browserify-rsa@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/browserify-rsa/-/browserify-rsa-4.0.1.tgz#21e0abfaf6f2029cf2fafb133567a701d4135524" + integrity sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ= + dependencies: + bn.js "^4.1.0" + randombytes "^2.0.1" + +browserify-sign@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/browserify-sign/-/browserify-sign-4.1.0.tgz#4fe971b379a5aeb4925e06779f9fa1f41d249d70" + integrity sha512-VYxo7cDCeYUoBZ0ZCy4UyEUCP3smyBd4DRQM5nrFS1jJjPJjX7rP3oLRpPoWfkhQfyJ0I9ZbHbKafrFD/SGlrg== + dependencies: + bn.js "^5.1.1" + browserify-rsa "^4.0.1" + create-hash "^1.2.0" + create-hmac "^1.1.7" + elliptic "^6.5.2" + inherits "^2.0.4" + parse-asn1 "^5.1.5" + readable-stream "^3.6.0" + +browserify-zlib@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/browserify-zlib/-/browserify-zlib-0.2.0.tgz#2869459d9aa3be245fe8fe2ca1f46e2e7f54d73f" + integrity sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA== + dependencies: + pako "~1.0.5" + +browserslist@4.10.0: + version "4.10.0" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.10.0.tgz#f179737913eaf0d2b98e4926ac1ca6a15cbcc6a9" + integrity sha512-TpfK0TDgv71dzuTsEAlQiHeWQ/tiPqgNZVdv046fvNtBZrjbv2O3TsWCDU0AWGJJKCF/KsjNdLzR9hXOsh/CfA== + dependencies: + caniuse-lite "^1.0.30001035" + electron-to-chromium "^1.3.378" + node-releases "^1.1.52" + pkg-up "^3.1.0" + +browserslist@^4.0.0, browserslist@^4.11.1, browserslist@^4.6.4, browserslist@^4.8.5, browserslist@^4.9.1: + version "4.12.0" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.12.0.tgz#06c6d5715a1ede6c51fc39ff67fd647f740b656d" + integrity sha512-UH2GkcEDSI0k/lRkuDSzFl9ZZ87skSy9w2XAn1MsZnL+4c4rqbBd3e82UWHbYDpztABrPBhZsTEeuxVfHppqDg== + dependencies: + caniuse-lite "^1.0.30001043" + electron-to-chromium "^1.3.413" + node-releases "^1.1.53" + pkg-up "^2.0.0" + +bs-logger@0.x: + version "0.2.6" + resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" + integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog== + dependencies: + fast-json-stable-stringify "2.x" + +bser@2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" + integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== + dependencies: + node-int64 "^0.4.0" + +buffer-crc32@~0.2.3: + version "0.2.13" + resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" + integrity sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI= + +buffer-from@1.x, buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" + integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== + +buffer-xor@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9" + integrity sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk= + +buffer@^4.3.0: + version "4.9.2" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-4.9.2.tgz#230ead344002988644841ab0244af8c44bbe3ef8" + integrity sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg== + dependencies: + base64-js "^1.0.2" + ieee754 "^1.1.4" + isarray "^1.0.0" + +builtin-status-codes@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" + integrity sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug= + +cacache@^12.0.2, cacache@^12.0.3: + version "12.0.4" + resolved "https://registry.yarnpkg.com/cacache/-/cacache-12.0.4.tgz#668bcbd105aeb5f1d92fe25570ec9525c8faa40c" + integrity sha512-a0tMB40oefvuInr4Cwb3GerbL9xTj1D5yg0T5xrjGCGyfvbxseIXX7BAO/u/hIXdafzOI5JC3wDwHyf24buOAQ== + dependencies: + bluebird "^3.5.5" + chownr "^1.1.1" + figgy-pudding "^3.5.1" + glob "^7.1.4" + graceful-fs "^4.1.15" + infer-owner "^1.0.3" + lru-cache "^5.1.1" + mississippi "^3.0.0" + mkdirp "^0.5.1" + move-concurrently "^1.0.1" + promise-inflight "^1.0.1" + rimraf "^2.6.3" + ssri "^6.0.1" + unique-filename "^1.1.1" + y18n "^4.0.0" + +cacache@^13.0.1: + version "13.0.1" + resolved "https://registry.yarnpkg.com/cacache/-/cacache-13.0.1.tgz#a8000c21697089082f85287a1aec6e382024a71c" + integrity sha512-5ZvAxd05HDDU+y9BVvcqYu2LLXmPnQ0hW62h32g4xBTgL/MppR4/04NHfj/ycM2y6lmTnbw6HVi+1eN0Psba6w== + dependencies: + chownr "^1.1.2" + figgy-pudding "^3.5.1" + fs-minipass "^2.0.0" + glob "^7.1.4" + graceful-fs "^4.2.2" + infer-owner "^1.0.4" + lru-cache "^5.1.1" + minipass "^3.0.0" + minipass-collect "^1.0.2" + minipass-flush "^1.0.5" + minipass-pipeline "^1.2.2" + mkdirp "^0.5.1" + move-concurrently "^1.0.1" + p-map "^3.0.0" + promise-inflight "^1.0.1" + rimraf "^2.7.1" + ssri "^7.0.0" + unique-filename "^1.1.1" + +cache-base@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" + integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== + dependencies: + collection-visit "^1.0.0" + component-emitter "^1.2.1" + get-value "^2.0.6" + has-value "^1.0.0" + isobject "^3.0.1" + set-value "^2.0.0" + to-object-path "^0.3.0" + union-value "^1.0.0" + unset-value "^1.0.0" + +call-me-maybe@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.1.tgz#26d208ea89e37b5cbde60250a15f031c16a4d66b" + integrity sha1-JtII6onje1y95gJQoV8DHBak1ms= + +caller-callsite@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" + integrity sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ= + dependencies: + callsites "^2.0.0" + +caller-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4" + integrity sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ= + dependencies: + caller-callsite "^2.0.0" + +callsites@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" + integrity sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA= + +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + +camel-case@3.0.x: + version "3.0.0" + resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-3.0.0.tgz#ca3c3688a4e9cf3a4cda777dc4dcbc713249cf73" + integrity sha1-yjw2iKTpzzpM2nd9xNy8cTJJz3M= + dependencies: + no-case "^2.2.0" + upper-case "^1.1.1" + +camelcase-keys@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-2.1.0.tgz#308beeaffdf28119051efa1d932213c91b8f92e7" + integrity sha1-MIvur/3ygRkFHvodkyITyRuPkuc= + dependencies: + camelcase "^2.0.0" + map-obj "^1.0.0" + +camelcase@^1.0.2: + version "1.2.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" + integrity sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk= + +camelcase@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f" + integrity sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8= + +camelcase@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" + integrity sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0= + +camelcase@^5.0.0, camelcase@^5.3.1: + version "5.3.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" + integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== + +caniuse-api@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/caniuse-api/-/caniuse-api-3.0.0.tgz#5e4d90e2274961d46291997df599e3ed008ee4c0" + integrity sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw== + dependencies: + browserslist "^4.0.0" + caniuse-lite "^1.0.0" + lodash.memoize "^4.1.2" + lodash.uniq "^4.5.0" + +caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000981, caniuse-lite@^1.0.30001035, caniuse-lite@^1.0.30001039, caniuse-lite@^1.0.30001043: + version "1.0.30001058" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001058.tgz#9f8a318389e28f060272274ac93a661d17f8bf0d" + integrity sha512-UiRZmBYd1HdVVdFKy7PuLVx9e2NS7SMyx7QpWvFjiklYrLJKpLd19cRnRNqlw4zYa7vVejS3c8JUVobX241zHQ== + +capture-exit@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4" + integrity sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g== + dependencies: + rsvp "^4.8.4" + +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= + +center-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" + integrity sha1-qg0yYptu6XIgBBHL1EYckHvCt60= + dependencies: + align-text "^0.1.3" + lazy-cache "^1.0.3" + +chalk@2.4.2, chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.4.1, chalk@^2.4.2: + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +chalk@^1.1.1, chalk@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg= + dependencies: + ansi-styles "^2.2.1" + escape-string-regexp "^1.0.2" + has-ansi "^2.0.0" + strip-ansi "^3.0.0" + supports-color "^2.0.0" + +chalk@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" + integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +chalk@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.0.0.tgz#6e98081ed2d17faab615eb52ac66ec1fe6209e72" + integrity sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +chardet@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" + integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== + +chokidar@^2.0.4, chokidar@^2.1.8: + version "2.1.8" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.8.tgz#804b3a7b6a99358c3c5c61e71d8728f041cff917" + integrity sha512-ZmZUazfOzf0Nve7duiCKD23PFSCs4JPoYyccjUFF3aQkQadqBhfzhjkwBH2mNOG9cTBwhamM37EIsIkZw3nRgg== + dependencies: + anymatch "^2.0.0" + async-each "^1.0.1" + braces "^2.3.2" + glob-parent "^3.1.0" + inherits "^2.0.3" + is-binary-path "^1.0.0" + is-glob "^4.0.0" + normalize-path "^3.0.0" + path-is-absolute "^1.0.0" + readdirp "^2.2.1" + upath "^1.1.1" + optionalDependencies: + fsevents "^1.2.7" + +chokidar@^3.3.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.4.0.tgz#b30611423ce376357c765b9b8f904b9fba3c0be8" + integrity sha512-aXAaho2VJtisB/1fg1+3nlLJqGOuewTzQpd/Tz0yTg2R0e4IGtshYvtjowyEumcBv2z+y4+kc75Mz7j5xJskcQ== + dependencies: + anymatch "~3.1.1" + braces "~3.0.2" + glob-parent "~5.1.0" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.4.0" + optionalDependencies: + fsevents "~2.1.2" + +chownr@^1.1.1, chownr@^1.1.2: + version "1.1.4" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b" + integrity sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg== + +chrome-trace-event@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.2.tgz#234090ee97c7d4ad1a2c4beae27505deffc608a4" + integrity sha512-9e/zx1jw7B4CO+c/RXoCsfg/x1AfUBioy4owYH0bJprEYAx5hRFLRhWBqHAG57D0ZM4H7vxbP7bPe0VwhQRYDQ== + dependencies: + tslib "^1.9.0" + +ci-info@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" + integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== + +cipher-base@^1.0.0, cipher-base@^1.0.1, cipher-base@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de" + integrity sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q== + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +class-utils@^0.3.5: + version "0.3.6" + resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" + integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== + dependencies: + arr-union "^3.1.0" + define-property "^0.2.5" + isobject "^3.0.0" + static-extend "^0.1.1" + +classnames@2.2.6, classnames@2.x, classnames@^2.2.5, classnames@^2.2.6: + version "2.2.6" + resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce" + integrity sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q== + +clean-css@4.2.x: + version "4.2.3" + resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.3.tgz#507b5de7d97b48ee53d84adb0160ff6216380f78" + integrity sha512-VcMWDN54ZN/DS+g58HYL5/n4Zrqe8vHJpGA8KdgUXFU4fuP/aHNw8eld9SyEIyabIMJX/0RaY/fplOo5hYLSFA== + dependencies: + source-map "~0.6.0" + +clean-stack@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" + integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== + +cli-cursor@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" + integrity sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU= + dependencies: + restore-cursor "^2.0.0" + +cli-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" + integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== + dependencies: + restore-cursor "^3.1.0" + +cli-spinners@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.3.0.tgz#0632239a4b5aa4c958610142c34bb7a651fc8df5" + integrity sha512-Xs2Hf2nzrvJMFKimOR7YR0QwZ8fc0u98kdtwN1eNAZzNQgH3vK2pXzff6GJtKh7S5hoJ87ECiAiZFS2fb5Ii2w== + +cli-width@^2.0.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.1.tgz#b0433d0b4e9c847ef18868a4ef16fd5fc8271c48" + integrity sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw== + +cliui@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" + integrity sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE= + dependencies: + center-align "^0.1.1" + right-align "^0.1.1" + wordwrap "0.0.2" + +cliui@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-4.1.0.tgz#348422dbe82d800b3022eef4f6ac10bf2e4d1b49" + integrity sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ== + dependencies: + string-width "^2.1.1" + strip-ansi "^4.0.0" + wrap-ansi "^2.0.0" + +cliui@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-5.0.0.tgz#deefcfdb2e800784aa34f46fa08e06851c7bbbc5" + integrity sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA== + dependencies: + string-width "^3.1.0" + strip-ansi "^5.2.0" + wrap-ansi "^5.1.0" + +cliui@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" + integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^6.2.0" + +clone-deep@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-2.0.2.tgz#00db3a1e173656730d1188c3d6aced6d7ea97713" + integrity sha512-SZegPTKjCgpQH63E+eN6mVEEPdQBOUzjyJm5Pora4lrwWRFS8I0QAxV/KD6vV/i0WuijHZWQC1fMsPEdxfdVCQ== + dependencies: + for-own "^1.0.0" + is-plain-object "^2.0.4" + kind-of "^6.0.0" + shallow-clone "^1.0.0" + +clone@^1.0.2: + version "1.0.4" + resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" + integrity sha1-2jCcwmPfFZlMaIypAheco8fNfH4= + +clone@^2.1.1, clone@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f" + integrity sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18= + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= + +coa@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/coa/-/coa-2.0.2.tgz#43f6c21151b4ef2bf57187db0d73de229e3e7ec3" + integrity sha512-q5/jG+YQnSy4nRTV4F7lPepBJZ8qBNJJDBuJdoejDyLXgmL7IEo+Le2JDZudFTFt7mrCqIRaSjws4ygRCTCAXA== + dependencies: + "@types/q" "^1.5.1" + chalk "^2.4.1" + q "^1.1.2" + +code-point-at@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c= + +collection-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" + integrity sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA= + dependencies: + map-visit "^1.0.0" + object-visit "^1.0.0" + +color-convert@^1.9.0, color-convert@^1.9.1: + version "1.9.3" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-convert@~0.5.0: + version "0.5.3" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-0.5.3.tgz#bdb6c69ce660fadffe0b0007cc447e1b9f7282bd" + integrity sha1-vbbGnOZg+t/+CwAHzER+G59ygr0= + +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= + +color-name@^1.0.0, color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +color-string@^1.5.2: + version "1.5.3" + resolved "https://registry.yarnpkg.com/color-string/-/color-string-1.5.3.tgz#c9bbc5f01b58b5492f3d6857459cb6590ce204cc" + integrity sha512-dC2C5qeWoYkxki5UAXapdjqO672AM4vZuPGRQfO8b5HKuKGBbKWpITyDYN7TOFKvRW7kOgAn3746clDBMDJyQw== + dependencies: + color-name "^1.0.0" + simple-swizzle "^0.2.2" + +color@^3.0.0: + version "3.1.2" + resolved "https://registry.yarnpkg.com/color/-/color-3.1.2.tgz#68148e7f85d41ad7649c5fa8c8106f098d229e10" + integrity sha512-vXTJhHebByxZn3lDvDJYw4lR5+uB3vuoHsuYA5AKuxRVn5wzzIfQKGLBmgdVRHKTJYeK5rvJcHnrd0Li49CFpg== + dependencies: + color-convert "^1.9.1" + color-string "^1.5.2" + +combined-stream@^1.0.6, combined-stream@~1.0.6: + version "1.0.8" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +command-exists@^1.2.8: + version "1.2.9" + resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69" + integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w== + +command-line-args@5.0.2: + version "5.0.2" + resolved "https://registry.yarnpkg.com/command-line-args/-/command-line-args-5.0.2.tgz#c4e56b016636af1323cf485aa25c3cb203dfbbe4" + integrity sha512-/qPcbL8zpqg53x4rAaqMFlRV4opN3pbla7I7k9x8kyOBMQoGT6WltjN6sXZuxOXw6DgdK7Ad+ijYS5gjcr7vlA== + dependencies: + argv-tools "^0.1.1" + array-back "^2.0.0" + find-replace "^2.0.1" + lodash.camelcase "^4.3.0" + typical "^2.6.1" + +command-line-usage@5.0.5: + version "5.0.5" + resolved "https://registry.yarnpkg.com/command-line-usage/-/command-line-usage-5.0.5.tgz#5f25933ffe6dedd983c635d38a21d7e623fda357" + integrity sha512-d8NrGylA5oCXSbGoKz05FkehDAzSmIm4K03S5VDh4d5lZAtTWfc3D1RuETtuQCn8129nYfJfDdF7P/lwcz1BlA== + dependencies: + array-back "^2.0.0" + chalk "^2.4.1" + table-layout "^0.4.3" + typical "^2.6.1" + +commander@2, commander@^2.20.0, commander@^2.9.0: + version "2.20.3" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" + integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== + +commander@2.17.x: + version "2.17.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf" + integrity sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg== + +commander@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-5.0.0.tgz#dbf1909b49e5044f8fdaf0adc809f0c0722bdfd0" + integrity sha512-JrDGPAKjMGSP1G0DUoaceEJ3DZgAfr/q6X7FVk4+U5KxUSKviYGM2k6zWkfyyBHy5rAtzgYJFa1ro2O9PtoxwQ== + +commander@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-5.1.0.tgz#46abbd1652f8e059bddaef99bbdcb2ad9cf179ae" + integrity sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg== + +commander@~2.19.0: + version "2.19.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a" + integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg== + +comment-parser@^0.7.2: + version "0.7.4" + resolved "https://registry.yarnpkg.com/comment-parser/-/comment-parser-0.7.4.tgz#f5eb83cbae323cae6533c057f41d52692361c83a" + integrity sha512-Nnl77/mt6sj1BiYSVMeMWzvD0183F2MFOJyFRmZHimUVDYS9J40AvXpiFA7RpU5pQH+HkvYc0dnsHpwW2xmbyQ== + +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" + integrity sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs= + +component-classes@^1.2.5: + version "1.2.6" + resolved "https://registry.yarnpkg.com/component-classes/-/component-classes-1.2.6.tgz#c642394c3618a4d8b0b8919efccbbd930e5cd691" + integrity sha1-xkI5TDYYpNiwuJGe/Mu9kw5c1pE= + dependencies: + component-indexof "0.0.3" + +component-emitter@^1.2.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" + integrity sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg== + +component-indexof@0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/component-indexof/-/component-indexof-0.0.3.tgz#11d091312239eb8f32c8f25ae9cb002ffe8d3c24" + integrity sha1-EdCRMSI5648yyPJa6csAL/6NPCQ= + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + +concat-stream@^1.5.0, concat-stream@^1.6.2: + version "1.6.2" + resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" + integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw== + dependencies: + buffer-from "^1.0.0" + inherits "^2.0.3" + readable-stream "^2.2.2" + typedarray "^0.0.6" + +concurrently@4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/concurrently/-/concurrently-4.1.0.tgz#17fdf067da71210685d9ea554423ef239da30d33" + integrity sha512-pwzXCE7qtOB346LyO9eFWpkFJVO3JQZ/qU/feGeaAHiX1M3Rw3zgXKc5cZ8vSH5DGygkjzLFDzA/pwoQDkRNGg== + dependencies: + chalk "^2.4.1" + date-fns "^1.23.0" + lodash "^4.17.10" + read-pkg "^4.0.1" + rxjs "^6.3.3" + spawn-command "^0.0.2-1" + supports-color "^4.5.0" + tree-kill "^1.1.0" + yargs "^12.0.1" + +console-browserify@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.2.0.tgz#67063cef57ceb6cf4993a2ab3a55840ae8c49336" + integrity sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA== + +console-control-strings@^1.0.0, console-control-strings@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4= + +constants-browserify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" + integrity sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U= + +contour_plot@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/contour_plot/-/contour_plot-0.0.1.tgz#475870f032b8e338412aa5fc507880f0bf495c77" + integrity sha1-R1hw8DK44zhBKqX8UHiA8L9JXHc= + +convert-source-map@^1.4.0, convert-source-map@^1.5.0, convert-source-map@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442" + integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA== + dependencies: + safe-buffer "~5.1.1" + +copy-concurrently@^1.0.0: + version "1.0.5" + resolved "https://registry.yarnpkg.com/copy-concurrently/-/copy-concurrently-1.0.5.tgz#92297398cae34937fcafd6ec8139c18051f0b5e0" + integrity sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A== + dependencies: + aproba "^1.1.1" + fs-write-stream-atomic "^1.0.8" + iferr "^0.1.5" + mkdirp "^0.5.1" + rimraf "^2.5.4" + run-queue "^1.0.0" + +copy-descriptor@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" + integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40= + +copy-webpack-plugin@5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-5.1.1.tgz#5481a03dea1123d88a988c6ff8b78247214f0b88" + integrity sha512-P15M5ZC8dyCjQHWwd4Ia/dm0SgVvZJMYeykVIVYXbGyqO4dWB5oyPHp9i7wjwo5LhtlhKbiBCdS2NvM07Wlybg== + dependencies: + cacache "^12.0.3" + find-cache-dir "^2.1.0" + glob-parent "^3.1.0" + globby "^7.1.1" + is-glob "^4.0.1" + loader-utils "^1.2.3" + minimatch "^3.0.4" + normalize-path "^3.0.0" + p-limit "^2.2.1" + schema-utils "^1.0.0" + serialize-javascript "^2.1.2" + webpack-log "^2.0.0" + +core-js-compat@^3.6.2: + version "3.6.5" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.6.5.tgz#2a51d9a4e25dfd6e690251aa81f99e3c05481f1c" + integrity sha512-7ItTKOhOZbznhXAQ2g/slGg1PJV5zDO/WdkTwi7UEOJmkvsE32PWvx6mKtDjiMpjnR2CNf6BAD6sSxIlv7ptng== + dependencies: + browserslist "^4.8.5" + semver "7.0.0" + +core-js@^1.0.0: + version "1.2.7" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636" + integrity sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY= + +core-js@^2.4.0: + version "2.6.11" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.11.tgz#38831469f9922bded8ee21c9dc46985e0399308c" + integrity sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg== + +core-util-is@1.0.2, core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= + +cosmiconfig@^5.0.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a" + integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== + dependencies: + import-fresh "^2.0.0" + is-directory "^0.3.1" + js-yaml "^3.13.1" + parse-json "^4.0.0" + +cosmiconfig@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-6.0.0.tgz#da4fee853c52f6b1e6935f41c1a2fc50bd4a9982" + integrity sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg== + dependencies: + "@types/parse-json" "^4.0.0" + import-fresh "^3.1.0" + parse-json "^5.0.0" + path-type "^4.0.0" + yaml "^1.7.2" + +create-ecdh@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.3.tgz#c9111b6f33045c4697f144787f9254cdc77c45ff" + integrity sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw== + dependencies: + bn.js "^4.1.0" + elliptic "^6.0.0" + +create-emotion@^10.0.27: + version "10.0.27" + resolved "https://registry.yarnpkg.com/create-emotion/-/create-emotion-10.0.27.tgz#cb4fa2db750f6ca6f9a001a33fbf1f6c46789503" + integrity sha512-fIK73w82HPPn/RsAij7+Zt8eCE8SptcJ3WoRMfxMtjteYxud8GDTKKld7MYwAX2TVhrw29uR1N/bVGxeStHILg== + dependencies: + "@emotion/cache" "^10.0.27" + "@emotion/serialize" "^0.11.15" + "@emotion/sheet" "0.9.4" + "@emotion/utils" "0.11.3" + +create-hash@^1.1.0, create-hash@^1.1.2, create-hash@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196" + integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg== + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + md5.js "^1.3.4" + ripemd160 "^2.0.1" + sha.js "^2.4.0" + +create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.7.tgz#69170c78b3ab957147b2b8b04572e47ead2243ff" + integrity sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg== + dependencies: + cipher-base "^1.0.3" + create-hash "^1.1.0" + inherits "^2.0.1" + ripemd160 "^2.0.0" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +create-react-context@<=0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/create-react-context/-/create-react-context-0.2.2.tgz#9836542f9aaa22868cd7d4a6f82667df38019dca" + integrity sha512-KkpaLARMhsTsgp0d2NA/R94F/eDLbhXERdIq3LvX2biCAXcDvHYoOqHfWCHf1+OLj+HKBotLG3KqaOOf+C1C+A== + dependencies: + fbjs "^0.8.0" + gud "^1.0.0" + +cross-spawn@7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.1.tgz#0ab56286e0f7c24e153d04cc2aa027e43a9a5d14" + integrity sha512-u7v4o84SwFpD32Z8IIcPZ6z1/ie24O6RU3RbtL5Y316l3KuHVPx9ItBgWQ6VlfAFnRnTtMUrsQ9MUUTuEZjogg== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +cross-spawn@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-3.0.1.tgz#1256037ecb9f0c5f79e3d6ef135e30770184b982" + integrity sha1-ElYDfsufDF9549bvE14wdwGEuYI= + dependencies: + lru-cache "^4.0.1" + which "^1.2.9" + +cross-spawn@^6.0.0, cross-spawn@^6.0.5: + version "6.0.5" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" + integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== + dependencies: + nice-try "^1.0.4" + path-key "^2.0.1" + semver "^5.5.0" + shebang-command "^1.2.0" + which "^1.2.9" + +cross-spawn@^7.0.0: + version "7.0.2" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.2.tgz#d0d7dcfa74e89115c7619f4f721a94e1fdb716d6" + integrity sha512-PD6G8QG3S4FK/XCGFbEQrDqO2AnMMsy0meR7lerlIOHAAbkuavGU/pOqprrlvfTNjvowivTeBsjebAL0NSoMxw== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +crypto-browserify@^3.11.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec" + integrity sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg== + dependencies: + browserify-cipher "^1.0.0" + browserify-sign "^4.0.0" + create-ecdh "^4.0.0" + create-hash "^1.1.0" + create-hmac "^1.1.0" + diffie-hellman "^5.0.0" + inherits "^2.0.1" + pbkdf2 "^3.0.3" + public-encrypt "^4.0.0" + randombytes "^2.0.0" + randomfill "^1.0.3" + +css-animation@^1.3.2: + version "1.6.1" + resolved "https://registry.yarnpkg.com/css-animation/-/css-animation-1.6.1.tgz#162064a3b0d51f958b7ff37b3d6d4de18e17039e" + integrity sha512-/48+/BaEaHRY6kNQ2OIPzKf9A6g8WjZYjhiNDNuIVbsm5tXCGIAsHDjB4Xu1C4vXJtUWZo26O68OQkDpNBaPog== + dependencies: + babel-runtime "6.x" + component-classes "^1.2.5" + +css-blank-pseudo@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/css-blank-pseudo/-/css-blank-pseudo-0.1.4.tgz#dfdefd3254bf8a82027993674ccf35483bfcb3c5" + integrity sha512-LHz35Hr83dnFeipc7oqFDmsjHdljj3TQtxGGiNWSOsTLIAubSm4TEz8qCaKFpk7idaQ1GfWscF4E6mgpBysA1w== + dependencies: + postcss "^7.0.5" + +css-box-model@^1.2.0: + version "1.2.1" + resolved "https://registry.yarnpkg.com/css-box-model/-/css-box-model-1.2.1.tgz#59951d3b81fd6b2074a62d49444415b0d2b4d7c1" + integrity sha512-a7Vr4Q/kd/aw96bnJG332W9V9LkJO69JRcaCYDUqjp6/z0w6VcZjgAcTbgFxEPfBgdnAwlh3iwu+hLopa+flJw== + dependencies: + tiny-invariant "^1.0.6" + +css-color-names@0.0.4, css-color-names@^0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0" + integrity sha1-gIrcLnnPhHOAabZGyyDsJ762KeA= + +css-declaration-sorter@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/css-declaration-sorter/-/css-declaration-sorter-4.0.1.tgz#c198940f63a76d7e36c1e71018b001721054cb22" + integrity sha512-BcxQSKTSEEQUftYpBVnsH4SF05NTuBokb19/sBt6asXGKZ/6VP7PLG1CBCkFDYOnhXhPh0jMhO6xZ71oYHXHBA== + dependencies: + postcss "^7.0.1" + timsort "^0.3.0" + +css-has-pseudo@^0.10.0: + version "0.10.0" + resolved "https://registry.yarnpkg.com/css-has-pseudo/-/css-has-pseudo-0.10.0.tgz#3c642ab34ca242c59c41a125df9105841f6966ee" + integrity sha512-Z8hnfsZu4o/kt+AuFzeGpLVhFOGO9mluyHBaA2bA8aCGTwah5sT3WV/fTHH8UNZUytOIImuGPrl/prlb4oX4qQ== + dependencies: + postcss "^7.0.6" + postcss-selector-parser "^5.0.0-rc.4" + +css-loader@^3.0.0: + version "3.5.3" + resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-3.5.3.tgz#95ac16468e1adcd95c844729e0bb167639eb0bcf" + integrity sha512-UEr9NH5Lmi7+dguAm+/JSPovNjYbm2k3TK58EiwQHzOHH5Jfq1Y+XoP2bQO6TMn7PptMd0opxxedAWcaSTRKHw== + dependencies: + camelcase "^5.3.1" + cssesc "^3.0.0" + icss-utils "^4.1.1" + loader-utils "^1.2.3" + normalize-path "^3.0.0" + postcss "^7.0.27" + postcss-modules-extract-imports "^2.0.0" + postcss-modules-local-by-default "^3.0.2" + postcss-modules-scope "^2.2.0" + postcss-modules-values "^3.0.0" + postcss-value-parser "^4.0.3" + schema-utils "^2.6.6" + semver "^6.3.0" + +css-prefers-color-scheme@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/css-prefers-color-scheme/-/css-prefers-color-scheme-3.1.1.tgz#6f830a2714199d4f0d0d0bb8a27916ed65cff1f4" + integrity sha512-MTu6+tMs9S3EUqzmqLXEcgNRbNkkD/TGFvowpeoWJn5Vfq7FMgsmRQs9X5NXAURiOBmOxm/lLjsDNXDE6k9bhg== + dependencies: + postcss "^7.0.5" + +css-select-base-adapter@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz#3b2ff4972cc362ab88561507a95408a1432135d7" + integrity sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w== + +css-select@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/css-select/-/css-select-1.2.0.tgz#2b3a110539c5355f1cd8d314623e870b121ec858" + integrity sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg= + dependencies: + boolbase "~1.0.0" + css-what "2.1" + domutils "1.5.1" + nth-check "~1.0.1" + +css-select@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/css-select/-/css-select-2.1.0.tgz#6a34653356635934a81baca68d0255432105dbef" + integrity sha512-Dqk7LQKpwLoH3VovzZnkzegqNSuAziQyNZUcrdDM401iY+R5NkGBXGmtO05/yaXQziALuPogeG0b7UAgjnTJTQ== + dependencies: + boolbase "^1.0.0" + css-what "^3.2.1" + domutils "^1.7.0" + nth-check "^1.0.2" + +css-tree@1.0.0-alpha.37: + version "1.0.0-alpha.37" + resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.0.0-alpha.37.tgz#98bebd62c4c1d9f960ec340cf9f7522e30709a22" + integrity sha512-DMxWJg0rnz7UgxKT0Q1HU/L9BeJI0M6ksor0OgqOnF+aRCDWg/N2641HmVyU9KVIu0OVVWOb2IpC9A+BJRnejg== + dependencies: + mdn-data "2.0.4" + source-map "^0.6.1" + +css-tree@1.0.0-alpha.39: + version "1.0.0-alpha.39" + resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.0.0-alpha.39.tgz#2bff3ffe1bb3f776cf7eefd91ee5cba77a149eeb" + integrity sha512-7UvkEYgBAHRG9Nt980lYxjsTrCyHFN53ky3wVsDkiMdVqylqRt+Zc+jm5qw7/qyOvN2dHSYtX0e4MbCCExSvnA== + dependencies: + mdn-data "2.0.6" + source-map "^0.6.1" + +css-what@2.1: + version "2.1.3" + resolved "https://registry.yarnpkg.com/css-what/-/css-what-2.1.3.tgz#a6d7604573365fe74686c3f311c56513d88285f2" + integrity sha512-a+EPoD+uZiNfh+5fxw2nO9QwFa6nJe2Or35fGY6Ipw1R3R4AGz1d1TEZrCegvw2YTmZ0jXirGYlzxxpYSHwpEg== + +css-what@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/css-what/-/css-what-3.2.1.tgz#f4a8f12421064621b456755e34a03a2c22df5da1" + integrity sha512-WwOrosiQTvyms+Ti5ZC5vGEK0Vod3FTt1ca+payZqvKuGJF+dq7bG63DstxtN0dpm6FxY27a/zS3Wten+gEtGw== + +cssdb@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/cssdb/-/cssdb-4.4.0.tgz#3bf2f2a68c10f5c6a08abd92378331ee803cddb0" + integrity sha512-LsTAR1JPEM9TpGhl/0p3nQecC2LJ0kD8X5YARu1hk/9I1gril5vDtMZyNxcEpxxDj34YNck/ucjuoUd66K03oQ== + +cssesc@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-2.0.0.tgz#3b13bd1bb1cb36e1bcb5a4dcd27f54c5dcb35703" + integrity sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg== + +cssesc@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" + integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== + +cssfilter@0.0.10: + version "0.0.10" + resolved "https://registry.yarnpkg.com/cssfilter/-/cssfilter-0.0.10.tgz#c6d2672632a2e5c83e013e6864a42ce8defd20ae" + integrity sha1-xtJnJjKi5cg+AT5oZKQs6N79IK4= + +cssfontparser@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/cssfontparser/-/cssfontparser-1.2.1.tgz#f4022fc8f9700c68029d542084afbaf425a3f3e3" + integrity sha1-9AIvyPlwDGgCnVQghK+69CWj8+M= + +cssnano-preset-default@^4.0.7: + version "4.0.7" + resolved "https://registry.yarnpkg.com/cssnano-preset-default/-/cssnano-preset-default-4.0.7.tgz#51ec662ccfca0f88b396dcd9679cdb931be17f76" + integrity sha512-x0YHHx2h6p0fCl1zY9L9roD7rnlltugGu7zXSKQx6k2rYw0Hi3IqxcoAGF7u9Q5w1nt7vK0ulxV8Lo+EvllGsA== + dependencies: + css-declaration-sorter "^4.0.1" + cssnano-util-raw-cache "^4.0.1" + postcss "^7.0.0" + postcss-calc "^7.0.1" + postcss-colormin "^4.0.3" + postcss-convert-values "^4.0.1" + postcss-discard-comments "^4.0.2" + postcss-discard-duplicates "^4.0.2" + postcss-discard-empty "^4.0.1" + postcss-discard-overridden "^4.0.1" + postcss-merge-longhand "^4.0.11" + postcss-merge-rules "^4.0.3" + postcss-minify-font-values "^4.0.2" + postcss-minify-gradients "^4.0.2" + postcss-minify-params "^4.0.2" + postcss-minify-selectors "^4.0.2" + postcss-normalize-charset "^4.0.1" + postcss-normalize-display-values "^4.0.2" + postcss-normalize-positions "^4.0.2" + postcss-normalize-repeat-style "^4.0.2" + postcss-normalize-string "^4.0.2" + postcss-normalize-timing-functions "^4.0.2" + postcss-normalize-unicode "^4.0.1" + postcss-normalize-url "^4.0.1" + postcss-normalize-whitespace "^4.0.2" + postcss-ordered-values "^4.1.2" + postcss-reduce-initial "^4.0.3" + postcss-reduce-transforms "^4.0.2" + postcss-svgo "^4.0.2" + postcss-unique-selectors "^4.0.1" + +cssnano-util-get-arguments@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/cssnano-util-get-arguments/-/cssnano-util-get-arguments-4.0.0.tgz#ed3a08299f21d75741b20f3b81f194ed49cc150f" + integrity sha1-7ToIKZ8h11dBsg87gfGU7UnMFQ8= + +cssnano-util-get-match@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/cssnano-util-get-match/-/cssnano-util-get-match-4.0.0.tgz#c0e4ca07f5386bb17ec5e52250b4f5961365156d" + integrity sha1-wOTKB/U4a7F+xeUiULT1lhNlFW0= + +cssnano-util-raw-cache@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/cssnano-util-raw-cache/-/cssnano-util-raw-cache-4.0.1.tgz#b26d5fd5f72a11dfe7a7846fb4c67260f96bf282" + integrity sha512-qLuYtWK2b2Dy55I8ZX3ky1Z16WYsx544Q0UWViebptpwn/xDBmog2TLg4f+DBMg1rJ6JDWtn96WHbOKDWt1WQA== + dependencies: + postcss "^7.0.0" + +cssnano-util-same-parent@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/cssnano-util-same-parent/-/cssnano-util-same-parent-4.0.1.tgz#574082fb2859d2db433855835d9a8456ea18bbf3" + integrity sha512-WcKx5OY+KoSIAxBW6UBBRay1U6vkYheCdjyVNDm85zt5K9mHoGOfsOsqIszfAqrQQFIIKgjh2+FDgIj/zsl21Q== + +cssnano@^4.1.10: + version "4.1.10" + resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-4.1.10.tgz#0ac41f0b13d13d465487e111b778d42da631b8b2" + integrity sha512-5wny+F6H4/8RgNlaqab4ktc3e0/blKutmq8yNlBFXA//nSFFAqAngjNVRzUvCgYROULmZZUoosL/KSoZo5aUaQ== + dependencies: + cosmiconfig "^5.0.0" + cssnano-preset-default "^4.0.7" + is-resolvable "^1.0.0" + postcss "^7.0.0" + +csso@^4.0.2: + version "4.0.3" + resolved "https://registry.yarnpkg.com/csso/-/csso-4.0.3.tgz#0d9985dc852c7cc2b2cacfbbe1079014d1a8e903" + integrity sha512-NL3spysxUkcrOgnpsT4Xdl2aiEiBG6bXswAABQVHcMrfjjBisFOKwLDOmf4wf32aPdcJws1zds2B0Rg+jqMyHQ== + dependencies: + css-tree "1.0.0-alpha.39" + +cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": + version "0.3.8" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" + integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== + +cssstyle@^1.0.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-1.4.0.tgz#9d31328229d3c565c61e586b02041a28fccdccf1" + integrity sha512-GBrLZYZ4X4x6/QEoBnIrqb8B/f5l4+8me2dkom/j1Gtbxy0kBv6OGzKuAsGM75bkGwGAFkt56Iwg28S3XTZgSA== + dependencies: + cssom "0.3.x" + +csstype@^2.2.0, csstype@^2.5.7, csstype@^2.6.7: + version "2.6.10" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.10.tgz#e63af50e66d7c266edb6b32909cfd0aabe03928b" + integrity sha512-D34BqZU4cIlMCY93rZHbrq9pjTAQJ3U8S8rfBqjwHxkGPThWFjzZDQpgMJY0QViLxth6ZKYiwFBo14RdN44U/w== + +currently-unhandled@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea" + integrity sha1-mI3zP+qxke95mmE2nddsF635V+o= + dependencies: + array-find-index "^1.0.1" + +cyclist@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9" + integrity sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk= + +d3-array@1, d3-array@^1.1.1, d3-array@^1.2.0: + version "1.2.4" + resolved "https://registry.yarnpkg.com/d3-array/-/d3-array-1.2.4.tgz#635ce4d5eea759f6f605863dbcfc30edc737f71f" + integrity sha512-KHW6M86R+FUPYGb3R5XiYjXPq7VzwxZ22buHhAEVG5ztoEcZZMLov530mmccaqA1GghZArjQV46fuc8kUqhhHw== + +d3-axis@1: + version "1.0.12" + resolved "https://registry.yarnpkg.com/d3-axis/-/d3-axis-1.0.12.tgz#cdf20ba210cfbb43795af33756886fb3638daac9" + integrity sha512-ejINPfPSNdGFKEOAtnBtdkpr24c4d4jsei6Lg98mxf424ivoDP2956/5HDpIAtmHo85lqT4pruy+zEgvRUBqaQ== + +d3-brush@1: + version "1.1.5" + resolved "https://registry.yarnpkg.com/d3-brush/-/d3-brush-1.1.5.tgz#066b8e84d17b192986030446c97c0fba7e1bacdc" + integrity sha512-rEaJ5gHlgLxXugWjIkolTA0OyMvw8UWU1imYXy1v642XyyswmI1ybKOv05Ft+ewq+TFmdliD3VuK0pRp1VT/5A== + dependencies: + d3-dispatch "1" + d3-drag "1" + d3-interpolate "1" + d3-selection "1" + d3-transition "1" + +d3-chord@1: + version "1.0.6" + resolved "https://registry.yarnpkg.com/d3-chord/-/d3-chord-1.0.6.tgz#309157e3f2db2c752f0280fedd35f2067ccbb15f" + integrity sha512-JXA2Dro1Fxw9rJe33Uv+Ckr5IrAa74TlfDEhE/jfLOaXegMQFQTAgAw9WnZL8+HxVBRXaRGCkrNU7pJeylRIuA== + dependencies: + d3-array "1" + d3-path "1" + +d3-collection@1: + version "1.0.7" + resolved "https://registry.yarnpkg.com/d3-collection/-/d3-collection-1.0.7.tgz#349bd2aa9977db071091c13144d5e4f16b5b310e" + integrity sha512-ii0/r5f4sjKNTfh84Di+DpztYwqKhEyUlKoPrzUFfeSkWxjW49xU2QzO9qrPrNkpdI0XJkfzvmTu8V2Zylln6A== + +d3-color@1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.4.1.tgz#c52002bf8846ada4424d55d97982fef26eb3bc8a" + integrity sha512-p2sTHSLCJI2QKunbGb7ocOh7DgTAn8IrLx21QRc/BSnodXM4sv6aLQlnfpvehFMLZEfBc6g9pH9SWQccFYfJ9Q== + +d3-contour@1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/d3-contour/-/d3-contour-1.3.2.tgz#652aacd500d2264cb3423cee10db69f6f59bead3" + integrity sha512-hoPp4K/rJCu0ladiH6zmJUEz6+u3lgR+GSm/QdM2BBvDraU39Vr7YdDCicJcxP1z8i9B/2dJLgDC1NcvlF8WCg== + dependencies: + d3-array "^1.1.1" + +d3-dispatch@1: + version "1.0.6" + resolved "https://registry.yarnpkg.com/d3-dispatch/-/d3-dispatch-1.0.6.tgz#00d37bcee4dd8cd97729dd893a0ac29caaba5d58" + integrity sha512-fVjoElzjhCEy+Hbn8KygnmMS7Or0a9sI2UzGwoB7cCtvI1XpVN9GpoYlnb3xt2YV66oXYb1fLJ8GMvP4hdU1RA== + +d3-drag@1: + version "1.2.5" + resolved "https://registry.yarnpkg.com/d3-drag/-/d3-drag-1.2.5.tgz#2537f451acd39d31406677b7dc77c82f7d988f70" + integrity sha512-rD1ohlkKQwMZYkQlYVCrSFxsWPzI97+W+PaEIBNTMxRuxz9RF0Hi5nJWHGVJ3Om9d2fRTe1yOBINJyy/ahV95w== + dependencies: + d3-dispatch "1" + d3-selection "1" + +d3-dsv@1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/d3-dsv/-/d3-dsv-1.2.0.tgz#9d5f75c3a5f8abd611f74d3f5847b0d4338b885c" + integrity sha512-9yVlqvZcSOMhCYzniHE7EVUws7Fa1zgw+/EAV2BxJoG3ME19V6BQFBwI855XQDsxyOuG7NibqRMTtiF/Qup46g== + dependencies: + commander "2" + iconv-lite "0.4" + rw "1" + +d3-ease@1, d3-ease@~1.0.3: + version "1.0.6" + resolved "https://registry.yarnpkg.com/d3-ease/-/d3-ease-1.0.6.tgz#ebdb6da22dfac0a22222f2d4da06f66c416a0ec0" + integrity sha512-SZ/lVU7LRXafqp7XtIcBdxnWl8yyLpgOmzAk0mWBI9gXNzLDx5ybZgnRbH9dN/yY5tzVBqCQ9avltSnqVwessQ== + +d3-fetch@1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/d3-fetch/-/d3-fetch-1.1.2.tgz#957c8fbc6d4480599ba191b1b2518bf86b3e1be2" + integrity sha512-S2loaQCV/ZeyTyIF2oP8D1K9Z4QizUzW7cWeAOAS4U88qOt3Ucf6GsmgthuYSdyB2HyEm4CeGvkQxWsmInsIVA== + dependencies: + d3-dsv "1" + +d3-force@1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/d3-force/-/d3-force-1.2.1.tgz#fd29a5d1ff181c9e7f0669e4bd72bdb0e914ec0b" + integrity sha512-HHvehyaiUlVo5CxBJ0yF/xny4xoaxFxDnBXNvNcfW9adORGZfyNF1dj6DGLKyk4Yh3brP/1h3rnDzdIAwL08zg== + dependencies: + d3-collection "1" + d3-dispatch "1" + d3-quadtree "1" + d3-timer "1" + +d3-format@1: + version "1.4.4" + resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-1.4.4.tgz#356925f28d0fd7c7983bfad593726fce46844030" + integrity sha512-TWks25e7t8/cqctxCmxpUuzZN11QxIA7YrMbram94zMQ0PXjE4LVIMe/f6a4+xxL8HQ3OsAFULOINQi1pE62Aw== + +d3-geo@1: + version "1.12.0" + resolved "https://registry.yarnpkg.com/d3-geo/-/d3-geo-1.12.0.tgz#58ddbdf4d9db5f199db69d1b7c93dca6454a6f24" + integrity sha512-NalZVW+6/SpbKcnl+BCO67m8gX+nGeJdo6oGL9H6BRUGUL1e+AtPcP4vE4TwCQ/gl8y5KE7QvBzrLn+HsKIl+w== + dependencies: + d3-array "1" + +d3-hierarchy@1: + version "1.1.9" + resolved "https://registry.yarnpkg.com/d3-hierarchy/-/d3-hierarchy-1.1.9.tgz#2f6bee24caaea43f8dc37545fa01628559647a83" + integrity sha512-j8tPxlqh1srJHAtxfvOUwKNYJkQuBFdM1+JAUfq6xqH5eAqf93L7oG1NVqDa4CpFZNvnNKtCYEUC8KY9yEn9lQ== + +d3-interpolate@1: + version "1.4.0" + resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.4.0.tgz#526e79e2d80daa383f9e0c1c1c7dcc0f0583e987" + integrity sha512-V9znK0zc3jOPV4VD2zZn0sDhZU3WAE2bmlxdIwwQPPzPjvyLkd8B3JUVdS1IDUFDkWZ72c9qnv1GK2ZagTZ8EA== + dependencies: + d3-color "1" + +d3-interpolate@~1.1.5: + version "1.1.6" + resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.1.6.tgz#2cf395ae2381804df08aa1bf766b7f97b5f68fb6" + integrity sha512-mOnv5a+pZzkNIHtw/V6I+w9Lqm9L5bG3OTXPM5A+QO0yyVMQ4W1uZhR+VOJmazaOZXri2ppbiZ5BUNWT0pFM9A== + dependencies: + d3-color "1" + +d3-path@1: + version "1.0.9" + resolved "https://registry.yarnpkg.com/d3-path/-/d3-path-1.0.9.tgz#48c050bb1fe8c262493a8caf5524e3e9591701cf" + integrity sha512-VLaYcn81dtHVTjEHd8B+pbe9yHWpXKZUC87PzoFmsFrJqgFwDe/qxfp5MlfsfM1V5E/iVt0MmEbWQ7FVIXh/bg== + +d3-polygon@1: + version "1.0.6" + resolved "https://registry.yarnpkg.com/d3-polygon/-/d3-polygon-1.0.6.tgz#0bf8cb8180a6dc107f518ddf7975e12abbfbd38e" + integrity sha512-k+RF7WvI08PC8reEoXa/w2nSg5AUMTi+peBD9cmFc+0ixHfbs4QmxxkarVal1IkVkgxVuk9JSHhJURHiyHKAuQ== + +d3-quadtree@1: + version "1.0.7" + resolved "https://registry.yarnpkg.com/d3-quadtree/-/d3-quadtree-1.0.7.tgz#ca8b84df7bb53763fe3c2f24bd435137f4e53135" + integrity sha512-RKPAeXnkC59IDGD0Wu5mANy0Q2V28L+fNe65pOCXVdVuTJS3WPKaJlFHer32Rbh9gIo9qMuJXio8ra4+YmIymA== + +d3-random@1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/d3-random/-/d3-random-1.1.2.tgz#2833be7c124360bf9e2d3fd4f33847cfe6cab291" + integrity sha512-6AK5BNpIFqP+cx/sreKzNjWbwZQCSUatxq+pPRmFIQaWuoD+NrbVWw7YWpHiXpCQ/NanKdtGDuB+VQcZDaEmYQ== + +d3-scale-chromatic@1: + version "1.5.0" + resolved "https://registry.yarnpkg.com/d3-scale-chromatic/-/d3-scale-chromatic-1.5.0.tgz#54e333fc78212f439b14641fb55801dd81135a98" + integrity sha512-ACcL46DYImpRFMBcpk9HhtIyC7bTBR4fNOPxwVSl0LfulDAwyiHyPOTqcDG1+t5d4P9W7t/2NAuWu59aKko/cg== + dependencies: + d3-color "1" + d3-interpolate "1" + +d3-scale@2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/d3-scale/-/d3-scale-2.2.2.tgz#4e880e0b2745acaaddd3ede26a9e908a9e17b81f" + integrity sha512-LbeEvGgIb8UMcAa0EATLNX0lelKWGYDQiPdHj+gLblGVhGLyNbaCn3EvrJf0A3Y/uOOU5aD6MTh5ZFCdEwGiCw== + dependencies: + d3-array "^1.2.0" + d3-collection "1" + d3-format "1" + d3-interpolate "1" + d3-time "1" + d3-time-format "2" + +d3-selection@1, d3-selection@^1.0.2, d3-selection@^1.1.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/d3-selection/-/d3-selection-1.4.1.tgz#98eedbbe085fbda5bafa2f9e3f3a2f4d7d622a98" + integrity sha512-BTIbRjv/m5rcVTfBs4AMBLKs4x8XaaLkwm28KWu9S2vKNqXkXt2AH2Qf0sdPZHjFxcWg/YL53zcqAz+3g4/7PA== + +d3-shape@1: + version "1.3.7" + resolved "https://registry.yarnpkg.com/d3-shape/-/d3-shape-1.3.7.tgz#df63801be07bc986bc54f63789b4fe502992b5d7" + integrity sha512-EUkvKjqPFUAZyOlhY5gzCxCeI0Aep04LwIRpsZ/mLFelJiUfnK56jo5JMDSE7yyP2kLSb6LtF+S5chMk7uqPqw== + dependencies: + d3-path "1" + +d3-time-format@2: + version "2.2.3" + resolved "https://registry.yarnpkg.com/d3-time-format/-/d3-time-format-2.2.3.tgz#0c9a12ee28342b2037e5ea1cf0b9eb4dd75f29cb" + integrity sha512-RAHNnD8+XvC4Zc4d2A56Uw0yJoM7bsvOlJR33bclxq399Rak/b9bhvu/InjxdWhPtkgU53JJcleJTGkNRnN6IA== + dependencies: + d3-time "1" + +d3-time@1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/d3-time/-/d3-time-1.1.0.tgz#b1e19d307dae9c900b7e5b25ffc5dcc249a8a0f1" + integrity sha512-Xh0isrZ5rPYYdqhAVk8VLnMEidhz5aP7htAADH6MfzgmmicPkTo8LhkLxci61/lCB7n7UmE3bN0leRt+qvkLxA== + +d3-timer@1, d3-timer@~1.0.6: + version "1.0.10" + resolved "https://registry.yarnpkg.com/d3-timer/-/d3-timer-1.0.10.tgz#dfe76b8a91748831b13b6d9c793ffbd508dd9de5" + integrity sha512-B1JDm0XDaQC+uvo4DT79H0XmBskgS3l6Ve+1SBCfxgmtIb1AVrPIoqd+nPSv+loMX8szQ0sVUhGngL7D5QPiXw== + +d3-transition@1, d3-transition@^1.0.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/d3-transition/-/d3-transition-1.3.2.tgz#a98ef2151be8d8600543434c1ca80140ae23b398" + integrity sha512-sc0gRU4PFqZ47lPVHloMn9tlPcv8jxgOQg+0zjhfZXMQuvppjG6YuwdMBE0TuqCZjeJkLecku/l9R0JPcRhaDA== + dependencies: + d3-color "1" + d3-dispatch "1" + d3-ease "1" + d3-interpolate "1" + d3-selection "^1.1.0" + d3-timer "1" + +d3-voronoi@1: + version "1.1.4" + resolved "https://registry.yarnpkg.com/d3-voronoi/-/d3-voronoi-1.1.4.tgz#dd3c78d7653d2bb359284ae478645d95944c8297" + integrity sha512-dArJ32hchFsrQ8uMiTBLq256MpnZjeuBtdHpaDlYuQyjU0CVzCJl/BVW+SkszaAeH95D/8gxqAhgx0ouAWAfRg== + +d3-zoom@1: + version "1.8.3" + resolved "https://registry.yarnpkg.com/d3-zoom/-/d3-zoom-1.8.3.tgz#b6a3dbe738c7763121cd05b8a7795ffe17f4fc0a" + integrity sha512-VoLXTK4wvy1a0JpH2Il+F2CiOhVu7VRXWF5M/LroMIh3/zBAC3WAt7QoIvPibOavVo20hN6/37vwAsdBejLyKQ== + dependencies: + d3-dispatch "1" + d3-drag "1" + d3-interpolate "1" + d3-selection "1" + d3-transition "1" + +d3@5.15.0: + version "5.15.0" + resolved "https://registry.yarnpkg.com/d3/-/d3-5.15.0.tgz#ffd44958e6a3cb8a59a84429c45429b8bca5677a" + integrity sha512-C+E80SL2nLLtmykZ6klwYj5rPqB5nlfN5LdWEAVdWPppqTD8taoJi2PxLZjPeYT8FFRR2yucXq+kBlOnnvZeLg== + dependencies: + d3-array "1" + d3-axis "1" + d3-brush "1" + d3-chord "1" + d3-collection "1" + d3-color "1" + d3-contour "1" + d3-dispatch "1" + d3-drag "1" + d3-dsv "1" + d3-ease "1" + d3-fetch "1" + d3-force "1" + d3-format "1" + d3-geo "1" + d3-hierarchy "1" + d3-interpolate "1" + d3-path "1" + d3-polygon "1" + d3-quadtree "1" + d3-random "1" + d3-scale "2" + d3-scale-chromatic "1" + d3-selection "1" + d3-shape "1" + d3-time "1" + d3-time-format "2" + d3-timer "1" + d3-transition "1" + d3-voronoi "1" + d3-zoom "1" + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + integrity sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA= + dependencies: + assert-plus "^1.0.0" + +data-urls@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-1.1.0.tgz#15ee0582baa5e22bb59c77140da8f9c76963bbfe" + integrity sha512-YTWYI9se1P55u58gL5GkQHW4P6VJBJ5iBT+B5a7i2Tjadhv52paJG0qHX4A0OR6/t52odI64KP2YvFpkDOi3eQ== + dependencies: + abab "^2.0.0" + whatwg-mimetype "^2.2.0" + whatwg-url "^7.0.0" + +date-fns@^1.23.0: + version "1.30.1" + resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.30.1.tgz#2e71bf0b119153dbb4cc4e88d9ea5acfb50dc05c" + integrity sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw== + +debug@=3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" + integrity sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g== + dependencies: + ms "2.0.0" + +debug@^2.2.0, debug@^2.3.3, debug@^2.6.0, debug@^2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +debug@^3.1.0: + version "3.2.6" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b" + integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ== + dependencies: + ms "^2.1.1" + +debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" + integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== + dependencies: + ms "^2.1.1" + +decamelize@^1.0.0, decamelize@^1.1.2, decamelize@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= + +decode-uri-component@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" + integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= + +deep-equal@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.1.1.tgz#b5c98c942ceffaf7cb051e24e1434a25a2e6076a" + integrity sha512-yd9c5AdiqVcR+JjcwUQb9DkhJc8ngNr0MahEBGvDiJw8puWab2yZlh+nkasOnZP+EGTAP6rRp2JzJhJZzvNF8g== + dependencies: + is-arguments "^1.0.4" + is-date-object "^1.0.1" + is-regex "^1.0.4" + object-is "^1.0.1" + object-keys "^1.1.1" + regexp.prototype.flags "^1.2.0" + +deep-extend@~0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" + integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== + +deep-is@~0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= + +defaults@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d" + integrity sha1-xlYFHpgX2f8I7YgUd/P+QBnz730= + dependencies: + clone "^1.0.2" + +define-properties@^1.1.2, define-properties@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" + integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== + dependencies: + object-keys "^1.0.12" + +define-property@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" + integrity sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY= + dependencies: + is-descriptor "^0.1.0" + +define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" + integrity sha1-dp66rz9KY6rTr56NMEybvnm/sOY= + dependencies: + is-descriptor "^1.0.0" + +define-property@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" + integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== + dependencies: + is-descriptor "^1.0.2" + isobject "^3.0.1" + +defined@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" + integrity sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM= + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + integrity sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o= + +des.js@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/des.js/-/des.js-1.0.1.tgz#5382142e1bdc53f85d86d53e5f4aa7deb91e0843" + integrity sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA== + dependencies: + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + +detect-newline@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-2.1.0.tgz#f41f1c10be4b00e87b5f13da680759f2c5bfd3e2" + integrity sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I= + +detect-port-alt@1.1.6: + version "1.1.6" + resolved "https://registry.yarnpkg.com/detect-port-alt/-/detect-port-alt-1.1.6.tgz#24707deabe932d4a3cf621302027c2b266568275" + integrity sha512-5tQykt+LqfJFBEYaDITx7S7cR7mJ/zQmLXZ2qt5w04ainYZw6tBf9dBunMjVeVOdYVRUzUOE4HkY5J7+uttb5Q== + dependencies: + address "^1.0.1" + debug "^2.6.0" + +diff-sequences@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-24.9.0.tgz#5715d6244e2aa65f48bba0bc972db0b0b11e95b5" + integrity sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew== + +diff-sequences@^25.2.6: + version "25.2.6" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-25.2.6.tgz#5f467c00edd35352b7bca46d7927d60e687a76dd" + integrity sha512-Hq8o7+6GaZeoFjtpgvRBUknSXNeJiCx7V9Fr94ZMljNiCr9n9L8H8aJqgWOQiDDGdyn29fRNcDdRVJ5fdyihfg== + +diff-sequences@^26.0.0: + version "26.0.0" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-26.0.0.tgz#0760059a5c287637b842bd7085311db7060e88a6" + integrity sha512-JC/eHYEC3aSS0vZGjuoc4vHA0yAQTzhQQldXMeMF+JlxLGJlCO38Gma82NV9gk1jGFz8mDzUMeaKXvjRRdJ2dg== + +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + +diffie-hellman@^5.0.0: + version "5.0.3" + resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875" + integrity sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg== + dependencies: + bn.js "^4.1.0" + miller-rabin "^4.0.0" + randombytes "^2.0.0" + +dir-glob@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-2.0.0.tgz#0b205d2b6aef98238ca286598a8204d29d0a0034" + integrity sha512-37qirFDz8cA5fimp9feo43fSuRo2gHwaIn6dXL8Ber1dGwUosDrGZeCCXq57WnIqE4aQ+u3eQZzsk1yOzhdwag== + dependencies: + arrify "^1.0.1" + path-type "^3.0.0" + +dir-glob@^2.0.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-2.2.2.tgz#fa09f0694153c8918b18ba0deafae94769fc50c4" + integrity sha512-f9LBi5QWzIW3I6e//uxZoLBlUt9kcp66qo0sSCxL6YZKc75R1c4MFCoe/LaZiBGmgujvQdxc5Bn3QhfyvK5Hsw== + dependencies: + path-type "^3.0.0" + +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== + dependencies: + path-type "^4.0.0" + +direction@^0.1.5: + version "0.1.5" + resolved "https://registry.yarnpkg.com/direction/-/direction-0.1.5.tgz#ce5d797f97e26f8be7beff53f7dc40e1c1a9ec4c" + integrity sha1-zl15f5fib4vnvv9T99xA4cGp7Ew= + +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== + dependencies: + esutils "^2.0.2" + +dom-align@^1.7.0: + version "1.11.1" + resolved "https://registry.yarnpkg.com/dom-align/-/dom-align-1.11.1.tgz#7592be99a660a36cdedc1d6eeb22b8109d758cae" + integrity sha512-hN42DmUgtweBx0iBjDLO4WtKOMcK8yBmPx/fgdsgQadLuzPu/8co3oLdK5yMmeM/vnUd3yDyV6qV8/NzxBexQg== + +dom-converter@^0.2: + version "0.2.0" + resolved "https://registry.yarnpkg.com/dom-converter/-/dom-converter-0.2.0.tgz#6721a9daee2e293682955b6afe416771627bb768" + integrity sha512-gd3ypIPfOMr9h5jIKq8E3sHOTCjeirnl0WK5ZdS1AW0Odt0b1PaWaHdJ4Qk4klv+YB9aJBS7mESXjFoDQPu6DA== + dependencies: + utila "~0.4" + +dom-css@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/dom-css/-/dom-css-2.1.0.tgz#fdbc2d5a015d0a3e1872e11472bbd0e7b9e6a202" + integrity sha1-/bwtWgFdCj4YcuEUcrvQ57nmogI= + dependencies: + add-px-to-style "1.0.0" + prefix-style "2.0.1" + to-camel-case "1.0.0" + +dom-helpers@^5.0.1: + version "5.1.4" + resolved "https://registry.yarnpkg.com/dom-helpers/-/dom-helpers-5.1.4.tgz#4609680ab5c79a45f2531441f1949b79d6587f4b" + integrity sha512-TjMyeVUvNEnOnhzs6uAn9Ya47GmMo3qq7m+Lr/3ON0Rs5kHvb8I+SQYjLUSYn7qhEm0QjW0yrBkvz9yOrwwz1A== + dependencies: + "@babel/runtime" "^7.8.7" + csstype "^2.6.7" + +dom-serializer@0: + version "0.2.2" + resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.2.2.tgz#1afb81f533717175d478655debc5e332d9f9bb51" + integrity sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g== + dependencies: + domelementtype "^2.0.1" + entities "^2.0.0" + +domain-browser@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda" + integrity sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA== + +domelementtype@1, domelementtype@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.1.tgz#d048c44b37b0d10a7f2a3d5fee3f4333d790481f" + integrity sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w== + +domelementtype@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.0.1.tgz#1f8bdfe91f5a78063274e803b4bdcedf6e94f94d" + integrity sha512-5HOHUDsYZWV8FGWN0Njbr/Rn7f/eWSQi1v7+HsUVwXgn8nWWlL64zKDkS0n8ZmQ3mlWOMuXOnR+7Nx/5tMO5AQ== + +domexception@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" + integrity sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug== + dependencies: + webidl-conversions "^4.0.2" + +domhandler@^2.3.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-2.4.2.tgz#8805097e933d65e85546f726d60f5eb88b44f803" + integrity sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA== + dependencies: + domelementtype "1" + +domutils@1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.5.1.tgz#dcd8488a26f563d61079e48c9f7b7e32373682cf" + integrity sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8= + dependencies: + dom-serializer "0" + domelementtype "1" + +domutils@^1.5.1, domutils@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.7.0.tgz#56ea341e834e06e6748af7a1cb25da67ea9f8c2a" + integrity sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg== + dependencies: + dom-serializer "0" + domelementtype "1" + +dot-prop@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.2.0.tgz#c34ecc29556dc45f1f4c22697b6f4904e0cc4fcb" + integrity sha512-uEUyaDKoSQ1M4Oq8l45hSE26SnTxL6snNnqvK/VWx5wJhmff5z0FUVJDKDanor/6w3kzE3i7XZOk+7wC0EXr1A== + dependencies: + is-obj "^2.0.0" + +dotignore@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/dotignore/-/dotignore-0.1.2.tgz#f942f2200d28c3a76fbdd6f0ee9f3257c8a2e905" + integrity sha512-UGGGWfSauusaVJC+8fgV+NVvBXkCTmVv7sk6nojDZZvuOUNGUy0Zk4UpHQD6EDjS0jpBwcACvH4eofvyzBcRDw== + dependencies: + minimatch "^3.0.4" + +duplexer@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1" + integrity sha1-rOb/gIwc5mtX0ev5eXessCM0z8E= + +duplexify@^3.4.2, duplexify@^3.6.0: + version "3.7.1" + resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-3.7.1.tgz#2a4df5317f6ccfd91f86d6fd25d8d8a103b88309" + integrity sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g== + dependencies: + end-of-stream "^1.0.0" + inherits "^2.0.1" + readable-stream "^2.0.0" + stream-shift "^1.0.0" + +ecc-jsbn@~0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" + integrity sha1-OoOpBOVDUyh4dMVkt1SThoSamMk= + dependencies: + jsbn "~0.1.0" + safer-buffer "^2.1.0" + +electron-to-chromium@^1.3.378, electron-to-chromium@^1.3.413: + version "1.3.437" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.437.tgz#110f1cd407e5d09b43d5585e5f237b71063412cf" + integrity sha512-PBQn2q68ErqMyBUABh9Gh8R6DunGky8aB5y3N5lPM7OVpldwyUbAK5AX9WcwE/5F6ceqvQ+iQLYkJYRysAs6Bg== + +elliptic@^6.0.0, elliptic@^6.5.2: + version "6.5.2" + resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.2.tgz#05c5678d7173c049d8ca433552224a495d0e3762" + integrity sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw== + dependencies: + bn.js "^4.4.0" + brorand "^1.0.1" + hash.js "^1.0.0" + hmac-drbg "^1.0.0" + inherits "^2.0.1" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.0" + +emoji-regex@^7.0.1: + version "7.0.3" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" + integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + +emojis-list@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" + integrity sha1-TapNnbAPmBmIDHn6RXrlsJof04k= + +emojis-list@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78" + integrity sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q== + +emotion@10.0.27: + version "10.0.27" + resolved "https://registry.yarnpkg.com/emotion/-/emotion-10.0.27.tgz#f9ca5df98630980a23c819a56262560562e5d75e" + integrity sha512-2xdDzdWWzue8R8lu4G76uWX5WhyQuzATon9LmNeCy/2BHVC6dsEpfhN1a0qhELgtDVdjyEA6J8Y/VlI5ZnaH0g== + dependencies: + babel-plugin-emotion "^10.0.27" + create-emotion "^10.0.27" + +encoding@^0.1.11: + version "0.1.12" + resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" + integrity sha1-U4tm8+5izRq1HsMjgp0flIDHS+s= + dependencies: + iconv-lite "~0.4.13" + +end-of-stream@^1.0.0, end-of-stream@^1.1.0: + version "1.4.4" + resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" + integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== + dependencies: + once "^1.4.0" + +enhanced-resolve@^4.0.0, enhanced-resolve@^4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-4.1.1.tgz#2937e2b8066cd0fe7ce0990a98f0d71a35189f66" + integrity sha512-98p2zE+rL7/g/DzMHMTF4zZlCgeVdJ7yr6xzEpJRYwFYrGi9ANdn5DnJURg6RpBkyk60XYDnWIv51VfIhfNGuA== + dependencies: + graceful-fs "^4.1.2" + memory-fs "^0.5.0" + tapable "^1.0.0" + +entities@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56" + integrity sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w== + +entities@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/entities/-/entities-2.0.2.tgz#ac74db0bba8d33808bbf36809c3a5c3683531436" + integrity sha512-dmD3AvJQBUjKpcNkoqr+x+IF0SdRtPz9Vk0uTy4yWqga9ibB6s4v++QFWNohjiUGoMlF552ZvNyXDxz5iW0qmw== + +errno@^0.1.1, errno@^0.1.3, errno@~0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618" + integrity sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg== + dependencies: + prr "~1.0.1" + +error-ex@^1.2.0, error-ex@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" + integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== + dependencies: + is-arrayish "^0.2.1" + +es-abstract@^1.17.0-next.1, es-abstract@^1.17.2, es-abstract@^1.17.5: + version "1.17.5" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.5.tgz#d8c9d1d66c8981fb9200e2251d799eee92774ae9" + integrity sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg== + dependencies: + es-to-primitive "^1.2.1" + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.1" + is-callable "^1.1.5" + is-regex "^1.0.5" + object-inspect "^1.7.0" + object-keys "^1.1.1" + object.assign "^4.1.0" + string.prototype.trimleft "^2.1.1" + string.prototype.trimright "^2.1.1" + +es-to-primitive@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" + integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== + dependencies: + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" + +es6-promise@^4.0.3: + version "4.2.8" + resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a" + integrity sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w== + +es6-promisify@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-5.0.0.tgz#5109d62f3e56ea967c4b63505aef08291c8a5203" + integrity sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM= + dependencies: + es6-promise "^4.0.3" + +es6-templates@^0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/es6-templates/-/es6-templates-0.2.3.tgz#5cb9ac9fb1ded6eb1239342b81d792bbb4078ee4" + integrity sha1-XLmsn7He1usSOTQrgdeSu7QHjuQ= + dependencies: + recast "~0.11.12" + through "~2.3.6" + +escape-string-regexp@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" + integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== + +escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= + +escodegen@^1.9.1: + version "1.14.1" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.1.tgz#ba01d0c8278b5e95a9a45350142026659027a457" + integrity sha512-Bmt7NcRySdIfNPfU2ZoXDrrXsG9ZjvDxcAlMfDUgRBjLOWTuIACXPBFJH7Z+cLb40JeQco5toikyc9t9P8E9SQ== + dependencies: + esprima "^4.0.1" + estraverse "^4.2.0" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.6.1" + +eslint-config-prettier@6.10.0: + version "6.10.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-6.10.0.tgz#7b15e303bf9c956875c948f6b21500e48ded6a7f" + integrity sha512-AtndijGte1rPILInUdHjvKEGbIV06NuvPrqlIEaEaWtbtvJh464mDeyGMdZEQMsGvC0ZVkiex1fSNcC4HAbRGg== + dependencies: + get-stdin "^6.0.0" + +eslint-plugin-jsdoc@22.1.0: + version "22.1.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-22.1.0.tgz#dadfa62653fc0d87f900d810307f5ed07ef6ecd5" + integrity sha512-54NdbICM7KrxsGUqQsev9aIMqPXyvyBx2218Qcm0TQ16P9CtBI+YY4hayJR6adrxlq4Ej0JLpgfUXWaQVFqmQg== + dependencies: + comment-parser "^0.7.2" + debug "^4.1.1" + jsdoctypeparser "^6.1.0" + lodash "^4.17.15" + regextras "^0.7.0" + semver "^6.3.0" + spdx-expression-parse "^3.0.0" + +eslint-plugin-prettier@3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.2.tgz#432e5a667666ab84ce72f945c72f77d996a5c9ba" + integrity sha512-GlolCC9y3XZfv3RQfwGew7NnuFDKsfI4lbvRK+PIIo23SFH+LemGs4cKwzAaRa+Mdb+lQO/STaIayno8T5sJJA== + dependencies: + prettier-linter-helpers "^1.0.0" + +eslint-scope@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848" + integrity sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg== + dependencies: + esrecurse "^4.1.0" + estraverse "^4.1.1" + +eslint-scope@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.0.0.tgz#e87c8887c73e8d1ec84f1ca591645c358bfc8fb9" + integrity sha512-oYrhJW7S0bxAFDvWqzvMPRm6pcgcnWc4QnofCAqRTRfQC0JcwenzGglTtsLyIuuWFfkqDG9vz67cnttSd53djw== + dependencies: + esrecurse "^4.1.0" + estraverse "^4.1.1" + +eslint-utils@^1.4.3: + version "1.4.3" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f" + integrity sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q== + dependencies: + eslint-visitor-keys "^1.1.0" + +eslint-visitor-keys@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2" + integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A== + +eslint@6.8.0: + version "6.8.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.8.0.tgz#62262d6729739f9275723824302fb227c8c93ffb" + integrity sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig== + dependencies: + "@babel/code-frame" "^7.0.0" + ajv "^6.10.0" + chalk "^2.1.0" + cross-spawn "^6.0.5" + debug "^4.0.1" + doctrine "^3.0.0" + eslint-scope "^5.0.0" + eslint-utils "^1.4.3" + eslint-visitor-keys "^1.1.0" + espree "^6.1.2" + esquery "^1.0.1" + esutils "^2.0.2" + file-entry-cache "^5.0.1" + functional-red-black-tree "^1.0.1" + glob-parent "^5.0.0" + globals "^12.1.0" + ignore "^4.0.6" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + inquirer "^7.0.0" + is-glob "^4.0.0" + js-yaml "^3.13.1" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.3.0" + lodash "^4.17.14" + minimatch "^3.0.4" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + optionator "^0.8.3" + progress "^2.0.0" + regexpp "^2.0.1" + semver "^6.1.2" + strip-ansi "^5.2.0" + strip-json-comments "^3.0.1" + table "^5.2.3" + text-table "^0.2.0" + v8-compile-cache "^2.0.3" + +espree@^6.1.2: + version "6.2.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-6.2.1.tgz#77fc72e1fd744a2052c20f38a5b575832e82734a" + integrity sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw== + dependencies: + acorn "^7.1.1" + acorn-jsx "^5.2.0" + eslint-visitor-keys "^1.1.0" + +esprima@^4.0.0, esprima@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== + +esprima@~3.1.0: + version "3.1.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" + integrity sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM= + +esquery@^1.0.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.3.1.tgz#b78b5828aa8e214e29fb74c4d5b752e1c033da57" + integrity sha512-olpvt9QG0vniUBZspVRN6lwB7hOZoTRtT+jzR+tS4ffYx2mzbw+z0XCOk44aaLYKApNX5nMm+E+P6o25ip/DHQ== + dependencies: + estraverse "^5.1.0" + +esrecurse@^4.1.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.1.tgz#007a3b9fdbc2b3bb87e4879ea19c92fdbd3942cf" + integrity sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ== + dependencies: + estraverse "^4.1.0" + +esrever@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/esrever/-/esrever-0.2.0.tgz#96e9d28f4f1b1a76784cd5d490eaae010e7407b8" + integrity sha1-lunSj08bGnZ4TNXUkOquAQ50B7g= + +estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" + integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== + +estraverse@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.1.0.tgz#374309d39fd935ae500e7b92e8a6b4c720e59642" + integrity sha512-FyohXK+R0vE+y1nHLoBM7ZTyqRpqAlhdZHCWIWEviFLiGB8b04H6bQs8G+XTthacvT8VuwvteiP7RJSxMs8UEw== + +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== + +events@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/events/-/events-3.1.0.tgz#84279af1b34cb75aa88bf5ff291f6d0bd9b31a59" + integrity sha512-Rv+u8MLHNOdMjTAFeT3nCjHn2aGlx435FP/sDHNaRhDEMwyI/aB22Kj2qIN8R0cw3z28psEQLYwxVKLsKrMgWg== + +evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" + integrity sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA== + dependencies: + md5.js "^1.3.4" + safe-buffer "^5.1.1" + +exec-sh@^0.3.2: + version "0.3.4" + resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.4.tgz#3a018ceb526cc6f6df2bb504b2bfe8e3a4934ec5" + integrity sha512-sEFIkc61v75sWeOe72qyrqg2Qg0OuLESziUDk/O/z2qgS15y2gWVFrI6f2Qn/qw/0/NCfCEsmNA4zOjkwEZT1A== + +execa@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-4.0.0.tgz#7f37d6ec17f09e6b8fc53288611695b6d12b9daf" + integrity sha512-JbDUxwV3BoT5ZVXQrSVbAiaXhXUkIwvbhPIwZ0N13kX+5yCzOhUNdocxB/UQRuYOHRYYwAxKYwJYc0T4D12pDA== + dependencies: + cross-spawn "^7.0.0" + get-stream "^5.0.0" + human-signals "^1.1.1" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.0" + onetime "^5.1.0" + signal-exit "^3.0.2" + strip-final-newline "^2.0.0" + +execa@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8" + integrity sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA== + dependencies: + cross-spawn "^6.0.0" + get-stream "^4.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" + +exit@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + integrity sha1-BjJjj42HfMghB9MKD/8aF8uhzQw= + +expand-brackets@^2.1.4: + version "2.1.4" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" + integrity sha1-t3c14xXOMPa27/D4OwQVGiJEliI= + dependencies: + debug "^2.3.3" + define-property "^0.2.5" + extend-shallow "^2.0.1" + posix-character-classes "^0.1.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +expect-puppeteer@4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/expect-puppeteer/-/expect-puppeteer-4.1.1.tgz#cda2ab7b6fa27ac24eba273bbb0296a0de538e6d" + integrity sha512-xNpu6uYJL9Qrrp4Z31MOpDWK68zAi+2qg5aMQlyOTVZNy7cAgBZiPvKCN0C1JmP3jgPZfcxhetVjZLaw/KcJOQ== + +expect@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/expect/-/expect-24.9.0.tgz#b75165b4817074fa4a157794f46fe9f1ba15b6ca" + integrity sha512-wvVAx8XIol3Z5m9zvZXiyZOQ+sRJqNTIm6sGjdWlaZIeupQGO3WbYI+15D/AmEwZywL6wtJkbAbJtzkOfBuR0Q== + dependencies: + "@jest/types" "^24.9.0" + ansi-styles "^3.2.0" + jest-get-type "^24.9.0" + jest-matcher-utils "^24.9.0" + jest-message-util "^24.9.0" + jest-regex-util "^24.9.0" + +extend-shallow@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" + integrity sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8= + dependencies: + is-extendable "^0.1.0" + +extend-shallow@^3.0.0, extend-shallow@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" + integrity sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg= + dependencies: + assign-symbols "^1.0.0" + is-extendable "^1.0.1" + +extend@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" + integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== + +external-editor@^3.0.3: + version "3.1.0" + resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" + integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== + dependencies: + chardet "^0.7.0" + iconv-lite "^0.4.24" + tmp "^0.0.33" + +extglob@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" + integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== + dependencies: + array-unique "^0.3.2" + define-property "^1.0.0" + expand-brackets "^2.1.4" + extend-shallow "^2.0.1" + fragment-cache "^0.2.1" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +extract-zip@^1.6.6: + version "1.7.0" + resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-1.7.0.tgz#556cc3ae9df7f452c493a0cfb51cc30277940927" + integrity sha512-xoh5G1W/PB0/27lXgMQyIhP5DSY/LhoCsOyZgb+6iMmRtCwVBo55uKaMoEYrDCKQhWvqEip5ZPKAc6eFNyf/MA== + dependencies: + concat-stream "^1.6.2" + debug "^2.6.9" + mkdirp "^0.5.4" + yauzl "^2.10.0" + +extsprintf@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" + integrity sha1-lpGEQOMEGnpBT4xS48V06zw+HgU= + +extsprintf@^1.2.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" + integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= + +fast-deep-equal@^3.0.0, fast-deep-equal@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz#545145077c501491e33b15ec408c294376e94ae4" + integrity sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA== + +fast-diff@^1.1.2: + version "1.2.0" + resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" + integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== + +fast-glob@^2.0.2: + version "2.2.7" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-2.2.7.tgz#6953857c3afa475fff92ee6015d52da70a4cd39d" + integrity sha512-g1KuQwHOZAmOZMuBtHdxDtju+T2RT8jgCC9aANsbpdiDDTSnjgfuVsIBNKbUeJI3oKMRExcfNDtJl4OhbffMsw== + dependencies: + "@mrmlnc/readdir-enhanced" "^2.2.1" + "@nodelib/fs.stat" "^1.1.2" + glob-parent "^3.1.0" + is-glob "^4.0.0" + merge2 "^1.2.3" + micromatch "^3.1.10" + +fast-glob@^3.0.3: + version "3.2.2" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.2.tgz#ade1a9d91148965d4bf7c51f72e1ca662d32e63d" + integrity sha512-UDV82o4uQyljznxwMxyVRJgZZt3O5wENYojjzbaGEGZgeOxkLFf+V4cnUD+krzb2F72E18RhamkMZ7AdeggF7A== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.0" + merge2 "^1.3.0" + micromatch "^4.0.2" + picomatch "^2.2.1" + +fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + +fast-levenshtein@~2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= + +fastparse@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/fastparse/-/fastparse-1.1.2.tgz#91728c5a5942eced8531283c79441ee4122c35a9" + integrity sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ== + +fastq@^1.6.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.8.0.tgz#550e1f9f59bbc65fe185cb6a9b4d95357107f481" + integrity sha512-SMIZoZdLh/fgofivvIkmknUXyPnvxRE3DhtZ5Me3Mrsk5gyPL42F0xr51TdRXskBxHfMp+07bcYzfsYEsSQA9Q== + dependencies: + reusify "^1.0.4" + +fb-watchman@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.1.tgz#fc84fb39d2709cf3ff6d743706157bb5708a8a85" + integrity sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg== + dependencies: + bser "2.1.1" + +fbjs@^0.8.0: + version "0.8.17" + resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.17.tgz#c4d598ead6949112653d6588b01a5cdcd9f90fdd" + integrity sha1-xNWY6taUkRJlPWWIsBpc3Nn5D90= + dependencies: + core-js "^1.0.0" + isomorphic-fetch "^2.1.1" + loose-envify "^1.0.0" + object-assign "^4.1.0" + promise "^7.1.1" + setimmediate "^1.0.5" + ua-parser-js "^0.7.18" + +fd-slicer@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e" + integrity sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4= + dependencies: + pend "~1.2.0" + +fecha@~2.3.3: + version "2.3.3" + resolved "https://registry.yarnpkg.com/fecha/-/fecha-2.3.3.tgz#948e74157df1a32fd1b12c3a3c3cdcb6ec9d96cd" + integrity sha512-lUGBnIamTAwk4znq5BcqsDaxSmZ9nDVJaij6NvRt/Tg4R69gERA+otPKbS86ROw9nxVMw2/mp1fnaiWqbs6Sdg== + +figgy-pudding@^3.5.1: + version "3.5.2" + resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.2.tgz#b4eee8148abb01dcf1d1ac34367d59e12fa61d6e" + integrity sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw== + +figures@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" + integrity sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI= + dependencies: + escape-string-regexp "^1.0.5" + +figures@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" + integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== + dependencies: + escape-string-regexp "^1.0.5" + +file-entry-cache@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz#ca0f6efa6dd3d561333fb14515065c2fafdf439c" + integrity sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g== + dependencies: + flat-cache "^2.0.1" + +file-loader@^4.0.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-4.3.0.tgz#780f040f729b3d18019f20605f723e844b8a58af" + integrity sha512-aKrYPYjF1yG3oX0kWRrqrSMfgftm7oJW5M+m4owoldH5C51C0RkIwB++JbRvEW3IU6/ZG5n8UvEcdgwOt2UOWA== + dependencies: + loader-utils "^1.2.3" + schema-utils "^2.5.0" + +file-uri-to-path@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz#553a7b8446ff6f684359c445f1e37a05dacc33dd" + integrity sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw== + +filesize@6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/filesize/-/filesize-6.0.1.tgz#f850b509909c7c86f7e450ea19006c31c2ed3d2f" + integrity sha512-u4AYWPgbI5GBhs6id1KdImZWn5yfyFrrQ8OWZdN7ZMfA8Bf4HcO0BGo9bmUIEV8yrp8I1xVfJ/dn90GtFNNJcg== + +fill-range@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" + integrity sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc= + dependencies: + extend-shallow "^2.0.1" + is-number "^3.0.0" + repeat-string "^1.6.1" + to-regex-range "^2.1.0" + +fill-range@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" + integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== + dependencies: + to-regex-range "^5.0.1" + +find-cache-dir@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-2.1.0.tgz#8d0f94cd13fe43c6c7c261a0d86115ca918c05f7" + integrity sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ== + dependencies: + commondir "^1.0.1" + make-dir "^2.0.0" + pkg-dir "^3.0.0" + +find-cache-dir@^3.3.1: + version "3.3.1" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.1.tgz#89b33fad4a4670daa94f855f7fbe31d6d84fe880" + integrity sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ== + dependencies: + commondir "^1.0.1" + make-dir "^3.0.2" + pkg-dir "^4.1.0" + +find-replace@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/find-replace/-/find-replace-2.0.1.tgz#6d9683a7ca20f8f9aabeabad07e4e2580f528550" + integrity sha512-LzDo3Fpa30FLIBsh6DCDnMN1KW2g4QKkqKmejlImgWY67dDFPX/x9Kh/op/GK522DchQXEvDi/wD48HKW49XOQ== + dependencies: + array-back "^2.0.0" + test-value "^3.0.0" + +find-root@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/find-root/-/find-root-1.1.0.tgz#abcfc8ba76f708c42a97b3d685b7e9450bfb9ce4" + integrity sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng== + +find-up@4.1.0, find-up@^4.0.0, find-up@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" + integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== + dependencies: + locate-path "^5.0.0" + path-exists "^4.0.0" + +find-up@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" + integrity sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8= + dependencies: + path-exists "^2.0.0" + pinkie-promise "^2.0.0" + +find-up@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" + integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= + dependencies: + locate-path "^2.0.0" + +find-up@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" + integrity sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg== + dependencies: + locate-path "^3.0.0" + +flat-cache@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz#5d296d6f04bda44a4630a301413bdbc2ec085ec0" + integrity sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA== + dependencies: + flatted "^2.0.0" + rimraf "2.6.3" + write "1.0.3" + +flatbuffers@1.11.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/flatbuffers/-/flatbuffers-1.11.0.tgz#90a47e584dd7851ad7a913f5a0ee99c1d76ce59f" + integrity sha512-0PqFKtXI4MjxomI7jO4g5XfLPm/15g2R+5WGCHBGYGh0ihQiypnHlJ6bMmkkrAe0GzZ4d7PDAfCONKIPUxNF+A== + +flatted@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138" + integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA== + +flatten@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.3.tgz#c1283ac9f27b368abc1e36d1ff7b04501a30356b" + integrity sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg== + +flot@^4.1.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/flot/-/flot-4.2.1.tgz#a44ea240decee51cbd75d97ca69ec12e59365d27" + integrity sha512-tnZ4Pg1upBSfSs52VVRPZqF8FUxeVVI124srTV/XNcwJR5ygjaCZuwnpkAuZAWFLZMg2OCHb53pB6VoVB7YT4g== + +flush-write-stream@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/flush-write-stream/-/flush-write-stream-1.1.1.tgz#8dd7d873a1babc207d94ead0c2e0e44276ebf2e8" + integrity sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w== + dependencies: + inherits "^2.0.3" + readable-stream "^2.3.6" + +fmin@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/fmin/-/fmin-0.0.2.tgz#59bbb40d43ffdc1c94cd00a568c41f95f1973017" + integrity sha1-Wbu0DUP/3ByUzQClaMQflfGXMBc= + dependencies: + contour_plot "^0.0.1" + json2module "^0.0.3" + rollup "^0.25.8" + tape "^4.5.1" + uglify-js "^2.6.2" + +follow-redirects@1.5.10: + version "1.5.10" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.5.10.tgz#7b7a9f9aea2fdff36786a94ff643ed07f4ff5e2a" + integrity sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ== + dependencies: + debug "=3.1.0" + +for-each@~0.3.3: + version "0.3.3" + resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" + integrity sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw== + dependencies: + is-callable "^1.1.3" + +for-in@^0.1.3: + version "0.1.8" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-0.1.8.tgz#d8773908e31256109952b1fdb9b3fa867d2775e1" + integrity sha1-2Hc5COMSVhCZUrH9ubP6hn0ndeE= + +for-in@^1.0.1, for-in@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" + integrity sha1-gQaNKVqBQuwKxybG4iAMMPttXoA= + +for-own@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/for-own/-/for-own-1.0.0.tgz#c63332f415cedc4b04dbfe70cf836494c53cb44b" + integrity sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs= + dependencies: + for-in "^1.0.1" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= + +fork-ts-checker-webpack-plugin@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-1.0.0.tgz#0f9ff0219f9b6f1a1b10fa25d7cc5015e60c997a" + integrity sha512-Kc7LI0OlnWB0FRbDQO+nnDCfZr+LhFSJIP8kZppDXvuXI/opeMg3IrlMedBX/EGgOUK0ma5Hafgkdp3DuxgYdg== + dependencies: + babel-code-frame "^6.22.0" + chalk "^2.4.1" + chokidar "^2.0.4" + micromatch "^3.1.10" + minimatch "^3.0.4" + semver "^5.6.0" + tapable "^1.0.0" + +fork-ts-checker-webpack-plugin@3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-3.1.1.tgz#a1642c0d3e65f50c2cc1742e9c0a80f441f86b19" + integrity sha512-DuVkPNrM12jR41KM2e+N+styka0EgLkTnXmNcXdgOM37vtGeY+oCBK/Jx0hzSeEU6memFCtWb4htrHPMDfwwUQ== + dependencies: + babel-code-frame "^6.22.0" + chalk "^2.4.1" + chokidar "^3.3.0" + micromatch "^3.1.10" + minimatch "^3.0.4" + semver "^5.6.0" + tapable "^1.0.0" + worker-rpc "^0.1.0" + +form-data@~2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" + integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.6" + mime-types "^2.1.12" + +fragment-cache@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" + integrity sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk= + dependencies: + map-cache "^0.2.2" + +from2@^2.1.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/from2/-/from2-2.3.0.tgz#8bfb5502bde4a4d36cfdeea007fcca21d7e382af" + integrity sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8= + dependencies: + inherits "^2.0.1" + readable-stream "^2.0.0" + +fs-extra@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" + integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^4.0.0" + universalify "^0.1.0" + +fs-minipass@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-2.1.0.tgz#7f5036fdbf12c63c169190cbe4199c852271f9fb" + integrity sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg== + dependencies: + minipass "^3.0.0" + +fs-write-stream-atomic@^1.0.8: + version "1.0.10" + resolved "https://registry.yarnpkg.com/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz#b47df53493ef911df75731e70a9ded0189db40c9" + integrity sha1-tH31NJPvkR33VzHnCp3tAYnbQMk= + dependencies: + graceful-fs "^4.1.2" + iferr "^0.1.5" + imurmurhash "^0.1.4" + readable-stream "1 || 2" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + +fsevents@^1.2.7: + version "1.2.13" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.13.tgz#f325cb0455592428bcf11b383370ef70e3bfcc38" + integrity sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw== + dependencies: + bindings "^1.5.0" + nan "^2.12.1" + +fsevents@~2.1.2: + version "2.1.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e" + integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ== + +fstream@^1.0.0, fstream@^1.0.12: + version "1.0.12" + resolved "https://registry.yarnpkg.com/fstream/-/fstream-1.0.12.tgz#4e8ba8ee2d48be4f7d0de505455548eae5932045" + integrity sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg== + dependencies: + graceful-fs "^4.1.2" + inherits "~2.0.0" + mkdirp ">=0.5 0" + rimraf "2" + +function-bind@^1.1.1, function-bind@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== + +functional-red-black-tree@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" + integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= + +gauge@~2.7.3: + version "2.7.4" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" + integrity sha1-LANAXHU4w51+s3sxcCLjJfsBi/c= + dependencies: + aproba "^1.0.3" + console-control-strings "^1.0.0" + has-unicode "^2.0.0" + object-assign "^4.1.0" + signal-exit "^3.0.0" + string-width "^1.0.1" + strip-ansi "^3.0.1" + wide-align "^1.1.0" + +gaze@^1.0.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/gaze/-/gaze-1.1.3.tgz#c441733e13b927ac8c0ff0b4c3b033f28812924a" + integrity sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g== + dependencies: + globule "^1.0.0" + +gensync@^1.0.0-beta.1: + version "1.0.0-beta.1" + resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.1.tgz#58f4361ff987e5ff6e1e7a210827aa371eaac269" + integrity sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg== + +get-caller-file@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" + integrity sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w== + +get-caller-file@^2.0.1: + version "2.0.5" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + +get-document@1: + version "1.0.0" + resolved "https://registry.yarnpkg.com/get-document/-/get-document-1.0.0.tgz#4821bce66f1c24cb0331602be6cb6b12c4f01c4b" + integrity sha1-SCG85m8cJMsDMWAr5strEsTwHEs= + +get-stdin@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe" + integrity sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4= + +get-stdin@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" + integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== + +get-stream@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" + integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== + dependencies: + pump "^3.0.0" + +get-stream@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.1.0.tgz#01203cdc92597f9b909067c3e656cc1f4d3c4dc9" + integrity sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw== + dependencies: + pump "^3.0.0" + +get-user-locale@^1.2.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/get-user-locale/-/get-user-locale-1.3.0.tgz#21ea740e413541281ae7b2b42e70ee523b7725b2" + integrity sha512-c5N8P0upjxCF9unIC2vTA+B+8nN7kU/D/TeItMAVYhWIIksyoULM1aflKflXM3w+Ij6vF/JZys+QcwIoDuy3Ag== + dependencies: + lodash.once "^4.1.1" + +get-value@^2.0.3, get-value@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" + integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= + +get-window@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/get-window/-/get-window-1.1.2.tgz#65fbaa999fb87f86ea5d30770f4097707044f47f" + integrity sha512-yjWpFcy9fjhLQHW1dPtg9ga4pmizLY8y4ZSHdGrAQ1NU277MRhnGnnLPxe19X8W5lWVsCZz++5xEuNozWMVmTw== + dependencies: + get-document "1" + +getpass@^0.1.1: + version "0.1.7" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + integrity sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo= + dependencies: + assert-plus "^1.0.0" + +glob-parent@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" + integrity sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4= + dependencies: + is-glob "^3.1.0" + path-dirname "^1.0.0" + +glob-parent@^5.0.0, glob-parent@^5.1.0, glob-parent@~5.1.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.1.tgz#b6c1ef417c4e5663ea498f1c45afac6916bbc229" + integrity sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ== + dependencies: + is-glob "^4.0.1" + +glob-to-regexp@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" + integrity sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs= + +glob@^7.0.0, glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@~7.1.1, glob@~7.1.6: + version "7.1.6" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" + integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +global-modules@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-2.0.0.tgz#997605ad2345f27f51539bea26574421215c7780" + integrity sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A== + dependencies: + global-prefix "^3.0.0" + +global-prefix@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-3.0.0.tgz#fc85f73064df69f50421f47f883fe5b913ba9b97" + integrity sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg== + dependencies: + ini "^1.3.5" + kind-of "^6.0.2" + which "^1.3.1" + +globals@^11.1.0: + version "11.12.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" + integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== + +globals@^12.1.0: + version "12.4.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-12.4.0.tgz#a18813576a41b00a24a97e7f815918c2e19925f8" + integrity sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg== + dependencies: + type-fest "^0.8.1" + +globby@8.0.2: + version "8.0.2" + resolved "https://registry.yarnpkg.com/globby/-/globby-8.0.2.tgz#5697619ccd95c5275dbb2d6faa42087c1a941d8d" + integrity sha512-yTzMmKygLp8RUpG1Ymu2VXPSJQZjNAZPD4ywgYEaG7e4tBJeUQBO8OpXrf1RCNcEs5alsoJYPAMiIHP0cmeC7w== + dependencies: + array-union "^1.0.1" + dir-glob "2.0.0" + fast-glob "^2.0.2" + glob "^7.1.2" + ignore "^3.3.5" + pify "^3.0.0" + slash "^1.0.0" + +globby@^10.0.1: + version "10.0.2" + resolved "https://registry.yarnpkg.com/globby/-/globby-10.0.2.tgz#277593e745acaa4646c3ab411289ec47a0392543" + integrity sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg== + dependencies: + "@types/glob" "^7.1.1" + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.0.3" + glob "^7.1.3" + ignore "^5.1.1" + merge2 "^1.2.3" + slash "^3.0.0" + +globby@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/globby/-/globby-7.1.1.tgz#fb2ccff9401f8600945dfada97440cca972b8680" + integrity sha1-+yzP+UAfhgCUXfral0QMypcrhoA= + dependencies: + array-union "^1.0.1" + dir-glob "^2.0.0" + glob "^7.1.2" + ignore "^3.3.5" + pify "^3.0.0" + slash "^1.0.0" + +globule@^1.0.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/globule/-/globule-1.3.1.tgz#90a25338f22b7fbeb527cee63c629aea754d33b9" + integrity sha512-OVyWOHgw29yosRHCHo7NncwR1hW5ew0W/UrvtwvjefVJeQ26q4/8r8FmPsSF1hJ93IgWkyv16pCTz6WblMzm/g== + dependencies: + glob "~7.1.1" + lodash "~4.17.12" + minimatch "~3.0.2" + +graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2: + version "4.2.4" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" + integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw== + +growly@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" + integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE= + +gud@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/gud/-/gud-1.0.0.tgz#a489581b17e6a70beca9abe3ae57de7a499852c0" + integrity sha512-zGEOVKFM5sVPPrYs7J5/hYEw2Pof8KCyOwyhG8sAF26mCAeUFAcYPu1mwB7hhpIP29zOIBaDqwuHdLp0jvZXjw== + +gzip-size@5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-5.1.1.tgz#cb9bee692f87c0612b232840a873904e4c135274" + integrity sha512-FNHi6mmoHvs1mxZAds4PpdCS6QG8B4C1krxJsMutgxl5t3+GlRTzzI3NEkifXx2pVsOvJdOGSmIgDhQ55FwdPA== + dependencies: + duplexer "^0.1.1" + pify "^4.0.1" + +har-schema@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" + integrity sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI= + +har-validator@~5.1.3: + version "5.1.3" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.3.tgz#1ef89ebd3e4996557675eed9893110dc350fa080" + integrity sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g== + dependencies: + ajv "^6.5.5" + har-schema "^2.0.0" + +has-ansi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + integrity sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE= + dependencies: + ansi-regex "^2.0.0" + +has-flag@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51" + integrity sha1-6CB68cx7MNRGzHC3NLXovhj4jVE= + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + +has-symbols@^1.0.0, has-symbols@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8" + integrity sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg== + +has-unicode@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + integrity sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk= + +has-value@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" + integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= + dependencies: + get-value "^2.0.3" + has-values "^0.1.4" + isobject "^2.0.0" + +has-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" + integrity sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc= + dependencies: + get-value "^2.0.6" + has-values "^1.0.0" + isobject "^3.0.0" + +has-values@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" + integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= + +has-values@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" + integrity sha1-lbC2P+whRmGab+V/51Yo1aOe/k8= + dependencies: + is-number "^3.0.0" + kind-of "^4.0.0" + +has@^1.0.0, has@^1.0.3, has@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== + dependencies: + function-bind "^1.1.1" + +hash-base@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33" + integrity sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA== + dependencies: + inherits "^2.0.4" + readable-stream "^3.6.0" + safe-buffer "^5.2.0" + +hash.js@^1.0.0, hash.js@^1.0.3: + version "1.1.7" + resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42" + integrity sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA== + dependencies: + inherits "^2.0.3" + minimalistic-assert "^1.0.1" + +he@1.2.x: + version "1.2.0" + resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" + integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== + +hex-color-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/hex-color-regex/-/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e" + integrity sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ== + +highlight-words-core@^1.2.0: + version "1.2.2" + resolved "https://registry.yarnpkg.com/highlight-words-core/-/highlight-words-core-1.2.2.tgz#1eff6d7d9f0a22f155042a00791237791b1eeaaa" + integrity sha512-BXUKIkUuh6cmmxzi5OIbUJxrG8OAk2MqoL1DtO3Wo9D2faJg2ph5ntyuQeLqaHJmzER6H5tllCDA9ZnNe9BVGg== + +hmac-drbg@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" + integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE= + dependencies: + hash.js "^1.0.3" + minimalistic-assert "^1.0.0" + minimalistic-crypto-utils "^1.0.1" + +hoist-non-react-statics@^3.3.0: + version "3.3.2" + resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45" + integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw== + dependencies: + react-is "^16.7.0" + +hosted-git-info@^2.1.4: + version "2.8.8" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.8.tgz#7539bd4bc1e0e0a895815a2e0262420b12858488" + integrity sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg== + +hsl-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/hsl-regex/-/hsl-regex-1.0.0.tgz#d49330c789ed819e276a4c0d272dffa30b18fe6e" + integrity sha1-1JMwx4ntgZ4nakwNJy3/owsY/m4= + +hsla-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/hsla-regex/-/hsla-regex-1.0.0.tgz#c1ce7a3168c8c6614033a4b5f7877f3b225f9c38" + integrity sha1-wc56MWjIxmFAM6S194d/OyJfnDg= + +html-comment-regex@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/html-comment-regex/-/html-comment-regex-1.1.2.tgz#97d4688aeb5c81886a364faa0cad1dda14d433a7" + integrity sha512-P+M65QY2JQ5Y0G9KKdlDpo0zK+/OHptU5AaBwUfAIDJZk1MYf32Frm84EcOytfJE0t5JvkAnKlmjsXDnWzCJmQ== + +html-encoding-sniffer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" + integrity sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw== + dependencies: + whatwg-encoding "^1.0.1" + +html-escaper@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" + integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== + +html-loader@0.5.5: + version "0.5.5" + resolved "https://registry.yarnpkg.com/html-loader/-/html-loader-0.5.5.tgz#6356dbeb0c49756d8ebd5ca327f16ff06ab5faea" + integrity sha512-7hIW7YinOYUpo//kSYcPB6dCKoceKLmOwjEMmhIobHuWGDVl0Nwe4l68mdG/Ru0wcUxQjVMEoZpkalZ/SE7zog== + dependencies: + es6-templates "^0.2.3" + fastparse "^1.1.1" + html-minifier "^3.5.8" + loader-utils "^1.1.0" + object-assign "^4.1.1" + +html-minifier@^3.2.3, html-minifier@^3.5.8: + version "3.5.21" + resolved "https://registry.yarnpkg.com/html-minifier/-/html-minifier-3.5.21.tgz#d0040e054730e354db008463593194015212d20c" + integrity sha512-LKUKwuJDhxNa3uf/LPR/KVjm/l3rBqtYeCOAekvG8F1vItxMUpueGd94i/asDDr8/1u7InxzFA5EeGjhhG5mMA== + dependencies: + camel-case "3.0.x" + clean-css "4.2.x" + commander "2.17.x" + he "1.2.x" + param-case "2.1.x" + relateurl "0.2.x" + uglify-js "3.4.x" + +html-webpack-plugin@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/html-webpack-plugin/-/html-webpack-plugin-3.2.0.tgz#b01abbd723acaaa7b37b6af4492ebda03d9dd37b" + integrity sha1-sBq71yOsqqeze2r0SS69oD2d03s= + dependencies: + html-minifier "^3.2.3" + loader-utils "^0.2.16" + lodash "^4.17.3" + pretty-error "^2.0.2" + tapable "^1.0.0" + toposort "^1.0.0" + util.promisify "1.0.0" + +htmlparser2@^3.3.0: + version "3.10.1" + resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.10.1.tgz#bd679dc3f59897b6a34bb10749c855bb53a9392f" + integrity sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ== + dependencies: + domelementtype "^1.3.1" + domhandler "^2.3.0" + domutils "^1.5.1" + entities "^1.1.1" + inherits "^2.0.1" + readable-stream "^3.1.1" + +http-signature@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" + integrity sha1-muzZJRFHcvPZW2WmCruPfBj7rOE= + dependencies: + assert-plus "^1.0.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +https-browserify@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-1.0.0.tgz#ec06c10e0a34c0f2faf199f7fd7fc78fffd03c73" + integrity sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM= + +https-proxy-agent@^2.2.1: + version "2.2.4" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz#4ee7a737abd92678a293d9b34a1af4d0d08c787b" + integrity sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg== + dependencies: + agent-base "^4.3.0" + debug "^3.1.0" + +human-signals@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" + integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== + +iconv-lite@0.4, iconv-lite@0.4.24, iconv-lite@^0.4.24, iconv-lite@~0.4.13: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +icss-utils@^4.0.0, icss-utils@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-4.1.1.tgz#21170b53789ee27447c2f47dd683081403f9a467" + integrity sha512-4aFq7wvWyMHKgxsH8QQtGpvbASCf+eM3wPRLI6R+MgAnTCZ6STYsRvttLvRWK0Nfif5piF394St3HeJDaljGPA== + dependencies: + postcss "^7.0.14" + +ieee754@^1.1.4: + version "1.1.13" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.1.13.tgz#ec168558e95aa181fd87d37f55c32bbcb6708b84" + integrity sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg== + +iferr@^0.1.5: + version "0.1.5" + resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501" + integrity sha1-xg7taebY/bazEEofy8ocGS3FtQE= + +ignore@^3.3.5: + version "3.3.10" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043" + integrity sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug== + +ignore@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" + integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== + +ignore@^5.1.1: + version "5.1.4" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.4.tgz#84b7b3dbe64552b6ef0eca99f6743dbec6d97adf" + integrity sha512-MzbUSahkTW1u7JpKKjY7LCARd1fU5W2rLdxlM4kdkayuCwZImjkpluF9CM1aLewYJguPDqewLam18Y6AU69A8A== + +image-size@~0.5.0: + version "0.5.5" + resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.5.5.tgz#09dfd4ab9d20e29eb1c3e80b8990378df9e3cb9c" + integrity sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w= + +immer@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/immer/-/immer-1.10.0.tgz#bad67605ba9c810275d91e1c2a47d4582e98286d" + integrity sha512-O3sR1/opvCDGLEVcvrGTMtLac8GJ5IwZC4puPrLuRj3l7ICKvkmA0vGuU9OW8mV9WIBRnaxp5GJh9IEAaNOoYg== + +immutable@3.8.2, immutable@^3.8.2: + version "3.8.2" + resolved "https://registry.yarnpkg.com/immutable/-/immutable-3.8.2.tgz#c2439951455bb39913daf281376f1530e104adf3" + integrity sha1-wkOZUUVbs5kT2vKBN28VMOEErfM= + +import-cwd@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/import-cwd/-/import-cwd-2.1.0.tgz#aa6cf36e722761285cb371ec6519f53e2435b0a9" + integrity sha1-qmzzbnInYShcs3HsZRn1PiQ1sKk= + dependencies: + import-from "^2.1.0" + +import-fresh@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" + integrity sha1-2BNVwVYS04bGH53dOSLUMEgipUY= + dependencies: + caller-path "^2.0.0" + resolve-from "^3.0.0" + +import-fresh@^3.0.0, import-fresh@^3.1.0: + version "3.2.1" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.1.tgz#633ff618506e793af5ac91bf48b72677e15cbe66" + integrity sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + +import-from@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/import-from/-/import-from-2.1.0.tgz#335db7f2a7affd53aaa471d4b8021dee36b7f3b1" + integrity sha1-M1238qev/VOqpHHUuAId7ja387E= + dependencies: + resolve-from "^3.0.0" + +import-local@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-2.0.0.tgz#55070be38a5993cf18ef6db7e961f5bee5c5a09d" + integrity sha512-b6s04m3O+s3CGSbqDIyP4R6aAwAeYlVq9+WUWep6iHa8ETRf9yei1U48C5MmfJmV9AiLYYBKPMq/W+/WRpQmCQ== + dependencies: + pkg-dir "^3.0.0" + resolve-cwd "^2.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= + +in-publish@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/in-publish/-/in-publish-2.0.1.tgz#948b1a535c8030561cea522f73f78f4be357e00c" + integrity sha512-oDM0kUSNFC31ShNxHKUyfZKy8ZeXZBWMjMdZHKLOk13uvT27VTL/QzRGfRUcevJhpkZAvlhPYuXkF7eNWrtyxQ== + +indent-string@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-2.1.0.tgz#8e2d48348742121b4a8218b7a137e9a52049dc80" + integrity sha1-ji1INIdCEhtKghi3oTfppSBJ3IA= + dependencies: + repeating "^2.0.0" + +indent-string@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" + integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== + +indexes-of@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607" + integrity sha1-8w9xbI4r00bHtn0985FVZqfAVgc= + +infer-owner@^1.0.3, infer-owner@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/infer-owner/-/infer-owner-1.0.4.tgz#c4cefcaa8e51051c2a40ba2ce8a3d27295af9467" + integrity sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A== + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.0, inherits@~2.0.1, inherits@~2.0.3, inherits@~2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +inherits@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.1.tgz#b17d08d326b4423e568eff719f91b0b1cbdf69f1" + integrity sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE= + +inherits@2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= + +ini@^1.3.5: + version "1.3.5" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" + integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw== + +inquirer@7.0.4: + version "7.0.4" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.0.4.tgz#99af5bde47153abca23f5c7fc30db247f39da703" + integrity sha512-Bu5Td5+j11sCkqfqmUTiwv+tWisMtP0L7Q8WrqA2C/BbBhy1YTdFrvjjlrKq8oagA/tLQBski2Gcx/Sqyi2qSQ== + dependencies: + ansi-escapes "^4.2.1" + chalk "^2.4.2" + cli-cursor "^3.1.0" + cli-width "^2.0.0" + external-editor "^3.0.3" + figures "^3.0.0" + lodash "^4.17.15" + mute-stream "0.0.8" + run-async "^2.2.0" + rxjs "^6.5.3" + string-width "^4.1.0" + strip-ansi "^5.1.0" + through "^2.3.6" + +inquirer@^6.3.1: + version "6.5.2" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.5.2.tgz#ad50942375d036d327ff528c08bd5fab089928ca" + integrity sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ== + dependencies: + ansi-escapes "^3.2.0" + chalk "^2.4.2" + cli-cursor "^2.1.0" + cli-width "^2.0.0" + external-editor "^3.0.3" + figures "^2.0.0" + lodash "^4.17.12" + mute-stream "0.0.7" + run-async "^2.2.0" + rxjs "^6.4.0" + string-width "^2.1.0" + strip-ansi "^5.1.0" + through "^2.3.6" + +inquirer@^7.0.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.1.0.tgz#1298a01859883e17c7264b82870ae1034f92dd29" + integrity sha512-5fJMWEmikSYu0nv/flMc475MhGbB7TSPd/2IpFV4I4rMklboCH2rQjYY5kKiYGHqUF9gvaambupcJFFG9dvReg== + dependencies: + ansi-escapes "^4.2.1" + chalk "^3.0.0" + cli-cursor "^3.1.0" + cli-width "^2.0.0" + external-editor "^3.0.3" + figures "^3.0.0" + lodash "^4.17.15" + mute-stream "0.0.8" + run-async "^2.4.0" + rxjs "^6.5.3" + string-width "^4.1.0" + strip-ansi "^6.0.0" + through "^2.3.6" + +invariant@^2.2.2, invariant@^2.2.4: + version "2.2.4" + resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6" + integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA== + dependencies: + loose-envify "^1.0.0" + +invert-kv@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-2.0.0.tgz#7393f5afa59ec9ff5f67a27620d11c226e3eec02" + integrity sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA== + +is-absolute-url@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-absolute-url/-/is-absolute-url-2.1.0.tgz#50530dfb84fcc9aa7dbe7852e83a37b93b9f2aa6" + integrity sha1-UFMN+4T8yap9vnhS6Do3uTufKqY= + +is-accessor-descriptor@^0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" + integrity sha1-qeEss66Nh2cn7u84Q/igiXtcmNY= + dependencies: + kind-of "^3.0.2" + +is-accessor-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz#169c2f6d3df1f992618072365c9b0ea1f6878656" + integrity sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ== + dependencies: + kind-of "^6.0.0" + +is-arguments@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.0.4.tgz#3faf966c7cba0ff437fb31f6250082fcf0448cf3" + integrity sha512-xPh0Rmt8NE65sNzvyUmWgI1tz3mKq74lGA0mL8LYZcoIzKOzDh6HmrYm3d18k60nHerC8A9Km8kYu87zfSFnLA== + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= + +is-arrayish@^0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03" + integrity sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ== + +is-binary-path@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-1.0.1.tgz#75f16642b480f187a711c814161fd3a4a7655898" + integrity sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg= + dependencies: + binary-extensions "^1.0.0" + +is-binary-path@~2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" + integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== + dependencies: + binary-extensions "^2.0.0" + +is-buffer@^1.1.5: + version "1.1.6" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" + integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== + +is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.5.tgz#f7e46b596890456db74e7f6e976cb3273d06faab" + integrity sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q== + +is-ci@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" + integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== + dependencies: + ci-info "^2.0.0" + +is-color-stop@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-color-stop/-/is-color-stop-1.1.0.tgz#cfff471aee4dd5c9e158598fbe12967b5cdad345" + integrity sha1-z/9HGu5N1cnhWFmPvhKWe1za00U= + dependencies: + css-color-names "^0.0.4" + hex-color-regex "^1.1.0" + hsl-regex "^1.0.0" + hsla-regex "^1.0.0" + rgb-regex "^1.0.1" + rgba-regex "^1.0.0" + +is-data-descriptor@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz#0b5ee648388e2c860282e793f1856fec3f301b56" + integrity sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y= + dependencies: + kind-of "^3.0.2" + +is-data-descriptor@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz#d84876321d0e7add03990406abbbbd36ba9268c7" + integrity sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ== + dependencies: + kind-of "^6.0.0" + +is-date-object@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.2.tgz#bda736f2cd8fd06d32844e7743bfa7494c3bfd7e" + integrity sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g== + +is-descriptor@^0.1.0: + version "0.1.6" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.6.tgz#366d8240dde487ca51823b1ab9f07a10a78251ca" + integrity sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg== + dependencies: + is-accessor-descriptor "^0.1.6" + is-data-descriptor "^0.1.4" + kind-of "^5.0.0" + +is-descriptor@^1.0.0, is-descriptor@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.2.tgz#3b159746a66604b04f8c81524ba365c5f14d86ec" + integrity sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg== + dependencies: + is-accessor-descriptor "^1.0.0" + is-data-descriptor "^1.0.0" + kind-of "^6.0.2" + +is-directory@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" + integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE= + +is-docker@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.0.0.tgz#2cb0df0e75e2d064fe1864c37cdeacb7b2dcf25b" + integrity sha512-pJEdRugimx4fBMra5z2/5iRdZ63OhYV0vr0Dwm5+xtW4D1FvRkB8hamMIhnWfyJeDdyr/aa7BDyNbtG38VxgoQ== + +is-extendable@^0.1.0, is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + integrity sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik= + +is-extendable@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" + integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== + dependencies: + is-plain-object "^2.0.4" + +is-extglob@^2.1.0, is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= + +is-finite@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.1.0.tgz#904135c77fb42c0641d6aa1bcdbc4daa8da082f3" + integrity sha512-cdyMtqX/BOqqNBBiKlIVkytNHm49MtMlYyn1zxzvJKWmFMlGzm+ry5BBfYyeY9YmNKbRSo/o7OX9w9ale0wg3w== + +is-fullwidth-code-point@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + integrity sha1-754xOG8DGn8NZDr4L95QxFfvAMs= + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + +is-generator-fn@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" + integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== + +is-glob@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" + integrity sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo= + dependencies: + is-extglob "^2.1.0" + +is-glob@^4.0.0, is-glob@^4.0.1, is-glob@~4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" + integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== + dependencies: + is-extglob "^2.1.1" + +is-hotkey@0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/is-hotkey/-/is-hotkey-0.1.4.tgz#c34d2c85d6ec8d09a871dcf71931c8067a824c7d" + integrity sha512-Py+aW4r5mBBY18TGzGz286/gKS+fCQ0Hee3qkaiSmEPiD0PqFpe0wuA3l7rTOUKyeXl8Mxf3XzJxIoTlSv+kxA== + +is-in-browser@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/is-in-browser/-/is-in-browser-1.1.3.tgz#56ff4db683a078c6082eb95dad7dc62e1d04f835" + integrity sha1-Vv9NtoOgeMYILrldrX3GLh0E+DU= + +is-interactive@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" + integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== + +is-number@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" + integrity sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU= + dependencies: + kind-of "^3.0.2" + +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + +is-obj@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" + integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== + +is-plain-obj@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" + integrity sha1-caUMhCnfync8kqOQpKA7OfzVHT4= + +is-plain-object@^2.0.3, is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== + dependencies: + isobject "^3.0.1" + +is-regex@^1.0.4, is-regex@^1.0.5, is-regex@~1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.5.tgz#39d589a358bf18967f726967120b8fc1aed74eae" + integrity sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ== + dependencies: + has "^1.0.3" + +is-resolvable@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88" + integrity sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg== + +is-root@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-root/-/is-root-2.1.0.tgz#809e18129cf1129644302a4f8544035d51984a9c" + integrity sha512-AGOriNp96vNBd3HtU+RzFEc75FfR5ymiYv8E553I71SCeXBiMsVDUtdio1OEFvrPyLIQ9tVR5RxXIFe5PUFjMg== + +is-stream@^1.0.1, is-stream@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= + +is-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.0.tgz#bde9c32680d6fae04129d6ac9d921ce7815f78e3" + integrity sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw== + +is-svg@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-svg/-/is-svg-3.0.0.tgz#9321dbd29c212e5ca99c4fa9794c714bcafa2f75" + integrity sha512-gi4iHK53LR2ujhLVVj+37Ykh9GLqYHX6JOVXbLAucaG/Cqw9xwdFOjDM2qeifLs1sF1npXXFvDu0r5HNgCMrzQ== + dependencies: + html-comment-regex "^1.1.0" + +is-symbol@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.3.tgz#38e1014b9e6329be0de9d24a414fd7441ec61937" + integrity sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ== + dependencies: + has-symbols "^1.0.1" + +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + +is-utf8@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" + integrity sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI= + +is-window@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-window/-/is-window-1.0.2.tgz#2c896ca53db97de45d3c33133a65d8c9f563480d" + integrity sha1-LIlspT25feRdPDMTOmXYyfVjSA0= + +is-windows@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" + integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== + +is-wsl@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d" + integrity sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0= + +is-wsl@^2.1.1: + version "2.2.0" + resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" + integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== + dependencies: + is-docker "^2.0.0" + +isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= + dependencies: + isarray "1.0.0" + +isobject@^3.0.0, isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= + +isomorphic-base64@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/isomorphic-base64/-/isomorphic-base64-1.0.2.tgz#f426aae82569ba8a4ec5ca73ad21a44ab1ee7803" + integrity sha1-9Caq6CVpuopOxcpzrSGkSrHueAM= + +isomorphic-fetch@^2.1.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz#611ae1acf14f5e81f729507472819fe9733558a9" + integrity sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk= + dependencies: + node-fetch "^1.0.1" + whatwg-fetch ">=0.10.0" + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= + +istanbul-lib-coverage@^2.0.2, istanbul-lib-coverage@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz#675f0ab69503fad4b1d849f736baaca803344f49" + integrity sha512-8aXznuEPCJvGnMSRft4udDRDtb1V3pkQkMMI5LI+6HuQz5oQ4J2UFn1H82raA3qJtyOLkkwVqICBQkjnGtn5mA== + +istanbul-lib-instrument@^3.0.1, istanbul-lib-instrument@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-3.3.0.tgz#a5f63d91f0bbc0c3e479ef4c5de027335ec6d630" + integrity sha512-5nnIN4vo5xQZHdXno/YDXJ0G+I3dAm4XgzfSVTPLQpj/zAV2dV6Juy0yaf10/zrJOJeHoN3fraFe+XRq2bFVZA== + dependencies: + "@babel/generator" "^7.4.0" + "@babel/parser" "^7.4.3" + "@babel/template" "^7.4.0" + "@babel/traverse" "^7.4.3" + "@babel/types" "^7.4.0" + istanbul-lib-coverage "^2.0.5" + semver "^6.0.0" + +istanbul-lib-report@^2.0.4: + version "2.0.8" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-2.0.8.tgz#5a8113cd746d43c4889eba36ab10e7d50c9b4f33" + integrity sha512-fHBeG573EIihhAblwgxrSenp0Dby6tJMFR/HvlerBsrCTD5bkUuoNtn3gVh29ZCS824cGGBPn7Sg7cNk+2xUsQ== + dependencies: + istanbul-lib-coverage "^2.0.5" + make-dir "^2.1.0" + supports-color "^6.1.0" + +istanbul-lib-source-maps@^3.0.1: + version "3.0.6" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-3.0.6.tgz#284997c48211752ec486253da97e3879defba8c8" + integrity sha512-R47KzMtDJH6X4/YW9XTx+jrLnZnscW4VpNN+1PViSYTejLVPWv7oov+Duf8YQSPyVRUvueQqz1TcsC6mooZTXw== + dependencies: + debug "^4.1.1" + istanbul-lib-coverage "^2.0.5" + make-dir "^2.1.0" + rimraf "^2.6.3" + source-map "^0.6.1" + +istanbul-reports@^2.2.6: + version "2.2.7" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-2.2.7.tgz#5d939f6237d7b48393cc0959eab40cd4fd056931" + integrity sha512-uu1F/L1o5Y6LzPVSVZXNOoD/KXpJue9aeLRd0sM9uMXfZvzomB0WxVamWb5ue8kA2vVWEmW7EG+A5n3f1kqHKg== + dependencies: + html-escaper "^2.0.0" + +jest-canvas-mock@2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/jest-canvas-mock/-/jest-canvas-mock-2.1.2.tgz#0d16c9f91534f773fd132fc289f2e6b6db8faa28" + integrity sha512-1VI4PK4/X70yrSjYScYVkYJYbXYlZLKJkUrAlyHjQsfolv64aoFyIrmMDtqCjpYrpVvWYEcAGUaYv5DVJj00oQ== + dependencies: + cssfontparser "^1.2.1" + parse-color "^1.0.0" + +jest-changed-files@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-24.9.0.tgz#08d8c15eb79a7fa3fc98269bc14b451ee82f8039" + integrity sha512-6aTWpe2mHF0DhL28WjdkO8LyGjs3zItPET4bMSeXU6T3ub4FPMw+mcOcbdGXQOAfmLcxofD23/5Bl9Z4AkFwqg== + dependencies: + "@jest/types" "^24.9.0" + execa "^1.0.0" + throat "^4.0.0" + +jest-cli@^24.8.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-24.9.0.tgz#ad2de62d07472d419c6abc301fc432b98b10d2af" + integrity sha512-+VLRKyitT3BWoMeSUIHRxV/2g8y9gw91Jh5z2UmXZzkZKpbC08CSehVxgHUwTpy+HwGcns/tqafQDJW7imYvGg== + dependencies: + "@jest/core" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + chalk "^2.0.1" + exit "^0.1.2" + import-local "^2.0.0" + is-ci "^2.0.0" + jest-config "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" + prompts "^2.0.1" + realpath-native "^1.1.0" + yargs "^13.3.0" + +jest-config@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-24.9.0.tgz#fb1bbc60c73a46af03590719efa4825e6e4dd1b5" + integrity sha512-RATtQJtVYQrp7fvWg6f5y3pEFj9I+H8sWw4aKxnDZ96mob5i5SD6ZEGWgMLXQ4LE8UurrjbdlLWdUeo+28QpfQ== + dependencies: + "@babel/core" "^7.1.0" + "@jest/test-sequencer" "^24.9.0" + "@jest/types" "^24.9.0" + babel-jest "^24.9.0" + chalk "^2.0.1" + glob "^7.1.1" + jest-environment-jsdom "^24.9.0" + jest-environment-node "^24.9.0" + jest-get-type "^24.9.0" + jest-jasmine2 "^24.9.0" + jest-regex-util "^24.3.0" + jest-resolve "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" + micromatch "^3.1.10" + pretty-format "^24.9.0" + realpath-native "^1.1.0" + +jest-coverage-badges@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/jest-coverage-badges/-/jest-coverage-badges-1.1.2.tgz#a70786b139fd8fb685db732e1e2d916d8a47287e" + integrity sha512-44A7i2xR6os8+fWk8ZRM6W4fKiD2jwKOLU9eB3iTIIWACd9RbdvmiCNpQZTOsUBhKvz7aQ/ASFhu5JOEhWUOlg== + dependencies: + mkdirp "0.5.1" + +jest-diff@*: + version "26.0.1" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-26.0.1.tgz#c44ab3cdd5977d466de69c46929e0e57f89aa1de" + integrity sha512-odTcHyl5X+U+QsczJmOjWw5tPvww+y9Yim5xzqxVl/R1j4z71+fHW4g8qu1ugMmKdFdxw+AtQgs5mupPnzcIBQ== + dependencies: + chalk "^4.0.0" + diff-sequences "^26.0.0" + jest-get-type "^26.0.0" + pretty-format "^26.0.1" + +jest-diff@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-24.9.0.tgz#931b7d0d5778a1baf7452cb816e325e3724055da" + integrity sha512-qMfrTs8AdJE2iqrTp0hzh7kTd2PQWrsFyj9tORoKmu32xjPjeE4NyjVRDz8ybYwqS2ik8N4hsIpiVTyFeo2lBQ== + dependencies: + chalk "^2.0.1" + diff-sequences "^24.9.0" + jest-get-type "^24.9.0" + pretty-format "^24.9.0" + +jest-diff@^25.2.1: + version "25.5.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-25.5.0.tgz#1dd26ed64f96667c068cef026b677dfa01afcfa9" + integrity sha512-z1kygetuPiREYdNIumRpAHY6RXiGmp70YHptjdaxTWGmA085W3iCnXNx0DhflK3vwrKmrRWyY1wUpkPMVxMK7A== + dependencies: + chalk "^3.0.0" + diff-sequences "^25.2.6" + jest-get-type "^25.2.6" + pretty-format "^25.5.0" + +jest-docblock@^24.3.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-24.9.0.tgz#7970201802ba560e1c4092cc25cbedf5af5a8ce2" + integrity sha512-F1DjdpDMJMA1cN6He0FNYNZlo3yYmOtRUnktrT9Q37njYzC5WEaDdmbynIgy0L/IvXvvgsG8OsqhLPXTpfmZAA== + dependencies: + detect-newline "^2.1.0" + +jest-each@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-24.9.0.tgz#eb2da602e2a610898dbc5f1f6df3ba86b55f8b05" + integrity sha512-ONi0R4BvW45cw8s2Lrx8YgbeXL1oCQ/wIDwmsM3CqM/nlblNCPmnC3IPQlMbRFZu3wKdQ2U8BqM6lh3LJ5Bsog== + dependencies: + "@jest/types" "^24.9.0" + chalk "^2.0.1" + jest-get-type "^24.9.0" + jest-util "^24.9.0" + pretty-format "^24.9.0" + +jest-environment-jsdom@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-24.9.0.tgz#4b0806c7fc94f95edb369a69cc2778eec2b7375b" + integrity sha512-Zv9FV9NBRzLuALXjvRijO2351DRQeLYXtpD4xNvfoVFw21IOKNhZAEUKcbiEtjTkm2GsJ3boMVgkaR7rN8qetA== + dependencies: + "@jest/environment" "^24.9.0" + "@jest/fake-timers" "^24.9.0" + "@jest/types" "^24.9.0" + jest-mock "^24.9.0" + jest-util "^24.9.0" + jsdom "^11.5.1" + +jest-environment-node@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-24.9.0.tgz#333d2d2796f9687f2aeebf0742b519f33c1cbfd3" + integrity sha512-6d4V2f4nxzIzwendo27Tr0aFm+IXWa0XEUnaH6nU0FMaozxovt+sfRvh4J47wL1OvF83I3SSTu0XK+i4Bqe7uA== + dependencies: + "@jest/environment" "^24.9.0" + "@jest/fake-timers" "^24.9.0" + "@jest/types" "^24.9.0" + jest-mock "^24.9.0" + jest-util "^24.9.0" + +jest-get-type@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-24.9.0.tgz#1684a0c8a50f2e4901b6644ae861f579eed2ef0e" + integrity sha512-lUseMzAley4LhIcpSP9Jf+fTrQ4a1yHQwLNeeVa2cEmbCGeoZAtYPOIv8JaxLD/sUpKxetKGP+gsHl8f8TSj8Q== + +jest-get-type@^25.2.6: + version "25.2.6" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-25.2.6.tgz#0b0a32fab8908b44d508be81681487dbabb8d877" + integrity sha512-DxjtyzOHjObRM+sM1knti6or+eOgcGU4xVSb2HNP1TqO4ahsT+rqZg+nyqHWJSvWgKC5cG3QjGFBqxLghiF/Ig== + +jest-get-type@^26.0.0: + version "26.0.0" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-26.0.0.tgz#381e986a718998dbfafcd5ec05934be538db4039" + integrity sha512-zRc1OAPnnws1EVfykXOj19zo2EMw5Hi6HLbFCSjpuJiXtOWAYIjNsHVSbpQ8bDX7L5BGYGI8m+HmKdjHYFF0kg== + +jest-haste-map@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-24.9.0.tgz#b38a5d64274934e21fa417ae9a9fbeb77ceaac7d" + integrity sha512-kfVFmsuWui2Sj1Rp1AJ4D9HqJwE4uwTlS/vO+eRUaMmd54BFpli2XhMQnPC2k4cHFVbB2Q2C+jtI1AGLgEnCjQ== + dependencies: + "@jest/types" "^24.9.0" + anymatch "^2.0.0" + fb-watchman "^2.0.0" + graceful-fs "^4.1.15" + invariant "^2.2.4" + jest-serializer "^24.9.0" + jest-util "^24.9.0" + jest-worker "^24.9.0" + micromatch "^3.1.10" + sane "^4.0.3" + walker "^1.0.7" + optionalDependencies: + fsevents "^1.2.7" + +jest-jasmine2@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-24.9.0.tgz#1f7b1bd3242c1774e62acabb3646d96afc3be6a0" + integrity sha512-Cq7vkAgaYKp+PsX+2/JbTarrk0DmNhsEtqBXNwUHkdlbrTBLtMJINADf2mf5FkowNsq8evbPc07/qFO0AdKTzw== + dependencies: + "@babel/traverse" "^7.1.0" + "@jest/environment" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + chalk "^2.0.1" + co "^4.6.0" + expect "^24.9.0" + is-generator-fn "^2.0.0" + jest-each "^24.9.0" + jest-matcher-utils "^24.9.0" + jest-message-util "^24.9.0" + jest-runtime "^24.9.0" + jest-snapshot "^24.9.0" + jest-util "^24.9.0" + pretty-format "^24.9.0" + throat "^4.0.0" + +jest-junit@^6.4.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/jest-junit/-/jest-junit-6.4.0.tgz#23e15c979fa6338afde46f2d2ac2a6b7e8cf0d9e" + integrity sha512-GXEZA5WBeUich94BARoEUccJumhCgCerg7mXDFLxWwI2P7wL3Z7sGWk+53x343YdBLjiMR9aD/gYMVKO+0pE4Q== + dependencies: + jest-validate "^24.0.0" + mkdirp "^0.5.1" + strip-ansi "^4.0.0" + xml "^1.0.1" + +jest-leak-detector@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-24.9.0.tgz#b665dea7c77100c5c4f7dfcb153b65cf07dcf96a" + integrity sha512-tYkFIDsiKTGwb2FG1w8hX9V0aUb2ot8zY/2nFg087dUageonw1zrLMP4W6zsRO59dPkTSKie+D4rhMuP9nRmrA== + dependencies: + jest-get-type "^24.9.0" + pretty-format "^24.9.0" + +jest-matcher-utils@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-24.9.0.tgz#f5b3661d5e628dffe6dd65251dfdae0e87c3a073" + integrity sha512-OZz2IXsu6eaiMAwe67c1T+5tUAtQyQx27/EMEkbFAGiw52tB9em+uGbzpcgYVpA8wl0hlxKPZxrly4CXU/GjHA== + dependencies: + chalk "^2.0.1" + jest-diff "^24.9.0" + jest-get-type "^24.9.0" + pretty-format "^24.9.0" + +jest-message-util@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-24.9.0.tgz#527f54a1e380f5e202a8d1149b0ec872f43119e3" + integrity sha512-oCj8FiZ3U0hTP4aSui87P4L4jC37BtQwUMqk+zk/b11FR19BJDeZsZAvIHutWnmtw7r85UmR3CEWZ0HWU2mAlw== + dependencies: + "@babel/code-frame" "^7.0.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + "@types/stack-utils" "^1.0.1" + chalk "^2.0.1" + micromatch "^3.1.10" + slash "^2.0.0" + stack-utils "^1.0.1" + +jest-mock@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-24.9.0.tgz#c22835541ee379b908673ad51087a2185c13f1c6" + integrity sha512-3BEYN5WbSq9wd+SyLDES7AHnjH9A/ROBwmz7l2y+ol+NtSFO8DYiEBzoO1CeFc9a8DYy10EO4dDFVv/wN3zl1w== + dependencies: + "@jest/types" "^24.9.0" + +jest-pnp-resolver@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.1.tgz#ecdae604c077a7fbc70defb6d517c3c1c898923a" + integrity sha512-pgFw2tm54fzgYvc/OHrnysABEObZCUNFnhjoRjaVOCN8NYc032/gVjPaHD4Aq6ApkSieWtfKAFQtmDKAmhupnQ== + +jest-regex-util@^24.3.0, jest-regex-util@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-24.9.0.tgz#c13fb3380bde22bf6575432c493ea8fe37965636" + integrity sha512-05Cmb6CuxaA+Ys6fjr3PhvV3bGQmO+2p2La4hFbU+W5uOc479f7FdLXUWXw4pYMAhhSZIuKHwSXSu6CsSBAXQA== + +jest-resolve-dependencies@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-24.9.0.tgz#ad055198959c4cfba8a4f066c673a3f0786507ab" + integrity sha512-Fm7b6AlWnYhT0BXy4hXpactHIqER7erNgIsIozDXWl5dVm+k8XdGVe1oTg1JyaFnOxarMEbax3wyRJqGP2Pq+g== + dependencies: + "@jest/types" "^24.9.0" + jest-regex-util "^24.3.0" + jest-snapshot "^24.9.0" + +jest-resolve@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-24.9.0.tgz#dff04c7687af34c4dd7e524892d9cf77e5d17321" + integrity sha512-TaLeLVL1l08YFZAt3zaPtjiVvyy4oSA6CRe+0AFPPVX3Q/VI0giIWWoAvoS5L96vj9Dqxj4fB5p2qrHCmTU/MQ== + dependencies: + "@jest/types" "^24.9.0" + browser-resolve "^1.11.3" + chalk "^2.0.1" + jest-pnp-resolver "^1.2.1" + realpath-native "^1.1.0" + +jest-runner@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-24.9.0.tgz#574fafdbd54455c2b34b4bdf4365a23857fcdf42" + integrity sha512-KksJQyI3/0mhcfspnxxEOBueGrd5E4vV7ADQLT9ESaCzz02WnbdbKWIf5Mkaucoaj7obQckYPVX6JJhgUcoWWg== + dependencies: + "@jest/console" "^24.7.1" + "@jest/environment" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + chalk "^2.4.2" + exit "^0.1.2" + graceful-fs "^4.1.15" + jest-config "^24.9.0" + jest-docblock "^24.3.0" + jest-haste-map "^24.9.0" + jest-jasmine2 "^24.9.0" + jest-leak-detector "^24.9.0" + jest-message-util "^24.9.0" + jest-resolve "^24.9.0" + jest-runtime "^24.9.0" + jest-util "^24.9.0" + jest-worker "^24.6.0" + source-map-support "^0.5.6" + throat "^4.0.0" + +jest-runtime@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-24.9.0.tgz#9f14583af6a4f7314a6a9d9f0226e1a781c8e4ac" + integrity sha512-8oNqgnmF3v2J6PVRM2Jfuj8oX3syKmaynlDMMKQ4iyzbQzIG6th5ub/lM2bCMTmoTKM3ykcUYI2Pw9xwNtjMnw== + dependencies: + "@jest/console" "^24.7.1" + "@jest/environment" "^24.9.0" + "@jest/source-map" "^24.3.0" + "@jest/transform" "^24.9.0" + "@jest/types" "^24.9.0" + "@types/yargs" "^13.0.0" + chalk "^2.0.1" + exit "^0.1.2" + glob "^7.1.3" + graceful-fs "^4.1.15" + jest-config "^24.9.0" + jest-haste-map "^24.9.0" + jest-message-util "^24.9.0" + jest-mock "^24.9.0" + jest-regex-util "^24.3.0" + jest-resolve "^24.9.0" + jest-snapshot "^24.9.0" + jest-util "^24.9.0" + jest-validate "^24.9.0" + realpath-native "^1.1.0" + slash "^2.0.0" + strip-bom "^3.0.0" + yargs "^13.3.0" + +jest-serializer@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-24.9.0.tgz#e6d7d7ef96d31e8b9079a714754c5d5c58288e73" + integrity sha512-DxYipDr8OvfrKH3Kel6NdED3OXxjvxXZ1uIY2I9OFbGg+vUkkg7AGvi65qbhbWNPvDckXmzMPbK3u3HaDO49bQ== + +jest-snapshot@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-24.9.0.tgz#ec8e9ca4f2ec0c5c87ae8f925cf97497b0e951ba" + integrity sha512-uI/rszGSs73xCM0l+up7O7a40o90cnrk429LOiK3aeTvfC0HHmldbd81/B7Ix81KSFe1lwkbl7GnBGG4UfuDew== + dependencies: + "@babel/types" "^7.0.0" + "@jest/types" "^24.9.0" + chalk "^2.0.1" + expect "^24.9.0" + jest-diff "^24.9.0" + jest-get-type "^24.9.0" + jest-matcher-utils "^24.9.0" + jest-message-util "^24.9.0" + jest-resolve "^24.9.0" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + pretty-format "^24.9.0" + semver "^6.2.0" + +jest-util@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-24.9.0.tgz#7396814e48536d2e85a37de3e4c431d7cb140162" + integrity sha512-x+cZU8VRmOJxbA1K5oDBdxQmdq0OIdADarLxk0Mq+3XS4jgvhG/oKGWcIDCtPG0HgjxOYvF+ilPJQsAyXfbNOg== + dependencies: + "@jest/console" "^24.9.0" + "@jest/fake-timers" "^24.9.0" + "@jest/source-map" "^24.9.0" + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + callsites "^3.0.0" + chalk "^2.0.1" + graceful-fs "^4.1.15" + is-ci "^2.0.0" + mkdirp "^0.5.1" + slash "^2.0.0" + source-map "^0.6.0" + +jest-validate@^24.0.0, jest-validate@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-24.9.0.tgz#0775c55360d173cd854e40180756d4ff52def8ab" + integrity sha512-HPIt6C5ACwiqSiwi+OfSSHbK8sG7akG8eATl+IPKaeIjtPOeBUd/g3J7DghugzxrGjI93qS/+RPKe1H6PqvhRQ== + dependencies: + "@jest/types" "^24.9.0" + camelcase "^5.3.1" + chalk "^2.0.1" + jest-get-type "^24.9.0" + leven "^3.1.0" + pretty-format "^24.9.0" + +jest-watcher@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-24.9.0.tgz#4b56e5d1ceff005f5b88e528dc9afc8dd4ed2b3b" + integrity sha512-+/fLOfKPXXYJDYlks62/4R4GoT+GU1tYZed99JSCOsmzkkF7727RqKrjNAxtfO4YpGv11wybgRvCjR73lK2GZw== + dependencies: + "@jest/test-result" "^24.9.0" + "@jest/types" "^24.9.0" + "@types/yargs" "^13.0.0" + ansi-escapes "^3.0.0" + chalk "^2.0.1" + jest-util "^24.9.0" + string-length "^2.0.0" + +jest-worker@^24.6.0, jest-worker@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-24.9.0.tgz#5dbfdb5b2d322e98567898238a9697bcce67b3e5" + integrity sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw== + dependencies: + merge-stream "^2.0.0" + supports-color "^6.1.0" + +jest-worker@^25.4.0: + version "25.5.0" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-25.5.0.tgz#2611d071b79cea0f43ee57a3d118593ac1547db1" + integrity sha512-/dsSmUkIy5EBGfv/IjjqmFxrNAUpBERfGs1oHROyD7yxjG/w+t0GOJDX8O1k32ySmd7+a5IhnJU2qQFcJ4n1vw== + dependencies: + merge-stream "^2.0.0" + supports-color "^7.0.0" + +jest@24.8.0: + version "24.8.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-24.8.0.tgz#d5dff1984d0d1002196e9b7f12f75af1b2809081" + integrity sha512-o0HM90RKFRNWmAWvlyV8i5jGZ97pFwkeVoGvPW1EtLTgJc2+jcuqcbbqcSZLE/3f2S5pt0y2ZBETuhpWNl1Reg== + dependencies: + import-local "^2.0.0" + jest-cli "^24.8.0" + +jquery.flot@^0.8.3: + version "0.8.3" + resolved "https://registry.yarnpkg.com/jquery.flot/-/jquery.flot-0.8.3.tgz#81d2ec4ffdf0dee729c8a442e8faa399e9b48207" + integrity sha512-/tEE8J5NjwvStHDaCHkvTJpD7wDS4hE1OEL8xEmhgQfUe0gLUem923PIceNez1mz4yBNx6Hjv7pJcowLNd+nbg== + +jquery@3.4.1: + version "3.4.1" + resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.4.1.tgz#714f1f8d9dde4bdfa55764ba37ef214630d80ef2" + integrity sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw== + +jquery@^3.4.1: + version "3.5.1" + resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.5.1.tgz#d7b4d08e1bfdb86ad2f1a3d039ea17304717abb5" + integrity sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg== + +js-base64@^2.1.8: + version "2.5.2" + resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.5.2.tgz#313b6274dda718f714d00b3330bbae6e38e90209" + integrity sha512-Vg8czh0Q7sFBSUMWWArX/miJeBWYBPpdU/3M/DKSaekLMqrqVPaedp+5mZhie/r0lgrcaYBfwXatEew6gwgiQQ== + +"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +js-tokens@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b" + integrity sha1-mGbfOVECEw449/mWvOtlRDIJwls= + +js-yaml@^3.13.1: + version "3.13.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" + integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= + +jsdoctypeparser@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/jsdoctypeparser/-/jsdoctypeparser-6.1.0.tgz#acfb936c26300d98f1405cb03e20b06748e512a8" + integrity sha512-UCQBZ3xCUBv/PLfwKAJhp6jmGOSLFNKzrotXGNgbKhWvz27wPsCsVeP7gIcHPElQw2agBmynAitXqhxR58XAmA== + +jsdom@^11.5.1: + version "11.12.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-11.12.0.tgz#1a80d40ddd378a1de59656e9e6dc5a3ba8657bc8" + integrity sha512-y8Px43oyiBM13Zc1z780FrfNLJCXTL40EWlty/LXUtcjykRBNgLlCjWXpfSPBl2iv+N7koQN+dvqszHZgT/Fjw== + dependencies: + abab "^2.0.0" + acorn "^5.5.3" + acorn-globals "^4.1.0" + array-equal "^1.0.0" + cssom ">= 0.3.2 < 0.4.0" + cssstyle "^1.0.0" + data-urls "^1.0.0" + domexception "^1.0.1" + escodegen "^1.9.1" + html-encoding-sniffer "^1.0.2" + left-pad "^1.3.0" + nwsapi "^2.0.7" + parse5 "4.0.0" + pn "^1.1.0" + request "^2.87.0" + request-promise-native "^1.0.5" + sax "^1.2.4" + symbol-tree "^3.2.2" + tough-cookie "^2.3.4" + w3c-hr-time "^1.0.1" + webidl-conversions "^4.0.2" + whatwg-encoding "^1.0.3" + whatwg-mimetype "^2.1.0" + whatwg-url "^6.4.1" + ws "^5.2.0" + xml-name-validator "^3.0.0" + +jsesc@^2.5.1: + version "2.5.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" + integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== + +jsesc@~0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" + integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0= + +json-bignum@^0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/json-bignum/-/json-bignum-0.0.3.tgz#41163b50436c773d82424dbc20ed70db7604b8d7" + integrity sha1-QRY7UENsdz2CQk28IO1w23YEuNc= + +json-parse-better-errors@^1.0.1, json-parse-better-errors@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" + integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-schema@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" + integrity sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM= + +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= + +json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= + +json2module@^0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/json2module/-/json2module-0.0.3.tgz#00fb5f4a9b7adfc3f0647c29cb17bcd1979be9b2" + integrity sha1-APtfSpt638PwZHwpyxe80Zeb6bI= + dependencies: + rw "^1.3.2" + +json5@2.x, json5@^2.1.2: + version "2.1.3" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.1.3.tgz#c9b0f7fa9233bfe5807fe66fcf3a5617ed597d43" + integrity sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA== + dependencies: + minimist "^1.2.5" + +json5@^0.5.0: + version "0.5.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" + integrity sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE= + +json5@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" + integrity sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow== + dependencies: + minimist "^1.2.0" + +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" + integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss= + optionalDependencies: + graceful-fs "^4.1.6" + +jsprim@^1.2.2: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" + integrity sha1-MT5mvB5cwG5Di8G3SZwuXFastqI= + dependencies: + assert-plus "1.0.0" + extsprintf "1.3.0" + json-schema "0.2.3" + verror "1.10.0" + +kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" + integrity sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ= + dependencies: + is-buffer "^1.1.5" + +kind-of@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" + integrity sha1-IIE989cSkosgc3hpGkUGb65y3Vc= + dependencies: + is-buffer "^1.1.5" + +kind-of@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-5.1.0.tgz#729c91e2d857b7a419a1f9aa65685c4c33f5845d" + integrity sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw== + +kind-of@^6.0.0, kind-of@^6.0.2: + version "6.0.3" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" + integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== + +kleur@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" + integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== + +last-call-webpack-plugin@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/last-call-webpack-plugin/-/last-call-webpack-plugin-3.0.0.tgz#9742df0e10e3cf46e5c0381c2de90d3a7a2d7555" + integrity sha512-7KI2l2GIZa9p2spzPIVZBYyNKkN+e/SQPpnjlTiPhdbDW3F86tdKKELxKpzJ5sgU19wQWsACULZmpTPYHeWO5w== + dependencies: + lodash "^4.17.5" + webpack-sources "^1.1.0" + +lazy-cache@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" + integrity sha1-odePw6UEdMuAhF07O24dpJpEbo4= + +lcid@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-2.0.0.tgz#6ef5d2df60e52f82eb228a4c373e8d1f397253cf" + integrity sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA== + dependencies: + invert-kv "^2.0.0" + +left-pad@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e" + integrity sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA== + +less-loader@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/less-loader/-/less-loader-5.0.0.tgz#498dde3a6c6c4f887458ee9ed3f086a12ad1b466" + integrity sha512-bquCU89mO/yWLaUq0Clk7qCsKhsF/TZpJUzETRvJa9KSVEL9SO3ovCvdEHISBhrC81OwC8QSVX7E0bzElZj9cg== + dependencies: + clone "^2.1.1" + loader-utils "^1.1.0" + pify "^4.0.1" + +less@^3.11.1: + version "3.11.1" + resolved "https://registry.yarnpkg.com/less/-/less-3.11.1.tgz#c6bf08e39e02404fe6b307a3dfffafdc55bd36e2" + integrity sha512-tlWX341RECuTOvoDIvtFqXsKj072hm3+9ymRBe76/mD6O5ZZecnlAOVDlWAleF2+aohFrxNidXhv2773f6kY7g== + dependencies: + clone "^2.1.2" + tslib "^1.10.0" + optionalDependencies: + errno "^0.1.1" + graceful-fs "^4.1.2" + image-size "~0.5.0" + mime "^1.4.1" + mkdirp "^0.5.0" + promise "^7.1.1" + request "^2.83.0" + source-map "~0.6.0" + +leven@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" + integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== + +levenary@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/levenary/-/levenary-1.1.1.tgz#842a9ee98d2075aa7faeedbe32679e9205f46f77" + integrity sha512-mkAdOIt79FD6irqjYSs4rdbnlT5vRonMEvBVPVb3XmevfS8kgRXwfes0dhPdEtzTWD/1eNE/Bm/G1iRt6DcnQQ== + dependencies: + leven "^3.1.0" + +levn@^0.3.0, levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +lines-and-columns@^1.1.6: + version "1.1.6" + resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" + integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= + +load-json-file@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" + integrity sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA= + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + pinkie-promise "^2.0.0" + strip-bom "^2.0.0" + +load-json-file@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b" + integrity sha1-L19Fq5HjMhYjT9U62rZo607AmTs= + dependencies: + graceful-fs "^4.1.2" + parse-json "^4.0.0" + pify "^3.0.0" + strip-bom "^3.0.0" + +loader-runner@^2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357" + integrity sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw== + +loader-utils@1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.2.3.tgz#1ff5dc6911c9f0a062531a4c04b609406108c2c7" + integrity sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA== + dependencies: + big.js "^5.2.2" + emojis-list "^2.0.0" + json5 "^1.0.1" + +loader-utils@^0.2.16: + version "0.2.17" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-0.2.17.tgz#f86e6374d43205a6e6c60e9196f17c0299bfb348" + integrity sha1-+G5jdNQyBabmxg6RlvF8Apm/s0g= + dependencies: + big.js "^3.1.3" + emojis-list "^2.0.0" + json5 "^0.5.0" + object-assign "^4.0.1" + +loader-utils@^1.0.1, loader-utils@^1.0.2, loader-utils@^1.1.0, loader-utils@^1.2.3, loader-utils@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.4.0.tgz#c579b5e34cb34b1a74edc6c1fb36bfa371d5a613" + integrity sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA== + dependencies: + big.js "^5.2.2" + emojis-list "^3.0.0" + json5 "^1.0.1" + +locate-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" + integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4= + dependencies: + p-locate "^2.0.0" + path-exists "^3.0.0" + +locate-path@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" + integrity sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A== + dependencies: + p-locate "^3.0.0" + path-exists "^3.0.0" + +locate-path@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" + integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== + dependencies: + p-locate "^4.1.0" + +lodash._reinterpolate@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" + integrity sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0= + +lodash.camelcase@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" + integrity sha1-soqmKIorn8ZRA1x3EfZathkDMaY= + +lodash.debounce@^4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" + integrity sha1-gteb/zCmfEAF/9XiUVMArZyk168= + +lodash.memoize@4.x, lodash.memoize@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" + integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= + +lodash.once@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" + integrity sha1-DdOXEhPHxW34gJd9UEyI+0cal6w= + +lodash.padend@^4.6.1: + version "4.6.1" + resolved "https://registry.yarnpkg.com/lodash.padend/-/lodash.padend-4.6.1.tgz#53ccba047d06e158d311f45da625f4e49e6f166e" + integrity sha1-U8y6BH0G4VjTEfRdpiX05J5vFm4= + +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" + integrity sha1-7dFMgk4sycHgsKG0K7UhBRakJDg= + +lodash.tail@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/lodash.tail/-/lodash.tail-4.1.1.tgz#d2333a36d9e7717c8ad2f7cacafec7c32b444664" + integrity sha1-0jM6NtnncXyK0vfKyv7HwytERmQ= + +lodash.template@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab" + integrity sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A== + dependencies: + lodash._reinterpolate "^3.0.0" + lodash.templatesettings "^4.0.0" + +lodash.templatesettings@^4.0.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz#e481310f049d3cf6d47e912ad09313b154f0fb33" + integrity sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ== + dependencies: + lodash._reinterpolate "^3.0.0" + +lodash.uniq@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" + integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= + +lodash@4.17.15, lodash@^4.0.0, lodash@^4.0.1, lodash@^4.1.1, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.17.5, lodash@~4.17.12: + version "4.17.15" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" + integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== + +log-symbols@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-3.0.0.tgz#f3a08516a5dea893336a7dee14d18a1cfdab77c4" + integrity sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ== + dependencies: + chalk "^2.4.2" + +longest@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" + integrity sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc= + +loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" + integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== + dependencies: + js-tokens "^3.0.0 || ^4.0.0" + +loud-rejection@^1.0.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f" + integrity sha1-W0b4AUft7leIcPCG0Eghz5mOVR8= + dependencies: + currently-unhandled "^0.4.1" + signal-exit "^3.0.0" + +lower-case@^1.1.1: + version "1.1.4" + resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-1.1.4.tgz#9a2cabd1b9e8e0ae993a4bf7d5875c39c42e8eac" + integrity sha1-miyr0bno4K6ZOkv31YdcOcQujqw= + +lru-cache@^4.0.1: + version "4.1.5" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" + integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== + dependencies: + pseudomap "^1.0.2" + yallist "^2.1.2" + +lru-cache@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== + dependencies: + yallist "^3.0.2" + +make-dir@^2.0.0, make-dir@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" + integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA== + dependencies: + pify "^4.0.1" + semver "^5.6.0" + +make-dir@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" + integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== + dependencies: + semver "^6.0.0" + +make-error@1.x, make-error@^1.1.1: + version "1.3.6" + resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" + integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== + +makeerror@1.0.x: + version "1.0.11" + resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" + integrity sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw= + dependencies: + tmpl "1.0.x" + +mamacro@^0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/mamacro/-/mamacro-0.0.3.tgz#ad2c9576197c9f1abf308d0787865bd975a3f3e4" + integrity sha512-qMEwh+UujcQ+kbz3T6V+wAmO2U8veoq2w+3wY8MquqwVA3jChfwY+Tk52GZKDfACEPjuZ7r2oJLejwpt8jtwTA== + +map-age-cleaner@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz#7d583a7306434c055fe474b0f45078e6e1b4b92a" + integrity sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w== + dependencies: + p-defer "^1.0.0" + +map-cache@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" + integrity sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8= + +map-obj@^1.0.0, map-obj@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" + integrity sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0= + +map-or-similar@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/map-or-similar/-/map-or-similar-1.5.0.tgz#6de2653174adfb5d9edc33c69d3e92a1b76faf08" + integrity sha1-beJlMXSt+12e3DPGnT6Sobdvrwg= + +map-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" + integrity sha1-7Nyo8TFE5mDxtb1B8S80edmN+48= + dependencies: + object-visit "^1.0.0" + +material-colors@^1.2.1: + version "1.2.6" + resolved "https://registry.yarnpkg.com/material-colors/-/material-colors-1.2.6.tgz#6d1958871126992ceecc72f4bcc4d8f010865f46" + integrity sha512-6qE4B9deFBIa9YSpOc9O0Sgc43zTeVYbgDT5veRKSlB2+ZuHNoVVxA1L/ckMUayV9Ay9y7Z/SZCLcGteW9i7bg== + +md5-file@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/md5-file/-/md5-file-4.0.0.tgz#f3f7ba1e2dd1144d5bf1de698d0e5f44a4409584" + integrity sha512-UC0qFwyAjn4YdPpKaDNw6gNxRf7Mcx7jC1UGCY4boCzgvU2Aoc1mOGzTtrjjLKhM5ivsnhoKpQVxKPp+1j1qwg== + +md5.js@^1.3.4: + version "1.3.5" + resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f" + integrity sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg== + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + safe-buffer "^5.1.2" + +mdn-data@2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.4.tgz#699b3c38ac6f1d728091a64650b65d388502fd5b" + integrity sha512-iV3XNKw06j5Q7mi6h+9vbx23Tv7JkjEVgKHW4pimwyDGWm0OIQntJJ+u1C6mg6mK1EaTv42XQ7w76yuzH7M2cA== + +mdn-data@2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.6.tgz#852dc60fcaa5daa2e8cf6c9189c440ed3e042978" + integrity sha512-rQvjv71olwNHgiTbfPZFkJtjNMciWgswYeciZhtvWLO8bmX3TnhyA62I6sTWOyZssWHJJjY6/KiWwqQsWWsqOA== + +mem@^4.0.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/mem/-/mem-4.3.0.tgz#461af497bc4ae09608cdb2e60eefb69bff744178" + integrity sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w== + dependencies: + map-age-cleaner "^0.1.1" + mimic-fn "^2.0.0" + p-is-promise "^2.0.0" + +memoize-one@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-4.1.0.tgz#a2387c58c03fff27ca390c31b764a79addf3f906" + integrity sha512-2GApq0yI/b22J2j9rhbrAlsHb0Qcz+7yWxeLG8h+95sl1XPUgeLimQSOdur4Vw7cUhrBHwaUZxWFZueojqNRzA== + +memoize-one@^5.0.0, memoize-one@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-5.1.1.tgz#047b6e3199b508eaec03504de71229b8eb1d75c0" + integrity sha512-HKeeBpWvqiVJD57ZUAsJNm71eHTykffzcLZVYWiVfQeI1rJtuEaS7hQiEpWfVVk18donPwJEcFKIkCmPJNOhHA== + +memoizerific@^1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/memoizerific/-/memoizerific-1.11.3.tgz#7c87a4646444c32d75438570905f2dbd1b1a805a" + integrity sha1-fIekZGREwy11Q4VwkF8tvRsagFo= + dependencies: + map-or-similar "^1.5.0" + +memory-fs@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" + integrity sha1-OpoguEYlI+RHz7x+i7gO1me/xVI= + dependencies: + errno "^0.1.3" + readable-stream "^2.0.1" + +memory-fs@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.5.0.tgz#324c01288b88652966d161db77838720845a8e3c" + integrity sha512-jA0rdU5KoQMC0e6ppoNRtpp6vjFq6+NY7r8hywnC7V+1Xj/MtHwGIbB1QaK/dunyjWteJzmkpd7ooeWg10T7GA== + dependencies: + errno "^0.1.3" + readable-stream "^2.0.1" + +meow@^3.7.0: + version "3.7.0" + resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" + integrity sha1-cstmi0JSKCkKu/qFaJJYcwioAfs= + dependencies: + camelcase-keys "^2.0.0" + decamelize "^1.1.2" + loud-rejection "^1.0.0" + map-obj "^1.0.1" + minimist "^1.1.3" + normalize-package-data "^2.3.4" + object-assign "^4.0.1" + read-pkg-up "^1.0.1" + redent "^1.0.0" + trim-newlines "^1.0.0" + +merge-class-names@^1.1.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/merge-class-names/-/merge-class-names-1.3.0.tgz#c4cdc1a981a81dd9afc27aa4287e912a337c5dee" + integrity sha512-k0Qaj36VBpKgdc8c188LEZvo6v/zzry/FUufwopWbMSp6/knfVFU/KIB55/hJjeIpg18IH2WskXJCRnM/1BrdQ== + +merge-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" + integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== + +merge2@^1.2.3, merge2@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.3.0.tgz#5b366ee83b2f1582c48f87e47cf1a9352103ca81" + integrity sha512-2j4DAdlBOkiSZIsaXk4mTE3sRS02yBHAtfy127xRV3bQUFqXkjHCHLW6Scv7DwNRbIWNHH8zpnz9zMaKXIdvYw== + +microevent.ts@~0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/microevent.ts/-/microevent.ts-0.1.1.tgz#70b09b83f43df5172d0205a63025bce0f7357fa0" + integrity sha512-jo1OfR4TaEwd5HOrt5+tAZ9mqT4jmpNAusXtyfNzqVm9uiSYFZlKM1wYL4oU7azZW/PxQW53wM0S6OR1JHNa2g== + +micromatch@^3.1.10, micromatch@^3.1.4: + version "3.1.10" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" + integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + braces "^2.3.1" + define-property "^2.0.2" + extend-shallow "^3.0.2" + extglob "^2.0.4" + fragment-cache "^0.2.1" + kind-of "^6.0.2" + nanomatch "^1.2.9" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.2" + +micromatch@^4.0.0, micromatch@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.2.tgz#4fcb0999bf9fbc2fcbdd212f6d629b9a56c39259" + integrity sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q== + dependencies: + braces "^3.0.1" + picomatch "^2.0.5" + +miller-rabin@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/miller-rabin/-/miller-rabin-4.0.1.tgz#f080351c865b0dc562a8462966daa53543c78a4d" + integrity sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA== + dependencies: + bn.js "^4.0.0" + brorand "^1.0.1" + +mime-db@1.44.0: + version "1.44.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.44.0.tgz#fa11c5eb0aca1334b4233cb4d52f10c5a6272f92" + integrity sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg== + +mime-types@^2.1.12, mime-types@~2.1.19: + version "2.1.27" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.27.tgz#47949f98e279ea53119f5722e0f34e529bec009f" + integrity sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w== + dependencies: + mime-db "1.44.0" + +mime@^1.4.1: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +mime@^2.0.3, mime@^2.4.4: + version "2.4.5" + resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.5.tgz#d8de2ecb92982dedbb6541c9b6841d7f218ea009" + integrity sha512-3hQhEUF027BuxZjQA3s7rIv/7VCQPa27hN9u9g87sEkWaKwQPuXOkVKtOeiyUrnWqTDiOs8Ed2rwg733mB0R5w== + +mimic-fn@^1.0.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" + integrity sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ== + +mimic-fn@^2.0.0, mimic-fn@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + +mini-css-extract-plugin@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-0.7.0.tgz#5ba8290fbb4179a43dd27cca444ba150bee743a0" + integrity sha512-RQIw6+7utTYn8DBGsf/LpRgZCJMpZt+kuawJ/fju0KiOL6nAaTBNmCJwS7HtwSCXfS47gCkmtBFS7HdsquhdxQ== + dependencies: + loader-utils "^1.1.0" + normalize-url "1.9.1" + schema-utils "^1.0.0" + webpack-sources "^1.1.0" + +minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== + +minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" + integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo= + +minimatch@3.0.4, minimatch@^3.0.4, minimatch@~3.0.2: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== + dependencies: + brace-expansion "^1.1.7" + +minimist@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= + +minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0, minimist@^1.2.5, minimist@~1.2.0: + version "1.2.5" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" + integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== + +minipass-collect@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/minipass-collect/-/minipass-collect-1.0.2.tgz#22b813bf745dc6edba2576b940022ad6edc8c617" + integrity sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA== + dependencies: + minipass "^3.0.0" + +minipass-flush@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/minipass-flush/-/minipass-flush-1.0.5.tgz#82e7135d7e89a50ffe64610a787953c4c4cbb373" + integrity sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw== + dependencies: + minipass "^3.0.0" + +minipass-pipeline@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/minipass-pipeline/-/minipass-pipeline-1.2.3.tgz#55f7839307d74859d6e8ada9c3ebe72cec216a34" + integrity sha512-cFOknTvng5vqnwOpDsZTWhNll6Jf8o2x+/diplafmxpuIymAjzoOolZG0VvQf3V2HgqzJNhnuKHYp2BqDgz8IQ== + dependencies: + minipass "^3.0.0" + +minipass@^3.0.0, minipass@^3.1.1: + version "3.1.3" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.1.3.tgz#7d42ff1f39635482e15f9cdb53184deebd5815fd" + integrity sha512-Mgd2GdMVzY+x3IJ+oHnVM+KG3lA5c8tnabyJKmHSaG2kAGpudxuOf8ToDkhumF7UzME7DecbQE9uOZhNm7PuJg== + dependencies: + yallist "^4.0.0" + +mississippi@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/mississippi/-/mississippi-3.0.0.tgz#ea0a3291f97e0b5e8776b363d5f0a12d94c67022" + integrity sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA== + dependencies: + concat-stream "^1.5.0" + duplexify "^3.4.2" + end-of-stream "^1.1.0" + flush-write-stream "^1.0.0" + from2 "^2.1.0" + parallel-transform "^1.1.0" + pump "^3.0.0" + pumpify "^1.3.3" + stream-each "^1.1.0" + through2 "^2.0.0" + +mixin-deep@^1.2.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" + integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== + dependencies: + for-in "^1.0.2" + is-extendable "^1.0.1" + +mixin-object@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/mixin-object/-/mixin-object-2.0.1.tgz#4fb949441dab182540f1fe035ba60e1947a5e57e" + integrity sha1-T7lJRB2rGCVA8f4DW6YOGUel5X4= + dependencies: + for-in "^0.1.3" + is-extendable "^0.1.1" + +mkdirp@0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= + dependencies: + minimist "0.0.8" + +mkdirp@0.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@^0.5.3, mkdirp@^0.5.4, mkdirp@~0.5.1: + version "0.5.5" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" + integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== + dependencies: + minimist "^1.2.5" + +moment@2.24.0: + version "2.24.0" + resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b" + integrity sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg== + +moment@2.x: + version "2.25.3" + resolved "https://registry.yarnpkg.com/moment/-/moment-2.25.3.tgz#252ff41319cf41e47761a1a88cab30edfe9808c0" + integrity sha512-PuYv0PHxZvzc15Sp8ybUCoQ+xpyPWvjOuK72a5ovzp2LI32rJXOiIfyoFoYvG3s6EwwrdkMyWuRiEHSZRLJNdg== + +move-concurrently@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/move-concurrently/-/move-concurrently-1.0.1.tgz#be2c005fda32e0b29af1f05d7c4b33214c701f92" + integrity sha1-viwAX9oy4LKa8fBdfEszIUxwH5I= + dependencies: + aproba "^1.1.1" + copy-concurrently "^1.0.0" + fs-write-stream-atomic "^1.0.8" + mkdirp "^0.5.1" + rimraf "^2.5.4" + run-queue "^1.0.3" + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= + +ms@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + +mute-stream@0.0.7: + version "0.0.7" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" + integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= + +mute-stream@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" + integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== + +nan@^2.12.1, nan@^2.13.2: + version "2.14.1" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.1.tgz#d7be34dfa3105b91494c3147089315eff8874b01" + integrity sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw== + +nanomatch@^1.2.9: + version "1.2.13" + resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" + integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + define-property "^2.0.2" + extend-shallow "^3.0.2" + fragment-cache "^0.2.1" + is-windows "^1.0.2" + kind-of "^6.0.2" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= + +neo-async@^2.5.0, neo-async@^2.6.1: + version "2.6.1" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz#ac27ada66167fa8849a6addd837f6b189ad2081c" + integrity sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw== + +nice-try@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" + integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== + +no-case@^2.2.0: + version "2.3.2" + resolved "https://registry.yarnpkg.com/no-case/-/no-case-2.3.2.tgz#60b813396be39b3f1288a4c1ed5d1e7d28b464ac" + integrity sha512-rmTZ9kz+f3rCvK2TD1Ue/oZlns7OGoIWP4fc3llxxRXlOkHKoWPPWJOfFYpITabSow43QJbRIoHQXtt10VldyQ== + dependencies: + lower-case "^1.1.1" + +node-fetch@^1.0.1: + version "1.7.3" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef" + integrity sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ== + dependencies: + encoding "^0.1.11" + is-stream "^1.0.1" + +node-gyp@^3.8.0: + version "3.8.0" + resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-3.8.0.tgz#540304261c330e80d0d5edce253a68cb3964218c" + integrity sha512-3g8lYefrRRzvGeSowdJKAKyks8oUpLEd/DyPV4eMhVlhJ0aNaZqIrNUIPuEWWTAoPqyFkfGrM67MC69baqn6vA== + dependencies: + fstream "^1.0.0" + glob "^7.0.3" + graceful-fs "^4.1.2" + mkdirp "^0.5.0" + nopt "2 || 3" + npmlog "0 || 1 || 2 || 3 || 4" + osenv "0" + request "^2.87.0" + rimraf "2" + semver "~5.3.0" + tar "^2.0.0" + which "1" + +node-int64@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" + integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= + +node-libs-browser@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.2.1.tgz#b64f513d18338625f90346d27b0d235e631f6425" + integrity sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q== + dependencies: + assert "^1.1.1" + browserify-zlib "^0.2.0" + buffer "^4.3.0" + console-browserify "^1.1.0" + constants-browserify "^1.0.0" + crypto-browserify "^3.11.0" + domain-browser "^1.1.1" + events "^3.0.0" + https-browserify "^1.0.0" + os-browserify "^0.3.0" + path-browserify "0.0.1" + process "^0.11.10" + punycode "^1.2.4" + querystring-es3 "^0.2.0" + readable-stream "^2.3.3" + stream-browserify "^2.0.1" + stream-http "^2.7.2" + string_decoder "^1.0.0" + timers-browserify "^2.0.4" + tty-browserify "0.0.0" + url "^0.11.0" + util "^0.11.0" + vm-browserify "^1.0.1" + +node-modules-regexp@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz#8d9dbe28964a4ac5712e9131642107c71e90ec40" + integrity sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA= + +node-notifier@^5.4.2: + version "5.4.3" + resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.4.3.tgz#cb72daf94c93904098e28b9c590fd866e464bd50" + integrity sha512-M4UBGcs4jeOK9CjTsYwkvH6/MzuUmGCyTW+kCY7uO+1ZVr0+FHGdPdIf5CCLqAaxnRrWidyoQlNkMIIVwbKB8Q== + dependencies: + growly "^1.3.0" + is-wsl "^1.1.0" + semver "^5.5.0" + shellwords "^0.1.1" + which "^1.3.0" + +node-releases@^1.1.52, node-releases@^1.1.53: + version "1.1.55" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.55.tgz#8af23b7c561d8e2e6e36a46637bab84633b07cee" + integrity sha512-H3R3YR/8TjT5WPin/wOoHOUPHgvj8leuU/Keta/rwelEQN9pA/S2Dx8/se4pZ2LBxSd0nAGzsNzhqwa77v7F1w== + +node-sass@^4.13.1: + version "4.14.1" + resolved "https://registry.yarnpkg.com/node-sass/-/node-sass-4.14.1.tgz#99c87ec2efb7047ed638fb4c9db7f3a42e2217b5" + integrity sha512-sjCuOlvGyCJS40R8BscF5vhVlQjNN069NtQ1gSxyK1u9iqvn6tf7O1R4GNowVZfiZUCRt5MmMs1xd+4V/7Yr0g== + dependencies: + async-foreach "^0.1.3" + chalk "^1.1.1" + cross-spawn "^3.0.0" + gaze "^1.0.0" + get-stdin "^4.0.1" + glob "^7.0.3" + in-publish "^2.0.0" + lodash "^4.17.15" + meow "^3.7.0" + mkdirp "^0.5.1" + nan "^2.13.2" + node-gyp "^3.8.0" + npmlog "^4.0.0" + request "^2.88.0" + sass-graph "2.2.5" + stdout-stream "^1.4.0" + "true-case-path" "^1.0.2" + +"nopt@2 || 3": + version "3.0.6" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9" + integrity sha1-xkZdvwirzU2zWTF/eaxopkayj/k= + dependencies: + abbrev "1" + +normalize-package-data@^2.3.2, normalize-package-data@^2.3.4: + version "2.5.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" + integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== + dependencies: + hosted-git-info "^2.1.4" + resolve "^1.10.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + +normalize-path@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" + integrity sha1-GrKLVW4Zg2Oowab35vogE3/mrtk= + dependencies: + remove-trailing-separator "^1.0.1" + +normalize-path@^3.0.0, normalize-path@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + +normalize-range@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" + integrity sha1-LRDAa9/TEuqXd2laTShDlFa3WUI= + +normalize-url@1.9.1: + version "1.9.1" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-1.9.1.tgz#2cc0d66b31ea23036458436e3620d85954c66c3c" + integrity sha1-LMDWazHqIwNkWENuNiDYWVTGbDw= + dependencies: + object-assign "^4.0.1" + prepend-http "^1.0.0" + query-string "^4.1.0" + sort-keys "^1.0.0" + +normalize-url@^3.0.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-3.3.0.tgz#b2e1c4dc4f7c6d57743df733a4f5978d18650559" + integrity sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg== + +npm-run-path@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" + integrity sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8= + dependencies: + path-key "^2.0.0" + +npm-run-path@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" + integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== + dependencies: + path-key "^3.0.0" + +"npmlog@0 || 1 || 2 || 3 || 4", npmlog@^4.0.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" + integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg== + dependencies: + are-we-there-yet "~1.1.2" + console-control-strings "~1.1.0" + gauge "~2.7.3" + set-blocking "~2.0.0" + +nth-check@^1.0.2, nth-check@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.2.tgz#b2bd295c37e3dd58a3bf0700376663ba4d9cf05c" + integrity sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg== + dependencies: + boolbase "~1.0.0" + +num2fraction@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede" + integrity sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4= + +number-is-nan@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0= + +nwsapi@^2.0.7: + version "2.2.0" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7" + integrity sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ== + +oauth-sign@~0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" + integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== + +object-assign@4.x, object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= + +object-copy@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" + integrity sha1-fn2Fi3gb18mRpBupde04EnVOmYw= + dependencies: + copy-descriptor "^0.1.0" + define-property "^0.2.5" + kind-of "^3.0.3" + +object-hash@^1.1.8: + version "1.3.1" + resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-1.3.1.tgz#fde452098a951cb145f039bb7d455449ddc126df" + integrity sha512-OSuu/pU4ENM9kmREg0BdNrUDIl1heYa4mBZacJc+vVWz4GtAwu7jO8s4AIt2aGRUTqxykpWzI3Oqnsm13tTMDA== + +object-inspect@^1.7.0, object-inspect@~1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.7.0.tgz#f4f6bd181ad77f006b5ece60bd0b6f398ff74a67" + integrity sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw== + +object-is@^1.0.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/object-is/-/object-is-1.1.2.tgz#c5d2e87ff9e119f78b7a088441519e2eec1573b6" + integrity sha512-5lHCz+0uufF6wZ7CRFWJN3hp8Jqblpgve06U5CMQ3f//6iDjPr2PEo9MWCjEssDsa+UZEL4PkFpr+BMop6aKzQ== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.5" + +object-keys@^1.0.11, object-keys@^1.0.12, object-keys@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" + integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== + +object-visit@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" + integrity sha1-95xEk68MU3e1n+OdOV5BBC3QRbs= + dependencies: + isobject "^3.0.0" + +object.assign@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.0.tgz#968bf1100d7956bb3ca086f006f846b3bc4008da" + integrity sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w== + dependencies: + define-properties "^1.1.2" + function-bind "^1.1.1" + has-symbols "^1.0.0" + object-keys "^1.0.11" + +object.getownpropertydescriptors@^2.0.3, object.getownpropertydescriptors@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.1.0.tgz#369bf1f9592d8ab89d712dced5cb81c7c5352649" + integrity sha512-Z53Oah9A3TdLoblT7VKJaTDdXdT+lQO+cNpKVnya5JDe9uLvzu1YyY1yFDFrcxrlRgWrEFH0jJtD/IbuwjcEVg== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.0-next.1" + +object.pick@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" + integrity sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c= + dependencies: + isobject "^3.0.1" + +object.values@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.1.tgz#68a99ecde356b7e9295a3c5e0ce31dc8c953de5e" + integrity sha512-WTa54g2K8iu0kmS/us18jEmdv1a4Wi//BZ/DTVYEcH0XhLM5NYdpDHja3gt57VrZLcNAO2WGA+KpWsDBaHt6eA== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.0-next.1" + function-bind "^1.1.1" + has "^1.0.3" + +once@^1.3.0, once@^1.3.1, once@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + dependencies: + wrappy "1" + +onetime@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" + integrity sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ= + dependencies: + mimic-fn "^1.0.0" + +onetime@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.0.tgz#fff0f3c91617fe62bb50189636e99ac8a6df7be5" + integrity sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q== + dependencies: + mimic-fn "^2.1.0" + +open@^7.0.2: + version "7.0.3" + resolved "https://registry.yarnpkg.com/open/-/open-7.0.3.tgz#db551a1af9c7ab4c7af664139930826138531c48" + integrity sha512-sP2ru2v0P290WFfv49Ap8MF6PkzGNnGlAwHweB4WR4mr5d2d0woiCluUeJ218w7/+PmoBy9JmYgD5A4mLcWOFA== + dependencies: + is-docker "^2.0.0" + is-wsl "^2.1.1" + +optimize-css-assets-webpack-plugin@^5.0.3: + version "5.0.3" + resolved "https://registry.yarnpkg.com/optimize-css-assets-webpack-plugin/-/optimize-css-assets-webpack-plugin-5.0.3.tgz#e2f1d4d94ad8c0af8967ebd7cf138dcb1ef14572" + integrity sha512-q9fbvCRS6EYtUKKSwI87qm2IxlyJK5b4dygW1rKUBT6mMDhdG5e5bZT63v6tnJR9F9FB/H5a0HTmtw+laUBxKA== + dependencies: + cssnano "^4.1.10" + last-call-webpack-plugin "^3.0.0" + +optionator@^0.8.1, optionator@^0.8.3: + version "0.8.3" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" + integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.6" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + word-wrap "~1.2.3" + +ora@^4.0.3: + version "4.0.4" + resolved "https://registry.yarnpkg.com/ora/-/ora-4.0.4.tgz#e8da697cc5b6a47266655bf68e0fb588d29a545d" + integrity sha512-77iGeVU1cIdRhgFzCK8aw1fbtT1B/iZAvWjS+l/o1x0RShMgxHUZaD2yDpWsNCPwXg9z1ZA78Kbdvr8kBmG/Ww== + dependencies: + chalk "^3.0.0" + cli-cursor "^3.1.0" + cli-spinners "^2.2.0" + is-interactive "^1.0.0" + log-symbols "^3.0.0" + mute-stream "0.0.8" + strip-ansi "^6.0.0" + wcwidth "^1.0.1" + +os-browserify@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/os-browserify/-/os-browserify-0.3.0.tgz#854373c7f5c2315914fc9bfc6bd8238fdda1ec27" + integrity sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc= + +os-homedir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= + +os-locale@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-3.1.0.tgz#a802a6ee17f24c10483ab9935719cef4ed16bf1a" + integrity sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q== + dependencies: + execa "^1.0.0" + lcid "^2.0.0" + mem "^4.0.0" + +os-tmpdir@^1.0.0, os-tmpdir@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= + +osenv@0: + version "0.1.5" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" + integrity sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g== + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + +p-defer@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-defer/-/p-defer-1.0.0.tgz#9f6eb182f6c9aa8cd743004a7d4f96b196b0fb0c" + integrity sha1-n26xgvbJqozXQwBKfU+WsZaw+ww= + +p-each-series@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-each-series/-/p-each-series-1.0.0.tgz#930f3d12dd1f50e7434457a22cd6f04ac6ad7f71" + integrity sha1-kw89Et0fUOdDRFeiLNbwSsatf3E= + dependencies: + p-reduce "^1.0.0" + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + integrity sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4= + +p-is-promise@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/p-is-promise/-/p-is-promise-2.1.0.tgz#918cebaea248a62cf7ffab8e3bca8c5f882fc42e" + integrity sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg== + +p-limit@^1.1.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" + integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== + dependencies: + p-try "^1.0.0" + +p-limit@^2.0.0, p-limit@^2.2.0, p-limit@^2.2.1, p-limit@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" + integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== + dependencies: + p-try "^2.0.0" + +p-locate@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" + integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= + dependencies: + p-limit "^1.1.0" + +p-locate@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" + integrity sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ== + dependencies: + p-limit "^2.0.0" + +p-locate@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" + integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== + dependencies: + p-limit "^2.2.0" + +p-map@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/p-map/-/p-map-3.0.0.tgz#d704d9af8a2ba684e2600d9a215983d4141a979d" + integrity sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ== + dependencies: + aggregate-error "^3.0.0" + +p-reduce@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-reduce/-/p-reduce-1.0.0.tgz#18c2b0dd936a4690a529f8231f58a0fdb6a47dfa" + integrity sha1-GMKw3ZNqRpClKfgjH1ig/bakffo= + +p-try@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" + integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= + +p-try@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" + integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== + +pad-left@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/pad-left/-/pad-left-2.1.0.tgz#16e6a3b2d44a8e138cb0838cc7cb403a4fc9e994" + integrity sha1-FuajstRKjhOMsIOMx8tAOk/J6ZQ= + dependencies: + repeat-string "^1.5.4" + +pako@~1.0.5: + version "1.0.11" + resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf" + integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw== + +papaparse@4.6.3: + version "4.6.3" + resolved "https://registry.yarnpkg.com/papaparse/-/papaparse-4.6.3.tgz#742e5eaaa97fa6c7e1358d2934d8f18f44aee781" + integrity sha512-LRq7BrHC2kHPBYSD50aKuw/B/dGcg29omyJbKWY3KsYUZU69RKwaBHu13jGmCYBtOc4odsLCrFyk6imfyNubJQ== + +parallel-transform@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/parallel-transform/-/parallel-transform-1.2.0.tgz#9049ca37d6cb2182c3b1d2c720be94d14a5814fc" + integrity sha512-P2vSmIu38uIlvdcU7fDkyrxj33gTUy/ABO5ZUbGowxNCopBq/OoD42bP4UmMrJoPyk4Uqf0mu3mtWBhHCZD8yg== + dependencies: + cyclist "^1.0.1" + inherits "^2.0.3" + readable-stream "^2.1.5" + +param-case@2.1.x: + version "2.1.1" + resolved "https://registry.yarnpkg.com/param-case/-/param-case-2.1.1.tgz#df94fd8cf6531ecf75e6bef9a0858fbc72be2247" + integrity sha1-35T9jPZTHs915r75oIWPvHK+Ikc= + dependencies: + no-case "^2.2.0" + +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" + +parse-asn1@^5.0.0, parse-asn1@^5.1.5: + version "5.1.5" + resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.5.tgz#003271343da58dc94cace494faef3d2147ecea0e" + integrity sha512-jkMYn1dcJqF6d5CpU689bq7w/b5ALS9ROVSpQDPrZsqqesUJii9qutvoT5ltGedNXMO2e16YUWIghG9KxaViTQ== + dependencies: + asn1.js "^4.0.0" + browserify-aes "^1.0.0" + create-hash "^1.1.0" + evp_bytestokey "^1.0.0" + pbkdf2 "^3.0.3" + safe-buffer "^5.1.1" + +parse-color@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/parse-color/-/parse-color-1.0.0.tgz#7b748b95a83f03f16a94f535e52d7f3d94658619" + integrity sha1-e3SLlag/A/FqlPU15S1/PZRlhhk= + dependencies: + color-convert "~0.5.0" + +parse-json@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" + integrity sha1-9ID0BDTvgHQfhGkJn43qGPVaTck= + dependencies: + error-ex "^1.2.0" + +parse-json@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" + integrity sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA= + dependencies: + error-ex "^1.3.1" + json-parse-better-errors "^1.0.1" + +parse-json@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.0.0.tgz#73e5114c986d143efa3712d4ea24db9a4266f60f" + integrity sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw== + dependencies: + "@babel/code-frame" "^7.0.0" + error-ex "^1.3.1" + json-parse-better-errors "^1.0.1" + lines-and-columns "^1.1.6" + +parse5@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-4.0.0.tgz#6d78656e3da8d78b4ec0b906f7c08ef1dfe3f608" + integrity sha512-VrZ7eOd3T1Fk4XWNXMgiGBK/z0MG48BWG2uQNU4I72fkQuKUTZpl+u9k+CxEG0twMVzSmXEEz12z5Fnw1jIQFA== + +pascalcase@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" + integrity sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ= + +path-browserify@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.1.tgz#e6c4ddd7ed3aa27c68a20cc4e50e1a4ee83bbc4a" + integrity sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ== + +path-dirname@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" + integrity sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA= + +path-exists@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" + integrity sha1-D+tsZPD8UY2adU3V77YscCJ2H0s= + dependencies: + pinkie-promise "^2.0.0" + +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= + +path-exists@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" + integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + +path-key@^2.0.0, path-key@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" + integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= + +path-key@^3.0.0, path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +path-parse@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" + integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== + +path-type@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" + integrity sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE= + dependencies: + graceful-fs "^4.1.2" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +path-type@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" + integrity sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg== + dependencies: + pify "^3.0.0" + +path-type@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" + integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== + +pbkdf2@^3.0.3: + version "3.0.17" + resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.17.tgz#976c206530617b14ebb32114239f7b09336e93a6" + integrity sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA== + dependencies: + create-hash "^1.1.2" + create-hmac "^1.1.4" + ripemd160 "^2.0.1" + safe-buffer "^5.0.1" + sha.js "^2.4.8" + +pend@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50" + integrity sha1-elfrVQpng/kRUzH89GY9XI4AelA= + +performance-now@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" + integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= + +picomatch@^2.0.4, picomatch@^2.0.5, picomatch@^2.2.1: + version "2.2.2" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad" + integrity sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg== + +pify@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + integrity sha1-7RQaasBDqEnqWISY59yosVMw6Qw= + +pify@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" + integrity sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY= + +pify@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" + integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== + +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + integrity sha1-ITXW36ejWMBprJsXh3YogihFD/o= + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA= + +pirates@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz#643a92caf894566f91b2b986d2c66950a8e2fb87" + integrity sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA== + dependencies: + node-modules-regexp "^1.0.0" + +pixelmatch@^5.1.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/pixelmatch/-/pixelmatch-5.2.0.tgz#6433386c6a830b0d9ee3962f9ad59695500677cd" + integrity sha512-TdleROuanI+Uo/4PcOAH7b7qgO4kjzJO8K4y/TBAo1wx/5BE8cn1B0I6Jfk3mKcJsGpWvX7zjM8OjU5o9i+aog== + dependencies: + pngjs "^4.0.1" + +pkg-dir@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3" + integrity sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw== + dependencies: + find-up "^3.0.0" + +pkg-dir@^4.1.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" + integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== + dependencies: + find-up "^4.0.0" + +pkg-up@3.1.0, pkg-up@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-3.1.0.tgz#100ec235cc150e4fd42519412596a28512a0def5" + integrity sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA== + dependencies: + find-up "^3.0.0" + +pkg-up@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-2.0.0.tgz#c819ac728059a461cab1c3889a2be3c49a004d7f" + integrity sha1-yBmscoBZpGHKscOImivjxJoATX8= + dependencies: + find-up "^2.1.0" + +pn@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb" + integrity sha512-2qHaIQr2VLRFoxe2nASzsV6ef4yOOH+Fi9FBOVH6cqeSgUnoyySPZkxzLuzd+RYOQTRpROA0ztTMqxROKSb/nA== + +pngjs@^3.4.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-3.4.0.tgz#99ca7d725965fb655814eaf65f38f12bbdbf555f" + integrity sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w== + +pngjs@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-4.0.1.tgz#f803869bb2fc1bfe1bf99aa4ec21c108117cfdbe" + integrity sha512-rf5+2/ioHeQxR6IxuYNYGFytUyG3lma/WW1nsmjeHlWwtb2aByla6dkVc8pmJ9nplzkTA0q2xx7mMWrOTqT4Gg== + +popper.js@^1.14.4: + version "1.16.1" + resolved "https://registry.yarnpkg.com/popper.js/-/popper.js-1.16.1.tgz#2a223cb3dc7b6213d740e40372be40de43e65b1b" + integrity sha512-Wb4p1J4zyFTbM+u6WuO4XstYx4Ky9Cewe4DWrel7B0w6VVICvPwdOpotjzcf6eD8TsckVnIMNONQyPIUFOUbCQ== + +posix-character-classes@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" + integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= + +postcss-attribute-case-insensitive@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-attribute-case-insensitive/-/postcss-attribute-case-insensitive-4.0.2.tgz#d93e46b504589e94ac7277b0463226c68041a880" + integrity sha512-clkFxk/9pcdb4Vkn0hAHq3YnxBQ2p0CGD1dy24jN+reBck+EWxMbxSUqN4Yj7t0w8csl87K6p0gxBe1utkJsYA== + dependencies: + postcss "^7.0.2" + postcss-selector-parser "^6.0.2" + +postcss-calc@^7.0.1: + version "7.0.2" + resolved "https://registry.yarnpkg.com/postcss-calc/-/postcss-calc-7.0.2.tgz#504efcd008ca0273120568b0792b16cdcde8aac1" + integrity sha512-rofZFHUg6ZIrvRwPeFktv06GdbDYLcGqh9EwiMutZg+a0oePCCw1zHOEiji6LCpyRcjTREtPASuUqeAvYlEVvQ== + dependencies: + postcss "^7.0.27" + postcss-selector-parser "^6.0.2" + postcss-value-parser "^4.0.2" + +postcss-color-functional-notation@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/postcss-color-functional-notation/-/postcss-color-functional-notation-2.0.1.tgz#5efd37a88fbabeb00a2966d1e53d98ced93f74e0" + integrity sha512-ZBARCypjEDofW4P6IdPVTLhDNXPRn8T2s1zHbZidW6rPaaZvcnCS2soYFIQJrMZSxiePJ2XIYTlcb2ztr/eT2g== + dependencies: + postcss "^7.0.2" + postcss-values-parser "^2.0.0" + +postcss-color-gray@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/postcss-color-gray/-/postcss-color-gray-5.0.0.tgz#532a31eb909f8da898ceffe296fdc1f864be8547" + integrity sha512-q6BuRnAGKM/ZRpfDascZlIZPjvwsRye7UDNalqVz3s7GDxMtqPY6+Q871liNxsonUw8oC61OG+PSaysYpl1bnw== + dependencies: + "@csstools/convert-colors" "^1.4.0" + postcss "^7.0.5" + postcss-values-parser "^2.0.0" + +postcss-color-hex-alpha@^5.0.3: + version "5.0.3" + resolved "https://registry.yarnpkg.com/postcss-color-hex-alpha/-/postcss-color-hex-alpha-5.0.3.tgz#a8d9ca4c39d497c9661e374b9c51899ef0f87388" + integrity sha512-PF4GDel8q3kkreVXKLAGNpHKilXsZ6xuu+mOQMHWHLPNyjiUBOr75sp5ZKJfmv1MCus5/DWUGcK9hm6qHEnXYw== + dependencies: + postcss "^7.0.14" + postcss-values-parser "^2.0.1" + +postcss-color-mod-function@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/postcss-color-mod-function/-/postcss-color-mod-function-3.0.3.tgz#816ba145ac11cc3cb6baa905a75a49f903e4d31d" + integrity sha512-YP4VG+xufxaVtzV6ZmhEtc+/aTXH3d0JLpnYfxqTvwZPbJhWqp8bSY3nfNzNRFLgB4XSaBA82OE4VjOOKpCdVQ== + dependencies: + "@csstools/convert-colors" "^1.4.0" + postcss "^7.0.2" + postcss-values-parser "^2.0.0" + +postcss-color-rebeccapurple@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-color-rebeccapurple/-/postcss-color-rebeccapurple-4.0.1.tgz#c7a89be872bb74e45b1e3022bfe5748823e6de77" + integrity sha512-aAe3OhkS6qJXBbqzvZth2Au4V3KieR5sRQ4ptb2b2O8wgvB3SJBsdG+jsn2BZbbwekDG8nTfcCNKcSfe/lEy8g== + dependencies: + postcss "^7.0.2" + postcss-values-parser "^2.0.0" + +postcss-colormin@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/postcss-colormin/-/postcss-colormin-4.0.3.tgz#ae060bce93ed794ac71264f08132d550956bd381" + integrity sha512-WyQFAdDZpExQh32j0U0feWisZ0dmOtPl44qYmJKkq9xFWY3p+4qnRzCHeNrkeRhwPHz9bQ3mo0/yVkaply0MNw== + dependencies: + browserslist "^4.0.0" + color "^3.0.0" + has "^1.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-convert-values@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-convert-values/-/postcss-convert-values-4.0.1.tgz#ca3813ed4da0f812f9d43703584e449ebe189a7f" + integrity sha512-Kisdo1y77KUC0Jmn0OXU/COOJbzM8cImvw1ZFsBgBgMgb1iL23Zs/LXRe3r+EZqM3vGYKdQ2YJVQ5VkJI+zEJQ== + dependencies: + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-custom-media@^7.0.8: + version "7.0.8" + resolved "https://registry.yarnpkg.com/postcss-custom-media/-/postcss-custom-media-7.0.8.tgz#fffd13ffeffad73621be5f387076a28b00294e0c" + integrity sha512-c9s5iX0Ge15o00HKbuRuTqNndsJUbaXdiNsksnVH8H4gdc+zbLzr/UasOwNG6CTDpLFekVY4672eWdiiWu2GUg== + dependencies: + postcss "^7.0.14" + +postcss-custom-properties@^8.0.11: + version "8.0.11" + resolved "https://registry.yarnpkg.com/postcss-custom-properties/-/postcss-custom-properties-8.0.11.tgz#2d61772d6e92f22f5e0d52602df8fae46fa30d97" + integrity sha512-nm+o0eLdYqdnJ5abAJeXp4CEU1c1k+eB2yMCvhgzsds/e0umabFrN6HoTy/8Q4K5ilxERdl/JD1LO5ANoYBeMA== + dependencies: + postcss "^7.0.17" + postcss-values-parser "^2.0.1" + +postcss-custom-selectors@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/postcss-custom-selectors/-/postcss-custom-selectors-5.1.2.tgz#64858c6eb2ecff2fb41d0b28c9dd7b3db4de7fba" + integrity sha512-DSGDhqinCqXqlS4R7KGxL1OSycd1lydugJ1ky4iRXPHdBRiozyMHrdu0H3o7qNOCiZwySZTUI5MV0T8QhCLu+w== + dependencies: + postcss "^7.0.2" + postcss-selector-parser "^5.0.0-rc.3" + +postcss-dir-pseudo-class@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-5.0.0.tgz#6e3a4177d0edb3abcc85fdb6fbb1c26dabaeaba2" + integrity sha512-3pm4oq8HYWMZePJY+5ANriPs3P07q+LW6FAdTlkFH2XqDdP4HeeJYMOzn0HYLhRSjBO3fhiqSwwU9xEULSrPgw== + dependencies: + postcss "^7.0.2" + postcss-selector-parser "^5.0.0-rc.3" + +postcss-discard-comments@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-discard-comments/-/postcss-discard-comments-4.0.2.tgz#1fbabd2c246bff6aaad7997b2b0918f4d7af4033" + integrity sha512-RJutN259iuRf3IW7GZyLM5Sw4GLTOH8FmsXBnv8Ab/Tc2k4SR4qbV4DNbyyY4+Sjo362SyDmW2DQ7lBSChrpkg== + dependencies: + postcss "^7.0.0" + +postcss-discard-duplicates@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-discard-duplicates/-/postcss-discard-duplicates-4.0.2.tgz#3fe133cd3c82282e550fc9b239176a9207b784eb" + integrity sha512-ZNQfR1gPNAiXZhgENFfEglF93pciw0WxMkJeVmw8eF+JZBbMD7jp6C67GqJAXVZP2BWbOztKfbsdmMp/k8c6oQ== + dependencies: + postcss "^7.0.0" + +postcss-discard-empty@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-discard-empty/-/postcss-discard-empty-4.0.1.tgz#c8c951e9f73ed9428019458444a02ad90bb9f765" + integrity sha512-B9miTzbznhDjTfjvipfHoqbWKwd0Mj+/fL5s1QOz06wufguil+Xheo4XpOnc4NqKYBCNqqEzgPv2aPBIJLox0w== + dependencies: + postcss "^7.0.0" + +postcss-discard-overridden@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-discard-overridden/-/postcss-discard-overridden-4.0.1.tgz#652aef8a96726f029f5e3e00146ee7a4e755ff57" + integrity sha512-IYY2bEDD7g1XM1IDEsUT4//iEYCxAmP5oDSFMVU/JVvT7gh+l4fmjciLqGgwjdWpQIdb0Che2VX00QObS5+cTg== + dependencies: + postcss "^7.0.0" + +postcss-double-position-gradients@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/postcss-double-position-gradients/-/postcss-double-position-gradients-1.0.0.tgz#fc927d52fddc896cb3a2812ebc5df147e110522e" + integrity sha512-G+nV8EnQq25fOI8CH/B6krEohGWnF5+3A6H/+JEpOncu5dCnkS1QQ6+ct3Jkaepw1NGVqqOZH6lqrm244mCftA== + dependencies: + postcss "^7.0.5" + postcss-values-parser "^2.0.0" + +postcss-env-function@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/postcss-env-function/-/postcss-env-function-2.0.2.tgz#0f3e3d3c57f094a92c2baf4b6241f0b0da5365d7" + integrity sha512-rwac4BuZlITeUbiBq60h/xbLzXY43qOsIErngWa4l7Mt+RaSkT7QBjXVGTcBHupykkblHMDrBFh30zchYPaOUw== + dependencies: + postcss "^7.0.2" + postcss-values-parser "^2.0.0" + +postcss-flexbugs-fixes@4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/postcss-flexbugs-fixes/-/postcss-flexbugs-fixes-4.2.0.tgz#662b3dcb6354638b9213a55eed8913bcdc8d004a" + integrity sha512-QRE0n3hpkxxS/OGvzOa+PDuy4mh/Jg4o9ui22/ko5iGYOG3M5dfJabjnAZjTdh2G9F85c7Hv8hWcEDEKW/xceQ== + dependencies: + postcss "^7.0.26" + +postcss-focus-visible@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/postcss-focus-visible/-/postcss-focus-visible-4.0.0.tgz#477d107113ade6024b14128317ade2bd1e17046e" + integrity sha512-Z5CkWBw0+idJHSV6+Bgf2peDOFf/x4o+vX/pwcNYrWpXFrSfTkQ3JQ1ojrq9yS+upnAlNRHeg8uEwFTgorjI8g== + dependencies: + postcss "^7.0.2" + +postcss-focus-within@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-focus-within/-/postcss-focus-within-3.0.0.tgz#763b8788596cee9b874c999201cdde80659ef680" + integrity sha512-W0APui8jQeBKbCGZudW37EeMCjDeVxKgiYfIIEo8Bdh5SpB9sxds/Iq8SEuzS0Q4YFOlG7EPFulbbxujpkrV2w== + dependencies: + postcss "^7.0.2" + +postcss-font-variant@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/postcss-font-variant/-/postcss-font-variant-4.0.0.tgz#71dd3c6c10a0d846c5eda07803439617bbbabacc" + integrity sha512-M8BFYKOvCrI2aITzDad7kWuXXTm0YhGdP9Q8HanmN4EF1Hmcgs1KK5rSHylt/lUJe8yLxiSwWAHdScoEiIxztg== + dependencies: + postcss "^7.0.2" + +postcss-gap-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-gap-properties/-/postcss-gap-properties-2.0.0.tgz#431c192ab3ed96a3c3d09f2ff615960f902c1715" + integrity sha512-QZSqDaMgXCHuHTEzMsS2KfVDOq7ZFiknSpkrPJY6jmxbugUPTuSzs/vuE5I3zv0WAS+3vhrlqhijiprnuQfzmg== + dependencies: + postcss "^7.0.2" + +postcss-image-set-function@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/postcss-image-set-function/-/postcss-image-set-function-3.0.1.tgz#28920a2f29945bed4c3198d7df6496d410d3f288" + integrity sha512-oPTcFFip5LZy8Y/whto91L9xdRHCWEMs3e1MdJxhgt4jy2WYXfhkng59fH5qLXSCPN8k4n94p1Czrfe5IOkKUw== + dependencies: + postcss "^7.0.2" + postcss-values-parser "^2.0.0" + +postcss-initial@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/postcss-initial/-/postcss-initial-3.0.2.tgz#f018563694b3c16ae8eaabe3c585ac6319637b2d" + integrity sha512-ugA2wKonC0xeNHgirR4D3VWHs2JcU08WAi1KFLVcnb7IN89phID6Qtg2RIctWbnvp1TM2BOmDtX8GGLCKdR8YA== + dependencies: + lodash.template "^4.5.0" + postcss "^7.0.2" + +postcss-lab-function@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/postcss-lab-function/-/postcss-lab-function-2.0.1.tgz#bb51a6856cd12289ab4ae20db1e3821ef13d7d2e" + integrity sha512-whLy1IeZKY+3fYdqQFuDBf8Auw+qFuVnChWjmxm/UhHWqNHZx+B99EwxTvGYmUBqe3Fjxs4L1BoZTJmPu6usVg== + dependencies: + "@csstools/convert-colors" "^1.4.0" + postcss "^7.0.2" + postcss-values-parser "^2.0.0" + +postcss-load-config@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/postcss-load-config/-/postcss-load-config-2.1.0.tgz#c84d692b7bb7b41ddced94ee62e8ab31b417b003" + integrity sha512-4pV3JJVPLd5+RueiVVB+gFOAa7GWc25XQcMp86Zexzke69mKf6Nx9LRcQywdz7yZI9n1udOxmLuAwTBypypF8Q== + dependencies: + cosmiconfig "^5.0.0" + import-cwd "^2.0.0" + +postcss-loader@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-loader/-/postcss-loader-3.0.0.tgz#6b97943e47c72d845fa9e03f273773d4e8dd6c2d" + integrity sha512-cLWoDEY5OwHcAjDnkyRQzAXfs2jrKjXpO/HQFcc5b5u/r7aa471wdmChmwfnv7x2u840iat/wi0lQ5nbRgSkUA== + dependencies: + loader-utils "^1.1.0" + postcss "^7.0.0" + postcss-load-config "^2.0.0" + schema-utils "^1.0.0" + +postcss-logical@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-logical/-/postcss-logical-3.0.0.tgz#2495d0f8b82e9f262725f75f9401b34e7b45d5b5" + integrity sha512-1SUKdJc2vuMOmeItqGuNaC+N8MzBWFWEkAnRnLpFYj1tGGa7NqyVBujfRtgNa2gXR+6RkGUiB2O5Vmh7E2RmiA== + dependencies: + postcss "^7.0.2" + +postcss-media-minmax@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/postcss-media-minmax/-/postcss-media-minmax-4.0.0.tgz#b75bb6cbc217c8ac49433e12f22048814a4f5ed5" + integrity sha512-fo9moya6qyxsjbFAYl97qKO9gyre3qvbMnkOZeZwlsW6XYFsvs2DMGDlchVLfAd8LHPZDxivu/+qW2SMQeTHBw== + dependencies: + postcss "^7.0.2" + +postcss-merge-longhand@^4.0.11: + version "4.0.11" + resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-4.0.11.tgz#62f49a13e4a0ee04e7b98f42bb16062ca2549e24" + integrity sha512-alx/zmoeXvJjp7L4mxEMjh8lxVlDFX1gqWHzaaQewwMZiVhLo42TEClKaeHbRf6J7j82ZOdTJ808RtN0ZOZwvw== + dependencies: + css-color-names "0.0.4" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + stylehacks "^4.0.0" + +postcss-merge-rules@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/postcss-merge-rules/-/postcss-merge-rules-4.0.3.tgz#362bea4ff5a1f98e4075a713c6cb25aefef9a650" + integrity sha512-U7e3r1SbvYzO0Jr3UT/zKBVgYYyhAz0aitvGIYOYK5CPmkNih+WDSsS5tvPrJ8YMQYlEMvsZIiqmn7HdFUaeEQ== + dependencies: + browserslist "^4.0.0" + caniuse-api "^3.0.0" + cssnano-util-same-parent "^4.0.0" + postcss "^7.0.0" + postcss-selector-parser "^3.0.0" + vendors "^1.0.0" + +postcss-minify-font-values@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-minify-font-values/-/postcss-minify-font-values-4.0.2.tgz#cd4c344cce474343fac5d82206ab2cbcb8afd5a6" + integrity sha512-j85oO6OnRU9zPf04+PZv1LYIYOprWm6IA6zkXkrJXyRveDEuQggG6tvoy8ir8ZwjLxLuGfNkCZEQG7zan+Hbtg== + dependencies: + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-minify-gradients@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-minify-gradients/-/postcss-minify-gradients-4.0.2.tgz#93b29c2ff5099c535eecda56c4aa6e665a663471" + integrity sha512-qKPfwlONdcf/AndP1U8SJ/uzIJtowHlMaSioKzebAXSG4iJthlWC9iSWznQcX4f66gIWX44RSA841HTHj3wK+Q== + dependencies: + cssnano-util-get-arguments "^4.0.0" + is-color-stop "^1.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-minify-params@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-minify-params/-/postcss-minify-params-4.0.2.tgz#6b9cef030c11e35261f95f618c90036d680db874" + integrity sha512-G7eWyzEx0xL4/wiBBJxJOz48zAKV2WG3iZOqVhPet/9geefm/Px5uo1fzlHu+DOjT+m0Mmiz3jkQzVHe6wxAWg== + dependencies: + alphanum-sort "^1.0.0" + browserslist "^4.0.0" + cssnano-util-get-arguments "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + uniqs "^2.0.0" + +postcss-minify-selectors@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-minify-selectors/-/postcss-minify-selectors-4.0.2.tgz#e2e5eb40bfee500d0cd9243500f5f8ea4262fbd8" + integrity sha512-D5S1iViljXBj9kflQo4YutWnJmwm8VvIsU1GeXJGiG9j8CIg9zs4voPMdQDUmIxetUOh60VilsNzCiAFTOqu3g== + dependencies: + alphanum-sort "^1.0.0" + has "^1.0.0" + postcss "^7.0.0" + postcss-selector-parser "^3.0.0" + +postcss-modules-extract-imports@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-2.0.0.tgz#818719a1ae1da325f9832446b01136eeb493cd7e" + integrity sha512-LaYLDNS4SG8Q5WAWqIJgdHPJrDDr/Lv775rMBFUbgjTz6j34lUznACHcdRWroPvXANP2Vj7yNK57vp9eFqzLWQ== + dependencies: + postcss "^7.0.5" + +postcss-modules-local-by-default@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/postcss-modules-local-by-default/-/postcss-modules-local-by-default-3.0.2.tgz#e8a6561be914aaf3c052876377524ca90dbb7915" + integrity sha512-jM/V8eqM4oJ/22j0gx4jrp63GSvDH6v86OqyTHHUvk4/k1vceipZsaymiZ5PvocqZOl5SFHiFJqjs3la0wnfIQ== + dependencies: + icss-utils "^4.1.1" + postcss "^7.0.16" + postcss-selector-parser "^6.0.2" + postcss-value-parser "^4.0.0" + +postcss-modules-scope@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-2.2.0.tgz#385cae013cc7743f5a7d7602d1073a89eaae62ee" + integrity sha512-YyEgsTMRpNd+HmyC7H/mh3y+MeFWevy7V1evVhJWewmMbjDHIbZbOXICC2y+m1xI1UVfIT1HMW/O04Hxyu9oXQ== + dependencies: + postcss "^7.0.6" + postcss-selector-parser "^6.0.0" + +postcss-modules-values@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-modules-values/-/postcss-modules-values-3.0.0.tgz#5b5000d6ebae29b4255301b4a3a54574423e7f10" + integrity sha512-1//E5jCBrZ9DmRX+zCtmQtRSV6PV42Ix7Bzj9GbwJceduuf7IqP8MgeTXuRDHOWj2m0VzZD5+roFWDuU8RQjcg== + dependencies: + icss-utils "^4.0.0" + postcss "^7.0.6" + +postcss-nesting@^7.0.0: + version "7.0.1" + resolved "https://registry.yarnpkg.com/postcss-nesting/-/postcss-nesting-7.0.1.tgz#b50ad7b7f0173e5b5e3880c3501344703e04c052" + integrity sha512-FrorPb0H3nuVq0Sff7W2rnc3SmIcruVC6YwpcS+k687VxyxO33iE1amna7wHuRVzM8vfiYofXSBHNAZ3QhLvYg== + dependencies: + postcss "^7.0.2" + +postcss-normalize-charset@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-4.0.1.tgz#8b35add3aee83a136b0471e0d59be58a50285dd4" + integrity sha512-gMXCrrlWh6G27U0hF3vNvR3w8I1s2wOBILvA87iNXaPvSNo5uZAMYsZG7XjCUf1eVxuPfyL4TJ7++SGZLc9A3g== + dependencies: + postcss "^7.0.0" + +postcss-normalize-display-values@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-normalize-display-values/-/postcss-normalize-display-values-4.0.2.tgz#0dbe04a4ce9063d4667ed2be476bb830c825935a" + integrity sha512-3F2jcsaMW7+VtRMAqf/3m4cPFhPD3EFRgNs18u+k3lTJJlVe7d0YPO+bnwqo2xg8YiRpDXJI2u8A0wqJxMsQuQ== + dependencies: + cssnano-util-get-match "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-positions@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-normalize-positions/-/postcss-normalize-positions-4.0.2.tgz#05f757f84f260437378368a91f8932d4b102917f" + integrity sha512-Dlf3/9AxpxE+NF1fJxYDeggi5WwV35MXGFnnoccP/9qDtFrTArZ0D0R+iKcg5WsUd8nUYMIl8yXDCtcrT8JrdA== + dependencies: + cssnano-util-get-arguments "^4.0.0" + has "^1.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-repeat-style@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-normalize-repeat-style/-/postcss-normalize-repeat-style-4.0.2.tgz#c4ebbc289f3991a028d44751cbdd11918b17910c" + integrity sha512-qvigdYYMpSuoFs3Is/f5nHdRLJN/ITA7huIoCyqqENJe9PvPmLhNLMu7QTjPdtnVf6OcYYO5SHonx4+fbJE1+Q== + dependencies: + cssnano-util-get-arguments "^4.0.0" + cssnano-util-get-match "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-string@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-normalize-string/-/postcss-normalize-string-4.0.2.tgz#cd44c40ab07a0c7a36dc5e99aace1eca4ec2690c" + integrity sha512-RrERod97Dnwqq49WNz8qo66ps0swYZDSb6rM57kN2J+aoyEAJfZ6bMx0sx/F9TIEX0xthPGCmeyiam/jXif0eA== + dependencies: + has "^1.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-timing-functions@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-normalize-timing-functions/-/postcss-normalize-timing-functions-4.0.2.tgz#8e009ca2a3949cdaf8ad23e6b6ab99cb5e7d28d9" + integrity sha512-acwJY95edP762e++00Ehq9L4sZCEcOPyaHwoaFOhIwWCDfik6YvqsYNxckee65JHLKzuNSSmAdxwD2Cud1Z54A== + dependencies: + cssnano-util-get-match "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-unicode@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-normalize-unicode/-/postcss-normalize-unicode-4.0.1.tgz#841bd48fdcf3019ad4baa7493a3d363b52ae1cfb" + integrity sha512-od18Uq2wCYn+vZ/qCOeutvHjB5jm57ToxRaMeNuf0nWVHaP9Hua56QyMF6fs/4FSUnVIw0CBPsU0K4LnBPwYwg== + dependencies: + browserslist "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-url@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-normalize-url/-/postcss-normalize-url-4.0.1.tgz#10e437f86bc7c7e58f7b9652ed878daaa95faae1" + integrity sha512-p5oVaF4+IHwu7VpMan/SSpmpYxcJMtkGppYf0VbdH5B6hN8YNmVyJLuY9FmLQTzY3fag5ESUUHDqM+heid0UVA== + dependencies: + is-absolute-url "^2.0.0" + normalize-url "^3.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-normalize-whitespace@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-normalize-whitespace/-/postcss-normalize-whitespace-4.0.2.tgz#bf1d4070fe4fcea87d1348e825d8cc0c5faa7d82" + integrity sha512-tO8QIgrsI3p95r8fyqKV+ufKlSHh9hMJqACqbv2XknufqEDhDvbguXGBBqxw9nsQoXWf0qOqppziKJKHMD4GtA== + dependencies: + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-ordered-values@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/postcss-ordered-values/-/postcss-ordered-values-4.1.2.tgz#0cf75c820ec7d5c4d280189559e0b571ebac0eee" + integrity sha512-2fCObh5UanxvSxeXrtLtlwVThBvHn6MQcu4ksNT2tsaV2Fg76R2CV98W7wNSlX+5/pFwEyaDwKLLoEV7uRybAw== + dependencies: + cssnano-util-get-arguments "^4.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-overflow-shorthand@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-overflow-shorthand/-/postcss-overflow-shorthand-2.0.0.tgz#31ecf350e9c6f6ddc250a78f0c3e111f32dd4c30" + integrity sha512-aK0fHc9CBNx8jbzMYhshZcEv8LtYnBIRYQD5i7w/K/wS9c2+0NSR6B3OVMu5y0hBHYLcMGjfU+dmWYNKH0I85g== + dependencies: + postcss "^7.0.2" + +postcss-page-break@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/postcss-page-break/-/postcss-page-break-2.0.0.tgz#add52d0e0a528cabe6afee8b46e2abb277df46bf" + integrity sha512-tkpTSrLpfLfD9HvgOlJuigLuk39wVTbbd8RKcy8/ugV2bNBUW3xU+AIqyxhDrQr1VUj1RmyJrBn1YWrqUm9zAQ== + dependencies: + postcss "^7.0.2" + +postcss-place@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-place/-/postcss-place-4.0.1.tgz#e9f39d33d2dc584e46ee1db45adb77ca9d1dcc62" + integrity sha512-Zb6byCSLkgRKLODj/5mQugyuj9bvAAw9LqJJjgwz5cYryGeXfFZfSXoP1UfveccFmeq0b/2xxwcTEVScnqGxBg== + dependencies: + postcss "^7.0.2" + postcss-values-parser "^2.0.0" + +postcss-preset-env@6.7.0: + version "6.7.0" + resolved "https://registry.yarnpkg.com/postcss-preset-env/-/postcss-preset-env-6.7.0.tgz#c34ddacf8f902383b35ad1e030f178f4cdf118a5" + integrity sha512-eU4/K5xzSFwUFJ8hTdTQzo2RBLbDVt83QZrAvI07TULOkmyQlnYlpwep+2yIK+K+0KlZO4BvFcleOCCcUtwchg== + dependencies: + autoprefixer "^9.6.1" + browserslist "^4.6.4" + caniuse-lite "^1.0.30000981" + css-blank-pseudo "^0.1.4" + css-has-pseudo "^0.10.0" + css-prefers-color-scheme "^3.1.1" + cssdb "^4.4.0" + postcss "^7.0.17" + postcss-attribute-case-insensitive "^4.0.1" + postcss-color-functional-notation "^2.0.1" + postcss-color-gray "^5.0.0" + postcss-color-hex-alpha "^5.0.3" + postcss-color-mod-function "^3.0.3" + postcss-color-rebeccapurple "^4.0.1" + postcss-custom-media "^7.0.8" + postcss-custom-properties "^8.0.11" + postcss-custom-selectors "^5.1.2" + postcss-dir-pseudo-class "^5.0.0" + postcss-double-position-gradients "^1.0.0" + postcss-env-function "^2.0.2" + postcss-focus-visible "^4.0.0" + postcss-focus-within "^3.0.0" + postcss-font-variant "^4.0.0" + postcss-gap-properties "^2.0.0" + postcss-image-set-function "^3.0.1" + postcss-initial "^3.0.0" + postcss-lab-function "^2.0.1" + postcss-logical "^3.0.0" + postcss-media-minmax "^4.0.0" + postcss-nesting "^7.0.0" + postcss-overflow-shorthand "^2.0.0" + postcss-page-break "^2.0.0" + postcss-place "^4.0.1" + postcss-pseudo-class-any-link "^6.0.0" + postcss-replace-overflow-wrap "^3.0.0" + postcss-selector-matches "^4.0.0" + postcss-selector-not "^4.0.0" + +postcss-pseudo-class-any-link@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-6.0.0.tgz#2ed3eed393b3702879dec4a87032b210daeb04d1" + integrity sha512-lgXW9sYJdLqtmw23otOzrtbDXofUdfYzNm4PIpNE322/swES3VU9XlXHeJS46zT2onFO7V1QFdD4Q9LiZj8mew== + dependencies: + postcss "^7.0.2" + postcss-selector-parser "^5.0.0-rc.3" + +postcss-reduce-initial@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/postcss-reduce-initial/-/postcss-reduce-initial-4.0.3.tgz#7fd42ebea5e9c814609639e2c2e84ae270ba48df" + integrity sha512-gKWmR5aUulSjbzOfD9AlJiHCGH6AEVLaM0AV+aSioxUDd16qXP1PCh8d1/BGVvpdWn8k/HiK7n6TjeoXN1F7DA== + dependencies: + browserslist "^4.0.0" + caniuse-api "^3.0.0" + has "^1.0.0" + postcss "^7.0.0" + +postcss-reduce-transforms@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-reduce-transforms/-/postcss-reduce-transforms-4.0.2.tgz#17efa405eacc6e07be3414a5ca2d1074681d4e29" + integrity sha512-EEVig1Q2QJ4ELpJXMZR8Vt5DQx8/mo+dGWSR7vWXqcob2gQLyQGsionYcGKATXvQzMPn6DSN1vTN7yFximdIAg== + dependencies: + cssnano-util-get-match "^4.0.0" + has "^1.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + +postcss-replace-overflow-wrap@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-replace-overflow-wrap/-/postcss-replace-overflow-wrap-3.0.0.tgz#61b360ffdaedca84c7c918d2b0f0d0ea559ab01c" + integrity sha512-2T5hcEHArDT6X9+9dVSPQdo7QHzG4XKclFT8rU5TzJPDN7RIRTbO9c4drUISOVemLj03aezStHCR2AIcr8XLpw== + dependencies: + postcss "^7.0.2" + +postcss-selector-matches@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/postcss-selector-matches/-/postcss-selector-matches-4.0.0.tgz#71c8248f917ba2cc93037c9637ee09c64436fcff" + integrity sha512-LgsHwQR/EsRYSqlwdGzeaPKVT0Ml7LAT6E75T8W8xLJY62CE4S/l03BWIt3jT8Taq22kXP08s2SfTSzaraoPww== + dependencies: + balanced-match "^1.0.0" + postcss "^7.0.2" + +postcss-selector-not@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/postcss-selector-not/-/postcss-selector-not-4.0.0.tgz#c68ff7ba96527499e832724a2674d65603b645c0" + integrity sha512-W+bkBZRhqJaYN8XAnbbZPLWMvZD1wKTu0UxtFKdhtGjWYmxhkUneoeOhRJKdAE5V7ZTlnbHfCR+6bNwK9e1dTQ== + dependencies: + balanced-match "^1.0.0" + postcss "^7.0.2" + +postcss-selector-parser@^3.0.0: + version "3.1.2" + resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-3.1.2.tgz#b310f5c4c0fdaf76f94902bbaa30db6aa84f5270" + integrity sha512-h7fJ/5uWuRVyOtkO45pnt1Ih40CEleeyCHzipqAZO2e5H20g25Y48uYnFUiShvY4rZWNJ/Bib/KVPmanaCtOhA== + dependencies: + dot-prop "^5.2.0" + indexes-of "^1.0.1" + uniq "^1.0.1" + +postcss-selector-parser@^5.0.0-rc.3, postcss-selector-parser@^5.0.0-rc.4: + version "5.0.0" + resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-5.0.0.tgz#249044356697b33b64f1a8f7c80922dddee7195c" + integrity sha512-w+zLE5Jhg6Liz8+rQOWEAwtwkyqpfnmsinXjXg6cY7YIONZZtgvE0v2O0uhQBs0peNomOJwWRKt6JBfTdTd3OQ== + dependencies: + cssesc "^2.0.0" + indexes-of "^1.0.1" + uniq "^1.0.1" + +postcss-selector-parser@^6.0.0, postcss-selector-parser@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.2.tgz#934cf799d016c83411859e09dcecade01286ec5c" + integrity sha512-36P2QR59jDTOAiIkqEprfJDsoNrvwFei3eCqKd1Y0tUsBimsq39BLp7RD+JWny3WgB1zGhJX8XVePwm9k4wdBg== + dependencies: + cssesc "^3.0.0" + indexes-of "^1.0.1" + uniq "^1.0.1" + +postcss-svgo@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-svgo/-/postcss-svgo-4.0.2.tgz#17b997bc711b333bab143aaed3b8d3d6e3d38258" + integrity sha512-C6wyjo3VwFm0QgBy+Fu7gCYOkCmgmClghO+pjcxvrcBKtiKt0uCF+hvbMO1fyv5BMImRK90SMb+dwUnfbGd+jw== + dependencies: + is-svg "^3.0.0" + postcss "^7.0.0" + postcss-value-parser "^3.0.0" + svgo "^1.0.0" + +postcss-unique-selectors@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/postcss-unique-selectors/-/postcss-unique-selectors-4.0.1.tgz#9446911f3289bfd64c6d680f073c03b1f9ee4bac" + integrity sha512-+JanVaryLo9QwZjKrmJgkI4Fn8SBgRO6WXQBJi7KiAVPlmxikB5Jzc4EvXMT2H0/m0RjrVVm9rGNhZddm/8Spg== + dependencies: + alphanum-sort "^1.0.0" + postcss "^7.0.0" + uniqs "^2.0.0" + +postcss-value-parser@^3.0.0: + version "3.3.1" + resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz#9ff822547e2893213cf1c30efa51ac5fd1ba8281" + integrity sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ== + +postcss-value-parser@^4.0.0, postcss-value-parser@^4.0.2, postcss-value-parser@^4.0.3: + version "4.1.0" + resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.1.0.tgz#443f6a20ced6481a2bda4fa8532a6e55d789a2cb" + integrity sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ== + +postcss-values-parser@^2.0.0, postcss-values-parser@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/postcss-values-parser/-/postcss-values-parser-2.0.1.tgz#da8b472d901da1e205b47bdc98637b9e9e550e5f" + integrity sha512-2tLuBsA6P4rYTNKCXYG/71C7j1pU6pK503suYOmn4xYrQIzW+opD+7FAFNuGSdZC/3Qfy334QbeMu7MEb8gOxg== + dependencies: + flatten "^1.0.2" + indexes-of "^1.0.1" + uniq "^1.0.1" + +postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.14, postcss@^7.0.16, postcss@^7.0.17, postcss@^7.0.2, postcss@^7.0.26, postcss@^7.0.27, postcss@^7.0.5, postcss@^7.0.6: + version "7.0.30" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.30.tgz#cc9378beffe46a02cbc4506a0477d05fcea9a8e2" + integrity sha512-nu/0m+NtIzoubO+xdAlwZl/u5S5vi/y6BCsoL8D+8IxsD3XvBS8X4YEADNIVXKVuQvduiucnRv+vPIqj56EGMQ== + dependencies: + chalk "^2.4.2" + source-map "^0.6.1" + supports-color "^6.1.0" + +prefix-style@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/prefix-style/-/prefix-style-2.0.1.tgz#66bba9a870cfda308a5dc20e85e9120932c95a06" + integrity sha1-ZrupqHDP2jCKXcIOhekSCTLJWgY= + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= + +prepend-http@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" + integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw= + +prettier-linter-helpers@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" + integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== + dependencies: + fast-diff "^1.1.2" + +prettier@^1.19.1: + version "1.19.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" + integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== + +pretty-error@^2.0.2: + version "2.1.1" + resolved "https://registry.yarnpkg.com/pretty-error/-/pretty-error-2.1.1.tgz#5f4f87c8f91e5ae3f3ba87ab4cf5e03b1a17f1a3" + integrity sha1-X0+HyPkeWuPzuoerTPXgOxoX8aM= + dependencies: + renderkid "^2.0.1" + utila "~0.4" + +pretty-format@^21.2.1: + version "21.2.1" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-21.2.1.tgz#ae5407f3cf21066cd011aa1ba5fce7b6a2eddb36" + integrity sha512-ZdWPGYAnYfcVP8yKA3zFjCn8s4/17TeYH28MXuC8vTp0o21eXjbFGcOAXZEaDaOFJjc3h2qa7HQNHNshhvoh2A== + dependencies: + ansi-regex "^3.0.0" + ansi-styles "^3.2.0" + +pretty-format@^24.9.0: + version "24.9.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.9.0.tgz#12fac31b37019a4eea3c11aa9a959eb7628aa7c9" + integrity sha512-00ZMZUiHaJrNfk33guavqgvfJS30sLYf0f8+Srklv0AMPodGGHcoHgksZ3OThYnIvOd+8yMCn0YiEOogjlgsnA== + dependencies: + "@jest/types" "^24.9.0" + ansi-regex "^4.0.0" + ansi-styles "^3.2.0" + react-is "^16.8.4" + +pretty-format@^25.2.1, pretty-format@^25.5.0: + version "25.5.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-25.5.0.tgz#7873c1d774f682c34b8d48b6743a2bf2ac55791a" + integrity sha512-kbo/kq2LQ/A/is0PQwsEHM7Ca6//bGPPvU6UnsdDRSKTWxT/ru/xb88v4BJf6a69H+uTytOEsTusT9ksd/1iWQ== + dependencies: + "@jest/types" "^25.5.0" + ansi-regex "^5.0.0" + ansi-styles "^4.0.0" + react-is "^16.12.0" + +pretty-format@^26.0.1: + version "26.0.1" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-26.0.1.tgz#a4fe54fe428ad2fd3413ca6bbd1ec8c2e277e197" + integrity sha512-SWxz6MbupT3ZSlL0Po4WF/KujhQaVehijR2blyRDCzk9e45EaYMVhMBn49fnRuHxtkSpXTes1GxNpVmH86Bxfw== + dependencies: + "@jest/types" "^26.0.1" + ansi-regex "^5.0.0" + ansi-styles "^4.0.0" + react-is "^16.12.0" + +private@^0.1.8, private@~0.1.5: + version "0.1.8" + resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" + integrity sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg== + +process-nextick-args@~2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" + integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== + +process@^0.11.10: + version "0.11.10" + resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" + integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI= + +progress@^2.0.0, progress@^2.0.1: + version "2.0.3" + resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" + integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== + +promise-inflight@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3" + integrity sha1-mEcocL8igTL8vdhoEputEsPAKeM= + +promise@^7.1.1: + version "7.3.1" + resolved "https://registry.yarnpkg.com/promise/-/promise-7.3.1.tgz#064b72602b18f90f29192b8b1bc418ffd1ebd3bf" + integrity sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg== + dependencies: + asap "~2.0.3" + +prompts@^2.0.1: + version "2.3.2" + resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.3.2.tgz#480572d89ecf39566d2bd3fe2c9fccb7c4c0b068" + integrity sha512-Q06uKs2CkNYVID0VqwfAl9mipo99zkBv/n2JtWY89Yxa3ZabWSrs0e2KTudKVa3peLUvYXMefDqIleLPVUBZMA== + dependencies: + kleur "^3.0.3" + sisteransi "^1.0.4" + +prop-types@15.x, prop-types@^15.5.10, prop-types@^15.5.4, prop-types@^15.5.8, prop-types@^15.6.0, prop-types@^15.6.1, prop-types@^15.6.2, prop-types@^15.7.2: + version "15.7.2" + resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5" + integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ== + dependencies: + loose-envify "^1.4.0" + object-assign "^4.1.1" + react-is "^16.8.1" + +proxy-from-env@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + +prr@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" + integrity sha1-0/wRS6BplaRexok/SEzrHXj19HY= + +pseudomap@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" + integrity sha1-8FKijacOYYkX7wqKw0wa5aaChrM= + +psl@^1.1.28: + version "1.8.0" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24" + integrity sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ== + +public-encrypt@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.3.tgz#4fcc9d77a07e48ba7527e7cbe0de33d0701331e0" + integrity sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q== + dependencies: + bn.js "^4.1.0" + browserify-rsa "^4.0.0" + create-hash "^1.1.0" + parse-asn1 "^5.0.0" + randombytes "^2.0.1" + safe-buffer "^5.1.2" + +pump@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pump/-/pump-2.0.1.tgz#12399add6e4cf7526d973cbc8b5ce2e2908b3909" + integrity sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + +pump@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" + integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + +pumpify@^1.3.3: + version "1.5.1" + resolved "https://registry.yarnpkg.com/pumpify/-/pumpify-1.5.1.tgz#36513be246ab27570b1a374a5ce278bfd74370ce" + integrity sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ== + dependencies: + duplexify "^3.6.0" + inherits "^2.0.3" + pump "^2.0.0" + +punycode@1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.3.2.tgz#9653a036fb7c1ee42342f2325cceefea3926c48d" + integrity sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0= + +punycode@^1.2.4: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + integrity sha1-wNWmOycYgArY4esPpSachN1BhF4= + +punycode@^2.1.0, punycode@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + +puppeteer-core@1.18.1: + version "1.18.1" + resolved "https://registry.yarnpkg.com/puppeteer-core/-/puppeteer-core-1.18.1.tgz#37549e975273b7fa450e0f8a8023db6175ed049a" + integrity sha512-E/p4oIYnPZsCATQD5S6IKOBUnGG87h14OAXAmHjm+9SFIYLBUtY2AWg38Jfus9IjcAucnrYBv6A5372bte/S2g== + dependencies: + debug "^4.1.0" + extract-zip "^1.6.6" + https-proxy-agent "^2.2.1" + mime "^2.0.3" + progress "^2.0.1" + proxy-from-env "^1.0.0" + rimraf "^2.6.1" + ws "^6.1.0" + +q@^1.1.2: + version "1.5.1" + resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" + integrity sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc= + +qs@~6.5.2: + version "6.5.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" + integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== + +query-string@^4.1.0: + version "4.3.4" + resolved "https://registry.yarnpkg.com/query-string/-/query-string-4.3.4.tgz#bbb693b9ca915c232515b228b1a02b609043dbeb" + integrity sha1-u7aTucqRXCMlFbIosaArYJBD2+s= + dependencies: + object-assign "^4.1.0" + strict-uri-encode "^1.0.0" + +querystring-es3@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73" + integrity sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM= + +querystring@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/querystring/-/querystring-0.2.0.tgz#b209849203bb25df820da756e747005878521620" + integrity sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA= + +raf-schd@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/raf-schd/-/raf-schd-4.0.2.tgz#bd44c708188f2e84c810bf55fcea9231bcaed8a0" + integrity sha512-VhlMZmGy6A6hrkJWHLNTGl5gtgMUm+xfGza6wbwnE914yeQ5Ybm18vgM734RZhMgfw4tacUrWseGZlpUrrakEQ== + +raf@^3.1.0, raf@^3.4.0, raf@^3.4.1: + version "3.4.1" + resolved "https://registry.yarnpkg.com/raf/-/raf-3.4.1.tgz#0742e99a4a6552f445d73e3ee0328af0ff1ede39" + integrity sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA== + dependencies: + performance-now "^2.1.0" + +randombytes@^2.0.0, randombytes@^2.0.1, randombytes@^2.0.5: + version "2.1.0" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" + integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== + dependencies: + safe-buffer "^5.1.0" + +randomfill@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/randomfill/-/randomfill-1.0.4.tgz#c92196fc86ab42be983f1bf31778224931d61458" + integrity sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw== + dependencies: + randombytes "^2.0.5" + safe-buffer "^5.1.0" + +rc-align@^2.4.0: + version "2.4.5" + resolved "https://registry.yarnpkg.com/rc-align/-/rc-align-2.4.5.tgz#c941a586f59d1017f23a428f0b468663fb7102ab" + integrity sha512-nv9wYUYdfyfK+qskThf4BQUSIadeI/dCsfaMZfNEoxm9HwOIioQ+LyqmMK6jWHAZQgOzMLaqawhuBXlF63vgjw== + dependencies: + babel-runtime "^6.26.0" + dom-align "^1.7.0" + prop-types "^15.5.8" + rc-util "^4.0.4" + +rc-align@^3.0.0-rc.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/rc-align/-/rc-align-3.0.0.tgz#5b0510aaa12dfef7b8d79877d39e43de5ef831bc" + integrity sha512-/T/4LOlKJLFe8EwsORuc3pFWOJ8caUpj2vtKIHWea4PhakoleM7KDQsx0n1WDQENIeSfrP9P1FowVxAdvhjsvw== + dependencies: + classnames "2.x" + dom-align "^1.7.0" + rc-util "^4.12.0" + resize-observer-polyfill "^1.5.1" + +rc-animate@2.x: + version "2.11.1" + resolved "https://registry.yarnpkg.com/rc-animate/-/rc-animate-2.11.1.tgz#2666eeb6f1f2a495a13b2af09e236712278fdb2c" + integrity sha512-1NyuCGFJG/0Y+9RKh5y/i/AalUCA51opyyS/jO2seELpgymZm2u9QV3xwODwEuzkmeQ1BDPxMLmYLcTJedPlkQ== + dependencies: + babel-runtime "6.x" + classnames "^2.2.6" + css-animation "^1.3.2" + prop-types "15.x" + raf "^3.4.0" + rc-util "^4.15.3" + react-lifecycles-compat "^3.0.4" + +rc-animate@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/rc-animate/-/rc-animate-3.0.0.tgz#f76d7051136b7d650fb3d29366a160e95a369c0a" + integrity sha512-+ANeyCei4lWSJHWTcocywdYAy6lpRdBva/7Fs3nBBiAngW/W+Gmx+gQEcsmcgQBqziWUYnR91Bk12ltR3GBHPA== + dependencies: + "@ant-design/css-animation" "^1.7.2" + classnames "^2.2.6" + raf "^3.4.0" + rc-util "^4.15.3" + +rc-cascader@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/rc-cascader/-/rc-cascader-1.0.1.tgz#770de1e1fa7bd559aabd4d59e525819b8bc809b7" + integrity sha512-3mk33+YKJBP1XSrTYbdVLuCC73rUDq5STNALhvua5i8vyIgIxtb5fSl96JdWWq1Oj8tIBoHnCgoEoOYnIXkthQ== + dependencies: + array-tree-filter "^2.1.0" + rc-trigger "^4.0.0" + rc-util "^4.0.4" + warning "^4.0.1" + +rc-drawer@3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/rc-drawer/-/rc-drawer-3.1.3.tgz#cbcb04d4c07f0b66f2ece11d847f4a1bd80ea0b7" + integrity sha512-2z+RdxmzXyZde/1OhVMfDR1e/GBswFeWSZ7FS3Fdd0qhgVdpV1wSzILzzxRaT481ItB5hOV+e8pZT07vdJE8kg== + dependencies: + classnames "^2.2.6" + rc-util "^4.16.1" + react-lifecycles-compat "^3.0.4" + +rc-slider@8.7.1: + version "8.7.1" + resolved "https://registry.yarnpkg.com/rc-slider/-/rc-slider-8.7.1.tgz#9ed07362dc93489a38e654b21b8122ad70fd3c42" + integrity sha512-WMT5mRFUEcrLWwTxsyS8jYmlaMsTVCZIGENLikHsNv+tE8ThU2lCoPfi/xFNUfJFNFSBFP3MwPez9ZsJmNp13g== + dependencies: + babel-runtime "6.x" + classnames "^2.2.5" + prop-types "^15.5.4" + rc-tooltip "^3.7.0" + rc-util "^4.0.4" + react-lifecycles-compat "^3.0.4" + shallowequal "^1.1.0" + warning "^4.0.3" + +rc-time-picker@^3.7.3: + version "3.7.3" + resolved "https://registry.yarnpkg.com/rc-time-picker/-/rc-time-picker-3.7.3.tgz#65a8de904093250ae9c82b02a4905e0f995e23e2" + integrity sha512-Lv1Mvzp9fRXhXEnRLO4nW6GLNxUkfAZ3RsiIBsWjGjXXvMNjdr4BX/ayElHAFK0DoJqOhm7c5tjmIYpEOwcUXg== + dependencies: + classnames "2.x" + moment "2.x" + prop-types "^15.5.8" + raf "^3.4.1" + rc-trigger "^2.2.0" + react-lifecycles-compat "^3.0.4" + +rc-tooltip@^3.7.0: + version "3.7.3" + resolved "https://registry.yarnpkg.com/rc-tooltip/-/rc-tooltip-3.7.3.tgz#280aec6afcaa44e8dff0480fbaff9e87fc00aecc" + integrity sha512-dE2ibukxxkrde7wH9W8ozHKUO4aQnPZ6qBHtrTH9LoO836PjDdiaWO73fgPB05VfJs9FbZdmGPVEbXCeOP99Ww== + dependencies: + babel-runtime "6.x" + prop-types "^15.5.8" + rc-trigger "^2.2.2" + +rc-trigger@^2.2.0, rc-trigger@^2.2.2: + version "2.6.5" + resolved "https://registry.yarnpkg.com/rc-trigger/-/rc-trigger-2.6.5.tgz#140a857cf28bd0fa01b9aecb1e26a50a700e9885" + integrity sha512-m6Cts9hLeZWsTvWnuMm7oElhf+03GOjOLfTuU0QmdB9ZrW7jR2IpI5rpNM7i9MvAAlMAmTx5Zr7g3uu/aMvZAw== + dependencies: + babel-runtime "6.x" + classnames "^2.2.6" + prop-types "15.x" + rc-align "^2.4.0" + rc-animate "2.x" + rc-util "^4.4.0" + react-lifecycles-compat "^3.0.4" + +rc-trigger@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/rc-trigger/-/rc-trigger-4.1.0.tgz#6b13a41161716d6353e6324a01055efacb07cf71" + integrity sha512-EyQjO6aHDAPRvJeyPmg/yVL/8Bp7oA6Lf+4Ay2OyOwhZLzHHN8m+F2XrVWKpjg04eBXbuGBNiucIqv1d/ddE3w== + dependencies: + classnames "^2.2.6" + raf "^3.4.1" + rc-align "^3.0.0-rc.0" + rc-animate "^3.0.0" + rc-util "^4.20.0" + +rc-util@^4.0.4, rc-util@^4.12.0, rc-util@^4.15.3, rc-util@^4.16.1, rc-util@^4.20.0, rc-util@^4.4.0: + version "4.20.5" + resolved "https://registry.yarnpkg.com/rc-util/-/rc-util-4.20.5.tgz#f7c77569e971ae6a8ad56f899cadd22275398325" + integrity sha512-f67s4Dt1quBYhrVPq5QMKmK3eS2hN1NNIAyhaiG0HmvqiGYAXMQ7SP2AlGqv750vnzhJs38JklbkWT1/wjhFPg== + dependencies: + add-dom-event-listener "^1.1.0" + prop-types "^15.5.10" + react-is "^16.12.0" + react-lifecycles-compat "^3.0.4" + shallowequal "^1.1.0" + +react-beautiful-dnd@13.0.0: + version "13.0.0" + resolved "https://registry.yarnpkg.com/react-beautiful-dnd/-/react-beautiful-dnd-13.0.0.tgz#f70cc8ff82b84bc718f8af157c9f95757a6c3b40" + integrity sha512-87It8sN0ineoC3nBW0SbQuTFXM6bUqM62uJGY4BtTf0yzPl8/3+bHMWkgIe0Z6m8e+gJgjWxefGRVfpE3VcdEg== + dependencies: + "@babel/runtime" "^7.8.4" + css-box-model "^1.2.0" + memoize-one "^5.1.1" + raf-schd "^4.0.2" + react-redux "^7.1.1" + redux "^4.0.4" + use-memo-one "^1.1.1" + +react-calendar@2.19.2: + version "2.19.2" + resolved "https://registry.yarnpkg.com/react-calendar/-/react-calendar-2.19.2.tgz#496e78eb11a00aee1ae6b5d02d221ed1ca2db952" + integrity sha512-zKbWxwmYEg84grFsCJz9EYpnGqsZy0iV67dHzkVE0EhBdXMg2eISBQYvw4+t8zdy5ySxQkDhUW8X8ERbSyZPVw== + dependencies: + get-user-locale "^1.2.0" + merge-class-names "^1.1.1" + prop-types "^15.6.0" + react-lifecycles-compat "^3.0.4" + +react-color@2.18.0: + version "2.18.0" + resolved "https://registry.yarnpkg.com/react-color/-/react-color-2.18.0.tgz#34956f0bac394f6c3bc01692fd695644cc775ffd" + integrity sha512-FyVeU1kQiSokWc8NPz22azl1ezLpJdUyTbWL0LPUpcuuYDrZ/Y1veOk9rRK5B3pMlyDGvTk4f4KJhlkIQNRjEA== + dependencies: + "@icons/material" "^0.2.4" + lodash "^4.17.11" + material-colors "^1.2.1" + prop-types "^15.5.10" + reactcss "^1.2.0" + tinycolor2 "^1.4.1" + +react-custom-scrollbars@4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/react-custom-scrollbars/-/react-custom-scrollbars-4.2.1.tgz#830fd9502927e97e8a78c2086813899b2a8b66db" + integrity sha1-gw/ZUCkn6X6KeMIIaBOJmyqLZts= + dependencies: + dom-css "^2.0.0" + prop-types "^15.5.10" + raf "^3.1.0" + +react-dev-utils@^10.2.1: + version "10.2.1" + resolved "https://registry.yarnpkg.com/react-dev-utils/-/react-dev-utils-10.2.1.tgz#f6de325ae25fa4d546d09df4bb1befdc6dd19c19" + integrity sha512-XxTbgJnYZmxuPtY3y/UV0D8/65NKkmaia4rXzViknVnZeVlklSh8u6TnaEYPfAi/Gh1TP4mEOXHI6jQOPbeakQ== + dependencies: + "@babel/code-frame" "7.8.3" + address "1.1.2" + browserslist "4.10.0" + chalk "2.4.2" + cross-spawn "7.0.1" + detect-port-alt "1.1.6" + escape-string-regexp "2.0.0" + filesize "6.0.1" + find-up "4.1.0" + fork-ts-checker-webpack-plugin "3.1.1" + global-modules "2.0.0" + globby "8.0.2" + gzip-size "5.1.1" + immer "1.10.0" + inquirer "7.0.4" + is-root "2.1.0" + loader-utils "1.2.3" + open "^7.0.2" + pkg-up "3.1.0" + react-error-overlay "^6.0.7" + recursive-readdir "2.2.2" + shell-quote "1.7.2" + strip-ansi "6.0.0" + text-table "0.2.0" + +react-dom@16.12.0: + version "16.12.0" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.12.0.tgz#0da4b714b8d13c2038c9396b54a92baea633fe11" + integrity sha512-LMxFfAGrcS3kETtQaCkTKjMiifahaMySFDn71fZUNpPHZQEzmk/GiAeIT8JSOrHB23fnuCOMruL2a8NYlw+8Gw== + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.2" + scheduler "^0.18.0" + +react-error-overlay@^6.0.7: + version "6.0.7" + resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.7.tgz#1dcfb459ab671d53f660a991513cb2f0a0553108" + integrity sha512-TAv1KJFh3RhqxNvhzxj6LeT5NWklP6rDr2a0jaTfsZ5wSZWHOGeqQyejUp3xxLfPt2UpyJEcVQB/zyPcmonNFA== + +react-highlight-words@0.16.0: + version "0.16.0" + resolved "https://registry.yarnpkg.com/react-highlight-words/-/react-highlight-words-0.16.0.tgz#4b4b9824e3d2b98789d3e3b3aedb5e961ae1b7cf" + integrity sha512-q34TwCSJOL+5pVDv6LUj3amaoyXdNDwd7zRqVAvceOrO9g1haWLAglK6WkGLMNUa3PFN8EgGedLg/k8Gpndxqg== + dependencies: + highlight-words-core "^1.2.0" + memoize-one "^4.0.0" + prop-types "^15.5.8" + +react-hook-form@5.1.3: + version "5.1.3" + resolved "https://registry.yarnpkg.com/react-hook-form/-/react-hook-form-5.1.3.tgz#24610e11878c6bd143569ce203320f7367893e75" + integrity sha512-6+6wSge72A2Y7WGqMke4afOz0uDJ3gOPSysmYKkjJszSbmw8X8at7tJPzifnZ+cwLDR88b4on/D+jfH5azWbIw== + +react-immutable-proptypes@^2.1.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/react-immutable-proptypes/-/react-immutable-proptypes-2.2.0.tgz#cce96d68cc3c18e89617cbf3092d08e35126af4a" + integrity sha512-Vf4gBsePlwdGvSZoLSBfd4HAP93HDauMY4fDjXhreg/vg6F3Fj/MXDNyTbltPC/xZKmZc+cjLu3598DdYK6sgQ== + dependencies: + invariant "^2.2.2" + +react-input-autosize@^2.2.2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/react-input-autosize/-/react-input-autosize-2.2.2.tgz#fcaa7020568ec206bc04be36f4eb68e647c4d8c2" + integrity sha512-jQJgYCA3S0j+cuOwzuCd1OjmBmnZLdqQdiLKRYrsMMzbjUrVDS5RvJUDwJqA7sKuksDuzFtm6hZGKFu7Mjk5aw== + dependencies: + prop-types "^15.5.8" + +react-is@^16.12.0, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.4, react-is@^16.9.0: + version "16.13.1" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" + integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== + +react-lifecycles-compat@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362" + integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA== + +react-popper@1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/react-popper/-/react-popper-1.3.3.tgz#2c6cef7515a991256b4f0536cd4bdcb58a7b6af6" + integrity sha512-ynMZBPkXONPc5K4P5yFWgZx5JGAUIP3pGGLNs58cfAPgK67olx7fmLp+AdpZ0+GoQ+ieFDa/z4cdV6u7sioH6w== + dependencies: + "@babel/runtime" "^7.1.2" + create-react-context "<=0.2.2" + popper.js "^1.14.4" + prop-types "^15.6.1" + typed-styles "^0.0.7" + warning "^4.0.2" + +react-redux@^7.1.1: + version "7.2.0" + resolved "https://registry.yarnpkg.com/react-redux/-/react-redux-7.2.0.tgz#f970f62192b3981642fec46fd0db18a074fe879d" + integrity sha512-EvCAZYGfOLqwV7gh849xy9/pt55rJXPwmYvI4lilPM5rUT/1NxuuN59ipdBksRVSvz0KInbPnp4IfoXJXCqiDA== + dependencies: + "@babel/runtime" "^7.5.5" + hoist-non-react-statics "^3.3.0" + loose-envify "^1.4.0" + prop-types "^15.7.2" + react-is "^16.9.0" + +react-storybook-addon-props-combinations@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/react-storybook-addon-props-combinations/-/react-storybook-addon-props-combinations-1.1.0.tgz#22a61794cc3c106bf44be809af3c3241f6988e72" + integrity sha512-gCHyLTkXthuP3wV5nQn3A6ZrBjYnRniRtVprSrq+7Vu9SX1jUhIEPvqdLdPVRmlq9rwgKAX2QVo6kNd95kZ7Hw== + dependencies: + object-hash "^1.1.8" + pretty-format "^21.2.1" + +react-table@7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/react-table/-/react-table-7.0.0.tgz#3297e454cbffe916626b184f5394d7e7e098fa36" + integrity sha512-/RKUYLuqrupUs0qHdjdQLmgwdQ9mgXPnpshqv2T+OQUGhTu0XuLXVc6GOIywemXNf6qjL3dj81O6zALLK74Emw== + +react-transition-group@4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/react-transition-group/-/react-transition-group-4.3.0.tgz#fea832e386cf8796c58b61874a3319704f5ce683" + integrity sha512-1qRV1ZuVSdxPlPf4O8t7inxUGpdyO5zG9IoNfJxSO0ImU2A1YWkEQvFPuIPZmMLkg5hYs7vv5mMOyfgSkvAwvw== + dependencies: + "@babel/runtime" "^7.5.5" + dom-helpers "^5.0.1" + loose-envify "^1.4.0" + prop-types "^15.6.2" + +react-transition-group@^4.3.0: + version "4.4.1" + resolved "https://registry.yarnpkg.com/react-transition-group/-/react-transition-group-4.4.1.tgz#63868f9325a38ea5ee9535d828327f85773345c9" + integrity sha512-Djqr7OQ2aPUiYurhPalTrVy9ddmFCCzwhqQmtN+J3+3DzLO209Fdr70QrN8Z3DsglWql6iY1lDWAfpFiBtuKGw== + dependencies: + "@babel/runtime" "^7.5.5" + dom-helpers "^5.0.1" + loose-envify "^1.4.0" + prop-types "^15.6.2" + +react@16.12.0: + version "16.12.0" + resolved "https://registry.yarnpkg.com/react/-/react-16.12.0.tgz#0c0a9c6a142429e3614834d5a778e18aa78a0b83" + integrity sha512-fglqy3k5E+81pA8s+7K0/T3DBCF0ZDOher1elBFzF7O6arXJgzyu/FW+COxFvAWXJoJN9KIZbT2LXlukwphYTA== + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.2" + +"react@>=15.0.0 <17.0.0": + version "16.13.1" + resolved "https://registry.yarnpkg.com/react/-/react-16.13.1.tgz#2e818822f1a9743122c063d6410d85c1e3afe48e" + integrity sha512-YMZQQq32xHLX0bz5Mnibv1/LHb3Sqzngu7xstSM+vrkE5Kzr9xE0yMByK5kMoTK30YVJE61WfbxIFFvfeDKT1w== + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + prop-types "^15.6.2" + +reactcss@^1.2.0: + version "1.2.3" + resolved "https://registry.yarnpkg.com/reactcss/-/reactcss-1.2.3.tgz#c00013875e557b1cf0dfd9a368a1c3dab3b548dd" + integrity sha512-KiwVUcFu1RErkI97ywr8nvx8dNOpT03rbnma0SSalTYjkrPYaEajR4a/MRt6DZ46K6arDRbWMNHF+xH7G7n/8A== + dependencies: + lodash "^4.0.1" + +read-pkg-up@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" + integrity sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI= + dependencies: + find-up "^1.0.0" + read-pkg "^1.0.0" + +read-pkg-up@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-4.0.0.tgz#1b221c6088ba7799601c808f91161c66e58f8978" + integrity sha512-6etQSH7nJGsK0RbG/2TeDzZFa8shjQ1um+SwQQ5cwKy0dhSXdOncEhb1CPpvQG4h7FyOV6EB6YlV0yJvZQNAkA== + dependencies: + find-up "^3.0.0" + read-pkg "^3.0.0" + +read-pkg@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" + integrity sha1-9f+qXs0pyzHAR0vKfXVra7KePyg= + dependencies: + load-json-file "^1.0.0" + normalize-package-data "^2.3.2" + path-type "^1.0.0" + +read-pkg@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389" + integrity sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k= + dependencies: + load-json-file "^4.0.0" + normalize-package-data "^2.3.2" + path-type "^3.0.0" + +read-pkg@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-4.0.1.tgz#963625378f3e1c4d48c85872b5a6ec7d5d093237" + integrity sha1-ljYlN48+HE1IyFhytabsfV0JMjc= + dependencies: + normalize-package-data "^2.3.2" + parse-json "^4.0.0" + pify "^3.0.0" + +"readable-stream@1 || 2", readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.3, readable-stream@^2.3.6, readable-stream@~2.3.6: + version "2.3.7" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" + integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.1.1" + util-deprecate "~1.0.1" + +readable-stream@^3.1.1, readable-stream@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198" + integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readdirp@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-2.2.1.tgz#0e87622a3325aa33e892285caf8b4e846529a525" + integrity sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ== + dependencies: + graceful-fs "^4.1.11" + micromatch "^3.1.10" + readable-stream "^2.0.2" + +readdirp@~3.4.0: + version "3.4.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.4.0.tgz#9fdccdf9e9155805449221ac645e8303ab5b9ada" + integrity sha512-0xe001vZBnJEK+uKcj8qOhyAKPzIT+gStxWr3LCB0DwcXR5NZJ3IaC+yGnHCYzB/S7ov3m3EEbZI2zeNvX+hGQ== + dependencies: + picomatch "^2.2.1" + +realpath-native@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/realpath-native/-/realpath-native-1.1.0.tgz#2003294fea23fb0672f2476ebe22fcf498a2d65c" + integrity sha512-wlgPA6cCIIg9gKz0fgAPjnzh4yR/LnXovwuo9hvyGvx3h8nX4+/iLZplfUWasXpqD8BdnGnP5njOFjkUwPzvjA== + dependencies: + util.promisify "^1.0.0" + +recast@~0.11.12: + version "0.11.23" + resolved "https://registry.yarnpkg.com/recast/-/recast-0.11.23.tgz#451fd3004ab1e4df9b4e4b66376b2a21912462d3" + integrity sha1-RR/TAEqx5N+bTktmN2sqIZEkYtM= + dependencies: + ast-types "0.9.6" + esprima "~3.1.0" + private "~0.1.5" + source-map "~0.5.0" + +recursive-readdir@2.2.2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/recursive-readdir/-/recursive-readdir-2.2.2.tgz#9946fb3274e1628de6e36b2f6714953b4845094f" + integrity sha512-nRCcW9Sj7NuZwa2XvH9co8NPeXUBhZP7CRKJtU+cS6PW9FpCIFoI5ib0NT1ZrbNuPoRy0ylyCaUL8Gih4LSyFg== + dependencies: + minimatch "3.0.4" + +redent@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde" + integrity sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94= + dependencies: + indent-string "^2.1.0" + strip-indent "^1.0.1" + +reduce-flatten@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/reduce-flatten/-/reduce-flatten-1.0.1.tgz#258c78efd153ddf93cb561237f61184f3696e327" + integrity sha1-JYx479FT3fk8tWEjf2EYTzaW4yc= + +redux@^4.0.4: + version "4.0.5" + resolved "https://registry.yarnpkg.com/redux/-/redux-4.0.5.tgz#4db5de5816e17891de8a80c424232d06f051d93f" + integrity sha512-VSz1uMAH24DM6MF72vcojpYPtrTUu3ByVWfPL1nPfVRb5mZVTve5GnNCUV53QM/BZ66xfWrm0CTWoM+Xlz8V1w== + dependencies: + loose-envify "^1.4.0" + symbol-observable "^1.2.0" + +regenerate-unicode-properties@^8.2.0: + version "8.2.0" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz#e5de7111d655e7ba60c057dbe9ff37c87e65cdec" + integrity sha512-F9DjY1vKLo/tPePDycuH3dn9H1OTPIkVD9Kz4LODu+F2C75mgjAJ7x/gwy6ZcSNRAAkhNlJSOHRe8k3p+K9WhA== + dependencies: + regenerate "^1.4.0" + +regenerate@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11" + integrity sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg== + +regenerator-runtime@^0.11.0: + version "0.11.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" + integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg== + +regenerator-runtime@^0.13.4: + version "0.13.5" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz#d878a1d094b4306d10b9096484b33ebd55e26697" + integrity sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA== + +regenerator-transform@^0.14.2: + version "0.14.4" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.14.4.tgz#5266857896518d1616a78a0479337a30ea974cc7" + integrity sha512-EaJaKPBI9GvKpvUz2mz4fhx7WPgvwRLY9v3hlNHWmAuJHI13T4nwKnNvm5RWJzEdnI5g5UwtOww+S8IdoUC2bw== + dependencies: + "@babel/runtime" "^7.8.4" + private "^0.1.8" + +regex-not@^1.0.0, regex-not@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" + integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== + dependencies: + extend-shallow "^3.0.2" + safe-regex "^1.1.0" + +regexp.prototype.flags@^1.2.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.3.0.tgz#7aba89b3c13a64509dabcf3ca8d9fbb9bdf5cb75" + integrity sha512-2+Q0C5g951OlYlJz6yu5/M33IcsESLlLfsyIaLJaG4FA2r4yP8MvVMJUUP/fVBkSpbbbZlS5gynbEWLipiiXiQ== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.0-next.1" + +regexpp@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f" + integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw== + +regexpp@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.1.0.tgz#206d0ad0a5648cffbdb8ae46438f3dc51c9f78e2" + integrity sha512-ZOIzd8yVsQQA7j8GCSlPGXwg5PfmA1mrq0JP4nGhh54LaKN3xdai/vHUDu74pKwV8OxseMS65u2NImosQcSD0Q== + +regexpu-core@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.7.0.tgz#fcbf458c50431b0bb7b45d6967b8192d91f3d938" + integrity sha512-TQ4KXRnIn6tz6tjnrXEkD/sshygKH/j5KzK86X8MkeHyZ8qst/LZ89j3X4/8HEIfHANTFIP/AbXakeRhWIl5YQ== + dependencies: + regenerate "^1.4.0" + regenerate-unicode-properties "^8.2.0" + regjsgen "^0.5.1" + regjsparser "^0.6.4" + unicode-match-property-ecmascript "^1.0.4" + unicode-match-property-value-ecmascript "^1.2.0" + +regextras@^0.7.0: + version "0.7.1" + resolved "https://registry.yarnpkg.com/regextras/-/regextras-0.7.1.tgz#be95719d5f43f9ef0b9fa07ad89b7c606995a3b2" + integrity sha512-9YXf6xtW+qzQ+hcMQXx95MOvfqXFgsKDZodX3qZB0x2n5Z94ioetIITsBtvJbiOyxa/6s9AtyweBLCdPmPko/w== + +regjsgen@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.5.1.tgz#48f0bf1a5ea205196929c0d9798b42d1ed98443c" + integrity sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg== + +regjsparser@^0.6.4: + version "0.6.4" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.6.4.tgz#a769f8684308401a66e9b529d2436ff4d0666272" + integrity sha512-64O87/dPDgfk8/RQqC4gkZoGyyWFIEUTTh80CU6CWuK5vkCGyekIx+oKcEIYtP/RAxSQltCZHCNu/mdd7fqlJw== + dependencies: + jsesc "~0.5.0" + +relateurl@0.2.x: + version "0.2.7" + resolved "https://registry.yarnpkg.com/relateurl/-/relateurl-0.2.7.tgz#54dbf377e51440aca90a4cd274600d3ff2d888a9" + integrity sha1-VNvzd+UUQKypCkzSdGANP/LYiKk= + +remove-trailing-separator@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" + integrity sha1-wkvOKig62tW8P1jg1IJJuSN52O8= + +renderkid@^2.0.1: + version "2.0.3" + resolved "https://registry.yarnpkg.com/renderkid/-/renderkid-2.0.3.tgz#380179c2ff5ae1365c522bf2fcfcff01c5b74149" + integrity sha512-z8CLQp7EZBPCwCnncgf9C4XAi3WR0dv+uWu/PjIyhhAb5d6IJ/QZqlHFprHeKT+59//V6BNUsLbvN8+2LarxGA== + dependencies: + css-select "^1.1.0" + dom-converter "^0.2" + htmlparser2 "^3.3.0" + strip-ansi "^3.0.0" + utila "^0.4.0" + +repeat-element@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.3.tgz#782e0d825c0c5a3bb39731f84efee6b742e6b1ce" + integrity sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g== + +repeat-string@^1.5.2, repeat-string@^1.5.4, repeat-string@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + integrity sha1-jcrkcOHIirwtYA//Sndihtp15jc= + +repeating@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" + integrity sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo= + dependencies: + is-finite "^1.0.0" + +replace-in-file-webpack-plugin@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/replace-in-file-webpack-plugin/-/replace-in-file-webpack-plugin-1.0.6.tgz#eee7e139be967e8e48a0552f73037ed567b54dbd" + integrity sha512-+KRgNYL2nbc6nza6SeF+wTBNkovuHFTfJF8QIEqZg5MbwkYpU9no0kH2YU354wvY/BK8mAC2UKoJ7q+sJTvciw== + +replace-in-file@^4.1.0: + version "4.3.1" + resolved "https://registry.yarnpkg.com/replace-in-file/-/replace-in-file-4.3.1.tgz#c67c92178b38052008e379197cc0d86ca927f7b0" + integrity sha512-FqVvfmpqGTD2JRGI1JjJ86b24P17x/WWwGdxExeyJxnh/2rVQz2+jXfD1507UnnhEQw092X0u0DPCBf1WC4ooQ== + dependencies: + chalk "^2.4.2" + glob "^7.1.6" + yargs "^15.0.2" + +request-promise-core@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.3.tgz#e9a3c081b51380dfea677336061fea879a829ee9" + integrity sha512-QIs2+ArIGQVp5ZYbWD5ZLCY29D5CfWizP8eWnm8FoGD1TX61veauETVQbrV60662V0oFBkrDOuaBI8XgtuyYAQ== + dependencies: + lodash "^4.17.15" + +request-promise-native@^1.0.5: + version "1.0.8" + resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.8.tgz#a455b960b826e44e2bf8999af64dff2bfe58cb36" + integrity sha512-dapwLGqkHtwL5AEbfenuzjTYg35Jd6KPytsC2/TLkVMz8rm+tNt72MGUWT1RP/aYawMpN6HqbNGBQaRcBtjQMQ== + dependencies: + request-promise-core "1.1.3" + stealthy-require "^1.1.1" + tough-cookie "^2.3.3" + +request@^2.83.0, request@^2.87.0, request@^2.88.0: + version "2.88.2" + resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3" + integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw== + dependencies: + aws-sign2 "~0.7.0" + aws4 "^1.8.0" + caseless "~0.12.0" + combined-stream "~1.0.6" + extend "~3.0.2" + forever-agent "~0.6.1" + form-data "~2.3.2" + har-validator "~5.1.3" + http-signature "~1.2.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.19" + oauth-sign "~0.9.0" + performance-now "^2.1.0" + qs "~6.5.2" + safe-buffer "^5.1.2" + tough-cookie "~2.5.0" + tunnel-agent "^0.6.0" + uuid "^3.3.2" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + +require-main-filename@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" + integrity sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE= + +require-main-filename@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" + integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== + +resize-observer-polyfill@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz#0e9020dd3d21024458d4ebd27e23e40269810464" + integrity sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg== + +resolve-cwd@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-2.0.0.tgz#00a9f7387556e27038eae232caa372a6a59b665a" + integrity sha1-AKn3OHVW4nA46uIyyqNypqWbZlo= + dependencies: + resolve-from "^3.0.0" + +resolve-from@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" + integrity sha1-six699nWiBvItuZTM17rywoYh0g= + +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + +resolve-url@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" + integrity sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo= + +resolve@1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" + integrity sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs= + +resolve@1.x, resolve@^1.10.0, resolve@^1.12.0, resolve@^1.3.2: + version "1.17.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.17.0.tgz#b25941b54968231cc2d1bb76a79cb7f2c0bf8444" + integrity sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w== + dependencies: + path-parse "^1.0.6" + +resolve@~1.15.1: + version "1.15.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.15.1.tgz#27bdcdeffeaf2d6244b95bb0f9f4b4653451f3e8" + integrity sha512-84oo6ZTtoTUpjgNEr5SJyzQhzL72gaRodsSfyxC/AXRvwu0Yse9H8eF9IpGo7b8YetZhlI6v7ZQ6bKBFV/6S7w== + dependencies: + path-parse "^1.0.6" + +restore-cursor@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" + integrity sha1-n37ih/gv0ybU/RYpI9YhKe7g368= + dependencies: + onetime "^2.0.0" + signal-exit "^3.0.2" + +restore-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" + integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== + dependencies: + onetime "^5.1.0" + signal-exit "^3.0.2" + +resumer@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/resumer/-/resumer-0.0.0.tgz#f1e8f461e4064ba39e82af3cdc2a8c893d076759" + integrity sha1-8ej0YeQGS6Oegq883CqMiT0HZ1k= + dependencies: + through "~2.3.4" + +ret@~0.1.10: + version "0.1.15" + resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" + integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== + +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + +rgb-regex@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/rgb-regex/-/rgb-regex-1.0.1.tgz#c0e0d6882df0e23be254a475e8edd41915feaeb1" + integrity sha1-wODWiC3w4jviVKR16O3UGRX+rrE= + +rgba-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/rgba-regex/-/rgba-regex-1.0.0.tgz#43374e2e2ca0968b0ef1523460b7d730ff22eeb3" + integrity sha1-QzdOLiyglosO8VI0YLfXMP8i7rM= + +right-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" + integrity sha1-YTObci/mo1FWiSENJOFMlhSGE+8= + dependencies: + align-text "^0.1.1" + +rimraf@2, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.3, rimraf@^2.7.1: + version "2.7.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" + integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== + dependencies: + glob "^7.1.3" + +rimraf@2.6.3: + version "2.6.3" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" + integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== + dependencies: + glob "^7.1.3" + +rimraf@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + +ripemd160@^2.0.0, ripemd160@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c" + integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA== + dependencies: + hash-base "^3.0.0" + inherits "^2.0.1" + +rollup@^0.25.8: + version "0.25.8" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.25.8.tgz#bf6ce83b87510d163446eeaa577ed6a6fc5835e0" + integrity sha1-v2zoO4dRDRY0Ru6qV37WpvxYNeA= + dependencies: + chalk "^1.1.1" + minimist "^1.2.0" + source-map-support "^0.3.2" + +rsvp@^4.8.4: + version "4.8.5" + resolved "https://registry.yarnpkg.com/rsvp/-/rsvp-4.8.5.tgz#c8f155311d167f68f21e168df71ec5b083113734" + integrity sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA== + +run-async@^2.2.0, run-async@^2.4.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" + integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== + +run-parallel@^1.1.9: + version "1.1.9" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.1.9.tgz#c9dd3a7cf9f4b2c4b6244e173a6ed866e61dd679" + integrity sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q== + +run-queue@^1.0.0, run-queue@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/run-queue/-/run-queue-1.0.3.tgz#e848396f057d223f24386924618e25694161ec47" + integrity sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec= + dependencies: + aproba "^1.1.1" + +rw@1, rw@^1.3.2: + version "1.3.3" + resolved "https://registry.yarnpkg.com/rw/-/rw-1.3.3.tgz#3f862dfa91ab766b14885ef4d01124bfda074fb4" + integrity sha1-P4Yt+pGrdmsUiF700BEkv9oHT7Q= + +rxjs@6.5.5, rxjs@^6.3.3, rxjs@^6.4.0, rxjs@^6.5.3: + version "6.5.5" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.5.tgz#c5c884e3094c8cfee31bf27eb87e54ccfc87f9ec" + integrity sha512-WfQI+1gohdf0Dai/Bbmk5L5ItH5tYqm3ki2c5GdWhKjalzjg93N3avFjVStyZZz+A2Em+ZxKH5bNghw9UeylGQ== + dependencies: + tslib "^1.9.0" + +safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + +safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +safe-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" + integrity sha1-QKNmnzsHfR6UPURinhV91IAjvy4= + dependencies: + ret "~0.1.10" + +"safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +sane@^4.0.3: + version "4.1.0" + resolved "https://registry.yarnpkg.com/sane/-/sane-4.1.0.tgz#ed881fd922733a6c461bc189dc2b6c006f3ffded" + integrity sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA== + dependencies: + "@cnakazawa/watch" "^1.0.3" + anymatch "^2.0.0" + capture-exit "^2.0.0" + exec-sh "^0.3.2" + execa "^1.0.0" + fb-watchman "^2.0.0" + micromatch "^3.1.4" + minimist "^1.1.1" + walker "~1.0.5" + +sass-graph@2.2.5: + version "2.2.5" + resolved "https://registry.yarnpkg.com/sass-graph/-/sass-graph-2.2.5.tgz#a981c87446b8319d96dce0671e487879bd24c2e8" + integrity sha512-VFWDAHOe6mRuT4mZRd4eKE+d8Uedrk6Xnh7Sh9b4NGufQLQjOrvf/MQoOdx+0s92L89FeyUUNfU597j/3uNpag== + dependencies: + glob "^7.0.0" + lodash "^4.0.0" + scss-tokenizer "^0.2.3" + yargs "^13.3.2" + +sass-loader@7.1.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/sass-loader/-/sass-loader-7.1.0.tgz#16fd5138cb8b424bf8a759528a1972d72aad069d" + integrity sha512-+G+BKGglmZM2GUSfT9TLuEp6tzehHPjAMoRRItOojWIqIGPloVCMhNIQuG639eJ+y033PaGTSjLaTHts8Kw79w== + dependencies: + clone-deep "^2.0.1" + loader-utils "^1.0.1" + lodash.tail "^4.1.1" + neo-async "^2.5.0" + pify "^3.0.0" + semver "^5.5.0" + +sax@^1.2.4, sax@~1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" + integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== + +scheduler@^0.18.0: + version "0.18.0" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.18.0.tgz#5901ad6659bc1d8f3fdaf36eb7a67b0d6746b1c4" + integrity sha512-agTSHR1Nbfi6ulI0kYNK0203joW2Y5W4po4l+v03tOoiJKpTBbxpNhWDvqc/4IcOw+KLmSiQLTasZ4cab2/UWQ== + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + +schema-utils@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-1.0.0.tgz#0b79a93204d7b600d4b2850d1f66c2a34951c770" + integrity sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g== + dependencies: + ajv "^6.1.0" + ajv-errors "^1.0.0" + ajv-keywords "^3.1.0" + +schema-utils@^2.5.0, schema-utils@^2.6.5, schema-utils@^2.6.6: + version "2.6.6" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-2.6.6.tgz#299fe6bd4a3365dc23d99fd446caff8f1d6c330c" + integrity sha512-wHutF/WPSbIi9x6ctjGGk2Hvl0VOz5l3EKEuKbjPlB30mKZUzb9A5k9yEXRX3pwyqVLPvpfZZEllaFq/M718hA== + dependencies: + ajv "^6.12.0" + ajv-keywords "^3.4.1" + +scss-tokenizer@^0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz#8eb06db9a9723333824d3f5530641149847ce5d1" + integrity sha1-jrBtualyMzOCTT9VMGQRSYR85dE= + dependencies: + js-base64 "^2.1.8" + source-map "^0.4.2" + +selection-is-backward@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/selection-is-backward/-/selection-is-backward-1.0.0.tgz#97a54633188a511aba6419fc5c1fa91b467e6be1" + integrity sha1-l6VGMxiKURq6ZBn8XB+pG0Z+a+E= + +"semver@2 || 3 || 4 || 5", semver@^5.4.1, semver@^5.5, semver@^5.5.0, semver@^5.6.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== + +semver@7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz#5f3ca35761e47e05b206c6daff2cf814f0316b8e" + integrity sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A== + +semver@^6.0.0, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" + integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== + +semver@^7.1.3: + version "7.3.2" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.2.tgz#604962b052b81ed0786aae84389ffba70ffd3938" + integrity sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ== + +semver@~5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" + integrity sha1-myzl094C0XxgEq0yaqa00M9U+U8= + +serialize-javascript@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-2.1.2.tgz#ecec53b0e0317bdc95ef76ab7074b7384785fa61" + integrity sha512-rs9OggEUF0V4jUSecXazOYsLfu7OGK2qIn3c7IPBiffz32XniEp/TX9Xmc9LQfK2nQ2QKHvZ2oygKUGU0lG4jQ== + +serialize-javascript@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-3.0.0.tgz#492e489a2d77b7b804ad391a5f5d97870952548e" + integrity sha512-skZcHYw2vEX4bw90nAr2iTTsz6x2SrHEnfxgKYmZlvJYBEZrvbKtobJWlQ20zczKb3bsHHXXTYt48zBA7ni9cw== + +set-blocking@^2.0.0, set-blocking@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= + +set-value@^2.0.0, set-value@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" + integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.3" + split-string "^3.0.1" + +setimmediate@^1.0.4, setimmediate@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" + integrity sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU= + +sha.js@^2.4.0, sha.js@^2.4.8: + version "2.4.11" + resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7" + integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ== + dependencies: + inherits "^2.0.1" + safe-buffer "^5.0.1" + +shallow-clone@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-1.0.0.tgz#4480cd06e882ef68b2ad88a3ea54832e2c48b571" + integrity sha512-oeXreoKR/SyNJtRJMAKPDSvd28OqEwG4eR/xc856cRGBII7gX9lvAqDxusPm0846z/w/hWYjI1NpKwJ00NHzRA== + dependencies: + is-extendable "^0.1.1" + kind-of "^5.0.0" + mixin-object "^2.0.1" + +shallowequal@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/shallowequal/-/shallowequal-1.1.0.tgz#188d521de95b9087404fd4dcb68b13df0ae4e7f8" + integrity sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ== + +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + integrity sha1-RKrGW2lbAzmJaMOfNj/uXer98eo= + dependencies: + shebang-regex "^1.0.0" + +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= + +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + +shell-quote@1.7.2: + version "1.7.2" + resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.2.tgz#67a7d02c76c9da24f99d20808fcaded0e0e04be2" + integrity sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg== + +shellwords@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b" + integrity sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww== + +signal-exit@^3.0.0, signal-exit@^3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c" + integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA== + +simple-git@^1.132.0: + version "1.132.0" + resolved "https://registry.yarnpkg.com/simple-git/-/simple-git-1.132.0.tgz#53ac4c5ec9e74e37c2fd461e23309f22fcdf09b1" + integrity sha512-xauHm1YqCTom1sC9eOjfq3/9RKiUA9iPnxBbrY2DdL8l4ADMu0jjM5l5lphQP5YWNqAL2aXC/OeuQ76vHtW5fg== + dependencies: + debug "^4.0.1" + +simple-is@~0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/simple-is/-/simple-is-0.2.0.tgz#2abb75aade39deb5cc815ce10e6191164850baf0" + integrity sha1-Krt1qt453rXMgVzhDmGRFkhQuvA= + +simple-swizzle@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a" + integrity sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo= + dependencies: + is-arrayish "^0.3.1" + +sisteransi@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" + integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== + +slash@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" + integrity sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU= + +slash@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44" + integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A== + +slash@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" + integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== + +slate-base64-serializer@^0.2.111: + version "0.2.115" + resolved "https://registry.yarnpkg.com/slate-base64-serializer/-/slate-base64-serializer-0.2.115.tgz#438e051959bde013b50507f3144257e74039ff7f" + integrity sha512-GnLV7bUW/UQ5j7rVIxCU5zdB6NOVsEU6YWsCp68dndIjSGTGLaQv2+WwV3NcnrGGZEYe5qgo33j2QWrPws2C1A== + dependencies: + isomorphic-base64 "^1.0.2" + +slate-dev-environment@^0.2.2: + version "0.2.5" + resolved "https://registry.yarnpkg.com/slate-dev-environment/-/slate-dev-environment-0.2.5.tgz#481b6906fde5becc390db7c14edf97a4bb0029f2" + integrity sha512-oLD8Fclv/RqrDv6RYfN2CRzNcRXsUB99Qgcw5L/njTjxAdDPguV6edQ3DgUG9Q2pLFLhI15DwsKClzVfFzfwGQ== + dependencies: + is-in-browser "^1.1.3" + +slate-hotkeys@^0.2.9: + version "0.2.11" + resolved "https://registry.yarnpkg.com/slate-hotkeys/-/slate-hotkeys-0.2.11.tgz#a94db117d9a98575671192329b05f23e6f485d6f" + integrity sha512-xhq/TlI74dRbO57O4ulGsvCcV4eaQ5nEEz9noZjeNLtNzFRd6lSgExRqAJqKGGIeJw+FnJ3OcqGvdb5CEc9/Ew== + dependencies: + is-hotkey "0.1.4" + slate-dev-environment "^0.2.2" + +slate-plain-serializer@^0.7.10: + version "0.7.13" + resolved "https://registry.yarnpkg.com/slate-plain-serializer/-/slate-plain-serializer-0.7.13.tgz#6de8f5c645dd749f1b2e4426c20de74bfd213adf" + integrity sha512-TtrlaslxQBEMV0LYdf3s7VAbTxRPe1xaW10WNNGAzGA855/0RhkaHjKkQiRjHv5rvbRleVf7Nxr9fH+4uErfxQ== + +slate-prop-types@^0.5.41: + version "0.5.44" + resolved "https://registry.yarnpkg.com/slate-prop-types/-/slate-prop-types-0.5.44.tgz#da60b69c3451c3bd6cdd60a45d308eeba7e83c76" + integrity sha512-JS0iW7uaciE/W3ADuzeN1HOnSjncQhHPXJ65nZNQzB0DF7mXVmbwQKI6cmCo/xKni7XRJT0JbWSpXFhEdPiBUA== + +slate-react-placeholder@^0.2.8: + version "0.2.9" + resolved "https://registry.yarnpkg.com/slate-react-placeholder/-/slate-react-placeholder-0.2.9.tgz#30f450a05d4871c7d1a27668ebe7907861e7ca74" + integrity sha512-YSJ9Gb4tGpbzPje3eNKtu26hWM8ApxTk9RzjK+6zfD5V/RMTkuWONk24y6c9lZk0OAYNZNUmrnb/QZfU3j9nag== + +slate@0.47.8: + version "0.47.8" + resolved "https://registry.yarnpkg.com/slate/-/slate-0.47.8.tgz#1e987b74d8216d44ec56154f0e6d3c722ce21e6e" + integrity sha512-/Jt0eq4P40qZvtzeKIvNb+1N97zVICulGQgQoMDH0TI8h8B+5kqa1YeckRdRnuvfYJm3J/9lWn2V3J1PrF+hag== + dependencies: + debug "^3.1.0" + direction "^0.1.5" + esrever "^0.2.0" + is-plain-object "^2.0.4" + lodash "^4.17.4" + tiny-invariant "^1.0.1" + tiny-warning "^0.0.3" + type-of "^2.0.1" + +slice-ansi@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636" + integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== + dependencies: + ansi-styles "^3.2.0" + astral-regex "^1.0.0" + is-fullwidth-code-point "^2.0.0" + +snapdragon-node@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" + integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== + dependencies: + define-property "^1.0.0" + isobject "^3.0.0" + snapdragon-util "^3.0.1" + +snapdragon-util@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" + integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== + dependencies: + kind-of "^3.2.0" + +snapdragon@^0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" + integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== + dependencies: + base "^0.11.1" + debug "^2.2.0" + define-property "^0.2.5" + extend-shallow "^2.0.1" + map-cache "^0.2.2" + source-map "^0.5.6" + source-map-resolve "^0.5.0" + use "^3.1.0" + +sort-keys@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-1.1.2.tgz#441b6d4d346798f1b4e49e8920adfba0e543f9ad" + integrity sha1-RBttTTRnmPG05J6JIK37oOVD+a0= + dependencies: + is-plain-obj "^1.0.0" + +source-list-map@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34" + integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw== + +source-map-resolve@^0.5.0: + version "0.5.3" + resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" + integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== + dependencies: + atob "^2.1.2" + decode-uri-component "^0.2.0" + resolve-url "^0.2.1" + source-map-url "^0.4.0" + urix "^0.1.0" + +source-map-support@^0.3.2: + version "0.3.3" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.3.3.tgz#34900977d5ba3f07c7757ee72e73bb1a9b53754f" + integrity sha1-NJAJd9W6PwfHdX7nLnO7GptTdU8= + dependencies: + source-map "0.1.32" + +source-map-support@^0.5.6, source-map-support@~0.5.12: + version "0.5.19" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" + integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map-url@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" + integrity sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM= + +source-map@0.1.32: + version "0.1.32" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.1.32.tgz#c8b6c167797ba4740a8ea33252162ff08591b266" + integrity sha1-yLbBZ3l7pHQKjqMyUhYv8IWRsmY= + dependencies: + amdefine ">=0.0.4" + +source-map@^0.4.2: + version "0.4.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" + integrity sha1-66T12pwNyZneaAMti092FzZSA2s= + dependencies: + amdefine ">=0.0.4" + +source-map@^0.5.0, source-map@^0.5.6, source-map@^0.5.7, source-map@~0.5.0, source-map@~0.5.1: + version "0.5.7" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" + integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= + +source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.0, source-map@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +spawn-command@^0.0.2-1: + version "0.0.2-1" + resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2-1.tgz#62f5e9466981c1b796dc5929937e11c9c6921bd0" + integrity sha1-YvXpRmmBwbeW3Fkpk34RycaSG9A= + +spdx-correct@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.0.tgz#fb83e504445268f154b074e218c87c003cd31df4" + integrity sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q== + dependencies: + spdx-expression-parse "^3.0.0" + spdx-license-ids "^3.0.0" + +spdx-exceptions@^2.1.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz#3f28ce1a77a00372683eade4a433183527a2163d" + integrity sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A== + +spdx-expression-parse@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679" + integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + +spdx-license-ids@^3.0.0: + version "3.0.5" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz#3694b5804567a458d3c8045842a6358632f62654" + integrity sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q== + +split-string@^3.0.1, split-string@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" + integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== + dependencies: + extend-shallow "^3.0.0" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= + +sshpk@^1.7.0: + version "1.16.1" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz#fb661c0bef29b39db40769ee39fa70093d6f6877" + integrity sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg== + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + bcrypt-pbkdf "^1.0.0" + dashdash "^1.12.0" + ecc-jsbn "~0.1.1" + getpass "^0.1.1" + jsbn "~0.1.0" + safer-buffer "^2.0.2" + tweetnacl "~0.14.0" + +ssri@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.1.tgz#2a3c41b28dd45b62b63676ecb74001265ae9edd8" + integrity sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA== + dependencies: + figgy-pudding "^3.5.1" + +ssri@^7.0.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/ssri/-/ssri-7.1.0.tgz#92c241bf6de82365b5c7fb4bd76e975522e1294d" + integrity sha512-77/WrDZUWocK0mvA5NTRQyveUf+wsrIc6vyrxpS8tVvYBcX215QbafrJR3KtkpskIzoFLqqNuuYQvxaMjXJ/0g== + dependencies: + figgy-pudding "^3.5.1" + minipass "^3.1.1" + +stable@^0.1.8: + version "0.1.8" + resolved "https://registry.yarnpkg.com/stable/-/stable-0.1.8.tgz#836eb3c8382fe2936feaf544631017ce7d47a3cf" + integrity sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w== + +stack-utils@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.2.tgz#33eba3897788558bebfc2db059dc158ec36cebb8" + integrity sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA== + +static-extend@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" + integrity sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY= + dependencies: + define-property "^0.2.5" + object-copy "^0.1.0" + +stdout-stream@^1.4.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/stdout-stream/-/stdout-stream-1.4.1.tgz#5ac174cdd5cd726104aa0c0b2bd83815d8d535de" + integrity sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA== + dependencies: + readable-stream "^2.0.1" + +stealthy-require@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" + integrity sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks= + +storybook-dark-mode@0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/storybook-dark-mode/-/storybook-dark-mode-0.4.0.tgz#d58f6d6591150138d666876d342d724d841af843" + integrity sha512-z6srmjsQxMVaaiyeeYav4wywloUzQQg64vX2ajdGViRsbfy9z3TbBcOBdnDzLLLCAx9S8ATly8njoy3S6KsEpg== + dependencies: + fast-deep-equal "^3.0.0" + memoizerific "^1.11.3" + +stream-browserify@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/stream-browserify/-/stream-browserify-2.0.2.tgz#87521d38a44aa7ee91ce1cd2a47df0cb49dd660b" + integrity sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg== + dependencies: + inherits "~2.0.1" + readable-stream "^2.0.2" + +stream-each@^1.1.0: + version "1.2.3" + resolved "https://registry.yarnpkg.com/stream-each/-/stream-each-1.2.3.tgz#ebe27a0c389b04fbcc233642952e10731afa9bae" + integrity sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw== + dependencies: + end-of-stream "^1.1.0" + stream-shift "^1.0.0" + +stream-http@^2.7.2: + version "2.8.3" + resolved "https://registry.yarnpkg.com/stream-http/-/stream-http-2.8.3.tgz#b2d242469288a5a27ec4fe8933acf623de6514fc" + integrity sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw== + dependencies: + builtin-status-codes "^3.0.0" + inherits "^2.0.1" + readable-stream "^2.3.6" + to-arraybuffer "^1.0.0" + xtend "^4.0.0" + +stream-shift@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.1.tgz#d7088281559ab2778424279b0877da3c392d5a3d" + integrity sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ== + +strict-uri-encode@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" + integrity sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM= + +string-length@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/string-length/-/string-length-2.0.0.tgz#d40dbb686a3ace960c1cffca562bf2c45f8363ed" + integrity sha1-1A27aGo6zpYMHP/KVivyxF+DY+0= + dependencies: + astral-regex "^1.0.0" + strip-ansi "^4.0.0" + +string-width@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + integrity sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M= + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + strip-ansi "^3.0.0" + +"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" + integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^4.0.0" + +string-width@^3.0.0, string-width@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" + integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== + dependencies: + emoji-regex "^7.0.1" + is-fullwidth-code-point "^2.0.0" + strip-ansi "^5.1.0" + +string-width@^4.1.0, string-width@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5" + integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.0" + +string.prototype.trim@~1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.1.tgz#141233dff32c82bfad80684d7e5f0869ee0fb782" + integrity sha512-MjGFEeqixw47dAMFMtgUro/I0+wNqZB5GKXGt1fFr24u3TzDXCPu7J9Buppzoe3r/LqkSDLDDJzE15RGWDGAVw== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.0-next.1" + function-bind "^1.1.1" + +string.prototype.trimend@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz#85812a6b847ac002270f5808146064c995fb6913" + integrity sha512-LRPxFUaTtpqYsTeNKaFOw3R4bxIzWOnbQ837QfBylo8jIxtcbK/A/sMV7Q+OAV/vWo+7s25pOE10KYSjaSO06g== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.5" + +string.prototype.trimleft@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.2.tgz#4408aa2e5d6ddd0c9a80739b087fbc067c03b3cc" + integrity sha512-gCA0tza1JBvqr3bfAIFJGqfdRTyPae82+KTnm3coDXkZN9wnuW3HjGgN386D7hfv5CHQYCI022/rJPVlqXyHSw== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.5" + string.prototype.trimstart "^1.0.0" + +string.prototype.trimright@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.2.tgz#c76f1cef30f21bbad8afeb8db1511496cfb0f2a3" + integrity sha512-ZNRQ7sY3KroTaYjRS6EbNiiHrOkjihL9aQE/8gfQ4DtAC/aEBRHFJa44OmoWxGGqXuJlfKkZW4WcXErGr+9ZFg== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.5" + string.prototype.trimend "^1.0.0" + +string.prototype.trimstart@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz#14af6d9f34b053f7cfc89b72f8f2ee14b9039a54" + integrity sha512-XxZn+QpvrBI1FOcg6dIpxUPgWCPuNXvMD72aaRaUQv1eD4e/Qy8i/hFTe0BUmD60p/QA6bh1avmuPTfNjqVWRw== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.5" + +string_decoder@^1.0.0, string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + +string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + +strip-ansi@6.0.0, strip-ansi@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" + integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== + dependencies: + ansi-regex "^5.0.0" + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8= + dependencies: + ansi-regex "^2.0.0" + +strip-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" + integrity sha1-qEeQIusaw2iocTibY1JixQXuNo8= + dependencies: + ansi-regex "^3.0.0" + +strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" + integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== + dependencies: + ansi-regex "^4.1.0" + +strip-bom@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" + integrity sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4= + dependencies: + is-utf8 "^0.2.0" + +strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= + +strip-eof@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" + integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= + +strip-final-newline@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" + integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== + +strip-indent@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-1.0.1.tgz#0c7962a6adefa7bbd4ac366460a638552ae1a0a2" + integrity sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI= + dependencies: + get-stdin "^4.0.1" + +strip-json-comments@^3.0.1: + version "3.1.0" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.0.tgz#7638d31422129ecf4457440009fba03f9f9ac180" + integrity sha512-e6/d0eBu7gHtdCqFt0xJr642LdToM5/cN4Qb9DbHjVx1CP5RyeM+zH7pbecEmDv/lBqb0QH+6Uqq75rxFPkM0w== + +style-loader@^0.23.1: + version "0.23.1" + resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-0.23.1.tgz#cb9154606f3e771ab6c4ab637026a1049174d925" + integrity sha512-XK+uv9kWwhZMZ1y7mysB+zoihsEj4wneFWAS5qoiLwzW0WzSqMrrsIy+a3zkQJq0ipFtBpX5W3MqyRIBF/WFGg== + dependencies: + loader-utils "^1.1.0" + schema-utils "^1.0.0" + +stylehacks@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-4.0.3.tgz#6718fcaf4d1e07d8a1318690881e8d96726a71d5" + integrity sha512-7GlLk9JwlElY4Y6a/rmbH2MhVlTyVmiJd1PfTCqFaIBEGMYNsrO/v3SeGTdhBThLg4Z+NbOk/qFMwCa+J+3p/g== + dependencies: + browserslist "^4.0.0" + postcss "^7.0.0" + postcss-selector-parser "^3.0.0" + +supports-color@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc= + +supports-color@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-4.5.0.tgz#be7a0de484dec5c5cddf8b3d59125044912f635b" + integrity sha1-vnoN5ITexcXN34s9WRJQRJEvY1s= + dependencies: + has-flag "^2.0.0" + +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== + dependencies: + has-flag "^3.0.0" + +supports-color@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-6.1.0.tgz#0764abc69c63d5ac842dd4867e8d025e880df8f3" + integrity sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ== + dependencies: + has-flag "^3.0.0" + +supports-color@^7.0.0, supports-color@^7.1.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.1.0.tgz#68e32591df73e25ad1c4b49108a2ec507962bfd1" + integrity sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g== + dependencies: + has-flag "^4.0.0" + +svgo@^1.0.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/svgo/-/svgo-1.3.2.tgz#b6dc511c063346c9e415b81e43401145b96d4167" + integrity sha512-yhy/sQYxR5BkC98CY7o31VGsg014AKLEPxdfhora76l36hD9Rdy5NZA/Ocn6yayNPgSamYdtX2rFJdcv07AYVw== + dependencies: + chalk "^2.4.1" + coa "^2.0.2" + css-select "^2.0.0" + css-select-base-adapter "^0.1.1" + css-tree "1.0.0-alpha.37" + csso "^4.0.2" + js-yaml "^3.13.1" + mkdirp "~0.5.1" + object.values "^1.1.0" + sax "~1.2.4" + stable "^0.1.8" + unquote "~1.1.1" + util.promisify "~1.0.0" + +symbol-observable@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.2.0.tgz#c22688aed4eab3cdc2dfeacbb561660560a00804" + integrity sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ== + +symbol-tree@^3.2.2: + version "3.2.4" + resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" + integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== + +table-layout@^0.4.3: + version "0.4.5" + resolved "https://registry.yarnpkg.com/table-layout/-/table-layout-0.4.5.tgz#d906de6a25fa09c0c90d1d08ecd833ecedcb7378" + integrity sha512-zTvf0mcggrGeTe/2jJ6ECkJHAQPIYEwDoqsiqBjI24mvRmQbInK5jq33fyypaCBxX08hMkfmdOqj6haT33EqWw== + dependencies: + array-back "^2.0.0" + deep-extend "~0.6.0" + lodash.padend "^4.6.1" + typical "^2.6.1" + wordwrapjs "^3.0.0" + +table@^5.2.3: + version "5.4.6" + resolved "https://registry.yarnpkg.com/table/-/table-5.4.6.tgz#1292d19500ce3f86053b05f0e8e7e4a3bb21079e" + integrity sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug== + dependencies: + ajv "^6.10.2" + lodash "^4.17.14" + slice-ansi "^2.1.0" + string-width "^3.0.0" + +tapable@^1.0.0, tapable@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2" + integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA== + +tape@^4.5.1: + version "4.13.2" + resolved "https://registry.yarnpkg.com/tape/-/tape-4.13.2.tgz#eb419b9d9bc004025b1a81a5b63093e07f425629" + integrity sha512-waWwC/OqYVE9TS6r1IynlP2sEdk4Lfo6jazlgkuNkPTHIbuG2BTABIaKdlQWwPeB6Oo4ksZ1j33Yt0NTOAlYMQ== + dependencies: + deep-equal "~1.1.1" + defined "~1.0.0" + dotignore "~0.1.2" + for-each "~0.3.3" + function-bind "~1.1.1" + glob "~7.1.6" + has "~1.0.3" + inherits "~2.0.4" + is-regex "~1.0.5" + minimist "~1.2.0" + object-inspect "~1.7.0" + resolve "~1.15.1" + resumer "~0.0.0" + string.prototype.trim "~1.2.1" + through "~2.3.8" + +tar@^2.0.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/tar/-/tar-2.2.2.tgz#0ca8848562c7299b8b446ff6a4d60cdbb23edc40" + integrity sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA== + dependencies: + block-stream "*" + fstream "^1.0.12" + inherits "2" + +terser-webpack-plugin@^1.4.3: + version "1.4.3" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-1.4.3.tgz#5ecaf2dbdc5fb99745fd06791f46fc9ddb1c9a7c" + integrity sha512-QMxecFz/gHQwteWwSo5nTc6UaICqN1bMedC5sMtUc7y3Ha3Q8y6ZO0iCR8pq4RJC8Hjf0FEPEHZqcMB/+DFCrA== + dependencies: + cacache "^12.0.2" + find-cache-dir "^2.1.0" + is-wsl "^1.1.0" + schema-utils "^1.0.0" + serialize-javascript "^2.1.2" + source-map "^0.6.1" + terser "^4.1.2" + webpack-sources "^1.4.0" + worker-farm "^1.7.0" + +terser-webpack-plugin@^2.3.4: + version "2.3.6" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-2.3.6.tgz#a4014b311a61f87c6a1b217ef4f5a75bd0665a69" + integrity sha512-I8IDsQwZrqjdmOicNeE8L/MhwatAap3mUrtcAKJuilsemUNcX+Hier/eAzwStVqhlCxq0aG3ni9bK/0BESXkTg== + dependencies: + cacache "^13.0.1" + find-cache-dir "^3.3.1" + jest-worker "^25.4.0" + p-limit "^2.3.0" + schema-utils "^2.6.6" + serialize-javascript "^3.0.0" + source-map "^0.6.1" + terser "^4.6.12" + webpack-sources "^1.4.3" + +terser@^4.1.2, terser@^4.6.12: + version "4.6.13" + resolved "https://registry.yarnpkg.com/terser/-/terser-4.6.13.tgz#e879a7364a5e0db52ba4891ecde007422c56a916" + integrity sha512-wMvqukYgVpQlymbnNbabVZbtM6PN63AzqexpwJL8tbh/mRT9LE5o+ruVduAGL7D6Fpjl+Q+06U5I9Ul82odAhw== + dependencies: + commander "^2.20.0" + source-map "~0.6.1" + source-map-support "~0.5.12" + +test-exclude@^5.2.3: + version "5.2.3" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-5.2.3.tgz#c3d3e1e311eb7ee405e092dac10aefd09091eac0" + integrity sha512-M+oxtseCFO3EDtAaGH7iiej3CBkzXqFMbzqYAACdzKui4eZA+pq3tZEwChvOdNfa7xxy8BfbmgJSIr43cC/+2g== + dependencies: + glob "^7.1.3" + minimatch "^3.0.4" + read-pkg-up "^4.0.0" + require-main-filename "^2.0.0" + +test-value@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/test-value/-/test-value-3.0.0.tgz#9168c062fab11a86b8d444dd968bb4b73851ce92" + integrity sha512-sVACdAWcZkSU9x7AOmJo5TqE+GyNJknHaHsMrR6ZnhjVlVN9Yx6FjHrsKZ3BjIpPCT68zYesPWkakrNupwfOTQ== + dependencies: + array-back "^2.0.0" + typical "^2.6.1" + +text-encoding-utf-8@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/text-encoding-utf-8/-/text-encoding-utf-8-1.0.2.tgz#585b62197b0ae437e3c7b5d0af27ac1021e10d13" + integrity sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg== + +text-table@0.2.0, text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= + +throat@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a" + integrity sha1-iQN8vJLFarGJJua6TLsgDhVnKmo= + +through2@^2.0.0: + version "2.0.5" + resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" + integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ== + dependencies: + readable-stream "~2.3.6" + xtend "~4.0.1" + +through@^2.3.6, through@~2.3.4, through@~2.3.6, through@~2.3.8: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= + +timers-browserify@^2.0.4: + version "2.0.11" + resolved "https://registry.yarnpkg.com/timers-browserify/-/timers-browserify-2.0.11.tgz#800b1f3eee272e5bc53ee465a04d0e804c31211f" + integrity sha512-60aV6sgJ5YEbzUdn9c8kYGIqOubPoUdqQCul3SBAsRCZ40s6Y5cMcrW4dt3/k/EsbLVJNl9n6Vz3fTc+k2GeKQ== + dependencies: + setimmediate "^1.0.4" + +timsort@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4" + integrity sha1-QFQRqOfmM5/mTbmiNN4R3DHgK9Q= + +tiny-invariant@^1.0.1, tiny-invariant@^1.0.6: + version "1.1.0" + resolved "https://registry.yarnpkg.com/tiny-invariant/-/tiny-invariant-1.1.0.tgz#634c5f8efdc27714b7f386c35e6760991d230875" + integrity sha512-ytxQvrb1cPc9WBEI/HSeYYoGD0kWnGEOR8RY6KomWLBVhqz0RgTwVO9dLrGz7dC+nN9llyI7OKAgRq8Vq4ZBSw== + +tiny-warning@^0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/tiny-warning/-/tiny-warning-0.0.3.tgz#1807eb4c5f81784a6354d58ea1d5024f18c6c81f" + integrity sha512-r0SSA5Y5IWERF9Xh++tFPx0jITBgGggOsRLDWWew6YRw/C2dr4uNO1fw1vanrBmHsICmPyMLNBZboTlxUmUuaA== + +tinycolor2@1.4.1, tinycolor2@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/tinycolor2/-/tinycolor2-1.4.1.tgz#f4fad333447bc0b07d4dc8e9209d8f39a8ac77e8" + integrity sha1-9PrTM0R7wLB9TcjpIJ2POaisd+g= + +tmp@^0.0.33: + version "0.0.33" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" + integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== + dependencies: + os-tmpdir "~1.0.2" + +tmpl@1.0.x: + version "1.0.4" + resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" + integrity sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE= + +to-arraybuffer@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" + integrity sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M= + +to-camel-case@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/to-camel-case/-/to-camel-case-1.0.0.tgz#1a56054b2f9d696298ce66a60897322b6f423e46" + integrity sha1-GlYFSy+daWKYzmamCJcyK29CPkY= + dependencies: + to-space-case "^1.0.0" + +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4= + +to-no-case@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/to-no-case/-/to-no-case-1.0.2.tgz#c722907164ef6b178132c8e69930212d1b4aa16a" + integrity sha1-xyKQcWTvaxeBMsjmmTAhLRtKoWo= + +to-object-path@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" + integrity sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68= + dependencies: + kind-of "^3.0.2" + +to-regex-range@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" + integrity sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg= + dependencies: + is-number "^3.0.0" + repeat-string "^1.6.1" + +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + +to-regex@^3.0.1, to-regex@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" + integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== + dependencies: + define-property "^2.0.2" + extend-shallow "^3.0.2" + regex-not "^1.0.2" + safe-regex "^1.1.0" + +to-space-case@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/to-space-case/-/to-space-case-1.0.0.tgz#b052daafb1b2b29dc770cea0163e5ec0ebc9fc17" + integrity sha1-sFLar7Gysp3HcM6gFj5ewOvJ/Bc= + dependencies: + to-no-case "^1.0.0" + +toposort@^1.0.0: + version "1.0.7" + resolved "https://registry.yarnpkg.com/toposort/-/toposort-1.0.7.tgz#2e68442d9f64ec720b8cc89e6443ac6caa950029" + integrity sha1-LmhELZ9k7HILjMieZEOsbKqVACk= + +tough-cookie@^2.3.3, tough-cookie@^2.3.4, tough-cookie@~2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" + integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== + dependencies: + psl "^1.1.28" + punycode "^2.1.1" + +tr46@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" + integrity sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk= + dependencies: + punycode "^2.1.0" + +tree-kill@^1.1.0: + version "1.2.2" + resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc" + integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A== + +trim-newlines@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-1.0.0.tgz#5887966bb582a4503a41eb524f7d35011815a613" + integrity sha1-WIeWa7WCpFA6QetST301ARgVphM= + +"true-case-path@^1.0.2": + version "1.0.3" + resolved "https://registry.yarnpkg.com/true-case-path/-/true-case-path-1.0.3.tgz#f813b5a8c86b40da59606722b144e3225799f47d" + integrity sha512-m6s2OdQe5wgpFMC+pAJ+q9djG82O2jcHPOI6RNg1yy9rCYR+WD6Nbpl32fDpfC56nirdRy+opFa/Vk7HYhqaew== + dependencies: + glob "^7.1.2" + +ts-jest@24.1.0: + version "24.1.0" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-24.1.0.tgz#2eaa813271a2987b7e6c3fefbda196301c131734" + integrity sha512-HEGfrIEAZKfu1pkaxB9au17b1d9b56YZSqz5eCVE8mX68+5reOvlM93xGOzzCREIov9mdH7JBG+s0UyNAqr0tQ== + dependencies: + bs-logger "0.x" + buffer-from "1.x" + fast-json-stable-stringify "2.x" + json5 "2.x" + lodash.memoize "4.x" + make-error "1.x" + mkdirp "0.x" + resolve "1.x" + semver "^5.5" + yargs-parser "10.x" + +ts-loader@6.2.1: + version "6.2.1" + resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-6.2.1.tgz#67939d5772e8a8c6bdaf6277ca023a4812da02ef" + integrity sha512-Dd9FekWuABGgjE1g0TlQJ+4dFUfYGbYcs52/HQObE0ZmUNjQlmLAS7xXsSzy23AMaMwipsx5sNHvoEpT2CZq1g== + dependencies: + chalk "^2.3.0" + enhanced-resolve "^4.0.0" + loader-utils "^1.0.2" + micromatch "^4.0.0" + semver "^6.0.0" + +ts-node@8.8.1: + version "8.8.1" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-8.8.1.tgz#7c4d3e9ed33aa703b64b28d7f9d194768be5064d" + integrity sha512-10DE9ONho06QORKAaCBpPiFCdW+tZJuY/84tyypGtl6r+/C7Asq0dhqbRZURuUlLQtZxxDvT8eoj8cGW0ha6Bg== + dependencies: + arg "^4.1.0" + diff "^4.0.1" + make-error "^1.1.1" + source-map-support "^0.5.6" + yn "3.1.1" + +tslib@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" + integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ== + +tslib@^1.10.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: + version "1.13.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.13.0.tgz#c881e13cc7015894ed914862d276436fa9a47043" + integrity sha512-i/6DQjL8Xf3be4K/E6Wgpekn5Qasl1usyw++dAA35Ue5orEn65VIxOA+YvNNl9HV3qv70T7CNwjODHZrLwvd1Q== + +tsutils@^3.17.1: + version "3.17.1" + resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.17.1.tgz#ed719917f11ca0dee586272b2ac49e015a2dd759" + integrity sha512-kzeQ5B8H3w60nFY2g8cJIuH7JDpsALXySGtwGJ0p2LSjLgay3NdIpqq5SoOBe46bKDW2iq25irHCr8wjomUS2g== + dependencies: + tslib "^1.8.1" + +tty-browserify@0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" + integrity sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY= + +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + integrity sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0= + dependencies: + safe-buffer "^5.0.1" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I= + dependencies: + prelude-ls "~1.1.2" + +type-fest@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.11.0.tgz#97abf0872310fed88a5c466b25681576145e33f1" + integrity sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ== + +type-fest@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" + integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== + +type-of@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/type-of/-/type-of-2.0.1.tgz#e72a1741896568e9f628378d816d6912f7f23972" + integrity sha1-5yoXQYllaOn2KDeNgW1pEvfyOXI= + +typed-styles@^0.0.7: + version "0.0.7" + resolved "https://registry.yarnpkg.com/typed-styles/-/typed-styles-0.0.7.tgz#93392a008794c4595119ff62dde6809dbc40a3d9" + integrity sha512-pzP0PWoZUhsECYjABgCGQlRGL1n7tOHsgwYv3oIiEpJwGhFTuty/YNeduxQYzXXa3Ge5BdT6sHYIQYpl4uJ+5Q== + +typedarray@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" + integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= + +typescript@3.7.5: + version "3.7.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.5.tgz#0692e21f65fd4108b9330238aac11dd2e177a1ae" + integrity sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw== + +typical@^2.6.1: + version "2.6.1" + resolved "https://registry.yarnpkg.com/typical/-/typical-2.6.1.tgz#5c080e5d661cbbe38259d2e70a3c7253e873881d" + integrity sha1-XAgOXWYcu+OCWdLnCjxyU+hziB0= + +ua-parser-js@^0.7.18: + version "0.7.21" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.21.tgz#853cf9ce93f642f67174273cc34565ae6f308777" + integrity sha512-+O8/qh/Qj8CgC6eYBVBykMrNtp5Gebn4dlGD/kKXVkJNDwyrAwSIqwz8CDf+tsAIWVycKcku6gIXJ0qwx/ZXaQ== + +uglify-js@3.4.x: + version "3.4.10" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.4.10.tgz#9ad9563d8eb3acdfb8d38597d2af1d815f6a755f" + integrity sha512-Y2VsbPVs0FIshJztycsO2SfPk7/KAF/T72qzv9u5EpQ4kB2hQoHlhNQTsNyy6ul7lQtqJN/AoWeS23OzEiEFxw== + dependencies: + commander "~2.19.0" + source-map "~0.6.1" + +uglify-js@^2.6.2: + version "2.8.29" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" + integrity sha1-KcVzMUgFe7Th913zW3qcty5qWd0= + dependencies: + source-map "~0.5.1" + yargs "~3.10.0" + optionalDependencies: + uglify-to-browserify "~1.0.0" + +uglify-to-browserify@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" + integrity sha1-bgkk1r2mta/jSeOabWMoUKD4grc= + +unicode-canonical-property-names-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz#2619800c4c825800efdd8343af7dd9933cbe2818" + integrity sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ== + +unicode-match-property-ecmascript@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz#8ed2a32569961bce9227d09cd3ffbb8fed5f020c" + integrity sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg== + dependencies: + unicode-canonical-property-names-ecmascript "^1.0.4" + unicode-property-aliases-ecmascript "^1.0.4" + +unicode-match-property-value-ecmascript@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.2.0.tgz#0d91f600eeeb3096aa962b1d6fc88876e64ea531" + integrity sha512-wjuQHGQVofmSJv1uVISKLE5zO2rNGzM/KCYZch/QQvez7C1hUhBIuZ701fYXExuufJFMPhv2SyL8CyoIfMLbIQ== + +unicode-property-aliases-ecmascript@^1.0.4: + version "1.1.0" + resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.1.0.tgz#dd57a99f6207bedff4628abefb94c50db941c8f4" + integrity sha512-PqSoPh/pWetQ2phoj5RLiaqIk4kCNwoV3CI+LfGmWLKI3rE3kl1h59XpX2BjgDrmbxD9ARtQobPGU1SguCYuQg== + +union-value@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" + integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== + dependencies: + arr-union "^3.1.0" + get-value "^2.0.6" + is-extendable "^0.1.1" + set-value "^2.0.1" + +uniq@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff" + integrity sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8= + +uniqs@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/uniqs/-/uniqs-2.0.0.tgz#ffede4b36b25290696e6e165d4a59edb998e6b02" + integrity sha1-/+3ks2slKQaW5uFl1KWe25mOawI= + +unique-filename@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-1.1.1.tgz#1d69769369ada0583103a1e6ae87681b56573230" + integrity sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ== + dependencies: + unique-slug "^2.0.0" + +unique-slug@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-2.0.2.tgz#baabce91083fc64e945b0f3ad613e264f7cd4e6c" + integrity sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w== + dependencies: + imurmurhash "^0.1.4" + +universalify@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + +unquote@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/unquote/-/unquote-1.1.1.tgz#8fded7324ec6e88a0ff8b905e7c098cdc086d544" + integrity sha1-j97XMk7G6IoP+LkF58CYzcCG1UQ= + +unset-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" + integrity sha1-g3aHP30jNRef+x5vw6jtDfyKtVk= + dependencies: + has-value "^0.3.1" + isobject "^3.0.0" + +upath@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894" + integrity sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg== + +upper-case@^1.1.1: + version "1.1.3" + resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-1.1.3.tgz#f6b4501c2ec4cdd26ba78be7222961de77621598" + integrity sha1-9rRQHC7EzdJrp4vnIilh3ndiFZg= + +uri-js@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" + integrity sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ== + dependencies: + punycode "^2.1.0" + +urix@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" + integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= + +url-loader@^2.0.1: + version "2.3.0" + resolved "https://registry.yarnpkg.com/url-loader/-/url-loader-2.3.0.tgz#e0e2ef658f003efb8ca41b0f3ffbf76bab88658b" + integrity sha512-goSdg8VY+7nPZKUEChZSEtW5gjbS66USIGCeSJ1OVOJ7Yfuh/36YxCwMi5HVEJh6mqUYOoy3NJ0vlOMrWsSHog== + dependencies: + loader-utils "^1.2.3" + mime "^2.4.4" + schema-utils "^2.5.0" + +url@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" + integrity sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE= + dependencies: + punycode "1.3.2" + querystring "0.2.0" + +use-memo-one@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/use-memo-one/-/use-memo-one-1.1.1.tgz#39e6f08fe27e422a7d7b234b5f9056af313bd22c" + integrity sha512-oFfsyun+bP7RX8X2AskHNTxu+R3QdE/RC5IefMbqptmACAA/gfol1KDD5KRzPsGMa62sWxGZw+Ui43u6x4ddoQ== + +use@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" + integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== + +util-deprecate@^1.0.1, util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + +util.promisify@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.0.tgz#440f7165a459c9a16dc145eb8e72f35687097030" + integrity sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA== + dependencies: + define-properties "^1.1.2" + object.getownpropertydescriptors "^2.0.3" + +util.promisify@^1.0.0, util.promisify@~1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/util.promisify/-/util.promisify-1.0.1.tgz#6baf7774b80eeb0f7520d8b81d07982a59abbaee" + integrity sha512-g9JpC/3He3bm38zsLupWryXHoEcS22YHthuPQSJdMy6KNrzIRzWqcsHzD/WUnqe45whVou4VIsPew37DoXWNrA== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.2" + has-symbols "^1.0.1" + object.getownpropertydescriptors "^2.1.0" + +util@0.10.3: + version "0.10.3" + resolved "https://registry.yarnpkg.com/util/-/util-0.10.3.tgz#7afb1afe50805246489e3db7fe0ed379336ac0f9" + integrity sha1-evsa/lCAUkZInj23/g7TeTNqwPk= + dependencies: + inherits "2.0.1" + +util@^0.11.0: + version "0.11.1" + resolved "https://registry.yarnpkg.com/util/-/util-0.11.1.tgz#3236733720ec64bb27f6e26f421aaa2e1b588d61" + integrity sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ== + dependencies: + inherits "2.0.3" + +utila@^0.4.0, utila@~0.4: + version "0.4.0" + resolved "https://registry.yarnpkg.com/utila/-/utila-0.4.0.tgz#8a16a05d445657a3aea5eecc5b12a4fa5379772c" + integrity sha1-ihagXURWV6Oupe7MWxKk+lN5dyw= + +uuid@^3.3.2: + version "3.4.0" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" + integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== + +v8-compile-cache@^2.0.3: + version "2.1.0" + resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.0.tgz#e14de37b31a6d194f5690d67efc4e7f6fc6ab30e" + integrity sha512-usZBT3PW+LOjM25wbqIlZwPeJV+3OSz3M1k1Ws8snlW39dZyYL9lOGC5FgPVHfk0jKmjiDV8Z0mIbVQPiwFs7g== + +validate-npm-package-license@^3.0.1: + version "3.0.4" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" + integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== + dependencies: + spdx-correct "^3.0.0" + spdx-expression-parse "^3.0.0" + +vendors@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/vendors/-/vendors-1.0.4.tgz#e2b800a53e7a29b93506c3cf41100d16c4c4ad8e" + integrity sha512-/juG65kTL4Cy2su4P8HjtkTxk6VmJDiOPBufWniqQ6wknac6jNiXS9vU+hO3wgusiyqWlzTbVHi0dyJqRONg3w== + +venn.js@~0.2.20: + version "0.2.20" + resolved "https://registry.yarnpkg.com/venn.js/-/venn.js-0.2.20.tgz#3f0e50cc75cba1f58692a8a32f67bd7aaf1aa6fa" + integrity sha512-bb5SYq/wamY9fvcuErb9a0FJkgIFHJjkLZWonQ+DoKKuDX3WPH2B4ouI1ce4K2iejBklQy6r1ly8nOGIyOCO6w== + dependencies: + d3-selection "^1.0.2" + d3-transition "^1.0.1" + fmin "0.0.2" + +verror@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" + integrity sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA= + dependencies: + assert-plus "^1.0.0" + core-util-is "1.0.2" + extsprintf "^1.2.0" + +vm-browserify@^1.0.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0" + integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ== + +w3c-hr-time@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz#0a89cdf5cc15822df9c360543676963e0cc308cd" + integrity sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ== + dependencies: + browser-process-hrtime "^1.0.0" + +walker@^1.0.7, walker@~1.0.5: + version "1.0.7" + resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" + integrity sha1-L3+bj9ENZ3JisYqITijRlhjgKPs= + dependencies: + makeerror "1.0.x" + +warning@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/warning/-/warning-3.0.0.tgz#32e5377cb572de4ab04753bdf8821c01ed605b7c" + integrity sha1-MuU3fLVy3kqwR1O9+IIcAe1gW3w= + dependencies: + loose-envify "^1.0.0" + +warning@^4.0.1, warning@^4.0.2, warning@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/warning/-/warning-4.0.3.tgz#16e9e077eb8a86d6af7d64aa1e05fd85b4678ca3" + integrity sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w== + dependencies: + loose-envify "^1.0.0" + +watchpack@^1.6.0: + version "1.6.1" + resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-1.6.1.tgz#280da0a8718592174010c078c7585a74cd8cd0e2" + integrity sha512-+IF9hfUFOrYOOaKyfaI7h7dquUIOgyEMoQMLA7OP5FxegKA2+XdXThAZ9TU2kucfhDH7rfMHs1oPYziVGWRnZA== + dependencies: + chokidar "^2.1.8" + graceful-fs "^4.1.2" + neo-async "^2.5.0" + +wcwidth@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" + integrity sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g= + dependencies: + defaults "^1.0.3" + +webidl-conversions@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" + integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg== + +webpack-log@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/webpack-log/-/webpack-log-2.0.0.tgz#5b7928e0637593f119d32f6227c1e0ac31e1b47f" + integrity sha512-cX8G2vR/85UYG59FgkoMamwHUIkSSlV3bBMRsbxVXVUk2j6NleCKjQ/WE9eYg9WY4w25O9w8wKP4rzNZFmUcUg== + dependencies: + ansi-colors "^3.0.0" + uuid "^3.3.2" + +webpack-sources@^1.1.0, webpack-sources@^1.4.0, webpack-sources@^1.4.1, webpack-sources@^1.4.3: + version "1.4.3" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-1.4.3.tgz#eedd8ec0b928fbf1cbfe994e22d2d890f330a933" + integrity sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ== + dependencies: + source-list-map "^2.0.0" + source-map "~0.6.1" + +webpack@4.41.5: + version "4.41.5" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.41.5.tgz#3210f1886bce5310e62bb97204d18c263341b77c" + integrity sha512-wp0Co4vpyumnp3KlkmpM5LWuzvZYayDwM2n17EHFr4qxBBbRokC7DJawPJC7TfSFZ9HZ6GsdH40EBj4UV0nmpw== + dependencies: + "@webassemblyjs/ast" "1.8.5" + "@webassemblyjs/helper-module-context" "1.8.5" + "@webassemblyjs/wasm-edit" "1.8.5" + "@webassemblyjs/wasm-parser" "1.8.5" + acorn "^6.2.1" + ajv "^6.10.2" + ajv-keywords "^3.4.1" + chrome-trace-event "^1.0.2" + enhanced-resolve "^4.1.0" + eslint-scope "^4.0.3" + json-parse-better-errors "^1.0.2" + loader-runner "^2.4.0" + loader-utils "^1.2.3" + memory-fs "^0.4.1" + micromatch "^3.1.10" + mkdirp "^0.5.1" + neo-async "^2.6.1" + node-libs-browser "^2.2.1" + schema-utils "^1.0.0" + tapable "^1.1.3" + terser-webpack-plugin "^1.4.3" + watchpack "^1.6.0" + webpack-sources "^1.4.1" + +whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.3: + version "1.0.5" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" + integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== + dependencies: + iconv-lite "0.4.24" + +whatwg-fetch@>=0.10.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz#fc804e458cc460009b1a2b966bc8817d2578aefb" + integrity sha512-9GSJUgz1D4MfyKU7KRqwOjXCXTqWdFNvEr7eUBYchQiVc744mqK/MzXPNR2WsPkmkOa4ywfg8C2n8h+13Bey1Q== + +whatwg-mimetype@^2.1.0, whatwg-mimetype@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" + integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== + +whatwg-url@^6.4.1: + version "6.5.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-6.5.0.tgz#f2df02bff176fd65070df74ad5ccbb5a199965a8" + integrity sha512-rhRZRqx/TLJQWUpQ6bmrt2UV4f0HCQ463yQuONJqC6fO2VoEb1pTYddbe59SkYq87aoM5A3bdhMZiUiVws+fzQ== + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + +whatwg-url@^7.0.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.1.0.tgz#c2c492f1eca612988efd3d2266be1b9fc6170d06" + integrity sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg== + dependencies: + lodash.sortby "^4.7.0" + tr46 "^1.0.1" + webidl-conversions "^4.0.2" + +which-module@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" + integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= + +which@1, which@^1.2.9, which@^1.3.0, which@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + +which@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" + +wide-align@^1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" + integrity sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA== + dependencies: + string-width "^1.0.2 || 2" + +window-size@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" + integrity sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0= + +wolfy87-eventemitter@~5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/wolfy87-eventemitter/-/wolfy87-eventemitter-5.1.0.tgz#35c1ac0dd1ac0c15e35d981508fc22084a13a011" + integrity sha1-NcGsDdGsDBXjXZgVCPwiCEoToBE= + +word-wrap@~1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" + integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== + +wordwrap@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" + integrity sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8= + +wordwrapjs@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/wordwrapjs/-/wordwrapjs-3.0.0.tgz#c94c372894cadc6feb1a66bff64e1d9af92c5d1e" + integrity sha512-mO8XtqyPvykVCsrwj5MlOVWvSnCdT+C+QVbm6blradR7JExAhbkZ7hZ9A+9NUtwzSqrlUo9a67ws0EiILrvRpw== + dependencies: + reduce-flatten "^1.0.1" + typical "^2.6.1" + +worker-farm@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.7.0.tgz#26a94c5391bbca926152002f69b84a4bf772e5a8" + integrity sha512-rvw3QTZc8lAxyVrqcSGVm5yP/IJ2UcB3U0graE3LCFoZ0Yn2x4EoVSqJKdB/T5M+FLcRPjz4TDacRf3OCfNUzw== + dependencies: + errno "~0.1.7" + +worker-rpc@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/worker-rpc/-/worker-rpc-0.1.1.tgz#cb565bd6d7071a8f16660686051e969ad32f54d5" + integrity sha512-P1WjMrUB3qgJNI9jfmpZ/htmBEjFh//6l/5y8SD9hg1Ef5zTTVVoRjTrTEzPrNBQvmhMxkoTsjOXN10GWU7aCg== + dependencies: + microevent.ts "~0.1.1" + +wrap-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" + integrity sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU= + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + +wrap-ansi@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" + integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== + dependencies: + ansi-styles "^3.2.0" + string-width "^3.0.0" + strip-ansi "^5.0.0" + +wrap-ansi@^6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" + integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + +write-file-atomic@2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.1.tgz#d0b05463c188ae804396fd5ab2a370062af87529" + integrity sha512-TGHFeZEZMnv+gBFRfjAcxL5bPHrsGKtnb4qsFAws7/vlh+QfwAaySIw4AXP9ZskTTh5GWu3FLuJhsWVdiJPGvg== + dependencies: + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + signal-exit "^3.0.2" + +write@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/write/-/write-1.0.3.tgz#0800e14523b923a387e415123c865616aae0f5c3" + integrity sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig== + dependencies: + mkdirp "^0.5.1" + +ws@^5.2.0: + version "5.2.2" + resolved "https://registry.yarnpkg.com/ws/-/ws-5.2.2.tgz#dffef14866b8e8dc9133582514d1befaf96e980f" + integrity sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA== + dependencies: + async-limiter "~1.0.0" + +ws@^6.1.0: + version "6.2.1" + resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.1.tgz#442fdf0a47ed64f59b6a5d8ff130f4748ed524fb" + integrity sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA== + dependencies: + async-limiter "~1.0.0" + +xml-name-validator@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" + integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== + +xml@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5" + integrity sha1-eLpyAgApxbyHuKgaPPzXS0ovweU= + +xss@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/xss/-/xss-1.0.6.tgz#eaf11e9fc476e3ae289944a1009efddd8a124b51" + integrity sha512-6Q9TPBeNyoTRxgZFk5Ggaepk/4vUOYdOsIUYvLehcsIZTFjaavbVnsuAkLA5lIFuug5hw8zxcB9tm01gsjph2A== + dependencies: + commander "^2.9.0" + cssfilter "0.0.10" + +xtend@^4.0.0, xtend@~4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" + integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== + +"y18n@^3.2.1 || ^4.0.0", y18n@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b" + integrity sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w== + +yallist@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" + integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI= + +yallist@^3.0.2: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== + +yallist@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" + integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== + +yaml@^1.7.2, yaml@^1.8.3: + version "1.9.2" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.9.2.tgz#f0cfa865f003ab707663e4f04b3956957ea564ed" + integrity sha512-HPT7cGGI0DuRcsO51qC1j9O16Dh1mZ2bnXwsi0jrSpsLz0WxOLSLXfkABVl6bZO629py3CU+OMJtpNHDLB97kg== + dependencies: + "@babel/runtime" "^7.9.2" + +yargs-parser@10.x: + version "10.1.0" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-10.1.0.tgz#7202265b89f7e9e9f2e5765e0fe735a905edbaa8" + integrity sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ== + dependencies: + camelcase "^4.1.0" + +yargs-parser@^11.1.1: + version "11.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-11.1.1.tgz#879a0865973bca9f6bab5cbdf3b1c67ec7d3bcf4" + integrity sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + +yargs-parser@^13.1.2: + version "13.1.2" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.2.tgz#130f09702ebaeef2650d54ce6e3e5706f7a4fb38" + integrity sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + +yargs-parser@^18.1.1: + version "18.1.3" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" + integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + +yargs@^12.0.1: + version "12.0.5" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-12.0.5.tgz#05f5997b609647b64f66b81e3b4b10a368e7ad13" + integrity sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw== + dependencies: + cliui "^4.0.0" + decamelize "^1.2.0" + find-up "^3.0.0" + get-caller-file "^1.0.1" + os-locale "^3.0.0" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^2.0.0" + which-module "^2.0.0" + y18n "^3.2.1 || ^4.0.0" + yargs-parser "^11.1.1" + +yargs@^13.3.0, yargs@^13.3.2: + version "13.3.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd" + integrity sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw== + dependencies: + cliui "^5.0.0" + find-up "^3.0.0" + get-caller-file "^2.0.1" + require-directory "^2.1.1" + require-main-filename "^2.0.0" + set-blocking "^2.0.0" + string-width "^3.0.0" + which-module "^2.0.0" + y18n "^4.0.0" + yargs-parser "^13.1.2" + +yargs@^15.0.2: + version "15.3.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.3.1.tgz#9505b472763963e54afe60148ad27a330818e98b" + integrity sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA== + dependencies: + cliui "^6.0.0" + decamelize "^1.2.0" + find-up "^4.1.0" + get-caller-file "^2.0.1" + require-directory "^2.1.1" + require-main-filename "^2.0.0" + set-blocking "^2.0.0" + string-width "^4.2.0" + which-module "^2.0.0" + y18n "^4.0.0" + yargs-parser "^18.1.1" + +yargs@~3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" + integrity sha1-9+572FfdfB0tOMDnTvvWgdFDH9E= + dependencies: + camelcase "^1.0.2" + cliui "^2.1.0" + decamelize "^1.0.0" + window-size "0.1.0" + +yauzl@^2.10.0: + version "2.10.0" + resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9" + integrity sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk= + dependencies: + buffer-crc32 "~0.2.3" + fd-slicer "~1.1.0" + +yn@3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== diff --git a/data/plugins/innius-video-panel/CHANGELOG.md b/data/plugins/innius-video-panel/CHANGELOG.md new file mode 100644 index 0000000000000..41983059e4fb6 --- /dev/null +++ b/data/plugins/innius-video-panel/CHANGELOG.md @@ -0,0 +1,32 @@ +# Change Log + +## v1.0.6 + +* upgrade grafana dependencies and grafana tools + +## v1.0.5 + +- enable custom background colors for iframe control + +## v1.0.4 + +- some small textual improvements +- add docker-compose file to allow easy testing +- support templates in iFrame / Video URL's +- support full width for videos + + +## v1.0.3 + +sign the plugin + + +## v1.0.2 + +geolocation for iframes + + +## v1.0.0 + +Initial Release + diff --git a/data/plugins/innius-video-panel/LICENSE b/data/plugins/innius-video-panel/LICENSE new file mode 100644 index 0000000000000..c6f917cea3950 --- /dev/null +++ b/data/plugins/innius-video-panel/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright Innius + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/data/plugins/innius-video-panel/MANIFEST.txt b/data/plugins/innius-video-panel/MANIFEST.txt new file mode 100644 index 0000000000000..272a40f8c257d --- /dev/null +++ b/data/plugins/innius-video-panel/MANIFEST.txt @@ -0,0 +1,38 @@ + +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA512 + +{ + "manifestVersion": "2.0.0", + "signatureType": "community", + "signedByOrg": "innius", + "signedByOrgName": "innius", + "plugin": "innius-video-panel", + "version": "1.0.7", + "time": 1680849057599, + "keyId": "7e4d0c6a708866e7", + "files": { + "LICENSE": "bbe881e9ecd692de0c4999a2d034130b1369e3cc646f7171b611cef3a3f1c58a", + "module.js": "0a1254d160486832bcd190e2d9e7fbeb1e9cba663adbcd7635ce02a1dd706847", + "module.js.map": "c9c1f22e3395bc7607dce7c57a9f3008d476f68f8e21ced8d6dc7c60c964ae5c", + "README.md": "58a7d832f0ec556f70d91cce028879b4415308727dcd19855171b319e87099af", + "plugin.json": "f45daddde6199109f9f0309fe377c8390eb5da4c1316b90d842e0d05a56ae1d0", + "img/logo.svg": "0830fb44aa94f29c16facaf731d1b5ede8e7015ae40dff16e25aabf6ddd023a3", + "img/examples.png": "ead211c62df25d295bb6a841c78ec26b5b379f6cfe16966b9bb6253a689ca70a", + "img/screenshots/youtube.png": "f658713e8694bc1320e8340300b7776f11fd886a05b7db09e944575d8abd7e05", + "img/screenshots/video.png": "2c21d23620ca3cd82e37e64581a3aa2cf9f97423f9880b597809643c182de45a", + "img/screenshots/iframe.png": "3a1a1474b0f704ece445cc74f179728f619b786e3ad7a94471cd0dcd2db39a45", + "CHANGELOG.md": "65ac19aad275f981add5b9994b6df80bb4eab1d0e63938321247b6147630c3df" + } +} +-----BEGIN PGP SIGNATURE----- +Version: OpenPGP.js v4.10.10 +Comment: https://openpgpjs.org + +wrcEARMKAAYFAmQvuKEAIQkQfk0ManCIZucWIQTzOyW2kQdOhGNlcPN+TQxq +cIhm5zf4AgQPzThNEa66GKJuEYrcyMlBOGdjEjY5uLRl53A+ZqdjUJqiGbZK +8DbeeZ4ksaBpaWiO42tQaIBWaPLdHwttQ9jDwgIFGiG+OZF1U/GV/PUA3tQE +a7dpaPEsLqAnyGbaYy1B9i7bnjYkjljLVUoRdyVaQviCC99N0U3SsX4X+DnO +ABOB9UQ= +=B9vL +-----END PGP SIGNATURE----- diff --git a/data/plugins/innius-video-panel/README.md b/data/plugins/innius-video-panel/README.md new file mode 100644 index 0000000000000..5a084c931fe1c --- /dev/null +++ b/data/plugins/innius-video-panel/README.md @@ -0,0 +1,36 @@ +# Video Panel +A panel to display video from a URL, YouTube ID, or an iFrame. + +![GitHub release (latest by date)](https://img.shields.io/github/v/release/innius/grafana-video-panel?logo=github) +[![Marketplace](https://img.shields.io/badge/dynamic/json?logo=grafana&color=F47A20&label=marketplace&prefix=v&query=version&url=https%3A%2F%2Fgrafana.com%2Fapi%2Fplugins%2Finnius-video-panel)](https://grafana.com/grafana/plugins/innius-video-panel) +[![Downloads](https://img.shields.io/badge/dynamic/json?logo=grafana&color=F47A20&label=downloads&query=downloads&url=https%3A%2F%2Fgrafana.com%2Fapi%2Fplugins%2Finnius-video-panel)](https://grafana.com/grafana/plugins/innius-video-panel) + +# Configuration + + +### File +- `URL` : the url to a valid video file. Eg: `https://example.com/video.mp4` +- Grafana [variables](https://grafana.com/docs/grafana/latest/variables/variable-types/) are supported. For instance: `https://example.com/your-camera-feed?id=${__from}` +- `Autoplay` (optional): autoplay video +- `Loop` (optional) : loop video + +![screenshot](https://raw.githubusercontent.com/innius/grafana-video-panel/master/src/img/screenshots/video.png) + +### YouTube +- `Video ID` : the value after watch?v= in the URL. Eg: `eQpyJQ2womo` +- `Autoplay` (optional): autoplay video +- `Loop` (optional) : loop video + +![screenshot](https://raw.githubusercontent.com/innius/grafana-video-panel/master/src/img/screenshots/youtube.png) + +### iFrame +The iFrame source is useful when you're dealing with camera feeds. +- `URL` : the url of the page. Eg: `https://example.com/your-camera-feed` +- Grafana [variables](https://grafana.com/docs/grafana/latest/variables/variable-types/) are supported. For instance: `https://example.com/your-camera-feed?id=${__from}` + +![screenshot](https://raw.githubusercontent.com/innius/grafana-video-panel/master/src/img/screenshots/iframe.png) + +# Installation +1. Go to Grafana Plugins page and search Video Panel by Innius. + +2. The panel is available in the Dashboards section in your Grafana main menu, and can be added like any other core panel in Grafana. diff --git a/data/plugins/innius-video-panel/img/examples.png b/data/plugins/innius-video-panel/img/examples.png new file mode 100644 index 0000000000000..b5b69778fd5d3 Binary files /dev/null and b/data/plugins/innius-video-panel/img/examples.png differ diff --git a/data/plugins/innius-video-panel/img/logo.svg b/data/plugins/innius-video-panel/img/logo.svg new file mode 100644 index 0000000000000..9a4dcbb2f3473 --- /dev/null +++ b/data/plugins/innius-video-panel/img/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/data/plugins/innius-video-panel/img/screenshots/iframe.png b/data/plugins/innius-video-panel/img/screenshots/iframe.png new file mode 100644 index 0000000000000..d348e47280d4d Binary files /dev/null and b/data/plugins/innius-video-panel/img/screenshots/iframe.png differ diff --git a/data/plugins/innius-video-panel/img/screenshots/video.png b/data/plugins/innius-video-panel/img/screenshots/video.png new file mode 100644 index 0000000000000..973d1cc76e903 Binary files /dev/null and b/data/plugins/innius-video-panel/img/screenshots/video.png differ diff --git a/data/plugins/innius-video-panel/img/screenshots/youtube.png b/data/plugins/innius-video-panel/img/screenshots/youtube.png new file mode 100644 index 0000000000000..0f8e43b7c0c2e Binary files /dev/null and b/data/plugins/innius-video-panel/img/screenshots/youtube.png differ diff --git a/data/plugins/innius-video-panel/module.js b/data/plugins/innius-video-panel/module.js new file mode 100644 index 0000000000000..7543de8e7f525 --- /dev/null +++ b/data/plugins/innius-video-panel/module.js @@ -0,0 +1,17 @@ +define(["@grafana/data","react","@emotion/css","@grafana/ui"],((e,t,r,o)=>(()=>{"use strict";var n={644:e=>{e.exports=r},305:t=>{t.exports=e},388:e=>{e.exports=o},650:e=>{e.exports=t}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return n[e](r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{i.r(s),i.d(s,{plugin:()=>N});var e={};i.r(e),i.d(e,{exclude:()=>$,extract:()=>I,parse:()=>S,parseUrl:()=>O,pick:()=>R,stringify:()=>F,stringifyUrl:()=>T});var t=i(305),r=i(650),o=i.n(r),n=i(644),a=i(388);const c="%[a-f0-9]{2}",l=new RegExp("("+c+")|([^%]+?)","gi"),u=new RegExp("("+c+")+","gi");function p(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const r=e.slice(0,t),o=e.slice(t);return Array.prototype.concat.call([],p(r),p(o))}function d(e){try{return decodeURIComponent(e)}catch{let t=e.match(l)||[];for(let r=1;rnull==e,g=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),h=Symbol("encodeFragmentIdentifier");function b(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function v(e,t){return t.encode?t.strict?g(e):encodeURIComponent(e):e}function w(e,t){return t.decode?function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"��","%FF%FE":"��"};let r=u.exec(e);for(;r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{const e=d(r[0]);e!==r[0]&&(t[r[0]]=e)}r=u.exec(e)}t["%C2"]="�";const o=Object.keys(t);for(const r of o)e=e.replace(new RegExp(r,"g"),t[r]);return e}(e)}}(e):e}function x(e){return Array.isArray(e)?e.sort():"object"==typeof e?x(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function k(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function j(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function I(e){const t=(e=k(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function S(e,t){b((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const r=function(e){let t;switch(e.arrayFormat){case"index":return(e,r,o)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===o[e]&&(o[e]={}),o[e][t[1]]=r):o[e]=r};case"bracket":return(e,r,o)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==o[e]?o[e]=[...o[e],r]:o[e]=[r]:o[e]=r};case"colon-list-separator":return(e,r,o)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==o[e]?o[e]=[...o[e],r]:o[e]=[r]:o[e]=r};case"comma":case"separator":return(t,r,o)=>{const n="string"==typeof r&&r.includes(e.arrayFormatSeparator),a="string"==typeof r&&!n&&w(r,e).includes(e.arrayFormatSeparator);r=a?w(r,e):r;const i=n||a?r.split(e.arrayFormatSeparator).map((t=>w(t,e))):null===r?r:w(r,e);o[t]=i};case"bracket-separator":return(t,r,o)=>{const n=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!n)return void(o[t]=r?w(r,e):r);const a=null===r?[]:r.split(e.arrayFormatSeparator).map((t=>w(t,e)));void 0!==o[t]?o[t]=[...o[t],...a]:o[t]=a};default:return(e,t,r)=>{void 0!==r[e]?r[e]=[...[r[e]].flat(),t]:r[e]=t}}}(t),o=Object.create(null);if("string"!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;for(const n of e.split("&")){if(""===n)continue;const e=t.decode?n.replace(/\+/g," "):n;let[a,i]=f(e,"=");void 0===a&&(a=e),i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:w(i,t),r(w(a,t),i,o)}for(const[e,r]of Object.entries(o))if("object"==typeof r&&null!==r)for(const[e,o]of Object.entries(r))r[e]=j(o,t);else o[e]=j(r,t);return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce(((e,t)=>{const r=o[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=x(r):e[t]=r,e}),Object.create(null))}function F(e,t){if(!e)return"";b((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const r=r=>t.skipNull&&y(e[r])||t.skipEmptyString&&""===e[r],o=function(e){switch(e.arrayFormat){case"index":return t=>(r,o)=>{const n=r.length;return void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:null===o?[...r,[v(t,e),"[",n,"]"].join("")]:[...r,[v(t,e),"[",v(n,e),"]=",v(o,e)].join("")]};case"bracket":return t=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:null===o?[...r,[v(t,e),"[]"].join("")]:[...r,[v(t,e),"[]=",v(o,e)].join("")];case"colon-list-separator":return t=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:null===o?[...r,[v(t,e),":list="].join("")]:[...r,[v(t,e),":list=",v(o,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return r=>(o,n)=>void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?o:(n=null===n?"":n,0===o.length?[[v(r,e),t,v(n,e)].join("")]:[[o,v(n,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:null===o?[...r,v(t,e)]:[...r,[v(t,e),"=",v(o,e)].join("")]}}(t),n={};for(const[t,o]of Object.entries(e))r(t)||(n[t]=o);const a=Object.keys(n);return!1!==t.sort&&a.sort(t.sort),a.map((r=>{const n=e[r];return void 0===n?"":null===n?v(r,t):Array.isArray(n)?0===n.length&&"bracket-separator"===t.arrayFormat?v(r,t)+"[]":n.reduce(o(r),[]).join("&"):v(r,t)+"="+v(n,t)})).filter((e=>e.length>0)).join("&")}function O(e,t){t={decode:!0,...t};let[r,o]=f(e,"#");return void 0===r&&(r=e),{url:r?.split("?")?.[0]??"",query:S(I(e),t),...t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:w(o,t)}:{}}}function T(e,t){t={encode:!0,strict:!0,[h]:!0,...t};const r=k(e.url).split("?")[0]||"";let o=F({...S(I(e.url),{sort:!1}),...e.query},t);o&&(o=`?${o}`);let n=function(e){let t="";const r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);if(e.fragmentIdentifier){const o=new URL(r);o.hash=e.fragmentIdentifier,n=t[h]?o.hash:`#${e.fragmentIdentifier}`}return`${r}${o}${n}`}function R(e,t,r){r={parseFragmentIdentifier:!0,[h]:!1,...r};const{url:o,query:n,fragmentIdentifier:a}=O(e,r);return T({url:o,query:m(n,t),fragmentIdentifier:a},r)}function $(e,t,r){return R(e,Array.isArray(t)?e=>!t.includes(e):(e,r)=>!t(e,r),r)}const E=e,U=e=>({wrapper:n.css` + position: absolute; + `,video:n.css` + top: 0; + left: 0; + `}),N=new t.PanelPlugin((({options:e,data:t,width:r,height:i,replaceVariables:s})=>{const c=(0,a.useStyles)(U);let l,u=s(e.videoURL||"");if("youtube"===e.videoType){const t={loop:0,autoplay:0,playlist:e.videoId};e.autoPlay&&(t.autoplay=1),e.loop&&(t.loop=1),u="https://www.youtube.com/embed/"+e.videoId+"?"+E.stringify(t)}else"iframe"===e.videoType&&(u=s(e.iframeURL||""));return e.customBackground&&(l=e.backgroundColor||""),o().createElement("div",{className:(0,n.cx)(c.wrapper,n.css` + width: ${r}px; + height: ${i}px; + `)},"url"===e.videoType?o().createElement("video",{className:(0,n.cx)(c.video,n.css` + width: ${r}px; + height: ${i}px; + `),controls:!0,autoPlay:e.autoPlay,loop:e.loop,muted:!0},o().createElement("source",{src:u})):o().createElement("iframe",{frameBorder:"0",allow:e.geolocate?"geolocation":"",allowFullScreen:!0,className:(0,n.cx)(c.video,n.css` + width: ${r}px; + height: ${i}px; + background: ${l}; + `),src:u}))})).setNoPadding().setPanelOptions((e=>e.addRadio({path:"videoType",name:"Source",defaultValue:"youtube",settings:{options:[{value:"url",label:"File"},{value:"youtube",label:"YouTube"},{value:"iframe",label:"iframe"}]}}).addTextInput({path:"videoId",name:"Video ID",description:"The value after watch?v= in the URL.",defaultValue:"eQpyJQ2womo",settings:{placeholder:"eQpyJQ2womo"},showIf:e=>"youtube"===e.videoType}).addTextInput({path:"videoURL",name:"URL",description:"A URL to a valid video file.",settings:{placeholder:"https://example.com/video.mp4"},showIf:e=>"url"===e.videoType}).addTextInput({path:"iframeURL",name:"URL",description:"A valid URL.",settings:{placeholder:"https://example.com/video"},showIf:e=>"iframe"===e.videoType}).addBooleanSwitch({path:"customBackground",name:"Custom Background",defaultValue:!1,showIf:e=>"iframe"===e.videoType}).addColorPicker({path:"backgroundColor",name:"Background Color",description:"The background color for the video",showIf:e=>e.customBackground&&"iframe"===e.videoType}).addBooleanSwitch({path:"autoPlay",name:"Autoplay",defaultValue:!0,showIf:e=>"iframe"!==e.videoType}).addBooleanSwitch({path:"loop",name:"Loop",defaultValue:!0,showIf:e=>"iframe"!==e.videoType}).addBooleanSwitch({path:"geolocate",name:"Geolocate",defaultValue:!1,showIf:e=>"iframe"===e.videoType})))})(),s})())); +//# sourceMappingURL=module.js.map \ No newline at end of file diff --git a/data/plugins/innius-video-panel/module.js.map b/data/plugins/innius-video-panel/module.js.map new file mode 100644 index 0000000000000..92f7fb5bd754f --- /dev/null +++ b/data/plugins/innius-video-panel/module.js.map @@ -0,0 +1 @@ +{"version":3,"file":"module.js","mappings":"4GAAAA,EAAOC,QAAUC,C,UCAjBF,EAAOC,QAAUE,C,UCAjBH,EAAOC,QAAUG,C,UCAjBJ,EAAOC,QAAUI,C,GCCbC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaR,QAGrB,IAAID,EAASM,EAAyBE,GAAY,CAGjDP,QAAS,CAAC,GAOX,OAHAU,EAAoBH,GAAUR,EAAQA,EAAOC,QAASM,GAG/CP,EAAOC,OACf,CCrBAM,EAAoBK,EAAKZ,IACxB,IAAIa,EAASb,GAAUA,EAAOc,WAC7B,IAAOd,EAAiB,QACxB,IAAM,EAEP,OADAO,EAAoBQ,EAAEF,EAAQ,CAAEG,EAAGH,IAC5BA,CAAM,ECLdN,EAAoBQ,EAAI,CAACd,EAASgB,KACjC,IAAI,IAAIC,KAAOD,EACXV,EAAoBY,EAAEF,EAAYC,KAASX,EAAoBY,EAAElB,EAASiB,IAC5EE,OAAOC,eAAepB,EAASiB,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDX,EAAoBY,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFlB,EAAoBsB,EAAK5B,IACH,oBAAX6B,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAepB,EAAS6B,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAepB,EAAS,aAAc,CAAE+B,OAAO,GAAO,E,iOCL9D,MAAMC,EAAQ,eACRC,EAAgB,IAAIC,OAAO,IAAMF,EAAQ,aAAc,MACvDG,EAAe,IAAID,OAAO,IAAMF,EAAQ,KAAM,MAEpD,SAASI,EAAiBC,EAAYC,GACrC,IAEC,MAAO,CAACC,mBAAmBF,EAAWG,KAAK,KAC5C,CAAE,MAEF,CAEA,GAA0B,IAAtBH,EAAWI,OACd,OAAOJ,EAGRC,EAAQA,GAAS,EAGjB,MAAMI,EAAOL,EAAWM,MAAM,EAAGL,GAC3BM,EAAQP,EAAWM,MAAML,GAE/B,OAAOO,MAAMpB,UAAUqB,OAAOnB,KAAK,GAAIS,EAAiBM,GAAON,EAAiBQ,GACjF,CAEA,SAASG,EAAOC,GACf,IACC,OAAOT,mBAAmBS,EAC3B,CAAE,MACD,IAAIC,EAASD,EAAME,MAAMjB,IAAkB,GAE3C,IAAK,IAAIkB,EAAI,EAAGA,EAAIF,EAAOR,OAAQU,IAGlCF,GAFAD,EAAQZ,EAAiBa,EAAQE,GAAGX,KAAK,KAE1BU,MAAMjB,IAAkB,GAGxC,OAAOe,CACR,CACD,CCvCe,SAASI,EAAaC,EAAQC,GAC5C,GAAwB,iBAAXD,GAA4C,iBAAdC,EAC1C,MAAM,IAAIC,UAAU,iDAGrB,GAAe,KAAXF,GAA+B,KAAdC,EACpB,MAAO,GAGR,MAAME,EAAiBH,EAAOI,QAAQH,GAEtC,OAAwB,IAApBE,EACI,GAGD,CACNH,EAAOV,MAAM,EAAGa,GAChBH,EAAOV,MAAMa,EAAiBF,EAAUb,QAE1C,CCnBO,SAASiB,EAAYC,EAAQC,GACnC,MAAMC,EAAS,CAAC,EAEhB,GAAIhB,MAAMiB,QAAQF,GACjB,IAAK,MAAM3C,KAAO2C,EAAW,CAC5B,MAAMG,EAAa5C,OAAO6C,yBAAyBL,EAAQ1C,GACvD8C,GAAY1C,YACfF,OAAOC,eAAeyC,EAAQ5C,EAAK8C,EAErC,MAGA,IAAK,MAAM9C,KAAOgD,QAAQC,QAAQP,GAAS,CAC1C,MAAMI,EAAa5C,OAAO6C,yBAAyBL,EAAQ1C,GACvD8C,EAAW1C,YAEVuC,EAAU3C,EADA0C,EAAO1C,GACK0C,IACzBxC,OAAOC,eAAeyC,EAAQ5C,EAAK8C,EAGtC,CAGD,OAAOF,CACR,CCpBA,MAAMM,EAAoBpC,GAASA,QAG7BqC,EAAkBf,GAAUgB,mBAAmBhB,GAAQiB,QAAQ,YAAYC,GAAK,IAAIA,EAAEC,WAAW,GAAGC,SAAS,IAAIC,kBAEjHC,EAA2B9C,OAAO,4BA8OxC,SAAS+C,EAA6B7C,GACrC,GAAqB,iBAAVA,GAAuC,IAAjBA,EAAMU,OACtC,MAAM,IAAIc,UAAU,uDAEtB,CAEA,SAASsB,EAAO9C,EAAO+C,GACtB,OAAIA,EAAQD,OACJC,EAAQC,OAASX,EAAgBrC,GAASsC,mBAAmBtC,GAG9DA,CACR,CAEA,SAAS,EAAOA,EAAO+C,GACtB,OAAIA,EAAQ/B,OHzLE,SAA4BiC,GAC1C,GAA0B,iBAAfA,EACV,MAAM,IAAIzB,UAAU,6DAA+DyB,EAAa,KAGjG,IAEC,OAAOzC,mBAAmByC,EAC3B,CAAE,MAED,OA9CF,SAAkChC,GAEjC,MAAMiC,EAAa,CAClB,SAAU,KACV,SAAU,MAGX,IAAI/B,EAAQf,EAAa+C,KAAKlC,GAC9B,KAAOE,GAAO,CACb,IAEC+B,EAAW/B,EAAM,IAAMX,mBAAmBW,EAAM,GACjD,CAAE,MACD,MAAMW,EAASd,EAAOG,EAAM,IAExBW,IAAWX,EAAM,KACpB+B,EAAW/B,EAAM,IAAMW,EAEzB,CAEAX,EAAQf,EAAa+C,KAAKlC,EAC3B,CAGAiC,EAAW,OAAS,IAEpB,MAAME,EAAUhE,OAAOiE,KAAKH,GAE5B,IAAK,MAAMhE,KAAOkE,EAEjBnC,EAAQA,EAAMsB,QAAQ,IAAIpC,OAAOjB,EAAK,KAAMgE,EAAWhE,IAGxD,OAAO+B,CACR,CAYSqC,CAAyBL,EACjC,CACD,CG8KS,CAAgBjD,GAGjBA,CACR,CAEA,SAASuD,EAAWtC,GACnB,OAAIH,MAAMiB,QAAQd,GACVA,EAAMuC,OAGO,iBAAVvC,EACHsC,EAAWnE,OAAOiE,KAAKpC,IAC5BuC,MAAK,CAACxE,EAAGyE,IAAMC,OAAO1E,GAAK0E,OAAOD,KAClCE,KAAIzE,GAAO+B,EAAM/B,KAGb+B,CACR,CAEA,SAAS2C,EAAW3C,GACnB,MAAM4C,EAAY5C,EAAMS,QAAQ,KAKhC,OAJmB,IAAfmC,IACH5C,EAAQA,EAAML,MAAM,EAAGiD,IAGjB5C,CACR,CAYA,SAAS6C,EAAW9D,EAAO+C,GAO1B,OANIA,EAAQgB,eAAiBL,OAAOM,MAAMN,OAAO1D,KAA6B,iBAAVA,GAAuC,KAAjBA,EAAMiE,OAC/FjE,EAAQ0D,OAAO1D,IACL+C,EAAQmB,eAA2B,OAAVlE,GAA2C,SAAxBA,EAAMmE,eAAoD,UAAxBnE,EAAMmE,gBAC9FnE,EAAgC,SAAxBA,EAAMmE,eAGRnE,CACR,CAEO,SAASoE,EAAQnD,GAEvB,MAAMoD,GADNpD,EAAQ2C,EAAW3C,IACMS,QAAQ,KACjC,OAAoB,IAAhB2C,EACI,GAGDpD,EAAML,MAAMyD,EAAa,EACjC,CAEO,SAASC,EAAMC,EAAOxB,GAW5BF,GAVAE,EAAU,CACT/B,QAAQ,EACRwC,MAAM,EACNgB,YAAa,OACbC,qBAAsB,IACtBV,cAAc,EACdG,eAAe,KACZnB,IAGiC0B,sBAErC,MAAMC,EApMP,SAA8B3B,GAC7B,IAAIjB,EAEJ,OAAQiB,EAAQyB,aACf,IAAK,QACJ,MAAO,CAACtF,EAAKc,EAAO2E,KACnB7C,EAAS,YAAYqB,KAAKjE,GAE1BA,EAAMA,EAAIqD,QAAQ,UAAW,IAExBT,QAKoBpD,IAArBiG,EAAYzF,KACfyF,EAAYzF,GAAO,CAAC,GAGrByF,EAAYzF,GAAK4C,EAAO,IAAM9B,GAR7B2E,EAAYzF,GAAOc,CAQe,EAIrC,IAAK,UACJ,MAAO,CAACd,EAAKc,EAAO2E,KACnB7C,EAAS,SAASqB,KAAKjE,GACvBA,EAAMA,EAAIqD,QAAQ,OAAQ,IAErBT,OAKoBpD,IAArBiG,EAAYzF,GAKhByF,EAAYzF,GAAO,IAAIyF,EAAYzF,GAAMc,GAJxC2E,EAAYzF,GAAO,CAACc,GALpB2E,EAAYzF,GAAOc,CAS2B,EAIjD,IAAK,uBACJ,MAAO,CAACd,EAAKc,EAAO2E,KACnB7C,EAAS,WAAWqB,KAAKjE,GACzBA,EAAMA,EAAIqD,QAAQ,SAAU,IAEvBT,OAKoBpD,IAArBiG,EAAYzF,GAKhByF,EAAYzF,GAAO,IAAIyF,EAAYzF,GAAMc,GAJxC2E,EAAYzF,GAAO,CAACc,GALpB2E,EAAYzF,GAAOc,CAS2B,EAIjD,IAAK,QACL,IAAK,YACJ,MAAO,CAACd,EAAKc,EAAO2E,KACnB,MAAM5C,EAA2B,iBAAV/B,GAAsBA,EAAM4E,SAAS7B,EAAQ0B,sBAC9DI,EAAmC,iBAAV7E,IAAuB+B,GAAW,EAAO/B,EAAO+C,GAAS6B,SAAS7B,EAAQ0B,sBACzGzE,EAAQ6E,EAAiB,EAAO7E,EAAO+C,GAAW/C,EAClD,MAAM8E,EAAW/C,GAAW8C,EAAiB7E,EAAMO,MAAMwC,EAAQ0B,sBAAsBd,KAAIoB,GAAQ,EAAOA,EAAMhC,KAAuB,OAAV/C,EAAiBA,EAAQ,EAAOA,EAAO+C,GACpK4B,EAAYzF,GAAO4F,CAAQ,EAI7B,IAAK,oBACJ,MAAO,CAAC5F,EAAKc,EAAO2E,KACnB,MAAM5C,EAAU,SAASiD,KAAK9F,GAG9B,GAFAA,EAAMA,EAAIqD,QAAQ,OAAQ,KAErBR,EAEJ,YADA4C,EAAYzF,GAAOc,EAAQ,EAAOA,EAAO+C,GAAW/C,GAIrD,MAAMiF,EAAuB,OAAVjF,EAChB,GACAA,EAAMO,MAAMwC,EAAQ0B,sBAAsBd,KAAIoB,GAAQ,EAAOA,EAAMhC,UAE7CrE,IAArBiG,EAAYzF,GAKhByF,EAAYzF,GAAO,IAAIyF,EAAYzF,MAAS+F,GAJ3CN,EAAYzF,GAAO+F,CAImC,EAIzD,QACC,MAAO,CAAC/F,EAAKc,EAAO2E,UACMjG,IAArBiG,EAAYzF,GAKhByF,EAAYzF,GAAO,IAAI,CAACyF,EAAYzF,IAAMgG,OAAQlF,GAJjD2E,EAAYzF,GAAOc,CAIoC,EAI5D,CA0FmBmF,CAAqBpC,GAGjCqC,EAAchG,OAAOiG,OAAO,MAElC,GAAqB,iBAAVd,EACV,OAAOa,EAKR,KAFAb,EAAQA,EAAMN,OAAO1B,QAAQ,SAAU,KAGtC,OAAO6C,EAGR,IAAK,MAAME,KAAaf,EAAMhE,MAAM,KAAM,CACzC,GAAkB,KAAd+E,EACH,SAGD,MAAMC,EAAaxC,EAAQ/B,OAASsE,EAAU/C,QAAQ,MAAO,KAAO+C,EAEpE,IAAKpG,EAAKc,GAASqB,EAAakE,EAAY,UAEhC7G,IAARQ,IACHA,EAAMqG,GAKPvF,OAAkBtB,IAAVsB,EAAsB,KAAQ,CAAC,QAAS,YAAa,qBAAqB4E,SAAS7B,EAAQyB,aAAexE,EAAQ,EAAOA,EAAO+C,GACxI2B,EAAU,EAAOxF,EAAK6D,GAAU/C,EAAOoF,EACxC,CAEA,IAAK,MAAOlG,EAAKc,KAAUZ,OAAOgE,QAAQgC,GACzC,GAAqB,iBAAVpF,GAAgC,OAAVA,EAChC,IAAK,MAAOwF,EAAMC,KAAWrG,OAAOgE,QAAQpD,GAC3CA,EAAMwF,GAAQ1B,EAAW2B,EAAQ1C,QAGlCqC,EAAYlG,GAAO4E,EAAW9D,EAAO+C,GAIvC,OAAqB,IAAjBA,EAAQS,KACJ4B,IAKiB,IAAjBrC,EAAQS,KAAgBpE,OAAOiE,KAAK+B,GAAa5B,OAASpE,OAAOiE,KAAK+B,GAAa5B,KAAKT,EAAQS,OAAOkC,QAAO,CAAC5D,EAAQ5C,KAC9H,MAAMc,EAAQoF,EAAYlG,GAQ1B,OAPIyG,QAAQ3F,IAA2B,iBAAVA,IAAuBc,MAAMiB,QAAQ/B,GAEjE8B,EAAO5C,GAAOqE,EAAWvD,GAEzB8B,EAAO5C,GAAOc,EAGR8B,CAAM,GACX1C,OAAOiG,OAAO,MAClB,CAEO,SAASO,EAAUhE,EAAQmB,GACjC,IAAKnB,EACJ,MAAO,GAQRiB,GALAE,EAAU,CAACD,QAAQ,EAClBE,QAAQ,EACRwB,YAAa,OACbC,qBAAsB,OAAQ1B,IAEM0B,sBAErC,MAAMoB,EAAe3G,GACnB6D,EAAQ+C,UAAY1D,EAAkBR,EAAO1C,KAC1C6D,EAAQgD,iBAAmC,KAAhBnE,EAAO1C,GAGjCwF,EApZP,SAA+B3B,GAC9B,OAAQA,EAAQyB,aACf,IAAK,QACJ,OAAOtF,GAAO,CAAC4C,EAAQ9B,KACtB,MAAMgG,EAAQlE,EAAOpB,OAErB,YACWhC,IAAVsB,GACI+C,EAAQ+C,UAAsB,OAAV9F,GACpB+C,EAAQgD,iBAA6B,KAAV/F,EAExB8B,EAGM,OAAV9B,EACI,IACH8B,EAAQ,CAACgB,EAAO5D,EAAK6D,GAAU,IAAKiD,EAAO,KAAKvF,KAAK,KAInD,IACHqB,EACH,CAACgB,EAAO5D,EAAK6D,GAAU,IAAKD,EAAOkD,EAAOjD,GAAU,KAAMD,EAAO9C,EAAO+C,IAAUtC,KAAK,IACvF,EAIH,IAAK,UACJ,OAAOvB,GAAO,CAAC4C,EAAQ9B,SAEXtB,IAAVsB,GACI+C,EAAQ+C,UAAsB,OAAV9F,GACpB+C,EAAQgD,iBAA6B,KAAV/F,EAExB8B,EAGM,OAAV9B,EACI,IACH8B,EACH,CAACgB,EAAO5D,EAAK6D,GAAU,MAAMtC,KAAK,KAI7B,IACHqB,EACH,CAACgB,EAAO5D,EAAK6D,GAAU,MAAOD,EAAO9C,EAAO+C,IAAUtC,KAAK,KAK9D,IAAK,uBACJ,OAAOvB,GAAO,CAAC4C,EAAQ9B,SAEXtB,IAAVsB,GACI+C,EAAQ+C,UAAsB,OAAV9F,GACpB+C,EAAQgD,iBAA6B,KAAV/F,EAExB8B,EAGM,OAAV9B,EACI,IACH8B,EACH,CAACgB,EAAO5D,EAAK6D,GAAU,UAAUtC,KAAK,KAIjC,IACHqB,EACH,CAACgB,EAAO5D,EAAK6D,GAAU,SAAUD,EAAO9C,EAAO+C,IAAUtC,KAAK,KAKjE,IAAK,QACL,IAAK,YACL,IAAK,oBAAqB,CACzB,MAAMwF,EAAsC,sBAAxBlD,EAAQyB,YACzB,MACA,IAEH,OAAOtF,GAAO,CAAC4C,EAAQ9B,SAEXtB,IAAVsB,GACI+C,EAAQ+C,UAAsB,OAAV9F,GACpB+C,EAAQgD,iBAA6B,KAAV/F,EAExB8B,GAIR9B,EAAkB,OAAVA,EAAiB,GAAKA,EAER,IAAlB8B,EAAOpB,OACH,CAAC,CAACoC,EAAO5D,EAAK6D,GAAUkD,EAAanD,EAAO9C,EAAO+C,IAAUtC,KAAK,KAGnE,CAAC,CAACqB,EAAQgB,EAAO9C,EAAO+C,IAAUtC,KAAKsC,EAAQ0B,uBAExD,CAEA,QACC,OAAOvF,GAAO,CAAC4C,EAAQ9B,SAEXtB,IAAVsB,GACI+C,EAAQ+C,UAAsB,OAAV9F,GACpB+C,EAAQgD,iBAA6B,KAAV/F,EAExB8B,EAGM,OAAV9B,EACI,IACH8B,EACHgB,EAAO5D,EAAK6D,IAIP,IACHjB,EACH,CAACgB,EAAO5D,EAAK6D,GAAU,IAAKD,EAAO9C,EAAO+C,IAAUtC,KAAK,KAK9D,CAsRmByF,CAAsBnD,GAElCoD,EAAa,CAAC,EAEpB,IAAK,MAAOjH,EAAKc,KAAUZ,OAAOgE,QAAQxB,GACpCiE,EAAa3G,KACjBiH,EAAWjH,GAAOc,GAIpB,MAAMqD,EAAOjE,OAAOiE,KAAK8C,GAMzB,OAJqB,IAAjBpD,EAAQS,MACXH,EAAKG,KAAKT,EAAQS,MAGZH,EAAKM,KAAIzE,IACf,MAAMc,EAAQ4B,EAAO1C,GAErB,YAAcR,IAAVsB,EACI,GAGM,OAAVA,EACI8C,EAAO5D,EAAK6D,GAGhBjC,MAAMiB,QAAQ/B,GACI,IAAjBA,EAAMU,QAAwC,sBAAxBqC,EAAQyB,YAC1B1B,EAAO5D,EAAK6D,GAAW,KAGxB/C,EACL0F,OAAOhB,EAAUxF,GAAM,IACvBuB,KAAK,KAGDqC,EAAO5D,EAAK6D,GAAW,IAAMD,EAAO9C,EAAO+C,EAAQ,IACxDqD,QAAO5D,GAAKA,EAAE9B,OAAS,IAAGD,KAAK,IACnC,CAEO,SAAS4F,EAASC,EAAKvD,GAC7BA,EAAU,CACT/B,QAAQ,KACL+B,GAGJ,IAAKwD,EAAMC,GAAQnF,EAAaiF,EAAK,KAMrC,YAJa5H,IAAT6H,IACHA,EAAOD,GAGD,CACNA,IAAKC,GAAMhG,MAAM,OAAO,IAAM,GAC9BgE,MAAOD,EAAMF,EAAQkC,GAAMvD,MACvBA,GAAWA,EAAQ0D,yBAA2BD,EAAO,CAACE,mBAAoB,EAAOF,EAAMzD,IAAY,CAAC,EAE1G,CAEO,SAAS4D,EAAa/E,EAAQmB,GACpCA,EAAU,CACTD,QAAQ,EACRE,QAAQ,EACR,CAACJ,IAA2B,KACzBG,GAGJ,MAAMuD,EAAM1C,EAAWhC,EAAO0E,KAAK/F,MAAM,KAAK,IAAM,GAQpD,IAAIqG,EAAchB,EALJ,IACVtB,EAHiBF,EAAQxC,EAAO0E,KAGZ,CAAC9C,MAAM,OAC3B5B,EAAO2C,OAGwBxB,GAC/B6D,IACHA,EAAc,IAAIA,KAGnB,IAAIJ,EA5ML,SAAiBF,GAChB,IAAIE,EAAO,GACX,MAAM3C,EAAYyC,EAAI5E,QAAQ,KAK9B,OAJmB,IAAfmC,IACH2C,EAAOF,EAAI1F,MAAMiD,IAGX2C,CACR,CAoMYK,CAAQjF,EAAO0E,KAC1B,GAAI1E,EAAO8E,mBAAoB,CAC9B,MAAMI,EAA6B,IAAIC,IAAIT,GAC3CQ,EAA2BN,KAAO5E,EAAO8E,mBACzCF,EAAOzD,EAAQH,GAA4BkE,EAA2BN,KAAO,IAAI5E,EAAO8E,oBACzF,CAEA,MAAO,GAAGJ,IAAMM,IAAcJ,GAC/B,CAEO,SAASQ,EAAK/F,EAAOmF,EAAQrD,GACnCA,EAAU,CACT0D,yBAAyB,EACzB,CAAC7D,IAA2B,KACzBG,GAGJ,MAAM,IAACuD,EAAG,MAAE/B,EAAK,mBAAEmC,GAAsBL,EAASpF,EAAO8B,GAEzD,OAAO4D,EAAa,CACnBL,MACA/B,MAAO5C,EAAY4C,EAAO6B,GAC1BM,sBACE3D,EACJ,CAEO,SAASkE,EAAQhG,EAAOmF,EAAQrD,GAGtC,OAAOiE,EAAK/F,EAFYH,MAAMiB,QAAQqE,GAAUlH,IAAQkH,EAAOxB,SAAS1F,GAAO,CAACA,EAAKc,KAAWoG,EAAOlH,EAAKc,GAExE+C,EACrC,CC5gBA,UCkFMmE,EAAaC,IACV,CACLC,QAASC,EAAAA,GAAG;;MAGZC,MAAOD,EAAAA,GAAG;;;QCnFDE,EAAS,IAAIC,EAAAA,aDGiB,EAAGzE,UAAS0E,OAAMC,QAAOC,SAAQC,uBAC1E,MAAMC,GAASC,EAAAA,EAAAA,WAAUZ,GAEzB,IAsBIa,EAtBAC,EAAWJ,EAAiB7E,EAAQiF,UAAY,IAEpD,GAA0B,YAAtBjF,EAAQkF,UAAyB,CACnC,MAAMC,EAAgB,CACpBC,KAAM,EACNC,SAAU,EACVC,SAAUtF,EAAQuF,SAGhBvF,EAAQwF,WACVL,EAAcE,SAAW,GAGvBrF,EAAQoF,OACVD,EAAcC,KAAO,GAGvBH,EAAW,iCAAmCjF,EAAQuF,QAAU,IAAME,EAAAA,UAAaN,EACrF,KAAiC,WAAtBnF,EAAQkF,YACjBD,EAAWJ,EAAiB7E,EAAQ0F,WAAa,KAOnD,OAHI1F,EAAQ2F,mBACVX,EAAahF,EAAQ4F,iBAAmB,IAGxC,kBAACC,MAAAA,CACCC,WAAWC,EAAAA,EAAAA,IACTjB,EAAOT,QACPC,EAAAA,GAAG;mBACQK;oBACCC;YAIS,QAAtB5E,EAAQkF,UACP,kBAACX,QAAAA,CACCuB,WAAWC,EAAAA,EAAAA,IACTjB,EAAOP,MACPD,EAAAA,GAAG;uBACQK;wBACCC;eAGdoB,UAAAA,EACAR,SAAUxF,EAAQwF,SAClBJ,KAAMpF,EAAQoF,KACda,OAAAA,GAEA,kBAACC,SAAAA,CAAOC,IAAKlB,KAGf,kBAACmB,SAAAA,CACCC,YAAY,IACZC,MAAOtG,EAAQuG,UAAY,cAAgB,GAC3CC,iBAAAA,EACAV,WAAWC,EAAAA,EAAAA,IACTjB,EAAOP,MACPD,EAAAA,GAAG;uBACQK;wBACCC;4BACII;eAGlBmB,IAAKlB,IAER,ICzEyDwB,eAAeC,iBAAiBC,GACvFA,EACJC,SAAS,CACRC,KAAM,YACNC,KAAM,SACNC,aAAc,UACdC,SAAU,CACRhH,QAAS,CACP,CACE/C,MAAO,MACPgK,MAAO,QAET,CACEhK,MAAO,UACPgK,MAAO,WAET,CACEhK,MAAO,SACPgK,MAAO,cAKdC,aAAa,CACZL,KAAM,UACNC,KAAM,WACNK,YAAa,uCACbJ,aAAc,cACdC,SAAU,CACRI,YAAa,eAEfC,OAASC,GAAgC,YAArBA,EAAOpC,YAE5BgC,aAAa,CACZL,KAAM,WACNC,KAAM,MACNK,YAAa,+BACbH,SAAU,CACRI,YAAa,iCAEfC,OAASC,GAAgC,QAArBA,EAAOpC,YAE5BgC,aAAa,CACZL,KAAM,YACNC,KAAM,MACNK,YAAa,eACbH,SAAU,CACRI,YAAa,6BAEfC,OAASC,GAAgC,WAArBA,EAAOpC,YAE5BqC,iBAAiB,CAChBV,KAAM,mBACNC,KAAM,oBACNC,cAAc,EACdM,OAASC,GAAgC,WAArBA,EAAOpC,YAE5BsC,eAAe,CACdX,KAAM,kBACNC,KAAM,mBACNK,YAAa,qCACbE,OAASC,GAAWA,EAAO3B,kBAAyC,WAArB2B,EAAOpC,YAEvDqC,iBAAiB,CAChBV,KAAM,WACNC,KAAM,WACNC,cAAc,EACdM,OAASC,GAAgC,WAArBA,EAAOpC,YAE5BqC,iBAAiB,CAChBV,KAAM,OACNC,KAAM,OACNC,cAAc,EACdM,OAASC,GAAgC,WAArBA,EAAOpC,YAE5BqC,iBAAiB,CAChBV,KAAM,YACNC,KAAM,YACNC,cAAc,EACdM,OAASC,GAAgC,WAArBA,EAAOpC,a","sources":["webpack:///external amd \"@emotion/css\"","webpack:///external amd \"@grafana/data\"","webpack:///external amd \"@grafana/ui\"","webpack:///external amd \"react\"","webpack:///webpack/bootstrap","webpack:///webpack/runtime/compat get default export","webpack:///webpack/runtime/define property getters","webpack:///webpack/runtime/hasOwnProperty shorthand","webpack:///webpack/runtime/make namespace object","webpack:///../node_modules/decode-uri-component/index.js","webpack:///../node_modules/split-on-first/index.js","webpack:///../node_modules/filter-obj/index.js","webpack:///../node_modules/query-string/base.js","webpack:///../node_modules/query-string/index.js","webpack:///./VideoPanel.tsx","webpack:///./module.ts"],"sourcesContent":["module.exports = __WEBPACK_EXTERNAL_MODULE__644__;","module.exports = __WEBPACK_EXTERNAL_MODULE__305__;","module.exports = __WEBPACK_EXTERNAL_MODULE__388__;","module.exports = __WEBPACK_EXTERNAL_MODULE__650__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const token = '%[a-f0-9]{2}';\nconst singleMatcher = new RegExp('(' + token + ')|([^%]+?)', 'gi');\nconst multiMatcher = new RegExp('(' + token + ')+', 'gi');\n\nfunction decodeComponents(components, split) {\n\ttry {\n\t\t// Try to decode the entire string first\n\t\treturn [decodeURIComponent(components.join(''))];\n\t} catch {\n\t\t// Do nothing\n\t}\n\n\tif (components.length === 1) {\n\t\treturn components;\n\t}\n\n\tsplit = split || 1;\n\n\t// Split the array in 2 parts\n\tconst left = components.slice(0, split);\n\tconst right = components.slice(split);\n\n\treturn Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));\n}\n\nfunction decode(input) {\n\ttry {\n\t\treturn decodeURIComponent(input);\n\t} catch {\n\t\tlet tokens = input.match(singleMatcher) || [];\n\n\t\tfor (let i = 1; i < tokens.length; i++) {\n\t\t\tinput = decodeComponents(tokens, i).join('');\n\n\t\t\ttokens = input.match(singleMatcher) || [];\n\t\t}\n\n\t\treturn input;\n\t}\n}\n\nfunction customDecodeURIComponent(input) {\n\t// Keep track of all the replacements and prefill the map with the `BOM`\n\tconst replaceMap = {\n\t\t'%FE%FF': '\\uFFFD\\uFFFD',\n\t\t'%FF%FE': '\\uFFFD\\uFFFD',\n\t};\n\n\tlet match = multiMatcher.exec(input);\n\twhile (match) {\n\t\ttry {\n\t\t\t// Decode as big chunks as possible\n\t\t\treplaceMap[match[0]] = decodeURIComponent(match[0]);\n\t\t} catch {\n\t\t\tconst result = decode(match[0]);\n\n\t\t\tif (result !== match[0]) {\n\t\t\t\treplaceMap[match[0]] = result;\n\t\t\t}\n\t\t}\n\n\t\tmatch = multiMatcher.exec(input);\n\t}\n\n\t// Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else\n\treplaceMap['%C2'] = '\\uFFFD';\n\n\tconst entries = Object.keys(replaceMap);\n\n\tfor (const key of entries) {\n\t\t// Replace all decoded components\n\t\tinput = input.replace(new RegExp(key, 'g'), replaceMap[key]);\n\t}\n\n\treturn input;\n}\n\nexport default function decodeUriComponent(encodedURI) {\n\tif (typeof encodedURI !== 'string') {\n\t\tthrow new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');\n\t}\n\n\ttry {\n\t\t// Try the built in decoder first\n\t\treturn decodeURIComponent(encodedURI);\n\t} catch {\n\t\t// Fallback to a more advanced decoder\n\t\treturn customDecodeURIComponent(encodedURI);\n\t}\n}\n","export default function splitOnFirst(string, separator) {\n\tif (!(typeof string === 'string' && typeof separator === 'string')) {\n\t\tthrow new TypeError('Expected the arguments to be of type `string`');\n\t}\n\n\tif (string === '' || separator === '') {\n\t\treturn [];\n\t}\n\n\tconst separatorIndex = string.indexOf(separator);\n\n\tif (separatorIndex === -1) {\n\t\treturn [];\n\t}\n\n\treturn [\n\t\tstring.slice(0, separatorIndex),\n\t\tstring.slice(separatorIndex + separator.length)\n\t];\n}\n","export function includeKeys(object, predicate) {\n\tconst result = {};\n\n\tif (Array.isArray(predicate)) {\n\t\tfor (const key of predicate) {\n\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(object, key);\n\t\t\tif (descriptor?.enumerable) {\n\t\t\t\tObject.defineProperty(result, key, descriptor);\n\t\t\t}\n\t\t}\n\t} else {\n\t\t// `Reflect.ownKeys()` is required to retrieve symbol properties\n\t\tfor (const key of Reflect.ownKeys(object)) {\n\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(object, key);\n\t\t\tif (descriptor.enumerable) {\n\t\t\t\tconst value = object[key];\n\t\t\t\tif (predicate(key, value, object)) {\n\t\t\t\t\tObject.defineProperty(result, key, descriptor);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn result;\n}\n\nexport function excludeKeys(object, predicate) {\n\tif (Array.isArray(predicate)) {\n\t\tconst set = new Set(predicate);\n\t\treturn includeKeys(object, key => !set.has(key));\n\t}\n\n\treturn includeKeys(object, (key, value, object) => !predicate(key, value, object));\n}\n","import decodeComponent from 'decode-uri-component';\nimport splitOnFirst from 'split-on-first';\nimport {includeKeys} from 'filter-obj';\n\nconst isNullOrUndefined = value => value === null || value === undefined;\n\n// eslint-disable-next-line unicorn/prefer-code-point\nconst strictUriEncode = string => encodeURIComponent(string).replace(/[!'()*]/g, x => `%${x.charCodeAt(0).toString(16).toUpperCase()}`);\n\nconst encodeFragmentIdentifier = Symbol('encodeFragmentIdentifier');\n\nfunction encoderForArrayFormat(options) {\n\tswitch (options.arrayFormat) {\n\t\tcase 'index': {\n\t\t\treturn key => (result, value) => {\n\t\t\t\tconst index = result.length;\n\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined\n\t\t\t\t\t|| (options.skipNull && value === null)\n\t\t\t\t\t|| (options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [\n\t\t\t\t\t\t...result, [encode(key, options), '[', index, ']'].join(''),\n\t\t\t\t\t];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '[', encode(index, options), ']=', encode(value, options)].join(''),\n\t\t\t\t];\n\t\t\t};\n\t\t}\n\n\t\tcase 'bracket': {\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined\n\t\t\t\t\t|| (options.skipNull && value === null)\n\t\t\t\t\t|| (options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [\n\t\t\t\t\t\t...result,\n\t\t\t\t\t\t[encode(key, options), '[]'].join(''),\n\t\t\t\t\t];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '[]=', encode(value, options)].join(''),\n\t\t\t\t];\n\t\t\t};\n\t\t}\n\n\t\tcase 'colon-list-separator': {\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined\n\t\t\t\t\t|| (options.skipNull && value === null)\n\t\t\t\t\t|| (options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [\n\t\t\t\t\t\t...result,\n\t\t\t\t\t\t[encode(key, options), ':list='].join(''),\n\t\t\t\t\t];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), ':list=', encode(value, options)].join(''),\n\t\t\t\t];\n\t\t\t};\n\t\t}\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\tcase 'bracket-separator': {\n\t\t\tconst keyValueSep = options.arrayFormat === 'bracket-separator'\n\t\t\t\t? '[]='\n\t\t\t\t: '=';\n\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined\n\t\t\t\t\t|| (options.skipNull && value === null)\n\t\t\t\t\t|| (options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\t// Translate null to an empty string so that it doesn't serialize as 'null'\n\t\t\t\tvalue = value === null ? '' : value;\n\n\t\t\t\tif (result.length === 0) {\n\t\t\t\t\treturn [[encode(key, options), keyValueSep, encode(value, options)].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [[result, encode(value, options)].join(options.arrayFormatSeparator)];\n\t\t\t};\n\t\t}\n\n\t\tdefault: {\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined\n\t\t\t\t\t|| (options.skipNull && value === null)\n\t\t\t\t\t|| (options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [\n\t\t\t\t\t\t...result,\n\t\t\t\t\t\tencode(key, options),\n\t\t\t\t\t];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '=', encode(value, options)].join(''),\n\t\t\t\t];\n\t\t\t};\n\t\t}\n\t}\n}\n\nfunction parserForArrayFormat(options) {\n\tlet result;\n\n\tswitch (options.arrayFormat) {\n\t\tcase 'index': {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /\\[(\\d*)]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\t\t}\n\n\t\tcase 'bracket': {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(\\[])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [...accumulator[key], value];\n\t\t\t};\n\t\t}\n\n\t\tcase 'colon-list-separator': {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(:list)$/.exec(key);\n\t\t\t\tkey = key.replace(/:list$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [...accumulator[key], value];\n\t\t\t};\n\t\t}\n\n\t\tcase 'comma':\n\t\tcase 'separator': {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = typeof value === 'string' && value.includes(options.arrayFormatSeparator);\n\t\t\t\tconst isEncodedArray = (typeof value === 'string' && !isArray && decode(value, options).includes(options.arrayFormatSeparator));\n\t\t\t\tvalue = isEncodedArray ? decode(value, options) : value;\n\t\t\t\tconst newValue = isArray || isEncodedArray ? value.split(options.arrayFormatSeparator).map(item => decode(item, options)) : (value === null ? value : decode(value, options));\n\t\t\t\taccumulator[key] = newValue;\n\t\t\t};\n\t\t}\n\n\t\tcase 'bracket-separator': {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = /(\\[])$/.test(key);\n\t\t\t\tkey = key.replace(/\\[]$/, '');\n\n\t\t\t\tif (!isArray) {\n\t\t\t\t\taccumulator[key] = value ? decode(value, options) : value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst arrayValue = value === null\n\t\t\t\t\t? []\n\t\t\t\t\t: value.split(options.arrayFormatSeparator).map(item => decode(item, options));\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = arrayValue;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [...accumulator[key], ...arrayValue];\n\t\t\t};\n\t\t}\n\n\t\tdefault: {\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [...[accumulator[key]].flat(), value];\n\t\t\t};\n\t\t}\n\t}\n}\n\nfunction validateArrayFormatSeparator(value) {\n\tif (typeof value !== 'string' || value.length !== 1) {\n\t\tthrow new TypeError('arrayFormatSeparator must be single character string');\n\t}\n}\n\nfunction encode(value, options) {\n\tif (options.encode) {\n\t\treturn options.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction decode(value, options) {\n\tif (options.decode) {\n\t\treturn decodeComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t}\n\n\tif (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input))\n\t\t\t.sort((a, b) => Number(a) - Number(b))\n\t\t\t.map(key => input[key]);\n\t}\n\n\treturn input;\n}\n\nfunction removeHash(input) {\n\tconst hashStart = input.indexOf('#');\n\tif (hashStart !== -1) {\n\t\tinput = input.slice(0, hashStart);\n\t}\n\n\treturn input;\n}\n\nfunction getHash(url) {\n\tlet hash = '';\n\tconst hashStart = url.indexOf('#');\n\tif (hashStart !== -1) {\n\t\thash = url.slice(hashStart);\n\t}\n\n\treturn hash;\n}\n\nfunction parseValue(value, options) {\n\tif (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === 'string' && value.trim() !== '')) {\n\t\tvalue = Number(value);\n\t} else if (options.parseBooleans && value !== null && (value.toLowerCase() === 'true' || value.toLowerCase() === 'false')) {\n\t\tvalue = value.toLowerCase() === 'true';\n\t}\n\n\treturn value;\n}\n\nexport function extract(input) {\n\tinput = removeHash(input);\n\tconst queryStart = input.indexOf('?');\n\tif (queryStart === -1) {\n\t\treturn '';\n\t}\n\n\treturn input.slice(queryStart + 1);\n}\n\nexport function parse(query, options) {\n\toptions = {\n\t\tdecode: true,\n\t\tsort: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ',',\n\t\tparseNumbers: false,\n\t\tparseBooleans: false,\n\t\t...options,\n\t};\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst formatter = parserForArrayFormat(options);\n\n\t// Create an object with no prototype\n\tconst returnValue = Object.create(null);\n\n\tif (typeof query !== 'string') {\n\t\treturn returnValue;\n\t}\n\n\tquery = query.trim().replace(/^[?#&]/, '');\n\n\tif (!query) {\n\t\treturn returnValue;\n\t}\n\n\tfor (const parameter of query.split('&')) {\n\t\tif (parameter === '') {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst parameter_ = options.decode ? parameter.replace(/\\+/g, ' ') : parameter;\n\n\t\tlet [key, value] = splitOnFirst(parameter_, '=');\n\n\t\tif (key === undefined) {\n\t\t\tkey = parameter_;\n\t\t}\n\n\t\t// Missing `=` should be `null`:\n\t\t// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\t\tvalue = value === undefined ? null : (['comma', 'separator', 'bracket-separator'].includes(options.arrayFormat) ? value : decode(value, options));\n\t\tformatter(decode(key, options), value, returnValue);\n\t}\n\n\tfor (const [key, value] of Object.entries(returnValue)) {\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tfor (const [key2, value2] of Object.entries(value)) {\n\t\t\t\tvalue[key2] = parseValue(value2, options);\n\t\t\t}\n\t\t} else {\n\t\t\treturnValue[key] = parseValue(value, options);\n\t\t}\n\t}\n\n\tif (options.sort === false) {\n\t\treturn returnValue;\n\t}\n\n\t// TODO: Remove the use of `reduce`.\n\t// eslint-disable-next-line unicorn/no-array-reduce\n\treturn (options.sort === true ? Object.keys(returnValue).sort() : Object.keys(returnValue).sort(options.sort)).reduce((result, key) => {\n\t\tconst value = returnValue[key];\n\t\tif (Boolean(value) && typeof value === 'object' && !Array.isArray(value)) {\n\t\t\t// Sort object keys, not values\n\t\t\tresult[key] = keysSorter(value);\n\t\t} else {\n\t\t\tresult[key] = value;\n\t\t}\n\n\t\treturn result;\n\t}, Object.create(null));\n}\n\nexport function stringify(object, options) {\n\tif (!object) {\n\t\treturn '';\n\t}\n\n\toptions = {encode: true,\n\t\tstrict: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ',', ...options};\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst shouldFilter = key => (\n\t\t(options.skipNull && isNullOrUndefined(object[key]))\n\t\t|| (options.skipEmptyString && object[key] === '')\n\t);\n\n\tconst formatter = encoderForArrayFormat(options);\n\n\tconst objectCopy = {};\n\n\tfor (const [key, value] of Object.entries(object)) {\n\t\tif (!shouldFilter(key)) {\n\t\t\tobjectCopy[key] = value;\n\t\t}\n\t}\n\n\tconst keys = Object.keys(objectCopy);\n\n\tif (options.sort !== false) {\n\t\tkeys.sort(options.sort);\n\t}\n\n\treturn keys.map(key => {\n\t\tconst value = object[key];\n\n\t\tif (value === undefined) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (value === null) {\n\t\t\treturn encode(key, options);\n\t\t}\n\n\t\tif (Array.isArray(value)) {\n\t\t\tif (value.length === 0 && options.arrayFormat === 'bracket-separator') {\n\t\t\t\treturn encode(key, options) + '[]';\n\t\t\t}\n\n\t\t\treturn value\n\t\t\t\t.reduce(formatter(key), [])\n\t\t\t\t.join('&');\n\t\t}\n\n\t\treturn encode(key, options) + '=' + encode(value, options);\n\t}).filter(x => x.length > 0).join('&');\n}\n\nexport function parseUrl(url, options) {\n\toptions = {\n\t\tdecode: true,\n\t\t...options,\n\t};\n\n\tlet [url_, hash] = splitOnFirst(url, '#');\n\n\tif (url_ === undefined) {\n\t\turl_ = url;\n\t}\n\n\treturn {\n\t\turl: url_?.split('?')?.[0] ?? '',\n\t\tquery: parse(extract(url), options),\n\t\t...(options && options.parseFragmentIdentifier && hash ? {fragmentIdentifier: decode(hash, options)} : {}),\n\t};\n}\n\nexport function stringifyUrl(object, options) {\n\toptions = {\n\t\tencode: true,\n\t\tstrict: true,\n\t\t[encodeFragmentIdentifier]: true,\n\t\t...options,\n\t};\n\n\tconst url = removeHash(object.url).split('?')[0] || '';\n\tconst queryFromUrl = extract(object.url);\n\n\tconst query = {\n\t\t...parse(queryFromUrl, {sort: false}),\n\t\t...object.query,\n\t};\n\n\tlet queryString = stringify(query, options);\n\tif (queryString) {\n\t\tqueryString = `?${queryString}`;\n\t}\n\n\tlet hash = getHash(object.url);\n\tif (object.fragmentIdentifier) {\n\t\tconst urlObjectForFragmentEncode = new URL(url);\n\t\turlObjectForFragmentEncode.hash = object.fragmentIdentifier;\n\t\thash = options[encodeFragmentIdentifier] ? urlObjectForFragmentEncode.hash : `#${object.fragmentIdentifier}`;\n\t}\n\n\treturn `${url}${queryString}${hash}`;\n}\n\nexport function pick(input, filter, options) {\n\toptions = {\n\t\tparseFragmentIdentifier: true,\n\t\t[encodeFragmentIdentifier]: false,\n\t\t...options,\n\t};\n\n\tconst {url, query, fragmentIdentifier} = parseUrl(input, options);\n\n\treturn stringifyUrl({\n\t\turl,\n\t\tquery: includeKeys(query, filter),\n\t\tfragmentIdentifier,\n\t}, options);\n}\n\nexport function exclude(input, filter, options) {\n\tconst exclusionFilter = Array.isArray(filter) ? key => !filter.includes(key) : (key, value) => !filter(key, value);\n\n\treturn pick(input, exclusionFilter, options);\n}\n","import * as queryString from './base.js';\n\nexport default queryString;\n","import React from 'react';\nimport { GrafanaTheme, PanelProps } from '@grafana/data';\nimport { VideoOptions } from 'types';\nimport { css, cx } from '@emotion/css';\nimport { useStyles } from '@grafana/ui';\nimport qs from 'query-string';\n\ninterface Props extends PanelProps {}\n\nexport const VideoPanel: React.FC = ({ options, data, width, height, replaceVariables }) => {\n const styles = useStyles(getStyles);\n\n let videoURL = replaceVariables(options.videoURL || '');\n\n if (options.videoType === 'youtube') {\n const youtubeParams = {\n loop: 0,\n autoplay: 0,\n playlist: options.videoId,\n };\n\n if (options.autoPlay) {\n youtubeParams.autoplay = 1;\n }\n\n if (options.loop) {\n youtubeParams.loop = 1;\n }\n\n videoURL = 'https://www.youtube.com/embed/' + options.videoId + '?' + qs.stringify(youtubeParams);\n } else if (options.videoType === 'iframe') {\n videoURL = replaceVariables(options.iframeURL || '');\n }\n\n let background = undefined;\n if (options.customBackground) {\n background = options.backgroundColor || '';\n }\n return (\n \n {options.videoType === 'url' ? (\n \n \n \n ) : (\n \n )}\n \n );\n};\n\nconst getStyles = (theme: GrafanaTheme) => {\n return {\n wrapper: css`\n position: absolute;\n `,\n video: css`\n top: 0;\n left: 0;\n `,\n };\n};\n","/* istanbul ignore file */\n\nimport { PanelPlugin } from '@grafana/data';\nimport { VideoOptions } from './types';\nimport { VideoPanel } from './VideoPanel';\n\nexport const plugin = new PanelPlugin(VideoPanel).setNoPadding().setPanelOptions((builder) => {\n return builder\n .addRadio({\n path: 'videoType',\n name: 'Source',\n defaultValue: 'youtube',\n settings: {\n options: [\n {\n value: 'url',\n label: 'File',\n },\n {\n value: 'youtube',\n label: 'YouTube',\n },\n {\n value: 'iframe',\n label: 'iframe',\n },\n ],\n },\n })\n .addTextInput({\n path: 'videoId',\n name: 'Video ID',\n description: 'The value after watch?v= in the URL.',\n defaultValue: 'eQpyJQ2womo',\n settings: {\n placeholder: 'eQpyJQ2womo',\n },\n showIf: (config) => config.videoType === 'youtube',\n })\n .addTextInput({\n path: 'videoURL',\n name: 'URL',\n description: 'A URL to a valid video file.',\n settings: {\n placeholder: 'https://example.com/video.mp4',\n },\n showIf: (config) => config.videoType === 'url',\n })\n .addTextInput({\n path: 'iframeURL',\n name: 'URL',\n description: 'A valid URL.',\n settings: {\n placeholder: 'https://example.com/video',\n },\n showIf: (config) => config.videoType === 'iframe',\n })\n .addBooleanSwitch({\n path: 'customBackground',\n name: 'Custom Background',\n defaultValue: false,\n showIf: (config) => config.videoType === 'iframe',\n })\n .addColorPicker({\n path: 'backgroundColor',\n name: 'Background Color',\n description: 'The background color for the video',\n showIf: (config) => config.customBackground && config.videoType === 'iframe',\n })\n .addBooleanSwitch({\n path: 'autoPlay',\n name: 'Autoplay',\n defaultValue: true,\n showIf: (config) => config.videoType !== 'iframe',\n })\n .addBooleanSwitch({\n path: 'loop',\n name: 'Loop',\n defaultValue: true,\n showIf: (config) => config.videoType !== 'iframe',\n })\n .addBooleanSwitch({\n path: 'geolocate',\n name: 'Geolocate',\n defaultValue: false,\n showIf: (config) => config.videoType === 'iframe',\n });\n});\n"],"names":["module","exports","__WEBPACK_EXTERNAL_MODULE__644__","__WEBPACK_EXTERNAL_MODULE__305__","__WEBPACK_EXTERNAL_MODULE__388__","__WEBPACK_EXTERNAL_MODULE__650__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","token","singleMatcher","RegExp","multiMatcher","decodeComponents","components","split","decodeURIComponent","join","length","left","slice","right","Array","concat","decode","input","tokens","match","i","splitOnFirst","string","separator","TypeError","separatorIndex","indexOf","includeKeys","object","predicate","result","isArray","descriptor","getOwnPropertyDescriptor","Reflect","ownKeys","isNullOrUndefined","strictUriEncode","encodeURIComponent","replace","x","charCodeAt","toString","toUpperCase","encodeFragmentIdentifier","validateArrayFormatSeparator","encode","options","strict","encodedURI","replaceMap","exec","entries","keys","customDecodeURIComponent","keysSorter","sort","b","Number","map","removeHash","hashStart","parseValue","parseNumbers","isNaN","trim","parseBooleans","toLowerCase","extract","queryStart","parse","query","arrayFormat","arrayFormatSeparator","formatter","accumulator","includes","isEncodedArray","newValue","item","test","arrayValue","flat","parserForArrayFormat","returnValue","create","parameter","parameter_","key2","value2","reduce","Boolean","stringify","shouldFilter","skipNull","skipEmptyString","index","keyValueSep","encoderForArrayFormat","objectCopy","filter","parseUrl","url","url_","hash","parseFragmentIdentifier","fragmentIdentifier","stringifyUrl","queryString","getHash","urlObjectForFragmentEncode","URL","pick","exclude","getStyles","theme","wrapper","css","video","plugin","PanelPlugin","data","width","height","replaceVariables","styles","useStyles","background","videoURL","videoType","youtubeParams","loop","autoplay","playlist","videoId","autoPlay","qs","iframeURL","customBackground","backgroundColor","div","className","cx","controls","muted","source","src","iframe","frameBorder","allow","geolocate","allowFullScreen","setNoPadding","setPanelOptions","builder","addRadio","path","name","defaultValue","settings","label","addTextInput","description","placeholder","showIf","config","addBooleanSwitch","addColorPicker"],"sourceRoot":""} \ No newline at end of file diff --git a/data/plugins/innius-video-panel/plugin.json b/data/plugins/innius-video-panel/plugin.json new file mode 100644 index 0000000000000..320c931dd9288 --- /dev/null +++ b/data/plugins/innius-video-panel/plugin.json @@ -0,0 +1,44 @@ +{ + "type": "panel", + "name": "Video", + "id": "innius-video-panel", + "info": { + "description": "Display video from a URL, YouTube ID, or an iFrame.", + "author": { + "name": "Innius", + "url": "https://innius.com" + }, + "keywords": [ + "video" + ], + "logos": { + "small": "img/logo.svg", + "large": "img/logo.svg" + }, + "links": [ + { + "name": "Project site", + "url": "https://github.com/innius/grafana-video-panel" + }, + { + "name": "License", + "url": "https://github.com/innius/grafana-video-panel/blob/master/LICENSE" + } + ], + "screenshots": [ + { + "name": "Examples", + "path": "img/examples.png" + } + ], + "version": "1.0.7", + "updated": "2023-04-07" + }, + "dependencies": { + "grafanaDependency": ">=7.1.5", + "plugins": [] + }, + "skipDataQuery": true +} + + diff --git a/public/app/routes/routes.tsx b/public/app/routes/routes.tsx index eccccce12a0fd..1cc5d5d134692 100644 --- a/public/app/routes/routes.tsx +++ b/public/app/routes/routes.tsx @@ -2,7 +2,8 @@ import React from 'react'; import { Redirect, RouteComponentProps } from 'react-router-dom'; import { isTruthy } from '@grafana/data'; -import { LoginPage } from 'app/core/components/Login/LoginPage'; +// LOGZ.IO GRAFANA CHANGE::DEV-00000 deactivate all login/signup related pages +// import { LoginPage } from 'app/core/components/Login/LoginPage'; import { NavLandingPage } from 'app/core/components/NavLandingPage/NavLandingPage'; import { PageNotFound } from 'app/core/components/PageNotFound/PageNotFound'; import config from 'app/core/config';